Current File : /home/pacjaorg/public_html/km/components/com_djclassifieds/layouts/price.php
<?php
/**
 * @package DJ-Classifieds
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 */
 
defined('_JEXEC') or die;

$app = JFactory::getApplication();

$item = $displayData['item'];
$highest_bid = $displayData['highest_bid'];
$show_buynow_form = !empty($displayData['show_buynow_form']);
$context = $displayData['context'];
$cl = !empty($displayData['cl']) ? $displayData['cl'] : '';
$Itemid = !empty($displayData['Itemid']) ? $displayData['Itemid'] : false;
$par = $displayData['par'];

?>

<?php if($plug_out_arr = $app->triggerEvent('onDJClassifiedsDisplayPrice', array($item, $context))){ ?>
	<?php foreach($plug_out_arr as $plug_out) echo $plug_out; ?>
<?php }elseif($item->price || ($par->get('auctions','0') && $item->auction) || $item->price_negotiable){ ?>
    <div class="price_wrap<?php echo $cl ? ' '.$cl : ''; ?>">
    <?php if($item->price && (!($par->get('auctions','0') && $item->auction) || ($par->get('buynow','0') && $item->buynow))){ ?>
        <div class="price<?php echo $par->get('buynow','0') && $item->buynow ? ' buynow-price' : ''; ?>">
            <span class="row_label"><?php echo ($par->get('buynow','0') && $item->buynow) ? JText::_('COM_DJCLASSIFIEDS_BUYNOW') : JText::_('COM_DJCLASSIFIEDS_PRICE'); ?>:</span>
            <span class="row_value"><?php echo DJClassifiedsTheme::priceFormat($item->price, $item->currency); ?></span>
            <span style="display:none">
                <span itemprop="price"><?php echo $item->price; ?></span>
                <span itemprop="priceCurrency"><?php echo $item->currency ? $item->currency : $par->get('unit_price','EUR'); ?></span>
            </span>
            <?php if($show_buynow_form && $par->get('buynow','0') && $item->buynow && JFactory::getDate() < $item->date_exp){ ?>
                <?php echo DJClassifiedsTheme::renderLayout('buynowform', array('item' => $item, 'Itemid' => $Itemid, 'par' => $par)); ?>
            <?php } ?>
            <div class="clear_both"></div>
        </div>
    <?php } ?>
    <?php if($par->get('auctions','0') && $item->auction){ ?>
                <div class="price auction-price">
                    <span class="row_label"><?php echo $highest_bid ? JText::_('COM_DJCLASSIFIEDS_HIGHEST_BID') : JText::_('COM_DJCLASSIFIEDS_START_PRICE'); ?>:</span>
                    <span class="row_value">
                        <?php echo DJClassifiedsTheme::priceFormat($highest_bid ? $highest_bid : $item->price_start, $item->currency); ?>					
                    </span>
                </div>
        <?php if($par->get('auctions_price_link',0)==1 && $par->get('auctions','0') && ($par->get('auctions_position','top')=='middle' || $par->get('auctions_position','top')=='bottom')){ ?>
            <div class="text-center">
                <a href="#auctions" class="auctions_link readmore"><?php echo JText::_('COM_DJCLASSIFIEDS_CURRENT_BIDS'); ?></a>
            </div>
        <?php } ?>
    <?php } ?>
    <?php if($item->price_negotiable){ ?>
        <span class="row_negotiable"><?php echo JText::_('COM_DJCLASSIFIEDS_PRICE_IS_NEGOTIABLE'); ?></span>
    <?php } ?>
    </div>
<?php } ?>
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!