{* 
//////
//    @version [ Wainuiomata ]
//    @package hwdVideoShare
//    @copyright (C) 2007 - 2009 Highwood Design
//    @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
//////
//    hwdVideoShare Template System:::This template system uses the Smarty Template Engine. 
//    For full documentation, including syntax usage please refer to http://www.smarty.net 
//    or our website at http://www.hwdmediashare.co.uk   
//////
//    This file generates the display for each separate category in the main category page. 
//    --$data->level = 0 is a top level category
//    --$data->level = 1 is a second level category
//    --$data->level = 2 is a third level category
//    Subcategories under the third level are not generated for the main category page.
//////
//    VARIABLES AVAILBLE IN THIS TEMPLATE FILE:                                        
//    -- $data->level.......The level of the category. Top level categories have the   
//                          $data->level = 0, subcategories have $data->level = 1 etc 
//    -- $data->title.......The title of the category                                  
//    -- $data->description.The description of the category                            
//    -- $data->num_vids....The number of videos in the category                       
//    -- $data->num_subcats.The number of subcategories the category
//////
*}

{if $data->level eq 0}
  <div class="box{$data->k}">
      <div style="float:left;padding: 0 5px 0 0;">{$data->thumbnail}</div>
      <div>
        <div class="listtitle">{$data->title}</div>
        <div class="listdesc">({if $data->num_vids gt 0 or $data->num_subcats eq 0}{$data->num_vids} {$smarty.const._HWDVIDS_INFO_VIDEOS}{/if}{if $data->num_vids gt 0 and $data->num_subcats gt 0}, {/if}{if $data->num_subcats gt 0}{$data->num_subcats} {$smarty.const._HWDVIDS_INFO_SUBCATS}{/if})</div>
        <div class="listdesc">{$data->description}</div>
      </div>
    <div style="clear:both;"></div>
  </div>
{elseif $data->level eq 1}
  {if $hideSubcats eq 0}
  <div class="box{$data->k}">
      <div style="float:left;padding: 0 5px 0 0;"><img src="{$URL_HWDVS_IMAGES}sub0category.png"></div>
      <div>
        <div class="listtitle">{$data->title}</div>
        <div class="listdesc">({if $data->num_vids gt 0 or $data->num_subcats eq 0}{$data->num_vids} {$smarty.const._HWDVIDS_INFO_VIDEOS}{/if}{if $data->num_vids gt 0 and $data->num_subcats gt 0}, {/if}{if $data->num_subcats gt 0}{$data->num_subcats} {$smarty.const._HWDVIDS_INFO_SUBCATS}{/if})</div>
        <div class="listdesc">{$data->description}</div>
      </div>
    <div style="clear:both;"></div>
  </div>
  {/if}
{elseif $data->level eq 2}
  {if $hideSubcats eq 0}
  <div class="box{$data->k}">
      <div style="float:left;padding: 0 5px 0 0;"><img src="{$URL_HWDVS_IMAGES}sub1category.png"></div>
      <div>
        <div class="listtitle">{$data->title}</div>
        <div class="listdesc">({if $data->num_vids gt 0 or $data->num_subcats eq 0}{$data->num_vids} {$smarty.const._HWDVIDS_INFO_VIDEOS}{/if}{if $data->num_vids gt 0 and $data->num_subcats gt 0}, {/if}{if $data->num_subcats gt 0}{$data->num_subcats} {$smarty.const._HWDVIDS_INFO_SUBCATS}{/if})</div>
        <div class="listdesc">{$data->description}</div>
      </div>
    <div style="clear:both;"></div>
  </div>
  {/if}
{/if}