<?php use_helper('I18N', 'tvtl', 'Javascript', 'ModalBox'); ?>
<div>
  <div style="margin-bottom:5px;font-size:larger;">
    <label><?php echo blogStore::getCategoryPath($cat_id) ?></label>
  </div>
  <?php foreach ($pagers as $key => $pager): ?>
    <div class="nowrap entrygroup">
      <h2>
        <label><?php echo blogStore::getPostLink($key, 'entry', 'Tạo % mới') ?></label>
        <?php echo link_to($categoryItems[$key]->name, '/entry/list?cat_id='.$key); ?>
      </h2>
      <div class="content">
        <?php $tblblogcategoryentrys = $pager->getResult() ?>
        <?php if (count($tblblogcategoryentrys) > 0): ?>
          <?php $tblentry = array_shift($tblblogcategoryentrys)->getTblblogentry() ?>
          <?php echo $tblentry->getObject()->getThumbWithLink() ?>
          <b><?php echo $tblentry->getObject()->getTitleWithLink() ?></b><br/>
          <?php echo $tblentry->getObject()->getEntryIntro() ?>
        <?php endif ?>
        <?php if (count($tblblogcategoryentrys) > 0): ?>
          <ul>
          <?php foreach ($tblblogcategoryentrys as $i => $tblblogcategoryentry): ?>
            <li><?php echo $tblblogcategoryentry->getObject()->getTitleWithLink() ?></li>
          <?php endforeach;?>
          </ul>
        <?php endif ?>
      </div>
    </div>
  <?php endforeach ?>
</div>