Browse code

Templates now use php short open tags

Benjamin Roth authored on17/08/2015 17:19:47
Showing1 changed files
... ...
@@ -1,4 +1,4 @@
1
-<?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->charset; ?>" standalone="yes" ?>
1
+<?= '<?'; ?>xml version="1.0" encoding="<?php echo $this->charset; ?>" standalone="yes" ?>
2 2
 <!DOCTYPE form [
3 3
   <!ELEMENT form (field)+>
4 4
   <!ELEMENT field (name, value+)>
... ...
@@ -8,9 +8,9 @@
8 8
 <form>
9 9
   <?php foreach ($this->fields as $field): ?>
10 10
     <field>
11
-      <name><?php echo $field['name']; ?></name>
11
+      <name><?= $field['name']; ?></name>
12 12
       <?php foreach ($field['values'] as $value): ?>
13
-        <value><?php echo $value; ?></value>
13
+        <value><?= $value; ?></value>
14 14
       <?php endforeach; ?>
15 15
     </field>
16 16
   <?php endforeach; ?>
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,17 @@
1
+<?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->charset; ?>" standalone="yes" ?>
2
+<!DOCTYPE form [
3
+  <!ELEMENT form (field)+>
4
+  <!ELEMENT field (name, value+)>
5
+  <!ELEMENT name (#PCDATA)>
6
+  <!ELEMENT value (#PCDATA)>
7
+]>
8
+<form>
9
+  <?php foreach ($this->fields as $field): ?>
10
+    <field>
11
+      <name><?php echo $field['name']; ?></name>
12
+      <?php foreach ($field['values'] as $value): ?>
13
+        <value><?php echo $value; ?></value>
14
+      <?php endforeach; ?>
15
+    </field>
16
+  <?php endforeach; ?>
17
+</form>
0 18
\ No newline at end of file