<?php\r
\r
-class wsThemeParametres extends wsParametres {\r
+class wsThemeParametres extends wsParametres\r
+{\r
\r
- public function __construct($parent) {\r
- parent::__construct($parent);\r
- }\r
+ public function __construct($parent)\r
+ {\r
+ parent::__construct($parent);\r
+ }\r
\r
- public function initFields() {\r
- if (is_null($this->parent)) {\r
- return;\r
- }\r
+ public function initFields()\r
+ {\r
+ if (is_null($this->parent)) {\r
+ return;\r
+ }\r
\r
- $themeRoot = 'fluidbook/themes/' . $this->parent->theme_id;\r
+ $themeRoot = 'fluidbook/themes/' . $this->parent->theme_id;\r
\r
- parent::initFields();\r
- /* Navigation */\r
- $this->fields['arrowsTheme'] = array('type' => 'boolean', "default" => false, "editable" => true, "label" => __('Nouveau thème'));\r
- $this->fields['couleurA'] = array('type' => 'couleurAlpha', 'default' => 'ff000000', 'editable' => true,\r
- 'label' => __("Couleur de fond"));\r
- $this->fields['arrowsColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
- 'label' => __('Couleur des flèches'));\r
- $this->fields['shadeOnArrows'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Ombre portée sous les flèches'));\r
+ parent::initFields();\r
+ /* Navigation */\r
+ $this->fields['arrowsTheme'] = array('type' => 'boolean', "default" => false, "editable" => true, "label" => __('Nouveau thème'));\r
+ $this->fields['couleurA'] = array('type' => 'couleurAlpha', 'default' => 'ff000000', 'editable' => true,\r
+ 'label' => __("Couleur de fond"));\r
+ $this->fields['arrowsColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
+ 'label' => __('Couleur des flèches'));\r
+ $this->fields['shadeOnArrows'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Ombre portée sous les flèches'));\r
\r
\r
- $this->forms['bouton'] = array('label' => __('Personnalisation des boutons'),\r
- 'fieldsnames' => array('couleurA', 'arrowsColor', 'shadeOnArrows', 'arrowsTheme'));\r
- /* Submenus */\r
- $this->fields['popupVideoOverlay'] = array('type' => 'couleurAlpha', 'default' => '4D000000', 'editable' => true,\r
- 'label' => __('Overlay placé sous les menus en popup'));\r
- $this->fields['couleurB'] = array('type' => 'couleurAlpha', 'default' => 'ff000000', 'editable' => true,\r
- 'label' => __("Couleur de fond"));\r
- $this->fields['subSecondaryColor'] = array('type' => 'text', 'default' => '', 'editable' => true, 'size' => 6,\r
- 'label' => __("Couleur secondaire pour la version HTML5 (boutons)"));\r
- $this->fields['subTextColor'] = array('type' => 'couleur', 'default' => 'ffffffff', 'editable' => true,\r
- 'label' => __("Couleur du texte"));\r
- $this->fields['subSelectColor'] = array('type' => 'couleurAlpha', 'default' => 'ffffffff', 'editable' => true,\r
- 'label' => __("Couleur des zones de sélection"));\r
- $this->fields['subTextSelectColor'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true,\r
- 'label' => __("Couleur des textes des zones de sélection"));\r
- $this->fields['subTextFieldColor'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true,\r
- 'label' => __("Couleur des textes des champs d'édition"));\r
- $this->fields['subFieldColor'] = array('type' => 'couleurAlpha', 'default' => 'ffffffff', 'editable' => true,\r
- 'label' => __("Couleur des champs d'édition"));\r
- $this->fields['subStrokeWidth'] = array('type' => 'integer', 'default' => 0, "editable" => true, 'label' => __('Largeur du contour'));\r
- $this->fields['subStrokeColor'] = array('type' => 'couleur', 'default' => 'ffffff', "editable" => true, 'label' => __('Couleur du contour'));\r
- $this->fields['subShade'] = array('type' => 'couleurAlpha', 'default' => '00000000', "editable" => true, 'label' => __('Ombre sous le sous-menu'));\r
- $this->fields['subRound'] = array('type' => 'integer', 'default' => 10, "editable" => true, 'label' => __('Arrondi'));\r
- $this->fields['subButtonCustom'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Personnalisation des boutons'));\r
- $this->fields['subButtonBackground'] = array('type' => 'couleur', 'default' => 'cccccc', 'editable' => true, 'label' => __('Couleur de fond'));\r
- $this->fields['subButtonColor'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true, 'label' => __('Couleur du texte'));\r
- $this->fields['subButtonDecoration'] = array('type' => 'couleur', 'default' => '797979', 'editable' => true, 'label' => __('Couleur des décorations'));\r
- $this->fields['subCrossCircle'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Afficher un cercle sous la croix de fermeture'));\r
+ $this->forms['bouton'] = array('label' => __('Personnalisation des boutons'),\r
+ 'fieldsnames' => array('couleurA', 'arrowsColor', 'shadeOnArrows', 'arrowsTheme'));\r
+ /* Submenus */\r
+ $this->fields['popupVideoOverlay'] = array('type' => 'couleurAlpha', 'default' => '4D000000', 'editable' => true,\r
+ 'label' => __('Overlay placé sous les menus en popup'));\r
+ $this->fields['couleurB'] = array('type' => 'couleurAlpha', 'default' => 'ff000000', 'editable' => true,\r
+ 'label' => __("Couleur de fond"));\r
+ $this->fields['subSecondaryColor'] = array('type' => 'text', 'default' => '', 'editable' => true, 'size' => 6,\r
+ 'label' => __("Couleur secondaire pour la version HTML5 (boutons)"));\r
+ $this->fields['subTextColor'] = array('type' => 'couleur', 'default' => 'ffffffff', 'editable' => true,\r
+ 'label' => __("Couleur du texte"));\r
+ $this->fields['subSelectColor'] = array('type' => 'couleurAlpha', 'default' => 'ffffffff', 'editable' => true,\r
+ 'label' => __("Couleur des zones de sélection"));\r
+ $this->fields['subTextSelectColor'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true,\r
+ 'label' => __("Couleur des textes des zones de sélection"));\r
+ $this->fields['subTextFieldColor'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true,\r
+ 'label' => __("Couleur des textes des champs d'édition"));\r
+ $this->fields['subFieldColor'] = array('type' => 'couleurAlpha', 'default' => 'ffffffff', 'editable' => true,\r
+ 'label' => __("Couleur des champs d'édition"));\r
+ $this->fields['subStrokeWidth'] = array('type' => 'integer', 'default' => 0, "editable" => true, 'label' => __('Largeur du contour'));\r
+ $this->fields['subStrokeColor'] = array('type' => 'couleur', 'default' => 'ffffff', "editable" => true, 'label' => __('Couleur du contour'));\r
+ $this->fields['subShade'] = array('type' => 'couleurAlpha', 'default' => '00000000', "editable" => true, 'label' => __('Ombre sous le sous-menu'));\r
+ $this->fields['subRound'] = array('type' => 'integer', 'default' => 10, "editable" => true, 'label' => __('Arrondi'));\r
+ $this->fields['subButtonCustom'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Personnalisation des boutons'));\r
+ $this->fields['subButtonBackground'] = array('type' => 'couleur', 'default' => 'cccccc', 'editable' => true, 'label' => __('Couleur de fond'));\r
+ $this->fields['subButtonColor'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true, 'label' => __('Couleur du texte'));\r
+ $this->fields['subButtonDecoration'] = array('type' => 'couleur', 'default' => '797979', 'editable' => true, 'label' => __('Couleur des décorations'));\r
+ $this->fields['subCrossCircle'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __('Afficher un cercle sous la croix de fermeture'));\r
\r
- $this->forms['menu'] = array('label' => __('Personnalisation des menus'),\r
- 'fieldsnames' => array('couleurB', 'subSecondaryColor', 'subTextColor', '|', 'subCrossCircle', '|', 'subSelectColor', 'subTextSelectColor', '|', 'subTextFieldColor', 'subFieldColor',\r
- '|', 'subStrokeWidth', 'subStrokeColor', 'subShade', 'subRound',\r
- '|', 'subButtonCustom', 'subButtonBackground', 'subButtonColor', 'subButtonDecoration', "|", 'popupVideoOverlay')\r
- );\r
+ $this->forms['menu'] = array('label' => __('Personnalisation des menus'),\r
+ 'fieldsnames' => array('couleurB', 'subSecondaryColor', 'subTextColor', '|', 'subCrossCircle', '|', 'subSelectColor', 'subTextSelectColor', '|', 'subTextFieldColor', 'subFieldColor',\r
+ '|', 'subStrokeWidth', 'subStrokeColor', 'subShade', 'subRound',\r
+ '|', 'subButtonCustom', 'subButtonBackground', 'subButtonColor', 'subButtonDecoration', "|", 'popupVideoOverlay')\r
+ );\r
\r
- /* Search */\r
- $this->fields['couleurS'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true,\r
- 'label' => __("Couleur du texte"));\r
- $this->fields['searchFieldColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
- 'label' => __("Couleur du champs de saisie"));\r
- $this->fields['searchShadeAlpha'] = array('type' => 'integer', 'default' => 0, 'editable' => true,\r
- 'label' => __("Intensité de l'ombre dans le champ de saisie"),\r
- 'min' => 0, 'max' => 100);\r
- $this->fields['highlightColor'] = array('type' => 'couleur', 'default' => '00ff00', 'editable' => true,\r
- 'label' => __("Couleur du surlignage des résultats"));\r
- $this->fields['searchFieldWidth'] = array('type' => 'integer', 'default' => 230, 'editable' => true,\r
- 'label' => __("Largeur du champ de recherche"));\r
- $this->fields['searchIndexNoResultColor'] = array('type' => 'couleurAlpha', 'default' => 'CC000000', 'editable' => true,\r
- 'label' => __("Couleur de l'overlay (aucun résultat)"),\r
- 'grade' => 5);\r
+ /* Search */\r
+ $this->fields['couleurS'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true,\r
+ 'label' => __("Couleur du texte"));\r
+ $this->fields['searchFieldColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
+ 'label' => __("Couleur du champs de saisie"));\r
+ $this->fields['searchShadeAlpha'] = array('type' => 'integer', 'default' => 0, 'editable' => true,\r
+ 'label' => __("Intensité de l'ombre dans le champ de saisie"),\r
+ 'min' => 0, 'max' => 100);\r
+ $this->fields['highlightColor'] = array('type' => 'couleur', 'default' => '00ff00', 'editable' => true,\r
+ 'label' => __("Couleur du surlignage des résultats"));\r
+ $this->fields['searchFieldWidth'] = array('type' => 'integer', 'default' => 230, 'editable' => true,\r
+ 'label' => __("Largeur du champ de recherche"));\r
+ $this->fields['searchIndexNoResultColor'] = array('type' => 'couleurAlpha', 'default' => 'CC000000', 'editable' => true,\r
+ 'label' => __("Couleur de l'overlay (aucun résultat)"),\r
+ 'grade' => 5);\r
\r
- $this->forms['search'] = array('label' => __('Personnalisation de la recherche'),\r
- 'fieldsnames' => array('couleurS', 'searchFieldColor', 'searchShadeAlpha', 'searchFieldWidth', '|', 'highlightColor', '|', 'searchIndexNoResultColor'));\r
- /* Icones */\r
- $this->fields['iconSet'] = array('type' => 'icones', 'default' => 15, 'editable' => true,\r
- 'label' => __("Jeu d'icônes"));\r
- $this->fields['colorizeIcons'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
- 'label' => __('Colorier les icônes'));\r
- $this->fields['couleurI'] = array('type' => 'couleur', 'default' => '$couleurA', 'editable' => true,\r
- 'label' => __("Couleur des icônes"));\r
- $this->fields['iconShadeColor'] = array('type' => 'couleurAlpha', 'default' => '00000000', 'editable' => true,\r
- 'label' => __("Couleur de l'effet de rollover"));\r
- $this->fields['iconsHMargin'] = array('type' => 'integer', 'default' => 15, 'editable' => true,\r
- 'label' => __('Espace entre les icônes'), 'min' => 0, 'max' => 50);\r
+ $this->forms['search'] = array('label' => __('Personnalisation de la recherche'),\r
+ 'fieldsnames' => array('couleurS', 'searchFieldColor', 'searchShadeAlpha', 'searchFieldWidth', '|', 'highlightColor', '|', 'searchIndexNoResultColor'));\r
+ /* Icones */\r
+ $this->fields['iconSet'] = array('type' => 'icones', 'default' => 15, 'editable' => true,\r
+ 'label' => __("Jeu d'icônes"));\r
+ $this->fields['colorizeIcons'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
+ 'label' => __('Colorier les icônes'));\r
+ $this->fields['couleurI'] = array('type' => 'couleur', 'default' => '$couleurA', 'editable' => true,\r
+ 'label' => __("Couleur des icônes"));\r
+ $this->fields['iconShadeColor'] = array('type' => 'couleurAlpha', 'default' => '00000000', 'editable' => true,\r
+ 'label' => __("Couleur de l'effet de rollover"));\r
+ $this->fields['iconsHMargin'] = array('type' => 'integer', 'default' => 15, 'editable' => true,\r
+ 'label' => __('Espace entre les icônes'), 'min' => 0, 'max' => 50);\r
\r
- $this->fields['fontKit'] = array('type' => 'combo', 'default' => 'auto', 'editable' => true,\r
- 'label' => __('Police de caractères'), 'datas' => array(__('Automatique') => 'auto',\r
- 'VAG Rounded' => 'vagrounded',\r
- 'Gill' => 'gill'));\r
+ $this->fields['fontKit'] = array('type' => 'combo', 'default' => 'auto', 'editable' => true,\r
+ 'label' => __('Police de caractères'), 'datas' => array(__('Automatique') => 'auto',\r
+ 'VAG Rounded' => 'vagrounded',\r
+ 'Gill' => 'gill'));\r
\r
- $this->forms['icones'] = array('label' => __('Personnalisation des icônes'),\r
- 'fieldsnames' => array('iconSet', 'iconShadeColor', '|', 'iconsHMargin', '|', 'colorizeIcons', 'couleurI', '|', 'fontKit'));\r
+ $this->forms['icones'] = array('label' => __('Personnalisation des icônes'),\r
+ 'fieldsnames' => array('iconSet', 'iconShadeColor', '|', 'iconsHMargin', '|', 'colorizeIcons', 'couleurI', '|', 'fontKit'));\r
\r
- /* Book */\r
- $this->fields['bookShadeColor'] = array('type' => 'couleurAlpha', 'default' => '66000000', 'editable' => true,\r
- 'label' => __("Couleur de l'ombre sous la publication"));\r
- $this->fields['shadeAlpha'] = array('type' => 'integer', 'default' => 100, 'editable' => true,\r
- 'label' => __('Transparence des ombres et reflets sur les pages'),\r
- 'min' => 0, 'max' => 100);\r
- $this->fields['pageReflection'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
- 'label' => __("Afficher le reflet sur la page"));\r
- $this->fields['usePageEdges'] = array('type' => 'boolean', 'default' => true, 'editable' => true,\r
- 'label' => __("Afficher la bordure des pages"));\r
- $this->fields['displayPageNumber'] = array('type' => 'boolean', 'default' => true, 'editable' => true,\r
- 'label' => __('Afficher les numéros de page'));\r
- $this->fields['colorPageNumber'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
- 'label' => __('Couleur des numéros de page'));\r
- $this->fields['linksColor'] = array('type' => 'couleur', 'default' => '$couleurA', 'editable' => true,\r
- 'label' => __('Couleur des liens'));\r
- $this->fields['videoBackgroundColor'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true,\r
- 'label' => __('Couleur de fond des videos'));\r
+ /* Book */\r
+ $this->fields['bookShadeColor'] = array('type' => 'couleurAlpha', 'default' => '66000000', 'editable' => true,\r
+ 'label' => __("Couleur de l'ombre sous la publication"));\r
+ $this->fields['shadeAlpha'] = array('type' => 'integer', 'default' => 100, 'editable' => true,\r
+ 'label' => __('Transparence des ombres et reflets sur les pages'),\r
+ 'min' => 0, 'max' => 100);\r
+ $this->fields['pageReflection'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
+ 'label' => __("Afficher le reflet sur la page"));\r
+ $this->fields['usePageEdges'] = array('type' => 'boolean', 'default' => true, 'editable' => true,\r
+ 'label' => __("Afficher la bordure des pages"));\r
+ $this->fields['displayPageNumber'] = array('type' => 'boolean', 'default' => true, 'editable' => true,\r
+ 'label' => __('Afficher les numéros de page'));\r
+ $this->fields['colorPageNumber'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
+ 'label' => __('Couleur des numéros de page'));\r
+ $this->fields['linksColor'] = array('type' => 'couleur', 'default' => '$couleurA', 'editable' => true,\r
+ 'label' => __('Couleur des liens'));\r
+ $this->fields['videoBackgroundColor'] = array('type' => 'couleur', 'default' => '000000', 'editable' => true,\r
+ 'label' => __('Couleur de fond des videos'));\r
\r
- $this->fields['pageEdgeColor'] = array('type' => 'couleur', 'default' => 'dddddd', 'editable' => true,\r
- 'label' => __('Couleur de la bordure'));\r
- $this->fields['pageEdgeThickness'] = array('type' => 'integer', 'default' => 100, 'editable' => true,\r
- 'label' => __('Epaisseur de la bordure'));\r
- $this->fields['tooltipBackColor'] = array('type' => 'couleurAlpha', 'default' => 'CC000000', 'editable' => true,\r
- 'label' => __("Couleur de fond des infobulles"));\r
- $this->fields['tooltipTextColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
- 'label' => __("Couleur du texte des infobulles"));\r
- $this->fields['bookmarkBackgroundColor'] = array('type' => 'couleurAlpha', 'default' => 'ffadadad', 'editable' => true,\r
- 'label' => __("Couleur de fond des marques-pages"));\r
- $this->fields['bookmarkStarDisabledColor'] = array('type' => 'couleurAlpha', 'default' => '00ffffff', 'editable' => true,\r
- 'label' => __("Couleur de l'étoile désactivée"));\r
- $this->fields['bookmarkStarEnabledColor'] = array('type' => 'couleur', 'default' => 'ff7700', 'editable' => true,\r
- 'label' => __("Couleur de l'étoile activée"));\r
+ $this->fields['pageEdgeColor'] = array('type' => 'couleur', 'default' => 'dddddd', 'editable' => true,\r
+ 'label' => __('Couleur de la bordure'));\r
+ $this->fields['pageEdgeThickness'] = array('type' => 'integer', 'default' => 100, 'editable' => true,\r
+ 'label' => __('Epaisseur de la bordure'));\r
+ $this->fields['tooltipBackColor'] = array('type' => 'couleurAlpha', 'default' => 'CC000000', 'editable' => true,\r
+ 'label' => __("Couleur de fond des infobulles"));\r
+ $this->fields['tooltipTextColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
+ 'label' => __("Couleur du texte des infobulles"));\r
+ $this->fields['tooltipTextSize'] = array('type' => 'integer', 'default' => 100, 'editable' => true,\r
+ 'label' => __('Taille du texte des infobulles'));\r
+ $this->fields['bookmarkBackgroundColor'] = array('type' => 'couleurAlpha', 'default' => 'ffadadad', 'editable' => true,\r
+ 'label' => __("Couleur de fond des marques-pages"));\r
+ $this->fields['bookmarkStarDisabledColor'] = array('type' => 'couleurAlpha', 'default' => '00ffffff', 'editable' => true,\r
+ 'label' => __("Couleur de l'étoile désactivée"));\r
+ $this->fields['bookmarkStarEnabledColor'] = array('type' => 'couleur', 'default' => 'ff7700', 'editable' => true,\r
+ 'label' => __("Couleur de l'étoile activée"));\r
\r
- $this->forms['book'] = array('label' => __('Personnalisation de la publication'),\r
- 'fieldsnames' => array('pageReflection', 'shadeAlpha',\r
- '|', 'usePageEdges', 'pageEdgeColor', 'pageEdgeThickness',\r
- '|', 'bookShadeColor',\r
- '|', 'displayPageNumber', 'colorPageNumber',\r
- '|', 'linksColor', 'videoBackgroundColor',\r
- '|', 'tooltipBackColor', 'tooltipTextColor',\r
- '|', 'bookmarkBackgroundColor', 'bookmarkStarDisabledColor', 'bookmarkStarEnabledColor'));\r
- /* Credits */\r
- $this->fields['creditsColor'] = array('type' => 'couleurAlpha', 'default' => '80ffffff', 'editable' => true,\r
- 'label' => __("Couleur du texte"));\r
+ $this->forms['book'] = array('label' => __('Personnalisation de la publication'),\r
+ 'fieldsnames' => array('pageReflection', 'shadeAlpha',\r
+ '|', 'usePageEdges', 'pageEdgeColor', 'pageEdgeThickness',\r
+ '|', 'bookShadeColor',\r
+ '|', 'displayPageNumber', 'colorPageNumber',\r
+ '|', 'linksColor', 'videoBackgroundColor',\r
+ '|', 'tooltipBackColor', 'tooltipTextColor', 'tooltipTextSize',\r
+ '|', 'bookmarkBackgroundColor', 'bookmarkStarDisabledColor', 'bookmarkStarEnabledColor'));\r
+ /* Credits */\r
+ $this->fields['creditsColor'] = array('type' => 'couleurAlpha', 'default' => '80ffffff', 'editable' => true,\r
+ 'label' => __("Couleur du texte"));\r
\r
- $this->forms['credits'] = array('label' => __('Personnalisation des crédits'),\r
- 'fieldsnames' => array('creditsColor'));\r
- /* Background */\r
- $this->fields['transparentBackground'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
- 'label' => __('Fond transparent'), 'hint' => __("Si cette option est cochée, aucun fond ne sera pris en compte (ni l'image, ni la couleur)"));\r
- $this->fields['backgroundColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
- 'label' => __("Couleur du fond"));\r
- $this->fields['backgroundImage'] = array('type' => 'file', 'default' => 'backgroundImg.jpg', 'editable' => true,\r
- 'label' => __('Image de fond'),\r
- 'path' => $themeRoot,\r
- 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id);\r
- $this->fields['repeat'] = array('type' => 'combo',\r
- 'datas' => array(__('Etirer') => wsTheme::STRETCH,\r
- __('Etirer le fond en conservant les proportions') => wsTheme::RATIO,\r
- __("Répéter") => wsTheme::REPEAT,\r
- __('Ne pas répéter ni étirer') => wsTheme::NONE),\r
- 'default' => 0, 'editable' => true, 'label' => __('Affichage du fond'));\r
- $this->fields['backgroundHAlign'] = array('type' => 'combo',\r
- 'datas' => array(__('Centré') => wsTheme::CENTER,\r
- __('Gauche') => wsTheme::LEFT,\r
- __("Droite") => wsTheme::RIGHT),\r
- 'default' => wsTheme::CENTER, 'editable' => true, 'label' => __('Alignement Horizontal'));\r
- $this->fields['backgroundVAlign'] = array('type' => 'combo',\r
- 'datas' => array(__('Milieu') => wsTheme::MIDDLE,\r
- __('Haut') => wsTheme::TOP,\r
- __("Bas") => wsTheme::BOTTOM),\r
- 'default' => wsTheme::MIDDLE, 'editable' => true, 'label' => __('Alignement Vertical'));\r
- $this->fields['displayBackgroundDuringLoading'] = array('type' => 'boolean', 'default' => true, 'editable' => true,\r
- 'label' => __('Afficher le fond pendant le chargement'), 'hint' => __("Si cette option est désactivée, le fond ne sera affiché qu'à la fin du chargement"));\r
+ $this->forms['credits'] = array('label' => __('Personnalisation des crédits'),\r
+ 'fieldsnames' => array('creditsColor'));\r
+ /* Background */\r
+ $this->fields['transparentBackground'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
+ 'label' => __('Fond transparent'), 'hint' => __("Si cette option est cochée, aucun fond ne sera pris en compte (ni l'image, ni la couleur)"));\r
+ $this->fields['backgroundColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
+ 'label' => __("Couleur du fond"));\r
+ $this->fields['backgroundImage'] = array('type' => 'file', 'default' => 'backgroundImg.jpg', 'editable' => true,\r
+ 'label' => __('Image de fond'),\r
+ 'path' => $themeRoot,\r
+ 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id);\r
+ $this->fields['repeat'] = array('type' => 'combo',\r
+ 'datas' => array(__('Etirer') => wsTheme::STRETCH,\r
+ __('Etirer le fond en conservant les proportions') => wsTheme::RATIO,\r
+ __("Répéter") => wsTheme::REPEAT,\r
+ __('Ne pas répéter ni étirer') => wsTheme::NONE),\r
+ 'default' => 0, 'editable' => true, 'label' => __('Affichage du fond'));\r
+ $this->fields['backgroundHAlign'] = array('type' => 'combo',\r
+ 'datas' => array(__('Centré') => wsTheme::CENTER,\r
+ __('Gauche') => wsTheme::LEFT,\r
+ __("Droite") => wsTheme::RIGHT),\r
+ 'default' => wsTheme::CENTER, 'editable' => true, 'label' => __('Alignement Horizontal'));\r
+ $this->fields['backgroundVAlign'] = array('type' => 'combo',\r
+ 'datas' => array(__('Milieu') => wsTheme::MIDDLE,\r
+ __('Haut') => wsTheme::TOP,\r
+ __("Bas") => wsTheme::BOTTOM),\r
+ 'default' => wsTheme::MIDDLE, 'editable' => true, 'label' => __('Alignement Vertical'));\r
+ $this->fields['displayBackgroundDuringLoading'] = array('type' => 'boolean', 'default' => true, 'editable' => true,\r
+ 'label' => __('Afficher le fond pendant le chargement'), 'hint' => __("Si cette option est désactivée, le fond ne sera affiché qu'à la fin du chargement"));\r
\r
- $this->forms['background'] = array('label' => __('Personnalisation du fond'),\r
- 'fieldsnames' => array('transparentBackground', '|', 'backgroundColor', '|', 'backgroundImage',\r
- 'repeat', 'backgroundHAlign', 'backgroundVAlign', '|', 'displayBackgroundDuringLoading'));\r
- /* Menu bar */\r
- $this->fields['menuHeight'] = array('type' => 'integer', 'default' => 60, 'editable' => true,\r
- 'label' => __('Hauteur (en pixels)'));\r
- $this->fields['menuColor'] = array('type' => 'couleurAlpha', 'default' => 'ffffffff', 'editable' => true,\r
- 'label' => __("Couleur du fond"));\r
- $this->fields['shadeOnMenu'] = array('type' => 'boolean', 'default' => true, 'editable' => true,\r
- 'label' => __('Ombre portée sous la barre du menu'));\r
- $this->fields['menuImage'] = array('type' => 'file', 'default' => 'menu_back.png', 'editable' => true,\r
- 'label' => __('Image de fond'),\r
- 'path' => $themeRoot,\r
- 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id);\r
- $this->fields['invertMenuPosition'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
- 'label' => __("Intervertir le menu et le logo"));\r
+ $this->forms['background'] = array('label' => __('Personnalisation du fond'),\r
+ 'fieldsnames' => array('transparentBackground', '|', 'backgroundColor', '|', 'backgroundImage',\r
+ 'repeat', 'backgroundHAlign', 'backgroundVAlign', '|', 'displayBackgroundDuringLoading'));\r
+ /* Menu bar */\r
+ $this->fields['menuHeight'] = array('type' => 'integer', 'default' => 60, 'editable' => true,\r
+ 'label' => __('Hauteur (en pixels)'));\r
+ $this->fields['menuColor'] = array('type' => 'couleurAlpha', 'default' => 'ffffffff', 'editable' => true,\r
+ 'label' => __("Couleur du fond"));\r
+ $this->fields['shadeOnMenu'] = array('type' => 'boolean', 'default' => true, 'editable' => true,\r
+ 'label' => __('Ombre portée sous la barre du menu'));\r
+ $this->fields['menuImage'] = array('type' => 'file', 'default' => 'menu_back.png', 'editable' => true,\r
+ 'label' => __('Image de fond'),\r
+ 'path' => $themeRoot,\r
+ 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id);\r
+ $this->fields['invertMenuPosition'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
+ 'label' => __("Intervertir le menu et le logo"));\r
\r
- $this->fields['topBar'] = array('type' => 'file', 'default' => '', 'editable' => true,\r
- 'label' => __('Top Bar'),\r
- 'path' => $themeRoot,\r
- 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id);\r
- $this->fields['topBarAlign'] = array('type' => 'combo',\r
- 'datas' => array(__('Centré') => wsTheme::CENTER,\r
- __('Gauche') => wsTheme::LEFT,\r
- __("Droite") => wsTheme::RIGHT),\r
- 'default' => wsTheme::LEFT, 'editable' => true, 'label' => __('Alignement Horizontal de la Top Bar'));\r
+ $this->fields['topBar'] = array('type' => 'file', 'default' => '', 'editable' => true,\r
+ 'label' => __('Top Bar'),\r
+ 'path' => $themeRoot,\r
+ 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id);\r
+ $this->fields['topBarAlign'] = array('type' => 'combo',\r
+ 'datas' => array(__('Centré') => wsTheme::CENTER,\r
+ __('Gauche') => wsTheme::LEFT,\r
+ __("Droite") => wsTheme::RIGHT),\r
+ 'default' => wsTheme::LEFT, 'editable' => true, 'label' => __('Alignement Horizontal de la Top Bar'));\r
\r
- $this->fields['afterSearch'] = array('type' => 'file', 'default' => '', 'editable' => true,\r
- 'label' => __('Image supplémentaire'),\r
- 'path' => $themeRoot,\r
- 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id,\r
- 'hint' => __('Image disposée à droite du champ de recherche')\r
- );\r
+ $this->fields['afterSearch'] = array('type' => 'file', 'default' => '', 'editable' => true,\r
+ 'label' => __('Image supplémentaire'),\r
+ 'path' => $themeRoot,\r
+ 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id,\r
+ 'hint' => __('Image disposée à droite du champ de recherche')\r
+ );\r
\r
- $this->forms['menubar'] = array('label' => __('Personnalisation de la barre de menu'),\r
- 'fieldsnames' => array('menuHeight', '|', 'menuColor', '|', 'menuImage', '|', 'shadeOnMenu', '|', 'invertMenuPosition', '|', 'topBar', 'topBarAlign', '|', 'afterSearch'));\r
- /* Menu bar logo */\r
+ $this->forms['menubar'] = array('label' => __('Personnalisation de la barre de menu'),\r
+ 'fieldsnames' => array('menuHeight', '|', 'menuColor', '|', 'menuImage', '|', 'shadeOnMenu', '|', 'invertMenuPosition', '|', 'topBar', 'topBarAlign', '|', 'afterSearch'));\r
+ /* Menu bar logo */\r
\r
- $imageFilter = new stdClass();\r
- $imageFilter->name = __('Image PNG ou SVG') . ' (*.png, *.svg)';\r
- $imageFilter->extensions = '*.svg;*.png';\r
+ $imageFilter = new stdClass();\r
+ $imageFilter->name = __('Image PNG ou SVG') . ' (*.png, *.svg)';\r
+ $imageFilter->extensions = '*.svg;*.png';\r
\r
- $this->fields['logo'] = array('type' => 'file', 'default' => 'menu_clientLogo.png', 'editable' => true,\r
- 'label' => __('Logo'),\r
- 'path' => $themeRoot,\r
- 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id);\r
- $this->fields['logoHideWhenOverriden'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
- 'label' => __("Cacher le logo lorsqu'il est partiellement masqué par la publication"));\r
- $this->fields['favicon'] = array('type' => 'file', 'default' => '', 'editable' => true,\r
- 'label' => __('Icone (pour favicon et CD-ROM)'),\r
- 'path' => $themeRoot,\r
- 'fileFilter' => $imageFilter,\r
- 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id . '&type=favicon',\r
- 'hint' => __('Image PNG de 256x256'));\r
- $this->fields['iosicon'] = array('type' => 'file', 'default' => '', 'editable' => true,\r
- 'label' => __('Icone (pour application iOS)'),\r
- 'path' => $themeRoot,\r
- 'fileFilter' => $imageFilter,\r
- 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id . '&type=iosicon',\r
- 'hint' => __('Image PNG de 1024x1024'));\r
- $this->fields['androidicon'] = array('type' => 'file', 'default' => '', 'editable' => true,\r
- 'label' => __('Icone (pour application Android)'),\r
- 'path' => $themeRoot,\r
- 'fileFilter' => $imageFilter,\r
- 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id . '&type=androidicon',\r
- 'hint' => __('Image PNG de 1024x1024'));\r
+ $this->fields['logo'] = array('type' => 'file', 'default' => 'menu_clientLogo.png', 'editable' => true,\r
+ 'label' => __('Logo'),\r
+ 'path' => $themeRoot,\r
+ 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id);\r
+ $this->fields['logoHideWhenOverriden'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
+ 'label' => __("Cacher le logo lorsqu'il est partiellement masqué par la publication"));\r
+ $this->fields['favicon'] = array('type' => 'file', 'default' => '', 'editable' => true,\r
+ 'label' => __('Icone (pour favicon et CD-ROM)'),\r
+ 'path' => $themeRoot,\r
+ 'fileFilter' => $imageFilter,\r
+ 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id . '&type=favicon',\r
+ 'hint' => __('Image PNG de 256x256'));\r
+ $this->fields['iosicon'] = array('type' => 'file', 'default' => '', 'editable' => true,\r
+ 'label' => __('Icone (pour application iOS)'),\r
+ 'path' => $themeRoot,\r
+ 'fileFilter' => $imageFilter,\r
+ 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id . '&type=iosicon',\r
+ 'hint' => __('Image PNG de 1024x1024'));\r
+ $this->fields['androidicon'] = array('type' => 'file', 'default' => '', 'editable' => true,\r
+ 'label' => __('Icone (pour application Android)'),\r
+ 'path' => $themeRoot,\r
+ 'fileFilter' => $imageFilter,\r
+ 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id . '&type=androidicon',\r
+ 'hint' => __('Image PNG de 1024x1024'));\r
\r
- $this->forms['logo'] = array('label' => __('Personnalisation du logo'),\r
- 'fieldsnames' => array('logo', 'logoHideWhenOverriden', '|', 'favicon', 'iosicon', 'androidicon'));\r
- /* Loader */\r
- $this->fields['logoLoader'] = array('type' => 'file', 'default' => 'logoLoader.png', 'editable' => true,\r
- 'label' => __('Logo affiché au chargement'),\r
- 'path' => $themeRoot,\r
- 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id);\r
- $this->fields['couleurL'] = array('type' => 'couleur', 'default' => '', 'editable' => true,\r
- 'label' => __("Couleur principale de la barre de chargement"));\r
- $this->fields['loadingSecColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
- 'label' => __("Couleur secondaire de la barre de chargement"));\r
- $this->fields['loadingBackColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
- 'label' => __("Couleur du fond affichée avant l'affichage de l'image de fond"));\r
- $this->fields['loaderPosition'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
- 'label' => __('Placer le logo à gauche et le loader à droite'), 'grade' => 3);\r
+ $this->forms['logo'] = array('label' => __('Personnalisation du logo'),\r
+ 'fieldsnames' => array('logo', 'logoHideWhenOverriden', '|', 'favicon', 'iosicon', 'androidicon'));\r
+ /* Loader */\r
+ $this->fields['logoLoader'] = array('type' => 'file', 'default' => 'logoLoader.png', 'editable' => true,\r
+ 'label' => __('Logo affiché au chargement'),\r
+ 'path' => $themeRoot,\r
+ 'uploadURL' => SITE_PATH . 'flash/uploadThemeFile/?theme_id=' . $this->parent->theme_id);\r
+ $this->fields['couleurL'] = array('type' => 'couleur', 'default' => '', 'editable' => true,\r
+ 'label' => __("Couleur principale de la barre de chargement"));\r
+ $this->fields['loadingSecColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
+ 'label' => __("Couleur secondaire de la barre de chargement"));\r
+ $this->fields['loadingBackColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
+ 'label' => __("Couleur du fond affichée avant l'affichage de l'image de fond"));\r
+ $this->fields['loaderPosition'] = array('type' => 'boolean', 'default' => false, 'editable' => true,\r
+ 'label' => __('Placer le logo à gauche et le loader à droite'), 'grade' => 3);\r
\r
- $this->forms['loader'] = array('label' => __('Personnalisation du loader'),\r
- 'fieldsnames' => array('loadingBackColor', '|', 'couleurL', 'loadingSecColor', 'logoLoader', 'loaderPosition'));\r
- /* Pages bar */\r
- $this->fields['pagesBar'] = array('type' => 'boolean', 'default' => true, 'editable' => true,\r
- 'label' => __("Afficher la barre d'accès rapide aux pages"));\r
- $this->fields['pageBarThumbBack'] = array('type' => 'couleurAlpha', 'default' => '80000000', 'editable' => true,\r
- 'label' => __("Couleur de fond de la boîte"));\r
- $this->fields['bookmarkColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
- 'label' => __("Couleur des marques-pages"));\r
+ $this->forms['loader'] = array('label' => __('Personnalisation du loader'),\r
+ 'fieldsnames' => array('loadingBackColor', '|', 'couleurL', 'loadingSecColor', 'logoLoader', 'loaderPosition'));\r
+ /* Pages bar */\r
+ $this->fields['pagesBar'] = array('type' => 'boolean', 'default' => true, 'editable' => true,\r
+ 'label' => __("Afficher la barre d'accès rapide aux pages"));\r
+ $this->fields['pageBarThumbBack'] = array('type' => 'couleurAlpha', 'default' => '80000000', 'editable' => true,\r
+ 'label' => __("Couleur de fond de la boîte"));\r
+ $this->fields['bookmarkColor'] = array('type' => 'couleur', 'default' => 'ffffff', 'editable' => true,\r
+ 'label' => __("Couleur des marques-pages"));\r
\r
- $this->forms['pagesbar'] = array('label' => __('Personnalisation de la barre des pages'),\r
- 'fieldsnames' => array('pagesBar', 'pageBarThumbBack', '|', 'bookmarkColor'));\r
+ $this->forms['pagesbar'] = array('label' => __('Personnalisation de la barre des pages'),\r
+ 'fieldsnames' => array('pagesBar', 'pageBarThumbBack', '|', 'bookmarkColor'));\r
\r
- /* Paramètres non implémentés */\r
- /* $this->fields['extraXSpace'] = array('type' => 'integer', 'default' => '0', 'editable' => true,\r
- 'label' => __('Marge supplémentaire horizontale'), 'min' => 0, 'max' => 200);\r
- $this->fields['extraYSpace'] = array('type' => 'integer', 'default' => '0', 'editable' => true,\r
- 'label' => __('Marge supplémentaire verticale'), 'min' => 0, 'max' => 200); */\r
- }\r
+ /* Paramètres non implémentés */\r
+ /* $this->fields['extraXSpace'] = array('type' => 'integer', 'default' => '0', 'editable' => true,\r
+ 'label' => __('Marge supplémentaire horizontale'), 'min' => 0, 'max' => 200);\r
+ $this->fields['extraYSpace'] = array('type' => 'integer', 'default' => '0', 'editable' => true,\r
+ 'label' => __('Marge supplémentaire verticale'), 'min' => 0, 'max' => 200); */\r
+ }\r
\r
}\r