Browse code

Submit widget template adjustments for Contao ~4.4.x

Benjamin Roth authored on01/08/2018 11:35:16
Showing1 changed files
... ...
@@ -1,26 +1,7 @@
1
-<?php if ($this->tableless): ?>
2
-
3
-  <div class="submit_container widget<?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?= $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; ?><?php if ($this->eSM_fl_lblpadding): ?> lblp<?php endif; ?><?php if ($this->eSM_fl_alignment): ?> <?php echo $this->eSM_fl_alignment; ?><?php endif; ?>">
4
-    <?php if ($this->src): ?>
5
-      <input type="image" src="<?= $this->src; ?>" id="ctrl_<?php echo $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>" title="<?php echo specialchars($this->slabel); ?>" alt="<?php echo specialchars($this->slabel); ?>"<?php echo $this->getAttributes(); ?>>
6
-    <?php else: ?>
7
-      <button type="submit" id="ctrl_<?= $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>"<?php echo $this->getAttributes(); ?>><?php echo specialchars($this->slabel); ?></button>
8
-    <?php endif; ?>
9
-  </div>
10
-
11
-<?php else: ?>
12
-
13
-  <tr class="<?= $this->rowClass; ?>">
14
-    <td class="col_0 col_first">&nbsp;</td>
15
-    <td class="col_1 col_last">
16
-      <div class="submit_container">
17
-        <?php if ($this->src): ?>
18
-          <input type="image" src="<?= $this->src; ?>" id="ctrl_<?php echo $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>" title="<?php echo specialchars($this->slabel); ?>" alt="<?php echo specialchars($this->slabel); ?>"<?php echo $this->getAttributes(); ?>>
19
-        <?php else: ?>
20
-          <input type="submit" id="ctrl_<?= $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>" value="<?php echo specialchars($this->slabel); ?>"<?php echo $this->getAttributes(); ?>>
21
-        <?php endif; ?>
22
-      </div>
23
-    </td>
24
-  </tr>
25
-
26
-<?php endif; ?>
1
+<div class="submit_container widget<?php if ($this->class) echo ' ' . $this->class; ?><?php if ($this->eSM_fl_width): ?> w<?= $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; ?><?php if ($this->eSM_fl_lblpadding): ?> lblp<?php endif; ?><?php if ($this->eSM_fl_alignment): ?> <?php echo $this->eSM_fl_alignment; ?><?php endif; ?>">
2
+  <?php if ($this->src): ?>
3
+    <input type="image" src="<?= $this->src; ?>" id="ctrl_<?php echo $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>" title="<?php echo specialchars($this->slabel); ?>" alt="<?php echo specialchars($this->slabel); ?>"<?php echo $this->getAttributes(); ?>>
4
+  <?php else: ?>
5
+    <button type="submit" id="ctrl_<?= $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>"<?php echo $this->getAttributes(); ?>><?php echo specialchars($this->slabel); ?></button>
6
+  <?php endif; ?>
7
+</div>