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,14 +0,0 @@
1
-
2
-<?php if ($this->tableless): ?>
3
-
4
-  <div class="<?= $this->prefix; ?> explanation<?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?>">
5
-    <?= $this->generate(); ?>
6
-  </div>
7
-
8
-<?php else: ?>
9
-
10
-  <tr class="<?= $this->rowClass; ?>">
11
-    <td colspan="2" class="colspan explanation"><?= $this->generate(); ?></td>
12
-  </tr>
13
-
14
-<?php endif; ?>
Browse code

Templates now use php short open tags

Benjamin Roth authored on17/08/2015 17:19:47
Showing1 changed files
... ...
@@ -1,14 +1,14 @@
1 1
 
2 2
 <?php if ($this->tableless): ?>
3 3
 
4
-  <div class="<?php echo $this->prefix; ?> explanation<?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?>">
5
-    <?php echo $this->generate(); ?>
4
+  <div class="<?= $this->prefix; ?> explanation<?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?>">
5
+    <?= $this->generate(); ?>
6 6
   </div>
7 7
 
8 8
 <?php else: ?>
9 9
 
10
-  <tr class="<?php echo $this->rowClass; ?>">
11
-    <td colspan="2" class="colspan explanation"><?php echo $this->generate(); ?></td>
10
+  <tr class="<?= $this->rowClass; ?>">
11
+    <td colspan="2" class="colspan explanation"><?= $this->generate(); ?></td>
12 12
   </tr>
13 13
 
14 14
 <?php endif; ?>
Browse code

Don't use formilicious custom class on non form elements

Benjamin Roth authored on17/08/2015 17:09:24
Showing1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 
2 2
 <?php if ($this->tableless): ?>
3 3
 
4
-  <div class="<?php echo $this->prefix; ?> explanation<?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="<?php echo $this->prefix; ?> explanation<?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?>">
5 5
     <?php echo $this->generate(); ?>
6 6
   </div>
7 7
 
Browse code

Also apply formilicious classes to non form elements

Benjamin Roth authored on17/08/2015 16:58:25
Showing1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 
2 2
 <?php if ($this->tableless): ?>
3 3
 
4
-  <div class="<?php echo $this->prefix; ?> explanation">
4
+  <div class="<?php echo $this->prefix; ?> explanation<?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 echo $this->generate(); ?>
6 6
   </div>
7 7
 
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,14 @@
1
+
2
+<?php if ($this->tableless): ?>
3
+
4
+  <div class="<?php echo $this->prefix; ?> explanation">
5
+    <?php echo $this->generate(); ?>
6
+  </div>
7
+
8
+<?php else: ?>
9
+
10
+  <tr class="<?php echo $this->rowClass; ?>">
11
+    <td colspan="2" class="colspan explanation"><?php echo $this->generate(); ?></td>
12
+  </tr>
13
+
14
+<?php endif; ?>