Esempio n. 1
0
 * @author Jeremy Roberts
 * @copyright Copyright © 2009, jTips
 * @license Commercial - See website for details
 * 
 * @since 1.0 - 13/07/2009
 * @version 1.0.0
 * @package jTips
 * 
 * Description: 
 */
?>
<div style="text-align:center;">
<?php 
// do we need the user's image?
if ($params->get('avatar', 0) and $params->get('link', '')) {
    $img = modJTipsMiniCompHelper::getAvatar($who['who'], $params);
    if ($img) {
        echo JHTML::image($img, $who['who']->getUserField($params->get('display', 'username')));
    }
}
?>
<br />
<?php 
if ($params->get('link', '') == 'JomSocial') {
    echo JHTML::link(getJomSocialProfileLink($who['who']->user_id), $who['who']->getUserField($params->get('display', 'username')));
} else {
    if ($params->get('link', '') == 'CommunityBuilder') {
        echo JHTML::link(JRoute::_("index.php?option=com_comprofiler&task=userProfile&user=" . $who['who']->user_id), $who['who']->getUserField($params->get('display', 'username')));
    } else {
        echo $who['who']->getUserField($params->get('display', 'username'));
    }
Esempio n. 2
0
<?php

defined('_JEXEC') or die('Restricted Access');
/**
 * Website: www.jtips.com.au
 * @author Jeremy Roberts
 * @copyright Copyright &copy; 2009, jTips
 * @license Commercial - See website for details
 * 
 * @since 1.0 - 13/07/2009
 * @version 1.0.0
 * @package jTips
 * 
 * Description: 
 */
require_once dirname(__FILE__) . DS . 'helper.php';
$season = $params->get('season', 0);
$rounds = $params->get('rounds', 0);
$show_detail = $params->get('show_detail', 1);
$user['name'] = $params->get('name', 'username');
$user['social'] = $params->get('link', '');
$user['avatar'] = $params->get('avatar', 0);
$who =& modJTipsMiniCompHelper::getUser($season, $rounds, $show_detail);
require JModuleHelper::getLayoutPath('mod_jtips_minicomp');