]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add `apple-touch-icon.png` support; favicons for the iPhone OS.
authorMeitar Moscovitz <meitarm@gmail.com>
Mon, 16 Mar 2009 22:03:58 +0000 (18:03 -0400)
committerMeitar Moscovitz <meitarm@gmail.com>
Mon, 16 Mar 2009 22:04:27 +0000 (18:04 -0400)
apple-touch-icon.png [new file with mode: 0644]
lib/action.php

diff --git a/apple-touch-icon.png b/apple-touch-icon.png
new file mode 100644 (file)
index 0000000..d129298
Binary files /dev/null and b/apple-touch-icon.png differ
index 285eae59ab9ab4b0f58584ac2f6c1029c4fa0309..f0baa062c2c0c7290cb987d28886b35fa4f64260 100644 (file)
@@ -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')));
+            }
+        }
     }
 
     /**