<?php $feat_thumb = dez_get_featured_post_image('<div class="feat-thumb"><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">', '</a></div>', 480, 200, 'alignleft', 'featured-post-img', dez_get_image_alt_text(), the_title_attribute('echo=0'), false); $feat_post_thumb = apply_filters('meso_top_feat_thumb', $feat_thumb); ?> <?php echo $feat_post_thumb; ?> <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> <?php do_action('bp_before_feat_meta'); ?> <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')); ?>
printf(__('%1$s', 'mesocolumn'), $relatedtext); echo '</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_image_alt_text(), 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++;
$allposttype = dez_get_all_posttype(); query_posts(array('post__in' => explode(',', $featured_post), 'post_type' => $allposttype, 'posts_per_page' => 100, 'ignore_sticky_posts' => 1, 'orderby' => 'post__in')); while (have_posts()) { the_post(); $post_regular_price = get_post_meta($post->ID, '_regular_price', true); if (function_exists('get_woocommerce_currency_symbol')) { $woo_cur_symbol = get_woocommerce_currency_symbol(); } ?> <div class="imageElement post-<?php the_ID(); ?> "> <?php echo dez_get_featured_slider_image("", "", 640, 480, "alignleft full", "featured-slider-img", dez_get_image_alt_text(), 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>'; }
function widget($args, $instance) { global $bp_existed, $post; // outputs the content of the widget extract($args); // Make before_widget, etc available. $cpt_title = empty($instance['title']) ? __('Custom Posts', 'mesocolumn') : apply_filters('widget_title', $instance['title']); $cpt_name = isset($instance['cptname']) ? $instance['cptname'] : ""; $cpt_thumb = isset($instance['cptthumb']) ? $instance['cptthumb'] : ""; if ($cpt_thumb == 'yes') { $cpt_thumb_size = isset($instance['cptthumbsize']) ? $instance['cptthumbsize'] : ""; } else { $cpt_thumb_size = 'thumb_off'; } $cpt_data = isset($instance['cptdata']) ? $instance['cptdata'] : ""; $cpt_total = isset($instance['cpttotal']) ? $instance['cpttotal'] : ""; $unique_id = $args['widget_id']; echo $before_widget; echo $before_title . $cpt_title . $after_title; echo "<ul class='featured-cat-posts'>"; $my_query = new WP_Query('post_type=' . $cpt_name . '&' . 'showposts=' . $cpt_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-' . $cpt_thumb_size; ?> "> <?php if ($cpt_thumb == 'yes') { if ($cpt_thumb_size == '' || $cpt_thumb_size == 'thumbnail') { echo dez_get_featured_post_image($thepostlink, '</a>', 50, 50, 'featpost alignleft', 'thumbnail', dez_get_image_alt_text(), the_title_attribute('echo=0'), false); } else { echo dez_get_featured_post_image('' . $thepostlink, '</a>', 480, 320, 'featpost alignleft', 'medium', dez_get_image_alt_text(), the_title_attribute('echo=0'), false); } } ?> <div class="feat-post-meta"> <h5 class="feat-title"><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></h5> <?php if ($cpt_data != 'disable') { ?> <div class="feat-meta"><small><?php echo the_time(get_option('date_format')); if (comments_open()) { ?> <span class="widget-feat-comment"> - <?php comments_popup_link(__('No Comment', 'mesocolumn'), __('1 Comment', 'mesocolumn'), __('% Comments', 'mesocolumn')); ?> </span><?php } ?> </small></div> <?php } ?> </div> </li> <?php } wp_reset_postdata(); echo "</ul>"; echo $after_widget; // end echo result }