summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMeitar Moscovitz <meitarm@gmail.com>2009-03-16 18:03:58 -0400
committerMeitar Moscovitz <meitarm@gmail.com>2009-03-16 18:04:27 -0400
commit91b0fb8028b30438401bebafd13119fe360337a3 (patch)
tree13bbd2c81d60bb47558a46a52102ff2f3ddebad5 /lib
parent85d61475aab64a08ba67cdedfcb795af4ce4850d (diff)
Add `apple-touch-icon.png` support; favicons for the iPhone OS.
Diffstat (limited to 'lib')
-rw-r--r--lib/action.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/action.php b/lib/action.php
index 285eae59a..f0baa062c 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')));
+ }
+ }
}
/**