etiket bölümündeki kodlar bunlar arkadaşlar.
// Build recipe cloud tags..
// You can adjust the ranges if you want to and know what you are doing..
// Each range simply displays a different li class..
function buildRecipeCloudTags($txt) {
global $ps_recipe43;
$string = '';
$tags = '';
$q_cloudtags = mysql_query("SELECT * FROM ".$this->prefix."cloudtags
WHERE recipe = '".$_GET['recipe']."'
ORDER BY rand()
LIMIT ".CLOUD_TAGS_TO_DISPLAY."
") or die(mysql_error());
while ($CTAGS = mysql_fetch_object($q_cloudtags)) {
if ($this->settings->modr=='yes') {
$url = $this->settings->install_path.'tarif-ara/'.urlencode(cleanData($CTAGS->cloud_word)).'/all/1/index.html';
} else {
$url = '?p=search-free-recipes&keys='.urlencode(cleanData($CTAGS->cloud_word)).'&filter=all&cat=0';
}
// For count range 1-2 display this..
if (in_array($CTAGS->cloud_count,array(1,2))) {
$tags .= '<li class="tag1"><a href="'.$url.'" title="'.cleanData($CTAGS->cloud_word).'">'.cleanData($CTAGS->cloud_word).'</a></li>'.defineNewline();
}
// For count range 3-4 display this..
if (in_array($CTAGS->cloud_count,array(3,4))) {
$tags .= '<li class="tag2"><a href="'.$url.'" title="'.cleanData($CTAGS->cloud_word).'">'.cleanData($CTAGS->cloud_word).'</a></li>'.defineNewline();
}
// For count range 4-5 display this..
if (in_array($CTAGS->cloud_count,array(4,5))) {
$tags .= '<li class="tag3"><a href="'.$url.'" title="'.cleanData($CTAGS->cloud_word).'">'.cleanData($CTAGS->cloud_word).'</a></li>'.defineNewline();
}
// For count range 6-7 display this..
if (in_array($CTAGS->cloud_count,array(6,7))) {
$tags .= '<li class="tag4"><a href="'.$url.'" title="'.cleanData($CTAGS->cloud_word).'">'.cleanData($CTAGS->cloud_word).'</a></li>'.defineNewline();
}
// For the rest (ie, higher than 7) display this..
if ($CTAGS->cloud_count>7) {
$tags .= '<li class="tag5"><a href="'.$url.'" title="'.cleanData($CTAGS->cloud_word).'">'.cleanData($CTAGS->cloud_word).'</a></li>'.defineNewline();
}
}
return str_replace(array('{cloud_tags_txt}','{cloud_tags}'),
array($txt,($tags ? $tags : '<li>'.$ps_recipe43.'</li>')),
file_get_contents(PATH.'templates/html/cloud-tags.htm')
);
}