forked from GNUsocial/gnu-social
Moved hardcoded identica theme out of MobileProfile. In this case, it
will use whichever theme is loaded as its base and then add its own mobile styles. Of course, if a theme comes with its own mobile styles, it will use that instead as an addition to its own base.
This commit is contained in:
parent
7ebd13fa69
commit
e891075494
|
@ -240,6 +240,8 @@ class MobileProfilePlugin extends WAP20Plugin
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$action->cssLink('css/display.css');
|
||||||
|
|
||||||
if (file_exists(Theme::file('css/mp-screen.css'))) {
|
if (file_exists(Theme::file('css/mp-screen.css'))) {
|
||||||
$action->cssLink('css/mp-screen.css', null, 'screen');
|
$action->cssLink('css/mp-screen.css', null, 'screen');
|
||||||
} else {
|
} else {
|
||||||
|
@ -256,6 +258,14 @@ class MobileProfilePlugin extends WAP20Plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function onStartShowUAStyles($action) {
|
||||||
|
if (!$this->serveMobile) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
function onStartShowHeader($action)
|
function onStartShowHeader($action)
|
||||||
{
|
{
|
||||||
if (!$this->serveMobile) {
|
if (!$this->serveMobile) {
|
||||||
|
|
|
@ -7,9 +7,6 @@
|
||||||
* @link http://status.net/
|
* @link http://status.net/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import url(../../theme/base/css/display.css);
|
|
||||||
@import url(../../theme/identica/css/display.css);
|
|
||||||
|
|
||||||
#wrap {
|
#wrap {
|
||||||
min-width:0;
|
min-width:0;
|
||||||
max-width:100%;
|
max-width:100%;
|
||||||
|
|
Loading…
Reference in New Issue