$this->addElement($select);
$margin = new Zend_Form_Element_Text('margin');
- $margin->setLabel("Décalage du vertical bloc (en pixels)");
+ $margin->setLabel("Décalage vertical du bloc (en pixels)");
$this->addElement($margin);
+ $zindex = new Zend_Form_Element_Select('zindex');
+ $options = array('default' => 'Par défaut');
+ for ($i = 1; $i <= 10; $i++) {
+ //array_push($options, $i);
+ $options[$i] = $i;
+ }
+ $zindex->setMultiOptions($options);
+ $zindex->setLabel('z-index du bloc');
+ $this->addElement($zindex);
+
$titre = new Zend_Form_Element_Text('titre');
$titre->setLabel('Titre');
$this->addElement($titre);
\r
foreach ($blocs as $bloc) {\r
\r
- $margin = '';\r
+ // fb($bloc);\r
\r
+ $margin = '';\r
if ($bloc["margin"] != '') {\r
$margin = 'margin-top:' . $bloc["margin"] . 'px;';\r
}\r
\r
+ $zindex = '';\r
+ if ($bloc["zindex"] != 'default') {\r
+ $zindex = 'z-index:' . $bloc["zindex"] . ';';\r
+ }\r
+\r
if ($bloc["selectedtype"] == "text") {\r
\r
- $res .= '<div class="detail-text" style="' . $margin . '" >';\r
+ $res .= '<div class="detail-text" style="' . $margin . '' . $zindex . '" >';\r
$res .= '<div class="titre">' . $bloc["titre"] . '</div>';\r
$res .= '<div class="texte">' . $bloc["texte"] . '</div>';\r
$res .= '</div>';\r
\r
\r
\r
- $res .= '<div class="detail-visuel" style="background-image:url(\'' . $visuel . '\');height:' . $height . 'px;' . $margin . '"></div>';\r
+ $res .= '<div class="detail-visuel" style="background-image:url(\'' . $visuel . '\');height:' . $height . 'px;' . $margin . '' . $zindex . '"></div>';\r
}\r
\r
\r
\r
if ($bloc["selectedtype"] == "video") {\r
\r
+ $res .= '<div class="detail-video" style="' . $margin . '' . $zindex . '" >';\r
+ $video = $this->view->videoWeb($bloc["video"], 980);\r
+\r
if ($addVideoBackground) {\r
$background = $this->view->imageProcess()->imageProcessGetUrl($bloc["video_background"], '', 1200, null);\r
$width = -1;\r
CubeIT_Image::getDimensions($background, $width, $height);\r
$res.= '<div class="detail-video-background" style="width:100%;background-position:50%;background-image:url(\'' . $background . '\');height:' . $height . 'px;">';\r
}\r
-\r
- $res .= '<div class="detail-video" style="' . $margin . '" >';\r
- $video = $this->view->videoWeb($bloc["video"], 980);\r
- $res .= '<div>' . $video . '</div>';\r
- $res .= '</div>';\r
-\r
if ($addVideoBackground) {\r
$res.= "</div>";\r
}\r
+\r
+ $res .= '<div style="z-index:10;position:relative">' . $video . '</div>';\r
+ $res .= '</div>';\r
}\r
}\r
$res .= '</div>';\r
}\r
\r
#casestudies-detail-content .detail-video-background {\r
- display: table;\r
+ /*display: table;*/\r
+ position: absolute;\r
+ top: -325px;\r
+ //left: 110px;\r
+ width:1280px;\r
+ height:1280px;\r
+ z-index: 2;\r
}\r
\r
\r
position: relative;\r
z-index: 5;\r
text-align: center;\r
- vertical-align: middle;\r
- display: table-cell;\r
+ /* vertical-align: middle;\r
+ display: table-cell; */\r
}\r
\r
#casestudies-detail-content .detail-visuel {\r