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) { ...@@ -127,9 +127,7 @@ protected function setDefaultMetaTags(HtmlPage $page) {
))); )));
// Display the html.html.twig's default mobile metatags for responsive design. // 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' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0')));
$page->addMetaElement(new MetaElement(NULL, array('name' => 'HandheldFriendly', 'content' => 'true')));
$page->addMetaElement(new MetaElement(NULL, array('name' => 'viewport', 'content' => 'width=device-width')));
} }
} }
...@@ -25,9 +25,7 @@ public static function getInfo() { ...@@ -25,9 +25,7 @@ public static function getInfo() {
function setUp() { function setUp() {
parent::setUp(); parent::setUp();
$this->default_metatags = array( $this->default_metatags = array(
'MobileOptimized' => '<meta name="MobileOptimized" content="width" />', 'viewport' => '<meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'HandheldFriendly' => '<meta name="HandheldFriendly" content="true" />',
'viewport' => '<meta name="viewport" content="width=device-width" />',
); );
} }
......
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