| Current Path : /home/helpink/www/components/com_jbusinessdirectory/views/offers/tmpl/ |
| Current File : /home/helpink/www/components/com_jbusinessdirectory/views/offers/tmpl/offers_grid_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');
$appSettings = JBusinessUtil::getApplicationSettings();
?>
<!-- layout -->
<div id="layout" class="jbd-grid-container offers-grid-style-2">
<div id="jbd-results-grid-container" class="row" itemscope itemtype="http://schema.org/OfferCatalog">
<?php
if(!empty($this->offers)){
$index=0;
foreach($this->offers as $index=>$offer){
$index++;
?>
<div class="col-lg-4 col-sm-6 col-12">
<div class="jitem-card <?php echo isset($company->featured) && $company->featured == 1 ? "featured" : "" ?>" itemscope itemprop="itemListElement" itemtype="http://schema.org/Offer">
<div class="jitem-img-wrap">
<a href="<?php echo $offer->link ?>" itemprop="image" itemscope itemtype="http://schema.org/ImageObject"> </a>
<?php if(!empty($offer->picture_path) ){?>
<img title="<?php echo $offer->picture_title ?>" alt="<?php echo $offer->picture_info ?>" src="<?php echo BD_PICTURES_PATH.$offer->picture_path ?>" itemprop="">
<?php }else{ ?>
<img title="<?php echo $this->escape($offer->subject)?>" alt="<?php echo $this->escape($offer->subject)?>" src="<?php echo BD_PICTURES_PATH.'/no_image.jpg' ?>" itemprop="">
<?php } ?>
<div class="jitem-body-content">
<div class="jitem-title">
<a href="<?php echo $offer->link ?>"><span itemprop="name"><?php echo $this->escape($offer->subject)?></span></a>
</div>
<div class="offer-price">
<?php if (!empty($offer->price)) { ?>
<span class="<?php echo $offer->specialPrice>0 ?"old-price":"" ?>"><?php echo JBusinessUtil::getPriceFormat($offer->price, $offer->currencyId) ?></span>
<?php } ?>
<?php if (!empty($offer->specialPrice)) { ?>
<span class="price red"><?php echo JBusinessUtil::getPriceFormat($offer->specialPrice, $offer->currencyId); ?></span>
<?php } ?>
</div>
<?php if (!empty($offer->company_name)) { ?>
<div class="offer-company horizontal-item" itemprop="offeredBy" itemscope itemtype="http://schema.org/Organization">
<span><i class="icon briefcase"></i> <span itemprop="name"><?php echo $this->escape($offer->company_name) ?></span></span>
</div>
<?php } ?>
<?php if (!JBusinessUtil::emptyDate($offer->startDate) || !JBusinessUtil::emptyDate($offer->endDate)) { ?>
<div class="offer-dates horizontal-item">
<i class="icon calendar"></i>
<?php
echo JBusinessUtil::getDateGeneralShortFormat($offer->startDate) . " - " . JBusinessUtil::getDateGeneralShortFormat($offer->endDate);
?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
</div>