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


PHP FRoute::albums方法代码示例

本文整理汇总了PHP中FRoute::albums方法的典型用法代码示例。如果您正苦于以下问题:PHP FRoute::albums方法的具体用法?PHP FRoute::albums怎么用?PHP FRoute::albums使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FRoute的用法示例。


在下文中一共展示了FRoute::albums方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display

 /**
  * Displays the application output in the canvas.
  *
  * @since	1.0
  * @access	public
  * @param	int		The user id that is currently being viewed.
  */
 public function display($userId = null, $docType = null)
 {
     // Require user to be logged in
     FD::requireLogin();
     $id = JRequest::getVar('schedule_id');
     // Get the user that's being accessed.
     $user = FD::user($userId);
     $calendar = FD::table('Calendar');
     $calendar->load($id);
     if (!$calendar->id || !$id) {
         FD::info()->set(false, JText::_('APP_CALENDAR_CANVAS_INVALID_SCHEDULE_ID'), SOCIAL_MSG_ERROR);
         return $this->redirect(FD::profile(array('id' => $user->getAlias()), false));
     }
     $my = FD::user();
     $privacy = FD::privacy($my->id);
     $result = $privacy->validate('apps.calendar', $calendar->id, 'view', $user->id);
     if (!$result) {
         FD::info()->set(false, JText::_('APP_CALENDAR_NO_ACCESS'), SOCIAL_MSG_ERROR);
         JFactory::getApplication()->redirect(FRoute::dashboard());
     }
     FD::page()->title($calendar->title);
     // Render the comments and likes
     $likes = FD::likes();
     $likes->get($id, 'calendar', 'create', SOCIAL_APPS_GROUP_USER);
     // Apply comments on the stream
     $comments = FD::comments($id, 'calendar', 'create', SOCIAL_APPS_GROUP_USER, array('url' => FRoute::albums(array('layout' => 'item', 'id' => $id))));
     $params = $this->app->getParams();
     $this->set('params', $params);
     $this->set('likes', $likes);
     $this->set('comments', $comments);
     $this->set('calendar', $calendar);
     $this->set('user', $user);
     echo parent::display('canvas/item/default');
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:41,代码来源:view.html.php

示例2: 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-album-likes-holder class="es-item-likes">
	<?php 
echo FD::likes($album->id, SOCIAL_TYPE_ALBUM, 'create', SOCIAL_APPS_GROUP_USER)->toString();
?>
</div>
<div data-album-comments-holder class="es-item-comments">
	<?php 
echo FD::comments($album->id, SOCIAL_TYPE_ALBUM, 'create', SOCIAL_APPS_GROUP_USER, array('url' => FRoute::albums(array('layout' => 'item', 'id' => $album->id))))->getHTML();
?>
</div>
开发者ID:knigherrant,项目名称:decopatio,代码行数:24,代码来源:album.response.php

示例3:

?>
					</div>
					<div class="popbox-item-total"><?php 
echo $user->getTotalFriends();
?>
</div>
				</a>
			</div>
		</li>
		<?php 
if ($this->config->get('photos.enabled')) {
    ?>
		<li>
			<div class="popbox-item-info">
				<a href="<?php 
    echo FRoute::albums(array('userid' => $user->getAlias()));
    ?>
">
					<div class="popbox-item-text">
						<?php 
    echo JText::_('COM_EASYSOCIAL_PROFILE_ALBUMS');
    ?>
					</div>
					<div class="popbox-item-total">
						<?php 
    echo $user->getTotalAlbums();
    ?>
					</div>
				</a>
			</div>
		</li>
开发者ID:ppantilla,项目名称:bbninja,代码行数:31,代码来源:popbox.php

示例4:

	<?php 
echo $pagination->getListFooter('site');
?>
</div>

<?php 
if (!$albums) {
    ?>
<div class="content-hint no-albums-hint">
	<?php 
    echo JText::_("COM_EASYSOCIAL_NO_ALBUM_AVAILABLE");
    ?>

	<div>
		<a class="btn btn-es-primary btn-large" href="<?php 
    echo FRoute::albums(array('layout' => 'form', 'uid' => $this->my->id, 'type' => SOCIAL_TYPE_USER));
    ?>
"><?php 
    echo JText::_('COM_EASYSOCIAL_ALBUMS_CREATE_ALBUM');
    ?>
</a>
	</div>
</div>
<?php 
}
?>

<i class="loading-indicator fd-small"></i>

<?php 
echo $this->render('module', 'es-albums-after-contents');
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:all.items.php

示例5:

                <li>
                    <span>
                        <a href="<?php 
echo FRoute::events(array('layout' => 'category', 'id' => $event->getCategory()->getAlias()));
?>
">
                            <i class="ies-database"></i> <?php 
echo $event->getCategory()->get('title');
?>
                        </a>
                    </span>
                </li>
                <li>
                    <span>
                        <a href="<?php 
echo FRoute::albums(array('uid' => $event->id, 'type' => SOCIAL_TYPE_EVENT));
?>
">
                            <i class="ies-picture"></i> <?php 
echo JText::sprintf(FD::string()->computeNoun('COM_EASYSOCIAL_EVENTS_TOTAL_ALBUMS', $event->getTotalAlbums()), $event->getTotalAlbums());
?>
                        </a>
                    </span>
                </li>
                <li>
                    <span>
                        <i class="ies-users"></i> <?php 
echo JText::sprintf(FD::string()->computeNoun('COM_EASYSOCIAL_EVENTS_TOTAL_GUESTS', $event->getTotalGoing()), $event->getTotalGoing());
?>
                    </span>
                </li>
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:content.php

示例6:

?>

	<?php 
if (!$data) {
    ?>
	<div class="content-hint no-albums-hint">
		<?php 
    echo JText::_("COM_EASYSOCIAL_NO_ALBUM_AVAILABLE");
    ?>

		<?php 
    if ($lib->canCreateAlbums()) {
        ?>
		<div>
			<a class="btn btn-es-primary btn-large" href="<?php 
        echo FRoute::albums(array('layout' => 'form', 'uid' => $lib->uid, 'type' => $lib->type));
        ?>
"><?php 
        echo JText::_('COM_EASYSOCIAL_ALBUMS_CREATE_ALBUM');
        ?>
</a>
		</div>
		<?php 
    }
    ?>
	</div>
	<?php 
}
?>

</div>
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:list.php

示例7: download

 /**
  * Allows use to download a photo from the site.
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function download()
 {
     // Check if photos is enabled
     $this->checkFeature();
     // Load up info object
     $info = FD::info();
     // Get the id of the photo
     $id = JRequest::getInt('id');
     $photo = FD::table('Photo');
     $photo->load($id);
     // Id provided must be valid
     if (!$id || !$photo->id) {
         $this->setMessage(JText::_('COM_EASYSOCIAL_PHOTOS_INVALID_PHOTO_ID_PROVIDED'), SOCIAL_MSG_ERROR);
         $info->set($this->getMessage());
         return $this->redirect(FRoute::albums(array(), false));
     }
     // Load up photo library
     $lib = FD::photo($photo->uid, $photo->type, $photo);
     if (!$lib->downloadable()) {
         return $this->restricted($lib);
     }
     // Let's try to download the file now
     $photo->download();
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:32,代码来源:view.html.php

示例8: getAlbumLink

 public function getAlbumLink()
 {
     $url = FRoute::albums(array('layout' => 'item', 'id' => $this->album->getAlias(), 'uid' => $this->user->getAlias(), 'type' => SOCIAL_TYPE_USER));
     return $url;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:5,代码来源:user.php

示例9: delete

 /**
  * Post process after an album is deleted
  *
  * @since	1.0
  * @access	public
  * @param	int		The state
  */
 public function delete($state)
 {
     $ajax = FD::ajax();
     if (!$state) {
         return $ajax->reject($this->getMessage());
     }
     $redirect = JRequest::getBool('redirect', 1);
     if ($redirect) {
         $url = FRoute::albums();
         return $ajax->redirect($url);
     } else {
         return $ajax->resolve();
     }
 }
开发者ID:ppantilla,项目名称:bbninja,代码行数:21,代码来源:view.ajax.php

示例10:

						<i class="ies-bars ies-small"></i>
					</a>
					<a class="btn btn-es trending<?php 
echo $sorting == 'popular' ? ' active' : '';
?>
"
						data-albums-sort
						data-albums-sort-type="trending"
						data-es-provide="tooltip"
						data-placement="bottom"
						data-original-title="<?php 
echo JText::_('COM_EASYSOCIAL_ALBUMS_SORT_POPULAR', true);
?>
"
						href="<?php 
echo FRoute::albums(array('layout' => 'all', 'sort' => 'popular'));
?>
"
						title="<?php 
echo JText::_('COM_EASYSOCIAL_ALBUMS_SORT_POPULAR', true);
?>
"
					>
						<i class="ies-fire ies-small"></i>
					</a>
				</div>
			</div>
		</div>

		<hr />
开发者ID:knigherrant,项目名称:decopatio,代码行数:30,代码来源:all.php

示例11:

					</li>

					<?php 
if ($album->editable() || $album->deleteable()) {
    ?>
					<li class="divider"></li>
					<?php 
}
?>

					<?php 
if ($album->editable()) {
    ?>
					<li data-album-report-button>
						<a href="<?php 
    echo FRoute::albums(array('id' => $album->getAlias(), 'layout' => 'form'));
    ?>
"><?php 
    echo JText::_('COM_EASYSOCIAL_EDIT_ALBUM');
    ?>
</a>
					</li>
					<?php 
}
?>

					<?php 
if ($album->deleteable()) {
    ?>
					<li data-album-delete-button>
						<a href="javascript:void(0);"><?php 
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:list.item.php

示例12: getCreateLink

 /**
  * Retrieves the creation link
  *
  * @since	1.3
  * @access	public
  * @param	string
  * @return
  */
 public function getCreateLink()
 {
     $url = FRoute::albums(array('layout' => 'form', 'uid' => $this->event->getAlias(), 'type' => SOCIAL_TYPE_EVENT));
     return $url;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:13,代码来源:event.php

示例13: store

 /**
  * Post processing when creating a new album
  *
  * @since	1.0
  * @access	public
  */
 public function store($album = null)
 {
     // Require user to be logged in
     FD::requireLogin();
     FD::info()->set($this->getMessage());
     if ($this->hasErrors()) {
         return $this->form();
     }
     return $this->redirect(FRoute::albums(array('id' => $album->getAlias(), 'layout' => 'item')));
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:16,代码来源:view.html.php

示例14:

				<li>
					<span>
						<a href="<?php 
echo FRoute::groups(array('layout' => 'category', 'id' => $group->getCategory()->getAlias()));
?>
">
							<i class="ies-database"></i> <?php 
echo $group->getCategory()->get('title');
?>
						</a>
					</span>
				</li>
				<li>
					<span>
						<a href="<?php 
echo FRoute::albums(array('uid' => $group->id, 'type' => SOCIAL_TYPE_GROUP));
?>
">
							<i class="ies-picture"></i> <?php 
echo JText::sprintf(FD::string()->computeNoun('COM_EASYSOCIAL_GROUPS_ALBUMS', $group->getTotalAlbums()), $group->getTotalAlbums());
?>
						</a>
					</span>
				</li>
				<li>
					<span>
						<i class="ies-users"></i> <?php 
echo JText::sprintf(FD::string()->computeNoun('COM_EASYSOCIAL_GROUPS_MEMBERS', $group->getTotalMembers()), $group->getTotalMembers());
?>
					</span>
				</li>
开发者ID:ppantilla,项目名称:bbninja,代码行数:31,代码来源:content.php

示例15: 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');
?>
<li>
    <a href="<?php 
echo FRoute::albums(array('uid' => $event->getAlias(), 'type' => SOCIAL_TYPE_EVENT, 'layout' => 'form'));
?>
"><?php 
echo JText::_('APP_EVENT_PHOTOS_WIDGET_CREATE_ALBUM');
?>
</a>
</li>
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:23,代码来源:widget.menu.php


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