Your IP : 216.73.216.85


Current Path : /home/smartconb/www/armencom33/components/com_dpcalendar/views/list/tmpl/
Upload File :
Current File : /home/smartconb/www/armencom33/components/com_dpcalendar/views/list/tmpl/default_events_cta.php

<?php
/**
 * @package   DPCalendar
 * @copyright Copyright (C) 2023 Digital Peak GmbH. <https://www.digital-peak.com>
 * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */

defined('_JEXEC') or die();

use DPCalendar\Helper\Booking;
use DPCalendar\HTML\Block\Icon;

$event = $this->displayData['event'];

if (!$this->params->get('list_show_booking', 1) || !Booking::openForBooking($event)) {
	return;
}
?>
<a href="<?php echo $this->router->getBookingFormRouteFromEvent($event, $this->returnPage); ?>" class="dp-link dp-link_cta dp-button">
	<?php echo $this->layoutHelper->renderLayout(
		'block.icon',
		['icon' => Icon::PLUS, 'title' => $this->translate('COM_DPCALENDAR_BOOK')]
	); ?>
	<?php echo $this->translate('COM_DPCALENDAR_VIEW_EVENT_TO_BOOK_TEXT'); ?>
</a>