Current File : /home/pacjaorg/public_html/km/components/com_djclassifieds/views/item/tmpl/default_profile.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');
$par = $this->par;
$item = $this->item;
?>
<div class="row_gd user_name">
<span class="row_label"><?php echo JText::_('COM_DJCLASSIFIEDS_CREATED_BY'); ?></span>
<div class="row_value" itemprop="seller" itemscope itemtype="https://schema.org/Person">
<?php if($item->user_id==0){ ?>
<?php echo JText::_('COM_DJCLASSIFIEDS_GUEST'); ?>
<?php }else{ ?>
<div class="profile_item_box">
<?php
echo '<a itemprop="url" class="profile_img" href="'.$item->profile_uri.'">';
if($par->get('profile_avatar_source','')){
echo DJClassifiedsSocial::getUserAvatar($item->user_id, $par->get('profile_avatar_source',''),'S');
}else{
if($this->profile['img']){
echo '<img itemprop="image" alt="'.$item->authorname.' - avatar" src="'.JURI::base(true).$this->profile['img']->path.$this->profile['img']->name.'_ths.'.$this->profile['img']->ext.'" />';
}else{
echo '<img itemprop="image" alt="'.$item->authorname.' - avatar" style="'.DJClassifiedsImage::getThumbStyle('p_ths',$par).'" src="'.JURI::base(true).'/'.DJClassifiedsTheme::getImgAssetPath('default_profile.svg').'" />';
}
}
echo '</a>';
?>
<div class="profile_name_data">
<?php echo '<a title="'.JText::_('COM_DJCLASSIFIEDS_SEE_ALL_USER_ADVERTS').'" class="profile_name" href="'.$item->profile_uri.'" itemprop="name">';
echo $item->authorname;
if($item->user_id && isset($this->profile['details']->verified)){
if($this->profile['details']->verified==1){
echo '<span class="verified_icon" title="'.JText::_('COM_DJCLASSIFIEDS_VERIFIED_SELLER').'"></span>';
}
}
echo '</a>';
?>
<?php if($this->profile['data']){ ?>
<div class="profile_data">
<?php echo DJClassifiedsTheme::renderLayout('customfields', array('fields' => $this->profile['data'], 'class' => 'profile_row')); ?>
</div>
<?php } ?>
<?php if($this->user_items_c > 1){ ?>
<div class="profile_adverts_link">
<a href="<?php echo $item->profile_uri.'#profile_items'; ?>" alt="">
<?php echo JText::_('COM_DJCLASSIFIEDS_VIEW_ALL_ADS').' <span>('.$this->user_items_c.')</span>'; ?>
</a>
</div>
<?php } ?>
<?php if($par->get('profile_social_link','')){ ?>
<div class="profile_social_link">
<a href="<?php echo DJClassifiedsSocial::getUserProfileLink($item->user_id,$par->get('profile_social_link','')); ?>" alt="">
<?php echo JText::_('COM_DJCLASSIFIEDS_VISIT_SOCIAL_PROFILE'); ?>
</a>
</div>
<?php } ?>
</div>
</div>
<?php if($item->event->onAfterDJClassifiedsDisplayAdvertAuthor) { ?>
<div class="djcf_after_author">
<?php echo $this->item->event->onAfterDJClassifiedsDisplayAdvertAuthor; ?>
</div>
<?php } ?>
<?php } ?>
</div>
</div>