@@ 60-65 (lines=6) @@ | ||
57 | */ |
|
58 | function getToolbox() { |
|
59 | $toolbox = []; |
|
60 | if ( isset( $this->data['nav_urls']['whatlinkshere'] ) |
|
61 | && $this->data['nav_urls']['whatlinkshere'] |
|
62 | ) { |
|
63 | $toolbox['whatlinkshere'] = $this->data['nav_urls']['whatlinkshere']; |
|
64 | $toolbox['whatlinkshere']['id'] = 't-whatlinkshere'; |
|
65 | } |
|
66 | if ( isset( $this->data['nav_urls']['recentchangeslinked'] ) |
|
67 | && $this->data['nav_urls']['recentchangeslinked'] |
|
68 | ) { |
|
@@ 110-113 (lines=4) @@ | ||
107 | $toolbox['permalink']['id'] = 't-permalink'; |
|
108 | } |
|
109 | } |
|
110 | if ( isset( $this->data['nav_urls']['info'] ) && $this->data['nav_urls']['info'] ) { |
|
111 | $toolbox['info'] = $this->data['nav_urls']['info']; |
|
112 | $toolbox['info']['id'] = 't-info'; |
|
113 | } |
|
114 | ||
115 | Hooks::run( 'BaseTemplateToolbox', [ &$this, &$toolbox ] ); |
|
116 | return $toolbox; |