déplacement de normalize et largeur du menu si bannière limitée au site
This commit is contained in:
parent
88018e4ee8
commit
a433f8f4e6
|
@ -110,7 +110,7 @@ class common {
|
||||||
// chargement des scripts et des styles dans head
|
// chargement des scripts et des styles dans head
|
||||||
'vendor' => [
|
'vendor' => [
|
||||||
'jquery',
|
'jquery',
|
||||||
'normalize',
|
//'normalize', chargé dans main.php avant common.css
|
||||||
'lity',
|
'lity',
|
||||||
'filemanager',
|
'filemanager',
|
||||||
'tippy',
|
'tippy',
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
$this->showMetaTitle();
|
$this->showMetaTitle();
|
||||||
?>
|
?>
|
||||||
<base href="<?php echo helper::baseUrl(true); ?>">
|
<base href="<?php echo helper::baseUrl(true); ?>">
|
||||||
|
<link rel="stylesheet" href="core/vendor/normalize/normalize.min.css">
|
||||||
<link rel="stylesheet" href="core/layout/common.css">
|
<link rel="stylesheet" href="core/layout/common.css">
|
||||||
<link rel="stylesheet" href="core/layout/mediaqueries.css">
|
<link rel="stylesheet" href="core/layout/mediaqueries.css">
|
||||||
<link rel="stylesheet" href="core/layout/blank.css">
|
<link rel="stylesheet" href="core/layout/blank.css">
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
$this->showMetaTitle();
|
$this->showMetaTitle();
|
||||||
?>
|
?>
|
||||||
<base href="<?php echo helper::baseUrl(true); ?>">
|
<base href="<?php echo helper::baseUrl(true); ?>">
|
||||||
|
<link rel="stylesheet" href="core/vendor/normalize/normalize.min.css">
|
||||||
<link rel="stylesheet" href="core/layout/common.css">
|
<link rel="stylesheet" href="core/layout/common.css">
|
||||||
<link rel="stylesheet" href="core/layout/mediaqueries.css">
|
<link rel="stylesheet" href="core/layout/mediaqueries.css">
|
||||||
<link rel="stylesheet" href="core/layout/light.css">
|
<link rel="stylesheet" href="core/layout/light.css">
|
||||||
|
|
|
@ -14,6 +14,7 @@ else { echo '<html lang="'.$lang.'">'; }
|
||||||
if( $this->getData(['config', 'social', 'headFacebook' ]) === true) $this->showMetaPropertyFacebook();
|
if( $this->getData(['config', 'social', 'headFacebook' ]) === true) $this->showMetaPropertyFacebook();
|
||||||
?>
|
?>
|
||||||
<base href="<?php echo helper::baseUrl(true); ?>">
|
<base href="<?php echo helper::baseUrl(true); ?>">
|
||||||
|
<link rel="stylesheet" href="core/vendor/normalize/normalize.min.css">
|
||||||
<link rel="stylesheet" href="core/layout/common.css">
|
<link rel="stylesheet" href="core/layout/common.css">
|
||||||
<link rel="stylesheet" href="core/layout/mediaqueries.css">
|
<link rel="stylesheet" href="core/layout/mediaqueries.css">
|
||||||
<link rel="stylesheet" href="<?php echo self::DATA_DIR; ?>theme.css">
|
<link rel="stylesheet" href="<?php echo self::DATA_DIR; ?>theme.css">
|
||||||
|
@ -145,9 +146,14 @@ else { echo '<html lang="'.$lang.'">'; }
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Menu dans le fond du site après la bannière -->
|
<!-- 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
|
||||||
<nav>
|
$navStyle = 'toto';
|
||||||
|
if( $this->getData(['theme', 'header', 'position'])==='body' && $this->getData(['theme', 'header', 'wide'])==='container' ){
|
||||||
|
$navStyle = 'style="max-width:'. $this->getData(['theme', 'site', 'width']) . '; display: block; margin: auto;"';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<nav <?php echo $navStyle; ?> >
|
||||||
<!-- Menu burger -->
|
<!-- Menu burger -->
|
||||||
<div id="toggle">
|
<div id="toggle">
|
||||||
<?php echo $this->getData(['theme','menu','burgerContent']) === 'title' ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : '' ;?>
|
<?php echo $this->getData(['theme','menu','burgerContent']) === 'title' ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : '' ;?>
|
||||||
|
@ -156,9 +162,7 @@ else { echo '<html lang="'.$lang.'">'; }
|
||||||
<!-- fin du menu burger -->
|
<!-- fin du menu burger -->
|
||||||
<?php
|
<?php
|
||||||
$menuClass = $this->getData(['theme', 'menu', 'wide']) === 'none' ? 'class="container-large"' : 'class="container"';
|
$menuClass = $this->getData(['theme', 'menu', 'wide']) === 'none' ? 'class="container-large"' : 'class="container"';
|
||||||
?>
|
?> <div id="menu" <?php echo $menuClass; ?> > <?php $this->showMenu(); ?> </div>
|
||||||
<div id="menu" <?php echo $menuClass; ?> >
|
|
||||||
<?php $this->showMenu(); ?></div>
|
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue