customizable top bar
authorChristian Weiske <cweiske@cweiske.de>
Wed, 18 Apr 2012 17:35:17 +0000 (19:35 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 18 Apr 2012 17:35:17 +0000 (19:35 +0200)
data/config.default.php
data/templates/base.htm
www/www-header.php

index 1b8e39b..09cd58f 100644 (file)
@@ -6,6 +6,7 @@ $GLOBALS['phorkie']['cfg'] = array(
     'tpl'     => __DIR__ . '/templates/',
     'css'     => 'http://twitter.github.com/bootstrap/assets/css/bootstrap.css',
     'title'   => 'phorkie',
+    'topbar'  => '',
 );
 $GLOBALS['phorkie']['tools'] = array(
     '\\phorkie\\Tool_Xmllint' => true,
index 6dfb15a..867481c 100644 (file)
@@ -9,6 +9,7 @@
   <script src="/phorkie.js"></script>
  </head>
  <body>
+  {{topbar|raw}}
   <div class="navbar">
    <div class="navbar-inner">
     <div class="container">
index 756bdc9..0fd3c79 100644 (file)
@@ -53,6 +53,7 @@ function render($tplname, $vars)
 {
     $vars['css'] = $GLOBALS['phorkie']['cfg']['css'];
     $vars['title'] = $GLOBALS['phorkie']['cfg']['title'];
+    $vars['topbar'] = $GLOBALS['phorkie']['cfg']['topbar'];
 
     $template = $GLOBALS['twig']->loadTemplate($tplname . '.htm');
     echo $template->render($vars);