$res.='</div>';\r
\r
$res.='<div class="numeros">';\r
- $res.='<p itemprop="telephone">' . __('Tel') . ' ' . $bureau['coordonnees']['tel'] . '</p>';\r
- $res.='<p itemprop="faxNumber">' . __('Fax') . ' ' . $bureau['coordonnees']['fax'] . '</p>';\r
+ $res.='<p itemprop="telephone">' . __('Tel') . ' ' . $this->view->linkPhone($bureau['coordonnees']['tel']) . '</p>';\r
+ //$res.='<p itemprop="faxNumber">' . __('Fax') . ' ' . $bureau['coordonnees']['fax'] . '</p>';\r
$res.='</div>';\r
\r
$res.='</div>'; // .inner\r
public function homeSlideshow($slides) {
$this->headScript()->addSlideshow();
$this->headScript()->addGSAP();
+ $this->headScript()->addJQueryLocalScroll();
$this->addScriptAndStyle('carrousel');
$slides = $slides['slides'];
$time = $slide['time'] * 1000;
}
- $attributes['style'] = 'background-image:url("' . CubeIT_View_Helper_ImageCms::getPath($slide['image']) . '");';
- $attributes['data-time'] = $time;
- $attributes['class'] = 'slide';
- $link = $slide['lien'];
- $link['label'] = $this->markupDotclear($slide['legende']);
- $s .= $this->view->htmlElement($this->view->linkCMS($link), 'div', $attributes);
+ // Slide image is in a separate absolutely positioned div to allow it to be animated with the scale function
+ $image_attributes['style'] = 'background-image:url("' . CubeIT_View_Helper_ImageCms::getPath($slide['image']) . '");';
+ $image_attributes['class'] = 'slide-bg';
+ $slide_image = $this->view->htmlElement('', 'span', $image_attributes); // making it a span because of existing CSS that affects all divs in this context
+
+ $slide_attributes['data-time'] = $time;
+ $slide_attributes['class'] = 'slide';
+ $link = $slide['lien'];
+
+ $link['label'] = $slide_image . $this->markupDotclear($slide['legende']);
+ $s .= $this->view->htmlElement($this->view->linkCMS($link), 'div', $slide_attributes);
}
$options = array('arrows' => false, 'arrowspermanent' => false, 'autoMode' => true, 'transitionType' => 'slide', 'baseHeight' => 836, 'responsive' => true);
$res .= $this->htmlElement($s, 'div', array('class' => 'slides slideshow', 'data-options' => $options));
$res .= '</div>';
+
+ $res .= '<div class="scrollarrow"><a href="#agency"></a></div>';
+
$res .= '</div>';
$res .= '</section>';
var slideshowBaseWidth = 1024;
var sw = Math.min(ww, slideshowBaseWidth);
- $(".slideshowcontinuous,.slideshow").each(function () {
+ // Agency page slideshow
+ $(".slideshowcontinuous").each(function () {
var baseHeight = parseInt($(this).data('options').baseHeight);
var ratio = slideshowBaseWidth / baseHeight;
var h = sw / ratio;
try {
$(this).data('slideshow').setHeight(h);
+ } catch (err) {
+
+ }
+ });
- if ($(this).parents('#home-slideshow').length == 1) {
- $(this).find('.slide').each(function () {
- var masque = $(this).find('.masque');
- var overlap = parseInt($(masque).data('overlap'));
+ // Homepage slideshow
+ $(".slideshow").each(function () {
+ var baseHeight = parseInt($(this).data('options').baseHeight);
+ var ratio = slideshowBaseWidth / baseHeight;
+ var h = sw / ratio;
+ var scale = h / baseHeight;
- var ih = (baseHeight + overlap) * scale;
- $(this).find(".masque").css({
- height: ih,
- top: -1 * overlap * scale
- });
+ var windowHeight = $(window).height();
+ var newH = Math.round(windowHeight * 1); // could be 0.8 for 80%...
- var ml = (ww - 1600 * scale) / 2;
- $(this).find('.masque .imgholder').css('marginLeft', ml);
- $(this).find(".masque .imgholder img").css({height: ih, width: 'auto'});
- });
- }
+ try {
+ $(this).data('slideshow').setHeight(newH);
} catch (err) {
}
});
+ var e = $(".scrollarrow a");
+ var tl = new TimelineMax({repeat: -1, repeatDelay: 1});
+ tl.add(TweenMax.to(e, 1, {ease: Strong.easeOut, backgroundPosition: "50% 35px", opacity: 1}));
+ tl.add(TweenMax.to(e, 1, {ease: Strong.easeIn, backgroundPosition: "50% 70px", opacity: 0, delay: 1}));
+
+ $(document).localScroll({
+ axis: 'y',
+ duration: 500,
+ hash: false
+ });
+
}
.dotclear {
a {
- color: #1b1b1b;
+ //color: #1b1b1b;
text-decoration: underline;
}
}
.titre {
- padding-bottom: 20px;
+ padding-bottom: 25px;
font-size: 32px;
}
background-repeat: no-repeat;
background-position: 0px 0px;
padding-left: 60px;
- padding-bottom: 50px;
+ padding-bottom: 15px;
}
.numeros {
background-position: 0px 0px;
padding-left: 60px;
padding-bottom: 50px;
+
+ p {
+ line-height: 49px; // Height of the icon
+ }
}
}
}
/* Home Slideshow */
+
+//@keyframes bg-anim {
+// 0% {
+// -moz-transform: scale(1);
+// -webkit-transform: scale(1);
+// transform: scale(1);
+// }
+// 50% {
+// -moz-transform: scale(1.2);
+// -webkit-transform: scale(1.2);
+// transform: scale(1.2);
+// }
+//}
+//@-webkit-keyframes bg-anim {
+// 0% {
+// -webkit-transform: scale(1);
+// transform: scale(1);
+// }
+// 50% {
+// -webkit-transform: scale(1.2);
+// transform: scale(1.2);
+// }
+//}
+
#home-slideshow {
overflow: visible;
//margin-top: -130px;
.slides {
.slideshowmixin();
.slide {
- background-repeat: no-repeat;
- background-size: cover;
- background-position: 50% 0;
// background-blend-mode: multiply;
+ overflow: hidden;
+ .slide-bg {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-size: cover;
+ background-repeat: no-repeat;
+ background-position: 50% 0;
+// -moz-animation: bg-anim 15s linear 1s infinite;
+// -webkit-animation: bg-anim 15s linear 1s infinite;
+// transform: scale(1);
+ display: block;
+ z-index: -2;
+ }
+
> div {
text-align: center;
}
}
}
+
+ .scrollarrow {
+ position: absolute;
+ bottom: 10px;
+ left: 0;
+ width: 100%;
+ height: 105px;
+ margin: 5px 0 0 0;
+ z-index: 11;
+
+ a {
+ display: block;
+ height: 105px;
+ background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNS4wLjIsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4wLy9FTiIgImh0dHA6Ly93d3cudzM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