]> _ Git - fluidbook-v3.git/commitdiff
Link demo Fluidbook in full screen popup. Done #571 @0.5
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 22 Jul 2016 09:22:29 +0000 (09:22 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 22 Jul 2016 09:22:29 +0000 (09:22 +0000)
framework/application/forms/CMS/Fonctionnalites.php
framework/application/views/scripts/templates/fonctionnalites.phtml

index a100ae8285898f7646a19668428ceff24a3f7f22..d806f1ba40dcb694197fa1c846424fcd9c48ed81 100644 (file)
@@ -5,10 +5,6 @@ class Fluidbook_Form_CMS_Fonctionnalites extends Fluidbook_Form_CMS_Base {
     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
index 98d49963808a115166a6087db79a7adec1b95274..572fd0e32283fbd658363d73d377cab28a2058ca 100644 (file)
@@ -3,9 +3,8 @@
 $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