summaryrefslogtreecommitdiff
path: root/themes/colors/header.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-12-19 14:42:12 +0000
committerGreg Roach <fisharebest@gmail.com>2014-12-19 14:42:12 +0000
commit4c589515aa8f7ed10d5c348b2098df8782493f1e (patch)
treef0f32fd411e1704a7a31981e7a0cfc9a828329c6 /themes/colors/header.php
parent37cdc332d1d4b060f4da3f1b979fd50c9d2e1c99 (diff)
downloadwebtrees-4c589515aa8f7ed10d5c348b2098df8782493f1e.tar.gz
webtrees-4c589515aa8f7ed10d5c348b2098df8782493f1e.tar.bz2
webtrees-4c589515aa8f7ed10d5c348b2098df8782493f1e.zip
Specify viewport for better support on mobile devices
Diffstat (limited to 'themes/colors/header.php')
-rw-r--r--themes/colors/header.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/themes/colors/header.php b/themes/colors/header.php
index 9f4b1d8340..31472bcf62 100644
--- a/themes/colors/header.php
+++ b/themes/colors/header.php
@@ -71,6 +71,7 @@ foreach (WT_MenuBar::getModuleMenus() as $menu) {
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
<?php echo header_links($META_DESCRIPTION, $META_ROBOTS, $META_GENERATOR, $LINK_CANONICAL); ?>
<title><?php echo WT_Filter::escapeHtml($title); ?></title>
<link rel="icon" href="<?php echo WT_CSS_URL; ?>favicon.png" type="image/png">
@@ -78,13 +79,11 @@ foreach (WT_MenuBar::getModuleMenus() as $menu) {
<link rel="stylesheet" type="text/css" href="<?php echo WT_CSS_URL; ?>css/colors.css">
<link rel="stylesheet" type="text/css" href="<?php echo WT_CSS_URL; ?>css/<?php echo $subColor; ?>.css">
<?php if (stristr($_SERVER['HTTP_USER_AGENT'], 'iPad')) { ?>
- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.8, maximum-scale=2.0" />
<link type="text/css" rel="stylesheet" href="<?php echo WT_CSS_URL; ?>ipad.css">
- <?php } elseif (stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE') || stristr($_SERVER['HTTP_USER_AGENT'], 'Trident')) { ?>
- <!--[if IE 8]>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
- <![endif]-->
-# <?php } ?>
+ <?php } ?>
+ <!--[if IE 8]>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
+ <![endif]-->
</head>
<body id="body">
<?php if ($view !== 'simple') { ?>