public function init() {\r
parent::init();\r
\r
- $video_button = new Zend_Form_Element_Text('video_button_text');\r
- $video_button->setLabel('Texte pour bouton vidéo');\r
- $this->addElement($video_button);\r
-\r
$video = new CubeIT_Form_Element_WebVideo('video');\r
$video->setLabel('Vidéo');\r
$this->addElement($video);\r
$this->headScript()->addFeatherlight();\r
$this->headScript()->addScriptAndStyle('410-features');\r
\r
-// Todo: replace with link to demo fluidbook and add fields to CMS\r
-//$extraContent = $this->linkPopup($this->video_button_text, $videoLink, ['class' => 'features-video-button']);\r
-$extraContent = $this->link('', '#', ['class' => 'features-video', 'data-featherlight' => '#introVideo', 'data-featherlight-after-open' => 'playVideo()']);\r
+$extraContent = $this->linkTruePopupFullscreen($this->intro['button']['label'], $this->intro['button']['url'], ['class' => 'features-video-button']);\r
+$extraContent .= $this->link('', '#', ['class' => 'features-video', 'data-featherlight' => '#introVideo', 'data-featherlight-after-open' => 'playVideo()']);\r
$extraContent .= '<div class="lightbox" id="introVideo">';\r
$extraContent .= $this->videoWeb($this->video);\r
$extraContent .= '</div>'; // .lightbox\r