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


PHP JoomleagueHelperRoute::getClubInfoRoute方法代码示例

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


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

示例1: _getShowClubInfoLink

 private function _getShowClubInfoLink()
 {
     $p = JRequest::getInt("p", 0);
     $cid = JRequest::getInt("cid", 0);
     $link = JoomleagueHelperRoute::getClubInfoRoute($p, $cid);
     return $link;
 }
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:7,代码来源:clubinfo.php

示例2: getTeamLink

 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);
     }
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:13,代码来源:helper.php

示例3: foreach

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

示例4: 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') . '&nbsp;' . $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') . '&nbsp;' . $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') . '&nbsp;' . $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') . '&nbsp;' . $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') . '&nbsp;' . $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') . '&nbsp;' . $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') . '&nbsp;' . $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') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/rivals.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     return $output;
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:71,代码来源:joomleaguehelper.php

示例5: foreach

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

示例6: isset

$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">&nbsp;</th>';
        } else {
            $matrix .= '<th class="headerspacer">&nbsp;</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;
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default_matrix.php

示例7: defined

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

示例8: foreach

 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) . "&nbsp;" : "";
     $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 />';
     }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default.php

示例9: getLink

 /**
  * 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:
//.........这里部分代码省略.........
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:101,代码来源:helper.php


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