|
|
|
@ -26,9 +26,8 @@ else { echo '<html lang="'.$lang.'">'; }
|
|
|
|
|
<?php
|
|
|
|
|
$this->showFavicon();
|
|
|
|
|
$this->showVendor('jshead');
|
|
|
|
|
?>
|
|
|
|
|
<!-- Détection RSS -->
|
|
|
|
|
<?php if ( ( $this->getData(['page', $this->getUrl(0), 'moduleId']) === 'blog'
|
|
|
|
|
// Détection RSS
|
|
|
|
|
if ( ( $this->getData(['page', $this->getUrl(0), 'moduleId']) === 'blog'
|
|
|
|
|
OR $this->getData(['page', $this->getUrl(0), 'moduleId']) === 'news' )
|
|
|
|
|
AND $this->getData(['module', $this->getUrl(0), 'config', 'feeds']) === TRUE ): ?>
|
|
|
|
|
<link rel="alternate" type="application/rss+xml" href="'<?php echo helper::baseUrl(). $this->getUrl(0) . '/rss';?>" title="fLUX rss">
|
|
|
|
@ -114,39 +113,16 @@ else { echo '<html lang="'.$lang.'">'; }
|
|
|
|
|
<?php $homePageOnly = false;
|
|
|
|
|
if( $this->getUrl(0) !== 'theme' ){
|
|
|
|
|
if( $this->getUrl(0) !== $this->getData(['locale', 'homePageId' ]) && $this->getData(['theme','header','homePageOnly']) === true) $homePageOnly = true;
|
|
|
|
|
}?>
|
|
|
|
|
<?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
if($this->getData(['theme', 'header', 'position']) === 'body'){
|
|
|
|
|
$headerClass = ($this->getData(['theme', 'header', 'position']) === 'hide' || $homePageOnly === true) ? 'displayNone' : '';
|
|
|
|
|
$headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : '';
|
|
|
|
|
$headerClass .= $this->getData(['theme', 'header', 'wide']) === 'none' ? '' : 'container';
|
|
|
|
|
?>
|
|
|
|
|
<header <?php echo empty($headerClass) ? '' : 'class="' . $headerClass . '"'; ?> >
|
|
|
|
|
<?php if ($this->getData(['theme','header','feature']) === 'wallpaper' ) { ?>
|
|
|
|
|
<?php echo ($this->getData(['theme','header','linkHomePage']) ) ? '<a class="headertitle" href="' . helper::baseUrl(false) . '">' : ''; ?>
|
|
|
|
|
<?php if(
|
|
|
|
|
$this->getData(['theme', 'header', 'textHide']) === false
|
|
|
|
|
// Affiche toujours le titre de la bannière pour l'édition du thème
|
|
|
|
|
OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header')
|
|
|
|
|
): ?>
|
|
|
|
|
<span class="notranslate" id="themeHeaderTitle"><?php echo $this->getData(['locale', 'title']); ?></span>
|
|
|
|
|
<?php else: ?>
|
|
|
|
|
<span id="themeHeaderTitle"> </span>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<?php echo ( $this->getData(['theme','header','linkHomePage']) ) ? '</a>' : ''; ?>
|
|
|
|
|
<?php } elseif( $this->getData(['theme','header','feature']) === 'feature') { ?>
|
|
|
|
|
<div id="featureContent">
|
|
|
|
|
<?php echo $this->getData(['theme','header','featureContent']);?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php } else { ?>
|
|
|
|
|
<!-- Swiper -->
|
|
|
|
|
<?php if( ! $homePageOnly) echo $this->getData(['theme','header','swiperContent']);?>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</header>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
$this->showHeader($homePageOnly, $headerClass);
|
|
|
|
|
}?>
|
|
|
|
|
|
|
|
|
|
<!-- Menu dans le fond du site après la bannière -->
|
|
|
|
|
<?php if( $this->getData(['theme', 'menu', 'position']) === 'body-second' ):
|
|
|
|
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'):
|
|
|
|
|
// Menu dans le fond du site après la bannière et bannière limitée au site
|
|
|
|
|
$navStyle = '';
|
|
|
|
|
if( $this->getData(['theme', 'header', 'position'])==='body' && $this->getData(['theme', 'header', 'wide'])==='container' ){
|
|
|
|
@ -160,9 +136,11 @@ else { echo '<html lang="'.$lang.'">'; }
|
|
|
|
|
<?php echo $this->getData(['theme','menu','burgerContent']) === 'logo' ? '<div class="notranslate" id="burgerLogo"><img src="'. $fileLogo .'" width="'. $widthLogo.'" height="'. $heightLogo .'"></div>' : '' ;?>
|
|
|
|
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
|
|
|
|
<!-- fin du menu burger -->
|
|
|
|
|
<?php
|
|
|
|
|
$menuClass = $this->getData(['theme', 'menu', 'wide']) === 'none' ? 'class="container-large"' : 'class="container"';
|
|
|
|
|
?> <div id="menu" <?php echo $menuClass; ?> > <?php $this->showMenu(); ?> </div>
|
|
|
|
|
<?php
|
|
|
|
|
$menuClass = $this->getData(['theme', 'menu', 'wide']) === 'none' ? 'class="container-large"' : 'class="container"';
|
|
|
|
|
?>
|
|
|
|
|
<div id="menu" <?php echo $menuClass; ?> >
|
|
|
|
|
<?php $this->showMenu(); ?></div>
|
|
|
|
|
</nav>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
|
@ -177,44 +155,22 @@ else { echo '<html lang="'.$lang.'">'; }
|
|
|
|
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
|
|
|
|
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
|
|
|
|
</nav>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<?php if(
|
|
|
|
|
$this->getData(['theme', 'header', 'position']) === 'site'
|
|
|
|
|
// Affiche toujours la bannière pour l'édition du thème
|
|
|
|
|
OR (
|
|
|
|
|
$this->getData(['theme', 'header', 'position']) === 'hide'
|
|
|
|
|
AND $this->getUrl(0) === 'theme'
|
|
|
|
|
)
|
|
|
|
|
): ?>
|
|
|
|
|
<!-- Bannière dans le site -->
|
|
|
|
|
<?php
|
|
|
|
|
$headerClass = ($this->getData(['theme', 'header', 'position']) === 'hide' || $homePageOnly === true) ? 'displayNone' : '';
|
|
|
|
|
$headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : '';
|
|
|
|
|
?>
|
|
|
|
|
<header <?php echo empty($headerClass) ? '' : 'class="' . $headerClass . '"';?>>
|
|
|
|
|
<?php if ($this->getData(['theme','header','feature']) === 'wallpaper' ){ ?>
|
|
|
|
|
<?php echo ( $this->getData(['theme','header','linkHomePage']) ) ? '<a class="headertitle" href="' . helper::baseUrl(false) . '">' : ''; ?>
|
|
|
|
|
<?php if(
|
|
|
|
|
$this->getData(['theme', 'header', 'textHide']) === false
|
|
|
|
|
// Affiche toujours le titre de la bannière pour l'édition du thème
|
|
|
|
|
OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header')
|
|
|
|
|
): ?>
|
|
|
|
|
<span class="notranslate" id="themeHeaderTitle"><?php echo $this->getData(['locale', 'title']); ?></span>
|
|
|
|
|
<?php else: ?>
|
|
|
|
|
<span id="themeHeaderTitle"> </span>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<?php echo ( $this->getData(['theme','header','linkHomePage']) ) ? '</a>' : ''; ?>
|
|
|
|
|
<?php } elseif($this->getData(['theme','header','feature']) === 'feature' ){?>
|
|
|
|
|
<div id="featureContent">
|
|
|
|
|
<?php echo $this->getData(['theme','header','featureContent']);?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php } else { ?>
|
|
|
|
|
<!-- Swiper -->
|
|
|
|
|
<?php if( ! $homePageOnly) echo $this->getData(['theme','header','swiperContent']); ?>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</header>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<?php if(
|
|
|
|
|
<?php endif;
|
|
|
|
|
if(
|
|
|
|
|
$this->getData(['theme', 'header', 'position']) === 'site'
|
|
|
|
|
// Affiche toujours la bannière pour l'édition du thème
|
|
|
|
|
OR (
|
|
|
|
|
$this->getData(['theme', 'header', 'position']) === 'hide'
|
|
|
|
|
AND $this->getUrl(0) === 'theme'
|
|
|
|
|
)
|
|
|
|
|
): ?>
|
|
|
|
|
<!-- Bannière dans le site -->
|
|
|
|
|
<?php
|
|
|
|
|
$headerClass = ($this->getData(['theme', 'header', 'position']) === 'hide' || $homePageOnly === true) ? 'displayNone' : '';
|
|
|
|
|
$headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : '';
|
|
|
|
|
$this->showHeader($homePageOnly, $headerClass);
|
|
|
|
|
endif;
|
|
|
|
|
if(
|
|
|
|
|
$this->getData(['theme', 'menu', 'position']) === 'site-second' ||
|
|
|
|
|
$this->getData(['theme', 'menu', 'position']) === 'site'
|
|
|
|
|
// Affiche toujours le menu pour l'édition du thème
|
|
|
|
|