当前位置: 首页>>代码示例>>PHP>>正文


PHP FRoute::photos方法代码示例

本文整理汇总了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>
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:item.php

示例2: getLink

 public function getLink()
 {
     $link = FRoute::photos(array('id' => $this->item->contextId));
     return $link;
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:5,代码来源:photos.php

示例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>
开发者ID:knigherrant,项目名称:decopatio,代码行数:24,代码来源:photo.response.php

示例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);
 }
开发者ID:ppantilla,项目名称:bbninja,代码行数:24,代码来源:photo.php


注:本文中的FRoute::photos方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。