$show_rating = intval($params->get('show_usertype', 0)); for ($i = 0, $n = count($rows); $i < $n; $i++) { $row = $rows[$i]; $link_detail = JRoute::_('index.php?option=com_jblance&view=user&layout=viewprofile&id=' . $row->user_id . $Itemid); ?> <div class="col-md-2 col-sm-4 col-xs-6"> <div class="thumbnail"> <a class="thumbnail" href= "<?php echo $link_detail; ?> "> <?php if ($show_logo) { $attrib = 'class="img-responsive"'; echo JblanceHelper::getLogo($row->user_id, $attrib); } ?> </a> <div class="media-body"> <h5 class="text-center"> <?php echo LinkHelper::GetProfileLink($row->user_id, $row->{$nameOrUsername}); ?> </h5> <?php if ($show_rating == 1) { JblanceHelper::getAvarageRate($row->user_id, 1); } ?> </div>
<div class="col-md-12"> <h4><?php echo JText::_('COM_JBLANCE_REVIEWS'); ?> :</h4> <?php for ($i = 0, $x = count($this->ratings); $i < $x; $i++) { $rating = $this->ratings[$i]; $rate = JblanceHelper::getUserRating($rating->target, $rating->order_id, 'COM_JBLANCE_SERVICE'); $rateDate = JFactory::getDate($rating->rate_date); ?> <div class="media"> <div class="col-md-1 col-xs-3 col-sm-3"> <?php $attrib = 'width=56px; height=56px; class="img-responsive"'; $avatar = JblanceHelper::getLogo($rating->actor, $attrib); echo !empty($avatar) ? LinkHelper::GetProfileLink($rating->actor, $avatar, '', '', ' pull-left') : ' '; ?> </div> <div class="media-body"> <span class="media-heading boldfont"><?php echo LinkHelper::GetProfileLink($rating->actor); ?> </span> <span class="dis-inl-blk"><?php echo JblanceHelper::getRatingHTML($rate); ?> </span> <span class="dis-inl-blk font12"><?php
?> </span> </td> <?php } ?> <?php if ($show_publisher == 1) { ?> <td data-title="<?php echo JText::_('MOD_JBLANCE_PUBLISHER'); ?> "> <?php $attrib = 'class="img-thumbnail" style="width: auto; height: 45px;"'; echo JblanceHelper::getLogo($row->publisher_userid, $attrib); ?> <?php echo LinkHelper::GetProfileLink($row->publisher_userid, $buyer->{$nameOrUsername}); ?> </td> <?php } ?> </tr> <?php $k = 1 - $k; } ?> </tbody> </table>
</div> <?php } else { ?> <?php if (!count($this->bids)) { echo JText::_('COM_JBLANCE_THERE_ARE_NO_BIDS_YET'); } else { for ($i = 0, $n = count($this->bids); $i < $n; $i++) { $bid = $this->bids[$i]; ?> <div class="row"> <div class="col-sm-4 col-md-1"> <?php $attrib = 'width=auto height=auto class="img-thumbnail"'; $avatar = JblanceHelper::getLogo($bid->user_id, $attrib); echo !empty($avatar) ? LinkHelper::GetProfileLink($bid->user_id, $avatar) : ' '; ?> </div> <div class="col-sm-4 col-md-7"> <h5 class="media-heading"> <?php echo LinkHelper::GetProfileLink(intval($bid->user_id), $this->escape($bid->{$nameOrUsername})); ?> </h5> <p><?php echo $bid->details ? $bid->details : JText::_('COM_JBLANCE_DETAILS_NOT_PROVIDED'); ?> </p> <?php $rate = JblanceHelper::getAvarageRate($bid->user_id, true);
</div> <?php } } else { echo JText::_('MOD_JBLANCE_NO_ACTIVITIES'); } } elseif ($show_type == 'message') { if (count($rows)) { for ($i = 0, $n = count($rows); $i < $n; $i++) { $row = $rows[$i]; $userDtl = JFactory::getUser($row->idFrom); ?> <div class="media jb-borderbtm-dot"> <?php $attribs = 'class="pull-left img-thumbnail" style="width: auto; height: 60px;"'; $avatar = JblanceHelper::getLogo($row->idFrom, $attribs); echo $avatar; ?> <div class="media-body"> <?php echo LinkHelper::GetProfileLink($row->idFrom, $userDtl->username); ?> <br> <?php if ($row->approved == 1) { echo $row->message; } else { echo '<small>' . JText::_('COM_JBLANCE_PRIVATE_MESSAGE_WAITING_FOR_MODERATION') . '</small>'; } ?> <div>
if ($count > 0) { ?> <div id="messageList" class="jb-chat-panel"> <ul class="jb-chat"> <?php $parent = isset($this->messages[0]) ? $this->messages[0]->id : 0; //parent is the 0th element. for ($i = 0, $x = count($this->messages); $i < $x; $i++) { $message = $this->messages[$i]; $userDtl = JFactory::getUser($message->idFrom); ?> <li class="left clearfix"> <span class="jb-chat-img pull-left"> <?php $attrib = 'width=56 height=56 class="img-polaroid"'; $avatar = JblanceHelper::getLogo($message->idFrom, $attrib); echo !empty($avatar) ? LinkHelper::GetProfileLink($message->idFrom, $avatar) : ' '; ?> </span> <div class="jb-chat-body clearfix"> <div class="header"> <strong class="primary-font"><?php echo LinkHelper::GetProfileLink($message->idFrom, $userDtl->{$nameOrUsername}); ?> </strong> <small class="pull-right text-muted"> <span class="icon-time"></span> <?php echo JHtml::_('date', $message->date_sent, $dformat, true); ?> </small> </div>
echo JText::_('COM_JBLANCE_SEND_MESSAGE'); ?> </a> </div> <?php } ?> </h3> </div> <div class="panel-body"> <div class="row-fluid"> <div class="col-md-4"> <?php $att = "class='img-thumbnail img-responsive'"; $avatar = JblanceHelper::getLogo($userid, $att); echo $avatar; ?> <?php if ($isMine) { ?> <a href="<?php echo $link_edit_picture; ?> "> <i class="material-icons">insert_photo</i> <?php echo JText::_('COM_JBLANCE_EDIT_PICTURE'); ?> </a>