aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
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");}