Location: PHPKode > projects > PHP Enter > themes/classic/categories.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{$frontext}" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="Pragma" content="cache" />
<meta name="ROBOTS" content="All" />
<link href="themes/{$themes}/styles/images/favicon.ico" type="image/x-icon" rel="shortcut icon" />
<link rel="stylesheet" type="text/css" href="themes/{$themes}/styles/categories.css" />
<link rel="alternate" type="application/atom+xml" title="{$sitetitle} - RSS" href="{$sitepath}/rss.php" />
<meta name="keywords" content="{$keywords}" />
<meta name="description" content="{$metadesc}" />
{assign var="cname" value=$smarty.get.id}
{if isset($categori)}
{foreach from=$categori item=inclink}
{if $inclink.catid eq $cname}
<meta name="description" content="{$metadesc}" />
<title>{$inclink.name|stripslashes} - {$sitetitle} {if isset($smarty.get.next)}[{$smarty.get.next}]{else}{/if}</title>
{/if}
{/foreach}
{/if}
{if isset($subcat)}
{foreach from=$subcat item=clink}
{if $clink.catid eq $cname}
<title>{$clink.name|stripslashes} - {$sitetitle} {if isset($smarty.get.next)}[{$smarty.get.next}]{else}{/if}</title>
{/if}
{/foreach}
{/if}
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript">
{literal}
$(function(){
$('#coolMenu').find('> li').hover(function(){
$(this).find('ul')
.removeClass('noJS')
.stop(true, true).slideToggle('fast');
});
});
{/literal}
</script>
</head>
<body>
<div id="content">
{config_load file="languages/lang_$langs.conf"}
{include file="themes/$themes/maindir.php"}
<div id="blanks">
<div id="leftblock">
{assign var="cname" value=$smarty.get.id}
{if isset($categori)}
{foreach from=$categori item=inclink}
{if $inclink.catid eq $cname}
 <div id="blockhead">&nbsp;{#latest#}&#187; {$inclink.name|stripslashes}</div>
{if $inclink.cuscat eq true}<div>{$inclink.cuscat|htmlspecialchars_decode}</div>{/if}
{/if}
{/foreach}
{/if}
{if isset($subcat)}
{foreach from=$subcat item=clink}
{if $clink.catid eq $cname}
 <div id="blockhead">&nbsp;{#latest#}&#187; {$clink.name|stripslashes}</div>
{if $clink.cuscat eq true}<div>{$clink.cuscat|htmlspecialchars_decode}</div>{/if}
{/if}
{/foreach}
{/if}
{section name="results" loop=$results}
{assign var="limittime" value=$results[results].bdate|timeTo}
{if $results[results].main eq 2 && $limittime lte $payday}
<div class="featuredscontainer">
{else}
<div class="featuredcontainer" style="background:{cycle values="#FCFCFC,#F8F8F8"}">
{/if}
<div class="featurelist">
{if $results[results].images neq 0}
{if $rewritemod == 1}
<a href="{$results[results].univer}-{$results[results].btexty|replace:"?":''|replace:"'":''|replace:'"':''|replace:'/':''|replace:':':''|urlencode}.html">
<img src="minthumb/{$results[results].images}" width="144px" height="82px" title="{$results[results].btexty}" /></a>
{/if}
{if $rewritemod == 2}
<a href="news.php?name={$results[results].univer}">
<img src="minthumb/{$results[results].images}" width="144px" height="82px" title="{$results[results].btexty}" /></a>
{/if}
{else}
<img src="themes/{$themes}/styles/images/noimage.png" width="144px" height="82px" alt="{$results[results].btexty}" /></a>
{/if}
{if $rewritemod == 1}
<a href="{$results[results].univer}-{$results[results].btexty|replace:"?":''|replace:"'":''|replace:'"':''|replace:'/':''|replace:':':''|urlencode}.html"><span class="ha4">{$results[results].btexty|stripslashes|truncate:75}</span></a>
{/if}
{if $rewritemod == 2}
<a href="news.php?name={$results[results].univer}"><span class="ha4">{$results[results].btexty|stripslashes|truncate:75}</span></a>
{/if}
<br />
<span class="smally">
<span class="docy">&nbsp;</span>{#published#}&nbsp;{$results[results].bdate|timeAgo}&nbsp;{#ago#}&nbsp;{#via#}
{if $results[results].buserid|default == true}<a href="profile.php?id={$results[results].buserid|default}">{$results[results].buser|truncate:12}</a>{else}{$results[results].buser|truncate:12}{/if}&nbsp;
<span class="time">&nbsp;</span>{$results[results].bdate|date_format:"%A, %B %e, %Y"}
<br/>
{if $results[results].badress eq true}
&nbsp;<span class="linker">&nbsp;</span><a href="{$results[results].badress}" target="_blank">{#visitsite#}</a>
{else}
&nbsp;{#editorial#}
{/if}&nbsp;<span class="comment">&nbsp;</span>
{if $rewritemod == 1}
<a href="{$results[results].univer}-{$results[results].btexty|replace:"?":''|replace:"'":''|replace:'"':''|replace:'/':''|replace:':':''|urlencode}.html#section">{#comments#} [{$results[results].commno}]</a>&nbsp;
{/if}
{if $rewritemod == 2}
<a href="news.php?name={$results[results].univer}#section">{#comments#} [{$results[results].commno}]</a>&nbsp;
{/if}
{if $results[results].rating == 0}<img style="position:relative;top:-1px;border:0px;" src="themes/{$themes}/styles/images/stars0.gif" width="50px" height="10px" border="0" border="0" />{/if}
{if $results[results].rating == 1.0}<img style="position:relative;top:-1px;border:0px;" src="themes/{$themes}/styles/images/stars1.gif" width="50px" height="10px" border="0" />{/if}
{if $results[results].rating == 1.5}<img style="position:relative;top:-1px;border:0px;" src="themes/{$themes}/styles/images/stars2.gif" width="50px" height="10px" border="0" />{/if}
{if $results[results].rating == 2.0}<img style="position:relative;top:-1px;border:0px;" src="themes/{$themes}/styles/images/stars2.gif" width="50px" height="10px" border="0" />{/if}
{if $results[results].rating == 2.5}<img style="position:relative;top:-1px;border:0px;" src="themes/{$themes}/styles/images/stars3.gif" width="50px" height="10px" border="0" />{/if}
{if $results[results].rating == 3.0}<img style="position:relative;top:-1px;border:0px;" src="themes/{$themes}/styles/images/stars3.gif" width="50px" height="10px" border="0" />{/if}
{if $results[results].rating == 3.5}<img style="position:relative;top:-1px;border:0px;" src="themes/{$themes}/styles/images/stars4.gif" width="50px" height="10px" border="0" />{/if}
{if $results[results].rating == 4.0}<img style="position:relative;top:-1px;border:0px;" src="themes/{$themes}/styles/images/stars4.gif" width="50px" height="10px" border="0" />{/if}
{if $results[results].rating == 4.5}<img style="position:relative;top:-1px;border:0px;" src="themes/{$themes}/styles/images/stars5.gif" width="50px" height="10px" border="0" />{/if}
{if $results[results].rating == 5.0}<img style="position:relative;top:-1px;border:0px;" src="themes/{$themes}/styles/images/stars5.gif" width="50px" height="10px" border="0" />{/if}
{#avgrat#}.&nbsp;&nbsp;{#usgrat#}&nbsp;{$results[results].rating} - {$results[results].total_ratings}&nbsp;{#votes#}
</span>
</div>
</div>
{/section}
<div id="paginate">
<span class="disabled">{#news#} {$paginate.first} - {$paginate.last} of {$paginate.total}.</span>
{paginate_prev}{paginate_next}
</div>
</div>
<div id="rightblock">
{if $adsoffon eq 2}
<div id="blockhead">{#sponsor#}</div>
{$senseup}
{/if}
<div id="blockd">
<div id="blockhead">{#latest#}</div>
{section name="onewse" loop=$onewse}
{if $rewritemod == 1}
<div id="rfeat"><a href="{$onewse[onewse].oniver}-{$onewse[onewse].otexty|replace:"?":''|replace:"'":''|replace:'"':''|replace:'/':''|replace:':':''|urlencode}.html"><span class="haty">{$onewse[onewse].otexty|stripslashes|truncate:98}</span></a></div>
{/if}
{if $rewritemod == 2}
<div id="rfeat"><a href="news.php?name={$onewse[onewse].oniver}"><span class="haty">{$onewse[onewse].otexty|stripslashes|truncate:98}</span></a></div>
{/if}
{$onewse[onewse].oamess|stripslashes|truncate:180}
{sectionelse}
{/section}
</div>
<div id="blockd">
<div id="blockhead">{#community#}</div>
{section name="reviews" loop=$reviews}
<div class="lfeat" style="background:{cycle values="#F8F8F8,#ffffff"}">
<a href="uploads/{$reviews[reviews].comimage}" title="{$reviews[reviews].comenter}"> 
<img src="minthumb/{$reviews[reviews].comimage}" width="25" height="25" alt="{$reviews[reviews].comenter}" border="0" /></a> 
{if $rewritemod == 1}
<a href="{$reviews[reviews].comrev}.html"><strong>{$reviews[reviews].comenter}</strong></a> - 
{/if}
{if $rewritemod == 2}
<a href="news.php?name={$reviews[reviews].comrev}"><strong>{$reviews[reviews].comenter}</strong></a> - 
{/if}
{$reviews[reviews].ctexte|stripslashes|truncate:200}<br />
<div id="realysmall">{$reviews[reviews].cdate|date_format:"%A, %B %e, %Y, %H:%M:%S"}, {$reviews[reviews].cdate|timeAgo}&nbsp;{#ago#}</div>
</div>
{/section}
</div>
   
</div>
</div>
Return current item: PHP Enter