]> _ Git - ccgm.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 13 Aug 2013 09:06:43 +0000 (09:06 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 13 Aug 2013 09:06:43 +0000 (09:06 +0000)
css/common.css
css/home.css
framework/application/configs/settings.ini
framework/application/forms/CMS/Sub/Footer.php
framework/application/forms/CMS/Sub/Footer/Logo.php [new file with mode: 0644]
framework/application/forms/CMS/Sub/Footer/Logos.php [new file with mode: 0644]
framework/application/views/scripts/common/footer.phtml

index fce3465b2891d0c2e73c86994f63f895564aa8d6..07175615aa260bc189934b9986c7602ff37cb4c0 100644 (file)
@@ -189,7 +189,7 @@ q:after{content:"";}
        text-transform:uppercase;\r
        margin:0 0 7px;\r
 }\r
-.info-area address{\r
+.info-area p{\r
        line-height:26px;\r
        margin:0 0 2px;\r
 }\r
@@ -367,19 +367,19 @@ q:after{content:"";}
        width: 228px;\r
 }\r
 #footer .timing .note p{margin:0;}\r
-#footer .timing .clients{\r
+#footer .timing .logos{\r
        margin:0;\r
        padding:0;\r
        list-style:none;\r
 }\r
-#footer .timing .clients li:first-child{margin:22px 0 0;}\r
-#footer .timing .clients li{\r
+#footer .timing .logos li:first-child{margin:22px 0 0;}\r
+#footer .timing .logos li{\r
        display: inline-block;\r
        vertical-align: middle;\r
        margin:0 0 0 39px;\r
        float:none;\r
 }\r
-#footer .timing .clients img{display:block;}\r
+#footer .timing .logos img{display:block;}\r
 #footer .info{\r
        margin:0 auto;\r
        width:981px;\r
index 12a2c5c2524fbec3b3631bffe08065333000d03a..d93ca671dc3a59c553c6ed3e122b765a13f81a26 100644 (file)
@@ -59,7 +59,7 @@
        padding:10px;
 }
 .slideshow .caption .holder{
-       background: linear-gradient(to bottom,  #51cdf8 0%,#46c6f2 31%,#2db6e6 81%,#28b3e3 100%);
+       background-image: linear-gradient(to bottom,  #51cdf8 0%,#46c6f2 31%,#2db6e6 81%,#28b3e3 100%);
        border-radius:233px;
        width:233px;
        height:194px;
index 0abaaedcd0abed0131a44118efb683083d5471bf..874a4b9ba9b1062205caa100bcb43c1b661219ea 100644 (file)
@@ -1,4 +1,24 @@
 [production]
+copyright = "©CCGM - Tous droits réservés"
 longTitle.fr = "Centre de Cancérologie du Grand Montpellier"
 description.fr = "Centre de Cancérologie du Grand Montpellier"
+footer.infos = "Infos pratiques"
+footer.horaires = "Le centre vous accueille du lundi au vendredi, de 8h à 19h.
+Permanence téléphonique le samedi, de 9h à 12h."
+footer.adresse.titre = "Centre de Cancérologie du Grand Montpellier"
+footer.adresse.contenu = "Clinique Clémentville
+25, rue de Clémentville
+34070 MONTPELLIER
+Tél : 04 67 92 61 55  -  Fax : 04 67 92 95 06"
+footer.urgences.titre = "Urgences - Hospitalisation"
+footer.urgences.contenu = "Clinique tél : 08 26 88 88 84"
+footer.logos.0.nom = "Montpellier - Institut du sein"
+footer.logos.0.logo.4359.image = "5209f28f-institut-du-sein.png"
+footer.logos.0.url = "http://www.le-mis.fr"
+footer.logos.1.nom = "3C - Secteur libéral montpelliérais"
+footer.logos.1.logo.3349.image = "5209f2fb-3c.png"
+footer.logos.1.url = ""
+footer.logos.2.nom = "Onco Languedoc-Roussillon"
+footer.logos.2.logo.7181.image = "5209f33d-onco.png"
+footer.logos.2.url = "http://www.oncolr.org/"
 
index cd9cd3ea6bbc377fd164b5f81df75a015a713de1..088b30d705b190c4c920f75231384d98dff4772a 100644 (file)
@@ -21,6 +21,10 @@ class CCGM_Form_CMS_Sub_Footer extends CubeIT_Form_SubForm {
                $horaires->setLabel('Horaires');\r
                $horaires->setAttrib('rows', 3);\r
                $this->addElement($horaires);\r
+\r
+               $logos = new CCGM_Form_CMS_Sub_Footer_Logos();\r
+               $logos->setLabel('Logos');\r
+               $this->addSubForm($logos, 'logos');\r
        }\r
 \r
 }
\ No newline at end of file
diff --git a/framework/application/forms/CMS/Sub/Footer/Logo.php b/framework/application/forms/CMS/Sub/Footer/Logo.php
new file mode 100644 (file)
index 0000000..7e69f9f
--- /dev/null
@@ -0,0 +1,21 @@
+<?php\r
+\r
+class CCGM_Form_CMS_Sub_Footer_Logo extends CubeIT_Form_SubForm {\r
+\r
+       public function init() {\r
+               parent::init();\r
+\r
+               $nom = new Zend_Form_Element_Text('nom');\r
+               $nom->setLabel('Nom');\r
+               $this->addElement($nom);\r
+\r
+               $logo = new CubeIT_Form_Element_File_Image('logo');\r
+               $logo->setLabel('Logo');\r
+               $this->addElement($logo);\r
+\r
+               $url = new CubeIT_Form_Element_Url('url');\r
+               $url->setLabel('URL');\r
+               $this->addElement($url);\r
+       }\r
+\r
+}
\ No newline at end of file
diff --git a/framework/application/forms/CMS/Sub/Footer/Logos.php b/framework/application/forms/CMS/Sub/Footer/Logos.php
new file mode 100644 (file)
index 0000000..48ed8e3
--- /dev/null
@@ -0,0 +1,14 @@
+<?php\r
+\r
+class CCGM_Form_CMS_Sub_Footer_Logos extends CubeIT_Form_Multi_SubForm {\r
+\r
+       public function init() {\r
+               parent::init();\r
+\r
+               $logo = new CCGM_Form_CMS_Sub_Footer_Logo();\r
+               $this->setBaseSubForm($logo);\r
+               $this->setBaseLegend('Edition du logo « $nom »');\r
+               $this->setNewLegend('Nouveau logo');\r
+       }\r
+\r
+}
\ No newline at end of file
index a72bed7b046a98bd1c88e0c34be2fb400389581b..7e0a836e067373439d1832ca47d7bb8d33e583d1 100644 (file)
@@ -25,11 +25,21 @@ $f = $this->options['footer'];
                        </div>\r
                        <div class="info-area timing">\r
                                <div class="note"><p><?php echo nl2br($f['horaires']) ?></p></div>\r
-                               <ul class="clients">\r
-                                       <li><a href="#"><img src="/images/client1.png" width="135" height="29" alt="Montpellier"></a></li>\r
-                                       <li><a href="#"><img src="/images/client2.png" width="89" height="97" alt="3C"></a></li>\r
-                                       <li><a href="#"><img src="/images/client3.png" width="58" height="55" alt="onco"></a></li>\r
-                               </ul>\r
+\r
+                               <?php\r
+                               $items = array();\r
+                               foreach ($f['logos'] as $logo) {\r
+                                       $image = $this->imageCms($logo['logo'], $logo['nom'], -1, -1);\r
+                                       if ($logo['url'] == '') {\r
+                                               $item = $image;\r
+                                       } else {\r
+                                               $item = $this->link($image, $logo['url']);\r
+                                       }\r
+                                       $items[] = $item;\r
+                               }\r
+                               echo $this->listUnordered($items, array('class' => 'logos'));\r
+                               ?>\r
+\r
                        </div>\r
                </div>\r
        </div>\r