/** * Get author social account from roen setting * * @since roen 1.0 */ function roen_get_author_social($author_id, $extra_name = '', $target = '_self') { $str = roen_get_social_list($author_id, '', 'user-meta', $target); if ($str != '') { return '<ul class="inline roen-social ' . $extra_name . '">' . $str . '</ul>'; } return ''; }
global $thumbnail_size; ?> <div class="member-element-avatar"> <?php if (has_post_thumbnail(get_the_ID())) { echo get_the_post_thumbnail(get_the_ID(), $thumbnail_size, array('alt' => get_the_title(), 'title' => '')); } else { echo '<div class="no-gravatar"></div>'; } ?> <div class="post-mask-content"> <div class="centered"> <?php $socials = roen_get_social_list(get_the_ID(), 'social-', 'post-meta'); if ($socials != '') { echo '<ul class="inline roen-social member-social">' . $socials . '</ul>'; } ?> </div> </div> </div> <h4 class="entry-title" itemprop="author"><a href="<?php echo get_permalink(get_the_ID()); ?> " itemprop="url"><?php echo penguin_get_post_meta_key('member-nickname', '', get_the_title()); ?> </a></h4>