本文整理汇总了PHP中FRoute::friends方法的典型用法代码示例。如果您正苦于以下问题:PHP FRoute::friends方法的具体用法?PHP FRoute::friends怎么用?PHP FRoute::friends使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FRoute
的用法示例。
在下文中一共展示了FRoute::friends方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
">
<?php
echo JText::_('COM_EASYSOCIAL_TOOLBAR_PROFILE_FRIENDS');
?>
</a>
</li>
<?php
if ($this->config->get('friends.invites.enabled')) {
?>
<li class="<?php
echo $view == 'friends' && $layout == 'invite' ? 'active' : '';
?>
">
<a href="<?php
echo FRoute::friends(array('layout' => 'invite'));
?>
">
<?php
echo JText::_('COM_EASYSOCIAL_TOOLBAR_INVITE_FRIENDS');
?>
</a>
</li>
<?php
}
?>
<?php
if ($this->config->get('followers.enabled')) {
?>
<li class="<?php
示例2: array
<?php
echo $this->render('fields', 'user', 'profile', 'afterName', array('HEADLINE', $user));
?>
<?php
echo $this->render('widgets', 'user', 'profile', 'afterName', array($user));
?>
<?php
echo $this->render('module', 'es-profile-after-name');
?>
<nav class="es-profile-header-meta">
<span>
<a href="<?php
echo FRoute::friends(array('userid' => $user->getAlias()));
?>
">
<i class="ies-users"></i>
<?php
echo JText::sprintf(FD::string()->computeNoun('COM_EASYSOCIAL_GENERIC_FRIENDS', $user->getTotalFriends()), $user->getTotalFriends());
?>
</a>
</span>
<?php
if ($this->config->get('followers.enabled')) {
?>
<span>
<a href="<?php
echo FRoute::followers(array('userid' => $user->getAlias()));
?>
示例3: defined
<?php
/**
* @package EasySocial
* @copyright Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* EasySocial is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Unauthorized Access');
$listURL = $item->link ? $item->link : FRoute::friends(array('listid' => $item->uid));
?>
<li data-search-item
data-search-item-id="<?php
echo $item->id;
?>
"
data-search-item-type="<?php
echo $item->utype;
?>
"
data-search-item-typeid="<?php
echo $item->uid;
?>
"
>
<div class="es-item">
<div class="pull-left">
示例4:
?>
" />
</a>
</li>
<?php
}
?>
</ul>
<?php
}
?>
<?php
if ($params->get('showall_link', true)) {
?>
<div class="mod-small fd-small">
<a href="<?php
echo FRoute::friends();
?>
"><?php
echo JText::_('MOD_EASYSOCIAL_FRIENDS_VIEW_ALL');
?>
</a>
</div>
<?php
}
?>
</div>
</div>
</div>
示例5:
echo JText::_('COM_EASYSOCIAL_EMAILS_VIEW_PROFILE');
?>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<?php
echo JText::_('COM_EASYSOCIAL_EMAILS_FRIENDS_CHECKOUT_ALL_YOUR_FRIENDS');
?>
<a href="<?php
echo FRoute::friends(array('external' => true));
?>
" style="color:#00aeef; text-decoration:none;"><?php
echo JText::_('COM_EASYSOCIAL_EMAILS_FRIENDS_SEE_ALL');
?>
</a>
</p>
</td>
</tr>
示例6:
echo $list->default ? ' default' : '';
?>
"
data-list-<?php
echo $list->id;
?>
data-id="<?php
echo $list->id;
?>
"
data-title="<?php
echo $this->html('string.escape', $list->get('title'));
?>
"
data-url="<?php
echo FRoute::friends(array('listId' => $list->id));
?>
"
data-friends-listItem
>
<a href="javascript:void(0);">
<i class="ies-star ies-small filter-item-default"></i>
<?php
echo $this->html('string.escape', $list->get('title'));
?>
</a>
<span class="es-count-no pull-right" data-list-counter><?php
echo $list->getCount();
?>
示例7:
?>
">
<?php
echo JText::_('COM_EASYSOCIAL_FRIENDS_LIST_START_CONVERSATION');
?>
</a>
</li>
<li>
<hr />
</li>
<?php
}
?>
<li>
<a href="<?php
echo FRoute::friends(array('layout' => 'listForm', 'id' => $activeList->id));
?>
">
<?php
echo JText::_('COM_EASYSOCIAL_FRIENDS_LIST_EDIT');
?>
</a>
</li>
<li>
<a href="javascript:void(0);" data-friendListActions-add>
<?php
echo JText::_('COM_EASYSOCIAL_FRIENDS_LIST_ADD');
?>
</a>
</li>
<li>
示例8:
</ul>
<?php
} else {
?>
<div class="fd-small empty">
<?php
echo JText::_('APP_FRIENDS_NO_FRIENDS_CURRENTLY');
?>
</div>
<?php
}
?>
<?php
if ($total > 0) {
?>
<div>
<a href="<?php
echo FRoute::friends(array('userid' => $this->my->getAlias()));
?>
" class="fd-small"><?php
echo JText::_('APP_FRIENDS_VIEW_ALL');
?>
</a>
</div>
<?php
}
?>
</div>
</div>
示例9: defined
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Unauthorized Access');
?>
<div class="friends-result">
<div class="popbox-header">
<div class="es-title">
<?php
echo JText::_('COM_EASYSOCIAL_TOOLBAR_FRIEND_REQUESTS');
?>
</div>
<div class="es-action">
<a href="<?php
echo FRoute::friends(array('filter' => 'pending'));
?>
"><?php
echo JText::_('COM_EASYSOCIAL_VIEW_ALL');
?>
</a>
</div>
</div>
<div class="popbox-body">
<ul class="fd-reset-list es-item-list es-friend-approve-list<?php
echo !$connections ? ' is-empty' : '';
?>
">
<?php
if ($connections) {
?>
示例10: reindex
/**
* perform item reindexing
*
* @since 1.0
* @access public
*/
public function reindex()
{
// $coreType = array( 'users', 'photos', 'lists', 'albums', 'groups');
$coreType = array(SOCIAL_INDEXER_TYPE_USERS, SOCIAL_INDEXER_TYPE_PHOTOS, SOCIAL_INDEXER_TYPE_LISTS, SOCIAL_INDEXER_TYPE_ALBUMS, SOCIAL_INDEXER_TYPE_GROUPS);
//$coreType = array( 'photos');
$model = FD::model('indexer');
$total = 0;
foreach ($coreType as $type) {
$result = $model->getIndexingItem($type);
if ($result->count) {
$items = $result->data;
if (count($items) > 0) {
foreach ($items as $item) {
if ($type == SOCIAL_INDEXER_TYPE_USERS) {
$user = FD::user($item->uid);
$user->syncIndex();
} else {
$url = '';
$thumbnail = '';
switch ($type) {
case SOCIAL_INDEXER_TYPE_ALBUMS:
$album = FD::table('Album');
$album->load($item->uid);
$creator = FD::user($album->uid);
$userAlias = $creator->getAlias();
//$url = FRoute::albums( array( 'id' => $album->getAlias() , 'userid' => $userAlias , 'layout' => 'item' ) );
$url = $album->getPermalink();
$url = $this->removeAdminSegment($url);
if ($album->cover_id) {
$photo = FD::table('Photo');
$photo->load($album->cover_id);
$thumbnail = $photo->getSource('thumbnail');
}
break;
case SOCIAL_INDEXER_TYPE_PHOTOS:
$photo = FD::table('Photo');
$photo->load($item->uid);
// $url = FRoute::photos( array( 'layout' => 'item', 'id' => $photo->getAlias() ) );
$url = $photo->getPermalink();
$url = $this->removeAdminSegment($url);
$thumbnail = $photo->getSource('thumbnail');
break;
case SOCIAL_INDEXER_TYPE_LISTS:
$url = FRoute::friends(array('listid' => $item->uid));
$url = $this->removeAdminSegment($url);
break;
case SOCIAL_INDEXER_TYPE_GROUPS:
$group = FD::group($item->uid);
$url = $group->getPermalink();
$url = $this->removeAdminSegment($url);
$thumbnail = $group->getAvatar(SOCIAL_AVATAR_SQUARE);
break;
case 'users':
default:
break;
}
$tmpl = $this->getTemplate();
$tmpl->setContent($item->title, $item->content);
$tmpl->setSource($item->uid, $item->utype, $item->creatorid, $url);
if ($thumbnail) {
$tmpl->setThumbnail($thumbnail);
}
$this->index($tmpl);
}
}
//end foreach
}
//if count(items)
}
$total = $total + $result->count;
}
// now we need to trigger
$indexerCount = 0;
$dispatcher = FD::dispatcher();
$args = array(&$indexerCount);
// @trigger: onIndexerReIndex
$dispatcher->trigger(SOCIAL_APPS_GROUP_USER, 'onIndexerReIndex', $args);
$total = $total + $indexerCount;
return $total;
}
示例11: syncIndex
public function syncIndex()
{
$indexer = FD::get('Indexer');
$item = $indexer->getTemplate();
$item->setContent($this->title, $this->title . ' ' . $this->description);
// $url = FRoute::_( 'index.php?option=com_easysocial&view=friends&listid=' . $this->id );
$url = FRoute::friends(array('listid' => $this->id));
$url = '/' . ltrim($url, '/');
$url = str_replace('/administrator/', '/', $url);
$item->setSource($this->id, SOCIAL_INDEXER_TYPE_LISTS, $this->user_id, $url);
$date = FD::date();
$item->setLastUpdate($date->toMySQL());
return $indexer->index($item);
}