From: vincent@cubedesigners.com Date: Mon, 8 Sep 2014 09:30:45 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=980717581bec3955aecd550a7c5be4a6ffe2d37c;p=cubedesigners-v7.git --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index d49f5a3..1ebd848 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -116,13 +116,13 @@ class Bootstrap extends CubeIT_Bootstrap { $templates = parent::getCMSTemplates(); - $templates['Agence'] = array("agence" => "L'agence"); - $templates['Realisations'] = array('realisations' => 'Réalisations'); - $templates['Casestudies'] = array('casestudies' => 'Case-Studies'); - $templates['CasestudiesDetail'] = array('casestudies_detail' => 'Case-Studies (détail)'); - $templates['Expertises'] = array('expertises' => 'Expertises'); - $templates['Contact'] = array('contact' => 'Contact'); - $templates['Mentions'] = array('mentions' => 'Mentions légales'); + $templates['text'] = 'Page de texte'; + $templates['agence'] = "L'agence"; + $templates['realisations'] = 'Réalisations'; + $templates['Etudes de cas'] = array('casestudies' => 'Accueil des études de cas', 'casestudies_detail' => 'Détail d\'étude de cas'); + $templates['Expertises'] = array('expertises' => 'Accueil de la rubrique Expertises', + 'expertise' => 'Page de détail d\'expertise'); + $templates['contact'] = 'Contact'; return $templates; } diff --git a/framework/application/forms/CMS/Agence.php b/framework/application/forms/CMS/Agence.php index f7faf94..ba3aca2 100644 --- a/framework/application/forms/CMS/Agence.php +++ b/framework/application/forms/CMS/Agence.php @@ -1,36 +1,24 @@ -setLabel('Titre'); - $this->addElement($titre); - - $left = new CubeIT_Form_Element_Markitup('colonnegauche'); - $left->setLabel('Description colonne gauche'); - $this->addElement($left); - - $right = new CubeIT_Form_Element_Markitup('colonnedroite'); - $right->setLabel('Description colonne droite'); - $this->addElement($right); - - $pictos = new Cubedesigners_Form_CMS_Sub_Agence_Pictos(); - $pictos->setLabel('Pictogrammes'); - $this->addSubForm($pictos, 'pictos'); - - $photo = new CubeIT_Form_Element_File_Image('photo'); - $photo->setMaxItems(1); - $photo->setLabel('Photo'); - $this->addElement($photo); - - $equipe = new Cubedesigners_Form_CMS_Sub_Agence_Persons(); - $equipe->setLabel("Bloc L'équipe"); - $this->addSubForm($equipe, 'equipe'); - } - -} - +setLabel('Pictogrammes'); + $this->addSubForm($pictos, 'pictos'); + + $photo = new CubeIT_Form_Element_File_Image('photo'); + $photo->setMaxItems(1); + $photo->setLabel('Photo'); + $this->addElement($photo); + + $equipe = new Cubedesigners_Form_CMS_Sub_Agence_Persons(); + $equipe->setLabel("Bloc L'équipe"); + $this->addSubForm($equipe, 'equipe'); + } + +} + ?> \ No newline at end of file diff --git a/framework/application/forms/CMS/Contact.php b/framework/application/forms/CMS/Contact.php index c272d18..9587538 100644 --- a/framework/application/forms/CMS/Contact.php +++ b/framework/application/forms/CMS/Contact.php @@ -1,23 +1,5 @@ -setLabel('Titre'); - $this->addElement($titre); - - $left = new CubeIT_Form_Element_Markitup('colonnegauche'); - $left->setLabel('Description colonne gauche'); - $this->addElement($left); - - $right = new CubeIT_Form_Element_Markitup('colonnedroite'); - $right->setLabel('Description colonne droite'); - $this->addElement($right); - } - -} - -?> \ No newline at end of file + diff --git a/framework/application/forms/CMS/Expertises.php b/framework/application/forms/CMS/Expertises.php index ee15536..5d5002f 100644 --- a/framework/application/forms/CMS/Expertises.php +++ b/framework/application/forms/CMS/Expertises.php @@ -1,15 +1,19 @@ -setLabel('Titre'); - $this->addElement($titre); - } - -} - -?> \ No newline at end of file +setLabel('Citation'); + $citation->setAttrib('rows', 3); + $this->addElement($citation); + + $expertises = new Cubedesigners_Form_CMS_Sub_Home_Expertises(); + $expertises->setLegend('Domaines d\'expertises'); + $this->addSubForm($expertises, 'expertises'); + } + +} diff --git a/framework/application/forms/CMS/Home.php b/framework/application/forms/CMS/Home.php index b255b89..bd7d3cd 100644 --- a/framework/application/forms/CMS/Home.php +++ b/framework/application/forms/CMS/Home.php @@ -2,25 +2,25 @@ class Cubedesigners_Form_CMS_Home extends Cubedesigners_Form_CMS { - public function init() { - parent::init(); + public function init() { + parent::init(); - $titre = new CubeIT_Form_Element_Markitup('titre'); - $titre->setLabel('Titre'); - $this->addElement($titre); + $titre = new CubeIT_Form_Element_Markitup('titre'); + $titre->setLabel('Titre'); + $this->addElement($titre); - $slideshow = new Cubedesigners_Form_CMS_Sub_Home_Slideshow(); - $slideshow->setLabel('Slideshow'); - $this->addSubForm($slideshow, 'slideshow'); + $slideshow = new Cubedesigners_Form_CMS_Sub_Home_Slideshow(); + $slideshow->setLabel('Carrousel'); + $this->addSubForm($slideshow, 'slideshow'); - $agence = new Cubedesigners_Form_CMS_Sub_Home_Agence(); - $agence->setLabel("Bloc L'agence"); - $this->addSubForm($agence, 'agence'); + $agence = new Cubedesigners_Form_CMS_Sub_Home_Agence(); + $agence->setLabel("L'agence"); + $this->addSubForm($agence, 'agence'); - $expertises = new Cubedesigners_Form_CMS_Sub_Home_Expertises(); - $expertises->setLabel('Bloc Expertises'); - $this->addSubForm($expertises, 'expertises'); - } + $expertises = new Cubedesigners_Form_CMS_Sub_Home_Expertises(); + $expertises->setLabel(' Expertises'); + $this->addSubForm($expertises, 'expertises'); + } } diff --git a/framework/application/forms/CMS/Mentions.php b/framework/application/forms/CMS/Mentions.php deleted file mode 100644 index 4d6c18b..0000000 --- a/framework/application/forms/CMS/Mentions.php +++ /dev/null @@ -1,15 +0,0 @@ -setLabel('Titre'); - $this->addElement($titre); - } - -} - -?> \ No newline at end of file diff --git a/framework/application/forms/CMS/Sub/Home/Expertises.php b/framework/application/forms/CMS/Sub/Home/Expertises.php index 3a9820e..2f6f174 100644 --- a/framework/application/forms/CMS/Sub/Home/Expertises.php +++ b/framework/application/forms/CMS/Sub/Home/Expertises.php @@ -2,17 +2,17 @@ class Cubedesigners_Form_CMS_Sub_Home_Expertises 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_Expertises_Blocs('blocs'); - $blocs->setLegend('Sous-blocs'); - $this->addSubForm($blocs, 'blocs'); - } + $blocs = new Cubedesigners_Form_CMS_Sub_Home_Expertises_Blocs('blocs'); + $blocs->setLegend('Expertises'); + $this->addSubForm($blocs, 'blocs'); + } } diff --git a/framework/application/forms/CMS/Sub/Home/Expertises/Bloc.php b/framework/application/forms/CMS/Sub/Home/Expertises/Bloc.php index 3b36dfb..4a87522 100644 --- a/framework/application/forms/CMS/Sub/Home/Expertises/Bloc.php +++ b/framework/application/forms/CMS/Sub/Home/Expertises/Bloc.php @@ -2,22 +2,26 @@ class Cubedesigners_Form_CMS_Sub_Home_Expertises_Bloc extends CubeIT_Form_SubForm { - public function init() { - parent::init(); - - $titre = new Zend_Form_Element_Text('titre'); - $titre->setLabel('Titre du bloc'); - $this->addElement($titre); - - $texte = new CubeIT_Form_Element_Markitup_Basic('texte'); - $texte->setLabel('Texte'); - $this->addElement($texte); - - $picto = new CubeIT_Form_Element_File_Image('picto'); - $picto->setLabel('Pictogramme'); - $picto->setMaxItems(1); - $this->addElement($picto); - } + public function init() { + parent::init(); + + $titre = new Zend_Form_Element_Text('titre'); + $titre->setLabel('Titre du bloc'); + $this->addElement($titre); + + $texte = new CubeIT_Form_Element_Markitup_Basic('texte'); + $texte->setLabel('Texte'); + $this->addElement($texte); + + $picto = new CubeIT_Form_Element_File_Image('picto'); + $picto->setLabel('Pictogramme'); + $picto->setMaxItems(1); + $this->addElement($picto); + + $page = new CubeIT_Form_Element_Page('lien'); + $page->setLabel('Lien vers'); + $this->addElement($page); + } } diff --git a/framework/application/forms/CMS/Sub/Home/Expertises/Blocs.php b/framework/application/forms/CMS/Sub/Home/Expertises/Blocs.php index 49265e3..7009b7a 100644 --- a/framework/application/forms/CMS/Sub/Home/Expertises/Blocs.php +++ b/framework/application/forms/CMS/Sub/Home/Expertises/Blocs.php @@ -2,14 +2,14 @@ class Cubedesigners_Form_CMS_Sub_Home_Expertises_Blocs extends CubeIT_Form_Multi_SubForm { - public function init() { - parent::init(); + public function init() { + parent::init(); - $bloc = new Cubedesigners_Form_CMS_Sub_Home_Expertises_Bloc(); - $this->setBaseSubForm($bloc); - $this->setBaseLegend('Edition du bloc « $titre »'); - $this->setNewLegend('Nouveau bloc'); - } + $bloc = new Cubedesigners_Form_CMS_Sub_Home_Expertises_Bloc(); + $this->setBaseSubForm($bloc); + $this->setBaseLegend('Edition du domaine « $titre »'); + $this->setNewLegend('Nouveau domaine d\'expertise'); + } } diff --git a/framework/application/forms/CMS/Text.php b/framework/application/forms/CMS/Text.php new file mode 100644 index 0000000..118e472 --- /dev/null +++ b/framework/application/forms/CMS/Text.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/framework/application/forms/CMS/Twocolumns.php b/framework/application/forms/CMS/Twocolumns.php new file mode 100644 index 0000000..50ff278 --- /dev/null +++ b/framework/application/forms/CMS/Twocolumns.php @@ -0,0 +1,24 @@ +setLabel('Titre'); + $this->addElement($titre); + + $left = new CubeIT_Form_Element_Markitup('colonnegauche'); + $left->setLabel('Colonne gauche'); + $this->addElement($left); + + $right = new CubeIT_Form_Element_Markitup('colonnedroite'); + $right->setLabel('Colonne droite'); + $this->addElement($right); + } + +} + +?> diff --git a/framework/application/views/helpers/Twocols.php b/framework/application/views/helpers/Twocols.php new file mode 100644 index 0000000..6f82a95 --- /dev/null +++ b/framework/application/views/helpers/Twocols.php @@ -0,0 +1,21 @@ +view->headLink()->appendStylesheet('/less/twocols.less'); + $res = '
'; + if ($displayTitle) { + $res.= '
' . $this->view->markupDotclear($this->view->titre) . '
'; + } + $res.='
'; + $res.='
'; + $res.='
' . $this->view->markupDotclear($this->view->colonnegauche) . '
'; + $res.='
' . $this->view->markupDotclear($this->view->colonnedroite) . '
'; + $res.='
'; + $res.='
'; + $res.='
'; + return $res; + } + +} diff --git a/framework/application/views/scripts/templates/agence.phtml b/framework/application/views/scripts/templates/agence.phtml index 7ca7e7c..b8a2698 100644 --- a/framework/application/views/scripts/templates/agence.phtml +++ b/framework/application/views/scripts/templates/agence.phtml @@ -1,36 +1,29 @@ -headScript()->addScriptAndStyle('agence'); -?> - -
markupDotclear($this->titre); ?>
- -
-
-
markupDotclear($this->colonnegauche); ?>
-
markupDotclear($this->colonnedroite); ?>
-
-
- -
-
-
- agencyPictos($this->pictos); ?> -
-
-
- -
-
imageProcess($this->photo, '', 1200, 545); ?>
-
- -
-
-
- -

equipe['titre']); ?>

- - agencyBlocs($this->equipe); ?> - -
-
+headScript()->addScriptAndStyle('agence'); +echo $this->twocols(); +?> + + +
+
+
+ agencyPictos($this->pictos); ?> +
+
+
+ +
+
imageProcess($this->photo, '', 1200, 545); ?>
+
+ +
+
+
+ +

equipe['titre']); ?>

+ + agencyBlocs($this->equipe); ?> + +
+
\ No newline at end of file diff --git a/framework/application/views/scripts/templates/contact.phtml b/framework/application/views/scripts/templates/contact.phtml index 2675c25..120d466 100644 --- a/framework/application/views/scripts/templates/contact.phtml +++ b/framework/application/views/scripts/templates/contact.phtml @@ -1,36 +1,34 @@ -headScript()->addGoogleMaps(array('key' => $this->options['googleapi'])); -$this->headScript()->addScriptAndStyle('contact'); - -$bureaux = $this->option('contact')['bureaux']; - - -$i = 1; -foreach ($bureaux as $bureau) { - $this->headScriptVariables()->setVariable('map' . $i, $bureaux[$i - 1]['map']); - $this->headScriptVariables()->setVariable('coordonnees' . $i, $bureaux[$i - 1]['coordonnees']); - $this->headScriptVariables()->setVariable('markers' . $i, $bureaux[$i - 1]['markers']); - $i++; -} -?> - -
markupDotclear($this->titre); ?>
- -
- contactInfos($this->option('contact')['bloc'], $bureaux); ?> -
- -
-
'; - $j++; - } - ?> - - -
-
markupDotclear($this->colonnegauche); ?>
-
markupDotclear($this->colonnedroite); ?>
-
\ No newline at end of file +headScript()->addGoogleMaps(array('key' => $this->options['googleapi'])); +$this->headScript()->addScriptAndStyle('contact'); + +$bureaux = $this->option('contact')['bureaux']; + + +$i = 1; +foreach ($bureaux as $bureau) { + $this->headScriptVariables()->setVariable('map' . $i, $bureaux[$i - 1]['map']); + $this->headScriptVariables()->setVariable('coordonnees' . $i, $bureaux[$i - 1]['coordonnees']); + $this->headScriptVariables()->setVariable('markers' . $i, $bureaux[$i - 1]['markers']); + $i++; +} +?> + +
markupDotclear($this->titre); ?>
+ +
+ contactInfos($this->option('contact')['bloc'], $bureaux); ?> +
+ +
+
'; + $j++; + } + ?> + + +twocols(false); diff --git a/framework/application/views/scripts/templates/expertises.phtml b/framework/application/views/scripts/templates/expertises.phtml index 4936303..c930930 100644 --- a/framework/application/views/scripts/templates/expertises.phtml +++ b/framework/application/views/scripts/templates/expertises.phtml @@ -1,5 +1,4 @@ -headScript()->addScriptAndStyle('expertises'); -?> - -
markupDotclear($this->titre); ?>
\ No newline at end of file +headScript()->addScriptAndStyle('expertises'); +echo $this->twocols(); diff --git a/framework/application/views/scripts/templates/text.phtml b/framework/application/views/scripts/templates/text.phtml new file mode 100644 index 0000000..98d08cf --- /dev/null +++ b/framework/application/views/scripts/templates/text.phtml @@ -0,0 +1,3 @@ +twocols(); diff --git a/less/agence.less b/less/agence.less index cfad1d8..1da7ac5 100644 --- a/less/agence.less +++ b/less/agence.less @@ -1,22 +1,3 @@ -/* Agence description */ -.agency-description { - min-width: 980px; - max-width: 980px; - margin: 0 auto; - overflow: hidden; - padding: 0 0 50px 0; - - .col { - float:left; - //width:50%; - margin-right: 20px; - width: 47%; - } - - .col .dotclear { - width:95%; - } -} /* Agence pictos */ .agency-pictos .bloc-holder { @@ -60,7 +41,7 @@ .agency-photo { overflow:hidden; text-align: center; - + img { vertical-align: bottom; } @@ -70,7 +51,7 @@ .agency-persons { background-color:#3885e0; color:#fff; - + .bloc-holder { min-width: 980px; max-width: 980px; @@ -122,6 +103,6 @@ /* max-width pour faibles résolutions */ @media screen and (max-width: 1009px) { - - + + } \ No newline at end of file diff --git a/less/twocols.less b/less/twocols.less new file mode 100644 index 0000000..23b8e67 --- /dev/null +++ b/less/twocols.less @@ -0,0 +1,19 @@ +.twocols{ + width: 980px; + margin: 0 auto; + .cols { + padding: 0 0 50px 0; + white-space:nowrap; + + .col { + white-space: normal; + display:inline-block; + width:465px; + margin:0 50px 0 0 ; + vertical-align: top; + &:last-child{ + margin:0; + } + } + } +} \ No newline at end of file