| Current Path : /home/smartconb/www/armencom33/components/com_dpcalendar/views/event/tmpl/ |
| Current File : /home/smartconb/www/armencom33/components/com_dpcalendar/views/event/tmpl/default_title.php |
<?php
/**
* @package DPCalendar
* @copyright Copyright (C) 2017 Digital Peak GmbH. <https://www.digital-peak.com>
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
defined('_JEXEC') or die();
$url = str_replace(['?tmpl=component', 'tmpl=component'], '', $this->router->getEventRoute($this->event->id, $this->event->catid));
?>
<h<?php echo $this->heading + 1; ?> class="com-dpcalendar-event__title dp-heading">
<?php if ($this->input->get('tmpl') == 'component') { ?>
<a href="<?php echo $url; ?>" class="com-dpcalendar-event__link" target="_parent"><?php echo $this->event->title; ?></a>
<?php } else { ?>
<?php echo $this->event->title; ?>
<?php } ?>
<?php if ($this->event->state == 3) { ?>
<span class="com-dpcalendar-event__title_canceled"><?php echo $this->translate('COM_DPCALENDAR_FIELD_VALUE_CANCELED'); ?></span>
<?php } ?>
<?php if ($this->event->state == 0) { ?>
<span class="com-dpcalendar-event__title_unpublished"><?php echo $this->translate('JUNPUBLISHED'); ?></span>
<?php } ?>
</h<?php echo $this->heading + 1; ?>>
<div class="com-dpcalendar-event__event-text">
<?php echo $this->event->displayEvent->afterDisplayTitle; ?>
</div>