<div class="wrapper_block">
    <div class="blog-widget parallax fullwidth-block">
        <div class="container">
            <div class="sixteen columns">

                <div class="wrapper">
                    <h3 class="pull-left title">
                        <?php echo $heading_title;?>
                    </h3>
                </div>
                <div class="from-blog carouFredSel">
                    <div class="carouFredSel-controls">
                        <div class="carouFredSel-buttons">
                            <a id="blog-carousel-prev" class="prev"></a>
                            <a id="blog-carousel-next" class="next"></a>
                        </div>
                    </div>
                    <div class="carousel">
                        <ul class="slides">
                            <?php foreach ($posts as $post) : ?>
                            <li>
                                <?php if($post['thumb']): ?>
                                <div class="image"><a href="<?php echo $post['href'];?>"><img src="<?php echo $post['thumb'];?>" alt=""></a></div>
                                <?php endif; ?>
                                <div class="text">
                                    <h5><a href="<?php echo $post['href'];?>" rel="bookmark" title=""><?php echo $post['title'];?></a></h5>
                                    <div class="date"><?php echo $post['posted_date'];?>&nbsp;   <?php if ($post['author_name']) : ?>|   &nbsp;by <a href="#"><?php echo $post['author_name'];?></a><?php endif; ?></div>
                                    <?php if ($post['short_description']) : ?>
                                    <?php echo $post['short_description'];?>...
                                    <?php endif; ?>
                                </div>
                            </li>
                            <?php endforeach; ?>

                        </ul>
                    </div>

                </div>
            </div>
        </div>
    </div>

</div>

<script type="text/javascript">
    jQuery(function() {
        var blogCarousel = jQuery(".from-blog .carousel ul");
        var blogCarouselMax = 2;

        blogCarousel.carouFredSel({
            responsive: true,
            width: '100%',
            scroll: 1,
            prev: '#blog-carousel-prev',
            next: '#blog-carousel-next',
            items: {
                width: 400,
                visible: {
                    min: 1,
                    max: blogCarouselMax
                }
            }
        });

    });
</script>