Your IP : 216.73.216.240


Current Path : /home/j/u/v/juvelize/www/components/com_icagenda/layouts/icagenda/manager/button/
Upload File :
Current File : /home/j/u/v/juvelize/www/components/com_icagenda/layouts/icagenda/manager/button/edit.php

<?php
/**
 *----------------------------------------------------------------------------
 * iCagenda     Events Management Extension for Joomla!
 *----------------------------------------------------------------------------
 * @version     3.9.0 2024-03-01
 *
 * @package     iCagenda.Site
 * @subpackage  Layout
 * @link        https://www.icagenda.com
 *
 * @author      Cyril Rezé
 * @copyright   (c) 2012-2024 Cyril Rezé / iCagenda. All rights reserved.
 * @license     GNU General Public License version 3 or later; see LICENSE.txt
 *
 * @since       3.8
 *----------------------------------------------------------------------------
*/

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text as JText;

extract($displayData);

/**
 * Layout variables
 * -----------------
 * @var  string  url        Edit Event Url.
 * @var  string  view       Current view.
 * @var  array   options    Options button.
*/

$btnSize  = ($view == 'event') ? '' : ' btn-sm';
$btnClass = isset($options['class']) ? $options['class'] : 'btn btn-primary' . $btnSize . ' ms-1';
$icon     = isset($options['icon'])  ? $options['icon']  : 'icon-edit';
$text     = isset($options['text'])  ? $options['text']  : JText::_('JGLOBAL_EDIT');

$tooltipClass   = '';
$tooltipContent = '';

if (isset($options['tipText']))
{
	$tooltipClass   = ' ic-tooltip';
	$tooltipLegend  = isset($options['tipLegend']) ? '<div class="ic-tooltip-legend">' . $options['tipLegend'] . '</div><br />' : '';
	$tooltipContent = '<span class="ic-tooltip-content ic-tooltip-top">' . $tooltipLegend . $options['tipText'] . '</span>';
}
?>

<button class="<?php echo $btnClass . $tooltipClass; ?>" type="button"
	onclick="window.open('<?php echo $url; ?>', '_parent')"
	>
	<?php if ($icon) : ?>
		<span class="<?php echo $icon; ?>"></span>&#160;
	<?php endif; ?>
	<?php echo $text; ?>
	<?php echo $tooltipContent; ?>
</button>