<?php
/**
 * @package DJ-Events
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 * @developer Szymon Woronowski - szymon.woronowski@design-joomla.eu
 *
 */

defined('_JEXEC') or die('Restricted access');
?>

<form action="index.php" method="post" name="adminForm">
    <?php if(isset($this->sidebar)) : ?>
        <div id="j-sidebar-container">
            <?php echo $this->sidebar; ?>
        </div>
    <?php endif; ?>
    <div id="j-main-container">
        <div class="djc_control_panel clearfix">
            <div class="cpanel-left">
                <div class="cpanel clearfix">
                    <div class="icon">
                        <a href="index.php?option=com_djevents&amp;view=categories">
                            <img alt="<?php echo JText::_('COM_DJEVENTS_CATEGORIES'); ?>" src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/icon-48-categories.png" />
                            <span><?php echo JText::_('COM_DJEVENTS_CATEGORIES'); ?></span>
                        </a>
                        <div style="clear: both"></div>
                    </div>
                    <div class="icon">
                        <a href="index.php?option=com_djevents&amp;view=events">
                            <img alt="<?php echo JText::_('COM_DJEVENTS_EVENTS'); ?>" src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/icon-48-events.png" />
                            <span><?php echo JText::_('COM_DJEVENTS_EVENTS'); ?></span>
                        </a>
                        <div style="clear: both"></div>
                    </div>
                    <div class="icon">
                        <?php
                        $juri = JUri::getInstance();
                        $return_url = base64_encode($juri->toString());
                        ?>
                        <a href="index.php?option=com_config&amp;view=component&amp;component=com_djevents&amp;path=&amp;return=<?php echo urlencode($return_url); ?>">
                            <img alt="<?php echo JText::_('JOPTIONS'); ?>" src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/icon-48-config.png" />
                            <span><?php echo JText::_('JOPTIONS'); ?></span>
                        </a>
                        <div style="clear: both"></div>
                    </div>
                    <div class="icon">
                        <a href="https://support.dj-extensions.com/portal/en/kb/extensions/dj-events" target="_blank">
                            <img alt="<?php echo JText::_('COM_DJEVENTS_DOCUMENTATION'); ?>" src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/icon-48-documentation.png" />
                            <span><?php echo JText::_('COM_DJEVENTS_DOCUMENTATION'); ?></span>
                        </a>
                        <div style="clear: both"></div>
                    </div>



                    <div class="icon">
                        <a href="#" onclick="if(confirm('<?php echo JText::_('COM_DJEVENTS_IMPORT_JEVENTS_CONFIRM_MSG') ?>')) { document.adminForm.source.value='jevents'; Joomla.submitform('import', document.adminForm);} return false;">
                            <img alt="<?php echo JText::_('COM_DJEVENTS_IMPORT_JEVENTS'); ?>" src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/icon-48-jevents.png" />
                            <span><?php echo JText::_('COM_DJEVENTS_IMPORT_JEVENTS'); ?></span>
                        </a>
                        <div style="clear: both"></div>
                    </div>


                </div>
            </div>
            <div class="cpanel-right">
                <div class="cpanel">
                    <?php if(DJLicense::isPro()) : ?>
                        <?php echo DJLicense::getSubscription('Events'); ?>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name="option" value="com_djevents"/>
    <input type="hidden" name="c" value="cpanel"/>
    <input type="hidden" name="task" value=""/>
    <input type="hidden" name="view" value="cpanel"/>
    <input type="hidden" name="boxchecked" value="0"/>
    <?php echo JHTML::_('form.token'); ?>
</form>
<?php echo DJEVENTSFOOTER; ?>
