You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
918 B

  1. <?php
  2. namespace dokuwiki\Ui;
  3. /**
  4. * DokuWiki Backlinks Interface
  5. *
  6. * @package dokuwiki\Ui
  7. */
  8. class Backlinks extends Ui
  9. {
  10. /**
  11. * Display backlinks
  12. *
  13. * @return void
  14. * @author Michael Klier <chi@chimeric.de>
  15. *
  16. * @author Andreas Gohr <andi@splitbrain.org>
  17. */
  18. public function show()
  19. {
  20. global $ID;
  21. global $lang;
  22. // print intro
  23. echo p_locale_xhtml('backlinks');
  24. $data = ft_backlinks($ID);
  25. if (!empty($data)) {
  26. echo '<ul class="idx">';
  27. foreach ($data as $blink) {
  28. echo '<li><div class="li">';
  29. echo html_wikilink(':' . $blink, useHeading('navigation') ? null : $blink);
  30. echo '</div></li>';
  31. }
  32. echo '</ul>';
  33. } else {
  34. echo '<div class="level1"><p>' . $lang['nothingfound'] . '</p></div>';
  35. }
  36. }
  37. }