示例#1
0
	
   
    <?php 
}
?>
        
        </div>

    <?php 
for ($i = 0, $x = count($this->rows); $i < $x; $i++) {
    $row = $this->rows[$i];
    $status = $jbuser->isOnline($row->user_id);
    //get user online status
    $viewerInfo = $jbuser->getUserGroupInfo($user->id, null);
    // this holds the info of profile viewer
    $isFavourite = JblanceHelper::checkFavorite($row->user_id, 'profile');
    $isMine = $user->id == $row->user_id;
    $link_sendpm = JRoute::_('index.php?option=com_jblance&view=message&layout=compose&username='******'class="media-object" style="min-width:100%; height:80px;"';
    $avatar = JblanceHelper::getLogo($row->user_id, $attrib);
    echo !empty($avatar) ? LinkHelper::GetProfileLink($row->user_id, $avatar, '', '', 'media-left') : '&nbsp;';
    ?>
            <div class="media-body">
                <h4 class="media-heading">
                    <?php 
    $stats = $status ? 'online' : 'offline';
    ?>
                    <span class="online-status <?php 
示例#2
0
    ?>
                    <!-- show invite to project to non-profile-owner, if profile owner can bid and profile viewer can post project -->

                    <div class="btn-group pull-right">
                        <?php 
    $link_invite = JRoute::_('index.php?option=com_jblance&view=project&layout=invitetoproject&id=' . $userid . '&tmpl=component');
    ?>
                        <a href="<?php 
    echo $link_invite;
    ?>
" class="btn btn-success jb-modal" rel="{handler: 'iframe', size: {x: 660, y: 600}}"><i class="material-icons">person_add</i> <?php 
    echo JText::_('COM_JBLANCE_INVITE_TO_PROJECT');
    ?>
</a>
                        <?php 
    $isFavourite = JblanceHelper::checkFavorite($userid, 'profile');
    // check if profile owner is favoured by viewer
    ?>
                        <span id="fav-msg-<?php 
    echo $userid;
    ?>
">
                            <?php 
    if ($isFavourite > 0) {
        ?>
                                <a onclick="favourite('<?php 
        echo $userid;
        ?>
', -1, 'profile');" href="javascript:void(0);" class="btn btn-info"><span><i class="material-icons">star</i></span> <?php 
        echo JText::_('COM_JBLANCE_REMOVE_FAVOURITE');
        ?>