<?php use_helper('tvtl', 'I18N') ?>
<div class="document docgroup">
  <h2><?php echo $title ?></h2>
  <div class="content">
    <?php foreach ($subPages as $key => $item): ?>
      <?php if (count($item['entries'])==0) continue ?>
      <hr/>
      <div style="font-size:larger;font-weight:bold;">
        <?php echo link_to($item['name'].' ('.$item['count'].' bài)', $item['url']) ?>
      </div>
      <?php foreach ($item['entries'] as $i=>$tblblogentry):?>
        <?php if ($item['list']=='bigview' && $i>0) $item['list'] = 'thumb'; ?>
        <?php echo $tblblogentry->getObject()->getGlobalThumb($item['list']) ?>
      <?php endforeach;?>
    <?php endforeach ?>
  </div>
</div>
