From 6f19692d74e6d5deca5d69209441f20fb6daa0dc Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 13 Aug 2013 09:06:43 +0000 Subject: [PATCH] --- css/common.css | 10 ++++----- css/home.css | 2 +- framework/application/configs/settings.ini | 20 ++++++++++++++++++ .../application/forms/CMS/Sub/Footer.php | 4 ++++ .../application/forms/CMS/Sub/Footer/Logo.php | 21 +++++++++++++++++++ .../forms/CMS/Sub/Footer/Logos.php | 14 +++++++++++++ .../views/scripts/common/footer.phtml | 20 +++++++++++++----- 7 files changed, 80 insertions(+), 11 deletions(-) create mode 100644 framework/application/forms/CMS/Sub/Footer/Logo.php create mode 100644 framework/application/forms/CMS/Sub/Footer/Logos.php diff --git a/css/common.css b/css/common.css index fce3465..0717561 100644 --- a/css/common.css +++ b/css/common.css @@ -189,7 +189,7 @@ q:after{content:"";} text-transform:uppercase; margin:0 0 7px; } -.info-area address{ +.info-area p{ line-height:26px; margin:0 0 2px; } @@ -367,19 +367,19 @@ q:after{content:"";} width: 228px; } #footer .timing .note p{margin:0;} -#footer .timing .clients{ +#footer .timing .logos{ margin:0; padding:0; list-style:none; } -#footer .timing .clients li:first-child{margin:22px 0 0;} -#footer .timing .clients li{ +#footer .timing .logos li:first-child{margin:22px 0 0;} +#footer .timing .logos li{ display: inline-block; vertical-align: middle; margin:0 0 0 39px; float:none; } -#footer .timing .clients img{display:block;} +#footer .timing .logos img{display:block;} #footer .info{ margin:0 auto; width:981px; diff --git a/css/home.css b/css/home.css index 12a2c5c..d93ca67 100644 --- a/css/home.css +++ b/css/home.css @@ -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; diff --git a/framework/application/configs/settings.ini b/framework/application/configs/settings.ini index 0abaaed..874a4b9 100644 --- a/framework/application/configs/settings.ini +++ b/framework/application/configs/settings.ini @@ -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/" diff --git a/framework/application/forms/CMS/Sub/Footer.php b/framework/application/forms/CMS/Sub/Footer.php index cd9cd3e..088b30d 100644 --- a/framework/application/forms/CMS/Sub/Footer.php +++ b/framework/application/forms/CMS/Sub/Footer.php @@ -21,6 +21,10 @@ class CCGM_Form_CMS_Sub_Footer extends CubeIT_Form_SubForm { $horaires->setLabel('Horaires'); $horaires->setAttrib('rows', 3); $this->addElement($horaires); + + $logos = new CCGM_Form_CMS_Sub_Footer_Logos(); + $logos->setLabel('Logos'); + $this->addSubForm($logos, 'logos'); } } \ 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 index 0000000..7e69f9f --- /dev/null +++ b/framework/application/forms/CMS/Sub/Footer/Logo.php @@ -0,0 +1,21 @@ +setLabel('Nom'); + $this->addElement($nom); + + $logo = new CubeIT_Form_Element_File_Image('logo'); + $logo->setLabel('Logo'); + $this->addElement($logo); + + $url = new CubeIT_Form_Element_Url('url'); + $url->setLabel('URL'); + $this->addElement($url); + } + +} \ 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 index 0000000..48ed8e3 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Footer/Logos.php @@ -0,0 +1,14 @@ +setBaseSubForm($logo); + $this->setBaseLegend('Edition du logo « $nom »'); + $this->setNewLegend('Nouveau logo'); + } + +} \ No newline at end of file diff --git a/framework/application/views/scripts/common/footer.phtml b/framework/application/views/scripts/common/footer.phtml index a72bed7..7e0a836 100644 --- a/framework/application/views/scripts/common/footer.phtml +++ b/framework/application/views/scripts/common/footer.phtml @@ -25,11 +25,21 @@ $f = $this->options['footer'];

- + + imageCms($logo['logo'], $logo['nom'], -1, -1); + if ($logo['url'] == '') { + $item = $image; + } else { + $item = $this->link($image, $logo['url']); + } + $items[] = $item; + } + echo $this->listUnordered($items, array('class' => 'logos')); + ?> +
-- 2.39.5