From aa80a24d5bcd3f3ddc8b14bfd6e39b1cdc073ecc Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 19 Sep 2016 15:44:41 +0000 Subject: [PATCH] wip #683 #0.75 --- framework/application/forms/CMS/Sub/About.php | 74 ++++++++++--------- framework/application/forms/CMS/Sub/Teams.php | 6 ++ .../views/scripts/home/about.phtml | 44 ++++++----- less/about.less | 6 +- 4 files changed, 79 insertions(+), 51 deletions(-) create mode 100644 framework/application/forms/CMS/Sub/Teams.php diff --git a/framework/application/forms/CMS/Sub/About.php b/framework/application/forms/CMS/Sub/About.php index 98ea443..1a6d29b 100644 --- a/framework/application/forms/CMS/Sub/About.php +++ b/framework/application/forms/CMS/Sub/About.php @@ -2,37 +2,45 @@ class Simeox_Form_CMS_Sub_About extends Simeox_Form_CMS_Sub_Section { - public function init() { - parent::init(); - - $heading = new Zend_Form_Element_Textarea('heading'); - $heading->setAttrib('rows', 2); - $heading->setLabel('Titre'); - $this->addElement($heading); - - $subheading = new Zend_Form_Element_Textarea('subheading'); - $subheading->setAttrib('rows', 2); - $subheading->setLabel('Sous-titre'); - $this->addElement($subheading); - - $content = new Simeox_Form_Element_Markitup('content'); - $content->setLabel('Contenus'); - $this->addElement($content); - - $bg_image = new CubeIT_Form_Element_File_Image('bg_image'); - $bg_image->setLabel("Image d'arrière-plan"); - $bg_image->setMaxItems(1); - $this->addElement($bg_image); - - // Team members - $team = new Simeox_Form_CMS_Sub_Team(); - $team->setLegend("Bloc 'L'équipe'"); - $this->addSubForm($team, 'team'); - - // Partners - $partners = new Simeox_Form_CMS_Sub_Partners(); - $partners->setLegend("Bloc 'Les Partenaires'"); - $this->addSubForm($partners, 'partners'); - - } + public function init() { + parent::init(); + + $heading = new Zend_Form_Element_Textarea('heading'); + $heading->setAttrib('rows', 2); + $heading->setLabel('Titre'); + $this->addElement($heading); + + $subheading = new Zend_Form_Element_Textarea('subheading'); + $subheading->setAttrib('rows', 2); + $subheading->setLabel('Sous-titre'); + $this->addElement($subheading); + + $content = new Simeox_Form_Element_Markitup('content'); + $content->setLabel('Contenus'); + $this->addElement($content); + + $bg_image = new CubeIT_Form_Element_File_Image('bg_image'); + $bg_image->setLabel("Image d'arrière-plan"); + $bg_image->setMaxItems(1); + $this->addElement($bg_image); + + // Team members + $team = new Simeox_Form_CMS_Sub_Team(); + $team->setLegend("Bloc 'L'équipe' #1"); + $this->addSubForm($team, 'team'); + + $team = new Simeox_Form_CMS_Sub_Team(); + $team->setLegend("Bloc 'L'équipe' #2"); + $this->addSubForm($team, 'team2'); + + $team = new Simeox_Form_CMS_Sub_Team(); + $team->setLegend("Bloc 'L'équipe' #3"); + $this->addSubForm($team, 'team3'); + + // Partners + $partners = new Simeox_Form_CMS_Sub_Partners(); + $partners->setLegend("Bloc 'Les Partenaires'"); + $this->addSubForm($partners, 'partners'); + + } } \ No newline at end of file diff --git a/framework/application/forms/CMS/Sub/Teams.php b/framework/application/forms/CMS/Sub/Teams.php new file mode 100644 index 0000000..6fa3922 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Teams.php @@ -0,0 +1,6 @@ +headScript()->addTooltip(false); - -
- -
-

- -
- -
- imageProcess($person['photo'], $person['name'], 110, 110, array(), 'C', 'C', 'M', false, 'auto', 'transparent'); ?> -
-
- markupDotclear($person['bio'], array(), array('class' => 'bio')); ?> -
- + +
+ +
+

+ +
+ +
+ imageProcess($person['photo'], $person['name'], 110, 110, array(), 'C', 'C', 'M', false, 'auto', 'transparent'); ?> +
+
+ markupDotclear($person['bio'], array(), array('class' => 'bio')); ?> +
+ +
-
-
+ + + + +
diff --git a/less/about.less b/less/about.less index b58b93f..4d1dbac 100644 --- a/less/about.less +++ b/less/about.less @@ -37,7 +37,6 @@ color: #fff; } - .person { &:extend(.media); padding-top: 60px; @@ -53,6 +52,11 @@ &:nth-of-type(even) { padding-left: 40px; } + + a { + color: #fff; + text-decoration: underline; + } } .name { font-weight: 600; -- 2.39.5