Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added logo configuration option - closes #5

  • Loading branch information...
commit 94169ce18e48495a6f1cd201c6d473ff62846a88 1 parent 0c5a953
authored March 22, 2010
1  conf/default.php
@@ -10,3 +10,4 @@
10 10
 $conf['sb_position'] = 'left';
11 11
 $conf['ft_pagename'] = 'footer';        // the pagename for the footer page
12 12
 $conf['closedwiki']  = false;           // set to true if you run a closed wiki 
  13
+$conf['logo']        = false;           // path to an image used as logo
2  conf/metadata.php
@@ -7,7 +7,7 @@
7 7
  */
8 8
 
9 9
 $meta['sb_pagename'] = array('string', '_pattern' => '#[a-z]*#');
10  
-$meta['sb_position'] = array('');
11 10
 $meta['sb_position'] = array('multichoice', '_choices' => array('left', 'right'));
12 11
 $meta['ft_pagename'] = array('string', '_pattern' => '#[a-z]*#');
13 12
 $meta['closedwiki']  = array('onoff');
  13
+$meta['logo']        = array('string');
1  lang/en/settings.php
@@ -9,3 +9,4 @@
9 9
 $lang['sb_position'] = "Sidebar position";
10 10
 $lang['ft_pagename'] = "Pagename to use for the footer";
11 11
 $lang['closedwiki']  = "Closed Wiki (Navigation shows only the login form if not logged in)"; 
  12
+$lang['logo']        = "Path to an image used as logo";
3  tpl_functions.php
@@ -27,6 +27,9 @@ function tpl_logo() {
27 27
     $out = '';
28 28
 
29 29
     switch(true) {
  30
+        case(tpl_getConf('logo')):
  31
+            $logo = tpl_getconf('logo');
  32
+            break;
30 33
         case(@file_exists(DOKU_TPLINC.'images/logo.jpg')):
31 34
             $logo = DOKU_TPL.'images/logo.jpg';
32 35
             break;

0 notes on commit 94169ce

Please sign in to comment.
Something went wrong with that request. Please try again.