__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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
*/
use Joomla\CMS\Factory;
\defined('_JEXEC') or die();
$event = $displayData['event'];
$prices = (array)$event->prices !== [] ? (array)$event->prices : ['prices0' => (object)['value' => 0, 'label' => '', 'description' => '', 'currency' => '']];
?>
<div itemprop="offers" itemtype="https://schema.org/AggregateOffer" itemscope>
<meta itemprop="priceCurrency" content="<?php echo Factory::getApplication()->bootComponent('dpcalendar')->getMVCFactory()->createModel('Currency', 'Administrator')->getActualCurrency()->currency; ?>">
<meta itemprop="offerCount" content="<?php echo $event->capacity; ?>">
<meta itemprop="highPrice" content="<?php echo max(array_column($prices, 'value')); ?>">
<meta itemprop="lowPrice" content="<?php echo min(array_column($prices, 'value')); ?>">
<meta itemprop="availability"
content="https://schema.org/<?php echo $event->capacity > $event->capacity_used ? 'InStock' : 'SoldOut'; ?>">
<meta itemprop="url" content="<?php echo $displayData['router']->getEventRoute($event->id, $event->catid, true, true); ?>">
<meta itemprop="validFrom" content="<?php echo $displayData['dateHelper']->getDate($event->created)->format('c'); ?>">
<?php foreach ($prices as $price) { ?>
<div itemprop="offers" itemtype="https://schema.org/Offer" itemscope>
<meta itemprop="price" content="<?php echo $price->value; ?>">
<?php if (!empty($price->label)) { ?>
<meta itemprop="name" content="<?php echo htmlentities((string)$price->label, ENT_COMPAT, 'UTF-8'); ?>">
<?php } ?>
<?php if (!empty($price->description)) { ?>
<meta itemprop="description" content="<?php echo htmlentities(strip_tags((string)$price->description), ENT_COMPAT, 'UTF-8'); ?>">
<?php } ?>
</div>
<?php } ?>
</div>
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| attendancemode.php | File | 598 B | 0664 |
|
| date.php | File | 560 B | 0664 |
|
| description.php | File | 373 B | 0664 |
|
| event.php | File | 1.25 KB | 0664 |
|
| image.php | File | 646 B | 0664 |
|
| location.php | File | 1.86 KB | 0664 |
|
| name.php | File | 341 B | 0664 |
|
| offer.php | File | 1.88 KB | 0664 |
|
| organizer.php | File | 641 B | 0664 |
|
| performer.php | File | 425 B | 0664 |
|
| status.php | File | 381 B | 0664 |
|
| url.php | File | 511 B | 0664 |
|