Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Gugio klausimai

Parašė Dandžu· 2008 Rugs. 6 13:09:31
#71

Try now.
function newsopts($info, $sep, $class = "") {
   global $locale; $res = "";
   $link_class = $class ? " class='$class' " : "";
$result = dbquery("SELECT * FROM ".DB_NEWS."");
while ($data = dbarray($result)) {
   if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='naujiena-".$data0['news_id']."-".$data0['news_subject'].".html'>".$locale['global_072']."</a> ".$sep." ";
   if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
   if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
   $res .= $sep." <a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
   return "<!--news_opts-->".$res;
}
}




Redagavo Dandžu· 2008 Rugs. 6 13:09:59