PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / trunk
VikAppointments Services Booking Calendar vtrunk
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / admin / views / newmedia / view.html.php
vikappointments / admin / views / newmedia Last commit date
tmpl 4 years ago index.html 4 years ago view.html.php 2 years ago
view.html.php
63 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 /**
15 * VikAppointments media upload view.
16 *
17 * @since 1.7
18 */
19 class VikAppointmentsViewnewmedia extends JViewVAP
20 {
21 /**
22 * VikAppointments view display method.
23 *
24 * @return void
25 */
26 function display($tpl = null)
27 {
28 $app = JFactory::getApplication();
29
30 // set the toolbar
31 $this->addToolBar();
32
33 $prop = VikAppointments::getMediaProperties();
34
35 $this->properties = $prop;
36
37 // Check if we should prompt a message to guide the user about
38 // chaning the default size of the thumbnails.
39 $this->showHelp = $app->input->getBool('configure');
40
41 // display the template
42 parent::display($tpl);
43 }
44
45 /**
46 * Setting the toolbar.
47 *
48 * @return void
49 */
50 protected function addToolBar()
51 {
52 // add menu title and some buttons to the page
53 JToolBarHelper::title(JText::translate('VAPMAINTITLENEWMEDIA'), 'vikappointments');
54
55 if (JFactory::getUser()->authorise('core.create', 'com_vikappointments'))
56 {
57 JToolBarHelper::apply('media.saveclose', JText::translate('VAPSAVE'));
58 }
59
60 JToolBarHelper::cancel('media.cancel');
61 }
62 }
63