From f0c11cac4a2eb4b7c7ca929b860c067c7fd3839d Mon Sep 17 00:00:00 2001 From: Max Weller Date: Wed, 2 May 2012 16:59:58 +0200 Subject: Moved Meta Viewport from global head.tpl to diabook's header I mistakenly added this tag to the global header, but it causes problems for other themes, as they have other optimal widths. I also added a style to diabook which makes the jGrowl messages appear below the header bar, so you can still click the menu items without having to close messages first. --- view/theme/diabook/style.css | 1 + view/theme/diabook/theme.php | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'view/theme/diabook') diff --git a/view/theme/diabook/style.css b/view/theme/diabook/style.css index e70c72cb2..2834e76f2 100644 --- a/view/theme/diabook/style.css +++ b/view/theme/diabook/style.css @@ -558,6 +558,7 @@ code { text-decoration: none; } /* popup notifications */ +div.jGrowl.top-right { top: 30px; /* put it below header/nav bar */ } div.jGrowl div.notice { background: #511919 url("../../../images/icons/48/notice.png") no-repeat 5px center; color: #ffffff; 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'] .= ''; +} else { + $a->page['htmlhead'] .= ''; +} + + $color = false; $site_color = get_config("diabook", "color" ); if (local_user()) {$color = get_pconfig(local_user(), "diabook", "color");} -- cgit v1.2.3