Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: v6 Theme ir news.php

Parašė Deiviux.eu· 2009 Gru. 16 15:12:55
#2

echo "<a href='naujiena/".$info['news_id']."/".$info['news_subject'].'>Skaityti</a>";



Va turėtų veikti....

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

global $locale;

echo "<div style='padding-left: 10px;'>
<table cellpadding='0' cellspacing='0' width='550' align='center'>
<tr>
<td class='news-top-left'><img src='".THEME."images/blank.gif' width='20' height='40' alt='' style='display:block'></td>
<td class='news-top-center1'>$subject</td>
<td class='news-top-center2'><a href='naujiena/".$info['news_id']."/".$info['news_subject'].'>Skaityti<img src='".THEME."images/news-panel/0_05.gif' width='73' height='40' alt='' border='0'></a></td>
<td class='news-top-center1'><img src='".THEME."images/blank.gif' width='1' height='40' alt='' style='display:block'></td>
<td class='news-top-right'><img src='".THEME."images/blank.gif' width='20' height='40' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='550' align='center'>
<tr>
<td class='news-border-left'><img src='".THEME."images/blank.gif' width='10' height='1' alt='' style='display:block'></td>
<td class='news-body'>$news</td>
<td class='news-border-right'><img src='".THEME."images/blank.gif' width='10' height='1' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='550' align='center'>
<tr>
<td class='news-bottom-left'><img src='".THEME."images/blank.gif' width='20' height='41' alt='' style='display:block'></td>
<td class='news-bottom-center'><div style='padding-top: 15px; padding-left: 10px;'><span style='color:#1e9af5;'>Komentarai [".$info['news_comments']."]</span> <span style='color:#c6c6c6;'> ".showdate("%y-%m-%d", $info['news_date'])." - [</span><a href='".BASEDIR."profile.php?lookup=".$info['user_id']."'><span style='color:#1e9af5;'>".$info['user_name']."</span></a><span style='color:#c6c6c6;'>]</span></div></td>
<td class='news-bottom-right'><img src='".THEME."images/blank.gif' width='20' height='41' alt='' style='display:block'></td>
</tr>
</table></div>\n";

}




Redagavo Deiviux.eu· 2009 Gru. 16 15:12:50