Noms des variables
This commit is contained in:
parent
c54b9d262d
commit
eaccb4bb9d
@ -56,7 +56,7 @@
|
|||||||
$menuClass = $this->getData(['theme', 'menu', 'position']) === 'top' ? 'class="container-large"' : 'class="container"';
|
$menuClass = $this->getData(['theme', 'menu', 'position']) === 'top' ? 'class="container-large"' : 'class="container"';
|
||||||
$menuClass = ($this->getData(['theme', 'menu', 'position']) === 'body-first' ||
|
$menuClass = ($this->getData(['theme', 'menu', 'position']) === 'body-first' ||
|
||||||
$this->getData(['theme', 'menu', 'position']) === 'body-second' ) &&
|
$this->getData(['theme', 'menu', 'position']) === 'body-second' ) &&
|
||||||
$this->getData(['theme', 'menu', 'container']) === 'none' // étendue sur la page
|
$this->getData(['theme', 'menu', 'width']) === 'none' // étendue sur la page
|
||||||
? 'class="container-large"' : 'class="container"';
|
? 'class="container-large"' : 'class="container"';
|
||||||
?>
|
?>
|
||||||
<div id="menu" <?php echo $menuClass; ?> >
|
<div id="menu" <?php echo $menuClass; ?> >
|
||||||
@ -70,7 +70,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$headerClass = $this->getData(['theme', 'header', 'position']) === 'hide' ? 'displayNone' : '';
|
$headerClass = $this->getData(['theme', 'header', 'position']) === 'hide' ? 'displayNone' : '';
|
||||||
$headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : '';
|
$headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : '';
|
||||||
$headerClass .= $this->getData(['theme', 'header', 'container']) === 'none' ? '' : 'container';
|
$headerClass .= $this->getData(['theme', 'header', 'width']) === 'none' ? '' : 'container';
|
||||||
?>
|
?>
|
||||||
<header <?php echo empty($headerClass) ? '' : 'class="' . $headerClass . '"';?>>
|
<header <?php echo empty($headerClass) ? '' : 'class="' . $headerClass . '"';?>>
|
||||||
<?php echo ($this->getData(['theme','header','linkHomePage']) && $this->getData(['theme','header','feature']) === 'wallpaper' ) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?>
|
<?php echo ($this->getData(['theme','header','linkHomePage']) && $this->getData(['theme','header','feature']) === 'wallpaper' ) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?>
|
||||||
@ -107,7 +107,7 @@
|
|||||||
$menuClass = $this->getData(['theme', 'menu', 'position']) === 'top' ? 'class="container-large"' : 'class="container"';
|
$menuClass = $this->getData(['theme', 'menu', 'position']) === 'top' ? 'class="container-large"' : 'class="container"';
|
||||||
$menuClass = ($this->getData(['theme', 'menu', 'position']) === 'body-first' ||
|
$menuClass = ($this->getData(['theme', 'menu', 'position']) === 'body-first' ||
|
||||||
$this->getData(['theme', 'menu', 'position']) === 'body-second' ) &&
|
$this->getData(['theme', 'menu', 'position']) === 'body-second' ) &&
|
||||||
$this->getData(['theme', 'menu', 'container']) === 'none' // étendue sur la page
|
$this->getData(['theme', 'menu', 'width']) === 'none' // étendue sur la page
|
||||||
? 'class="container-large"' : 'class="container"';
|
? 'class="container-large"' : 'class="container"';
|
||||||
?>
|
?>
|
||||||
<div id="menu" <?php echo $menuClass; ?> >
|
<div id="menu" <?php echo $menuClass; ?> >
|
||||||
|
@ -160,7 +160,7 @@ class init extends common {
|
|||||||
'tinyHidden' => true,
|
'tinyHidden' => true,
|
||||||
'feature' => 'wallpaper',
|
'feature' => 'wallpaper',
|
||||||
'featureContent' => '<p>Bannière vide</p>',
|
'featureContent' => '<p>Bannière vide</p>',
|
||||||
'container' => 'container'
|
'width' => 'container'
|
||||||
],
|
],
|
||||||
'menu' => [
|
'menu' => [
|
||||||
'backgroundColor' => 'rgba(32, 59, 82, 1)',
|
'backgroundColor' => 'rgba(32, 59, 82, 1)',
|
||||||
@ -183,7 +183,7 @@ class init extends common {
|
|||||||
'memberBar' => true,
|
'memberBar' => true,
|
||||||
'burgerLogo' => '',
|
'burgerLogo' => '',
|
||||||
'burgerContent' => 'title',
|
'burgerContent' => 'title',
|
||||||
'container' => 'container'
|
'width' => 'container'
|
||||||
],
|
],
|
||||||
'site' => [
|
'site' => [
|
||||||
'backgroundColor' => 'rgba(255, 255, 255, 1)',
|
'backgroundColor' => 'rgba(255, 255, 255, 1)',
|
||||||
|
@ -69,7 +69,7 @@ class theme extends common {
|
|||||||
'Ubuntu' => 'Ubuntu',
|
'Ubuntu' => 'Ubuntu',
|
||||||
'Vollkorn' => 'Vollkorn'
|
'Vollkorn' => 'Vollkorn'
|
||||||
];
|
];
|
||||||
public static $containers = [
|
public static $widths = [
|
||||||
'container' => 'Limitée au site',
|
'container' => 'Limitée au site',
|
||||||
'none' => 'Etendue sur la page'
|
'none' => 'Etendue sur la page'
|
||||||
];
|
];
|
||||||
@ -229,7 +229,7 @@ class theme extends common {
|
|||||||
'uppercase' => 'Majuscules',
|
'uppercase' => 'Majuscules',
|
||||||
'capitalize' => 'Majuscule à chaque mot'
|
'capitalize' => 'Majuscule à chaque mot'
|
||||||
];
|
];
|
||||||
public static $widths = [
|
public static $headerMenuWidths = [
|
||||||
'750px' => 'Petite (750 pixels)',
|
'750px' => 'Petite (750 pixels)',
|
||||||
'960px' => 'Moyenne (960 pixels)',
|
'960px' => 'Moyenne (960 pixels)',
|
||||||
'1170px' => 'Grande (1170 pixels)',
|
'1170px' => 'Grande (1170 pixels)',
|
||||||
@ -443,7 +443,7 @@ class theme extends common {
|
|||||||
'fontSize' => $this->getInput('themeHeaderFontSize'),
|
'fontSize' => $this->getInput('themeHeaderFontSize'),
|
||||||
'fontWeight' => $this->getInput('themeHeaderFontWeight'),
|
'fontWeight' => $this->getInput('themeHeaderFontWeight'),
|
||||||
'height' => $this->getInput('themeHeaderHeight'),
|
'height' => $this->getInput('themeHeaderHeight'),
|
||||||
'container' => $this->getInput('themeHeaderContainer'),
|
'width' => $this->getInput('themeHeaderWidth'),
|
||||||
'image' => $this->getInput('themeHeaderImage'),
|
'image' => $this->getInput('themeHeaderImage'),
|
||||||
'imagePosition' => $this->getInput('themeHeaderImagePosition'),
|
'imagePosition' => $this->getInput('themeHeaderImagePosition'),
|
||||||
'imageRepeat' => $this->getInput('themeHeaderImageRepeat'),
|
'imageRepeat' => $this->getInput('themeHeaderImageRepeat'),
|
||||||
@ -516,7 +516,7 @@ class theme extends common {
|
|||||||
'fontSize' => $this->getInput('themeMenuFontSize'),
|
'fontSize' => $this->getInput('themeMenuFontSize'),
|
||||||
'fontWeight' => $this->getInput('themeMenuFontWeight'),
|
'fontWeight' => $this->getInput('themeMenuFontWeight'),
|
||||||
'height' => $this->getInput('themeMenuHeight'),
|
'height' => $this->getInput('themeMenuHeight'),
|
||||||
'container' => $this->getInput('themeMenuContainer'),
|
'width' => $this->getInput('themeMenuWidth'),
|
||||||
'loginLink' => $this->getInput('themeMenuLoginLink', helper::FILTER_BOOLEAN),
|
'loginLink' => $this->getInput('themeMenuLoginLink', helper::FILTER_BOOLEAN),
|
||||||
'margin' => $this->getInput('themeMenuMargin', helper::FILTER_BOOLEAN),
|
'margin' => $this->getInput('themeMenuMargin', helper::FILTER_BOOLEAN),
|
||||||
'position' => $this->getInput('themeMenuPosition'),
|
'position' => $this->getInput('themeMenuPosition'),
|
||||||
|
@ -175,7 +175,7 @@ $("input, select").on("change", function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Largeur du header
|
// Largeur du header
|
||||||
switch ($("#themeHeaderContainer").val()) {
|
switch ($("#themeHeaderWidth").val()) {
|
||||||
case "container":
|
case "container":
|
||||||
$("header").addClass("container");
|
$("header").addClass("container");
|
||||||
break;
|
break;
|
||||||
|
@ -63,9 +63,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<?php echo template::select('themeHeaderContainer', $module::$containers, [
|
<?php echo template::select('themeHeaderWidth', $module::$widths, [
|
||||||
'label' => 'Largeur',
|
'label' => 'Largeur',
|
||||||
'selected' => $this->getData(['theme', 'header', 'container'])
|
'selected' => $this->getData(['theme', 'header', 'width'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -123,7 +123,7 @@ $("input, select").on("change", function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Largeur étendue
|
// Largeur étendue
|
||||||
if ($("#themeMenuContainer").val() === 'none') {
|
if ($("#themeMenuWidth").val() === 'none') {
|
||||||
$("#menu").removeClass();
|
$("#menu").removeClass();
|
||||||
} else {
|
} else {
|
||||||
$("#menu").addClass("container");
|
$("#menu").addClass("container");
|
||||||
|
@ -41,9 +41,9 @@
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col6">
|
<div class="col6">
|
||||||
<?php echo template::select('themeMenuContainer', $module::$containers, [
|
<?php echo template::select('themeMenuWidth', $module::$widths, [
|
||||||
'label' => 'Largeur',
|
'label' => 'Largeur',
|
||||||
'selected' => $this->getData(['theme', 'menu', 'container'])
|
'selected' => $this->getData(['theme', 'menu', 'width'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user