Your IP : 216.73.216.240


Current Path : /home/juvelize/martine/administrator/components/com_easybookreloaded/views/gb/
Upload File :
Current File : /home/juvelize/martine/administrator/components/com_easybookreloaded/views/gb/view.html.php

<?php

/**
 * @copyright
 * @package    Easybook Reloaded - EBR for Joomla! 3.x
 * @author     Viktor Vogel <admin@kubik-rubik.de>
 * @version    3.4.1.1-FREE - 2021-08-29
 * @link       https://kubik-rubik.de/ebr-easybook-reloaded
 *
 * @license    GNU/GPL
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
defined('_JEXEC') || die('Restricted access');

use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\{Toolbar\ToolbarHelper, Language\Text, Factory};

/**
 * Class EasybookReloadedViewGB
 *
 * @since   3.4.0-FREE
 * @version 3.4.1.0-FREE
 */
class EasybookReloadedViewGB extends HtmlView
{
    /**
     * @var object $items
     * @since 3.4.0-FREE
     */
    protected $items;

    /**
     * @var object $pagination
     * @since 3.4.0-FREE
     */
    protected $pagination;

    /**
     * @var string $sidebar
     * @since 3.4.0-FREE
     */
    protected $sidebar;

    /**
     * Executes and displays a template file
     *
     * @param string|null $tpl
     *
     * @return mixed|void
     * @since   3.4.0-FREE
     * @version 3.4.1.0-FREE
     */
    public function display($tpl = null)
    {
        ToolbarHelper::title(Text::_('COM_EASYBOOKRELOADED') . " - " . Text::_('COM_EASYBOOKRELOADED_SUBMENU_GB'), 'easybookreloaded');
        ToolbarHelper::addNew();
        ToolbarHelper::editList();
        ToolbarHelper::deleteList();
        ToolbarHelper::preferences('com_easybookreloaded', '500');

        $this->items = $this->get('Data');
        $this->pagination = $this->get('Pagination');
        $this->sidebar = JHtmlSidebar::render();

        Factory::getDocument()->addStyleSheet('components/com_easybookreloaded/css/easybookreloaded.css');

        parent::display($tpl);
    }
}