Skip to content

Commit

Permalink
add mobile web app capable meta tags issue #330
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Mar 21, 2019
1 parent 99949ff commit e66ba75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions modules/core/output_modules.php
Expand Up @@ -324,6 +324,9 @@ protected function output() {
$class = $dir."_page";
return '<!DOCTYPE html><html dir="'.$this->html_safe($dir).'" class="'.
$this->html_safe($class).'" lang='.$this->html_safe($lang).'><head>'.
'<meta name="apple-mobile-web-app-capable" content="yes" />'.
'<meta name="mobile-web-app-capable" content="yes" />'.
'<meta name="apple-mobile-web-app-status-bar-style" content="black" />'.
'<meta name="theme-color" content="#888888" /><meta charset="utf-8" />';
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/modules/core/modules.php
Expand Up @@ -741,7 +741,7 @@ public function test_msgs() {
public function test_header_start() {
$test = new Output_Test('header_start', 'core');
$res = $test->run();
$this->assertEquals(array('<!DOCTYPE html><html dir="ltr" class="ltr_page" lang=en><head><meta name="theme-color" content="#888888" /><meta charset="utf-8" />'), $res->output_response);
$this->assertEquals(array('<!DOCTYPE html><html dir="ltr" class="ltr_page" lang=en><head><meta name="apple-mobile-web-app-capable" content="yes" /><meta name="mobile-web-app-capable" content="yes" /><meta name="apple-mobile-web-app-status-bar-style" content="black" /><meta name="theme-color" content="#888888" /><meta charset="utf-8" />'), $res->output_response);
}
/**
* @preserveGlobalState disabled
Expand Down

0 comments on commit e66ba75

Please sign in to comment.