$this->fields['mobileVideosPath'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Chemin vers les vidéos'), 'grade' => 5);
$this->fields['brightcovePlayerId'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Brightcove Player Id'), 'grade' => 3);
$this->fields['brightcovePlayerSecret'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Brightcove Player Secret'), 'grade' => 3);
+ $this->fields['bigPlayImage'] = ['type' => 'freefile', 'default' => '', 'editable' => true, 'label' => __('Image pour le bouton "Big Play"'), 'grade' => 3, 'fileFilter' => $imageExtraFilter];
$this->forms['videos'] = array('label' => __('Vidéos'),
- 'fieldsnames' => array('mobileVideosPath', '|', 'brightcovePlayerId', 'brightcovePlayerSecret'));
+ 'fieldsnames' => array('mobileVideosPath', '|', 'brightcovePlayerId', 'brightcovePlayerSecret', '|', 'bigPlayImage'));
//.
$this->fields['audioPlayerTheme'] = ['type' => 'combo', 'default' => 'native', 'editable' => true, 'label' => __('Apparence du lecteur audio'), 'datas' => [__('Apparence native du navigateur') => 'native', __('Zone cliquable invisible') => 'invisible', __('Red Bull') => 'redbull']];
$this->forms['audio'] = ['label' => __('Lecteur audio'),
$this->lessVariables['tooltip-color'] = wsHTML5::colorToCSS($this->theme->parametres->tooltipTextColor);
$this->lessVariables['tooltip-font-size'] = 14 * ($this->theme->parametres->tooltipTextSize / 100);
+ #Videos
+ if ($this->book->parametres->bigPlayImage) {
+ $this->lessVariables['video-bigplay-image'] = '~"../data/links/' . $this->book->parametres->bigPlayImage.'"';
+ $this->vdir->copy($this->wdir . '/' . $this->book->parametres->bigPlayImage, 'data/links/' . $this->book->parametres->bigPlayImage);
+ } else {
+ $this->lessVariables['video-bigplay-image'] = '~"data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 113.4 113.4\'%3E%3Cstyle%3E.st0%7Bopacity:0.8;%7D .st1%7Bfill:%23FFFFFF;%7D%3C/style%3E%3Cpath class=\'st0\' d=\'M110.5 113.4H2.9c-1.6 0-2.9-1.3-2.9-2.9V2.9C0 1.3 1.3 0 2.9 0h107.6c1.6 0 2.9 1.3 2.9 2.9v107.6c0 1.6-1.3 2.9-2.9 2.9z\'/%3E%3Cpath class=\'st1\' d=\'M45.8 37.8l31.5 17.9c.8.5.8 1.6 0 2.1L45.8 75.6c-.8.5-1.8-.1-1.8-1V38.8c0-.9 1-1.5 1.8-1z\'/%3E%3C/svg%3E"';
+ }
+
#fonts
foreach ($this->cssfont as $hash => $item) {
$res[] = '@font-face{font-family: "' . $hash . '";src:url("../../data/fonts/' . $hash . '.woff") format("woff");}';