diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-01-17 15:42:10 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-01-17 15:42:43 +0000 |
| commit | 32321dd714ab78567595bf08cbd1892d9f5f16ec (patch) | |
| tree | 751d1ec42e0dfdfd540fc43a4dfed48d59620ee1 | |
| parent | 92e76a3489c57efbf6e657f52eae16add419758a (diff) | |
| download | webtrees-32321dd714ab78567595bf08cbd1892d9f5f16ec.tar.gz webtrees-32321dd714ab78567595bf08cbd1892d9f5f16ec.tar.bz2 webtrees-32321dd714ab78567595bf08cbd1892d9f5f16ec.zip | |
Missing meta viewport for mobile views
| -rw-r--r-- | library/WT/Theme/BaseTheme.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/library/WT/Theme/BaseTheme.php b/library/WT/Theme/BaseTheme.php index 404f15e3a8..035cd22279 100644 --- a/library/WT/Theme/BaseTheme.php +++ b/library/WT/Theme/BaseTheme.php @@ -397,8 +397,10 @@ abstract class BaseTheme { // Modernizr needs to be loaded before the <body> to avoid FOUC in IE8 '<!--[if IE 8]><script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script><![endif]-->' . $this->metaCharset() . - $this->metaRobots($controller->getMetaRobots()) . $this->title($title) . + $this->metaViewport() . + $this->metaRobots($controller->getMetaRobots()) . + $this->metaUaCompatible() . $this->metaGenerator(WT_WEBTREES . ' ' . WT_VERSION . ' - ' . WT_WEBTREES_URL) . $this->metaCanonicalUrl($controller->getCanonicalUrl()); @@ -1486,6 +1488,15 @@ abstract class BaseTheme { } /** + * Create the <meta name="viewport" content="width=device-width, initial-scale=1"> tag. + * + * @return string + */ + protected function metaViewport() { + return '<meta name="viewport" content="width=device-width, initial-scale=1">'; + } + + /** * Misecellaneous dimensions, fonts, styles, etc. * * @param string $parameter_name |
