From 0e46ef8b7c3a2277aff5709bde0a91f8a2c4a580 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 14 Oct 2013 13:13:46 +0000 Subject: [PATCH] --- framework/application/Bootstrap.php | 3 +- .../application/forms/CMS/Sub/Sidebar.php | 5 +++ .../application/views/helpers/Rightbar.php | 9 ++-- images/centre.svg | 22 +++++----- images/parcours.svg | 8 ++-- images/pathologies.svg | 18 ++++---- less/common.less | 23 ++++++++-- less/rightbar.less | 44 +++++++++++-------- less/sidebar.less | 1 + 9 files changed, 82 insertions(+), 51 deletions(-) diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 4c8923f..bd0c4af 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -10,8 +10,9 @@ class Bootstrap extends CubeIT_Bootstrap { } protected function _initScripts() { - parent::_initScripts(); $view = $this->getView(); + $this->view->headScript()->addTooltip(); + parent::_initScripts(); $view->headMeta()->setViewport(1024); $view->headScript()->addWebFont(array('google' => array('families' => array('Ubuntu:500italic,300,300italic,500,400italic')))); } diff --git a/framework/application/forms/CMS/Sub/Sidebar.php b/framework/application/forms/CMS/Sub/Sidebar.php index d43f344..8399358 100644 --- a/framework/application/forms/CMS/Sub/Sidebar.php +++ b/framework/application/forms/CMS/Sub/Sidebar.php @@ -14,6 +14,11 @@ class CCGM_Form_CMS_Sub_Sidebar extends CubeIT_Form_SubForm { $contenu->setLabel('Bloc de texte'); $contenu->setAttrib('rows', 6); $this->addElement($contenu); + + $contenu = new CCGM_Form_Element_Markitup_Essential('text2'); + $contenu->setLabel('Bloc de texte #2'); + $contenu->setAttrib('rows', 6); + $this->addElement($contenu); } } diff --git a/framework/application/views/helpers/Rightbar.php b/framework/application/views/helpers/Rightbar.php index 3746145..0239cf9 100644 --- a/framework/application/views/helpers/Rightbar.php +++ b/framework/application/views/helpers/Rightbar.php @@ -8,17 +8,20 @@ class CCGM_View_Helper_Rightbar extends Zend_View_Helper_Abstract { } $s = $this->view->sidebar; - if (trim($s['text']) == '' && !count($s['image'])) { + if (trim($s['text']) == '' && trim($s['text2']) == '' && !count($s['image'])) { return; } - + $this->view->headScript()->addScriptAndStyle('rightbar'); - $res='