本文整理汇总了PHP中FRoute::photos方法的典型用法代码示例。如果您正苦于以下问题:PHP FRoute::photos方法的具体用法?PHP FRoute::photos怎么用?PHP FRoute::photos使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FRoute
的用法示例。
在下文中一共展示了FRoute::photos方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
" 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>
示例2: getLink
public function getLink()
{
$link = FRoute::photos(array('id' => $this->item->contextId));
return $link;
}
示例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');
?>
<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>
示例4: getPermalink
/**
* 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);
}