Current File : /home/pacjaorg/public_html/km/components/com_djclassifieds/views/item/tmpl/default_adddetails.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('Restricted access');

$item = $this->item;
$par = $this->par;

if($par->get('showaddetails','1') || $par->get('show_ad_added_date','1')=='2' || ($par->get('show_ad_modified_date','1')=='2' && $item->date_mod!='0000-00-00 00:00:00')){ ?>
	<?php $addetails = $par->get('addetails', array('item_id','hits','date_exp','cats')); ?>
	<div class="additional"><h2><?php echo JText::_('COM_DJCLASSIFIEDS_AD_DETAILS'); ?></h2>
		<?php if(in_array('item_id', $addetails)){ ?>
			<div class="row item_id">
				<span class="row_label"><?php echo JText::_('COM_DJCLASSIFIEDS_AD_ID'); ?></span>
				<span class="row_value"><?php echo $item->id; ?></span>
			</div>
		<?php } ?>
		<?php if(in_array('hits', $addetails)){ ?>
			<div class="row hits">
				<span class="row_label"><?php echo JText::_('COM_DJCLASSIFIEDS_DISPLAYED'); ?></span>
				<span class="row_value"><?php echo $item->display; ?></span>
			</div>
		<?php } ?>
		<?php if($par->get('show_ad_added_date','1')==2){ ?>
			<div class="row date_start">
				<span class="row_label"><?php echo JText::_('COM_DJCLASSIFIEDS_AD_ADDED'); ?></span>
				<span class="row_value"><?php echo DJClassifiedsTheme::formatDate(strtotime($item->date_start)); ?></span>
			</div>
		<?php } ?>
		<?php if($par->get('show_ad_modified_date','1')==2 && $item->date_mod!='0000-00-00 00:00:00'){ ?>
			<div class="row date_mod">
				<span class="row_label"><?php echo JText::_('COM_DJCLASSIFIEDS_AD_MODIFIED'); ?></span>
				<span class="row_value"><?php echo DJClassifiedsTheme::formatDate(strtotime($item->date_mod),'',$par->get('date_format_type_item',0)); ?></span>
			</div>
		<?php } ?>
		<?php if(in_array('date_exp', $addetails)){ ?>
			<div class="row date_exp">
				<span class="row_label"><?php echo JText::_('COM_DJCLASSIFIEDS_AD_EXPIRES'); ?></span>
				<span class="row_value"><?php echo DJClassifiedsTheme::formatDate(strtotime($item->date_exp)); ?></span>
			</div>
		<?php } ?>
		<?php if(in_array('cats', $addetails)){ ?>
			<div class="row cats">
				<span class="row_label"><?php echo JText::_('COM_DJCLASSIFIEDS_IN_CATEGORIES'); ?></span>
				<span class="row_value">
					<?php
						echo '<a href="'.DJClassifiedsSEO::getCategoryRoute($item->cat_id.':'.$item->c_alias).'">'.JText::_($item->c_name).'</a>';
						foreach($item->extra_cats as $ecat){
							echo ', <a href="'.DJClassifiedsSEO::getCategoryRoute($ecat->id.':'.$ecat->alias).'">'.JText::_($ecat->name).'</a>';
						}
					?>
				</span>
			</div>
		<?php } ?>
	</div>
<?php } ?>
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

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