From: Sarven Capadisli Date: Sun, 4 Oct 2009 16:50:53 +0000 (+0000) Subject: Added custom showHead X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a7bed6f7d90098a16ec6da743ac34f0983e6afe3;p=quix0rs-gnu-social.git Added custom showHead --- diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index 35756cfe79..e7db09f15c 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');