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

Parašė acTesT.· 2011 Lap. 26 19:11:54
#4


//News
 
function render_news($subject, $news, $info) {
 
	echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
 
	echo "<td class='capmain-news-left'></td>\n";
 
	echo "<td class='capmain-news'><a href='news.php?readmore=".$info['news_id']."'><font size='4'>".$info['news_subject']."</font></a></td>\n";
 
	echo "<td class='capmain-news-right'></td>\n";
 
	echo "</tr>\n</table>\n";
 
	echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
 
	echo "<td class='main-body-left'></td>\n";
 
	echo "<td class='main-body-news-poster'>Parašė\n";
 
	echo newsposter($info);
 
	echo "</td>\n";
 
	echo "<td class='main-body-right'></td>\n</tr>\n<tr>\n";
 
	echo "<td class='main-body-left'></td>\n";
 
	echo "<td class='main-body middle-border'>".$news."</br></br></td>\n";
 
	echo "<td class='main-body-right'></td>\n";
 
	echo "</tr>\n<tr>\n";
 
	echo "<td class='main-body-left'></td>\n";
 
	echo "<td align='center' class='news-footer middle-border'>\n";
 
	echo newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
 
	echo "</td>\n";
 
	echo "<td class='main-body-right'></td>\n";
 
	echo "</tr></table>\n";
 
	echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
 
	echo "<td class='submain-left'></td>\n";
 
	echo "<td class='submain'>&nbsp;</td>\n";
 
	echo "<td class='submain-right'></td>\n";
 
	echo "</tr>\n</table>\n";
 
 
 
}
 


Tai gal pamėgink šį


//News
 
function render_news($subject, $news, $info) {
 
	echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
 
	echo "<td class='capmain-news-left'></td>\n";
 
	echo "<td class='capmain-news'><a href='news.php?readmore=".$info['news_id']."'><font size='4'>".$info['news_subject']."</font></a></td>\n";
 
	echo "<td class='capmain-news-right'></td>\n";
 
	echo "</tr>\n</table>\n";
 
	echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
 
	echo "<td class='main-body-left'></td>\n";
 
	echo "<td class='main-body-news-poster'>Parašė\n";
 
	echo newsposter($info);
 
	echo "</td>\n";
 
	echo "<td class='main-body-right'></td>\n</tr>\n<tr>\n";
 
	echo "<td class='main-body-left'></td>\n";
 
	echo "<td class='main-body middle-border'>".$news."</br></br></td>\n";
 
	echo "<td class='main-body-right'></td>\n";
 
	echo "</tr>\n<tr>\n";
 
	echo "<td class='main-body-left'></td>\n";
 
	echo "<td align='center' class='news-footer middle-border'>\n";
 
	echo newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
 
	echo "</td>\n";
 
	echo "<td class='main-body-right'></td>\n";
 
	echo "</tr></table>\n";
 
	echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
 
	echo "<td class='submain-left'></td>\n";
 
	echo "<td class='submain'>&nbsp;</td>\n";
 
	echo "<td class='submain-right'></td>\n";
 
        echo "<div style='float:left;'>";
 
        echo "<div id='FbCont".$info['news_id']."'>
 
       <script type='text/javascript'>
 
       <!--//--><![CDATA[//><!--
 
       var fb = document.createElement('fb:like'); 
 
       fb.setAttribute('href','".$settings['siteurl']."news.php?readmore=".$info['news_id']."'); 
 
       fb.setAttribute('layout','button_count');
 
       fb.setAttribute('show_faces','true');
 
      fb.setAttribute('width','1');
 
      document.getElementById('FbCont".$info['news_id']."').appendChild(fb);
 
      //--><!]]>
 
     </script>
 
     </div>";
 
     echo "</div>";
 
     echo "</tr>\n</table>\n";
 
}

Redagavo acTesT.· 2011 Lap. 26 20:11:56