--- /dev/null
+<?php
+
+/* @var $this Zend_View */
+
+$bodyClass = $this->body_class . ' ' . $this->bodyClass;
+
+// Set body class name for current page to allow easier page-specific CSS
+$class = isset($this->navigation()->view->currentPage) ? $this->navigation()->view->currentPage->getName() : '';
+$class.=' '.$bodyClass;
+
+echo '<body class="' . trim($class) . '">' . "\n";
+echo $this->bannerCookies();
+echo $this->render('admin/mockup.phtml');
+echo $this->render('admin/nav.phtml');
+echo $this->render('common/content.phtml');
+echo $this->render('ajax/loader.phtml');
+echo "\n" . '</body>' . "\n";
\r
$intro_image_path = CubeIT_View_Helper_ImageCms::getPath($this->intro_bg_image);\r
\r
-// Work out the min-height based on the ratio of the image\r
+// Work out the ratio of the background image\r
CubeIT_Image::getDimensions($intro_image_path, $intro_image_width, $intro_image_height);\r
-$intro_min_height = (($intro_image_height / $intro_image_width) * 100) .'vw'; // viewport-width units\r
+$intro_ratio = $intro_image_height / $intro_image_width;\r
+\r
+$res .= '<div class="contact-intro content-wrapper" \r
+ style="background-image: url('. $intro_image_path .');"\r
+ data-bg-ratio="'. $intro_ratio .'">';\r
\r
-$res .= '<div class="contact-intro" \r
- style="background-image: url('. $intro_image_path .');\r
- min-height: '. $intro_min_height .'">';\r
-$res .= '<div class="content-wrapper">';\r
$res .= '<h1 class="title">'. nl2br($this->intro_title) .'</h1>';\r
$res .= $this->markupDotclear($this->intro_content);\r
-$res .= '</div>'; // .content-wrapper\r
+\r
+// Address\r
+$address = $this->option('address');\r
+$locale = new Zend_Locale();\r
+$country = strtoupper($locale->getTranslation($address['pays'], 'Territory'));\r
+$res .= '<address>';\r
+$res .= '<h4>'. $address['company'] .'</h4>';\r
+$res .= $address['adresse'];\r
+$res .= '<br>';\r
+$res .= "{$address['code_postal']} {$address['ville']} - $country";\r
+$res .= '<br>';\r
+$res .= __('Tél :') . ' ' . $this->linkPhone($address['phone']);\r
+$res .= '<br>';\r
+$res .= __('email :') . ' ' . $this->linkEmail($address['email']);\r
+$res .= '</address>';\r
+\r
$res .= '</div>'; // .contact-intro\r
\r
echo $res;
\ No newline at end of file
});\r
\r
$('main').css('min-height', mainHeight);\r
+\r
+\r
+ // Handle divs with background images that must have a proportional min-height\r
+ $('[data-bg-ratio]').each(function() {\r
+ $(this).css('min-height', Math.round($(this).outerWidth() * $(this).data('bg-ratio')));\r
+ });\r
}
\ No newline at end of file
@body-font: @opensans;
//-- Colours
+@color-text: #343c44;
+@color-body-bg: @color-text;
@color-footer-bg-primary: #263340;
@color-footer-bg-secondary: #161e26;
@color-green: #8aab41;
//-- Content and breakpoints
@mobile-breakpoint: 1024px;
-@content-max-width: 1512px;
\ No newline at end of file
+@content-max-width: 1680px;
\ No newline at end of file
}\r
\r
body {\r
+ background-color: @color-body-bg;\r
font-family: @body-font;\r
+ font-size: 14px;\r
+ line-height: 26/14;\r
}\r
\r
main{\r
background-color: #fff;\r
- padding-top: 180px;\r
+ max-width: @content-max-width;\r
+ margin: 0 auto;\r
}\r
\r
// Main heading style\r
h1.title {\r
- color: #343c44;\r
+ color: @color-text;\r
font-family: @playfair;\r
font-size: 60px;\r
font-weight: 400;\r
+ line-height: 1.3;\r
+ .divider(85px);\r
+}\r
+\r
+a {\r
+ color: @color-text;\r
+ text-decoration: underline;\r
}\r
\r
.content-wrapper {\r
width: 100%;\r
padding: 0 5%;\r
- //max-width: @content-max-width;\r
}\r
\r
.cubeit-content{\r
background-color: darken(@base-color, 2%);
border-color: darken(@base-color, 2%);
}
+}
+
+.divider(@bottom-padding: 100px) {
+ position: relative;
+ padding-bottom: @bottom-padding;
+
+ &:after {
+ content: '';
+ position: absolute;
+ bottom: 50px;
+ left: 0;
+ width: 120px;
+ height: 1px;
+ background-color: #343c44;
+ }
}
\ No newline at end of file
header {\r
position: fixed;\r
top: 0px;\r
- left: 0px;\r
+ left: 50%;\r
+ transform: translateX(-50%);\r
\r
height: 90px;\r
width: 100%;\r
+ max-width: @content-max-width;\r
\r
color: @color-header-grey;\r
padding: 0 5%;\r
footer {
.font-thinning();
+ max-width: @content-max-width;
+ margin: 0 auto;
a {
color: #fff;
+@import "000-imports";
+
.contact-intro {
background-repeat: no-repeat;
background-position: bottom right;
background-size: 100%;
+
+ // Vertically centre content
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+
+ .dotclear {
+ position: relative;
+ .divider();
+ }
+
+ h4 {
+ .font-thinning();
+ color: @color-text;
+ font-family: @montserrat;
+ font-weight: 600;
+ font-size: 15px;
+ text-transform: uppercase;
+ margin-bottom: 10px;
+ }
+
+ address {
+ font-style: normal;
+
+ a {
+ text-decoration: none;
+ }
+ }
+
}
\ No newline at end of file