Move locale management in specific model
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<? } 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->rank_is_higher('moderator')) { ?>
|
||||
<? if($user->rankIsHigher('moderator')) { ?>
|
||||
<li><a href="<?=$config['rel_root_folder']?>admin">Administration</a></li>
|
||||
<? } ?>
|
||||
<li><a href="<?=$config['rel_root_folder']?>user/logout">Se déconnecter</a></li>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<section id="profile">
|
||||
<? if ($userProfile->get_id() != 0) { ?>
|
||||
<h1><?=$userProfile->name?></h1>
|
||||
<? if($user->rank_is_higher("moderator") || $user->get_id() == $userProfile->get_id()) { ?>
|
||||
<? if($user->rankIsHigher("moderator") || $user->get_id() == $userProfile->get_id()) { ?>
|
||||
<a class="subtitle" id="editprofile" href="<?=$config['rel_root_folder']?>user/p/<?=$userProfile->get_id()?>/edit"><i class="fas fa-pencil-alt"></i> Éditer les paramètres du compte</a>
|
||||
<? } ?>
|
||||
<article>
|
||||
@@ -37,10 +37,10 @@
|
||||
if ($userProfile->get_id() != $user->get_id()) { ?>
|
||||
<a href="#" onclick="$('#profilepart').hide(0, function(){$('#contact').show('fast');});">Contacter par mail</a>
|
||||
<? }
|
||||
if ($user->rank_is_higher("premium") AND ($userProfile->website != "" OR $userProfile->get_id() != $user->get_id())) { ?>
|
||||
if ($user->rankIsHigher("premium") AND ($userProfile->website != "" OR $userProfile->get_id() != $user->get_id())) { ?>
|
||||
—
|
||||
<? }
|
||||
if ($user->rank_is_higher("premium")) { ?>
|
||||
if ($user->rankIsHigher("premium")) { ?>
|
||||
<a href="mailto:<?=$userProfile->email?>"><?=$userProfile->email?></a>
|
||||
<? } ?>
|
||||
</p>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<section id="wiki_page" <?=!$wikiPage->is_archive()?'class="archive"':''?>>
|
||||
<h1><?=$wikiPage->name?>.</h1>
|
||||
<? if($user->rank_is_higher('premium')) { ?>
|
||||
<? if($user->rankIsHigher('premium')) { ?>
|
||||
<span class="subtitle">
|
||||
<? if(isset($wikiHistory_list)) { ?>
|
||||
<select id="wikihistory">
|
||||
@@ -20,10 +20,10 @@
|
||||
} ?>
|
||||
</select>
|
||||
<? }
|
||||
if ($user->rank_is_higher('moderator') && isset($wikiHistory_list)) { ?>
|
||||
if ($user->rankIsHigher('moderator') && isset($wikiHistory_list)) { ?>
|
||||
—
|
||||
<? }
|
||||
if ($user->rank_is_higher('moderator')) { ?>
|
||||
if ($user->rankIsHigher('moderator')) { ?>
|
||||
<a href="<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->url?>/edit"><i class="fa fa-pencil"></i> Éditer la page</a>
|
||||
<? if (!$wikiPage->is_archive()) { ?>
|
||||
—
|
||||
@@ -42,7 +42,7 @@
|
||||
<div style="clear: both;"> </div>
|
||||
</section>
|
||||
|
||||
<? if($user->rank_is_higher('premium')) { ?>
|
||||
<? if($user->rankIsHigher('premium')) { ?>
|
||||
<script type="text/javascript">
|
||||
$( "#wikihistory" ).change(function() {
|
||||
window.location.href = "<?=$config['rel_root_folder']?>wiki/<?=$wikiPage->url?>/"+$( this ).val();
|
||||
|
||||
Reference in New Issue
Block a user