Topic: blog grid

hi
blog template
Preview

how I can do this;
thanks

Re: blog grid

Demo

<?php include 'header.html' ?>
<?php include 'navbar.html' ?>
<div class="container">
    <?php Morfy::factory()->runAction('theme_content_before'); ?>
      <?php
            $posts = Morfy::factory()->getPages(CONTENT_PATH . '/blog/', 'date', 'DESC', array('404','index'));
      $c = 0;
      foreach( $posts as $post ){
        $b = (( ++$c % 3 == 0 ) ? true : false );
        if ( $b ) { echo '<div class="row">'; };
    ?>

              <div class="col-sm-6 col-md-4">
                  <div class="thumbnail">
                    <img data-src="holder.js/100%x200" alt="100%x200" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjQyIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDI0MiAyMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxkZWZzLz48cmVjdCB3aWR0aD0iMjQyIiBoZWlnaHQ9IjIwMCIgZmlsbD0iI0VFRUVFRSIvPjxnPjx0ZXh0IHg9IjkzIiB5PSIxMDAiIHN0eWxlPSJmaWxsOiNBQUFBQUE7Zm9udC13ZWlnaHQ6Ym9sZDtmb250LWZhbWlseTpBcmlhbCwgSGVsdmV0aWNhLCBPcGVuIFNhbnMsIHNhbnMtc2VyaWYsIG1vbm9zcGFjZTtmb250LXNpemU6MTFwdDtkb21pbmFudC1iYXNlbGluZTpjZW50cmFsIj4yNDJ4MjAwPC90ZXh0PjwvZz48L3N2Zz4=" data-holder-rendered="true" style="height: 200px; width: 100%; display: block;">
                    <div class="caption">
                      <h3><?php echo $post['title'];?></h3>
                      <p><?php echo $post['content_short'];?></p>
                      <p><a href="<?php echo $config['site_url'].'/blog/'.$post['slug'];?>" class="btn btn-primary">more..</a></p>
                    </div>
                  </div>
              </div>
                
                
    <?php if ( $b ) { echo '</div>';} }; ?>
    <?php Morfy::factory()->runAction('theme_content_after'); ?>
</div>
<?php include 'footer.html' ?>
..::: Moncho Varela ::::..   ..::: @Nakome ::::..   ..::: Github ::::..