<div class="post-date"> <span class="glyphicon glyphicon-user"> </span><span class="post-author"><?php echo ucWords(HTml::encode("{$value->createdBy->name}")); ?> </span> | <span class="glyphicon glyphicon-calendar"> </span><?php echo strftime("%c", strtotime($value->created_at)); ?> </div> <p class="post-content"> <?php if (empty($value->abstract)) { echo HtmlPurifier::process(Helper::myTruncate($value->detalle, 300, " ", "...")); } else { echo $value->abstract; } ?> </p> <div class="container-buttons"> <?php echo Html::a('Ver Más »', ['/articulo/' . Html::encode("{$value->seo_slug}")], ['class' => 'btn btn-primary', 'title' => 'Ver artículo completo']); ?> <?php echo Html::a("Comentarios <span class='badge'>{$value->totalcomentarios}</span>", ['/articulo/' . Html::encode("{$value->seo_slug}") . '#comments'], ['class' => 'btn btn-success', 'title' => 'Ver Comentarios']); ?> </div> </article>