$seoFilter->name = __('Fichier Excel') . ' (.xlsx)';
$seoFilter->extensions = '*.xlsx';
+ $target = [__("Dans la fenĂȘtre courrante") => '_self',
+ __('Dans un nouvel onglet') => '_blank'];
+
$cssFilter = new stdClass();
$cssFilter->name = __('Feuille de style') . ' (.css)';
$cssFilter->extensions = '*.css';
$this->fields['splashImage'] = ['type' => 'freefile', 'default' => '', 'editable' => true, 'label' => __('Image'), 'grade' => 3, 'fileFilter' => $imageFilter];
$this->fields['splashURL'] = ['type' => 'text', 'default' => '', 'editable' => true, 'label' => __('URL'), 'grade' => 3];
+ $this->fields['splashTarget'] = ['type' => 'combo', 'datas' => $target, 'default' => '_self', 'editable' => true, 'label' => __('Ouvrir le lien'), 'grade' => 3];
$this->fields['splashMinimalTime'] = ['type' => 'float', 'default' => '1', 'editable' => true, 'label' => __('Temps minimal d\'affichage'), 'grade' => 3];
- $this->forms['splash'] = ['label' => __('Ecran de chargement'), 'fieldsnames' => ['splashImage', 'splashURL', 'splashMinimalTime']];
+ $this->forms['splash'] = ['label' => __('Ecran de chargement'), 'fieldsnames' => ['splashImage', 'splashURL','splashTarget', 'splashMinimalTime']];
// Articles
$this->fields['articlesFile'] = ['type' => 'freefile', 'default' => '', 'editable' => true,
$this->vdir->copy($this->wdir . '/' . $img, 'data/images/' . $img);
$splashstyles = 'background-image:url(' . 'data/images/' . $img . ');background-size:contain;background-position:50% 50%;';
if ($this->book->parametres->splashURL !== '') {
- $splash = '<a href="' . $this->book->parametres->splashURL . '" style="display:block;position:absolute;top:0;left;0;width:100%;height:100%"></a>';
+ $splash = '<a href="' . $this->book->parametres->splashURL . '" target="'.$this->book->parametres->splashTarget.'" style="display:block;position:absolute;top:0;left;0;width:100%;height:100%"></a>';
}
} else if ($this->theme->parametres->logoLoader && file_exists($this->themeRoot . $this->theme->parametres->logoLoader)) {
$dim = CubeIT_Image::getimagesize($this->themeRoot . $this->theme->parametres->logoLoader);