We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 7addccac authored by Sarven Capadisli's avatar Sarven Capadisli

Added ability to define mobile stylesheets (handheld, screen) at the

theme level. If there are no mobile stylesheets in the theme
directory, it will use the ones that come with the plugin.
parent c64e1792
......@@ -158,6 +158,30 @@ class MobileProfilePlugin extends WAP20Plugin
}
function onStartShowStatusNetStyles($action) {
if (file_exists(theme_file('css/mp-screen.css'))) {
$action->cssLink('css/mp-screen.css', null, 'screen');
}
else {
$action->element('link', array('rel' => 'stylesheet',
'type' => 'text/css',
'href' => common_path('plugins/MobileProfile/mp-screen.css') . '?version=' . STATUSNET_VERSION,
'media' => 'screen'));
}
if (file_exists(theme_file('css/mp-handheld.css'))) {
$action->cssLink('css/mp-handheld.css', null, 'handheld');
}
else {
$action->element('link', array('rel' => 'stylesheet',
'type' => 'text/css',
'href' => common_path('plugins/MobileProfile/mp-handheld.css') . '?version=' . STATUSNET_VERSION,
'media' => 'handheld'));
}
return false;
}
function onStartShowAside($action)
{
......
@import url(../../theme/base/css/display.css);
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