--- /dev/null
+<?php\r
+\r
+class Simeox_View_Helper_SimeoxVideos extends CubeIT_View_Helper_Abstract {\r
+ /**\r
+ * @return string\r
+ */\r
+ public function simeoxVideos($videos) {\r
+ $res = array();\r
+ foreach ($videos as $video) {\r
+ $res[] = $this->_video($video);\r
+ }\r
+ return $this->listUnordered($res, array('class' => 'videos'));\r
+ }\r
+\r
+ protected function _video($v) {\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']), array('data-video' => $v['url']));\r
+ }\r
+}
\ No newline at end of file
?>
<section id="simeox">
- <?php $c = $this->simeox['carousel']; ?>
- <article class="carousel">
-
- <div class="content">
- <h1><?php echo $c['heading'] ?></h1>
- <h2><?php echo $c['subheading'] ?></h2>
- </div>
-
- <?php echo $this->imageSlideshowContinuous($c['image_carousel'], 790, array(), array('arrowspermanent' => 1)); ?>
- </article>
-
- <?php $o = $this->simeox['operation']; ?>
- <article class="operation" style="<?php echo $this->backgroundImage($o['bg_image'], 100); ?>">
- <div class="content">
- <h1><?php echo $o['heading'] ?></h1>
- <h2><?php echo $o['subheading'] ?></h2>
- <?php echo $this->markupDotclear($o['content']) ?>
- <?php if(!empty($o['video'])): ?>
- <div class="video">
- <?php echo $this->videoWeb($o['video']); ?>
- </div>
- <?php endif; ?>
- </div>
- </article>
-
- <?php $b = $this->simeox['benefits']; ?>
- <article class="benefits">
- <div class="content">
- <div class="col"><?php echo $this->markupDotclear($b['content_left']); ?></div>
- <div class="col"><?php echo $this->markupDotclear($b['content_right']); ?></div>
- </div>
- </article>
-
- <?php $i = $this->simeox['interface'] ?>
- <article class="interface">
- <div class="content">
- <h1><?php echo $i['heading']; ?></h1>
- <?php echo $this->markupDotclear($i['content']); ?>
- </div>
- <div class="screenshot" style="<?php echo $this->backgroundImage($i['image']); ?>"></div>
- </article>
+ <?php $c = $this->simeox['carousel']; ?>
+ <article class="carousel">
+
+ <div class="content">
+ <h1><?php echo $c['heading'] ?></h1>
+ <h2><?php echo $c['subheading'] ?></h2>
+ </div>
+
+ <?php echo $this->imageSlideshowContinuous($c['image_carousel'], 790, array(), array('arrowspermanent' => 1)); ?>
+ </article>
+
+ <?php $o = $this->simeox['operation']; ?>
+ <article class="operation" style="<?php echo $this->backgroundImage($o['bg_image'], 100); ?>">
+ <div class="content">
+ <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('$documents', $this->simeoxDocuments($o['documents']), $c);
+ echo $c;
+ ?>
+
+ </div>
+ </article>
+
+ <?php $b = $this->simeox['benefits']; ?>
+ <article class="benefits">
+ <div class="content">
+ <div class="col"><?php echo $this->markupDotclear($b['content_left']); ?></div>
+ <div class="col"><?php echo $this->markupDotclear($b['content_right']); ?></div>
+ </div>
+ </article>
+
+ <?php $i = $this->simeox['interface'] ?>
+ <article class="interface">
+ <div class="content">
+ <h1><?php echo $i['heading']; ?></h1>
+ <?php echo $this->markupDotclear($i['content']); ?>
+ </div>
+ <div class="screenshot" style="<?php echo $this->backgroundImage($i['image']); ?>"></div>
+ </article>
</section>
\ No newline at end of file