本文整理汇总了PHP中JoomleagueHelperRoute::getRivalsRoute方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelperRoute::getRivalsRoute方法的具体用法?PHP JoomleagueHelperRoute::getRivalsRoute怎么用?PHP JoomleagueHelperRoute::getRivalsRoute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomleagueHelperRoute
的用法示例。
在下文中一共展示了JoomleagueHelperRoute::getRivalsRoute方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showTeamIcons
static function showTeamIcons(&$team, &$config)
{
if (!isset($team->projectteamid)) {
return "";
}
$projectteamid = $team->projectteamid;
$teamname = $team->name;
$teamid = $team->team_id;
$teamSlug = isset($team->team_slug) ? $team->team_slug : $teamid;
$clubSlug = isset($team->club_slug) ? $team->club_slug : $team->club_id;
$division_slug = isset($team->division_slug) ? $team->division_slug : $team->division_id;
$projectSlug = isset($team->project_slug) ? $team->project_slug : $team->project_id;
$output = '';
if ($config['show_team_link']) {
$link = JoomleagueHelperRoute::getPlayersRoute($projectSlug, $teamSlug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_ROSTER_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/team_icon.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ((!isset($team_plan) || $teamid != $team_plan->id) && $config['show_plan_link']) {
$link = JoomleagueHelperRoute::getTeamPlanRoute($projectSlug, $teamSlug, $division_slug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMPLAN_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/calendar_icon.gif';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_curve_link']) {
$link = JoomleagueHelperRoute::getCurveRoute($projectSlug, $teamSlug, 0, $division_slug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CURVE_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/curve_icon.gif';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_teaminfo_link']) {
$link = JoomleagueHelperRoute::getTeamInfoRoute($projectSlug, $teamid);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMINFO_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/teaminfo_icon.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_club_link']) {
$link = JoomleagueHelperRoute::getClubInfoRoute($projectSlug, $clubSlug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CLUBINFO_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/mail.gif';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_teamstats_link']) {
$link = JoomleagueHelperRoute::getTeamStatsRoute($projectSlug, $teamSlug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMSTATS_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/teamstats_icon.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_clubplan_link']) {
$link = JoomleagueHelperRoute::getClubPlanRoute($projectSlug, $clubSlug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CLUBPLAN_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/clubplan_icon.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_rivals_link']) {
$link = JoomleagueHelperRoute::getRivalsRoute($projectSlug, $teamSlug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_RIVALS_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/rivals.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
return $output;
}