AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
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/annonces/components/com_djclassifieds/views/items/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/annonces/components/com_djclassifieds/views/items/tmpl/amp.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');

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

?>
	<div class="dj-items-blog">
		<?php if($this->main_cat){ ?>
			<h1><?php echo JText::_($this->main_cat->name); ?></h1>
		<?php } ?>
	<div class="djcf_items_blog">
	<?php 		
		foreach($this->items as $ii => $i){
			$row = '';
			if($i->promotions){
				$row.=' promotion '.str_ireplace(',', ' ', $i->promotions);
			}
			if($i->auction){
				$row .=' item_auction';
			}
			$icon_fav=0;
			if($user->id && $par->get('favourite','1') && $i->f_id){
				$icon_fav=1;
				$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';
			}
			
			$schema_type = $i->c_schema_type ? $i->c_schema_type : 'Offer';
			echo '<div class="item_box'.$row.'" itemscope="itemscope" itemtype="https://schema.org/'.$schema_type.'"><div class="item_box_in clearfix">';
			echo '<div class="title">';
				echo '<h2 itemprop="name"><a href="'.$i->item_uri.$this->anch.'">'.$i->name.'</a></h2>';			
				if($i->type_id){
					echo DJClassifiedsType::getTypePreview($i->type_id);
				}								
				if($icon_fav){
					echo '<span class="fav_icon fav_icon_a"></span>';
				}			
				if($icon_new){
					echo '<span class="new_icon">'.JText::_('COM_DJCLASSIFIEDS_NEW').'</span>';
				}
				if($i->auction){
					echo '<span class="auction_icon"></span>';
				}
				if(strstr($i->promotions, 'p_special')){
					echo '<span class="p_special_icon"></span>';
				}
				
			echo '</div>';			
			echo '<div class="blog_det">';
					if($i->images){ ?>
						<div class="item_img">
							<?php if($i->images){
							$img_info = getimagesize(JPATH_ROOT.$i->images[0]->thumb_amp_items);
							$img_w_h = (isset($img_info[3])? $img_info[3] : '' ); ?>
							
				            	<amp-carousel width="<?php echo $img_info[0]; ?>"
							      height="<?php echo $img_info[1]; ?>"
							      layout="responsive"
							      type="slides">
							      <?php foreach($i->images as $img) { 
							      	$img_info = getimagesize(JPATH_ROOT.$img->thumb_amp_items);
									$img_w_h = (isset($img_info[3])? $img_info[3] : '' );
							      	?>
							      	<amp-img src="<?php echo JURI::base(true).$img->thumb_amp_items; ?>"
								        <?php echo $img_w_h; ?>
								        layout="responsive"
								        alt="<?php echo $img->caption ?>"></amp-img>
							      <?php } ?>
							    </amp-carousel>
							<?php } ?>													
						</div>
				<?php }																													
					echo '<div class="category" itemprop="category"><span class="label_title"></span>';	
					if($i->event->DJClassifiedsDisplayCategory){
						echo $i->event->DJClassifiedsDisplayCategory;
					}else{			
						echo '<a href="'.DJClassifiedsSEO::getCategoryRoute($i->cat_id.':'.$i->c_alias).'">'.JText::_($i->c_name).'</a>';
					}
					echo '</div>';
					
					if($par->get('blog_location','1') && $i->r_name && $par->get('show_regions','1')){
						echo '<div class="region">'.JText::_($i->r_name).'</div>';
					}
					if($par->get('blog_price','1') && $i->price && $par->get('show_price','1')){
						echo '<div class="price"  itemprop="offers" itemscope="" itemtype="https://schema.org/Offer">';
								echo '<span itemprop="price">'.$i->price.'</span>';
								echo '<span itemprop="priceCurrency">'.($i->currency ? $i->currency : $par->get('unit_price','EUR')).'</span>';
						echo '</div>';	
					}
					
					if($i->intro_desc){
						echo '<div class="item_box_bottom">';		
							echo '<div class="item_desc"><span class="label_title">'.JText::_('COM_DJCLASSIFIEDS_DESCRIPTION').'</span>';
								echo '<span class="desc_info" itemprop="description">'.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') ? '...' : '');
							echo '</span></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_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>';
		}
		?>	
		<?php
			echo '<div class="clear_both"></div>';			
			
			if(!$this->items){
				echo '<div class="no_results">';
					if($app->input->getInt('se')){
						echo JText::_('COM_DJCLASSIFIEDS_NO_RESULTS');	
					}else if($app->input->getInt('cid', 0)){
						echo JText::_('COM_DJCLASSIFIEDS_NO_CATEGORY_RESULTS');
					}
				echo '</div>';
			}
		?>
		</div>
		<?php 
		if($this->pagination->getPagesLinks()){
			echo '<div class="pagination">';
			echo $this->pagination->getPagesLinks();
			echo '</div>';
		}		
		?>
	</div>	

Anon7 - 2022
AnonSec Team