Exemplo n.º 1
0
* @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>
Exemplo n.º 2
0
                            <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>
Exemplo n.º 3
0
 /**
  * Default method to display the registration page.
  *
  * @since	1.0
  * @access	public
  * @author	Mark Lee <*****@*****.**>
  */
 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');
 }
Exemplo n.º 4
0
            ?>
    			</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' : '';
        ?>
">
Exemplo n.º 5
0
            ?>
</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>
Exemplo n.º 6
0
 /**
  * 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;
 }