<?php
/**
* @package   yoo_gusto
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

// no direct access
defined('_JEXEC') or die;

JHtml::_('behavior.keepalive');

?>

<?php if ($type == 'logout') : ?>

    <form class="uk-form" action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post">

        <div class="uk-form-row uk-flex uk-flex-middle" data-uk-margin>
            <?php if ($params->get('greeting')) : ?>
            <div>
                <?php if ($params->get('name') == 0) : {
                    echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('name')));
                } else : {
                    echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('username')));
                } endif; ?>
            </div>
            <?php endif; ?>
            <button class="uk-button uk-button-small uk-button-primary uk-margin-left" value="<?php echo JText::_('JLOGOUT'); ?>" name="Submit" type="submit"><?php echo JText::_('JLOGOUT'); ?></button>
        </div>

        <input type="hidden" name="option" value="com_users">
        <input type="hidden" name="task" value="user.logout">
        <input type="hidden" name="return" value="<?php echo $return; ?>">
        <?php echo JHtml::_('form.token'); ?>
    </form>

<?php endif; ?>
