Add animated down arrow to home slideshow.
Multiple styling fixes, including a hack-fix for bad Klavika font rendering on Windows + Chrome (see common.less).
public function init() {
parent::init();
+
+ $related_casestudies = new Cubedesigners_Form_CMS_Sub_RelatedCaseStudies();
+ $related_casestudies->setLegend('Related Case Studies');
+ $this->addSubForm($related_casestudies, 'related_casestudies');
}
}
+++ /dev/null
-<?php
-
-class Cubedesigners_Form_CMS_Sub_ExpertiseCategories extends CubeIT_Form_SubForm
-{
- public function init() {
- parent::init();
-
- $titre = new Zend_Form_Element_Text('title');
- $titre->setLabel('Case Studies sous-titre');
- $this->addElementLocalized($titre);
-
- $categories = new Cubedesigners_Form_Element_CategoriesCheckboxes('categories');
- $categories->setLabel('Categories');
- $this->addElement($categories);
- }
-}
\ No newline at end of file
$lien->urlEnabled(false)->fileEnabled(false);
$lien->setLegend('Bouton');
$this->addSubForm($lien, 'button');
-
- $related_categories = new Cubedesigners_Form_CMS_Sub_ExpertiseCategories();
- $related_categories->setLegend('Related Categories (for Case Studies)');
- $this->addSubForm($related_categories, 'related_categories');
}
}
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_RelatedCaseStudies extends CubeIT_Form_SubForm
+{
+ public function init() {
+ parent::init();
+
+ $titre = new Zend_Form_Element_Text('title');
+ $titre->setLabel('Related Case Studies sous-titre');
+ $this->addElementLocalized($titre);
+
+ $casestudies = new Cubedesigners_Form_Element_CaseStudiesCheckboxes('casestudies');
+ $casestudies->setLabel('Case Studies');
+ $this->addElement($casestudies);
+ }
+}
\ No newline at end of file
--- /dev/null
+<?php\r
+\r
+class Cubedesigners_Form_Element_CaseStudiesCheckboxes extends CubeIT_Form_Element_MultiCheckboxList {\r
+\r
+ public function init() {\r
+ $this->setBaseForm('Cubedesigners_Form_CMS_Sub_Casestudies_Studies');\r
+ }\r
+\r
+}
\ No newline at end of file
protected $_datas;
- public function CasestudiesList($datas, $currentStudie = null, $categories = null, $limit = null) {
+ public function CasestudiesList($datas, $currentStudie = null, $categories = null, $limit = null, $IDs = null) {
$this->addScriptAndStyle('casestudies');
$this->_datas = $datas;
$s->where('categories IN (?)', $categories);
}
+ // Fetch specific case study IDs
+ if(is_array($IDs)) {
+ $s->where('id IN (?)', $IDs);
+ }
+
if($limit) {
$s->limit($limit);
}
echo $this->CasestudiesDetail($this->studie);
?>
-<div class="casestudies-list related content">
+<div class="casestudies-list related content jgroup">
<div class="title">
<?php echo $this->markupDotclear($this->casestudies_titre); ?>
</div>
}
?>
-<div class="contact-title content"><?php echo $this->markupDotclear($this->titre); ?></div>
+<div class="title content"><?php echo $this->markupDotclear($this->titre); ?></div>
<div class="contact-informations">
<?php echo $this->contactInfos($this->option('contact')['bloc'], $bureaux); ?>
$casestudy_page_data = Bootstrap::getInstance()->getCMSDatasOfPage(4); // Fetch page details - needed for the SEO URL to build links
-$expertise = CubeIT_Util_Cms::unserialize($this->expertises);
+$related_casestudies = CubeIT_Util_Cms::unserialize($this->related_casestudies);
echo '<div class="casestudies-list related content jgroup">';
echo '<div class="title">';
echo '<h1>'. __('Case Studies') .'</h1>';
-echo '<h2>'. $expertise['related_categories']['title'] .'</h2>';
+echo '<h2>'. $related_casestudies['title'] .'</h2>';
echo '</div>'; // .title
$limit_results = 3; // How many case studies to return
-echo $this->CasestudiesList($casestudy_page_data, null, $expertise['related_categories']['categories'], $limit_results);
+echo $this->CasestudiesList($casestudy_page_data, null, null, $limit_results, $related_casestudies['casestudies']);
echo '</div>'; // .casestudies-list
$(window).on('cubeitresize', resize_home);\r
$(document).on("beforechange afterchange", "#home-slideshow", resize_home);\r
resize_home();\r
+\r
+ // Down arrow animation on slideshow\r
+ var e = $(".scrollarrow a");\r
+ var tl = new TimelineMax({repeat: -1, repeatDelay: 0.3});\r
+ tl.add(TweenMax.to(e, 1, {ease: Strong.easeOut, backgroundPosition: "50% 35px", opacity: 1}));\r
+ tl.add(TweenMax.to(e, 1, {ease: Strong.easeIn, backgroundPosition: "50% 70px", opacity: 0, delay: 0}));\r
+\r
+ $(document).localScroll({\r
+ axis: 'y',\r
+ duration: 500,\r
+ hash: false\r
+ });\r
+\r
}\r
\r
function resize_home() {\r
});
- 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
- });
-
}
padding: 3px 0 3px;
position: absolute; // Needed to make it sit above header. Could also be 'fixed'...
width: 100%;
- z-index: 10;
+ z-index: 200;
.bar {
color: #fff;
&:hover {
color: #000;
}
+}
+
+.casestudies-list {
+ padding-top: 60px;
}
\ No newline at end of file
h1, h2, h3, h4, h5, h6 {
font-family: @Klavika;
+ transform: rotate(0.1deg); // Hack to fix poor rendering on Chrome + Windows (forces anti-aliasing)
// -webkit-font-smoothing: antialiased;
}
a {
color: #222428;
text-decoration: none;
+ transition: color 0.3s;
&:hover,
&:active {
color: @yellow;
clear: both;
border-radius: 2px;
- padding: 15px 15px;
+ border: 2px solid @yellow;
+ padding: 13px;
line-height: 12px;
margin: 15px 0 0 0;
font-weight: 400;
font-size: 16px;
text-decoration: none !important;
text-transform: uppercase;
+ transition: all 0.3s;
- .button(#fff, @yellow, #fff, @yellow);
+ .button(#fff, @yellow, @yellow, transparent);
}
}
@import "00-constants";
-/* Contact Title */
-.contact-title {
- padding-top: 50px;
- padding-bottom: 50px;
-
- h1 {
- text-align: left;
- font-weight: 300;
- font-size: 56px;
- }
-}
-
.half-full {
float: left;
/* Contact informations */
.contact-informations {
-
- padding-bottom: 50px;
+ margin: 30px 0 50px 0;
overflow: hidden;
.contact-texte {
text-decoration: none;
&.but {
.button(#fff, #212327);
+ border: 0;
+ padding: 15px;
}
}
header {
height: 130px;
background-color: #222428;
- position: relative;
- z-index: 4;
+ z-index: 100; // Some elements on case studies page have a higher z-index so make sure we are above that
+ position: fixed;
+ top: 0;
+ width: 100%;
ul {
text-transform: uppercase;
.logo {
position: absolute;
top: 36px;
+ transition: none;
+ white-space: nowrap; // Stops img elements wrapping under each other in IE.
+
img {
width: auto;
}
}
}
}
-
- position: fixed;
- top: 0px;
- width: 100%;
}
#headerPlaceholder {
}
nav[role=navigation].active {
- max-height: 16em;
- padding: 135px 0 20px 0;
+ max-height: 26em;
+ padding: 65px 0 30px 0;
box-sizing: content-box;
}
float: none;
text-align: center;
position: relative;
+ font-size: 32px;
+ line-height: 1.7;
li {
float: none;
}
a {
- color: #fff !important;
display: block;
&:hover {
border-radius: 0;
&.two {
// margin-bottom: -50px; // Offset the 50px margins on the .sousbloc
+ // Special case for home page where link buttons are sitting under blocks and spacing is too big
+ + a.but {
+ margin-top: -30px;
+ float: left;
+ }
+
.sousbloc {
white-space: normal;
width: 50%;