Guest User

Untitled

a guest
Jun 30th, 2015
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <?php
  2. if (td_util::get_option('tds_p_show_author_name') != 'hide') {
  3. //echo $td_mod_single->get_author();
  4. $coauths = get_coauthors();
  5. if (count($coauths) > 1) {
  6. echo "von ";
  7. foreach ($coauths as $key => $coauth) {
  8. echo '<a href="/author/' . $coauth->user_nicename . '">' . $coauth->display_name . '</a>';
  9. // add "and"
  10. if ($key != count($coauths)) {
  11. echo ' und ';
  12. $coauths = substr($coauthsHTML, 0, -4);
  13. }
  14. }
  15. } else {
  16. echo $td_mod_single->get_author();
  17. };
  18.  
  19.  
  20. }?>
Advertisement
Add Comment
Please, Sign In to add comment