aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-02 13:49:57 -0700
committerfriendica <info@friendica.com>2012-05-02 13:49:57 -0700
commitb9c91c3320a5bf0583e45daf2400f4eb1d0a70e5 (patch)
tree344780da013c11f5428d04dc0993e4010e4a5b15 /view/theme/diabook/theme.php
parent6875f54647cbbdb66e6d570cbf357a8b83644fad (diff)
parentf0c11cac4a2eb4b7c7ca929b860c067c7fd3839d (diff)
downloadvolse-hubzilla-b9c91c3320a5bf0583e45daf2400f4eb1d0a70e5.tar.gz
volse-hubzilla-b9c91c3320a5bf0583e45daf2400f4eb1d0a70e5.tar.bz2
volse-hubzilla-b9c91c3320a5bf0583e45daf2400f4eb1d0a70e5.zip
Merge pull request #282 from max-weller/master
Moved <meta viewport> to theme; Diabook style
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-xview/theme/diabook/theme.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
index a169043b2..758fb5d91 100755
--- a/view/theme/diabook/theme.php
+++ b/view/theme/diabook/theme.php
@@ -26,6 +26,14 @@ $resolution=false;
$resolution = get_pconfig(local_user(), "diabook", "resolution");
if ($resolution===false) $resolution="normal";
+//Add META viewport tag respecting the resolution to header for tablets
+if ($resolution=="wide") {
+ $a->page['htmlhead'] .= '<meta name="viewport" content="width=1200" />';
+} else {
+ $a->page['htmlhead'] .= '<meta name="viewport" content="width=980" />';
+}
+
+
$color = false;
$site_color = get_config("diabook", "color" );
if (local_user()) {$color = get_pconfig(local_user(), "diabook", "color");}