antopie/header.inc.php

7 lines
328 B
PHP

<header>
<?= ($path_parts_target['filename'] === 'index') ? '<h1>' : '' ?>
<a href="./<?= $relative_root_path ?>">
<img src="img/logo.webp" <?= getimagesize(SITE . '/img/logo.webp')[3] ?> alt="<?= $config['title'] ?>" title="Accueil" />
</a>
<?= ($path_parts_target['filename'] === 'index') ? '</h1>' : '' ?>
</header>