Guest User

Untitled

a guest
Jul 29th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. $buffy .= '<div class="td-author-description">';
  2. $buffy .= get_the_author_meta('description', $author_id);
  3. $buffy .= '</div>';
  4.  
  5. $buffy .= '<div class="td-author-social">';
  6. foreach (td_social_icons::$td_social_icons_array as $td_social_id => $td_social_name) {
  7. //echo get_the_author_meta($td_social_id) . '<br>';
  8. $authorMeta = get_the_author_meta($td_social_id);
  9. if (!empty($authorMeta)) {
  10.  
  11. //the theme can use the twitter id instead of the full url. This avoids problems with yoast plugin
  12. if ($td_social_id == 'twitter') {
  13. if(filter_var($authorMeta, FILTER_VALIDATE_URL)){
  14.  
  15. } else {
  16. $authorMeta = str_replace('@', '', $authorMeta);
  17. $authorMeta = 'http://twitter.com/' . $authorMeta;
  18. }
  19. }
  20. $buffy .= td_social_icons::get_icon($authorMeta, $td_social_id, 4, 16);
  21. }
  22. }
  23. $buffy .= '</div>';
Advertisement
Add Comment
Please, Sign In to add comment