Commit ab785f61 authored by Samantha Doherty's avatar Samantha Doherty

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

parent c777267f
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment