Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $buffy ="";
- $buffy .= '<div class="td-author-social">';
- foreach (td_social_icons::$td_social_icons_array as $td_social_id => $td_social_name) {
- //echo get_the_author_meta($td_social_id) . '<br>';
- $authorMeta = get_the_author_meta($td_social_id);
- if (!empty($authorMeta)) {
- //the theme can use the twitter id instead of the full url. This avoids problems with yoast plugin
- if ($td_social_id == 'twitter') {
- if(filter_var($authorMeta, FILTER_VALIDATE_URL)){
- } else {
- $authorMeta = str_replace('@', '', $authorMeta);
- $authorMeta = 'http://twitter.com/' . $authorMeta;
- }
- }
- $buffy .= td_social_icons::get_icon($authorMeta, $td_social_id, true);
- }
- }
- $buffy .= '</div>';
- echo $buffy;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment