function wpex_post_entry_author_avatar() { // Lets bail if the author avatar shouldn't be displayed if (!wpex_post_entry_author_avatar_enabled()) { return; } // Get post data global $post; $post_id = $post->ID; $output = ''; $author_url = get_author_posts_url(get_the_author_meta('ID')); $author_avatar = get_avatar(get_the_author_meta('user_email'), apply_filters('wpex_author_bio_avatar_size', 74)); // Output the author avatar $output .= '<div class="blog-entry-author-avatar">'; $output .= '<a href="' . $author_url . '" title="' . __('Visit Author Page', 'wpex') . '">' . $author_avatar . '</a>'; $output .= '</div>'; echo $output; }
echo the_title(); ?> " /></a> <?php } ?> <?php } ?> </div><!-- .blog-entry-media --> <?php } ?> <div class="blog-entry-content clr"> <header class="clr <?php if (wpex_post_entry_author_avatar_enabled()) { echo 'header-with-avatar'; } ?> "> <h2 class="blog-entry-title"><a href="<?php the_permalink(); ?> " title="<?php echo esc_attr(the_title_attribute('echo=0')); ?> " rel="bookmark"><?php the_title(); ?> </a></h2> <?php
* * @package Total * @subpackage Partials/Blog * @author Alexander Clarke * @copyright Copyright (c) 2014, Symple Workz LLC * @link http://www.wpexplorer.com * @since Total 1.6.0 * @version 1.0.0 */ // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // Get post id $post_id = get_the_ID(); $display_avatar = wpex_post_entry_author_avatar_enabled($post_id); ?> <header class="clr <?php if ($display_avatar) { echo 'header-with-avatar'; } ?> "> <h2 class="blog-entry-title"> <a href="<?php echo wpex_permalink($post_id); ?> " title="<?php echo esc_attr(the_title_attribute('echo=0')); ?>