summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/action.php b/lib/action.php
index ce92addf5..ce37f4760 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -170,6 +170,13 @@ class Action extends HTMLOutputter // lawsuit
}
$this->comment('[if IE]><link rel="stylesheet" type="text/css" '.
'href="'.theme_path('css/ie.css', null).'?version='.LACONICA_VERSION.'" /><![endif]');
+ 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' => 'screen and (max-device-width: 480px)')); // Mobile WebKit
+ }
}
/**