Commit 19475dd4 authored by webchick's avatar webchick

Issue #1468582 by mgifford, janusman, edward_or, tstoeckler, alanburke,...

Issue #1468582 by mgifford, janusman, edward_or, tstoeckler, alanburke, Schnitzel, dcmouyard, LewisNyman: Add mobile friendly meta tags to the html.tpl.php.
parent 3b1cb04b
......@@ -127,9 +127,7 @@ protected function setDefaultMetaTags(HtmlPage $page) {
)));
// Display the html.html.twig's default mobile metatags for responsive design.
$page->addMetaElement(new MetaElement(NULL, array('name' => 'MobileOptimized', 'content' => 'width')));
$page->addMetaElement(new MetaElement(NULL, array('name' => 'HandheldFriendly', 'content' => 'true')));
$page->addMetaElement(new MetaElement(NULL, array('name' => 'viewport', 'content' => 'width=device-width')));
$page->addMetaElement(new MetaElement(NULL, array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0')));
}
}
......@@ -25,9 +25,7 @@ public static function getInfo() {
function setUp() {
parent::setUp();
$this->default_metatags = array(
'MobileOptimized' => '<meta name="MobileOptimized" content="width" />',
'HandheldFriendly' => '<meta name="HandheldFriendly" content="true" />',
'viewport' => '<meta name="viewport" content="width=device-width" />',
'viewport' => '<meta name="viewport" content="width=device-width, initial-scale=1.0" />',
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment