RVRNEXT-11 add custom title for main layout

This commit is contained in:
Bence Pőcze 2023-05-28 03:46:41 +02:00
parent 8f8cbaebae
commit 6237193d01
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -5,7 +5,7 @@
<meta name="description" content="<?= $_ENV['APP_NAME'] ?>"> <meta name="description" content="<?= $_ENV['APP_NAME'] ?>">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#212f4d"> <meta name="theme-color" content="#212f4d">
<title><?= $_ENV['APP_NAME'] ?></title> <title><?= isset($title) ? $title . ' ' : '' ?><?= $_ENV['APP_NAME'] ?></title>
<?php if (preg_match('/^(http(s)?:)?\/\//', $_ENV['STATIC_ROOT']) === 1): ?> <?php if (preg_match('/^(http(s)?:)?\/\//', $_ENV['STATIC_ROOT']) === 1): ?>
<link href="<?= $_ENV['STATIC_ROOT'] ?>" rel="preconnect"> <link href="<?= $_ENV['STATIC_ROOT'] ?>" rel="preconnect">
<?php endif; ?> <?php endif; ?>