diff options
| -rw-r--r-- | data/config.default.php | 1 | ||||
| -rw-r--r-- | data/templates/base.htm | 3 | ||||
| -rw-r--r-- | www/www-header.php | 1 |
3 files changed, 5 insertions, 0 deletions
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 %} <link rel="stylesheet" href="{{css}}"/> {% endif %} + {% if iconpng %} + <link rel="shortcut icon" href="{{iconpng}}" type="image/png"/> + {% endif %} <title>{% block title %}{% endblock %} - {{title}}</title> <script src="js/jquery.js"></script> <script src="js/bootstrap.min.js"></script> 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'])) { |
