Your IP : 216.73.216.84


Current Path : /home/helpink/www/components/com_jbusinessdirectory/views/events/tmpl/
Upload File :
Current File : /home/helpink/www/components/com_jbusinessdirectory/views/events/tmpl/events_list_style_1.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-1">
	<?php 
	   if(isset($this->events) && count($this->events)>0){
	        $itemCount = 0;
			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">
													<?php if(isset($event->featured) && $event->featured==1){ ?>
														<div class="featured-text">
															<?php echo JText::_("LNG_FEATURED")?>
														</div>
													<?php } ?>

													<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="url"><?php echo JBusinessUtil::getEventLink($event->id, $event->alias) ?></span>
													<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="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'){ ?>
													<div class="col-lg-5">
														<div class="result-header-info">
															<div class="item-date" itemprop="startDate" content="<?php echo JBusinessUtil::getDateISOFormat($event->start_date, $event->start_time) ?>">
																<i class="icon calendar"></i> <?php echo JBusinessUtil::getShortWeekDate($event->start_date) ?> 
															</div>
														</div>
													</div>
												<?php } ?>
											</div>

											<div class="horizontal-elements">
												<?php if ($event->start_date != '0000-00-00'){ ?>
													<?php if(!empty($event->show_start_time) && !empty($event->start_time)){ ?>
														<div class="horizontal-element">
															<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 } ?>

												<?php $address =JBusinessUtil::getShortAddress($event); ?>
												<?php if(!empty($address)){ ?>
													<div class="horizontal-element" itemprop="location" itemscope itemtype="https://schema.org/Place">
														<i class="icon map-marker"></i> <?php echo $address ?>
													</div>
												<?php } ?>

												<?php if(!empty($event->distance)){?>
													<div class="horizontal-element">
														<?php echo JText::_("LNG_DISTANCE").": ".round($event->distance,1)." ". ($this->appSettings->metric==1?JText::_("LNG_MILES"):JText::_("LNG_KM")) ?>
													</div>
												<?php } ?>
											</div>

											<div class="short-description" itemprop="description">
												<?php echo $event->short_description ?>
											</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($this->location)){?>
															<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 } ?>
</div>