]> _ Git - physioassist.git/commitdiff
wip #683 #0.75
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 19 Sep 2016 15:44:41 +0000 (15:44 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 19 Sep 2016 15:44:41 +0000 (15:44 +0000)
framework/application/forms/CMS/Sub/About.php
framework/application/forms/CMS/Sub/Teams.php [new file with mode: 0644]
framework/application/views/scripts/home/about.phtml
less/about.less

index 98ea443d16d7e485ae178882b874c82db7093811..1a6d29beb4e50d8d8bde7d3f3f5b6caf2119406b 100644 (file)
@@ -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 (file)
index 0000000..6fa3922
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+
+
+class Teams {
+
+}
\ No newline at end of file
index a9f458020587e0261b75da807f3810665fec51d2..e73badcbcc3fea30f420cbd2ea23bcaefd6cd92e 100644 (file)
@@ -14,24 +14,34 @@ $this->headScript()->addTooltip(false);
                </div>
        </article>
 
-       <?php $t = $a['team']; ?>
-       <article class="team" style="background-image: url(<?php echo CubeIT_View_Helper_ImageCms::getPath($t['bg_image']); ?>);">
-
-               <div class="content">
-                       <h1><?php echo $t['heading']; ?></h1>
-
-                       <div class="people">
-                               <?php foreach ($t['people'] as $person): ?>
-                                       <div class="person col">
-                                               <?php echo $this->imageProcess($person['photo'], $person['name'], 110, 110, array(), 'C', 'C', 'M', false, 'auto', 'transparent'); ?>
-                                               <div class="name"><?php echo $person['name']; ?></div>
-                                               <div class="position"><?php echo $person['position']; ?></div>
-                                               <?php echo $this->markupDotclear($person['bio'], array(), array('class' => 'bio')); ?>
-                                       </div>
-                               <?php endforeach; ?>
+       <?php
+       $teams = array('team', 'team2', 'team3');
+       foreach ($teams as $k):
+               $t = $a[$k];
+               ?>
+               <article class="team" style="background-image: url(<?php echo CubeIT_View_Helper_ImageCms::getPath($t['bg_image']); ?>);">
+
+                       <div class="content">
+                               <h1><?php echo $t['heading']; ?></h1>
+
+                               <div class="people">
+                                       <?php foreach ($t['people'] as $person): ?>
+                                               <div class="person col">
+                                                       <?php echo $this->imageProcess($person['photo'], $person['name'], 110, 110, array(), 'C', 'C', 'M', false, 'auto', 'transparent'); ?>
+                                                       <div class="name"><?php echo $person['name']; ?></div>
+                                                       <div class="position"><?php echo $person['position']; ?></div>
+                                                       <?php echo $this->markupDotclear($person['bio'], array(), array('class' => 'bio')); ?>
+                                               </div>
+                                       <?php endforeach; ?>
+                               </div>
                        </div>
-               </div>
-       </article>
+               </article>
+
+               <?php
+       endforeach;
+       ?>
+
+
 
        <?php $p = $a['partners']; ?>
        <article class="partners">
index b58b93fb49e69a666efabbb31e134579b81749fa..4d1dbac0191b42b46017caec87729edce24bf40c 100644 (file)
@@ -37,7 +37,6 @@
                color: #fff;
        }
 
-
        .person {
                &:extend(.media);
                padding-top: 60px;
                &:nth-of-type(even) {
                        padding-left: 40px;
                }
+
+               a {
+                       color: #fff;
+                       text-decoration: underline;
+               }
        }
        .name {
                font-weight: 600;