Topic: BS 3 carousel snippet
If you need your <?php echo Blog::getPostsBlock(5); ?>
like bootstrap carousel commponent you should change your block.view.php from blog plugin to:
<div class="carousel slide" id="mycarousel" data-ride="carousel" data-interval="12000"> <div class="carousel-inner"> <?php foreach($posts as $post) { ?> <div class="item"> <h6 class="monstra-blog-title"> <a href="<?php echo Option::get('siteurl'); ?>/<?php echo Blog::$parent_page_name; ?>/<?php echo $post['slug'] ?>"><?php echo $post['title']; ?></a> </h6> <small class="monstra-blog-date">posted <b><?php echo Date::format($post['date'], 'd.m.Y'); ?></b></small> <div class="monstra-blog-post"> <p style="padding-top:4px;"><?php echo Text::cut(strip_tags($post['content']), 150); ?></p> </div> </div> <?php } ?> </div> </div> <script type='text/javascript'> $(function(){$('.item:first-child').addClass('active');}); </script>
if you know bootstrap syntax you can change view of your carousel with css and add to carousel new elements