From: Meitar Moscovitz Date: Mon, 16 Mar 2009 22:03:58 +0000 (-0400) Subject: Add `apple-touch-icon.png` support; favicons for the iPhone OS. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=91b0fb8028b30438401bebafd13119fe360337a3;p=quix0rs-gnu-social.git Add `apple-touch-icon.png` support; favicons for the iPhone OS. --- diff --git a/apple-touch-icon.png b/apple-touch-icon.png new file mode 100644 index 0000000000..d129298d4a Binary files /dev/null and b/apple-touch-icon.png differ diff --git a/lib/action.php b/lib/action.php index 285eae59ab..f0baa062c2 100644 --- a/lib/action.php +++ b/lib/action.php @@ -162,6 +162,16 @@ class Action extends HTMLOutputter // lawsuit $this->element('link', array('rel' => 'shortcut icon', 'href' => common_path('favicon.ico'))); } + + if (common_config('site', 'mobile')) { + if (is_readable(INSTALLDIR . '/theme/' . common_config('site', 'theme') . '/apple-touch-icon.png')) { + $this->element('link', array('rel' => 'apple-touch-icon', + 'href' => theme_path('apple-touch-icon.png'))); + } else { + $this->element('link', array('rel' => 'apple-touch-icon', + 'href' => common_path('apple-touch-icon.png'))); + } + } } /**