function meso_feat_set_full() { $feat_thumb = dez_get_featured_post_image('<div class="feat-thumb"><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">', '</a></div>', '', '', 'alignleft', 'large', dez_get_singular_cat('false'), the_title_attribute('echo=0'), false); return $feat_thumb; }
the_author_posts_link(); ?> </span> <span class="post-time"><i class="fa fa-clock-o"></i><?php echo the_time(get_option('date_format')); ?> </span> <?php if (is_tax()) { echo the_taxonomies('before=<span class="post-category"><i class="fa fa-file"></i>&after=</span>'); } else { ?> <span class="post-category"><i class="fa fa-file"></i><?php echo dez_get_singular_cat(); ?> </span> <?php } if (comments_open()) { if (!is_tax()) { ?> <span class="post-comment"><i class="fa fa-comment"></i><?php comments_popup_link(__('No Comment', TEMPLATE_DOMAIN), __('1 Comment', TEMPLATE_DOMAIN), __('% Comments', TEMPLATE_DOMAIN)); ?> </span> <?php } } ?>
<!-- POST START --> <article <?php post_class($oddpost); ?> id="post-<?php the_ID(); ?> "> <?php if (wp_is_mobile()) { $postimg = 'full'; } else { $postimg = 'medium'; } echo dez_get_featured_post_image("<div class='post-thumb in-archive'>" . $thepostlink, "</a></div>", 300, 300, "alignleft img-is-" . $postimg, $postimg, dez_get_singular_cat('false'), the_title_attribute('echo=0'), false); ?> <div class="post-right"> <h2 class="post-title entry-title"><a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></h2> <?php get_template_part('lib/templates/post-meta');
function widget($args, $instance) { global $bp_existed, $post; // outputs the content of the widget extract($args); // Make before_widget, etc available. $feat_title = empty($instance['title']) ? __('Featured Categories', TEMPLATE_DOMAIN) : apply_filters('widget_title', $instance['title']); $feat_name = isset($instance['featcatname']) ? $instance['featcatname'] : ""; $feat_thumb = isset($instance['featthumb']) ? $instance['featthumb'] : ""; $feat_thumb_size = isset($instance['featthumbsize']) ? $instance['featthumbsize'] : ""; $feat_total = isset($instance['feattotal']) ? $instance['feattotal'] : ""; $unique_id = $args['widget_id']; echo $before_widget; echo $before_title . $feat_title . $after_title; echo "<ul class='recent-postcat'>"; $my_query = new WP_Query('cat=' . $feat_name . '&' . 'showposts=' . $feat_total); while ($my_query->have_posts()) { $my_query->the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID(); $thepostlink = '<a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">'; ?> <li class="<?php echo dez_get_has_thumb_check(); ?> <?php echo 'the-sidefeat-' . $feat_thumb_size; ?> "> <?php if ($feat_thumb == 'yes') { if ($feat_thumb_size == '' || $feat_thumb_size == 'thumbnail') { echo dez_get_featured_post_image($thepostlink, '</a>', 50, 50, 'featpost alignleft', 'thumbnail', dez_get_singular_cat('false'), the_title_attribute('echo=0'), false); } else { echo dez_get_featured_post_image('<div class="medium-thumb"><p>' . $thepostlink, '</a></p></div>', 480, 320, 'featpost alignleft', 'medium', dez_get_singular_cat('false'), the_title_attribute('echo=0'), false); } } ?> <div class="feat-post-meta"> <div class="feat-title"><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></div> <small><?php echo the_time(get_option('date_format')); if (comments_open()) { ?> <span class="widget-feat-comment"> - <?php comments_popup_link(__('No Comment', TEMPLATE_DOMAIN), __('1 Comment', TEMPLATE_DOMAIN), __('% Comments', TEMPLATE_DOMAIN)); ?> </span><?php } ?> </small> </div> </li> <?php } wp_reset_query(); echo "</ul>"; echo $after_widget; // end echo result }
?> <!-- POST START --> <article <?php post_class($oddpost . ' feat-' . $feat_size . ' post-style-' . $post_blog_style); ?> id="post-<?php the_ID(); ?> "> <?php do_action('bp_before_post_title'); ?> <?php echo dez_get_featured_post_image("<div class='post-thumb in-archive size-{$feat_size}'>" . $thepostlink, "</a></div>", $thumb_w, $thumb_h, "alignleft img-is-" . $feat_size, $feat_size, dez_get_singular_cat('false'), the_title_attribute('echo=0'), false); ?> <div class="post-right"> <h2 class="post-title entry-title"><a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></h2> <?php get_template_part('lib/templates/post-meta');
<a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "> <?php echo dez_get_featured_post_image('', '', 120, 120, 'alignleft', 'thumbnail', dez_get_singular_cat('false'), the_title_attribute('echo=0'), false); ?> </a> <div class="feat-right"> <h2 class="entry-title feat-title"><a rel="bookmark" href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php echo the_title(); ?> </a></h2> <div class="feat-meta"> <span class="feat_author vcard"><?php the_author_posts_link(); ?> </span> <span class="feat_time entry-date"><abbr class="published" title="<?php echo esc_attr(get_the_date('c'));
<a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "> <?php echo dez_get_featured_post_image('<div class="feat-thumb">', '</div>', 480, 200, 'alignleft', 'featured-post-img', dez_get_singular_cat('false'), the_title_attribute('echo=0'), false); ?> </a> <h2 class="entry-title feat-title"><a rel="bookmark" href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php echo the_title(); ?> </a></h2> <div class="feat-meta"><span class="feat_author vcard"><?php the_author_posts_link(); ?> </span><span class="feat_time entry-date"><abbr class="published" title="<?php echo esc_attr(get_the_date('c')); ?> "><?php echo the_time(get_option('date_format'));
$woo_cur_symbol = get_woocommerce_currency_symbol(); } ?> <div class="imageElement post-<?php the_ID(); ?> "> <?php $the_thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "featured-slider-img"); $thumbnail_src = $the_thumbnail_src[0]; $check_thumb = strpos($thumbnail_src, '640x480'); if ($check_thumb) { echo dez_get_featured_slider_image("", "", 640, 480, "alignleft full", "featured-slider-img", dez_get_singular_cat('false'), the_title_attribute('echo=0'), true); } else { echo dez_get_featured_slider_image("", "", 640, 480, "alignleft full", "full", dez_get_singular_cat('false'), the_title_attribute('echo=0'), true); } ?> <h3><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php echo the_title(); ?> </a><?php if ($post_regular_price) { echo '<span class="pricebox">' . $woo_cur_symbol . $post_regular_price . '</span>';
if ($my_query->have_posts()) { echo '<div id="post-related">' . '<h4>' . __('Related Posts', TEMPLATE_DOMAIN) . '</h4>'; while ($my_query->have_posts()) { $my_query->the_post(); $thepostlink = '<a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">'; ?> <div class="feat-cat-meta post-<?php the_ID(); if ($post_count == 2 || $post_count == 5) { echo ' feat-center'; } ?> "> <div class="related-post-thumb"> <?php echo dez_get_featured_post_image($thepostlink, "</a>", 250, 250, "aligncenter", "thumbnail", dez_get_singular_cat('false'), the_title_attribute('echo=0'), false); ?> </div> <h2><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></h2> </div> <?php $post_count++;