コード例 #1
0
ファイル: default_info.php プロジェクト: hfmprs/JoomLeague
    ?>
				<tr>
					<td><span class="label">
							<?php 
    echo JText::_('COM_JOOMLEAGUE_PERSON_NAME');
    ?>
							</span>
					</td>
					<td class="data">
						<?php 
    $outputName = JText::sprintf('%1$s %2$s', $this->referee->firstname, $this->referee->lastname);
    if ($this->referee->id) {
        switch ($this->config['show_user_profile']) {
            case 1:
                // Link to Joomla Contact Page
                $link = JoomleagueHelperRoute::getContactRoute($this->referee->id);
                $outputName = JHtml::link($link, $outputName);
                break;
            case 2:
                // Link to CBE User Page with support for JoomLeague Tab
                $link = JoomleagueHelperRoute::getUserProfileRouteCBE($this->referee->id, $this->project->id, $this->referee->id);
                $outputName = JHtml::link($link, $outputName);
                break;
            default:
                break;
        }
    }
    echo $outputName;
    ?>
					</td>
				</tr>
コード例 #2
0
ファイル: default_info.php プロジェクト: hfmprs/JoomLeague
?>
			<tr>
				<td class="">
					<span class="label"><?php 
echo JText::_('COM_JOOMLEAGUE_PERSON_NAME');
?>
</span>
				</td>
				<td class="data">
				<?php 
$outputName = JoomleagueHelper::formatName(null, $this->person->firstname, $this->person->nickname, $this->person->lastname, $this->config["name_format"]);
if ($this->person->id) {
    switch ($this->config['show_user_profile']) {
        case 1:
            // Link to Joomla Contact Page
            $link = JoomleagueHelperRoute::getContactRoute($this->person->contact_id);
            $outputName = JHtml::link($link, $outputName);
            break;
        case 2:
            // Link to CBE User Page with support for JoomLeague Tab
            $link = JoomleagueHelperRoute::getUserProfileRouteCBE($this->person->id, $this->project->id, $this->person->id);
            $outputName = JHtml::link($link, $outputName);
            break;
        default:
            break;
    }
}
echo $outputName;
?>
				</td>
			</tr>
コード例 #3
0
    </td>
		<td class='info'>
			<table class='plinfo'>
				<tr>
					<td class='label'><?php 
echo JText::_('COM_JOOMLEAGUE_PRED_USERS_INFO_NAME');
?>
</td>
					<td class='data'>
						<?php 
$outputName = JText::sprintf('%1$s %2$s', $outputUserName, '');
if ($this->predictionMember->user_id) {
    switch ($this->config['show_user_profile']) {
        case 1:
            // Link to Joomla Contact Page
            $link = JoomleagueHelperRoute::getContactRoute($this->predictionMember->user_id);
            $outputName = JHTML::link($link, $outputName);
            break;
        case 2:
            // Link to CBE User Page with support for JoomLeague Tab
            $link = JoomleagueHelperRoute::getUserProfileRouteCBE($this->predictionMember->user_id, $this->predictionGame->id, $this->predictionMember->pmID);
            $outputName = JHTML::link($link, $outputName);
            break;
        default:
            break;
    }
}
echo $outputName;
?>
					</td>
				</tr>