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

$app = JFactory::getApplication();
$par = $this->par;
$item = $this->item;

?>

<?php if($this->item->event->beforeDJClassifiedsDisplayContent){ ?>
	<div class="djcf_before_desc">
		<?php echo $item->event->beforeDJClassifiedsDisplayContent; ?>
	</div>
<?php } ?>

<?php if(($par->get('show_description','1') && $item->description) || ($par->get('show_introdesc','1') && $item->intro_desc && $par->get('intro_desc_in_advert','0')) || !empty($item->tabs)){

	echo '<div class="description"><h2>'.JText::_('COM_DJCLASSIFIEDS_DESCRIPTION').'</h2>';
		if($par->get('show_introdesc','1') && $item->intro_desc && $par->get('intro_desc_in_advert','0')){
			echo '<div class="intro_desc_content">'.$item->intro_desc.'</div>';
		}	
		if($item->description){
			echo '<div class="desc_content" itemprop="description">';
				if($par->get('desc_plugins','')){
					echo JHTML::_('content.prepare',$item->description);
				}else{
					echo $item->description;
				}
			echo '</div>';
		}
		if(!empty($item->tabs)){ ?>
           	<div class="djcf_tabs">
           		<?php echo JHTML::_('content.prepare', $item->tabs); ?>
           		<div class="clear_both"></div>
           	</div>
        <?php } 
		
	echo '</div>';	

	echo DJClassifiedsTheme::renderModule('djcf-item-description');

	if(!$this->item_payments){
		echo DJClassifiedsTheme::renderModule('djcf-item-description-free');
	}
	?>

	<script>
		jQuery(function($){
			$('.djcf_tabs .accordion-toggle').click(function(){
				$(this).closest('.djcf_tabs').find('.accordion-body').stop(true, false).slideToggle('100');
			});
			$('.djcf_tabs li.nav-toggler').click(function(){
				$(this).closest('.djcf_tabs').find('div.tab-pane').stop(true, false).slideToggle('150');
			});
		});
	</script>

<?php } ?>
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

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