1
0
Fork 0

Remove deprecated App::is_mobile/is_tablet - replace with DI::mode()->isMobile()/isTablet()

This commit is contained in:
Philipp Holzer 2019-12-16 01:12:07 +01:00
commit 26af2feee2
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
8 changed files with 10 additions and 16 deletions

View file

@ -36,7 +36,7 @@ function vier_init(App $a)
$a->page['htmlhead'] .= "<link rel='stylesheet' type='text/css' href='view/theme/vier/wide.css' media='screen and (min-width: 1300px)'/>\n";
}
if ($a->is_mobile || $a->is_tablet) {
if (DI::mode()->isMobile() || DI::mode()->isMobile()) {
$a->page['htmlhead'] .= '<meta name=viewport content="width=device-width, initial-scale=1">'."\n";
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="view/theme/vier/mobile.css" media="screen"/>'."\n";
}
@ -64,7 +64,7 @@ function cmtBbClose(id) {
</script>
EOT;
if ($a->is_mobile || $a->is_tablet) {
if (DI::mode()->isMobile() || DI::mode()->isMobile()) {
$a->page['htmlhead'] .= <<< EOT
<script>
$(document).ready(function() {