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


PHP JoomleagueHelperRoute::getContactRoute方法代码示例

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


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

示例1: switch

    ?>
				<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>
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default_info.php

示例2: switch

?>
			<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>
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default_info.php

示例3: switch

    </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>
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default_info.php


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