class Cubedesigners_Form_CMS_Sub_Home_Agence extends CubeIT_Form_SubForm {
- public function init() {
- parent::init();
+ public function init() {
+ parent::init();
- $titre = new Zend_Form_Element_Text('titre');
- $titre->setLabel('Titre');
- $this->addElement($titre);
+ $titre = new Zend_Form_Element_Text('titre');
+ $titre->setLabel('Titre');
+ $this->addElement($titre);
- $blocs = new Cubedesigners_Form_CMS_Sub_Home_Agence_Blocs('blocs');
- $blocs->setLegend('Sous-blocs');
- $this->addSubForm($blocs, 'blocs');
- }
+ $blocs = new Cubedesigners_Form_CMS_Sub_Home_Agence_Blocs('blocs');
+ $blocs->setLegend('Blocs');
+ $this->addSubForm($blocs, 'blocs');
+
+ $lien = new CubeIT_Form_Element_Link();
+ $lien->urlEnabled(false)->fileEnabled(false);
+ $lien->setLegend('Bouton');
+ $this->addSubForm($lien, 'button');
+ }
}
$blocs = new Cubedesigners_Form_CMS_Sub_Home_Expertises_Blocs('blocs');
$blocs->setLegend('Expertises');
$this->addSubForm($blocs, 'blocs');
+
+ $lien = new CubeIT_Form_Element_Link();
+ $lien->urlEnabled(false)->fileEnabled(false);
+ $lien->setLegend('Bouton');
+ $this->addSubForm($lien, 'button');
}
}
-
-?>
--- /dev/null
+<?php
+
+class Cubedesigners_View_Helper_Liste extends Zend_View_Helper_Abstract {
+
+ public function liste($items, $attrs = array()) {
+
+ $defaultAttrs = array('class' => array('list'));
+ $attrs = array_merge($defaultAttrs, $attrs);
+
+ $this->view->headLink()->appendStylesheet('/less/list.less');
+ $res = '<div class="bloc-holder">';
+ $res.='<h2>' . ucfirst($items['titre']) . '</h2>';
+ $res.=$this->view->homeBlocs($items);
+ $res.='</div>';
+
+ return $this->view->htmlElement($res, 'section', $attrs);
+ }
+
+}
-<?php\r
-\r
-$content = $this->layout()->content . "\n";\r
-\r
-echo '<div id="wrapper">';\r
-echo $this->render('common/header.phtml');\r
-echo '<div id="main">';\r
-echo $content;\r
-echo '</div>';\r
-echo $this->render('common/footer.phtml');\r
-echo '</div>';\r
-?>
\ No newline at end of file
+<?php
+
+$content = $this->layout()->content . "\n";
+
+echo '<div id="wrapper">';
+echo $this->render('common/header.phtml');
+echo '<main id="main" role="main">';
+echo $content;
+echo '</main>';
+echo $this->render('common/footer.phtml');
+echo '</div>';
$this->headScript()->addScriptAndStyle('expertises');
echo $this->twocols();
+echo $this->htmlElement(nl2br($this->citation), 'blockquote', array('class' => 'citation'));
+echo $this->liste($this->expertises, array('id' => 'expertises'));
-<?php\r
-$this->headScript()->addScriptAndStyle('home');\r
-fb($this->slideshow);\r
-?>\r
-\r
-<div class="home-title"><?php echo $this->markupDotclear($this->titre); ?></div>\r
-\r
-<section>\r
- <div id="home-slideshow">\r
- <div class="slides-holder">\r
- <?php\r
- echo $this->homeSlideshow($this->slideshow);\r
- ?>\r
- </div>\r
- </div>\r
-</section>\r
-\r
-<section>\r
- <div id="home-agency">\r
- <div class="bloc-holder">\r
-\r
- <h2><?php echo ucfirst($this->agence['titre']); ?></h2>\r
-\r
- <?php echo $this->homeBlocs($this->agence, 'agence'); ?>\r
-\r
- </div>\r
- </div>\r
-</section>\r
-\r
-<section>\r
- <div id="home-expertise">\r
- <div class="bloc-holder">\r
-\r
- <h2><?php echo ucfirst($this->expertises['titre']); ?></h2>\r
-\r
- <?php echo $this->homeBlocs($this->expertises, 'expertises'); ?>\r
-\r
- </div>\r
- </div>\r
-</section>
\ No newline at end of file
+<?php
+$this->headScript()->addScriptAndStyle('home');
+fb($this->slideshow);
+?>
+
+<div class="home-title"><?php echo $this->markupDotclear($this->titre); ?></div>
+
+<section>
+ <div id="home-slideshow">
+ <div class="slides-holder">
+ <?php
+ echo $this->homeSlideshow($this->slideshow);
+ ?>
+ </div>
+ </div>
+</section>
+<?php
+echo $this->liste($this->agence, array('id' => 'agency'));
+echo $this->liste($this->expertises, array('id' => 'expertiseshome'));
color:#3885e0;
}
+#main{
+ ul{
+ list-style:none;
+ li{
+ &:before{
+ content:"- ";
+ }
+ }
+ }
+}
+
+
#main {
margin: 0 auto;
//min-width: 1024px;
}
-.title {
- min-width: 980px;
- max-width: 980px;
- margin: 0 auto;
- padding: 50px 0 50px 0;
-}
-
-.title h1 {
- text-align: left;
- font-weight: 300;
- font-size: 56px;
-}
-
-.title h2 {
- text-align: left;
- font-weight: 300;
- font-size: 22px;
-}
\ No newline at end of file
--- /dev/null
+blockquote.citation{
+ font-size: 32px;
+ font-style: italic;
+ color:#3885e0;
+ line-height: 37px;
+ text-align: center;
+ width:980px;
+ margin:-20px auto 50px;
+}
\ No newline at end of file
float:right;
}
-/* Home Agency and Expertises */
-#home-agency {
- background-color:#3885e0;
- color:#fff;
-}
-
-#home-expertise {
- background-color:#fff;
- color:#1b1b1b;
-}
-
-#home-agency .bloc-holder,
-#home-expertise .bloc-holder {
- min-width: 980px;
- max-width: 980px;
- width:100%;
- margin: 0 auto;
- padding: 50px 0;
- overflow:hidden;
-}
-
-#home-agency .bloc-holder h2,
-#home-expertise .bloc-holder h2 {
- font-size:56px;
-}
-
-#home-agency .bloc-holder h3,
-#home-expertise .bloc-holder h3 {
- font-size:32px;
- padding: 0 0 20px 0;
-}
-
-#home-agency .bloc-holder a,
-#home-expertise .bloc-holder a {
- color:white;
- clear:both;
- background-color: #2874ce;
- border-radius: 2px;
- padding: 5px 20px;
-}
-
-#home-agency .bloc-holder a:hover,
-#home-expertise .bloc-holder a:hover {
- background-color: #84ae1e;
-}
-
-#home-agency .bloc-holder .blocs,
-#home-expertise .bloc-holder .blocs {
- padding: 40px 0;
- overflow:hidden;
-}
-
-#home-agency .bloc-holder .blocs .spacer,
-#home-expertise .bloc-holder .blocs .spacer {
- clear:left;
- padding:25px 0;
-}
-
-#home-agency .bloc-holder .sousbloc,
-#home-expertise .bloc-holder .sousbloc {
- float:left;
- width:50%;
-}
-
-#home-agency .bloc-holder .sousbloc .texte,
-#home-expertise .bloc-holder .sousbloc .texte {
- width: 60%;
- float:left;
-}
-
-#home-agency .bloc-holder .sousbloc img,
-#home-expertise .bloc-holder .sousbloc img {
- float:left;
- padding: 0 25px 0 0;
-}
/* max-width pour faibles résolutions */
@media screen and (max-width: 1009px) {
--- /dev/null
+section.list{
+
+ &#agency,&#expertises{
+ background-color:#3885e0;
+ color:#fff;
+ }
+
+ &#expertisehome {
+ background-color:#fff;
+ color:#1b1b1b;
+ }
+
+
+ .bloc-holder {
+ min-width: 980px;
+ max-width: 980px;
+ width:100%;
+ margin: 0 auto;
+ padding: 50px 0;
+ overflow:hidden;
+ h2 {
+ font-size:56px;
+ }
+ h3 {
+ font-size:32px;
+ padding: 0 0 20px 0;
+ }
+ a {
+ color:white;
+ clear:both;
+ background-color: #2874ce;
+ border-radius: 2px;
+ padding: 5px 20px;
+ :hover {
+ background-color: #84ae1e;
+ }
+ }
+
+ .blocs {
+ padding: 40px 0;
+ overflow:hidden;
+ .spacer {
+ clear:left;
+ padding:25px 0;
+ }
+ }
+
+ .sousbloc {
+ float:left;
+ width:50%;
+
+ .texte {
+ width: 60%;
+ float:left;
+ }
+
+ img {
+ float:left;
+ padding: 0 25px 0 0;
+ }
+
+ }
+ }
+}
\ No newline at end of file
.twocols{
+
+ .title {
+ min-width: 980px;
+ max-width: 980px;
+ margin: 0 auto;
+ padding: 40px 0 0 0;
+ h1 {
+ text-align: left;
+ font-weight: 300;
+ font-size: 56px;
+ margin:0 0 10px 0;
+ }
+ h2 {
+ text-align: left;
+ font-weight: 300;
+ font-size: 22px;
+ padding:0 0 20px 0;
+ }
+ }
+
+
+ .dotclear{
+ p{
+ margin:30px 0 30px 0;
+ }
+
+ ul{
+ margin:-30px 0 30px 0;
+ list-style: none;
+ li{
+ &:before{
+ content:"- ";
+ }
+ }
+ }
+ }
+
width: 980px;
margin: 0 auto;
.cols {
}
}
}
+
+
}
\ No newline at end of file