default.php
1 month ago
default.xml
1 month ago
default_group.php
1 month ago
default_service.php
1 month ago
index.html
1 month ago
default.php
65 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package VikAppointments |
| 4 | * @subpackage core |
| 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 | JHtml::fetch('vaphtml.assets.fancybox'); |
| 15 | |
| 16 | $vik = VAPApplication::getInstance(); |
| 17 | |
| 18 | ?> |
| 19 | |
| 20 | <form action="<?php echo JRoute::rewrite('index.php?option=com_vikappointments&view=servicesearch' . ($this->itemid ? '&Itemid=' . $this->itemid : '')); ?>" method="post" name="servicesform"> |
| 21 | |
| 22 | <div class="vapserallblocks"> |
| 23 | |
| 24 | <?php |
| 25 | foreach ($this->groups as $group) |
| 26 | { |
| 27 | ?> |
| 28 | <div class="vapsergroup <?php echo $vik->getThemeClass('background'); ?>"> |
| 29 | |
| 30 | <?php |
| 31 | // Register the group details within a property of this class |
| 32 | // to make it available also for the sublayout. |
| 33 | $this->group = $group; |
| 34 | |
| 35 | // get group template |
| 36 | echo $this->loadTemplate('group'); |
| 37 | ?> |
| 38 | |
| 39 | <div class="vapservicescont"> |
| 40 | |
| 41 | <?php |
| 42 | foreach ($group->services as $service) |
| 43 | { |
| 44 | // Register the service details within a property of this class |
| 45 | // to make it available also for the sublayout. |
| 46 | $this->service = $service; |
| 47 | |
| 48 | // get service template |
| 49 | echo $this->loadTemplate('service'); |
| 50 | } |
| 51 | ?> |
| 52 | |
| 53 | </div> |
| 54 | |
| 55 | </div> |
| 56 | <?php |
| 57 | } |
| 58 | ?> |
| 59 | |
| 60 | </div> |
| 61 | |
| 62 | <input type="hidden" name="option" value="com_vikappointments" /> |
| 63 | <input type="hidden" name="view" value="servicesearch" /> |
| 64 | </form> |
| 65 |