Parašė WyPuk· 2008 Gru. 23 11:12:31
#2
function newsposter($info,$sep="",$class="") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$res .= $info['news_ext'] == "y" || $info['news_allow_comments'] ? $sep."\n" : "\n";
return $res;
}
function newsopts($info,$sep,$class="") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['042']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$info['news_comments'].$locale['043']."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['044']."\n";
$res = $sep"";
return $res;
Bandyk ;)
P.S 400 Postas
Redagavo WyPuk· 2008 Gru. 23 11:12:52