PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.7.0
VikBooking Hotel Booking Engine & PMS v1.7.0
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
vikbooking / modules / mod_vikbooking_horizontalsearch / mod_vikbooking_horizontalsearch.php

mod_vikbooking_horizontalsearch.php in VikBooking Hotel Booking Engine & PMS 1.7.0, at modules/mod_vikbooking_horizontalsearch/mod_vikbooking_horizontalsearch.php

37 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package VikBooking
4 * @subpackage mod_vikbooking_horizontalsearch
5 * @author Alessio Gaggii - E4J s.r.l
6 * @copyright Copyright (C) 2018 E4J s.r.l. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 require_once VBO_SITE_PATH . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'lib.vikbooking.php';
15
16 // require helper class
17 require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'helper.php';
18
19 // module main file
20
21 VikBooking::loadFontAwesome();
22 if (method_exists('VikBooking', 'getTracker')) {
23 // invoke the Tracker Class
24 VikBooking::getTracker();
25 }
26 if (method_exists('VikBooking', 'loadPreferredColorStyles')) {
27 VikBooking::loadPreferredColorStyles();
28 }
29
30 // get widget id
31 $randid = str_replace('mod_vikbooking_horizontalsearch-', '', $params->get('widget_id', rand(1, 999)));
32 // get widget base URL
33 $baseurl = VBO_MODULES_URI;
34
35 // module layout file
36 require JModuleHelper::getLayoutPath('mod_vikbooking_horizontalsearch', $params->get('layout', 'default'));
37