Location: PHPKode > projects > PHP Enter > www/templates/default/main.php
<table cellSpacing=0 cellPadding=0 align="center" border="0" border="0">
 <tr>
  <td vAlign="top" width="768px;">
{section name="newser" loop=1 start=0}
{if $newser[newser].blogid eq false}<a href="link.php">No News Yet?</a>{else}
<div style="height:300px;" class="featuredcontainer"> 
<div class="featuremain">
{if $rewrite == 1}
<a href="{$newser[newser].univer}-{$newser[newser].btexty|urlencode}.html"><span class="ha4">{$newser[newser].btexty|stripslashes|truncate:60}</span></a><br />
{/if}
{if $rewrite == 2}
<a href="news.php?name={$newser[newser].univer}"><span class="ha4">{$newser[newser].btexty|stripslashes|truncate:60}</span></a><br />
{/if}
<a href="uploads/{$newser[newser].images}" title="{$newser[newser].btexty}">
<img src="maxthumb/{$newser[newser].images}" alt="{$newser[newser].btexty}"></a>
<i>{$newser[newser].bdate} by {$newser[newser].buser}</i>
{if $newser[newser].rating == 0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars0.gif" border="1">{/if}
{if $newser[newser].rating == 1.0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars1.gif" border="1">{/if}
{if $newser[newser].rating == 1.5}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars2.gif" border="1">{/if}
{if $newser[newser].rating == 2.0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars2.gif" border="1">{/if}
{if $newser[newser].rating == 2.5}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars3.gif" border="1">{/if}
{if $newser[newser].rating == 3.0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars3.gif" border="1">{/if}
{if $newser[newser].rating == 3.5}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars4.gif" border="1">{/if}
{if $newser[newser].rating == 4.0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars4.gif" border="1">{/if}
{if $newser[newser].rating == 4.5}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars5.gif" border="1">{/if}
{if $newser[newser].rating == 5.0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars5.gif" border="1">{/if}
<br />
{$newser[newser].bamess|stripslashes|regex_replace:"/[\r]/":"<br />"|truncate:800} 
{if $rewrite == 1}
<a href="{$newser[newser].univer}-{$newser[newser].btexty|urlencode}.html"> read more..</a> comments <a href="{$newser[newser].univer}-{$newser[newser].btexty|urlencode}.html#section">[{$newser[newser].commno}]</a>
{/if}
{if $rewrite == 2}
<a href="news.php?name={$newser[newser].univer}"> read more..</a> comments <a href="news.php?name={$newser[newser].univer}#section">[{$newser[newser].commno}]</a>
{/if}
{/if}</div></div>
{/section}
<div id="ads">{include file='admin/horad.php'}</div>
   </td>
   <td vAlign="top">
<div class="featureleft">
<span class="ha3">Gallery</span>
{section name="vgalery" loop=$vgalery}
{if $vgalery[vgalery].galid eq false}-{else}
<div class="image-wrapper"><a href="gallery.php" title="{$vgalery[vgalery].gtitle}">
<img src="minthumb/{$vgalery[vgalery].guniver}" alt="{$vgalery[vgalery].guniver}"></a><h2>{$vgalery[vgalery].gtitle|truncate:26}</h2>
</div>
{/if}
{/section}
</div>
  </td>
 </tr>
</table>
<table cellSpacing=0 cellPadding=0 align="center" border="0">
 <tr>
  <td>
<div class="featuredcontainer"> 
{section name="newser" loop=4 start=1}
{if $newser[newser].bamess eq false}-{else}
<div id="side-a">
{if $rewrite == 1}
<a href="{$newser[newser].univer}-{$newser[newser].btexty|urlencode}.html"><span class="ha3">{$newser[newser].btexty|stripslashes|truncate:32}</span></a>
{/if}
{if $rewrite == 2}
<a href="news.php?name={$newser[newser].univer}"><span class="ha3">{$newser[newser].btexty|stripslashes|truncate:32}</span></a>
{/if}
<div class="thumb-image-wrapper"><a href="uploads/{$newser[newser].images}" title="{$newser[newser].btexty}">
<img src="minthumb/{$newser[newser].images}" alt="{$newser[newser].btexty}"></a>
</div>
{$newser[newser].bamess|stripslashes|truncate:210}<br />
{if $newser[newser].rating == 0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars0.gif" border="1">{/if}
{if $newser[newser].rating == 1.0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars1.gif" border="1">{/if}
{if $newser[newser].rating == 1.5}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars2.gif" border="1">{/if}
{if $newser[newser].rating == 2.0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars2.gif" border="1">{/if}
{if $newser[newser].rating == 2.5}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars3.gif" border="1">{/if}
{if $newser[newser].rating == 3.0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars3.gif" border="1">{/if}
{if $newser[newser].rating == 3.5}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars4.gif" border="1">{/if}
{if $newser[newser].rating == 4.0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars4.gif" border="1">{/if}
{if $newser[newser].rating == 4.5}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars5.gif" border="1">{/if}
{if $newser[newser].rating == 5.0}<img style="position:relative;bottom:2px;border:0px;" src="templates/{$temp}/images/stars5.gif" border="1">{/if}
{if $rewrite == 1}
{$newser[newser].bdate} Comments <a href="{$newser[newser].univer}-{$newser[newser].btexty|urlencode}.html#section">[{$newser[newser].commno}]</a>
{/if}
{if $rewrite == 2}
{$newser[newser].bdate} Comments <a href="news.php?name={$newser[newser].univer}#section">[{$newser[newser].commno}]</a>
{/if}</div>
{/if}
{/section}
</div>
  </td>
 </tr>
</table>
<table cellSpacing=0 cellPadding=0 align="center" border="0">
 <tr>
  <td valign="top" width="720px;">
<div style="padding:7px;">
{section name="newser" loop=$newser start=4}
{if $rewrite == 1}
<a href="{$newser[newser].univer}-{$newser[newser].btexty|urlencode}.html"><span class="ha5">&nbsp;&nbsp;&nbsp;<strong>{$newser[newser].btexty|stripslashes|truncate:32}</strong></span></a>
{/if}
{if $rewrite == 2}
<a href="news.php?name={$newser[newser].univer}"><span class="ha5">&nbsp;&nbsp;&nbsp;<strong>{$newser[newser].btexty|stripslashes|truncate:32}</strong></span></a>
{/if}
{$newser[newser].bamess|stripslashes|truncate:195}<br />
{$newser[newser].bdate}<br />
{/section}
</div>
 </td>
 <td vAlign="top" width="220px">
<span class="ha3">Public Timeline</span>
{section name=comment loop=$comment}
<div class="featuredcontainer"> 
<div class="thumb-image-wrapper"><a href="uploads/{$comment[comment].imgs}" title="{$comment[comment].amess}">
<img src="minthumb/{$comment[comment].imgs}" alt="{$comment[comment].amess}"></a>
</div>
{$comment[comment].amess} - 
{if $comment[comment].userid eq true}<a href="profile.php?id={$comment[comment].userid}">{$comment[comment].date}</a>{else}
{$comment[comment].date}
{/if}
<div style="clear:both"></div> 
</div>
{/section}
</div>
  </td>
 </tr>
</table>
</div>
Return current item: PHP Enter