| Current Path : /home/antonen/poznajlitwe.lt/administrator/components/com_aimysitemap/views/dashboard/ |
| Current File : /home/antonen/poznajlitwe.lt/administrator/components/com_aimysitemap/views/dashboard/view.html.php |
<?php
/*
* Copyright (c) 2017-2019 Aimy Extensions, Netzum Sorglos Software GmbH
* Copyright (c) 2016-2017 Aimy Extensions, Lingua-Systems Software GmbH
*
* https://www.aimy-extensions.com/
*
* License: GNU GPLv2, see LICENSE.txt within distribution and/or
* https://www.aimy-extensions.com/software-license.html
*/
defined( '_JEXEC' ) or die(); require_once( JPATH_COMPONENT . '/helpers/rights.php' ); class AimySitemapViewDashboard extends JViewLegacy { protected $allow_config = false; public function display( $tpl = null ) { $rights = AimySitemapRightsHelper::getRights(); $this->allow_config = $rights->get( 'core.admin' ); $this->addToolbar(); parent::display( $tpl ); } protected function addToolbar() { $bar = JToolBar::getInstance( 'toolbar' ); JToolBarHelper::title( JText::_( 'AIMY_SM_DASHBOARD' ), '' ); if ( $this->allow_config ) { JToolBarHelper::preferences( 'com_aimysitemap' ); } } }