default.php
4 days ago
dropdown.php
4 days ago
index.html
4 days ago
multiple.php
4 days ago
ratesgrid.php
4 days ago
seats.php
4 days ago
table.php
4 days ago
seats.php
41 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 | VAPLoader::import('libraries.availability.timeline.renderer'); |
| 15 | |
| 16 | /** |
| 17 | * Timeline seats renderer. |
| 18 | * |
| 19 | * @since 1.7 |
| 20 | */ |
| 21 | class VAPAvailabilityTimelineRendererSeats extends VAPAvailabilityTimelineRenderer |
| 22 | { |
| 23 | /** |
| 24 | * Renders the layout of the specified timeline. |
| 25 | * |
| 26 | * @param array $data An array of display data. |
| 27 | * |
| 28 | * @return string The timeline HTML. |
| 29 | */ |
| 30 | protected function render(array $data = array()) |
| 31 | { |
| 32 | // use front-end layout path in case the back-end doesn't own an override |
| 33 | $layout = new JLayoutFile('timeline.seats', null, [ |
| 34 | 'component' => 'com_vikappointments', |
| 35 | 'client' => 'site', |
| 36 | ]); |
| 37 | |
| 38 | return $layout->render($data); |
| 39 | } |
| 40 | } |
| 41 |