當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。