From 297d8a6cc691c23280aede12d6e37511fb87af59 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 17 Jun 2014 20:11:35 +0200 Subject: [PATCH] The icon for the website is now changeable in the config --- boot.php | 10 ++++++++++ view/templates/head.tpl | 6 +++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index ee5943d61b..8b5cda68ab 100644 --- a/boot.php +++ b/boot.php @@ -693,6 +693,14 @@ if(! class_exists('App')) { else $stylesheet = '$stylesheet'; + $shortcut_icon = get_config("system", "shortcut_icon"); + if ($shortcut_icon == "") + $shortcut_icon = $this->get_baseurl()."/images/friendica-32.png"; + + $touch_icon = get_config("system", "touch_icon"); + if ($touch_icon == "") + $touch_icon = $this->get_baseurl()."/images/friendica-128.png"; + $tpl = get_markup_template('head.tpl'); $this->page['htmlhead'] = replace_macros($tpl,array( '$baseurl' => $this->get_baseurl(), // FIXME for z_path!!!! @@ -703,6 +711,8 @@ if(! class_exists('App')) { '$showmore' => t('show more'), '$showfewer' => t('show fewer'), '$update_interval' => $interval, + '$shortcut_icon' => $shortcut_icon, + '$touch_icon' => $touch_icon, '$stylesheet' => $stylesheet )) . $this->page['htmlhead']; } diff --git a/view/templates/head.tpl b/view/templates/head.tpl index f1f6b55052..d60d2603c1 100644 --- a/view/templates/head.tpl +++ b/view/templates/head.tpl @@ -13,9 +13,13 @@ + + + +