private function _getShowClubInfoLink() { $p = JRequest::getInt("p", 0); $cid = JRequest::getInt("cid", 0); $link = JoomleagueHelperRoute::getClubInfoRoute($p, $cid); return $link; }
public static function getTeamLink($item, $params, $project) { switch ($params->get('teamlink')) { case 'teaminfo': return JoomleagueHelperRoute::getTeamInfoRoute($project->slug, $item->team_slug); case 'roster': return JoomleagueHelperRoute::getPlayersRoute($project->slug, $item->team_slug); case 'teamplan': return JoomleagueHelperRoute::getTeamPlanRoute($project->slug, $item->team_slug); case 'clubinfo': return JoomleagueHelperRoute::getClubInfoRoute($project->slug, $item->club_slug); } }
<div class="jl_parentContainer"> <fieldset class="adminform"> <legend> <?php echo JText::_('COM_JOOMLEAGUE_TEAMINFO_MERGE_CLUBS'); ?> </legend> <?php foreach ($this->merge_clubs as $merge_clubs) { ?> <span class="clubinfo_listing_item"> <?php echo JText::_('COM_JOOMLEAGUE_TEAMINFO_CLUB_NAME'); ?> </span> <span class="clubinfo_listing_value"> <?php $link = JoomleagueHelperRoute::getClubInfoRoute($this->project->slug, $merge_clubs->slug); echo JHTML::link($link, $merge_clubs->name); ?> </span> <?php } ?> </fieldset> </div> <?php } } if ($this->config['show_team_info']) { ?> <div class="jl_parentContainer"> <span class="clubinfo_listing_item"> <?php
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; }
?> </th> <?php } ?> <th class="club_address"><?php echo JText::_('COM_JOOMLEAGUE_TEAMS_NAME_CLUBADDRESS'); ?> </th> </tr> </thead> <?php $k = 0; foreach ($this->teams as $team) { $teaminfo_link = JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $team->team_slug); $clubinfo_link = JoomleagueHelperRoute::getClubInfoRoute($this->project->slug, $team->club_slug); $teamTitle = JText::sprintf('COM_JOOMLEAGUE_TEAMS_TEAM_PROJECT_INFO', $team->team_name); $clubTitle = JText::sprintf('COM_JOOMLEAGUE_TEAMS_CLUB_PROJECT_INFO', $team->club_name); if ($this->config['show_small_logo']) { $teampic = $this->config['team_picture']; $picture = $team->{$teampic}; if (is_null($picture) || !file_exists($picture)) { $picture = JoomleagueHelper::getDefaultPlaceholder("clublogosmall"); $image = JHTML::image($picture, $teamTitle, array('title' => $teamTitle, ' border' => 0)); } else { $image = JoomleagueHelper::getPictureThumb($picture, $team->team_name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1); } $smallTeamLogoLink = JHTML::link($teaminfo_link, $image); } if ($this->config['show_medium_logo']) { $picture = $team->logo_middle;
$crosstable_icons_horizontal = isset($this->config['crosstable_icons_horizontal']) ? $this->config['crosstable_icons_horizontal'] : 0; $crosstable_icons_vertical = isset($this->config['crosstable_icons_vertical']) ? $this->config['crosstable_icons_vertical'] : 0; $k_r = 0; // count rows foreach ($this->teams as $team_row_id => $team_row) { if ($k_r == 0) { $matrix .= '<tr class="sectiontableheader">'; //write the first row if ($crosstable_icons_horizontal) { $matrix .= '<th class="headerspacer"> </th>'; } else { $matrix .= '<th class="headerspacer"> </th>'; } foreach ($this->teams as $team_row_header) { $title = JText::_('COM_JOOMLEAGUE_MATRIX_CLUB_PAGE_LINK') . ' ' . $team_row_header->name; $link = JoomleagueHelperRoute::getClubInfoRoute($this->project->id, $team_row_header->club_id); $desc = $team_row_header->short_name; if ($crosstable_icons_horizontal) { $picture = $team_row_header->logo_small; $desc = JoomleagueHelper::getPictureThumb($picture, $title, 0, 0, 3); } if ($this->config['link_teams'] == 1) { $header = '<th class="rotated_cell"><div class="rotate_text">'; $header .= JHTML::link($link, $desc); $header .= '</div></th>'; $matrix .= $header; } else { $header = '<th class="rotated_cell"<div class="rotate_text">>'; $header .= $desc; $header .= '</div></th>'; $matrix .= $header;
<?php /** * Joomleague * * @copyright Copyright (C) 2006-2015 joomleague.at. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @link http://www.joomleague.at */ defined('_JEXEC') or die; ?> <div class="contentpaneopen"> <div class="contentheading"> <?php echo $this->pagetitle . ' '; if ($this->showediticon) { $modalheight = JComponentHelper::getParams('com_joomleague')->get('modal_popup_height', 600); $modalwidth = JComponentHelper::getParams('com_joomleague')->get('modal_popup_width', 900); $link = JoomleagueHelperRoute::getClubInfoRoute($this->project->id, $this->club->id, "club.edit"); echo ' <a rel="{handler: \'iframe\',size: {x:' . $modalwidth . ',y:' . $modalheight . '}}" href="' . $link . '" class="modal">'; echo JHtml::image("media/com_joomleague/jl_images/edit.png", JText::_('COM_JOOMLEAGUE_CLUBINFO_EDIT'), array("title" => JText::_("COM_JOOMLEAGUE_CLUBINFO_EDIT"))); echo '</a>'; } ?> </div> </div>
foreach ($clubs as $club) { $idstring = $id . $params->get('moduleclass_sfx'); if ($mode == 'T') { $birthdaytext .= '<div id="' . $idstring . '" class="textdiv">'; } $club->default_picture = JoomleagueHelper::getDefaultPlaceholder('clublogobig'); if ($params->get('limit') > 0 && $counter == intval($params->get('limit'))) { break; } $class = $k == 0 ? $params->get('sectiontableentry1') : $params->get('sectiontableentry2'); $thispic = ""; $flag = $params->get('show_club_flag') ? Countries::getCountryFlag($club->country) . " " : ""; $text = $club->name; $usedname = $flag . $text; $club_link = ""; $club_link = JoomleagueHelperRoute::getClubInfoRoute($club->project_id, $club->id); $showname = JHTML::link($club_link, $usedname); $birthdaytext .= '<div class="qslide">'; $birthdaytext .= '<div class="tckproject"><p>' . $showname . '</p></div>'; if ($params->get('show_picture') == 1) { if (file_exists(JPATH_BASE . '/' . $club->picture) && $club->picture != '') { $thispic = $club->picture; } elseif (file_exists(JPATH_BASE . '/' . $club->default_picture) && $club->default_picture != '') { $thispic = $club->default_picture; } $birthdaytext .= '<div style="width:100%"><center><img style="" src="' . JURI::base() . '/' . $thispic . '" alt="' . $text . '" title="' . $text . '"'; if ($params->get('picture_width') != '') { $birthdaytext .= ' width="' . $params->get('picture_width') . '"'; } $birthdaytext .= ' /></center></div><br />'; }
/** * return link for specified view - allow seo consistency * * @param string $view * @return string url */ public function getLink($view) { if (!$this->_project_id) { return false; } // echo 'getLink <br>'; // echo 'round_id ->'.$this->_round_id.'<br>'; // echo 'project_id ->'.$this->_project_id.'<br>'; // echo 'division_id ->'.$this->_division_id.'<br>'; // echo 'team_id ->'.$this->_team_id.'<br>'; switch ($view) { case "calendar": $link = JoomleagueHelperRoute::getTeamPlanRoute($this->_project_id, $this->_team_id, $this->_division_id); break; case "curve": $link = JoomleagueHelperRoute::getCurveRoute($this->_project_id, $this->_team_id, 0, $this->_division_id); break; case "eventsranking": $link = JoomleagueHelperRoute::getEventsRankingRoute($this->_project_id, $this->_division_id, $this->_team_id); break; case "matrix": $link = JoomleagueHelperRoute::getMatrixRoute($this->_project_id, $this->_division_id); break; case "referees": $link = JoomleagueHelperRoute::getRefereesRoute($this->_project_id); break; case "results": $link = JoomleagueHelperRoute::getResultsRoute($this->_project_id, $this->_round_id, $this->_division_id); break; case "resultsmatrix": $link = JoomleagueHelperRoute::getResultsMatrixRoute($this->_project_id, $this->_round_id, $this->_division_id); break; case "resultsranking": $link = JoomleagueHelperRoute::getResultsRankingRoute($this->_project_id, $this->_round_id, $this->_division_id); break; case "rankingalltime": $link = JoomleagueHelperRoute::getRankingAllTimeRoute($this->_league_id, $this->getParam('show_alltimetable_points'), $this->_project_id); break; case "resultsrankingmatrix": $link = JoomleagueHelperRoute::getResultsRankingMatrixRoute($this->_project_id, $this->_round_id, $this->_division_id); break; case "roster": if (!$this->_team_id) { return false; } $link = JoomleagueHelperRoute::getPlayersRoute($this->_project_id, $this->_team_id); break; case "stats": $link = JoomleagueHelperRoute::getStatsRoute($this->_project_id, $this->_division_id); break; case "statsranking": $link = JoomleagueHelperRoute::getStatsRankingRoute($this->_project_id, $this->_division_id); break; case "teaminfo": if (!$this->_team_id) { return false; } $link = JoomleagueHelperRoute::getTeamInfoRoute($this->_project_id, $this->_team_id); break; case "teamplan": if (!$this->_team_id) { return false; } $link = JoomleagueHelperRoute::getTeamPlanRoute($this->_project_id, $this->_team_id, $this->_division_id); break; case "clubinfo": if (!$this->_team_id) { return false; } $this->getClubId(); $link = JoomleagueHelperRoute::getClubInfoRoute($this->_project_id, $this->_club_id); break; case "clubplan": if (!$this->_team_id) { return false; } $this->getClubId(); $link = JoomleagueHelperRoute::getClubPlanRoute($this->_project_id, $this->_club_id); break; case "teamstats": if (!$this->_team_id) { return false; } $link = JoomleagueHelperRoute::getTeamStatsRoute($this->_project_id, $this->_team_id); break; case "treetonode": $link = JoomleagueHelperRoute::getBracketsRoute($this->_project_id); break; case "jltournamenttree": $link = JoomleagueHelperRoute::getTournamentRoute($this->_project_id, $this->_round_id); break; case "separator": return false; default: case "ranking": $link = JoomleagueHelperRoute::getRankingRoute($this->_project_id, $this->_round_id, null, null, 0, $this->_division_id); } return $link; }
function getLink(&$item) { switch ($this->params->get('teamlink')) { case 0: return ''; case 1: return JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $item->team_slug); case 2: return JoomleagueHelperRoute::getPlayersRoute($this->project->slug, $item->team_slug); case 3: return JoomleagueHelperRoute::getTeamPlanRoute($this->project->slug, $item->team_slug); case 4: return JoomleagueHelperRoute::getClubInfoRoute($this->project->slug, $item->club_slug); case 5: return isset($item->club_www) ? $item->club_www : $item->website; } }