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

JHtml::_('jquery.framework');

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

?>
<div class="localization_det<?php echo !$this->fields ? ' loc_det_wide' : ''; ?>">
	<h2><?php echo JText::_('COM_DJCLASSIFIEDS_LOCALIZATION'); ?></h2>
	<?php 
		$addr_arr = array();
		if($par->get('show_address','1') && $item->address){
			$addr_arr[] = $item->address;
		}
		if($par->get('show_postcode','0') && $item->post_code){
			$addr_arr[] = $item->post_code;
		}
	?>
	<?php if(($par->get('show_regions','1') && $this->address) || $addr_arr){ ?>
		<div class="row address">
			<span class="row_value">
				<?php 
					if($par->get('show_regions','1') && $this->address){
						echo $this->address.($addr_arr ? '<br>' : '');
					}
					echo implode(', ', $addr_arr);
				?>
			</span>
		</div>
	<?php } ?>
	<?php if($item->event->onBeforeDJClassifiedsDisplayAdvertMap){ ?>
		<div class="djcf_custom_map">
			<?php echo $item->event->onBeforeDJClassifiedsDisplayAdvertMap; ?>
		</div>
	<?php } ?>				
		
	<?php if($par->get('show_googlemap','0')=='1' || $par->get('show_googlemap','0')=='2'){ ?>
		<?php echo DJClassifiedsTheme::renderLayout('googlemap', array('lat' => $item->latitude, 'lon' => $item->longitude, 'region_id' => $item->region_id, 'address' => $item->address, 'icon_img' => DJClassifiedsGeocode::getMarkerIconImg($par, $item->cat_id), 'context' => 'item', 'par' => $par)); ?>
	<?php }	?>
</div>
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

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