templates/tdmdownloads_viewcat.tpl
<div class="tdmdownloads">
<!-- Download logo-->
<div class="tdmdownloads-logo center marg10">
<a title="<{$smarty.const._MD_TDMDOWNLOADS_DOWNLOAD}>" href="<{$mod_url}>/index.php"><img src="<{$mod_url}>/assets/images/logo-en.gif" alt="<{$smarty.const._MD_TDMDOWNLOADS_DOWNLOAD}>"></a>
</div>
<!-- Category path -->
<div class="bold marg1 pad1"><{$category_path}></div>
<{if $cat_description|default:'' != ''}>
<!-- Category description -->
<div class="marg5 pad5"><{$cat_description}></div>
<{/if}>
<!-- Start Show categories information -->
<div class="tdmdownloads-categories">
<table>
<tr>
<{foreach item=category from=$subcategories|default:null}>
<td>
<div class="tdmdownloads-data">
<div class="tdmdownloads-title">
<div class="floatleft title"><h2><a title="<{$category.title}>" href="<{$mod_url}>/viewcat.php?cid=<{$category.id}>"><{$category.title}></a></h2></div>
<div class="floatright total xo-pagact"><a title="<{$category.title}>" href="<{$mod_url}>/viewcat.php?cid=<{$category.id}>"><{$category.totaldownloads}></a></div>
<div class="endline"></div>
</div>
<div class="tdmdownloads-body justify">
<{if $category.image|default:'' != ''}>
<a class="marg1 pad1" title="<{$category.title}>" href="<{$mod_url}>/viewcat.php?cid=<{$category.id}>"><img class="<{$img_float}>" src="<{$category.image}>" alt="<{$category.title}>"></a>
<{/if}>
<{$category.description_main}>
<div class="endline"></div>
</div>
<{if $category.subcategories|default:'' != ''}>
<div class="tdmdownloads-subtitle"><{$smarty.const._MD_TDMDOWNLOADS_INDEX_SCAT}>
<ul><{$category.subcategories}></ul>
</div>
<{/if}>
</div>
</td>
<{if $category.count is div by $nb_catcol}>
</tr>
<tr>
<{/if}>
<{/foreach}>
</tr>
</table>
</div>
<!-- End Show categories information -->
<!-- RSS logo -->
<div class="tdmdownloads-rss">
<a title="<{$smarty.const._MD_TDMDOWNLOADS_RSS}>" href="<{$mod_url}>/rss.php?cid=<{$category_id}>"><img src="<{$mod_url}>/assets/images/rss.gif" alt="<{$smarty.const._MD_TDMDOWNLOADS_RSS}>"></a>
</div>
<{if $bl_affichage==1}>
<!-- Start Summary informations -->
<div class="tdmdownloads-linetitle"><{$smarty.const._MD_TDMDOWNLOADS_INDEX_BLNAME}></div>
<table class="mrag2 pad2 tdmdownloads-summary">
<tr>
<{if $bl_date|default:'' != ''}>
<td class="width33 top">
<div class="bold mrag2 pad2">
<img src="<{$mod_url}>/assets/images/icons/16/date.png" alt="<{$smarty.const._MD_TDMDOWNLOADS_INDEX_BLDATE}>"><{$smarty.const._MD_TDMDOWNLOADS_INDEX_BLDATE}>
</div>
<div class="mrag2 pad2">
<ul>
<{foreach item=bl_date from=$bl_date}>
<li><a title="<{$bl_date.title}>" href="<{$mod_url}>/singlefile.php?cid=<{$bl_date.cid}>&lid=<{$bl_date.id}>"><{$bl_date.title}></a> (<{$bl_date.date}>)</li>
<{/foreach}>
</ul>
</div>
</td>
<{/if}>
<{if $bl_pop|default:'' != ''}>
<td class="width33 top">
<div class="bold mrag2 pad2">
<img src="<{$mod_url}>/assets/images/icons/16/hits.png" alt="<{$smarty.const._MD_TDMDOWNLOADS_INDEX_BLPOP}>"><{$smarty.const._MD_TDMDOWNLOADS_INDEX_BLPOP}>
</div>
<div class="mrag2 pad2">
<ul>
<{foreach item=bl_pop from=$bl_pop}>
<li><a title="<{$bl_pop.title}>" href="<{$mod_url}>/singlefile.php?cid=<{$bl_pop.cid}>&lid=<{$bl_pop.id}>"><{$bl_pop.title}></a> (<{$bl_pop.hits}>)</li>
<{/foreach}>
</ul>
</div>
</td>
<{/if}>
<{if $bl_rating|default:'' != ''}>
<td class="width33 top">
<div class="bold mrag2 pad2">
<img src="<{$mod_url}>/assets/images/icons/16/votes.png" alt="<{$smarty.const._MD_TDMDOWNLOADS_INDEX_BLRATING}>"><{$smarty.const._MD_TDMDOWNLOADS_INDEX_BLRATING}>
</div>
<div class="mrag2 pad2">
<ul>
<{foreach item=bl_rating from=$bl_rating}>
<li><a title="<{$bl_rating.title}>" href="<{$mod_url}>/singlefile.php?cid=<{$bl_rating.cid}>&lid=<{$bl_rating.id}>"><{$bl_rating.title}></a> (<{$bl_rating.rating}>)</li>
<{/foreach}>
</ul>
</div>
</td>
<{/if}>
</tr>
</table>
<!-- End Summary informations -->
<{/if}>
<{if $aff_summary}>
<!-- Start Automatic Summary -->
<div class="tdmdownloads-linetitle"><{$smarty.const._MD_TDMDOWNLOADS_CAT_SUMMARY}></div>
<div class="tdmdownloads-summary">
<table>
<tr>
<{foreach item=summary from=$summary}>
<td><{$summary.title}></td>
<{if $summary.count is div by 3}>
</tr>
<tr>
<{/if}>
<{/foreach}>
</tr>
</table>
</div>
<!-- End Automatic Summary -->
<{/if}>
<div class="tdmdownloads-thereare"><{$lang_thereare}></div>
<{if $navigation|default:false == true}>
<!-- Start navigation -->
<div class="tdmdownloads-navigation">
<div class="tdmdownloads-navigation-items">
<span><{$smarty.const._MD_TDMDOWNLOADS_CAT_SORTBY}></span>
<span>
<{$smarty.const._MD_TDMDOWNLOADS_CAT_TITLE}> (
<a title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_TITLE}>" href="<{$mod_url}>/viewcat.php?cid=<{$category_id}>&sort=title&order=ASC">
<img src="<{$mod_url}>/assets/images/up.gif" align="middle" alt="<{$smarty.const._MD_TDMDOWNLOADS_CAT_TITLEATOZ}>" title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_TITLEATOZ}>">
</a>
<a title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_TITLE}>" href="<{$mod_url}>/viewcat.php?cid=<{$category_id}>&sort=title&order=DESC">
<img src="<{$mod_url}>/assets/images/down.gif" align="middle" alt="<{$smarty.const._MD_TDMDOWNLOADS_CAT_TITLEZTOA}>" title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_TITLEZTOA}>">
</a>)
</span>
<span>
<{$smarty.const._MD_TDMDOWNLOADS_CAT_DATE}>(
<a title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_DATE}>" href="<{$mod_url}>/viewcat.php?cid=<{$category_id}>&sort=date&order=ASC">
<img src="<{$mod_url}>/assets/images/up.gif" align="middle" alt="<{$smarty.const._MD_TDMDOWNLOADS_CAT_DATEOLD}>" title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_DATEOLD}>">
</a>
<a title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_DATE}>" href="<{$mod_url}>/viewcat.php?cid=<{$category_id}>&sort=date&order=DESC">
<img src="<{$mod_url}>/assets/images/down.gif" align="middle" alt="<{$smarty.const._MD_TDMDOWNLOADS_CAT_DATENEW}>" title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_DATENEW}>">
</a>)
</span>
<span>
<{$smarty.const._MD_TDMDOWNLOADS_CAT_RATING}>(
<a title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_RATING}>" href="<{$mod_url}>/viewcat.php?cid=<{$category_id}>&sort=rating&order=ASC">
<img src="<{$mod_url}>/assets/images/up.gif" align="middle" alt="<{$smarty.const._MD_TDMDOWNLOADS_CAT_RATINGLTOH}>" title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_RATINGLTOH}>">
</a>
<a title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_RATING}>" href="<{$mod_url}>/viewcat.php?cid=<{$category_id}>&sort=rating&order=DESC">
<img src="<{$mod_url}>/assets/images/down.gif" align="middle" alt="<{$smarty.const._MD_TDMDOWNLOADS_CAT_RATINGHTOL}>" title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_RATINGHTOL}>">
</a>)
</span>
<span>
<{$smarty.const._MD_TDMDOWNLOADS_CAT_POPULARITY}>(
<a title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_POPULARITY}>" href="<{$mod_url}>/viewcat.php?cid=<{$category_id}>&sort=hits&order=ASC">
<img src="<{$mod_url}>/assets/images/up.gif" align="middle" alt="<{$smarty.const._MD_TDMDOWNLOADS_CAT_POPULARITYLTOM}>" title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_POPULARITYLTOM}>">
</a>
<a title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_POPULARITY}>" href="<{$mod_url}>/viewcat.php?cid=<{$category_id}>&sort=hits&order=DESC">
<img src="<{$mod_url}>/assets/images/down.gif" align="middle" alt="<{$smarty.const._MD_TDMDOWNLOADS_CAT_POPULARITYMTOL}>" title="<{$smarty.const._MD_TDMDOWNLOADS_CAT_POPULARITYMTOL}>">
</a>)
</span>
</div>
<div class="mrag1 pad1 bold"><{$affichage_tri}></div>
</div>
<!-- End navigation -->
<{/if}>
<{if $file|default:'' != ''}>
<!-- Start Show new files in Category page -->
<div class="tdmdownloads-linetitle"><{$smarty.const._MD_TDMDOWNLOADS_CAT_LIST}></div>
<table>
<tr>
<!-- Start new link loop -->
<{section name=i loop=$file}>
<td class="col_width<{$nb_dowcol}> top center">
<{include file="db:tdmdownloads_download.tpl" down=$file[i]}>
</td>
<{if $file[i].count is div by $nb_dowcol}>
</tr>
<tr>
<{/if}>
<{/section}>
<!-- End new link loop -->
</tr>
</table>
<{if $pagenav|default:'' != ''}>
<!-- Download Pagenav-->
<div class="tdmdownloads-pagenav"><{$pagenav}></div>
<{/if}>
<!-- End Show new files in Category page -->
<{/if}>
<{include file="db:system_notification_select.tpl"}>
</div>