Uprzedzam, ze nie sprawdzalem. Ponizej trzy wersje:
1.function render_news($subject, $news, $info) {
global $locale;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"582\">
<tr valign=\"top\">
<td style=\"background-image: url('".THEME."images/rapdumapls_12.png'); background-repeat: no-repeat; font-weight: bolder; height: 20px; padding-left: 30px; width: 582px\"><span style=\"color: #029fcc\">$subject</span></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/rapdumapls_14.png'); background-repeat: repeat-y; padding-left: 20px; padding-right: 55px; width: 592px".THEME."images/rapdumapls_14.png'); background-repeat: repeat-y; padding-left: 20px; padding-right: 55px\"><br>$news
<br>
<table border=\"0\" style=\"color: #046480\"><tr>
<td align='right' class='infobar'>
<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> · ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$info['news_reads'].$locale['044']."</td>
</tr></table>
</td>
</tr></table>\n";
}
2.function render_news($subject, $news, $info) {
global $locale;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"582\">
<tr valign=\"top\">
<td style=\"background-image: url('".THEME."images/rapdumapls_12.png'); background-repeat: no-repeat; font-weight: bolder; height: 20px; padding-left: 30px; width: 582px\"><span style=\"color: #029fcc\">$subject</span></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/rapdumapls_14.png'); background-repeat: repeat-y; padding-left: 20px; padding-right: 55px; width: 592px".THEME."images/rapdumapls_14.png'); background-repeat: repeat-y; padding-left: 20px; padding-right: 55px\">$news</td>
</tr>
<tr>
<td class='news-footer' align='left' valign='middle'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='white'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])." <img src='".THEME."images/bullet.gif'>
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."' class='white'>".$locale['042']."</a> <img src='".THEME."images/bullet.gif'>\n" : "");
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."' class='white'><b>".$info['news_comments'].$locale['043']."</b></a> <img src='".THEME."images/bullet.gif'> Drukuj
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></td>
</tr></table>\n";
}
Ewentualnie zmienic klase news-footer na infobar, muisz sam sprawdzic.
3.function render_news($subject, $news, $info) {
global $locale;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"582\">
<tr valign=\"top\">
<td style=\"background-image: url('".THEME."images/rapdumapls_12.png'); background-repeat: no-repeat; font-weight: bolder; height: 20px; padding-left: 30px; width: 582px\"><span style=\"color: #029fcc\">$subject</span></td>
</tr>
<tr>
<td style=\"background-image: url('".THEME."images/rapdumapls_14.png'); background-repeat: repeat-y; padding-left: 20px; padding-right: 55px; width: 592px".THEME."images/rapdumapls_14.png'); background-repeat: repeat-y; padding-left: 20px; padding-right: 55px\"><br>$news
<br>
<table border=\"0\" style=\"color: #046480\"><tr>
<td align='right' class='infobar'>".newsposter($info,"·").openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id'])."</td>
</tr></table>
</td>
</tr></table>\n";
}
W przypadku trzeciej wersji musisz dodac w pliku theme.php, zaraz pod <?php ponizsza linie:
require_once INCLUDES."theme_functions_include.php";
Edytowane przez Pieka dnia 30.09.2008 01:36:13
Jestem jaki jestem
|