From: vincent@cubedesigners.com Date: Tue, 21 Jun 2022 16:35:58 +0000 (+0000) Subject: wip #5317 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9d88ca70f54f93e04ba41ebf4470ab2963a07ac1;p=cubeextranet.git wip #5317 @0.5 --- diff --git a/inc/ws/Metier/class.ws.theme.parametres.php b/inc/ws/Metier/class.ws.theme.parametres.php index 16829676f..4241c5ff2 100644 --- a/inc/ws/Metier/class.ws.theme.parametres.php +++ b/inc/ws/Metier/class.ws.theme.parametres.php @@ -80,7 +80,7 @@ class wsThemeParametres extends wsParametres 'label' => __("Couleur des icônes")); $this->forms['icones'] = array('label' => __('Personnalisation des icônes'), - 'fieldsnames' => array('iconSet','symbols', 'couleurI')); + 'fieldsnames' => array('iconSet', 'symbols', 'couleurI')); /* Book */ $this->fields['interfaceFont'] = ['type' => 'combo', 'default' => 'OpenSans', 'datas' => wsBookParametres::$fonts, 'editable' => true, 'label' => __('Police de l\'interface')]; @@ -98,6 +98,7 @@ class wsThemeParametres extends wsParametres 'label' => __('Couleur des numéros de page')); $this->fields['linksColor'] = array('type' => 'couleur', 'default' => '$couleurA', 'editable' => true, 'label' => __('Couleur des liens')); + $this->fields['slideshowColor'] = ['type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Couleur d\'accentuation des slideshow')]; $this->fields['videoBackgroundColor'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true, 'label' => __('Couleur de fond des videos')); @@ -125,7 +126,7 @@ class wsThemeParametres extends wsParametres 'fieldsnames' => array('interfaceFont', 'interfaceFontUppercase', '|', 'shadeAlpha', '|', 'bookShadeColor', '|', 'usePageEdges', '|', 'displayPageNumber', 'colorPageNumber', - '|', 'linksColor', 'videoBackgroundColor', + '|', 'linksColor', 'videoBackgroundColor', 'slideshowColor', '|', 'tooltipBackColor', 'tooltipTextColor', 'tooltipTextSize', 'tooltipPadding', '|', 'bookmarkBackgroundColor', 'bookmarkStarDisabledColor', 'bookmarkStarEnabledColor', '|', 'audioplayerBackgroundColor', 'audioplayerStrokeColor', 'audioplayerIconColor')); diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index b4f8247a5..cb45b9d06 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -3002,6 +3002,7 @@ height="0" width="0" style="display:none;visibility:hidden"> $this->log('CSS 7'); // Links Styles $this->lessVariables['links-color'] = wsHTML5::colorToCSS($this->theme->parametres->linksColor); + $this->lessVariables['slideshow-color'] = wsHTML5::colorToCSS($this->theme->parametres->slideshowColor ?: $this->theme->parametres->couleurB); $this->lessVariables['inlineslideshow-transition-time'] = (floatval($this->book->parametres->inlineSlideshowTransitionDuration) * 1000) . 'ms'; $this->lessVariables['slideshow-caption-size'] = $this->book->parametres->slideshowCaptionSize ?: '16px';