DokuWiki

It's better when it's simple

User Tools

Site Tools


template:arctic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
template:arctic [2023-08-22 20:52] – [Browser Compatibility] 2800:150:14f:1a59:743e:cd18:2276:c633template:arctic [2023-09-01 16:27] (current) Klap-in
Line 526: Line 526:
 <file /lib/tpl/arctic/sidebars/translation/sidebar.php> <file /lib/tpl/arctic/sidebars/translation/sidebar.php>
 <?php                                                                                                                                             <?php                                                                                                                                            
-$translation = &plugin_load('helper','translation'); +$translation = plugin_load('helper','translation'); 
-if ($translation) echo $translation->showTranslations(); +if ($translation) 
 +    echo $translation->showTranslations(); 
 +}
 </file> </file>
  
Line 801: Line 802:
 <code php> <code php>
 //dw2pdf //dw2pdf
-if(!plugin_isdisabled('dw2pdf') && (!is_null(plugin_load('action', 'dw2pdf')))) {+if(!plugin_isdisabled('dw2pdf') && plugin_load('action', 'dw2pdf'instanceof PluginInterface) {
     print '<a class="action" href="' . exportlink($ID, 'pdf') . '"><img src="' .  DOKU_BASE . 'lib/images/fileicons/pdf.png" alt="PDF Export" />&nbsp;PDF Export</a>' . DOKU_LF;     print '<a class="action" href="' . exportlink($ID, 'pdf') . '"><img src="' .  DOKU_BASE . 'lib/images/fileicons/pdf.png" alt="PDF Export" />&nbsp;PDF Export</a>' . DOKU_LF;
 } }
 //dw2pdf Ende //dw2pdf Ende
 //bookcreator //bookcreator
-if(!plugin_isdisabled('bookcreator') && (!is_null(plugin_load('action', 'bookcreator')))) {+if(!plugin_isdisabled('bookcreator') && plugin_load('action', 'bookcreator'instanceof PluginInterface) {
     print '<a class="action" href="' .  DOKU_BASE . 'doku.php?do=addtobook&id='.$ID.'"><img src="' .  DOKU_BASE . 'lib/plugins/bookcreator/images/smallbook.png" alt="add to book" />&nbsp;Add to book</a>' . DOKU_LF;     print '<a class="action" href="' .  DOKU_BASE . 'doku.php?do=addtobook&id='.$ID.'"><img src="' .  DOKU_BASE . 'lib/plugins/bookcreator/images/smallbook.png" alt="add to book" />&nbsp;Add to book</a>' . DOKU_LF;
 } }
Line 824: Line 825:
 <code>array_unshift($path, ''); <code>array_unshift($path, '');
 array_pop($path);</code>This will add an empty element to the array, so the lookup for a "sidebar" page in the wiki's root won't be skipped anymore, and removes the imho unnecessary lookup for "my:ns:foo:sidebar". array_pop($path);</code>This will add an empty element to the array, so the lookup for a "sidebar" page in the wiki's root won't be skipped anymore, and removes the imho unnecessary lookup for "my:ns:foo:sidebar".
 +
 ==== Language-dependent right sidebar ==== ==== Language-dependent right sidebar ====
  
 Furthermore, I want to show localized versions of the right sidebar also. Is that possible? I don't really see a way without messing with the template code itself ... Thanks for your answers! Furthermore, I want to show localized versions of the right sidebar also. Is that possible? I don't really see a way without messing with the template code itself ... Thanks for your answers!
 +
 ==== Minimize sidebar? ==== ==== Minimize sidebar? ====
  
template/arctic.1692730377.txt.gz · Last modified: 2023-08-22 20:52 by 2800:150:14f:1a59:743e:cd18:2276:c633

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki