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