public function init() {
parent::init();
- $titre = new Zend_Form_Element_Text('titre');
+ $titre = new CubeIT_Form_Element_Markitup('titre');
$titre->setLabel('Titre');
$this->addElement($titre);
+
+ $agence = new Cubedesigners_Form_CMS_Sub_Home_Agence();
+ $agence->setLabel('Bloc L\'agence');
+ $this->addSubForm($agence, 'agence');
}
}
+
?>
\ No newline at end of file
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_Contact extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $bloc = new CubeIT_Form_Element_Markitup('bloc');
+ $bloc->setLabel('Bloc "Nous Contacter"');
+ $this->addElement($bloc);
+
+ $bureau = new Cubedesigners_Form_CMS_Sub_Contact_Offices('bureaux');
+ $bureau->setLegend('Bureaux');
+ $this->addSubForm($bureau, 'bureau');
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_Contact_Office extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $titre = new Zend_Form_Element_Text('titre');
+ $titre->setLabel('Titre du bureau');
+ $this->addElement($titre);
+
+ $telephone = new CubeIT_Form_Element_Phone('telephone');
+ $telephone->setLabel('Téléphone');
+ $this->addElement($telephone);
+
+ $fax = new CubeIT_Form_Element_Phone('fax');
+ $fax->setLabel('Fax');
+ $this->addElement($fax);
+
+ $adresse = new CubeIT_Form_Adresse('adresse');
+ $adresse->setLabel('Adresse');
+ $this->addSubForm($adresse, 'adresse');
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_Contact_Offices extends CubeIT_Form_Multi_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $office = new Cubedesigners_Form_CMS_Sub_Contact_Office();
+ $this->setBaseSubForm($office);
+ $this->setBaseLegend('Edition du bureau « $titre »');
+ $this->setNewLegend('Nouveau bureau');
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_Followus extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $reseaux = new Cubedesigners_Form_CMS_Sub_Followus_SocialsNetworks('reseauxsociaux');
+ $reseaux->setLegend('Réseaux Sociaux');
+ $this->addSubForm($reseaux, 'reseauxsociaux');
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_Followus_SocialNetwork extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $titre = new Zend_Form_Element_Text('titre');
+ $titre->setLabel('Titre du réseau social');
+ $this->addElement($titre);
+
+ $url = new CubeIT_Form_Element_Url('url');
+ $url->setLabel('Url');
+ $this->addElement($url);
+
+ $picto = new CubeIT_Form_Element_File_Image('picto');
+ $picto->setLabel('Pictogramme');
+ $picto->setMaxItems(1);
+ $this->addElement($picto);
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_Followus_SocialsNetworks extends CubeIT_Form_Multi_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $reseau = new Cubedesigners_Form_CMS_Sub_Followus_SocialNetwork();
+ $this->setBaseSubForm($reseau);
+ $this->setBaseLegend('Edition du réseau social « $titre »');
+ $this->setNewLegend('Nouveau réseau social');
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_Home_Agence extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $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');
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_News extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $actus = new Cubedesigners_Form_CMS_Sub_News_News('actualites');
+ $actus->setLegend('Actualités');
+ $this->addSubForm($actus, 'actualites');
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_News_New extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $date = new CubeIT_Form_Element_Date('date');
+ $date->setLabel('Date');
+ $this->addElement($date);
+
+ $texte = new CubeIT_Form_Element_Markitup_Basic('texte');
+ $texte->setLabel('Texte');
+ $this->addElement($texte);
+ }
+
+}
+
+?>
--- /dev/null
+<?php
+
+class Cubedesigners_Form_CMS_Sub_News_News extends CubeIT_Form_Multi_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $actu = new Cubedesigners_Form_CMS_Sub_News_New();
+ $this->setBaseSubForm($actu);
+ $this->setBaseLegend('Edition de l\'actualité du « $date »');
+ $this->setNewLegend('Nouvelle actualité');
+ }
+
+}
+
+?>
$description->setLabel('Description de la page par défaut');
$this->addElementLocalized($description);
+ /* BLOC CONTACT */
+ $contact = new Cubedesigners_Form_CMS_Sub_Contact();
+ $contact->setLabel('Informations de contact');
+ $this->addSubFormLocalized($contact, 'contact');
+
+ /* BLOC ACTUALITES */
+ $actus = new Cubedesigners_Form_CMS_Sub_News();
+ $actus->setLabel('Bloc Actualités');
+ $this->addSubFormLocalized($actus, 'actus');
+
+ /* BLOC SUIVEZ-NOUS */
+ $followus = new Cubedesigners_Form_CMS_Sub_Followus();
+ $followus->setLabel('Bloc Suivez-nous');
+ $this->addSubFormLocalized($followus, 'followus');
+
/* COPYRIGHT */
$copyright = new Zend_Form_Element_Text('copyright');
$copyright->setLabel('Copyright du bas de page');
--- /dev/null
+<?php\r
+\r
+class Cubedesigners_View_Helper_FooterActualites extends Zend_View_Helper_Abstract {\r
+\r
+ public function footerActualites($actus) {\r
+\r
+ $actus = $actus["actualites"];\r
+\r
+ $nbActus = count($actus);\r
+\r
+ $res = '<div class="actus">';\r
+ foreach ($actus as $id => $actu) {\r
+ $res.='<div class="actu"><p class="date">' . $actu['date'] . '</p><p class="texte">' . $this->view->markupDotclear($actu['texte']) . '<p></div>';\r
+ }\r
+ $res.= '</div>';\r
+\r
+ return $res;\r
+ }\r
+\r
+}\r
+\r
+?>\r
--- /dev/null
+<?php\r
+\r
+class Cubedesigners_View_Helper_FooterContact extends Zend_View_Helper_Abstract {\r
+\r
+ public function footerContact($contact) {\r
+\r
+ $res = '<div class="contact-texte">' . $this->view->markupDotclear($contact['bloc']) . '</div>';\r
+\r
+ $bureaux = $contact['bureau'];\r
+\r
+ foreach ($bureaux as $id => $bureau) {\r
+\r
+ $res.='<div class="bureau">';\r
+\r
+ $res.='<p class="titre">' . $bureau['titre'] . '<p>';\r
+\r
+ $res.='<div class="numeros">';\r
+ $res.='<p>' . __('Tel') . ' ' . $bureau['telephone'] . '</p>';\r
+ $res.='<p>' . __('Fax') . ' ' . $bureau['fax'] . '</p>';\r
+ $res.='</div>';\r
+\r
+ $res.='<div class="adresse">';\r
+ $res.='<p>' . __('Cubedesigners') . '</p>';\r
+ $res.='<p>' . $bureau['adresse']['adresse'] . '</p>';\r
+ $res.='<p>' . $bureau['adresse']['code_postal'] . ' ' . $bureau['adresse']['ville'] . '</p>';\r
+ $res.='<p>' . Zend_Locale::getTranslation($bureau['adresse']['pays'], 'territory') . '<p>';\r
+ $res.='</div>';\r
+\r
+ $res.='<div class="geoloc">';\r
+ $res.=$this->view->linkGeo(__('Plan d\'accès'), $bureau['adresse']['adresse'] . ',' . $bureau['adresse']['ville'] . ',' . Zend_Locale::getTranslation($bureau['adresse']['pays'], 'territory'));\r
+ $res.='</div>';\r
+\r
+ $res.='</div>';\r
+ }\r
+\r
+ return $res;\r
+ }\r
+\r
+}\r
+\r
+?>\r
--- /dev/null
+<?php\r
+\r
+class Cubedesigners_View_Helper_FooterSocials extends Zend_View_Helper_Abstract {\r
+\r
+ public function footerSocials($socials) {\r
+\r
+ $socials = $socials["reseauxsociaux"];\r
+\r
+ $nbSocials = count($socials);\r
+\r
+ $res = '<div class="reseaux">';\r
+ foreach ($socials as $id => $social) {\r
+ $image = $this->view->imageProcess($social['picto'], $social['titre'], 45, 45);\r
+ $res.='<div class="social"><a href="' . $social['url'] . '">' . $image . '</a></div>';\r
+ }\r
+ $res.= '</div>';\r
+\r
+ return $res;\r
+ }\r
+\r
+}\r
+\r
+?>\r
--- /dev/null
+<?php\r
+\r
+class Cubedesigners_View_Helper_HomeAgence extends Zend_View_Helper_Abstract {\r
+\r
+ public function homeAgence($blocs) {\r
+\r
+ $blocs = $blocs['blocs'];\r
+\r
+ $res = '<div class="blocs">';\r
+ foreach ($blocs as $id => $bloc) {\r
+\r
+ /* $res.='<div class="bureau">';\r
+\r
+ $res.='<p class="titre">' . $bureau['titre'] . '<p>';\r
+\r
+ $res.='<div class="numeros">';\r
+ $res.='<p>' . __('Tel') . ' ' . $bureau['telephone'] . '</p>';\r
+ $res.='<p>' . __('Fax') . ' ' . $bureau['fax'] . '</p>';\r
+ $res.='</div>';\r
+\r
+ $res.='<div class="adresse">';\r
+ $res.='<p>' . __('Cubedesigners') . '</p>';\r
+ $res.='<p>' . $bureau['adresse']['adresse'] . '</p>';\r
+ $res.='<p>' . $bureau['adresse']['code_postal'] . ' ' . $bureau['adresse']['ville'] . '</p>';\r
+ $res.='<p>' . Zend_Locale::getTranslation($bureau['adresse']['pays'], 'territory') . '<p>';\r
+ $res.='</div>';\r
+\r
+ $res.='<div class="geoloc">';\r
+ $res.=$this->view->linkGeo(__('Plan d\'accès'), $bureau['adresse']['adresse'] . ',' . $bureau['adresse']['ville'] . ',' . Zend_Locale::getTranslation($bureau['adresse']['pays'], 'territory'));\r
+ $res.='</div>';\r
+\r
+ $res.='</div>'; */\r
+ $image = $this->view->imageProcess($bloc['picto'], $bloc['titre'], 120, 120);\r
+\r
+ $res.='<div class="sousbloc">';\r
+ $res.= $image;\r
+ $res.= '<h2>' . $this->view->markupDotclear($bloc['titre']) . '</h2>';\r
+ $res.= '<p>' . $this->view->markupDotclear($bloc['texte']) . '</p>';\r
+ $res.='</div>';\r
+ }\r
+\r
+ $res .= '</div>';\r
+ return $res;\r
+ }\r
+\r
+}\r
+\r
+?>\r
?>\r
<div id="footer">\r
<div class="footer-holder">\r
- <div class="footer-top"></div>\r
+\r
+ <div class="footer-top">\r
+\r
+ <div class="footer-top-content">\r
+\r
+ <div class="bloc">\r
+\r
+ <h1>Nous contacter</h1>\r
+\r
+ <?php echo $this->footerContact($this->option('contact')); ?>\r
+ </div>\r
+\r
+ <div class="bloc">\r
+\r
+ <h1>Actualités</h1>\r
+\r
+ <?php echo $this->footerActualites($this->option('actus')); ?>\r
+\r
+ <h2>Suivez-nous</h2>\r
+\r
+ <?php echo $this->footerSocials($this->option('followus')); ?>\r
+\r
+ </div>\r
+\r
+ </div>\r
+\r
+ </div>\r
+\r
<div class="footer-bottom">\r
<?php\r
echo $this->option('copyright');\r
<?php\r
/* LOGO */\r
if (!is_null($home)) {\r
- echo '<div class="logo"><a href="' . $home . '" class="logo">' . $this->image('/images/logo.png', 'Cubedesigners') . '</a></div>';\r
+ echo '<a href="' . $home . '" class="logo"><div class="logo"></div></a>';\r
}\r
\r
/* NAVIGATION */\r
<?php\r
-\r
$this->headScript()->addScriptAndStyle('home');\r
-?>
\ No newline at end of file
+?>\r
+\r
+<div class="home-title"><?php echo $this->markupDotclear($this->titre); ?></div>\r
+\r
+<div class="home-slideshow"></div>\r
+\r
+<div class="home-agency">\r
+ <div class="home-agency-holder">\r
+\r
+ <h1><?php echo ucfirst($this->agence['titre']); ?></h1>\r
+\r
+ <?php echo $this->homeAgence($this->agence); ?>\r
+\r
+ </div>\r
+</div>
\ No newline at end of file
color:#1b1b1b;\r
}\r
\r
+#main {\r
+ margin: 0 auto;\r
+ //min-width: 1024px;\r
+ //max-width: 1200px;\r
+ width:100%;\r
+}\r
+\r
+#main .main-holder {\r
+ min-width: 950px;\r
+ max-width: 1140px;\r
+ width:100%;\r
+ margin: 0 auto;\r
+ padding: 0px 20px 50px 20px;\r
+}\r
+\r
#wrapper {\r
\r
}
\ No newline at end of file
#footer .footer-top {
background-color: #282828;
- height: 520px;
}
+#footer .footer-top .footer-top-content {
+ min-width: 950px;
+ max-width: 1140px;
+ width:100%;
+ margin: 0 auto;
+ overflow: hidden;
+ padding: 0px 20px 50px 20px;
+}
+
+#footer .footer-top .footer-top-content .bloc {
+ float: left;
+ //max-width: 490px;
+ width: 50%;
+}
+
+#footer .footer-top .footer-top-content .bloc h1 {
+ font-family: 'roboto_condensedlight';
+ font-weight: normal;
+ color:#fff;
+ font-size:56px;;
+ padding-top: 50px;
+ padding-bottom: 50px;
+}
+
+#footer .footer-top .footer-top-content .bloc h2 {
+ font-family: 'roboto_condensedlight';
+ font-weight: normal;
+ color:#fff;
+ font-size:56px;;
+ padding-top: 50px;
+ padding-bottom: 20px;
+}
+
+/* Footer Nous Contacter */
+#footer .contact-texte {
+ background: url('../images/picto_footer_mail.png') no-repeat;
+ background-position:0px 10px;
+ font-family: 'roboto_condensedlight';
+ font-weight: normal;
+ color:#fff;
+ padding-left:70px;
+ padding-bottom: 50px;
+}
+
+#footer .bureau {
+ float:left;
+ width:50%;
+ color:#6c6c6c;
+}
+
+#footer .bureau .titre, #footer .bureau .numeros {
+ padding-bottom: 20px;
+}
+
+#footer .bureau .geoloc {
+ padding-top : 30px;
+}
+
+#footer .bureau a {
+ background-color: #191919;
+ border-radius: 2px;
+ padding: 5px 20px;
+ color:#6c6c6c;
+}
+
+/* Footer Actualites */
+#footer .actu {
+ font-family: 'roboto_condensedlight';
+ font-weight: normal;
+ color:#6c6c6c;
+ padding-bottom: 20px;
+}
+
+#footer .actu:last-child {
+ padding-bottom: 0;
+}
+
+#footer .actu .date {
+ font-size:12px;
+}
+
+#footer .actu .texte {
+ font-size:16px;
+}
+
+/* Footer Suivez-nous */
+#footer .reseaux .social {
+ float: left;
+ margin-right: 20px;
+}
+
+/* Footer Copyright */
#footer .footer-bottom {
background-color: #191919;
height: 30px;
line-height: 30px;
}
-#footer .footer-bottom a{
+/* Footer Liens */
+#footer a{
text-decoration: none;
color:#3885e0;
}
-#footer .footer-bottom a:hover,
-#footer .footer-bottom .active a{
+#footer a:hover,
+#footer .active a{
color:#3885e0;
}
\ No newline at end of file
}
#header .logo {
+ background: url('../images/logo.png') no-repeat;
+ width:317px;
+ height:130px;
float:left;
}
#header .navigation li{
margin:0 20px 0 0;
-}
\ No newline at end of file
+}
+
+
+/* max-width pour faibles résolutions */
+@media screen and (max-width: 1024px) {
+
+ #header {
+ margin: 0 auto;
+ max-width: 1024px;
+ width:100%;
+ height:97px;
+ }
+
+ #header .logo {
+ background: url('../images/logo-mobile.png') no-repeat;
+ width:212px;
+ height:97px;
+ float:left;
+ }
+
+}
+/* Home Title */\r
+.home-title {\r
+ padding: 50px 0px 50px 0;\r
+}\r
+\r
+.home-title h1 {\r
+ text-align: center;\r
+ font-weight: normal;\r
+ font-size: 56px;\r
+}\r
+\r
+.home-title h2 {\r
+ text-align: center;\r
+ font-weight: normal;\r
+ font-size: 32px;\r
+}\r
+\r
+/* Home Slideshow */\r
+.home-slideshow {\r
+ height: 450px;\r
+ padding-bottom:50px;\r
+}\r
+\r
+/* Home Agency */\r
+.home-agency {\r
+ background-color:#3885e0;\r
+ color:#fff;\r
+}\r
+\r
+.home-agency .home-agency-holder {\r
+ min-width: 950px;\r
+ max-width: 1140px;\r
+ width:100%;\r
+ margin: 0 auto;\r
+ padding: 50px 20px 0px 20px;\r
+ overflow:hidden;\r
+}\r
+\r
+.home-agency .home-agency-holder h1 {\r
+ font-family: 'roboto_condensedlight';\r
+ font-weight: normal;\r
+ color:#fff;\r
+ font-size:56px;\r
+}\r
+\r
+.home-agency .home-agency-holder h2 {\r
+ font-family: 'roboto_condensedlight';\r
+ font-weight: normal;\r
+ color:#fff;\r
+ font-size:32px;\r
+}\r
+\r
+.home-agency .home-agency-holder .blocs {\r
+ padding: 40px 0;\r
+}\r
+\r
+.home-agency .home-agency-holder .sousbloc {\r
+ float:left;\r
+ width:50%;\r
+ padding-bottom: 50px;\r
+}\r
+\r
+.home-agency .home-agency-holder .sousbloc img {\r
+ float:left;\r
+ padding-right: 50px;\r
+}
\ No newline at end of file