Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: News-Text

Parašė Dzinglis· 2013 Sau. 12 20:01:58
#3


function render_news($subject, $news, $info) {
 
global $locale;
 
$news_name = trimlink($info['user_name'], 7);
 
	echo "	<table cellspacing='0' cellpadding='0' width='520' height='45' align='center'>
		<tr>
		<td class='capmain'>
			".$subject."
		</td>
		</tr>
		</table>
 
		<table cellspacing='0' cellpadding='0' width='506' height='21' align='center' style='margin-top: -5px;'>
		<tr>
		<td background='".THEME."images/news-up.png' width='506' height='21'>
		</td>
		</tr>
		</table>
 
		<table cellspacing='0' cellpadding='0' width='506' align='center'>
		<tr>
		<td background='".THEME."images/news-stred.png' width='506'>
	<table cellspacing='0' cellpadding='0' width='478' align='center'>
		<tr>
		<td width='478'>
 
	<table cellspacing='0' cellpadding='0' width= auto height= auto align='left'>
		".$info['news_image']."
	</td>
	</tr>
	</table>
		<span class='news-text'>
			".$info['news_text']."
		</span>
		</td>
		</tr>
		</table>
	</td>
	</tr>
	</table>
 
		<table cellspacing='0' cellpadding='0' width='507' height='57' align='center'>
		<tr>
		<td background='".THEME."images/news-fot.png' width='507' heigth='57' valign='top'>
	<table cellspacing='0' cellpadding='0' width='488' height='32' align='left' style='margin-left: 10px;'>
	<tr>
	<td background='".THEME."images/news-fot2.png' width='488' heigth='32'>
		<table cellspacing='0' cellpadding='0' width='477' align='center' style='margin-top: 10px;'>
		<tr>
		<td width='477'>
			<span class='news-fot'>
		<div id='fot'>
				Autorius: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."'>".$news_name."</a>	&nbsp;&nbsp;&nbsp;	|	&nbsp;	<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>".$info['news_comments']."</a>&nbsp;Komentarai &nbsp;&nbsp;&nbsp;	|	&nbsp;	<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>".$info['news_reads']."x</a>&nbsp;Peržiūreta
		</div>
			</span>
 
		<div id='citaj'>
			<a href='".BASEDIR."news.php?readmore=".$info['news_id']."'><img src='".LINK.THEME."images/citaj_viac.png' border='0'></a>
		</div>
 
		</td>
		</tr>
		</table>
	</td>
	</tr>
	</table>
		</td>
		</tr>
		</table>
 
		<table cellspacing='0' cellpadding='0' width='520' height='14' align='center'>
		<tr>
		<td width='520' height='14'>
		</td>
		</tr>
		</table>
 
";
}
 

Štai visas kodas, aš nelabai apie tai nelabai ką žinau. O pabandęs tavo komandą įterti gaunu virš naujienos theme.php kodus. Čia keliuose vietuose per daug uždarymo komandų.

Redagavo Dzinglis· 2013 Sau. 12 20:01:41