Location: PHPKode > projects > PBBoard > PBBoard_v2.1.4/Upload/look/styles/forum/main/templates/portal_last_news.tpl
<table width="100%" class="border" cellpadding="0" style="border-collapse: collapse">
<tr align="center">
</tr>
		{Des::while}{LastNews_subjectList}
   <?php
 $writer= $PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['writer'];
$Info_writer = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['member'] . " WHERE username = '$writer'");
$InfoWriter = @mysql_fetch_array($Info_writer);
$avater_path = $InfoWriter['avater_path'];
?>
	<tr>
		<td class="thead">
   <?php $PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['title']);?>
<span class="l-left">
<font class="smallfont">
{$lang['SubjectVisitor']}:
 ({$LastNews_subjectList['visitor']})
     {$lang['Comments']}:
  ({$LastNews_subjectList['reply_number']})
 </font>
</span>
<span class="r-right">
<img border="0" alt="{$LastNews_subjectList['title']}" src="{$LastNews_subjectList['icon']}">
<a href="index.php?page=topic&amp;show=1&amp;id={$LastNews_subjectList['id']}">{$LastNews_subjectList['title']}</a>
</span>
		</td>
	</tr>
	<tr>
		<td class="row1">
<span class="l-left">
<font class="smallfont">
{$LastNews_subjectList['write_date']}
</font>
</span>
<span class="r-right">
<img border="0" src="portal/images/news_icon.gif" alt="Writer">
{$lang['LastsPostsWriter']}
		<a href="index.php?page=profile&amp;show=1&amp;id=<?php echo $InfoWriter['id']; ?>">{$LastNews_subjectList['writer']}</a>
</span>

		</td>
	</tr>
	<tr>
		<td class="row1" valign="top">
<span class="l-left UserPhoto">
<?php if ($avater_path){ ?>
<a href='<?php echo $avater_path; ?>' rel="facebox">
<img src='<?php echo $avater_path; ?>' alt="Photo" onload="ResizeAv(this)" />
</a>
<?php if ($avater_path ==''){ ?>
<a href="{$image_path}/
	{$_CONF['info_row']['default_avatar']}" rel="facebox">
	<img src="{$image_path}/
	{$_CONF['info_row']['default_avatar']}" border="0" alt="Photo" onload="ResizeAv(this)" />
	</a>
{/if}

{else}
<a href="{$image_path}/
	{$_CONF['info_row']['default_avatar']}" rel="facebox">
	<img src="{$image_path}/
	{$_CONF['info_row']['default_avatar']}" border="0" onload="ResizeAv(this)" />
	</a>
{/if}
</span>

		<?php
		$num =$PowerBB->_CONF['template']['_CONF']['info_row']['portal_news_along'];
$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = $PowerBB->Powerparse->replace($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text']);
$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = str_replace('<p',' <p',$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text']);
$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = $PowerBB->functions->words_count_replace_strip_tags_html2bb($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'],$num);
$PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['LastNews_subjectList'][$this->x_loop]['text']);

		 ?>
		 {$LastNews_subjectList['text']} ...
		 <br />
<br />
<br />
<br />
<br />
<br />
		<span class="r-right"><a href="index.php?page=topic&amp;show=1&amp;id={$LastNews_subjectList['id']}"><img border="0" src="portal/images/readmore.gif" alt="readmore"></a></span>

		</td>
	</tr>
{/Des::while}
{if {$PagerLastNews}}
	<tr>
		<td class="row1">
<br />
<span class="r-right">
{$PagerLastNews}
</span>
		</td>
	</tr>
{/if}

</table>
Return current item: PBBoard