]> git.p6c8.net - jirafeau_mojo42.git/commitdiff
[FEATURE] Add meta viewport
authorDan Untenzu <mail@pixelbrackets.de>
Wed, 15 Mar 2023 13:40:43 +0000 (14:40 +0100)
committerJérôme Jutteau <jerome@jutteau.fr>
Mon, 12 Jun 2023 15:44:57 +0000 (15:44 +0000)
Add the generic meta viewport tag,
to support responsive themes.

Refs #328

lib/template/header.php

index 71b8857962beea748de406f723703877b2b89fe4..8be36c7213715974649826f308a7e007ad4267a7 100644 (file)
@@ -7,6 +7,7 @@ header('x-ua-compatible: ie=edge');
 <head>
   <meta charset="utf-8">
   <title><?php echo (true === empty($cfg['title']))? t('JI_WEB_RE') : $cfg['title']; ?></title>
+  <meta name="viewport" content="width=device-width, initial-scale=1">
   <link id="shortcut_icon" rel="shortcut icon" href="<?php echo 'media/' . $cfg['style'] . '/favicon.ico'; ?>">
   <link id="stylesheet" rel="stylesheet" href="<?php echo 'media/' . $cfg['style'] . '/style.css.php'; ?>" type="text/css" />
 </head>

patrick-canterino.de