//=====================================================================
//News (called in SendNews preview)
//=====================================================================
function template_news_preview($nome,$autore,$data,$testo_home,$testo,$img) {
global $siteConfig;
if ($testo!="") {
$contenuto = "$testo_home<br><br>$testo";
} else {
$contenuto = "$testo_home";
}
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<div class='tpl_news_title'><img src='templates/".$siteConfig['template']."/images/arrow_slim.gif'> $nome</div>\n";
echo "<table width='100%' border='0' cellpadding='2' cellspacing='0'><tr>\n";
echo "<td width='99%' valign='top' class='tpl_news_body'>$contenuto</td>\n";
echo "<td width='1%' valign='top'><a href='http://www.memht.com/topics.html' title='"._TOPICS_."'>$img</a></td>\n";
echo "</tr></table>\n";
echo "<div class='tpl_news_body'><div class='tpl_news_info'>$data "._BY_." <i>$autore</i></div></div>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
}
|