Skip to content

Commit

Permalink
added logo configuration option - closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Klier committed Mar 22, 2010
1 parent 0c5a953 commit 94169ce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions conf/default.php
Expand Up @@ -10,3 +10,4 @@
$conf['sb_position'] = 'left'; $conf['sb_position'] = 'left';
$conf['ft_pagename'] = 'footer'; // the pagename for the footer page $conf['ft_pagename'] = 'footer'; // the pagename for the footer page
$conf['closedwiki'] = false; // set to true if you run a closed wiki $conf['closedwiki'] = false; // set to true if you run a closed wiki
$conf['logo'] = false; // path to an image used as logo
2 changes: 1 addition & 1 deletion conf/metadata.php
Expand Up @@ -7,7 +7,7 @@
*/ */


$meta['sb_pagename'] = array('string', '_pattern' => '#[a-z]*#'); $meta['sb_pagename'] = array('string', '_pattern' => '#[a-z]*#');
$meta['sb_position'] = array('');
$meta['sb_position'] = array('multichoice', '_choices' => array('left', 'right')); $meta['sb_position'] = array('multichoice', '_choices' => array('left', 'right'));
$meta['ft_pagename'] = array('string', '_pattern' => '#[a-z]*#'); $meta['ft_pagename'] = array('string', '_pattern' => '#[a-z]*#');
$meta['closedwiki'] = array('onoff'); $meta['closedwiki'] = array('onoff');
$meta['logo'] = array('string');
1 change: 1 addition & 0 deletions lang/en/settings.php
Expand Up @@ -9,3 +9,4 @@
$lang['sb_position'] = "Sidebar position"; $lang['sb_position'] = "Sidebar position";
$lang['ft_pagename'] = "Pagename to use for the footer"; $lang['ft_pagename'] = "Pagename to use for the footer";
$lang['closedwiki'] = "Closed Wiki (Navigation shows only the login form if not logged in)"; $lang['closedwiki'] = "Closed Wiki (Navigation shows only the login form if not logged in)";
$lang['logo'] = "Path to an image used as logo";
3 changes: 3 additions & 0 deletions tpl_functions.php
Expand Up @@ -27,6 +27,9 @@ function tpl_logo() {
$out = ''; $out = '';


switch(true) { switch(true) {
case(tpl_getConf('logo')):
$logo = tpl_getconf('logo');
break;
case(@file_exists(DOKU_TPLINC.'images/logo.jpg')): case(@file_exists(DOKU_TPLINC.'images/logo.jpg')):
$logo = DOKU_TPL.'images/logo.jpg'; $logo = DOKU_TPL.'images/logo.jpg';
break; break;
Expand Down

0 comments on commit 94169ce

Please sign in to comment.