Your IP : 216.73.216.240


Current Path : /home/juvelize/www/administrator/components/com_zhgooglemap/views/zhgooglemaps/
Upload File :
Current File : /home/juvelize/www/administrator/components/com_zhgooglemap/views/zhgooglemaps/view.html.php

<?php
/*------------------------------------------------------------------------
# com_zhgooglemap - Zh GoogleMap
# ------------------------------------------------------------------------
# author:    Dmitry Zhuk
# copyright: Copyright (C) 2011 zhuk.cc. All Rights Reserved.
# license:   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
# website:   http://zhuk.cc
# Technical Support Forum: http://forum.zhuk.cc/
-------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// import Joomla view library
jimport('joomla.application.component.view');

/**
 * View class for the ZhGoogleMap Util Component
 */
class ZhGoogleMapViewZhGoogleMaps extends JViewLegacy
{
    // Overwriting JView display method
    function display($tpl = null) 
    {
        ZhGoogleMapHelper::addSubmenu('zhgooglemaps');

        $extList = $this->get('extList');
        $this->assignRef( 'extList',    $extList);                
                 
        $this->addToolBar();

                // Display the template
                parent::display($tpl);

        // Set the document
        $this->setDocument();

    }

    /**
     * Setting the toolbar
     */
    protected function addToolBar() 
    {
            $help_url = 'http://wiki.zhuk.cc/index.php/Zh_GoogleMap_Description';
            JToolbarHelper::help('', false, $help_url);

            $canDo = ZhGoogleMapHelper::getUtilActions();
            
        JToolBarHelper::title(JText::_('COM_ZHGOOGLEMAP_DASHBOARD_MANAGER'), 'util');
                
        if ($canDo->get('core.admin')) 
        {
            JToolBarHelper::divider();
            JToolBarHelper::preferences('com_zhgooglemap');
        }

        JHtmlSidebar::setAction('index.php?option=com_zhgooglemap');
                
        $this->sidebar = JHtmlSidebar::render();
    }

    /**
     * Method to set up the document properties
     *
     * @return void
     */
    protected function setDocument() 
    {
        $document = JFactory::getDocument();
        $document->setTitle(JText::_('COM_ZHGOOGLEMAP_DASHBOARD'));
    }

}