Exemplo n.º 1
0
" 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>
Exemplo n.º 2
0
    ?>
				<?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 
Exemplo n.º 3
0
 public function getLink()
 {
     $link = FRoute::photos(array('id' => $this->item->contextId));
     return $link;
 }
Exemplo n.º 4
0
<?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>
Exemplo n.º 5
0
 /**
  * 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);
 }