]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added custom showHead
authorSarven Capadisli <csarven@status.net>
Sun, 4 Oct 2009 16:50:53 +0000 (16:50 +0000)
committerSarven Capadisli <csarven@status.net>
Sun, 4 Oct 2009 16:50:53 +0000 (16:50 +0000)
plugins/MobileProfile/MobileProfilePlugin.php

index 35756cfe79e425d16f22585f03f066ea48dd9429..e7db09f15c54ab9ba7d0846abfd96a5f49f1f199 100644 (file)
@@ -158,6 +158,20 @@ class MobileProfilePlugin extends WAP20Plugin
     }
 
 
+    function onStartShowHeadElements($action) {
+        if (!$action->serveMobile) {
+            return true;
+        }
+
+        $action->showTitle();
+        $action->showShortcutIcon();
+        $action->showStylesheets();
+        $action->showFeeds();
+        $action->showDescription();
+        $action->extraHead();
+    }
+
+
     function onStartShowStatusNetStyles($action) {
         if (file_exists(theme_file('css/mp-screen.css'))) {
             $action->cssLink('css/mp-screen.css', null, 'screen');