template:drupal_garland_blue
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| template:drupal_garland_blue [2011-06-18 15:51] – changed external links to dokuwiki.org to internal links ach | template:drupal_garland_blue [2023-03-22 23:07] (current) – 89.217.221.175 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ---- template ---- | ---- template ---- | ||
| - | Author_mail: | + | description |
| - | Description: | + | author |
| - | LastUpdate_dt: 2010-10-22 | + | email : |
| - | Compatible: | + | lastupdate |
| - | Template_tags: Drupal, Garland, Blue # comma separated tags | + | compatible |
| - | Screenshot_img: http://mirko.windhoff.net/ | + | depends |
| + | conflicts | ||
| + | similar | ||
| + | tags | ||
| + | |||
| + | bugtracker | ||
| + | sourcerepo | ||
| ---- | ---- | ||
| - | [[http:// | ||
| I adapted [[template: | I adapted [[template: | ||
| Line 24: | Line 29: | ||
| In '' | In '' | ||
| - | All credits for the design go to Drupal. | ||
| - | |||
| - | :-D [[http:// | ||
| ===== Download and Install ====== | ===== Download and Install ====== | ||
| - | |||
| - | You can download the theme here (both always latest version from svn): | ||
| - | |||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | |||
| - | As root you can execute the following to install it (adapt the path): | ||
| - | <code bash> | ||
| - | cd / | ||
| - | </ | ||
| - | For details refer to [[: | ||
| Alternatively you can obtain it through subversion: | Alternatively you can obtain it through subversion: | ||
| Line 46: | Line 37: | ||
| </ | </ | ||
| - | If you want to contribute/ | + | =====Development===== |
| Recent Changes: http:// | Recent Changes: http:// | ||
| Line 52: | Line 43: | ||
| ===== Sites using this Template ===== | ===== Sites using this Template ===== | ||
| Add your site here, if you want: | Add your site here, if you want: | ||
| - | * http:// | ||
| - | * http:// | ||
| - | * [[https:// | ||
| - | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| - | * [[http:// | ||
| ===== Comments? ===== | ===== Comments? ===== | ||
| Feel free to leave comments here. | Feel free to leave comments here. | ||
| + | |||
| + | * --- [[user> | ||
| + | /** | ||
| + | * fetches the sidebar-pages and displays the sidebar | ||
| + | */ | ||
| + | function tpl_sidebar($side=' | ||
| + | global $ID, $REV, $INFO, $lang; | ||
| + | |||
| + | $svID = $ID; | ||
| + | $svREV = $REV; | ||
| + | |||
| + | $page_sidebar_name = $ID.' | ||
| + | $default_sidebar_name = tpl_getConf(' | ||
| + | |||
| + | foreach (array_reverse(explode(':', | ||
| + | $namespace_sidebar_name = $namespace.' | ||
| + | if (file_exists(wikiFN($namespace_sidebar_name))) { | ||
| + | | ||
| + | } | ||
| + | } | ||
| + | |||
| + | if (file_exists(wikiFN($page_sidebar_name))) | ||
| + | echo '< | ||
| + | elseif (file_exists(wikiFN($namespace_sidebar_name))) | ||
| + | echo '< | ||
| + | elseif (file_exists(wikiFN($default_sidebar_name))) | ||
| + | echo '< | ||
| + | else | ||
| + | echo '& | ||
| + | |||
| + | $ID = $svID; | ||
| + | $REV = $svREV; | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | * Mar 22 2012 Apart from the entry below, there are further modifications necessary in .../ | ||
| + | ../ | ||
| + | |||
| + | * Dec 29 2011 [[m.mccarn@aicr.org]]\\ I had to add the following line to .../ | ||
| + | |||
| * Many thanks - I love it. Gerard. | * Many thanks - I love it. Gerard. | ||
| Line 113: | Line 140: | ||
| < | < | ||
| < | < | ||
| + | </ | ||
| + | |||
| + | == new code for sidebar and header == | ||
| + | |||
| + | i rewrote the sidebar and header/top function.\\ | ||
| + | now you can place the sidebar-files out of the root e.g. to : | ||
| + | all sidebar-files will be placed there now.\\ | ||
| + | also is it possible to create a sidebar for the next sublevels too. it will search the deepest match of a sidebar using namespace and pagename. \\ | ||
| + | sidebar and header are handelt identically now. \\ | ||
| + | it will look if the users rights are good for reading. | ||
| + | |||
| + | --- [[user> | ||
| + | |||
| + | * replace in the main.php | ||
| + | < | ||
| + | <?php // echo p_sidebar_xhtml(' | ||
| + | <?php echo tpl_sidebar(' | ||
| + | </ | ||
| + | |||
| + | * replace | ||
| + | <file php metadata.php> | ||
| + | <?php | ||
| + | $meta[' | ||
| + | $meta[' | ||
| + | $meta[' | ||
| + | ?> | ||
| + | </ | ||
| + | |||
| + | * replace conf/ | ||
| + | <file php default.php> | ||
| + | <?php | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | $conf[' | ||
| + | ?> | ||
| + | </ | ||
| + | |||
| + | modify the file '' | ||
| + | <code php> | ||
| + | /** | ||
| + | * fetches the sidebar-pages and displays the sidebar | ||
| + | * | ||
| + | * mod by Mark | ||
| + | */ | ||
| + | function tpl_sidebar($side=' | ||
| + | global $ID, $REV, $INFO, $lang, $TOC; | ||
| + | | ||
| + | $svID = $ID; | ||
| + | $svREV = $REV; | ||
| + | $svTOC = $TOC; | ||
| + | |||
| + | $sidebar_namespace = preg_replace('/ | ||
| + | $i=count(explode(":", | ||
| + | for($i; $i>0; $i--){ | ||
| + | $namespaces=explode(":", | ||
| + | $ns=''; | ||
| + | foreach($namespaces as $n){ | ||
| + | $ns.=(!$ns=='' | ||
| + | // echo auth_quickaclcheck(str_replace(' | ||
| + | if(auth_quickaclcheck(str_replace(' | ||
| + | $ID=$svID; /** clean id **/ | ||
| + | $nsp=$ns.' | ||
| + | if (page_exists($sidebar_namespace.$nsp)) $namespace_sidebar_name=$sidebar_namespace.$nsp; | ||
| + | } | ||
| + | } | ||
| + | $i=($namespace_sidebar_name)?' | ||
| + | } | ||
| + | /** if no special sidebar found define default **/ | ||
| + | if (!$namespace_sidebar_name) $namespace_sidebar_name = $sidebar_namespace.tpl_getConf(' | ||
| + | if (page_exists($namespace_sidebar_name)) { | ||
| + | echo '< | ||
| + | } else { | ||
| + | echo '< | ||
| + | if (tpl_getConf(' | ||
| + | /* print nothing if not defined */ | ||
| + | echo '& | ||
| + | } | ||
| + | | ||
| + | $ID = $svID; | ||
| + | $REV = $svREV; | ||
| + | $TOC = $svTOC; /** fix from schplurtz 2011/02/07 13:46 **/ | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | == Dokuwiki 2013-12-08 == | ||
| + | |||
| + | The TOC in sidebar has been broken on mine since Dokuwiki 2012-01-25 even with these changes. Oh well. | ||
| + | |||
| + | This new version breaks this theme. | ||
| + | |||
| + | < | ||
| + | base drupal-garland-blue | ||
| + | author | ||
| + | |||
| + | date 2010-10-22 | ||
| + | name Drupal Garland Blue | ||
| + | desc Drupal Garland Blue Theme for Dokuwiki | ||
| </ | </ | ||
template/drupal_garland_blue.1308405113.txt.gz · Last modified: by ach
