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; }
<?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')); ?>
<!-- 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');
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++;
<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'));
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++;