From: Sarven Capadisli Date: Tue, 17 Feb 2009 20:32:19 +0000 (+0000) Subject: Merge branch 'mobile-style' of git://gitorious.org/laconica/meitar into review X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2eb6a6a9b02b51d9c8aa2f7bcff559681dd33b90;p=quix0rs-gnu-social.git Merge branch 'mobile-style' of git://gitorious.org/laconica/meitar into review Conflicts: lib/action.php --- 2eb6a6a9b02b51d9c8aa2f7bcff559681dd33b90 diff --cc lib/action.php index 79e8c95471,3e236d7146..8ff9e646b8 --- a/lib/action.php +++ b/lib/action.php @@@ -151,40 -151,31 +151,45 @@@ class Action extends HTMLOutputter // l */ function showStylesheets() { - $this->element('link', array('rel' => 'stylesheet', - 'type' => 'text/css', - 'href' => theme_path('css/display.css', 'base') . '?version=' . LACONICA_VERSION, - 'media' => 'screen, projection, tv')); - $this->element('link', array('rel' => 'stylesheet', - 'type' => 'text/css', - 'href' => theme_path('css/display.css', null) . '?version=' . LACONICA_VERSION, - 'media' => 'screen, projection, tv')); - $this->comment('[if IE]>comment('[if lte IE '.$ver.']>element('link', array('rel' => 'stylesheet', + 'type' => 'text/css', + 'href' => theme_path('css/display.css', 'base') . '?version=' . LACONICA_VERSION, + 'media' => 'screen, projection, tv')); - - + $this->element('link', array('rel' => 'stylesheet', + 'type' => 'text/css', + 'href' => theme_path('css/modal.css', 'base') . '?version=' . LACONICA_VERSION, + 'media' => 'screen, projection, tv')); + $this->element('link', array('rel' => 'stylesheet', + 'type' => 'text/css', + 'href' => theme_path('css/display.css', null) . '?version=' . LACONICA_VERSION, + 'media' => 'screen, projection, tv')); ++ if (common_config('site', 'mobile')) { ++ $this->element('link', array('rel' => 'stylesheet', ++ 'type' => 'text/css', ++ 'href' => theme_path('css/mobile.css', 'base') . '?version=' . LACONICA_VERSION, ++ // TODO: "handheld" CSS for other mobile devices ++ 'media' => 'only screen and (max-device-width: 480px)')); // Mobile WebKit ++ } + Event::handle('EndShowLaconicaStyles', array($this)); } - } - $this->comment('[if IE]>element('link', array('rel' => 'stylesheet', - 'type' => 'text/css', - 'href' => theme_path('css/mobile.css', 'base') . '?version=' . LACONICA_VERSION, - // TODO: "handheld" CSS for other mobile devices - 'media' => 'only screen and (max-device-width: 480px)')); // Mobile WebKit + if (Event::handle('StartShowUAStyles', array($this))) { + $this->comment('[if IE]>comment('[if lte IE '.$ver.']>comment('[if IE]>