<div class="c-content-box c-size-md c-bg-grey-1">
    <div class="container">
        <!-- Begin: Testimonals 1 component -->
        <div class="c-content-blog-post-card-1-slider" data-slider="owl" data-items="3" data-auto-play="8000">
            <!-- Begin: Title 1 component -->
            <div class="c-content-title-1">
                <h3 class="c-center c-font-uppercase c-font-bold">Recent Blog Posts</h3>
                <div class="c-line-center c-theme-bg">
                </div>
            </div>
            <!-- End-->
            <!-- Begin: Owlcarousel -->
            <div class="owl-carousel owl-theme c-theme">
                <?php
                $ebrand = $db->query("SELECT * FROM parts WHERE category = '12' order by id desc");
                while($brand=$db->fetchNextArray($ebrand)){?>
                <div class="item">
                    <div class="c-content-blog-post-card-1 c-option-2">
                        <div class="c-media c-content-overlay">
                            <div class="c-overlay-wrapper">
                                <div class="c-overlay-content">
                                    <a href="<?php echo seourl('post',$brand['id']);?>"><i class="icon-link"></i></a>
                                    <?php  $eimage1=$db->query("SELECT * FROM picturespart where adid='".$brand['id']."' and profile=1 ");
                                    $image1=$db->fetchNextArray($eimage1); ?>
                                    <a href="<?php echo $image1['file'];?>" data-lightbox="fancybox" data-fancybox-group="gallery">
                                        <i class="icon-magnifier"></i>
                                    </a>
                                </div>
                            </div>
                            <img class="c-overlay-object img-responsive" src="<?php echo $globalConfig['baseurl'] ?>/include/image/output.php?image=../../<?php echo $image1['file'] ?>&width=680&height=500" alt="">
                        </div>
                        <div class="c-body">
                            <div class="c-title c-font-uppercase c-font-bold">
                                <a href="<?php echo seourl('post',$brand['id']);?>"><?php echo $brand['name']; ?></a>
                            </div>
                            <div class="c-author">
                                <a href="#"><span class="c-font-uppercase">Blog Post</span></a>

                            </div>

                            <p>
                                <?php echo $brand['description']; ?>
                            </p>
                        </div>
                    </div>
                </div>
<?php } ?>
            </div>
            <!-- End-->
        </div>
        <!-- End-->
    </div>
</div>