From: stephen@cubedesigners.com Date: Fri, 22 Jul 2016 09:22:29 +0000 (+0000) Subject: Link demo Fluidbook in full screen popup. Done #571 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5383406c82d9dcbea3b91f85773d19286291e6de;p=fluidbook-v3.git Link demo Fluidbook in full screen popup. Done #571 @0.5 --- diff --git a/framework/application/forms/CMS/Fonctionnalites.php b/framework/application/forms/CMS/Fonctionnalites.php index a100ae8..d806f1b 100644 --- a/framework/application/forms/CMS/Fonctionnalites.php +++ b/framework/application/forms/CMS/Fonctionnalites.php @@ -5,10 +5,6 @@ class Fluidbook_Form_CMS_Fonctionnalites extends Fluidbook_Form_CMS_Base { public function init() { parent::init(); - $video_button = new Zend_Form_Element_Text('video_button_text'); - $video_button->setLabel('Texte pour bouton vidéo'); - $this->addElement($video_button); - $video = new CubeIT_Form_Element_WebVideo('video'); $video->setLabel('Vidéo'); $this->addElement($video); diff --git a/framework/application/views/scripts/templates/fonctionnalites.phtml b/framework/application/views/scripts/templates/fonctionnalites.phtml index 98d4996..572fd0e 100644 --- a/framework/application/views/scripts/templates/fonctionnalites.phtml +++ b/framework/application/views/scripts/templates/fonctionnalites.phtml @@ -3,9 +3,8 @@ $this->headScript()->addFeatherlight(); $this->headScript()->addScriptAndStyle('410-features'); -// Todo: replace with link to demo fluidbook and add fields to CMS -//$extraContent = $this->linkPopup($this->video_button_text, $videoLink, ['class' => 'features-video-button']); -$extraContent = $this->link('', '#', ['class' => 'features-video', 'data-featherlight' => '#introVideo', 'data-featherlight-after-open' => 'playVideo()']); +$extraContent = $this->linkTruePopupFullscreen($this->intro['button']['label'], $this->intro['button']['url'], ['class' => 'features-video-button']); +$extraContent .= $this->link('', '#', ['class' => 'features-video', 'data-featherlight' => '#introVideo', 'data-featherlight-after-open' => 'playVideo()']); $extraContent .= ''; // .lightbox