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
argonchanges [2025/08/04 14:44] rajitargonchanges [2025/08/06 11:24] (current) rajit
Line 1: Line 1:
 ====== Small change to Argon template ====== ====== Small change to Argon template ======
  
-I added an option to the nice Argon dokuwiki template to get rid of the left sidebar. Here are the changes I made:+I added an option to the nice Argon [[https://github.com/IceWreck/Argon-Dokuwiki-Template/|dokuwiki template]] to get rid of the left sidebar for users that have not logged in so that the entire width of the page can be used for text. Here are the changes I made:
  
    - Changes to ''main.php'' (in ''lib/tpl/argon/'')    - Changes to ''main.php'' (in ''lib/tpl/argon/'')
      * Top of the file, below original line 10, add the line: <code php>      * Top of the file, below original line 10, add the line: <code php>
-$showLeftSidebar = !tpl_getConf('hideLeftSidebar');</code>+$showLeftSidebar = !tpl_getConf('hideLeftSidebar') || !empty($_SERVER['REMOTE_USER']);</code>
      * Below line 133 (original line 132, after the ''left sidebar'' comment), add the line:<code php>      * Below line 133 (original line 132, after the ''left sidebar'' comment), add the line:<code php>
 <?php if ($showLeftSidebar) { ?></code> <?php if ($showLeftSidebar) { ?></code>
Line 27: Line 27:
 max-width: 97.5%; max-width: 97.5%;
 }</code> after line 1183 (after the closing brace). }</code> after line 1183 (after the closing brace).
 +   - Changes to ''settings.php'' (in ''lib/tpl/argon/lang/en/settings.php'')
 +      * Add: <code php>$lang['hideLeftSidebar' = 'Hide left sidebar when not logged in?';</code>
 +      * Similar changes should be made for other languages as well.
  
 +With these changes, a new option should appear in the template configuration settings that allows you to turn off the left sidebar.
 +
 +In addition, we use the following [[https://github.com/IceWreck/Argon-Dokuwiki-Template/issues/54#issuecomment-2566062372|patch]] to fix the login window overlap issues.