Parašė Gugiss· 2008 Rugs. 4 16:09:14
#67
Parse error: syntax error, unexpected $end in /home/gugis/test.kar.lt/includes/theme_functions_include.php on line 204 :)
function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$result0 = dbquery("SELECT * FROM ".DB_NEWS."");
while ($data0 = dbarray($result0)) {
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&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;
}