templates/layout/customelement_teaserbox.html5 line 7

Open in your IDE?
  1. <div class="<?php echo $this->class?> block <?php echo $this->field('schema')->value(); ?> <?php echo $this->field('image_valign')->value(); ?> <?php echo $this->field('text_valign')->value(); ?> <?php echo $this->field('text_halign')->value(); ?> <?php echo $this->field('width')->value(); ?>"<?php echo $this->cssID?><?php if ($this->style): ?> style="<?php echo $this->style?>"<?php endif; ?>>
  2.         <div class="ce_teaserbox_inside">
  3.             
  4.             <?php if($this->field('schema')->value()=="image_left"): ?>
  5.             <div class="image_wrapper">
  6.                  <div class="margins" style="<?php if($this->field('image_margin_top')->value()): ?>margin-top:<?php echo $this->field('image_margin_top')->value(); ?>%;<?php endif; ?><?php if($this->field('image_margin_right')->value()): ?>margin-right:<?php echo $this->field('image_margin_right')->value(); ?>%;<?php endif; ?><?php if($this->field('image_margin_bottom')->value()): ?>margin-bottom:<?php echo $this->field('image_margin_bottom')->value(); ?>%;<?php endif; ?><?php if($this->field('image_margin_left')->value()): ?>margin-left:<?php echo $this->field('image_margin_left')->value(); ?>%;<?php endif; ?>">
  7.                      <?php echo $this->field('image')->html(); ?>
  8.                  </div>
  9.             </div>
  10.             
  11.             <div class="text_wrapper">
  12.                 <div class="margins"  style="<?php if($this->field('text_margin_top')->value()): ?>margin-top:<?php echo $this->field('text_margin_top')->value(); ?>%;<?php endif; ?><?php if($this->field('text_margin_right')->value()): ?>margin-right:<?php echo $this->field('text_margin_right')->value(); ?>%;<?php endif; ?><?php if($this->field('text_margin_bottom')->value()): ?>margin-bottom:<?php echo $this->field('text_margin_bottom')->value(); ?>%;<?php endif; ?><?php if($this->field('text_margin_left')->value()): ?>margin-left:<?php echo $this->field('text_margin_left')->value(); ?>%;<?php endif; ?>">
  13.                      <?php echo $this->field('headline')->html(); ?>
  14.                      <?php echo $this->field('text')->html(); ?>
  15.                      <?php if($this->field('hyperlink')->value()): ?><div class="ce_hyperlink"><?php echo $this->field('hyperlink')->html(); ?></div><?php endif; ?>
  16.                 </div>
  17.             </div>
  18.             <?php endif; ?>
  19.             
  20.             <?php if($this->field('schema')->value()=="image_right"): ?>
  21.             <div class="text_wrapper">
  22.                 <div class="margins"  style="<?php if($this->field('text_margin_top')->value()): ?>margin-top:<?php echo $this->field('text_margin_top')->value(); ?>%;<?php endif; ?><?php if($this->field('text_margin_right')->value()): ?>margin-right:<?php echo $this->field('text_margin_right')->value(); ?>%;<?php endif; ?><?php if($this->field('text_margin_bottom')->value()): ?>margin-bottom:<?php echo $this->field('text_margin_bottom')->value(); ?>%;<?php endif; ?><?php if($this->field('text_margin_left')->value()): ?>margin-left:<?php echo $this->field('text_margin_left')->value(); ?>%;<?php endif; ?>">
  23.                      <?php echo $this->field('headline')->html(); ?>
  24.                      <?php echo $this->field('text')->html(); ?>
  25.                      <?php if($this->field('hyperlink')->value()): ?><div class="ce_hyperlink"><?php echo $this->field('hyperlink')->html(); ?></div><?php endif; ?>
  26.                 </div>
  27.             </div>
  28.             
  29.             <div class="image_wrapper">
  30.                  <div class="margins" style="<?php if($this->field('image_margin_top')->value()): ?>margin-top:<?php echo $this->field('image_margin_top')->value(); ?>%;<?php endif; ?><?php if($this->field('image_margin_right')->value()): ?>margin-right:<?php echo $this->field('image_margin_right')->value(); ?>%;<?php endif; ?><?php if($this->field('image_margin_bottom')->value()): ?>margin-bottom:<?php echo $this->field('image_margin_bottom')->value(); ?>%;<?php endif; ?><?php if($this->field('image_margin_left')->value()): ?>margin-left:<?php echo $this->field('image_margin_left')->value(); ?>%;<?php endif; ?>">
  31.                      <?php echo $this->field('image')->html(); ?>
  32.                  </div>
  33.             </div>
  34.             <?php endif; ?>
  35.             
  36.         </div>
  37. </div>