From c7cc710498edf7bd378582b45338f76663bf0a6b Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 29 Nov 2017 17:36:01 +0000 Subject: [PATCH] wip #1785 @0.5 --- framework/application/Bootstrap.php | 1 + framework/application/forms/CMS/News.php | 18 ++++++++++++++++++ .../views/scripts/templates/news.phtml | 11 +++++++++++ 3 files changed, 30 insertions(+) create mode 100644 framework/application/forms/CMS/News.php create mode 100644 framework/application/views/scripts/templates/news.phtml diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 5cc08ac..ef86a1d 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -68,6 +68,7 @@ class Bootstrap extends CubeIT_Bootstrap { $templates['Recherche clinique'] = array('listing' => 'Listing'); $templates['Parcours patient'] = array('parcours' => 'Parcours', 'soins' => 'Soins support'); $templates['Traitements'] = array('traitement' => 'Traitement (Texte avec accordéon)'); + $templates['Actualités'] = array('news' => 'Actualités'); $templates['Infos pratiques'] = array('plan' => 'Plan du centre', 'acces' => 'Plan d\'accès', 'rendezvous' => 'Demande de rendez-vous'); diff --git a/framework/application/forms/CMS/News.php b/framework/application/forms/CMS/News.php new file mode 100644 index 0000000..ba48622 --- /dev/null +++ b/framework/application/forms/CMS/News.php @@ -0,0 +1,18 @@ +setLabel('Texte d\'introduction'); + $contenus->setAttrib('rows', 5); + $this->addElement($contenus); + + $news = new CCGM_Form_CMS_Element_News('news_items'); + $news->setLabel('Actualités'); + $this->addElement($news); + + $this->removeElement('sidebar'); + } +} \ No newline at end of file diff --git a/framework/application/views/scripts/templates/news.phtml b/framework/application/views/scripts/templates/news.phtml new file mode 100644 index 0000000..14fcde2 --- /dev/null +++ b/framework/application/views/scripts/templates/news.phtml @@ -0,0 +1,11 @@ +contentWidth = 980; +?> + +
+
+ markupDotclear($this->text); + ?> +
+
\ No newline at end of file -- 2.39.5