override_array($params['type'], true, true);
$optionsLength = count($options);
$backgroundsSets = $ratinglib->get_options_smiles_backgrounds($params['type']);
foreach ($options as $i => $option) {
if ($prefs['rating_smileys'] == 'y') {
$images = '';
foreach ($backgroundsSets[$i] as $i => $background) {
$images .= '';
}
$html = count($option) . ' ' . $images;
} else {
$html = implode(',', $option);
}
$menu .= "