<?php $n = $m % 4; ?> <li> <div class=""> <div class="product-images"><?php include "includes/thumbnail.php"; ?> </div> <div class="product-detailed"><div class="rating"><img class="shuffle" src="" alt=""/></div> <div class="judul"><a href="<?php the_permalink(); ?> " class="title"> <?php the_trim_title('', '', true, '25'); ?> </a></div> <div class="details"> <p> <?php if (ot_get_option('plugin') == "reviewazon") { echo substr(get_post_meta($post->ID, "ReviewAZON_Description", true), 0, 40); } elseif (ot_get_option('plugin') == "wpzonbuilder") { echo substr(get_post_meta($post->ID, "amzn_ProductDescription", true), 0, 40); } elseif (ot_get_option('plugin') == "asg") { $excerpt = get_the_excerpt(); echo string_limit_words($excerpt, 6); } else { $excerpt = get_the_excerpt(); echo string_limit_words($excerpt, 6);
?> <?php $n = $m % 4; ?> <li> <div class="random-thumb"> <?php include "includes/thumbnail.php"; ?> </div> <div class="random-title"> <a href="<?php the_permalink(); ?> " class="title"> <?php the_trim_title('', '', true, '30'); ?> </a> </div> <div class="description"> <p> <?php if (ot_get_option('plugin') == "reviewazon") { echo substr(get_post_meta($post->ID, "ReviewAZON_Description", true), 0, 60); } elseif (ot_get_option('plugin') == "wpzonbuilder") { echo substr(get_post_meta($post->ID, "amzn_ProductDescription", true), 0, 60); } elseif (ot_get_option('plugin') == "asg") { $excerpt = get_the_excerpt(); echo string_limit_words($excerpt, 15); } else { $excerpt = get_the_excerpt(); echo string_limit_words($excerpt, 15);