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,8 +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>
Browse code

Alter row templates to new Contao 4.4 format

Benjamin Roth authored on06/07/2017 20:27:03
Showing1 changed files
... ...
@@ -1,34 +1,8 @@
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(); ?>
7
-
8
-    <?php $this->block('field'); ?>
9
-    <?php $this->endblock(); ?>
10
-
11
-    <?php if ($this->addSubmit): ?>
12
-      <?php $this->insert('_form_addsubmit', array('id'=>$this->id,'slabel'=>$this->slabel)); ?>
13
-    <?php endif; ?>
14
-  </div>
15
-
16
-<?php else: ?>
17
-
18
-  <tr class="<?= $this->rowClass; ?>">
19
-    <td class="col_0 col_first">
20
-      <?php $this->block('label'); ?>
21
-        &nbsp;
22
-      <?php $this->endblock(); ?>
23
-    </td>
24
-    <td class="col_1 col_last">
25
-      <?php $this->block('field'); ?>
26
-        &nbsp;
27
-      <?php $this->endblock(); ?>
28
-      <?php if ($this->addSubmit): ?>
29
-        <?php $this->insert('_form_addsubmit', array('id'=>$this->id,'slabel'=>$this->slabel)); ?>
30
-      <?php endif; ?>
31
-    </td>
32
-  </tr>
33
-
34
-<?php endif; ?>
6
+  <?php $this->block('field'); ?>
7
+  <?php $this->endblock(); ?>
8
+</div>
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; ?><?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; ?>">
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
 
... ...
@@ -15,7 +15,7 @@
15 15
 
16 16
 <?php else: ?>
17 17
 
18
-  <tr class="<?php echo $this->rowClass; ?>">
18
+  <tr class="<?= $this->rowClass; ?>">
19 19
     <td class="col_0 col_first">
20 20
       <?php $this->block('label'); ?>
21 21
         &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,34 @@
1
+
2
+<?php if ($this->tableless): ?>
3
+
4
+  <div class="<?php echo $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(); ?>
7
+
8
+    <?php $this->block('field'); ?>
9
+    <?php $this->endblock(); ?>
10
+
11
+    <?php if ($this->addSubmit): ?>
12
+      <?php $this->insert('_form_addsubmit', array('id'=>$this->id,'slabel'=>$this->slabel)); ?>
13
+    <?php endif; ?>
14
+  </div>
15
+
16
+<?php else: ?>
17
+
18
+  <tr class="<?php echo $this->rowClass; ?>">
19
+    <td class="col_0 col_first">
20
+      <?php $this->block('label'); ?>
21
+        &nbsp;
22
+      <?php $this->endblock(); ?>
23
+    </td>
24
+    <td class="col_1 col_last">
25
+      <?php $this->block('field'); ?>
26
+        &nbsp;
27
+      <?php $this->endblock(); ?>
28
+      <?php if ($this->addSubmit): ?>
29
+        <?php $this->insert('_form_addsubmit', array('id'=>$this->id,'slabel'=>$this->slabel)); ?>
30
+      <?php endif; ?>
31
+    </td>
32
+  </tr>
33
+
34
+<?php endif; ?>