本文整理汇总了PHP中CFriendsHelper::getUserCog方法的典型用法代码示例。如果您正苦于以下问题:PHP CFriendsHelper::getUserCog方法的具体用法?PHP CFriendsHelper::getUserCog怎么用?PHP CFriendsHelper::getUserCog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFriendsHelper
的用法示例。
在下文中一共展示了CFriendsHelper::getUserCog方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _getMutualFriendsHTML
public static function _getMutualFriendsHTML($userid = null)
{
$my = CFactory::getUser();
if ($my->id == $userid) {
return;
}
$friendsModel = CFactory::getModel('Friends');
$friends = $friendsModel->getFriends($userid, 'latest', false, 'mutual');
$html = "<ul class='joms-list--friend single-column'>";
if (sizeof($friends)) {
foreach ($friends as $friend) {
$html .= "<li class='joms-list__item'>";
$html .= "<div class='joms-list__avatar'>";
$html .= '<div class="joms-avatar ' . CUserHelper::onlineIndicator($friend) . '"><a href="' . CRoute::_('index.php?option=com_community&view=profile&userid=' . $friend->id) . '">';
$html .= '<img src="' . $friend->getThumbAvatar() . '" data-author="' . $friend->id . '" />';
$html .= "</a></div></div>";
$html .= "<div class='joms-list__body'>";
$html .= CFriendsHelper::getUserCog($friend->id, null, null, true);
$html .= CFriendsHelper::getUserFriendDropdown($friend->id);
$html .= '<a href="' . CRoute::_('index.php?option=com_community&view=profile&userid=' . $friend->id) . '">';
$html .= '<h4 class="joms-text--username">' . $friend->getDisplayName() . '</h4></a>';
$html .= '<span class="joms-text--title">' . JText::sprintf('COM_COMMUNITY_TOTAL_MUTUAL_FRIENDS', CFriendsHelper::getTotalMutualFriends($friend->id)) . '</span>';
$html .= "</div></li>";
}
$html .= "</ul>";
} else {
$html .= JText::_('COM_COMMUNITY_NO_MUTUAL_FRIENDS');
}
return $html;
}
示例2:
<div class="joms-list__body">
<a href="<?php
echo $user->profileLink;
?>
"><h4 class="joms-text--username"><?php
echo $user->getDisplayName();
?>
</h4></a>
<span class="joms-text--title"><?php
echo JText::sprintf('COM_COMMUNITY_TOTAL_MUTUAL_FRIENDS', CFriendsHelper::getTotalMutualFriends($user->id));
?>
</span>
</div>
<div class="joms-list__actions">
<?php
echo CFriendsHelper::getUserCog($user->id, null, null, true);
?>
<?php
echo CFriendsHelper::getUserFriendDropdown($user->id);
?>
</div>
</li>
<?php
}
?>
</ul>
</div>
<?php
}
示例3:
?>
');">
<button class="joms-button--neutral joms-button--smallest joms-button--full-small"><?php
echo JText::_('COM_COMMUNITY_FRIENDS_PENDING_ACTION_REJECT');
?>
</button>
</a>
</div>
<?php
}
?>
</div>
<div class="joms-list__actions">
<?php
echo CFriendsHelper::getUserCog($member->id, $groupid, null, true);
?>
<?php
//echo CFriendsHelper::getUserFriendDropdown($member->id);
?>
</div>
</li>
<?php
}
?>
</ul>
<?php
}
?>
<?php
}
示例4:
echo $guest->getDisplayName();
?>
</h4>
</a>
<span class="joms-text--title">
<?php
echo $guest->friendsCount;
?>
<?php
echo JText::sprintf(CStringHelper::isPlural($guest->friendsCount) ? 'COM_COMMUNITY_FRIENDS_COUNT_MANY' : 'COM_COMMUNITY_FRIENDS_COUNT', $guest->friendsCount);
?>
</span>
<div class="joms-list__actions">
<?php
echo CFriendsHelper::getUserCog($guest->id, null, $eventid, true);
?>
<?php
// echo CFriendsHelper::getUserFriendDropdown($guest->id);
?>
</div>
</div>
<?php
if ($type == 6) {
?>
<div class="joms-list__button--dropdown">
<button class="joms-button--neutral joms-button--smallest" onclick="joms.api.eventRejectGuest('<?php
echo $eventid;
?>
', '<?php