}\r
\r
protected function _document($doc) {\r
+ if ($doc['title'] == '-') {\r
+ return $this->clear(array(), "li");\r
+ }\r
$res = $this->imageProcess($doc['thumbnail'], '', 101, 100000, array(), 'R', 'C', 'M');\r
$res .= $this->htmlElement($doc['title'], 'h4');\r
\r
/**\r
* @return string\r
*/\r
- public function simeoxVideos($videos) {\r
+ public function simeoxVideos($bigvideo, $videos) {\r
$this->headScript()->addFeatherlight();\r
- $res = array();\r
+ $small = array();\r
+ $res = $this->videoWeb($bigvideo,925);\r
foreach ($videos as $video) {\r
- $res[] = $this->_video($video);\r
+ $small[] = $this->_video($video);\r
}\r
- return $this->listUnordered($res, array('class' => 'videos'));\r
+ $res .= $this->listUnordered($small, array('class' => 'videos'));\r
+ return $res;\r
}\r
\r
protected function _video($v) {\r
+ if ($v['title'] == '-') {\r
+ return $this->clear(array(), 'li');\r
+ }\r
$res = $this->imageProcess($v['thumbnail'], '', 165, 96, array(), 'C', 'C', 'M');\r
$res .= $this->htmlElement($v['title'], 'h4');\r
\r
- return $this->link($res, CubeIT_Util_WebVideo::getIframeUrl($v['url'], null, array('autoplay' => 1, 'modestbranding' => 1, 'rel' => 0, 'cc_load_policy' => 0,'')));\r
+ return $this->link($res, CubeIT_Util_WebVideo::getIframeUrl($v['url'], null, array('autoplay' => 1, 'modestbranding' => 1, 'rel' => 0, 'cc_load_policy' => 0, '')));\r
}\r
}
\ No newline at end of file
<h1><?php echo $o['heading'] ?></h1>
<h2><?php echo $o['subheading'] ?></h2>
<?php $c = $this->markupDotclear($o['content']);
- $c = str_replace('$videos', $this->simeoxVideos($o['videos']), $c);
+ $c = str_replace('$videos', $this->simeoxVideos($o['video'], $o['videos']), $c);
$c = str_replace('$documents', $this->simeoxDocuments($o['documents']), $c);
echo $c;
?>
padding-bottom: 80px;
.dotclear {
- max-width: 425px;
+ max-width: 925px;
margin-top: 50px;
}
-
- .video {
- width: 582px;
- margin-top: 55px;
- margin-bottom: 30px;
- box-shadow: 15px 10px 15px rgba(0, 0, 0, 0.2);
-
- iframe {
- display: block; // gets rid of odd space at the bottom of the video
- }
- }
}
.benefits {
position: relative;
margin-right: 19px;
+ &.clear {
+ display: block;
+ &:before, &:after {
+ display: none !important;
+ }
+ }
+
h4 {
color: #3c3c3b;
font-size: 16px;
font-weight: 300;
line-height: 24px;
- margin-top: 15px;
+ margin-top: 5px;
height: 48px;
overflow: hidden;
}
}
}
- ul.documents{
+ ul.documents {
width: 960px;
- li{
+ li {
width: 101px;
}
}
margin-bottom: 26px;
width: 165px;
-
&:before {
content: "a";
display: block;