?> &t=<?php echo $p->title; ?> ">Facebook</a> <a class="googleplus" target="_blank" href="https://plus.google.com/share?url=<?php echo $p->url; ?> ">Google+</a> </div> </div> <div class="related"> <h4>Related posts</h4> <?php echo get_related($p->tag); ?> </div> <div id="comments" class="comments border"> <?php if (facebook()) { ?> <div class="fb-comments" data-href="<?php echo $p->url; ?> " data-numposts="<?php echo config('fb.num'); ?> " data-colorscheme="<?php echo config('fb.color'); ?>
echo disqus($p->title, $p->url); ?> <?php } ?> <?php if (disqus_count()) { ?> <?php echo disqus_count(); ?> <?php } ?> <?php $tags = get_related($p->related, true, config('related.count')); ?> <?php $char = 30; $total = count($tags); $i = 1; if ($total >= 1) { ?> <div class="related related-posts" style="margin-top:30px;position:relative;"> <hr> <h2 class="heading">Related Posts</h2> <?php foreach ($tags as $t) { ?> <div class="item col-md-4"> <?php
echo $p->url; ?> &t=<?php echo $p->title; ?> ">Facebook</a> <a class="googleplus" target="_blank" href="https://plus.google.com/share?url=<?php echo $p->url; ?> ">Google+</a> </div> </div> <div class="related"> <h4>Related posts</h4> <?php echo get_related($p->related); ?> </div> <div id="comments" class="comments border"> <?php if (facebook()) { ?> <div class="fb-comments" data-href="<?php echo $p->url; ?> " data-numposts="<?php echo config('fb.num'); ?> " data-colorscheme="<?php echo config('fb.color'); ?>
if ($prod_nav["prev"]) { $idprev = $prod_nav["prev"]->id_product; echo "<a href=\"/products/detail/?id_product=" . $idprev . "#wrapdetail\" class=\"prevbtn\"><span>prev</span></a>"; } if ($prod_nav["next"]) { $idnext = $prod_nav["next"]->id_product; echo "<a href=\"/products/detail/?id_product=" . $idnext . "#wrapdetail\" class=\"nextbtn\"><span>next</span></a>"; } ?> </div> <?php $related = get_related($id_product, $type); if ($related) { echo "\n <h2 class=\"prodrelated\">You may also like</h2>\n\n <div class=\"wraplistitem listitemrelated\">\n <ul class=\"productitem\">\t\t\t\t\t\t\n "; foreach ($related as $rowrelated) { $cretime = $rowrelated->cretime; $nowtime = strtotime(date("d M Y")); $diff = $nowtime - strtotime($cretime); $tickernew = ""; if ($diff <= 302400) { $tickernew = "<span class=\"tickernew\"></span>"; } echo "\n <li>\n <a class=\"linkproduct\" href=\"/products/detail/?type=" . $rowrelated->type . "&id_product=" . $rowrelated->id . "\">\n <div class=\"listitem\">\n <span><img src=\"/mmcp/images/products/" . $rowrelated->img . "\" height=\"312\" width=\"188\"/></span>\n </div>\n <span class=\"productname\">" . $rowrelated->product_name . "</span>\n <span class=\"productprice\">IDR " . number_format($rowrelated->product_price, 0, "", ".") . "</span> \n " . $tickernew . "\n </a> \n </li>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n "; } echo "</ul></div>\t\t\t\t\t\t\n "; } ?>