Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: News readmore paspaudus pavadinima

Parašė pauluxy· 2008 Bir. 13 15:06:24
#4

mrUndersKY parašė:
Gali per theme.php

Susirandi eilute
echo "<td width='100%' class='panel-news-main' align='right'>$subject</td>";



Vietoj jos rasai

echo "<td width='100%' class='panel-news-main' align='right'><a href='news.php?readmore=".$info['news_id']."'>$subject</a></td>";




Pas mane ne taip

Va mano:
function render_news($subject, $news, $info) {

echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td align='right' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}



Jaigu pakeiciu cia
<td class='capmain'>$subject</td>



Tai sita nuoroda buna pacioje readmore dalyje