$this->forms['stats'] = array('label' => __('Statistiques'),\r
'fieldsnames' => array('stats', 'stats_score', '|', 'googleAnalytics', 'googleAnalyticsCustom'));\r
\r
-\r
$this->fields['displayChaptersIcon'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Affiche l'icône du sommaire"), 'grade' => 1);\r
$this->fields['displayChaptersLine'] = array('type' => 'boolean', 'default' => true, 'editable' => true, 'label' => __("Affiche une ligne entre le label et le numéro de page"), 'grade' => 5);\r
$this->fields['chaptersPage'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Faire pointer le sommaire sur la page'), 'grade' => 3, 'hint' => __('Laisser vide pour utiliser le sommaire classique'), 'size' => 5);\r
$this->fields['linkMultimediaPerformanceMode'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Mode perfomance pour les liens multimédia'), 'grade' => 5);\r
$this->forms['multimedia'] = array('label' => __('Liens et multimédia'),\r
'fieldsnames' => array('permanentLinks', 'linkBlinkTime', 'customLinkClass', 'linkTooltipManager', '|', 'linkTracker', 'linkTrackerRegexp', '|', 'linkMultimediaPerformanceMode'));\r
- // .\r
- $this->fields['multilang'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => 'Langues');\r
- $this->forms['multilang'] = array('label' => __('Interface multilangue'),\r
- 'fieldsnames' => array('multilang'));\r
//.\r
$this->fields['externalArchives'] = array('type' => 'freefile', 'default' => '', 'editable' => true,\r
'label' => __('Archives'), 'grade' => 3, 'fileFilter' => $swfFilter);\r
__('Version HTML5') => 'html5',\r
__("Version HTML5 en images") => 'html5-images')\r
);\r
- \r
- $this->fields['mobileLVersion']= array('type' => 'combo', 'default' => 'stable', 'editable' => true, 'label' => __('Version logicielle'), 'grade' => 5,\r
+\r
+ $this->fields['mobileLVersion'] = array('type' => 'combo', 'default' => 'stable', 'editable' => true, 'label' => __('Version logicielle'), 'grade' => 5,\r
'datas' => array(__('Stable') => 'stable',\r
__('En cours de développement') => 'dev')\r
);\r
);\r
\r
$this->forms['mobile'] = array('label' => __('Version mobile'),\r
- 'fieldsnames' => array('mobileLVersion','|','mobileVersion', 'mobileTransitions'));\r
+ 'fieldsnames' => array('mobileLVersion', '|', 'mobileVersion', 'mobileTransitions'));\r
\r
$this->fields['secureURL'] = array('type' => 'text', 'default' => 'http://', 'editable' => true, 'label' => __('URL de sécurisation'), 'grade' => 5, 'hint' => __('URL intérrogé pour vérifier si le visiteur à les droits pour consulter la publication'));\r
$this->fields['secureURLRedirect'] = array('type' => 'text', 'default' => 'http://', 'editable' => true, 'label' => __('Redirection'), 'grade' => 5, 'hint' => __("Si l'authentification échoue, redirection vers cette adresse"));\r
$this->forms['seo'] = array('label' => __('Optimisation pour les moteurs de recherche'),\r
'fieldsnames' => array('seoVersion', 'seoRobots', 'seoDescription'));\r
\r
+\r
+ $this->fields['home'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __("Accueil de l'interface multibrochure"), 'grade' => 5);\r
+ $this->fields['multilang'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => 'Langues');\r
+ $this->forms['multibrochure'] = array('label' => __('Multibrochure'),\r
+ 'fieldsnames' => array('home', 'multilang'));\r
+\r
$this->fields['plv'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Activer le mode PLV'), 'grade' => 3);\r
$this->fields['plvTimer'] = array('type' => 'integer', 'min' => 1, 'max' => 60, 'default' => 5, 'editable' => true, 'label' => __('Temps'), 'grade' => 3);\r
$this->fields['plvMode'] = array('type' => 'combo', 'default' => 'first', 'editable' => true, 'label' => __('Arrivé à la dernière page'), 'grade' => 3,\r
$this->fields['widgetStart'] = array('type' => 'integer', 'default' => 1, 'editable' => true, 'label' => __('Page de début'), 'grade' => 3);\r
$this->fields['widgetEnd'] = array('type' => 'integer', 'default' => 8, 'editable' => true, 'label' => __('Page de fin'), 'grade' => 3);\r
$this->forms['widget'] = array('label' => __('Widget') . ' (' . __('Mini Fluidbook') . ')',\r
- 'fieldsnames' => array('widget', 'widgetCover', 'widgetSize', 'widgetQuality', 'widgetStart', 'widgetEnd'));\r
+ 'fieldsnames' => array('widget', 'widgetCover', 'widgetSize', 'widgetQuality', 'widgetStart', 'widgetEnd'));\r
+\r
+\r
\r
$this->fields['extras'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => __('Extras'), 'grade' => 3);\r
$this->fields['v1SWF'] = array('type' => 'freefile', 'default' => '', 'editable' => true,\r
<?php\r
+\r
class wsIcone extends cubeMetier {\r
+\r
public $icone_id;\r
public $nom;\r
public $date;\r
-\r
- public static $files = array('index', 'normal', 'sommaire', 'print', 'friend', 'bookmark', 'fullscreen', 'normalscreen', 'save', 'archives', 'help', '2d', '3d', 'soundon', 'soundoff', 'basket','previous');\r
+ public static $files = array('index', 'normal', 'sommaire', 'print', 'friend', 'bookmark', 'fullscreen', 'normalscreen', 'save', 'archives', 'help', '2d', '3d', 'soundon', 'soundoff', 'basket', 'previous', 'home');\r
public static $display = array('index', 'sommaire', 'print', 'friend', 'bookmark', 'fullscreen', 'save', '3d', 'soundon', 'help');\r
\r
- public function makeImage()\r
- {\r
+ public function makeImage() {\r
$root = WS_ICONS . '/' . $this->icone_id . '/';\r
$final = WS_ICONS . '/' . $this->icone_id . '.png';\r
\r
\r
$liste = self::$display;\r
\r
- foreach($liste as $file) {\r
+ foreach ($liste as $file) {\r
$image = $root . 'nav-' . $file . '.png';\r
if (!file_exists($image)) {\r
continue;\r
$im = imagecreatetruecolor($w, $h);\r
imagelayereffect($im, IMG_EFFECT_REPLACE);\r
$color = imagecolorallocatealpha($im, 255, 255, 255, 127);\r
- imagefill($im, 0 , 0 , $color);\r
+ imagefill($im, 0, 0, $color);\r
imagesavealpha($im, true);\r
imagealphablending($im, true);\r
$x = 5;\r
- foreach($liste as $file) {\r
+ foreach ($liste as $file) {\r
$image = $root . 'nav-' . $file . '.png';\r
if (!file_exists($image)) {\r
continue;\r
$s = imagecreatefrompng($image);\r
$w = imagesx($s);\r
$h = imagesy($s);\r
- imagecopy($im, $s , $x , round(($height - $h) / 2) , 0 , 0 , $w , $h);\r
+ imagecopy($im, $s, $x, round(($height - $h) / 2), 0, 0, $w, $h);\r
\r
$x += $w;\r
$x += 10;\r
\r
imagepng($im, $final);\r
}\r
+\r
}\r
\r
?>
\ No newline at end of file