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
</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">