Make MobileProfile load its own AND theme CSS files if available.

This commit is contained in:
Samantha Doherty 2011-08-25 12:16:40 -04:00
parent c777267f95
commit ab785f612a
1 changed files with 2 additions and 4 deletions

View File

@ -251,16 +251,14 @@ class MobileProfilePlugin extends WAP20Plugin
$action->primaryCssLink();
$action->cssLink($this->path('mp-screen.css'),null,'screen');
if (file_exists(Theme::file('css/mp-screen.css'))) {
$action->cssLink('css/mp-screen.css', null, 'screen');
} else {
$action->cssLink($this->path('mp-screen.css'),null,'screen');
}
$action->cssLink($this->path('mp-handheld.css'),null,'handheld');
if (file_exists(Theme::file('css/mp-handheld.css'))) {
$action->cssLink('css/mp-handheld.css', null, 'handheld');
} else {
$action->cssLink($this->path('mp-handheld.css'),null,'handheld');
}
// Allow other plugins to load their styles.