PluginProbe
VikBooking Hotel Booking Engine & PMS / trunk
VikBooking Hotel Booking Engine & PMS vtrunk
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 1.7.3 All 36 releases
vikbooking / admin / views / gotopro / view.html.php

view.html.php in VikBooking Hotel Booking Engine & PMS trunk, at admin/views/gotopro/view.html.php

58 lines 1.3 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 com_vikbooking
5 * @author Alessio Gaggii - e4j - Extensionsforjoomla.com
6 * @copyright Copyright (C) 2018 e4j - Extensionsforjoomla.com. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE
8 * @link https://vikwp.com
9 */
10
11 defined('ABSPATH') or die('No script kiddies please!');
12
13 /**
14 * @wponly this View is only for WP
15 */
16
17 // import Joomla view library
18 jimport('joomla.application.component.view');
19
20 class VikBookingViewGotopro extends JViewVikBooking
21 {
22 public function display($tpl = null)
23 {
24 // Set the toolbar
25 $this->addToolBar();
26
27 VikBookingLoader::import('update.license');
28
29 $hidead = VikRequest::getInt('hidead', 0, 'request');
30 if ($hidead > 0) {
31 VikBookingLicense::setVcmAd(false);
32 }
33
34 $lic_key = VikBookingLicense::getKey();
35 $lic_date = VikBookingLicense::getExpirationDate();
36 $is_pro = VikBookingLicense::isPro();
37
38 if ($is_pro > 0) {
39 $tpl = 'pro';
40 }
41
42 $this->lic_key = $lic_key;
43 $this->lic_date = $lic_date;
44 $this->is_pro = $is_pro;
45
46 // Display the template
47 parent::display($tpl);
48 }
49
50 /**
51 * Sets the toolbar
52 */
53 protected function addToolBar()
54 {
55 JToolBarHelper::title(JText::translate('VBMAINGOTOPROTITLE'), 'vikbooking');
56 }
57 }
58