本文整理汇总了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>
示例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>
示例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>