summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-04 16:50:53 +0000
committerSarven Capadisli <csarven@status.net>2009-10-04 16:50:53 +0000
commita7bed6f7d90098a16ec6da743ac34f0983e6afe3 (patch)
tree2afe035c5d421c010f0bdccef36e0ab9e495f956
parentde2c4e36bc5e36714db32b4987f1fde1903dc059 (diff)
Added custom showHead
-rw-r--r--plugins/MobileProfile/MobileProfilePlugin.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php
index 35756cfe7..e7db09f15 100644
--- a/plugins/MobileProfile/MobileProfilePlugin.php
+++ b/plugins/MobileProfile/MobileProfilePlugin.php
@@ -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');