The icon for the website is now changeable in the config
This commit is contained in:
parent
e0219cf6af
commit
297d8a6cc6
10
boot.php
10
boot.php
|
@ -693,6 +693,14 @@ if(! class_exists('App')) {
|
||||||
else
|
else
|
||||||
$stylesheet = '$stylesheet';
|
$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');
|
$tpl = get_markup_template('head.tpl');
|
||||||
$this->page['htmlhead'] = replace_macros($tpl,array(
|
$this->page['htmlhead'] = replace_macros($tpl,array(
|
||||||
'$baseurl' => $this->get_baseurl(), // FIXME for z_path!!!!
|
'$baseurl' => $this->get_baseurl(), // FIXME for z_path!!!!
|
||||||
|
@ -703,6 +711,8 @@ if(! class_exists('App')) {
|
||||||
'$showmore' => t('show more'),
|
'$showmore' => t('show more'),
|
||||||
'$showfewer' => t('show fewer'),
|
'$showfewer' => t('show fewer'),
|
||||||
'$update_interval' => $interval,
|
'$update_interval' => $interval,
|
||||||
|
'$shortcut_icon' => $shortcut_icon,
|
||||||
|
'$touch_icon' => $touch_icon,
|
||||||
'$stylesheet' => $stylesheet
|
'$stylesheet' => $stylesheet
|
||||||
)) . $this->page['htmlhead'];
|
)) . $this->page['htmlhead'];
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,9 +13,13 @@
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
|
<link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
|
||||||
|
|
||||||
|
<!--
|
||||||
<link rel="shortcut icon" href="{{$baseurl}}/images/friendica-32.png" />
|
<link rel="shortcut icon" href="{{$baseurl}}/images/friendica-32.png" />
|
||||||
|
|
||||||
<link rel="apple-touch-icon" href="{{$baseurl}}/images/friendica-128.png"/>
|
<link rel="apple-touch-icon" href="{{$baseurl}}/images/friendica-128.png"/>
|
||||||
|
-->
|
||||||
|
<link rel="shortcut icon" href="{{$shortcut_icon}}" />
|
||||||
|
<link rel="apple-touch-icon" href="{{$touch_icon}}"/>
|
||||||
|
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue