| Current Path : /home/helpink/www/components/com_jbusinessdirectory/views/events/tmpl/ |
| Current File : /home/helpink/www/components/com_jbusinessdirectory/views/events/tmpl/events_list_style_2.php |
<?php
/**
* @package J-BusinessDirectory
*
* @author CMSJunkie http://www.cmsjunkie.com/
* @copyright Copyright (C) 2007 - 2022 CMSJunkie. All rights reserved.
* @license https://www.gnu.org/licenses/agpl-3.0.en.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<div id="jbd-results-list-container" itemscope itemtype="http://schema.org/ItemList" class="event-list-style-2">
<?php $itemCount = 0; ?>
<?php if(isset($this->events) && count($this->events)>0){ ?>
<?php foreach ($this->events as $event){ ?>
<div class="result-item <?php echo !empty($event->featured)==1?"featured":"" ?>">
<div itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
<div itemscope itemprop="item" itemtype="http://schema.org/Event">
<div class="row">
<div class="col-lg-3 pr-lg-0">
<div class="item-image-cover">
<a href="<?php echo JBusinessUtil::getEventLink($event->id, $event->alias) ?>">
<?php if(isset($event->picture_path) && $event->picture_path!=''){?>
<img itemprop="image" title="<?php echo $event->picture_title ?>" alt="<?php echo $event->picture_info ?>" src="<?php echo BD_PICTURES_PATH.$event->picture_path?>" >
<?php }else{?>
<img itemprop="image" title="<?php echo $this->escape($event->name)?>" alt="<?php echo $this->escape($event->name)?>" src="<?php echo BD_PICTURES_PATH.'/no_image.jpg' ?>" >
<?php } ?>
</a>
<?php if(isset($event->featured) && $event->featured==1){ ?>
<div class="featured-text">
<?php echo JText::_("LNG_FEATURED")?>
</div>
<?php } ?>
</div>
<span style="display:none;" itemprop="url"><?php echo JBusinessUtil::getEventLink($event->id, $event->alias) ?></span>
</div>
<div class="col-lg-9">
<div class="result-content">
<div class="result-content-top">
<div class="row result-header-row">
<div class="col-lg-7">
<h3 class="item-name" itemprop="name">
<a title="<?php echo $this->escape($event->name)?>" href="<?php echo JBusinessUtil::getEventLink($event->id, $event->alias) ?>"><span ><?php echo $this->escape($event->name)?></span></a>
</h3>
<span style="display:none;" itemprop="startDate"><?php echo JBusinessUtil::getDateISOFormat($event->start_date, $event->start_time) ?></span>
<span style="display:none;" itemprop="endDate"><?php echo JBusinessUtil::getDateISOFormat($event->end_date) ?></span>
<span style="display:none;" itemprop="url"><?php echo JBusinessUtil::getEventLink($event->id, $event->alias) ?></span>
<span style="display:none;" itemprop="organizer" itemscope itemtype="http://schema.org/Organization"><span itemprop="name"><?php echo $event->companyName ?></span></span>
<?php if(!empty($event->eventType)){?>
<div class="item-result-type"><?php echo $this->escape($event->eventType)?></div>
<?php } ?>
</div>
<?php if ($event->start_date != '0000-00-00' || !empty($event->featured)){ ?>
<div class="col-lg-5">
<div class="result-header-info">
<?php if(!empty($event->featured)){ ?>
<div class="featured-text">
<?php echo JText::_("LNG_FEATURED")?>
</div>
<?php } ?>
<?php if(!empty(JBusinessUtil::getRemainingTime($event->start_date, $event->time_zone, false))){?>
<div class="item-date" itemprop="startDate" content="<?php echo JBusinessUtil::getDateISOFormat($event->start_date, $event->start_time) ?>">
<i class="icon clock"></i> <?php echo JBusinessUtil::getRemainingTime($event->start_date, $event->time_zone) ?>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
</div>
<div class="row event-description">
<div class="col-md-12 col-lg-5">
<div class="result-section-title"><?php echo (JText::_('LNG_DESCRIPTION')) ?></div>
<?php echo JBusinessUtil::truncate($event->short_description, 115) ?>
</div>
<div class="col-md-6 col-lg-3">
<div class="result-section-title"><?php echo (JText::_('LNG_WHERE')) ?></div>
<?php $address =JBusinessUtil::getShortAddress($event); ?>
<?php if(!empty($address)){ ?>
<div class="item-option" itemprop="location" itemscope itemtype="https://schema.org/Place">
<i class="icon map-marker"></i> <?php echo $address ?>
</div>
<?php } ?>
<?php if(!empty($event->latitude) && !empty($event->longitude)){?>
<div class="" itemprop="location" itemscope itemtype="https://schema.org/Place">
<i class="icon navigation"></i> <a target="_blank" href="<?php echo JBusinessUtil::getDirectionURL($this->location, $event) ?>"><?php echo JText::_("LNG_GET_MAP_DIRECTIONS")?></a>
</div>
<?php }?>
<?php if(!empty($event->distance)){?>
<div class="item-option">
<?php echo JText::_("LNG_DISTANCE").": ".round($event->distance,1)." ". ($this->appSettings->metric==1?JText::_("LNG_MILES"):JText::_("LNG_KM")) ?>
</div>
<?php } ?>
</div>
<div class="col-md-6 col-lg-4">
<div class="result-section-title"><?php echo (JText::_('LNG_WHEN')) ?></div>
<?php if ($event->start_date != '0000-00-00'){ ?>
<div class="item-option" itemprop="startDate" content="<?php echo JBusinessUtil::getDateISOFormat($event->start_date, $event->start_time) ?>">
<i class="icon calendar"></i> <?php echo JBusinessUtil::getDateGeneralFormat($event->start_date).(!empty($event->start_date) && $event->start_date!=$event->end_date && $event->show_end_date?" - ".JBusinessUtil::getDateGeneralFormat($event->end_date):"") ?>
</div>
<?php } ?>
<?php if ($event->start_date != '0000-00-00'){ ?>
<?php if(!empty($event->show_start_time) && !empty($event->start_time)){ ?>
<div class="">
<i class="icon clock"></i> <?php echo ($event->show_start_time?JBusinessUtil::convertTimeToFormat($event->start_time):"")." ".(!empty($event->end_time)&&$event->show_end_time?" - ":"")." ".($event->show_end_time?JBusinessUtil::convertTimeToFormat($event->end_time):""); ?>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
</div>
<div class="result-content-bottom">
<div class="row">
<div class="col-lg-7">
<div class="result-listing-details">
<?php if(!empty($event->company_name)){?>
<div itemprop="" itemscope itemtype="http://schema.org/Organization">
<div class="image-circle">
<?php if (!empty($event->logoLocation)) { ?>
<img title="<?php echo $this->escape($event->company_name) ?>" alt="<?php echo $this->escape($event->company_name) ?>" src="<?php echo BD_PICTURES_PATH . $event->logoLocation ?>" itemprop="contentUrl">
<?php } else { ?>
<img title="<?php echo $this->escape($event->company_name) ?>" alt="<?php echo $this->escape($event->company_name) ?>" src="<?php echo BD_PICTURES_PATH . '/no_image.jpg' ?>" itemprop="contentUrl">
<?php } ?>
</div>
<div itemprop="name"> <?php echo $this->escape($event->company_name) ?></div>
</div>
<?php } ?>
</div>
</div>
<div class="col-lg-5">
<div class="result-item-actions">
<div class="horizontal-element">
<a title="<?php echo $this->escape($event->company_name) ?>" href="<?php echo JBusinessUtil::getCompanyDefaultLink($event->company_id) ?>"><i class="icon link-circle"></i></a>
</div>
<?php if(!empty($event->latitude) && !empty($event->longitude)){?>
<div class="horizontal-element">
<a target="_blank" href="<?php echo JBusinessUtil::getDirectionURL($this->location, $event) ?>"><i class="icon map-marker-circle"></i></a>
</div>
<?php }?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="display:none;" itemprop="position"><?php echo $itemCount ?></div>
</div>
</div>
<?php $itemCount++; ?>
<?php } ?>
<?php } ?>
</div>