"> <?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
<?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())); ?>
<li class="filter-item<?php echo !$activeList->id && $filter == 'invites' ? ' active' : ''; ?> " data-friends-filter data-filter="invites" data-title="<?php echo JText::_('COM_EASYSOCIAL_PAGE_TITLE_FRIENDS_REQUESTS'); ?> " data-userid="<?php echo $user->id; ?> " data-url="<?php echo FRoute::friends(array('filter' => 'invites', 'userid' => $this->my->id == $user->id ? '' : $user->getAlias())); ?> " > <a href="javascript:void(0);"><?php echo JText::_('COM_EASYSOCIAL_FRIENDS_INVITED_FRIENDS'); ?> </a> <span class="es-count-no pull-right" data-invites-count><?php echo $totalInvites; ?> </span> </li> <?php } ?>
<?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">
?> " /> </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>
</a> </div> <?php } ?> </div> </div> </li> <?php } ?> </ul> <div class="pull-right pr-10"> <a href="<?php echo FRoute::friends(array('filter' => 'suggest')); ?> " class="fd-small"><?php echo JText::_('APP_FRIENDS_SUGGEST_FRIENDS_VIEW_ALL'); ?> </a> </div> <?php } else { ?> <div class="fd-small empty"> <?php echo JText::_('APP_FRIENDS_SUGGEST_FRIENDS_NO_FRIENDS_SUGGESTION'); ?> </div> <?php
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>
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(); ?>
?> "> <?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>
/** * Post processing of delete list item. * * @since 1.0 * @access public * @param null * @return null */ public function deleteList() { $info = FD::info(); $info->set($this->getMessage()); $url = FRoute::friends(array(), false); $this->redirect($url); $this->close(); }
</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>
* 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) { ?>
?> <?php } else { ?> <li class="empty small"> <?php echo JText::_('APP_FRIENDS_WIDGET_PROFILE_NO_MUTUAL_FRIENDS'); ?> </li> <?php } ?> </ul> <?php if ($total > 0) { ?> <div> <a href="<?php echo FRoute::friends(array('userid' => $user->getAlias(), 'filter' => 'mutual')); ?> " class="fd-small"><?php echo JText::_('APP_FRIENDS_WIDGET_PROFILE_VIEW_ALL'); ?> </a> </div> <?php } ?> </div> </div>
/** * 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; }
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); }