Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: theme.php news functions

Parašė Enzo· 2009 Bal. 2 15:04:34
#4

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>» $subject
</td>
</tr>
<tr>
<td class='main-body'>$news
</td>
</tr>
<td class='news-footer'>";
echo "Parašyta - ".showdate("longdate", $info['news_date']).". ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."' class='news'>Plačiau</a> | \n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."' class='news'>".$info['news_comments']." Kmntr</a>. "; echo"</td>";
echo "</tr>
</table>\n";

}




.news-footer {
font-size : 10px;
color : #555;
background-color : #f1f1f1;
padding : 3px 4px 4px 4px;
border-right:1px solid #555;
border-left:1px solid #555;
border-bottom:1px solid #555;
}



Redagavo Enzo· 2009 Bal. 2 15:04:23