Your IP : 216.73.216.84


Current Path : /home/helpink/www/modules/mod_jbusiness_events/tmpl/
Upload File :
Current File : /home/helpink/www/modules/mod_jbusiness_events/tmpl/default_simple_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 class="jbd-container events<?php echo $moduleclass_sfx; ?> jbd-grid-container">
	<div class="row has-flex-columns">
		<?php if(isset($items)){ ?>
			<?php $counter = 0; ?>
			<?php foreach($items as $i=>$item){ $counter++?>
				<div class="<?php echo $span?>">
					<div class="jitem-card">
            			<div class="jitem-img-wrap">
            				<a class="<?php echo $campaignCallClass; ?>" data-item-id="<?php echo $item->id; ?>" href="<?php echo JBusinessUtil::getEventLink($item->id, $item->alias); ?>"></a>
        					<?php if(!empty($item->picture_path)){?>
        						<img src="<?php echo BD_PICTURES_PATH.$item->picture_path ?>"  title="<?php echo $item->picture_title ?>" alt="<?php echo $item->picture_info ?>">
							<?php } else { ?>
								<img src="<?php echo BD_PICTURES_PATH.'/no_image.jpg' ?>" alt="<?php echo stripslashes($item->name)?>">
							<?php } ?>
							<div class="card-hoverable">
                            	<a href="<?php echo $item->link ?>" data-item-id="<?php echo $item->id; ?>" class="btn btn-outline-success btn-sm w-auto <?php echo $campaignCallClass; ?>"><?php echo JText::_("LNG_VIEW")?></a>
                            </div>
            			</div>
            			<div class="jitem-body">
            				<div class="jitem-body-content">
            					<div class="jitem-desc text-small align-items-start">
            						<div class="jitem-desc-content date-wrap">
                                        <?php if (!JBusinessUtil::emptyDate($item->start_date)){ ?>
                                            <div class="jitem-date">
                                                <span class="jmonth"><?php echo JBusinessUtil::getMonth($item->start_date) ?></span>
                                                <span class="jday"><?php echo JBusinessUtil::getDayOfMonth($item->start_date) ?></span>
                                            </div>
                                        <?php }?>
										<div>
                            				<div class="jitem-title">
                            					<a href="<?php echo JBusinessUtil::getEventLink($item->id, $item->alias) ?>"><?php echo stripslashes($item->name)?></a>
                            				</div>
                            				<?php if($item->show_start_time && !empty($item->start_time)){?>
            									<p>
            										<i class="icon clock"></i> <?php echo ($item->show_start_time?JBusinessUtil::convertTimeToFormat($item->start_time):"")." ".(!empty($item->end_time) && $item->show_end_time?"-":"")." ".($item->show_end_time?JBusinessUtil::convertTimeToFormat($item->end_time):""); ?>
            									</p>              				
            								<?php }?>
            								
            								<?php if(!empty($item->city)){ ?>
                            					<p><i class="icon map-marker"></i> <a class="location" href="<?php echo JRoute::_('index.php?option=com_jbusinessdirectory&view=events&citySearch='.$item->city."&Itemid=".$menuItemId); ?>"><?php echo $item->city ?></a></p>
                            				<?php }?>
                            				
                            				<?php if(!empty($item->phone)) {?>
												<p><i class="icon phone"></i> <?php echo $item->phone ?></p>
											<?php } ?>
                						</div>
									</div>
								</div>
							</div>
                				
        					<?php if ($showListingName && !empty($item->company_id)){ ?>
	                             <div class="jitem-bottom-box">
									<div class="jitem-info text-small"><div><?php echo JText::_("LNG_HOSTED_BY") ?> <a <?php echo $newTab; ?> href="<?php echo JBusinessUtil::getCompanyDefaultLink($item->company_id) ?>"><?php echo $item->companyName; ?></a></div><i class="la la-star"></i></div>
								</div>
							<?php } ?>
    					</div>
    				</div>
    			</div>
			<?php } ?>
		<?php } ?>
	</div>	
	
	<?php if(!empty($params) && $params->get('showviewall')){?>
		<div class="view-all-items">
			<a href="<?php echo $viewAllLink; ?>"><?php echo JText::_("LNG_VIEW_ALL")?></a>
		</div>
	<?php }?>
</div>