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
Next revision
Previous revision
template:arctic [2015-09-24 21:05] – [Only let admins edit sidebar pages] 90.176.170.246template:arctic [2023-09-01 16:27] (current) Klap-in
Line 5: Line 5:
 author        : Michael Klier, Samuel Fischer author        : Michael Klier, Samuel Fischer
 email         : sf@notomorrow.de email         : sf@notomorrow.de
-lastupdate    : 2014-10-30 +lastupdate    : 2020-08-22 
-Compatible    : 2009-02-14 2009-12-25 2010-11-07 2011-05-25 2011-11-10, 2012-09-10, 2012-01-25, 2012-10-13,2013-12-08,2013-05-10,2014-05-05,2014-09-29+Compatible    : 2015-08-10 2009-02-14 2009-12-25 2010-11-07 2011-05-25 2011-11-10, 2012-09-10, 2012-01-25, 2012-10-13,2013-12-08,2013-05-10,2014-05-05,2014-09-29,2016-06-26,2017-02-19,2018-04-22,2020-07-29
 depends       :  depends       : 
 conflicts     :  conflicts     : 
Line 14: Line 14:
  
 sourcerepo    : https://github.com/samfisch/dokuwiki-template-arctic sourcerepo    : https://github.com/samfisch/dokuwiki-template-arctic
-downloadurl   : http://r.notomorrow.de/dokuwiki-template-arctic/pkg/arctic-stable.tgz+downloadurl   : https://github.com/samfisch/dokuwiki-template-arctic/archive/master.zip
 bugtracker    : https://github.com/samfisch/dokuwiki-template-arctic/issues bugtracker    : https://github.com/samfisch/dokuwiki-template-arctic/issues
 donationurl   : # eg. https://www.paypal.com/... donationurl   : # eg. https://www.paypal.com/...
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 543: Line 544:
 These are the substitutions introduced by the arctic template. These are the substitutions introduced by the arctic template.
  
-^ Replacement ^ Value ^ Description ^ +^ Replacement                    ^ Value            ^ Description                                  
-| ''%%__wiki_width__%%'' | percent/pixel | width of your wiki | +| ''%%__wiki_width__%%''         | percent/pixel    | width of your wiki                           
-| ''%%___wiki_full_width__%%'' | percent/pixel | width of fullscreen elements (mediamanager) | +| ''%%___wiki_full_width__%%''   | percent/pixel    | width of fullscreen elements (mediamanager)  
-| ''%%__header_height__%%'' | percent/pixel | the height of the blue header | +| ''%%__header_height__%%''      | percent/pixel    | the height of the blue header                
-| ''%%__body_margin__%%'' | em/pixel | margin of HTML %%<body>%% | +| ''%%__body_margin__%%''        | em/pixel         | margin of HTML %%<body>%%                    
-| ''%%__page_padding__%%'' | em/pixel | padding around your wiki | +| ''%%__page_padding__%%''       | em/pixel         | padding around your wiki                     
-| ''%%__footer_padding__%%'' | em/pixel | the padding of the footer | +| ''%%__footer_padding__%%''     | em/pixel         | the padding of the footer                    
-| ''%%__font_size__%%'' | em/pixel/pt | the global font size | +| ''%%__font_size__%%''          | em/pixel/pt      | the global font size                         
-| ''%%__line_height__%%'' | percent/em | the global line height | +| ''%%__line_height__%%''        | percent/em       | the global line height                       
-| ''%%__pagename_color__%%'' | hex color value | self-explanatory | +| ''%%__pagename_color__%%''     | hex color value  | self-explanatory                             
-| ''%%__logo_color__%%'' | hex-color | self-explanatory | +| ''%%__logo_color__%%''         | hex-color        | self-explanatory                             
-| ''%%__headline_color__%%'' | hex color value | self-explanatory | +| ''%%__headline_color__%%''     | hex color value  | self-explanatory                             
-| ''%%__body_background__%%'' | hex color value | self-explanatory | +| ''%%__body_background__%%''    | hex color value  | self-explanatory                             
-| ''%%__header_background__%%'' | hex color value | self-explanatory | +| ''%%__header_background__%%''  | hex color value  | self-explanatory                             
-| ''%%__footer_background__%%'' | hex color value | self-explanatory | +| ''%%__footer_background__%%''  | hex color value  | self-explanatory                             
-| ''%%__form_border__%%'' | hex color value | the color of all form borders |+| ''%%__form_border__%%''        | hex color value  | the color of all form borders                |
  
 ^ Screenshot ^ Description ^ ^ Screenshot ^ Description ^
Line 607: Line 608:
   * Midori (0.2.6 OpenBSD)   * Midori (0.2.6 OpenBSD)
   * Iceweasel   * Iceweasel
 +  * Microsoft Edge Ver. 115.0.1901.203 (oficial) (64 bits)
 ===== Translations ===== ===== Translations =====
 The configuration settings descriptions still need to be translated to other languages. If you like to help, send the translation of the below files (the file needs to be UTF-8 encoded). The configuration settings descriptions still need to be translated to other languages. If you like to help, send the translation of the below files (the file needs to be UTF-8 encoded).
Line 650: Line 652:
 Some of the Ideas are taken from the other great [[:templates|DokuWiki templates]]. Furthermore a big "**Thank you!**" to the great DokuWiki team for your very good looking and well structured default template and this cool Wiki! Some of the Ideas are taken from the other great [[:templates|DokuWiki templates]]. Furthermore a big "**Thank you!**" to the great DokuWiki team for your very good looking and well structured default template and this cool Wiki!
 ===== Sites using this Template ===== ===== Sites using this Template =====
 +
 Add yours here: Add yours here:
-  * [[http://bibliopedia.ptcvic.org]] -- great template. Shame someone doesn't write a decent add new page plugin. +
-  * [[http://freenaswiki.ru/|FreeNAS Wiki.ru]] -- A website about [[http://www.freenas.org/|FreeNAS]] Server (almost completely written in Russian) +
-  * [[http://www.quantum-measurement-and-control.org/|Quantum Measurement and Control]] -- A website about a book on quantum measurement and quantum feedback control, many thanks for the template. +
-  * [[http://neuroanalysis.org/wiki/|STAToolkit Wiki]] -- Our sincerest appreciation for a wonderful template! +
-  * [[http://thecoffeespoon.net/battlestations/]] - MWBS Wiki +
-  * [[http://www.howcanibuild.com]] -- Great info to customize AdSense ads  +
-  * [[http://www.luizgustavo.pro.br]] -- The best of template for DokuWiki +
-  * [[http://blobseer.gforge.inria.fr]]+
   * [[http://samuele.netsons.org]]   * [[http://samuele.netsons.org]]
-  * [[http://www.gregow.se]] 
-  * [[http://izotretin.pl/wiki|Polish wiki about Accutane (isotretinoin)]]   
-  * [[http://www.shambhala-toulouse.fr]] -- thanks you for your great template ^_^ 
-  * [[http://www.bridgeclub-grunewald.de/]] -- Etwas Bastelarbeit war nötig. Aber ^_^ 
-  * [[http://www.gerion.pl/dokuwiki/doku.php]] -- polish site of RPG fans (Earthdawn) 
-  * [[http://www.rollberg.de|Der Rollberg]] -- Eine Webseite über den Neuköllner Norden 
-  * [[http://cdli.ucla.edu/wiki/|CDLI-Wiki]] -- Cuneiform Digital Library Initiative, University of California, Los Angeles 
-  * [[http://www.hodique.info/]], personal and professional website of Yann Hodique 
-  * [[http://www.chennaibus.info]] -- A website on complete information on an Indian City, Chennai - Bus Routes on web and mobile. 
-  * [[http://www.chennaitrain.info]] -- A website on complete information on an Indian City, Chennai - Train Timings on web and mobile. 
-  * [[http://www.TheFreyers.net]] -- personal and professional website of Chris Freyer 
-  * [[http://Zlotnik.ScienceOnTheWeb.Net]] -- prof. Alexander Zlotnik's homepage (mostly in Russian) 
-  * [[http://tooyi.net/noki/|wiki.tooyi.net]] --中国(简体)信长之野望online百科 
-  * [[http://informatica.temuco.udelmar.cl/~lmachuca/dokuwiki-lucho/]] -- my website, development of plugins for DokuWiki, and some personal stuff. 
-  * [[http://www.seirios.org/~seirios/dokuwiki/]] -- Web site of "ほほほのほ" for Technical and other memos Wiki in Japan. 
-  * [[http://www.envirolaw.org.au/]]  
   * [[http://complex.if.uff.br|Complex Systems]] - Complex Systems Research Group website, Universidade Federal Fluminense, Niterói,  Brazil   * [[http://complex.if.uff.br|Complex Systems]] - Complex Systems Research Group website, Universidade Federal Fluminense, Niterói,  Brazil
-  * [[http://folkipedia.org|Folkipedia]] - Folk and Tradition Wiki 
-  * [[http://www.pythongamebook.com]] - Book about python game programming 
-  * [[http://wiki.nagios-fr.org]] -- Nagios French Community Wiki 
-  * [[http://www.xj3.nl/dokuwiki|www.xj3.nl]] - small cooperation of engineers 
-  * [[http://www.spielend-programmieren.at]] - Game programming courses for young people, Vienna, Austria 
-  * [[http://www.madesimple.de/inkasso-kochbuch]] - Das Inkasso-Kochbuch der Anwaltskanzlei Lueneberg. 
   * [[http://www.mgv-hochmoessingen.de/]] - Homepage of a choral society - **THX to Che** this is a very good template for CMS   * [[http://www.mgv-hochmoessingen.de/]] - Homepage of a choral society - **THX to Che** this is a very good template for CMS
-  * [[http://wiki.mausebande.com]] - German wiki about mice 
-  * [[http://doctoryoo.pe.kr]] - Korean wiki, modified. 
-  * [[http://openwrt.pl]] - Polish Wiki about OpenWrt Project 
-  * [[http://www.unipoly.ch]] - Student Association for Sustainable Development  
-  * [[http://bash-hackers.org/wiki]] - Wiki about the GNU Bash shell. Relatively simple/plain configuration of the Arctic template 
-  * [[http://www.yake.org]] - Project site for the cross-platform game/simulation engine 
-  * [[http://www.wurzelwerkerinnen.at]] - Dear Michael, Thx for your work !!! Wonna buy y one ore more coffees ;-) 
   * [[http://wiki.vehtoh.de]] - a semi-private, outsourced Brain (powerd by Dokuwiki and your great (little bit modified) template ;), feel free to contact me for the coffee!!!   * [[http://wiki.vehtoh.de]] - a semi-private, outsourced Brain (powerd by Dokuwiki and your great (little bit modified) template ;), feel free to contact me for the coffee!!!
-  * [[http://weidewiki.org]] - Das Portal rund um Weideprodukte in Deutschland, Luxemburg, Österreich und der Schweiz bedankt sich für das Template! 
-  * [[http://wiki.miiconsola.com]] - MiiConsola Wiki (Spanish). Videogames, consoles, tournaments, etc. 
-  * [[http://baum.petermansfeld.de]] - Hugo Baum - eine Biographie 
-  * [[http://qcake.unkompliziert.org]] - QCake, the Game Maker - 3d software 
-  * [[http://trow.cc/wiki/]] - T.R.O.W. Wiki(简体中文) - <del>fantasy style theme</del> Parchment Style(merged with our [[http://trow.cc/forum/|forum]]) 
   * [[http://www.seiichiro0185.org/]] My private Homepage about Linux and Tech stuff - arctic with some modifications through userstyle.css - Thanks for dokuwiki and this great template! -   * [[http://www.seiichiro0185.org/]] My private Homepage about Linux and Tech stuff - arctic with some modifications through userstyle.css - Thanks for dokuwiki and this great template! -
-  * [[http://trace-libre.net|Trace Libre]] : blog of a research in information and communication science. I always have a problem with dates of posts (I can't make a reindexation every time I change a namespace), but this template makes me happy, thanks ! :-D +  * [[http://www.symbolic-link.org/schifffahrtwiki]] - Eine Site über Schiffe und Museen 
-  * [[http://www.artduweb.com|Art du web]] Wiki collaboratif consacré à l' Administration Système et Réseaux +
-  * [[http://cheaterwiki.pl/|Cheater WIKI]] - Polish website dedicated to game cheats. +
-  * [[http://www.lingue.at|lingue.at]] - private homepage with some minor changes in the arctic template. Thx!! +
-  * [[http://www.j-chkmail.org|www.j-chkmail.org]] - the web site of //j-chkmail// spam filter +
-  * [[http://www.tobanet.de|www.tobanet.de]] - uses the "Debian Red Style" and is all about system administration, focussing on (Debian) Linux for the most part  +
-  * [[http://duanshu.org|http://duanshu.org]] - 短书-5分钟读完一本书+
 ===== FAQ ===== ===== FAQ =====
  
Line 829: Line 786:
  
 ==== Can I hide the Pagename at the left top of the header? ==== ==== Can I hide the Pagename at the left top of the header? ====
 +You can set the width by adding the following CSS to your ''<dokuwiki>/conf/userstyle.css''((just create it if it doesn't exist)).
 +
 <code css> <code css>
 div.pagename { div.pagename {
Line 834: Line 793:
 } }
 </code> </code>
- 
 ==== How to include links for dw2pdf plugin and/or bookcreator plugin? ==== ==== How to include links for dw2pdf plugin and/or bookcreator plugin? ====
  
Line 844: 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 861: Line 819:
  
  
 +[[https://github.com/flohmueller|fmueller]]: I think I could track this issue back to the function call **_getNsSb($id)**, which is called with the current site id as its parameter. This id is split into its segments, the resulting array being used as the starting point to look for "sidebar" pages.
 +\\ E.g. with a given site id "my:ns:foo" it looks for "my:ns:foo:sidebar", then "my:ns:sidebar", then "my:sidebar"... The first lookup "my:ns:foo:sidebar" is imho debatable, if not completely wrong or unnecessary! 
 +\\ Unfortunately - and a lot worse - it never looks for a "sidebar" page in the wiki's root!
 +My suggestion is to fix **_getNsSb($id)** by adding two lines before the //while//-loop:
 +<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".
  
 ==== 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? ====
  
Line 1097: Line 1062:
 For public sites with lots of users, is it possible to only let admins edit/create pages named "sidebar"? So no one else gets to change how the sidebar looks and what's in it. For public sites with lots of users, is it possible to only let admins edit/create pages named "sidebar"? So no one else gets to change how the sidebar looks and what's in it.
  
--- i have managed it (to some extent) by using ACL. Set ACL rule for page sidebar and user @user to read only+> I have managed it (to some extent) by using ACL. Set ACL rule for page sidebar and user @user to read only 
 + 
 +===== Index in sidebar, doesn't open start.txt ===== 
 +When using the index in sidebar option clicking on a namespace in the sidebar doesn't open 
 +the corresponding start.txt file.  Is it possible to make this happen?  In the case where 
 +there are a lot of .txt files in a namespace it can be far from obvious which is the 'most 
 +important' one. 
 + 
 +===== I can't get the width to change ===== 
 + 
 +I have edited <my dokuwiki root>/lib/tpl/arctic/style.ini to set the width:- 
 + 
 +__wiki_width__     = "95%" 
 + 
 +... and I have touched <my dokuwiki root>/conf/local.php (and I've also done CTRL/SHIFT/R) but 
 +to no avail.  My arctic template stays obstinately at 84%. 
 + 
 +So what am I doing wrong? 
 + 
 +> ... and the answer is the width is also set in the Template style admin settings and that value overrides whats in style.ini
template/arctic.1443121518.txt.gz · Last modified: 2015-09-24 21:05 (external edit)

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