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,16 +0,0 @@
1
-
2
-<div class="<?= $this->prefix; ?><?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
3
-  <?php $this->block('label'); ?>
4
-  <?php $this->endblock(); ?>
5
-
6
-  <?php $this->block('field'); ?>
7
-  <?php $this->endblock(); ?>
8
-</div>
9
-
10
-<div class="<?= $this->prefix; ?> confirm<?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
11
-  <?php $this->block('label2'); ?>
12
-  <?php $this->endblock(); ?>
13
-
14
-  <?php $this->block('field2'); ?>
15
-  <?php $this->endblock(); ?>
16
-</div>
Browse code

Alter row templates to new Contao 4.4 format

Benjamin Roth authored on06/07/2017 20:27:03
Showing1 changed files
... ...
@@ -1,47 +1,16 @@
1 1
 
2
-<?php if ($this->tableless): ?>
2
+<div class="<?= $this->prefix; ?><?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
3
+  <?php $this->block('label'); ?>
4
+  <?php $this->endblock(); ?>
3 5
 
4
-  <div class="<?= $this->prefix; ?><?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
5
-    <?php $this->block('label'); ?>
6
-    <?php $this->endblock(); ?>
6
+  <?php $this->block('field'); ?>
7
+  <?php $this->endblock(); ?>
8
+</div>
7 9
 
8
-    <?php $this->block('field'); ?>
9
-    <?php $this->endblock(); ?>
10
-  </div>
10
+<div class="<?= $this->prefix; ?> confirm<?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
11
+  <?php $this->block('label2'); ?>
12
+  <?php $this->endblock(); ?>
11 13
 
12
-  <div class="<?= $this->prefix; ?> confirm<?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
13
-    <?php $this->block('label2'); ?>
14
-    <?php $this->endblock(); ?>
15
-
16
-    <?php $this->block('field2'); ?>
17
-    <?php $this->endblock(); ?>
18
-  </div>
19
-
20
-<?php else: ?>
21
-
22
-  <tr class="<?= $this->rowClass; ?>">
23
-    <td class="col_0 col_first">
24
-      <?php $this->block('label'); ?>
25
-      &nbsp;
26
-      <?php $this->endblock(); ?>
27
-    </td>
28
-    <td class="col_1 col_last">
29
-      <?php $this->block('field'); ?>
30
-      &nbsp;
31
-      <?php $this->endblock(); ?>
32
-    </td>
33
-  </tr>
34
-  <tr class="<?= $this->rowClassConfirm; ?>">
35
-    <td class="col_0 col_first">
36
-      <?php $this->block('label2'); ?>
37
-      &nbsp;
38
-      <?php $this->endblock(); ?>
39
-    </td>
40
-    <td class="col_1 col_last">
41
-      <?php $this->block('field2'); ?>
42
-      &nbsp;
43
-      <?php $this->endblock(); ?>
44
-    </td>
45
-  </tr>
46
-
47
-<?php endif; ?>
14
+  <?php $this->block('field2'); ?>
15
+  <?php $this->endblock(); ?>
16
+</div>
Browse code

Formilicioulize form_row_double template

Benjamin Roth authored on01/09/2016 14:05:20
Showing1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 
2 2
 <?php if ($this->tableless): ?>
3 3
 
4
-  <div class="<?= $this->prefix; ?><?php if ($this->class) echo ' ' . $this->class; ?>">
4
+  <div class="<?= $this->prefix; ?><?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
5 5
     <?php $this->block('label'); ?>
6 6
     <?php $this->endblock(); ?>
7 7
 
... ...
@@ -9,7 +9,7 @@
9 9
     <?php $this->endblock(); ?>
10 10
   </div>
11 11
 
12
-  <div class="<?= $this->prefix; ?> confirm<?php if ($this->class) echo ' ' . $this->class; ?>">
12
+  <div class="<?= $this->prefix; ?> confirm<?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>">
13 13
     <?php $this->block('label2'); ?>
14 14
     <?php $this->endblock(); ?>
15 15
 
... ...
@@ -22,24 +22,24 @@
22 22
   <tr class="<?= $this->rowClass; ?>">
23 23
     <td class="col_0 col_first">
24 24
       <?php $this->block('label'); ?>
25
-        &nbsp;
25
+      &nbsp;
26 26
       <?php $this->endblock(); ?>
27 27
     </td>
28 28
     <td class="col_1 col_last">
29 29
       <?php $this->block('field'); ?>
30
-        &nbsp;
30
+      &nbsp;
31 31
       <?php $this->endblock(); ?>
32 32
     </td>
33 33
   </tr>
34 34
   <tr class="<?= $this->rowClassConfirm; ?>">
35 35
     <td class="col_0 col_first">
36 36
       <?php $this->block('label2'); ?>
37
-        &nbsp;
37
+      &nbsp;
38 38
       <?php $this->endblock(); ?>
39 39
     </td>
40 40
     <td class="col_1 col_last">
41 41
       <?php $this->block('field2'); ?>
42
-        &nbsp;
42
+      &nbsp;
43 43
       <?php $this->endblock(); ?>
44 44
     </td>
45 45
   </tr>
Browse code

Templates now use php short open tags

Benjamin Roth authored on17/08/2015 17:19:47
Showing1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 
2 2
 <?php if ($this->tableless): ?>
3 3
 
4
-  <div class="<?php echo $this->prefix; ?><?php if ($this->class) echo ' ' . $this->class; ?>">
4
+  <div class="<?= $this->prefix; ?><?php if ($this->class) echo ' ' . $this->class; ?>">
5 5
     <?php $this->block('label'); ?>
6 6
     <?php $this->endblock(); ?>
7 7
 
... ...
@@ -9,7 +9,7 @@
9 9
     <?php $this->endblock(); ?>
10 10
   </div>
11 11
 
12
-  <div class="<?php echo $this->prefix; ?> confirm<?php if ($this->class) echo ' ' . $this->class; ?>">
12
+  <div class="<?= $this->prefix; ?> confirm<?php if ($this->class) echo ' ' . $this->class; ?>">
13 13
     <?php $this->block('label2'); ?>
14 14
     <?php $this->endblock(); ?>
15 15
 
... ...
@@ -19,7 +19,7 @@
19 19
 
20 20
 <?php else: ?>
21 21
 
22
-  <tr class="<?php echo $this->rowClass; ?>">
22
+  <tr class="<?= $this->rowClass; ?>">
23 23
     <td class="col_0 col_first">
24 24
       <?php $this->block('label'); ?>
25 25
         &nbsp;
... ...
@@ -31,7 +31,7 @@
31 31
       <?php $this->endblock(); ?>
32 32
     </td>
33 33
   </tr>
34
-  <tr class="<?php echo $this->rowClassConfirm; ?>">
34
+  <tr class="<?= $this->rowClassConfirm; ?>">
35 35
     <td class="col_0 col_first">
36 36
       <?php $this->block('label2'); ?>
37 37
         &nbsp;
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,47 @@
1
+
2
+<?php if ($this->tableless): ?>
3
+
4
+  <div class="<?php echo $this->prefix; ?><?php if ($this->class) echo ' ' . $this->class; ?>">
5
+    <?php $this->block('label'); ?>
6
+    <?php $this->endblock(); ?>
7
+
8
+    <?php $this->block('field'); ?>
9
+    <?php $this->endblock(); ?>
10
+  </div>
11
+
12
+  <div class="<?php echo $this->prefix; ?> confirm<?php if ($this->class) echo ' ' . $this->class; ?>">
13
+    <?php $this->block('label2'); ?>
14
+    <?php $this->endblock(); ?>
15
+
16
+    <?php $this->block('field2'); ?>
17
+    <?php $this->endblock(); ?>
18
+  </div>
19
+
20
+<?php else: ?>
21
+
22
+  <tr class="<?php echo $this->rowClass; ?>">
23
+    <td class="col_0 col_first">
24
+      <?php $this->block('label'); ?>
25
+        &nbsp;
26
+      <?php $this->endblock(); ?>
27
+    </td>
28
+    <td class="col_1 col_last">
29
+      <?php $this->block('field'); ?>
30
+        &nbsp;
31
+      <?php $this->endblock(); ?>
32
+    </td>
33
+  </tr>
34
+  <tr class="<?php echo $this->rowClassConfirm; ?>">
35
+    <td class="col_0 col_first">
36
+      <?php $this->block('label2'); ?>
37
+        &nbsp;
38
+      <?php $this->endblock(); ?>
39
+    </td>
40
+    <td class="col_1 col_last">
41
+      <?php $this->block('field2'); ?>
42
+        &nbsp;
43
+      <?php $this->endblock(); ?>
44
+    </td>
45
+  </tr>
46
+
47
+<?php endif; ?>