Browse code

Templates now use php short open tags

Benjamin Roth authored on17/08/2015 17:19:47
Showing1 changed files
... ...
@@ -2,22 +2,22 @@
2 2
 
3 3
 <?php $this->block('field'); ?>
4 4
   <?php if ($this->hasErrors()): ?>
5
-  <span class="errortip" title="<?php echo htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
5
+  <span class="errortip" title="<?= htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
6 6
   <?php endif; ?>
7
-  <fieldset id="ctrl_<?php echo $this->id; ?>" class="radio_container<?php if ($this->class) echo ' ' . $this->class; ?>">
7
+  <fieldset id="ctrl_<?= $this->id; ?>" class="radio_container<?php if ($this->class) echo ' ' . $this->class; ?>">
8 8
 
9 9
     <?php if ($this->label): ?>
10 10
       <legend>
11 11
         <?php if ($this->mandatory): ?>
12
-          <span class="invisible"><?php echo $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
12
+          <span class="invisible"><?= $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
13 13
         <?php else: ?>
14
-          <?php echo $this->label; ?>
14
+          <?= $this->label; ?>
15 15
         <?php endif; ?>
16 16
       </legend>
17 17
     <?php endif; ?>
18 18
 
19 19
     <?php foreach ($this->getOptions() as $option): ?>
20
-      <span><input type="radio" name="<?php echo $option['name']; ?>" id="opt_<?php echo $option['id']; ?>" class="radio" value="<?php echo $option['value']; ?>"<?php echo $option['checked']; ?><?php echo $option['attributes']; ?>> <label id="lbl_<?php echo $option['id']; ?>" for="opt_<?php echo $option['id']; ?>"><?php echo $option['label']; ?></label></span>
20
+      <span><input type="radio" name="<?= $option['name']; ?>" id="opt_<?php echo $option['id']; ?>" class="radio" value="<?php echo $option['value']; ?>"<?php echo $option['checked']; ?><?php echo $option['attributes']; ?>> <label id="lbl_<?php echo $option['id']; ?>" for="opt_<?php echo $option['id']; ?>"><?php echo $option['label']; ?></label></span>
21 21
     <?php endforeach; ?>
22 22
 
23 23
   </fieldset>
Browse code

Initial commit

Benjamin Roth authored on27/03/2015 10:45:40
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,24 @@
1
+<?php $this->extend('form_row'); ?>
2
+
3
+<?php $this->block('field'); ?>
4
+  <?php if ($this->hasErrors()): ?>
5
+  <span class="errortip" title="<?php echo htmlspecialchars($this->getErrorsAsString()); ?>" data-tooltip="position: top; offsetY: 10; theme: tooltipster-error; contentAsHTML: true;">?</span>
6
+  <?php endif; ?>
7
+  <fieldset id="ctrl_<?php echo $this->id; ?>" class="radio_container<?php if ($this->class) echo ' ' . $this->class; ?>">
8
+
9
+    <?php if ($this->label): ?>
10
+      <legend>
11
+        <?php if ($this->mandatory): ?>
12
+          <span class="invisible"><?php echo $this->mandatoryField; ?></span> <?php echo $this->label; ?><span class="mandatory">*</span>
13
+        <?php else: ?>
14
+          <?php echo $this->label; ?>
15
+        <?php endif; ?>
16
+      </legend>
17
+    <?php endif; ?>
18
+
19
+    <?php foreach ($this->getOptions() as $option): ?>
20
+      <span><input type="radio" name="<?php echo $option['name']; ?>" id="opt_<?php echo $option['id']; ?>" class="radio" value="<?php echo $option['value']; ?>"<?php echo $option['checked']; ?><?php echo $option['attributes']; ?>> <label id="lbl_<?php echo $option['id']; ?>" for="opt_<?php echo $option['id']; ?>"><?php echo $option['label']; ?></label></span>
21
+    <?php endforeach; ?>
22
+
23
+  </fieldset>
24
+<?php $this->endblock(); ?>