From: Colin Guthrie Date: Sun, 21 Apr 2013 20:31:58 +0000 (+0100) Subject: Add support for png shortcut icons X-Git-Tag: v0.4.0~84 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/bc5dc89cb33243ff64064875b4bc2c629d812bb9 Add support for png shortcut icons --- diff --git a/data/config.default.php b/data/config.default.php index 56ddc43..009b572 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -6,6 +6,7 @@ $GLOBALS['phorkie']['cfg'] = array( 'tpl' => __DIR__ . '/templates/', 'baseurl' => '/', 'css' => '', + 'iconpng' => '', 'title' => 'phorkie', 'topbar' => '', 'setupcheck' => true, diff --git a/data/templates/base.htm b/data/templates/base.htm index 8074938..1dcf0fc 100644 --- a/data/templates/base.htm +++ b/data/templates/base.htm @@ -10,6 +10,9 @@ {% if css %} {% endif %} + {% if iconpng %} + + {% endif %} {% block title %}{% endblock %} - {{title}} diff --git a/www/www-header.php b/www/www-header.php index cda7047..1888839 100644 --- a/www/www-header.php +++ b/www/www-header.php @@ -89,6 +89,7 @@ function render($tplname, $vars = array()) $vars['baseurl'] = $GLOBALS['phorkie']['cfg']['baseurl']; } $vars['css'] = $GLOBALS['phorkie']['cfg']['css']; + $vars['iconpng'] = $GLOBALS['phorkie']['cfg']['iconpng']; $vars['title'] = $GLOBALS['phorkie']['cfg']['title']; $vars['topbar'] = $GLOBALS['phorkie']['cfg']['topbar']; if (isset($_SESSION['identity'])) {