<?php if (count($tblblogentrys)>0): ?>
<div class="entrygroup">
  <h2>TIN TỨC THƯ VIỆN</h2>
  <div class="content">
    <?php foreach ($tblblogentrys as $i=>$tblblogentry): ?>
      <?php if ($i == 0): ?>
        <?php echo $tblblogentry->getObject()->getThumbWithLink($baseLink) ?>
        <b><?php echo $tblblogentry->getObject()->getTitleWithLink($baseLink) ?></b><br/>
        <?php echo $tblblogentry->getObject()->getEntryIntro() ?>
      <?php else: ?>
        <?php if ($i == 1) {echo '<ul>'; $start_ul = true;} ?>
        <li><?php echo $tblblogentry->getObject()->getTitleWithLink($baseLink) ?></li>
      <?php endif?>
    <?php endforeach; ?>
    <?php if (isset($start_ul)) {echo '</ul>'; $start_ul = null;} ?>
  </div>
</div>
<?php endif; ?>