Browse code

First iteration of revamped formilicious for Contao 4.13+

Benjamin Roth authored on20/01/2023 09:49:23
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,30 +0,0 @@
1
-
2
-<!-- indexer::stop -->
3
-<div class="<?= $this->class; ?> <?php echo $this->tableless ? 'tableless' : 'tableform'; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
4
-
5
-  <?php if ($this->headline): ?>
6
-    <<?= $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
7
-  <?php endif; ?>
8
-
9
-  <form<?php if ($this->action): ?> action="<?= $this->action; ?>"<?php endif; ?> id="<?php echo $this->formId; ?>" method="<?php echo $this->method; ?>" enctype="<?php echo $this->enctype; ?>"<?php echo $this->attributes; ?><?php echo $this->novalidate; ?>>
10
-    <div class="formbody">
11
-      <?php if ($this->method != 'get'): ?>
12
-        <input type="hidden" name="FORM_SUBMIT" value="<?= $this->formSubmit; ?>">
13
-        <input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
14
-        <?php if ($this->maxFileSize): ?>
15
-          <input type="hidden" name="MAX_FILE_SIZE" value="<?= $this->maxFileSize; ?>">
16
-        <?php endif; ?>
17
-      <?php endif; ?>
18
-      <?= $this->hidden; ?>
19
-      <?php if (!$this->tableless): ?>
20
-        <table>
21
-          <?= $this->fields; ?>
22
-        </table>
23
-      <?php else: ?>
24
-        <?= $this->fields; ?>
25
-      <?php endif; ?>
26
-    </div>
27
-  </form>
28
-
29
-</div>
30
-<!-- indexer::continue -->
Browse code

Templates now use php short open tags

Benjamin Roth authored on17/08/2015 17:19:47
Showing1 changed files
... ...
@@ -1,27 +1,27 @@
1 1
 
2 2
 <!-- indexer::stop -->
3
-<div class="<?php echo $this->class; ?> <?php echo $this->tableless ? 'tableless' : 'tableform'; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
3
+<div class="<?= $this->class; ?> <?php echo $this->tableless ? 'tableless' : 'tableform'; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
4 4
 
5 5
   <?php if ($this->headline): ?>
6
-    <<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
6
+    <<?= $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
7 7
   <?php endif; ?>
8 8
 
9
-  <form<?php if ($this->action): ?> action="<?php echo $this->action; ?>"<?php endif; ?> id="<?php echo $this->formId; ?>" method="<?php echo $this->method; ?>" enctype="<?php echo $this->enctype; ?>"<?php echo $this->attributes; ?><?php echo $this->novalidate; ?>>
9
+  <form<?php if ($this->action): ?> action="<?= $this->action; ?>"<?php endif; ?> id="<?php echo $this->formId; ?>" method="<?php echo $this->method; ?>" enctype="<?php echo $this->enctype; ?>"<?php echo $this->attributes; ?><?php echo $this->novalidate; ?>>
10 10
     <div class="formbody">
11 11
       <?php if ($this->method != 'get'): ?>
12
-        <input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->formSubmit; ?>">
12
+        <input type="hidden" name="FORM_SUBMIT" value="<?= $this->formSubmit; ?>">
13 13
         <input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
14 14
         <?php if ($this->maxFileSize): ?>
15
-          <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $this->maxFileSize; ?>">
15
+          <input type="hidden" name="MAX_FILE_SIZE" value="<?= $this->maxFileSize; ?>">
16 16
         <?php endif; ?>
17 17
       <?php endif; ?>
18
-      <?php echo $this->hidden; ?>
18
+      <?= $this->hidden; ?>
19 19
       <?php if (!$this->tableless): ?>
20 20
         <table>
21
-          <?php echo $this->fields; ?>
21
+          <?= $this->fields; ?>
22 22
         </table>
23 23
       <?php else: ?>
24
-        <?php echo $this->fields; ?>
24
+        <?= $this->fields; ?>
25 25
       <?php endif; ?>
26 26
     </div>
27 27
   </form>
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,30 @@
1
+
2
+<!-- indexer::stop -->
3
+<div class="<?php echo $this->class; ?> <?php echo $this->tableless ? 'tableless' : 'tableform'; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
4
+
5
+  <?php if ($this->headline): ?>
6
+    <<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
7
+  <?php endif; ?>
8
+
9
+  <form<?php if ($this->action): ?> action="<?php echo $this->action; ?>"<?php endif; ?> id="<?php echo $this->formId; ?>" method="<?php echo $this->method; ?>" enctype="<?php echo $this->enctype; ?>"<?php echo $this->attributes; ?><?php echo $this->novalidate; ?>>
10
+    <div class="formbody">
11
+      <?php if ($this->method != 'get'): ?>
12
+        <input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->formSubmit; ?>">
13
+        <input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}">
14
+        <?php if ($this->maxFileSize): ?>
15
+          <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $this->maxFileSize; ?>">
16
+        <?php endif; ?>
17
+      <?php endif; ?>
18
+      <?php echo $this->hidden; ?>
19
+      <?php if (!$this->tableless): ?>
20
+        <table>
21
+          <?php echo $this->fields; ?>
22
+        </table>
23
+      <?php else: ?>
24
+        <?php echo $this->fields; ?>
25
+      <?php endif; ?>
26
+    </div>
27
+  </form>
28
+
29
+</div>
30
+<!-- indexer::continue -->