<?php
/*------------------------------------------------------------------------
# com_zhosmmap - Zh OpenStreetMap
# ------------------------------------------------------------------------
# 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');

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;


    $wa  = $this->document->getWebAssetManager();

    $wa->registerAndUseStyle('zhosmmaps.dashboard.style', URI::root() .'administrator/components/com_zhosmmap/assets/css/utils.css');

    $imgpath = URI::root() .'components/com_zhosmmap/assets/icons/';
    $utilspath = URI::root() .'administrator/components/com_zhosmmap/assets/utils/';


?>

<div class="zhosm-panel-container">
    <div class="row">
        <div class="col-md-12 module-wrapper">
        
            <div class="card mb-12">
                <div class="card-header">
                    <div class="zhosm-header-title">
                        <h2><?php echo Text::_('COM_ZHOSMMAP_UTILITIES_IMPORT'); ?></h2>
                    </div>
                </div>
                <div class="card-body">
                    <div class="row-striped">
                        <div>
                            
							<div class="zhosm-panel-icon-wrapper">
								<div class="zhosm-panel-icon">
									<a href="<?php echo Route::_('index.php?option=com_zhosmmap&amp;view=mapbufmrks'); ?>"> 
										<img src="<?php echo $utilspath ?>import_csv.png" title="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_MAPBUFMRKS'); ?>" alt="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_MAPBUFMRKS'); ?>"> 
										<span><?php echo Text::_('COM_ZHOSMMAP_UTILITIES_IMPORT_CSV'); ?></span> 
									</a>
								</div>        
							</div>   
							<?php
							if ($this->checkExistsExtension('yandex') != 0)
							{
							?>                       
							<div class="zhosm-panel-icon-wrapper">
								<div id="importzhym_div" class="zhosm-panel-icon">
									<a href="<?php echo Route::_('index.php?option=com_zhosmmap&amp;view=importzhyms'); ?>"> 
										<img src="<?php echo $utilspath ?>import_zh.png" title="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_IMPORTZHYMS'); ?>" alt="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_IMPORTZHYMS'); ?>"> 
										<span><?php echo Text::_('COM_ZHOSMMAP_UTILITIES_IMPORT_ZHYM'); ?></span> 
									</a>
								</div>        
							</div>   
							<?php
							}
							if ($this->checkExistsExtension('google') != 0)
							{
							?>
							<div class="zhosm-panel-icon-wrapper">
								<div id="importzhgm_div" class="zhosm-panel-icon">
									<a href="<?php echo Route::_('index.php?option=com_zhosmmap&amp;view=importzhgms'); ?>"> 
										<img src="<?php echo $utilspath ?>import_zh.png" title="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_IMPORTZHGMS'); ?>" alt="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_IMPORTZHGMS'); ?>"> 
										<span><?php echo Text::_('COM_ZHOSMMAP_UTILITIES_IMPORT_ZHGM'); ?></span> 
									</a>
								</div>        
							</div>  
							<?php
							}
							?>
						
                        </div>                     
                    </div>
                </div>        
            </div>
         
        </div>
    </div>
    
</div>