open.php
44 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 = !empty($displayData['name']) ? $displayData['name'] : ''; |
| 15 | $class = !empty($displayData['class']) ? $displayData['class'] : ''; |
| 16 | $id = !empty($displayData['id']) ? $displayData['id'] : ''; |
| 17 | $visible = isset($displayData['visible']) ? $displayData['visible'] : true; |
| 18 | $tag = !empty($displayData['tag']) ? $displayData['tag'] : ''; |
| 19 | |
| 20 | ?> |
| 21 | |
| 22 | <div class="postbox-container vap"> |
| 23 | |
| 24 | <div class="postbox<?php echo $visible ? '' : ' closed'; ?>" data-tag="<?php echo $this->escape($tag); ?>"> |
| 25 | |
| 26 | <?php |
| 27 | if (!empty($name)) |
| 28 | { |
| 29 | ?> |
| 30 | <div class="postbox-header"> |
| 31 | <h2><?php echo JText::translate($name); ?></h2> |
| 32 | |
| 33 | <div class="handle-actions"> |
| 34 | <button type="button" class="handlediv toggler" aria-expanded="true"> |
| 35 | <i class="fas fa-caret-<?php echo $visible ? 'up' : 'down'; ?>"></i> |
| 36 | </button> |
| 37 | </div> |
| 38 | </div> |
| 39 | <?php |
| 40 | } |
| 41 | ?> |
| 42 | |
| 43 | <div class="inside<?php echo $class ? ' ' . $this->escape($class) : ''; ?>" <?php echo $id ? ' id="' . $this->escape($id) . '"' : ''; ?>> |
| 44 |