$toolTipArray = array('className' => 'djcf'); JHTML::_('behavior.tooltip', '.Tips1', $toolTipArray); $par = JComponentHelper::getParams('com_djclassifieds'); $config = JFactory::getConfig(); $app = JFactory::getApplication(); $main_id = JRequest::getVar('cid', 0, '', 'int'); $user = JFactory::getUser(); //print_r($this->profile);die(); ?> <div class="profile_box"> <?php //if($this->profile['img'] || $par->get('profile_avatar_source','')){ $avatar_w = $par->get('profth_width', '120') + 10; echo '<span style="width: ' . $avatar_w . 'px" class="profile_img" >'; if ($par->get('profile_avatar_source', '')) { echo DJClassifiedsSocial::getUserAvatar($this->profile['id'], $par->get('profile_avatar_source', ''), 'L'); } else { if ($this->profile['img']) { echo '<img src="' . JURI::base(true) . $this->profile['img']->path . $this->profile['img']->name . '_th.' . $this->profile['img']->ext . '" />'; } else { echo '<img style="width:' . $par->get('profth_width', '120') . 'px" src="' . JURI::base(true) . '/components/com_djclassifieds/assets/images/default_profile.png" />'; } } echo '</span>'; //} ?> <div class="profile_name_data"> <div class="main_cat_title"> <h2 class="profile_name"><?php echo $this->profile['name']; ?>
<span class="row_label"><?php echo JText::_('COM_DJCLASSIFIEDS_CREATED_BY'); ?> </span> <div class="row_value"> <?php if ($item->user_id == 0) { echo JText::_('COM_DJCLASSIFIEDS_GUEST'); } else { $uid_slug = $item->user_id . ':' . DJClassifiedsSEO::getAliasName($item->username); ?> <div class="profile_item_box"> <?php echo '<a class="profile_img" href="index.php?option=com_djclassifieds&view=profile&uid=' . $uid_slug . DJClassifiedsSEO::getMainAdvertsItemid() . '">'; 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 src="' . JURI::base(true) . $this->profile['img']->path . $this->profile['img']->name . '_ths.' . $this->profile['img']->ext . '" />'; } else { echo '<img style="width:' . $par->get('prof_smallth_width', '50') . 'px" src="' . JURI::base(true) . '/components/com_djclassifieds/assets/images/default_profile_s.png" />'; } } echo '</a>'; ?> <div class="profile_name_data"> <?php echo '<a class="profile_name" href="index.php?option=com_djclassifieds&view=profile&uid=' . $uid_slug . DJClassifiedsSEO::getMainAdvertsItemid() . '">' . $item->username . ' <span>(' . $this->user_items_c . ')</span></a>'; ?> <?php if ($this->profile['data']) {