function vce_user_social_profiles($contactmethods) { unset($contactmethods['aim']); unset($contactmethods['yim']); unset($contactmethods['jabber']); $social = vce_get_social(); foreach ($social as $soc_id => $soc_name) { if ($soc_id) { $contactmethods[$soc_id] = $soc_name; } } return $contactmethods; }
echo __vce('view_all_posts'); ?> </a> </div> <div class="vce-author-links"> <?php if (get_the_author_meta('url', $author->ID)) { ?> <a href="<?php the_author_meta('url', $author->ID); ?> " target="_blank" class="fa fa-link vce-author-website"></a><?php } ?> <?php $user_social = vce_get_social(); ?> <?php foreach ($user_social as $soc_id => $soc_name) { ?> <?php if ($social_meta = get_the_author_meta($soc_id, $author->ID)) { ?> <a href="<?php echo $social_meta; ?> " target="_blank" class="fa fa-<?php echo $soc_id; ?> "></a> <?php
function vce_meks_author_social_networks($user_id) { $output = ''; if ($author_url = get_the_author_meta('url', $user_id)) { $output .= '<a href="' . esc_url($author_url) . '" target="_blank" class="fa fa-link"></a>'; } $user_social = vce_get_social(); foreach ($user_social as $soc_id => $soc_name) { if ($social_meta = get_the_author_meta($soc_id, $user_id)) { $output .= '<a href="' . $social_meta . '" target="_blank" class="fa fa-' . $soc_id . '"></a>'; } } if (!empty($output)) { $output = '<div class="vce-author-links">' . $output . '</div>'; } return $output; }