Replace PHP short tags
Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
This commit is contained in:
@@ -2,45 +2,45 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
|
||||
<link rel="shortcut icon" href="<?=$config['views_url']?>img/favicon.png">
|
||||
<? if (isset($head['css'])) {
|
||||
<?php if (isset($head['css'])) {
|
||||
foreach(explode(";",$head['css']) as $css) { ?>
|
||||
<link rel="stylesheet" href="<?=$config['views_url']?>css/<?=$css?>"/>
|
||||
<? }
|
||||
<?php }
|
||||
}
|
||||
else { ?>
|
||||
<link rel="stylesheet" href="<?=$config['views_url']?>css/d.index.css"/>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<link rel="stylesheet" href="<?=$config['views_url']?>third/fontawesome-free-5.4.1-web/css/all.min.css"/>
|
||||
|
||||
<script type="text/javascript" src="<?=$config['views_url']?>third/jquery-3.3.1.min.js"></script>
|
||||
<? if (isset($head['third'])) {
|
||||
<?php if (isset($head['third'])) {
|
||||
foreach(explode(";",$head['third']) as $third) { ?>
|
||||
<script type="text/javascript" src="<?=$config['views_url']?>third/<?=$third?>"></script>
|
||||
<? }
|
||||
<?php }
|
||||
} ?>
|
||||
<script type="text/javascript" src="<?=$config['views_url']?>js/d.header.js"></script>
|
||||
<? if (isset($head['js'])) {
|
||||
<?php if (isset($head['js'])) {
|
||||
foreach(explode(";",$head['js']) as $js) { ?>
|
||||
<script type="text/javascript" src="<?=$config['views_url']?>js/<?=$js?>"></script>
|
||||
<? }
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<? if (isset($head['title'])) { ?>
|
||||
<?php if (isset($head['title'])) { ?>
|
||||
<title><?=$head['title']?> — Kabano</title>
|
||||
<? }
|
||||
<?php }
|
||||
else { ?>
|
||||
<title>Refuges de montagne et métallerie agricole</title>
|
||||
<? } ?>
|
||||
<? if (isset($head['description'])) { ?>
|
||||
<?php } ?>
|
||||
<?php if (isset($head['description'])) { ?>
|
||||
<meta name="description" content="<?=$head['description']?>">
|
||||
? }
|
||||
<?php }
|
||||
else { ?>
|
||||
<meta name="description" content="Entreprise de services dans la fabrication, la réparation, et l'entretien de bâtiments et machines agricoles">
|
||||
<? } ?>
|
||||
<? if (isset($head['keywords'])) { ?>
|
||||
<?php } ?>
|
||||
<?php if (isset($head['keywords'])) { ?>
|
||||
<meta name="keywords" content="<?=$head['keywords']?>">
|
||||
<? }
|
||||
<?php }
|
||||
else { ?>
|
||||
<meta name="keywords" content="kabano, cabanes, refuges, bivouac, montagne, randonnée, métallerie, agricole">
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</head>
|
||||
@@ -24,15 +24,15 @@
|
||||
</ul>
|
||||
</li>
|
||||
<li class="on-bar has-sub menu-icon">
|
||||
<? if ($user->id == 0) { ?>
|
||||
<?php if ($user->id == 0) { ?>
|
||||
<a class="on-bar" href="#"><i class="icon fas fa-user"></i></a>
|
||||
<? } elseif ($user->is_avatar_present == 't') { ?>
|
||||
<?php } elseif ($user->is_avatar_present == 't') { ?>
|
||||
<a class="on-bar" href="#"><img alt="Avatar" class="icon avatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$user->id?>_s.jpg"></a>
|
||||
<? } else { ?>
|
||||
<?php } else { ?>
|
||||
<a class="on-bar" href="#"><i class="icon fas fa-user-secret"></i></a>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<ul>
|
||||
<? if($user->rank == 'visitor') { ?>
|
||||
<?php if($user->rank == 'visitor') { ?>
|
||||
<li id="connectform">
|
||||
<form action="<?=$config['rel_root_folder']?>user/login" method="post">
|
||||
<input type="text" name="login" placeholder="Nom d'utilisateur">
|
||||
@@ -41,14 +41,14 @@
|
||||
</form>
|
||||
</li>
|
||||
<li><a href="<?=$config['rel_root_folder']?>user/signin">S'inscrire</a></li>
|
||||
<? } else { ?>
|
||||
<?php } else { ?>
|
||||
<li><a href="<?=$config['rel_root_folder']?>user/p">Mon profil</a></li>
|
||||
<li><a href="<?=$config['rel_root_folder']?>user/member_list">Liste des membres</a></li>
|
||||
<? if($user->rankIsHigher('moderator')) { ?>
|
||||
<?php if($user->rankIsHigher('moderator')) { ?>
|
||||
<li><a href="<?=$config['rel_root_folder']?>admin">Administration</a></li>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
<li><a href="<?=$config['rel_root_folder']?>user/logout">Se déconnecter</a></li>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="on-bar has-sub menu-icon"><a class="on-bar" href="#"><i class="icon fas fa-question"></i></a>
|
||||
|
||||
Reference in New Issue
Block a user