From: bruno@cubedesigners.com Date: Tue, 11 Feb 2014 16:07:03 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=33a462c715301e8e02f4f9eb9555db7ea064ef2b;p=cubedesigners-v7.git --- diff --git a/framework/application/forms/CMS/Sub/Agence/Persons/Bloc.php b/framework/application/forms/CMS/Sub/Agence/Persons/Bloc.php index 7dd6737..e1cba8a 100644 --- a/framework/application/forms/CMS/Sub/Agence/Persons/Bloc.php +++ b/framework/application/forms/CMS/Sub/Agence/Persons/Bloc.php @@ -9,6 +9,10 @@ class Cubedesigners_Form_CMS_Sub_Agence_Persons_Bloc extends CubeIT_Form_SubForm $titre->setLabel('Prénom et nom'); $this->addElement($titre); + $poste = new Zend_Form_Element_Text('poste'); + $poste->setLabel('Poste'); + $this->addElement($poste); + $texte = new CubeIT_Form_Element_Markitup_Basic('texte'); $texte->setLabel('Texte'); $this->addElement($texte); diff --git a/framework/application/forms/CMS/Sub/Casestudies/Studie.php b/framework/application/forms/CMS/Sub/Casestudies/Studie.php index d543739..0a505c8 100644 --- a/framework/application/forms/CMS/Sub/Casestudies/Studie.php +++ b/framework/application/forms/CMS/Sub/Casestudies/Studie.php @@ -5,6 +5,10 @@ class Cubedesigners_Form_CMS_Sub_Casestudies_Studie extends CubeIT_Form_SubForm public function init() { parent::init(); + $online = new Zend_Form_Element_Checkbox('online'); + $online->setLabel('En ligne'); + $this->addElement($online); + $titre = new Zend_Form_Element_Text('titre'); $titre->setLabel('Titre'); $this->addElement($titre); diff --git a/framework/application/forms/CMS/Sub/Home/Slideshow/Slide.php b/framework/application/forms/CMS/Sub/Home/Slideshow/Slide.php index 7417b5b..30a8ee2 100644 --- a/framework/application/forms/CMS/Sub/Home/Slideshow/Slide.php +++ b/framework/application/forms/CMS/Sub/Home/Slideshow/Slide.php @@ -14,6 +14,10 @@ class Cubedesigners_Form_CMS_Sub_Home_Slideshow_Slide extends CubeIT_Form_SubFor $legend->setLabel('Legende'); $this->addElement($legend); + $time = new Zend_Form_Element_Text('time'); + $time->setLabel("Temps d'affichage (en secondes)"); + $this->addElement($time); + $link = new CubeIT_Form_Element_Link('lien'); $link->labelEnabled(false); $this->addSubForm($link, 'lien'); diff --git a/framework/application/views/helpers/AgencyBlocs.php b/framework/application/views/helpers/AgencyBlocs.php index 46ef2a2..85b8ff8 100644 --- a/framework/application/views/helpers/AgencyBlocs.php +++ b/framework/application/views/helpers/AgencyBlocs.php @@ -21,9 +21,10 @@ class Cubedesigners_View_Helper_AgencyBlocs extends Zend_View_Helper_Abstract { $image = $this->view->imageProcess()->imageProcessGetUrl($bloc['photo'], $bloc['titre'], 120, 120); - $res.='
'; - $res.=''; - $res.='

' . $this->view->markupDotclear($bloc['titre']) . '

'; + $res.='
'; + $res.=''; + $res.='

' . $bloc['titre'] . '

'; + $res.='' . $bloc['poste'] . ''; $res.='' . $this->view->markupDotclear($bloc['texte']) . ''; $res.='
'; diff --git a/framework/application/views/helpers/AgencyPictos.php b/framework/application/views/helpers/AgencyPictos.php index 915953c..4b62dc3 100644 --- a/framework/application/views/helpers/AgencyPictos.php +++ b/framework/application/views/helpers/AgencyPictos.php @@ -17,17 +17,13 @@ class Cubedesigners_View_Helper_AgencyPictos extends Zend_View_Helper_Abstract { } $image = $this->view->imageCms($bloc['picto'], '', 70, 70, array()); - // $image = $this->view->imageProcess($bloc['picto'], $bloc['picto'], 70, 70, array(), 'C', 'C', 'M', false, 'auto', null, 92, 'files'); - //$image = $this->view->imageProcess()->imageProcessGetUrl($bloc['picto'], $bloc['titre'], 120, 120); - + $res .= '
'; $res.='
'; - //$res.=''; $res.=$image; $res.= $this->view->markupDotclear($bloc['texte']); - //$res.='

' . $this->view->markupDotclear($bloc['titre']) . '

'; - //$res.='

' . $this->view->markupDotclear($bloc['soustitre']) . '

'; $res.='
'; + $res .= '
'; $i++; } diff --git a/framework/application/views/helpers/ContactInfos.php b/framework/application/views/helpers/ContactInfos.php index e2f1503..bda016e 100644 --- a/framework/application/views/helpers/ContactInfos.php +++ b/framework/application/views/helpers/ContactInfos.php @@ -10,19 +10,19 @@ class Cubedesigners_View_Helper_ContactInfos extends Zend_View_Helper_Abstract { foreach ($bureaux as $id => $bureau) { - $res.='
'; + $res.='
'; - $res.='

' . $bureau['coordonnees']['nom'] . '

'; + $res.='

' . $bureau['coordonnees']['nom'] . '

'; - $res.='

'; + $res.='
'; $res.='

' . __('Cubedesigners') . '

'; - $res.='

' . $bureau['coordonnees']['adresse'] . '

'; - $res.='

' . $bureau['coordonnees']['code_postal'] . ' ' . $bureau['coordonnees']['ville'] . ' ' . Zend_Locale::getTranslation($bureau['coordonnees']['pays'], 'territory') . '

'; + $res.='

' . $bureau['coordonnees']['adresse'] . '

'; + $res.='

' . $bureau['coordonnees']['code_postal'] . ' ' . $bureau['coordonnees']['ville'] . ' ' . Zend_Locale::getTranslation($bureau['coordonnees']['pays'], 'territory') . '

'; $res.='
'; $res.='
'; - $res.='

' . __('Tel') . ' ' . $bureau['coordonnees']['tel'] . '

'; - $res.='

' . __('Fax') . ' ' . $bureau['coordonnees']['fax'] . '

'; + $res.='

' . __('Tel') . ' ' . $bureau['coordonnees']['tel'] . '

'; + $res.='

' . __('Fax') . ' ' . $bureau['coordonnees']['fax'] . '

'; $res.='
'; /* $res.='
'; diff --git a/framework/application/views/helpers/FooterContact.php b/framework/application/views/helpers/FooterContact.php index fc1b054..ef11d67 100644 --- a/framework/application/views/helpers/FooterContact.php +++ b/framework/application/views/helpers/FooterContact.php @@ -12,20 +12,22 @@ class Cubedesigners_View_Helper_FooterContact extends Zend_View_Helper_Abstract foreach ($bureaux as $id => $bureau) { - $res.='
'; + $res.='
'; - $res.='

' . $bureau['coordonnees']['nom'] . '

'; + $res.='

' . $bureau['coordonnees']['nom'] . '

'; $res.='

'; - $res.='

' . __('Tel') . ' ' . $this->view->linkPhone($bureau['coordonnees']['tel']) . '

'; - $res.='

' . __('Fax') . ' ' . $this->view->linkPhone($bureau['coordonnees']['fax']) . '

'; + $res.='

' . __('Tel') . ' ' . $this->view->linkPhone($bureau['coordonnees']['tel']) . '

'; + $res.='

' . __('Fax') . ' ' . $this->view->linkPhone($bureau['coordonnees']['fax']) . '

'; $res.='
'; - $res.='
'; + //$res.= $this->view->microdataPlace($bureau['coordonnees']['adresse']); + + $res.='
'; $res.='

' . __('Cubedesigners') . '

'; - $res.='

' . $bureau['coordonnees']['adresse'] . '

'; - $res.='

' . $bureau['coordonnees']['code_postal'] . ' ' . $bureau['coordonnees']['ville'] . '

'; - $res.='

' . Zend_Locale::getTranslation($bureau['coordonnees']['pays'], 'territory') . '

'; + $res.='

' . $bureau['coordonnees']['adresse'] . '

'; + $res.='

' . $bureau['coordonnees']['code_postal'] . ' ' . $bureau['coordonnees']['ville'] . '

'; + $res.='

' . Zend_Locale::getTranslation($bureau['coordonnees']['pays'], 'territory') . '

'; $res.='

'; $res.='
'; diff --git a/framework/application/views/helpers/FooterSocials.php b/framework/application/views/helpers/FooterSocials.php index 4df9ba2..a0c5a7a 100644 --- a/framework/application/views/helpers/FooterSocials.php +++ b/framework/application/views/helpers/FooterSocials.php @@ -10,8 +10,8 @@ class Cubedesigners_View_Helper_FooterSocials extends Zend_View_Helper_Abstract $res = '
'; foreach ($socials as $id => $social) { - $image = $this->view->imageCms($social['picto'], $social['titre'], 45, 45); - $res.=''; + $image = $this->view->imageCms($social['picto'], $social['titre'], 30, 30); + $res.=''; } $res.= '
'; diff --git a/framework/application/views/helpers/HomeBlocs.php b/framework/application/views/helpers/HomeBlocs.php index 54e1fb2..380d4c7 100644 --- a/framework/application/views/helpers/HomeBlocs.php +++ b/framework/application/views/helpers/HomeBlocs.php @@ -2,7 +2,7 @@ class Cubedesigners_View_Helper_HomeBlocs extends Zend_View_Helper_Abstract { - public function homeBlocs($blocs) { + public function homeBlocs($blocs, $type) { $blocs = $blocs['blocs']; @@ -20,16 +20,27 @@ class Cubedesigners_View_Helper_HomeBlocs extends Zend_View_Helper_Abstract { $image = $this->view->imageCms($bloc['picto'], $bloc['titre'], 120, 120); + $res .= '
'; $res.='
'; $res.= $image; - $res.= '

' . $this->view->markupDotclear($bloc['titre']) . '

'; + $res.= '

' . $bloc['titre'] . '

'; $res.= '' . $this->view->markupDotclear($bloc['texte']) . ''; $res.='
'; + $res .= '
'; $i++; } $res .= '
'; + + if ($type == "agence") { + $res .= $this->view->linkInternal(__("Découvrez l'agence"), 2); + } + + /* if ($type == "expertises") { + $res .= $this->view->linkInternal(__("Explorez nos expertises"), 5); + } */ + return $res; } diff --git a/framework/application/views/helpers/HomeSlideshow.php b/framework/application/views/helpers/HomeSlideshow.php index 9777527..771aff5 100644 --- a/framework/application/views/helpers/HomeSlideshow.php +++ b/framework/application/views/helpers/HomeSlideshow.php @@ -24,7 +24,14 @@ class Cubedesigners_View_Helper_HomeSlideshow extends Zend_View_Helper_Abstract $image = $this->view->imageProcess()->imageProcessGetUrl($slide['image'], $slide['legende'], 980, 400); - $res.='
'; + + if (!$slide['time']) { + $time = 6000; + } else { + $time = $slide['time'] * 1000; + } + + $res.='
'; } diff --git a/framework/application/views/scripts/common/footer.phtml b/framework/application/views/scripts/common/footer.phtml index 5725c9d..ef53669 100644 --- a/framework/application/views/scripts/common/footer.phtml +++ b/framework/application/views/scripts/common/footer.phtml @@ -2,50 +2,51 @@ $this->headLink()->appendStylesheet('/less/footer.less'); $mentions_page = $this->navigation()->getContainer()->findOneById($this->localeDefault() . '/7'); -//fb($mentions_page); $mentions = '/'; if (!is_null($mentions_page)) { $mentions = $mentions_page->getHref(); } ?> -