forked from ZwiiCMS-Team/ZwiiCMS
Personnalisation du bouton d'aide
This commit is contained in:
parent
b9976e2893
commit
7157e43baf
@ -478,14 +478,14 @@ $(document).ready(function(){
|
||||
* Active le système d'aide interne
|
||||
*
|
||||
*/
|
||||
$(".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');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -1047,7 +1047,7 @@ class common {
|
||||
$success = true;
|
||||
|
||||
// Boucler dans le dossier source en l'absence d'échec de lecture écriture
|
||||
while( $success
|
||||
while( $success
|
||||
AND $file = readdir($dir) ) {
|
||||
if (( $file != '.' ) && ( $file != '..' )) {
|
||||
if ( is_dir($src . '/' . $file) ){
|
||||
@ -1704,7 +1704,7 @@ class common {
|
||||
$this->setData(['config', 'i18n','nl', false ]);
|
||||
$this->setData(['config', 'i18n','pt', false ]);
|
||||
|
||||
// Supprimer les fichiers de backup
|
||||
// Supprimer les fichiers de backup
|
||||
if (file_exists('site/data/.backup')) unlink('site/data/.backup');
|
||||
$path = realpath('site/data');
|
||||
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)) as $filename)
|
||||
@ -1971,6 +1971,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']));
|
||||
|
@ -1738,7 +1738,3 @@ th.col12 {
|
||||
//color: white;
|
||||
z-index: 30;
|
||||
}
|
||||
|
||||
.helpDisplayButton {
|
||||
opacity: 1;
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="col2">
|
||||
<?php echo template::button('addonIndexHelp', [
|
||||
'class' => 'helpDisplayButton',
|
||||
'class' => 'buttonHelp',
|
||||
'ico' => 'help',
|
||||
'value' => 'Aide'
|
||||
]); ?>
|
||||
@ -29,7 +29,6 @@
|
||||
</div>
|
||||
<!-- Aide à propos de la gestion des modules, view index -->
|
||||
<div class="helpDisplayContent">
|
||||
|
||||
<?php echo file_get_contents( 'core/module/addon/view/index/index.help.html') ;?>
|
||||
</div>
|
||||
<?php if($module::$modInstal): ?>
|
||||
|
@ -10,7 +10,7 @@
|
||||
</div>
|
||||
<div class="col2">
|
||||
<?php echo template::button('addonIndexHelp', [
|
||||
'class' => 'helpDisplayButton',
|
||||
'class' => 'buttonHelp',
|
||||
'ico' => 'help',
|
||||
'value' => 'Aide'
|
||||
]); ?>
|
||||
@ -22,7 +22,7 @@
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Aide à propos de la gestion des modules, view index -->
|
||||
<!-- Aide à propos de la gestion des modules, view upload -->
|
||||
<div class="helpDisplayContent">
|
||||
<?php echo file_get_contents( 'core/module/addon/view/upload/upload.help.html') ;?>
|
||||
</div>
|
||||
|
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="col3 offset5">
|
||||
<div class="col2">
|
||||
<?php echo template::button('addonIndexHelp', [
|
||||
'class' => 'buttonHelp',
|
||||
'ico' => 'help',
|
||||
'value' => 'Aide'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col3 offset3">
|
||||
<?php echo template::button('configAdvancedButton', [
|
||||
'href' => helper::baseUrl() . 'config/advanced',
|
||||
'value' => 'Configuration 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">
|
||||
|
@ -211,6 +211,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)'
|
||||
],
|
||||
@ -839,4 +840,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