本文整理汇总了PHP中FRoute::points方法的典型用法代码示例。如果您正苦于以下问题:PHP FRoute::points方法的具体用法?PHP FRoute::points怎么用?PHP FRoute::points使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FRoute
的用法示例。
在下文中一共展示了FRoute::points方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
* @copyright Copyright (C) 2010 - 2015 Stack Ideas Sdn Bhd. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* EasyBlog 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');
?>
<span class="small">
(<?php
if ($points > 0) {
?>
<a href="<?php
echo FRoute::points(array('id' => $user->id, 'layout' => 'history'));
?>
"><strong><?php
echo $user->getPoints();
?>
<?php
echo JText::_('COM_EASYBLOG_POINTS');
?>
</strong></a><?php
} else {
echo JText::_('COM_EASYBLOG_NO_POINTS_YET');
}
?>
)
</span>
示例2:
<i class="ies-cog mr-5"></i>
<?php
echo JText::_('COM_EASYSOCIAL_PROFILE_UPDATE_PROFILE');
?>
</a>
</div>
<?php
}
?>
<?php
if ($this->template->get('profile_points', true) && $this->config->get('points.enabled')) {
?>
<div>
<a href="<?php
echo FRoute::points(array('userid' => $user->getAlias(), 'layout' => 'history'));
?>
" class="btn btn-clean btn-block">
<div class="text-center fd-small">
<strong><?php
echo JText::_('COM_EASYSOCIAL_PROFILE_POINTS');
?>
</strong>
</div>
<div class="text-center">
<span style="font-size: 26px;font-weight:700;line-height:21px"><?php
echo $user->getPoints();
?>
</span>
示例3: item
/**
* Default method to display the registration page.
*
* @since 1.0
* @access public
* @author Mark Lee <mark@stackideas.com>
*/
function item($tpl = null)
{
$this->checkFeature();
// Check for user profile completeness
FD::checkCompleteProfile();
$id = JRequest::getInt('id');
$point = FD::table('Points');
$point->load($id);
if (!$id || !$point->id) {
FD::info()->set(null, JText::_('The points id provided is not a valid id.'), SOCIAL_MSG_ERROR);
return $this->redirect(FRoute::dashboard(array(), false));
}
$point->loadLanguage();
// Load language file.
JFactory::getLanguage()->load('com_easysocial', JPATH_ROOT . '/administrator');
// Set the page title
FD::page()->title($point->get('title'));
// Set the page breadcrumb
FD::page()->breadcrumb(JText::_('COM_EASYSOCIAL_PAGE_TITLE_POINTS'), FRoute::points());
FD::page()->breadcrumb($point->get('title'));
// Get list of point achievers.
$achievers = $point->getAchievers();
$this->set('achievers', $achievers);
$this->set('point', $point);
parent::display('site/points/default.item');
}
示例4:
?>
</a>
</li>
<?php
}
?>
<?php
if ($this->config->get('points.enabled')) {
?>
<li class="<?php
echo $view == 'points' ? 'active' : '';
?>
">
<a href="<?php
echo FRoute::points(array('layout' => 'history', 'userid' => $this->my->getAlias()));
?>
">
<?php
echo JText::_('COM_EASYSOCIAL_TOOLBAR_PROFILE_POINTS_HISTORY');
?>
</a>
</li>
<?php
}
?>
<li class="<?php
echo $view == 'apps' ? 'active' : '';
?>
">
示例5:
?>
</span></a>
</li>
<?php
}
?>
</ul>
</div>
<?php
}
?>
</div>
<div class="pull-right es-article-author-info">
<a class="btn btn-clean" href="<?php
echo FRoute::points(array('id' => $author->getAlias(), 'layout' => 'history'));
?>
">
<div class="center">
<strong><?php
echo JText::_('PLG_CONTENT_EASYSOCIAL_POINTS');
?>
</strong>
</div>
<div class="mt-10 center">
<span class="points-counter"><?php
echo $author->getPoints();
?>
</span>
</div>
示例6: getPermalink
/**
* Retrieve the points permalink
*
* @since 1.0
* @access public
* @return int The total number of users who achieved this badge.
*/
public function getPermalink($xhtml = false)
{
$url = FRoute::points(array('id' => $this->getAlias(), 'layout' => 'item'), $xhtml);
return $url;
}