groupedlist.php
2 years ago
list.php
1 year ago
media.php
4 years ago
number.php
4 years ago
spacer.php
4 years ago
text.php
4 years ago
textarea.php
4 years ago
toggle.php
4 years ago
spacer.php
40 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package VikAppointments - Libraries |
| 4 | * @subpackage html.form |
| 5 | * @author E4J s.r.l. |
| 6 | * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. |
| 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | * @link https://vikwp.com |
| 9 | */ |
| 10 | |
| 11 | // No direct access |
| 12 | defined('ABSPATH') or die('No script kiddies please!'); |
| 13 | |
| 14 | $name = isset($displayData['name']) ? $displayData['name'] : ''; |
| 15 | $label = isset($displayData['label']) ? $displayData['label'] : ''; |
| 16 | $id = isset($displayData['id']) ? $displayData['id'] : ''; |
| 17 | $class = isset($displayData['class']) ? $displayData['class'] : ''; |
| 18 | |
| 19 | if ($label) |
| 20 | { |
| 21 | ?> |
| 22 | <h4 |
| 23 | name="<?php echo $name; ?>" |
| 24 | <?php echo $id ? 'id="' . $id . '"' : ''; ?> |
| 25 | <?php echo $class ? 'class="' . $class . '"' : ''; ?> |
| 26 | ><?php echo JText::translate($label); ?></h4> |
| 27 | <?php |
| 28 | |
| 29 | } |
| 30 | else |
| 31 | { |
| 32 | ?> |
| 33 | <hr |
| 34 | name="<?php echo $name; ?>" |
| 35 | <?php echo $id ? 'id="' . $id . '"' : ''; ?> |
| 36 | <?php echo $class ? 'class="' . $class . '"' : ''; ?> |
| 37 | /> |
| 38 | <?php |
| 39 | } |
| 40 |