Personnalisation du bouton d'aide
This commit is contained in:
parent
612ad106e8
commit
c3e436c75e
@ -479,14 +479,14 @@ $(document).ready(function(){
|
||||
*
|
||||
*/
|
||||
|
||||
$(".helpDisplayButton").on({
|
||||
$(".buttonHelp").on({
|
||||
click: function () {
|
||||
$(".helpDisplayContent").slideToggle();
|
||||
if( $(".helpDisplayButton").css('opacity') > '0.75'){
|
||||
$(".helpDisplayButton").css('opacity','0.5');
|
||||
if( $(".buttonHelp").css('opacity') > '0.75'){
|
||||
$(".buttonHelp").css('opacity','0.5');
|
||||
}
|
||||
else{
|
||||
$(".helpDisplayButton").css('opacity','1');
|
||||
$(".buttonHelp").css('opacity','1');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1872,6 +1872,8 @@ class core extends common {
|
||||
$css .= '.button.buttonGrey {background-color: ' . $colors['normal'] . ';color: ' . $colors['text'] . ';}.button.buttonGrey:hover {background-color:' . $colors['darken'] . ';color:' . $colors['text'] . ';}.button.buttonGrey:active {background-color:' . $colors['veryDarken'] . ';color:' . $colors['text'] . ';}';
|
||||
$colors = helper::colorVariants($this->getData(['admin','backgroundColorButtonRed']));
|
||||
$css .= '.button.buttonRed {background-color: ' . $colors['normal'] . ';color: ' . $colors['text'] . ';}.button.buttonRed:hover {background-color:' . $colors['darken'] . ';color:' . $colors['text'] . ';}.button.buttonRed:active {background-color:' . $colors['veryDarken'] . ';color:' . $colors['text'] . ';}';
|
||||
$colors = helper::colorVariants($this->getData(['admin','backgroundColorButtonHelp']));
|
||||
$css .= '.button.buttonHelp {background-color: ' . $colors['normal'] . ';color: ' . $colors['text'] . ';}.button.buttonHelp:hover {background-color:' . $colors['darken'] . ';color:' . $colors['text'] . ';}.button.buttonHelp:active {background-color:' . $colors['veryDarken'] . ';color:' . $colors['text'] . ';}';
|
||||
$colors = helper::colorVariants($this->getData(['admin','backgroundColorButtonGreen']));
|
||||
$css .= '.button.buttonGreen, button[type=submit] {background-color: ' . $colors['normal'] . ';color: ' . $colors['text'] . ';}.button.buttonGreen:hover, button[type=submit]:hover {background-color: ' . $colors['darken'] . ';color: ' . $colors['text'] .';}.button.buttonGreen:active, button[type=submit]:active {background-color: ' . $colors['darken'] . ';color: ' .$colors['text'] .';}';
|
||||
$colors = helper::colorVariants($this->getData(['admin','backgroundBlockColor']));
|
||||
|
@ -1708,11 +1708,5 @@ th.col12 {
|
||||
-webkit-box-shadow: 5px 5px 11px 0px #222222;
|
||||
box-shadow: 5px 5px 11px 0px #222222;
|
||||
border-radius: 5px;
|
||||
background-color:#333;
|
||||
color: white;
|
||||
z-index: 30;
|
||||
}
|
||||
|
||||
.helpDisplayButton {
|
||||
opacity: 1;
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<div class="col2">
|
||||
<?php echo template::button('addonIndexHelp', [
|
||||
'class' => 'helpDisplayButton',
|
||||
'class' => 'buttonHelp',
|
||||
'ico' => 'help',
|
||||
'value' => 'Aide'
|
||||
]); ?>
|
||||
|
2
core/module/config/view/index/index.help.html
Normal file
2
core/module/config/view/index/index.help.html
Normal file
@ -0,0 +1,2 @@
|
||||
<h3>PAGES SPECIALES</h3>
|
||||
En cours de rédaction.
|
@ -8,7 +8,14 @@
|
||||
'value' => 'Accueil'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2 offset6">
|
||||
<div class="col2">
|
||||
<?php echo template::button('addonIndexHelp', [
|
||||
'class' => 'buttonHelp',
|
||||
'ico' => 'help',
|
||||
'value' => 'Aide'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2 offset4">
|
||||
<?php echo template::button('configAdvancedButton', [
|
||||
'href' => helper::baseUrl() . 'config/advanced',
|
||||
'value' => 'Avancée',
|
||||
@ -19,6 +26,10 @@
|
||||
<?php echo template::submit('configSubmit'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Aide à propos de la configuration du site, view index -->
|
||||
<div class="helpDisplayContent">
|
||||
<?php echo file_get_contents( 'core/module/config/view/index/index.help.html') ;?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col12">
|
||||
<div class="block">
|
||||
|
@ -210,6 +210,7 @@ class init extends common {
|
||||
'backgroundColorButtonGrey' => 'rgba(170, 180, 188, 1)',
|
||||
'backgroundColorButtonRed' => 'rgba(217, 95, 78, 1)',
|
||||
'backgroundColorButtonGreen' => 'rgba(162, 223, 57, 1)',
|
||||
'backgroundColorButtonHelp' => 'rgba(255, 153, 0, 1)',
|
||||
'backgroundBlockColor' => 'rgba(236, 239, 241, 1)',
|
||||
'borderBlockColor' => 'rgba(190, 202, 209, 1)'
|
||||
],
|
||||
@ -838,4 +839,3 @@ class init extends common {
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -255,6 +255,7 @@ class theme extends common {
|
||||
'backgroundColorButtonGrey' => $this->getInput('adminColorGrey'),
|
||||
'backgroundColorButtonRed' => $this->getInput('adminColorRed'),
|
||||
'backgroundColorButtonGreen'=> $this->getInput('adminColorGreen'),
|
||||
'backgroundColorButtonHelp'=> $this->getInput('adminColorHelp'),
|
||||
'fontText' => $this->getInput('adminFontText'),
|
||||
'fontSize' => $this->getInput('adminFontTextSize'),
|
||||
'fontTitle' => $this->getInput('adminFontTitle'),
|
||||
|
@ -59,7 +59,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col6">
|
||||
<div class="col4">
|
||||
<?php echo template::text('adminBackGroundBlockColor', [
|
||||
'class' => 'colorPicker',
|
||||
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence. La couleur du texte est automatique.',
|
||||
@ -67,7 +67,7 @@
|
||||
'value' => $this->getData(['admin', 'backgroundBlockColor'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col6">
|
||||
<div class="col4">
|
||||
<?php echo template::text('adminBorderBlockColor', [
|
||||
'class' => 'colorPicker',
|
||||
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
|
||||
@ -75,6 +75,14 @@
|
||||
'value' => $this->getData(['admin', 'borderBlockColor'])
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3 offset1">
|
||||
<?php echo template::text('adminColorHelp', [
|
||||
'class' => 'colorPicker',
|
||||
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
|
||||
'label' => 'Bouton Aide',
|
||||
'value' => $this->getData(['admin', 'backgroundColorButtonHelp'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col3">
|
||||
@ -143,4 +151,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo template::formClose(); ?>
|
||||
<?php echo template::formClose(); ?>
|
||||
|
Loading…
Reference in New Issue
Block a user