" target="_blank"> <?php echo JText::_('COM_EASYSOCIAL_PHOTOS_VIEW_ORIGINAL'); ?> </a> </li> <?php } ?> <?php if ($lib->downloadable()) { ?> <li data-photo-download-button> <a href="<?php echo FRoute::photos(array('id' => $photo->getAlias(), 'layout' => 'download')); ?> "> <?php echo JText::_("COM_EASYSOCIAL_DOWNLOAD_PHOTO"); ?> </a> </li> <?php } ?> <?php if ($lib->canSetProfilePicture()) { ?> <li data-photo-profileAvatar-button>
?> <?php for ($i = 0; $i < $limit; $i++) { ?> <?php if (!empty($photos[$i])) { ?> <?php $photo = $photos[$i]; ?> <li data-es-photo-group="album:<?php echo $photo->album_id; ?> "> <a href="<?php echo FRoute::photos(array('id' => $photo->getAlias(), 'layout' => 'item', 'uid' => $user->getAlias(), 'type' => SOCIAL_TYPE_USER)); ?> " data-es-provide="tooltip" data-original-title="<?php echo $photo->get('title'); ?> " data-placement="bottom" data-es-photo="<?php echo $photo->id; ?> " class="es-avatar " > <img src="<?php
public function getLink() { $link = FRoute::photos(array('id' => $this->item->contextId)); return $link; }
<?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'); ?> <div data-photo-likes-holder class="es-item-likes"> <?php echo FD::likes($photo->id, SOCIAL_TYPE_PHOTO, 'upload', SOCIAL_APPS_GROUP_USER)->toString(); ?> </div> <div data-photo-comments-holder class="es-item-comments"> <?php echo FD::comments($photo->id, SOCIAL_TYPE_PHOTO, 'upload', SOCIAL_APPS_GROUP_USER, array('url' => FRoute::photos(array('layout' => 'item', 'id' => $photo->id))))->getHTML(); ?> </div>
/** * Returns the permalink to the photo * * @since 1.0 * @access public * @return string */ public function getPermalink($xhtml = true, $external = false, $layout = 'item', $sef = true) { $options = array('layout' => $layout, 'id' => $this->getAlias(), 'type' => $this->type, 'sef' => $sef); if ($this->type == SOCIAL_TYPE_GROUP) { $options['uid'] = FD::group($this->uid)->getAlias(); } if ($this->type == SOCIAL_TYPE_EVENT) { $options['uid'] = FD::event($this->uid)->getAlias(); } if ($this->type == SOCIAL_TYPE_USER) { $options['uid'] = FD::user($this->uid)->getAlias(); } if ($external) { $options['external'] = true; } return FRoute::photos($options, $xhtml); }