Added custom showHead

This commit is contained in:
Sarven Capadisli 2009-10-04 16:50:53 +00:00
parent de2c4e36bc
commit a7bed6f7d9

View 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');