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


PHP JoomleagueHelperRoute::getPlaygroundRoute方法代码示例

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


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

示例1:

        <tr>
            <td colspan="3" >
            &nbsp;
            </td>
        </tr>
        <?php 
    }
}
?>
	<!-- playground -->
	<?php 
if ($this->config['show_match_playground'] == 1) {
    if ($this->match->playground_id > 0) {
        ?>
        <?php 
        $playground_link = JoomleagueHelperRoute::getPlaygroundRoute($this->project->id, $this->match->playground_id);
        ?>
        <tr>
            <td colspan="3" >
                <span class="label"><?php 
        echo JText::_('COM_JOOMLEAGUE_MATCHREPORT_PLAYGROUND');
        ?>
</span>
                <span><?php 
        echo JHTML::link($playground_link, $this->playground->name);
        ?>
</span>
            </td>
        </tr>
        <?php 
    }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default_details.php

示例2: showMatchPlayground

    /**
     * display match playground
     *
     * @param object $game
     */
    function showMatchPlayground(&$game)
    {
        if (($this->config['show_playground'] || $this->config['show_playground_alert']) && isset($game->playground_id)) {
            if (empty($game->playground_id)) {
                $game->playground_id = $this->teams[$game->projectteam1_id]->standard_playground;
            }
            if (empty($game->playground_id)) {
                $cinfo =& JTable::getInstance('Club', 'Table');
                $cinfo->load($this->teams[$game->projectteam1_id]->club_id);
                $game->playground_id = $cinfo->standard_playground;
                $this->teams[$game->projectteam1_id]->standard_playground = $cinfo->standard_playground;
            }
            if (!$this->config['show_playground'] && $this->config['show_playground_alert']) {
                if ($this->teams[$game->projectteam1_id]->standard_playground == $game->playground_id) {
                    echo '-';
                    return '';
                }
            }
            $boldStart = '';
            $boldEnd = '';
            $toolTipTitle = JText::_('COM_JOOMLEAGUE_PLAYGROUND_MATCH');
            $toolTipText = '';
            $playgroundID = $this->teams[$game->projectteam1_id]->standard_playground;
            if ($this->config['show_playground_alert'] && $this->teams[$game->projectteam1_id]->standard_playground != $game->playground_id) {
                $boldStart = '<b style="color:red; ">';
                $boldEnd = '</b>';
                $toolTipTitle = JText::_('COM_JOOMLEAGUE_PLAYGROUND_NEW');
                $playgroundID = $this->teams[$game->projectteam1_id]->standard_playground;
            }
            $pginfo =& JTable::getInstance('Playground', 'Table');
            $pginfo->load($game->playground_id);
            $toolTipText .= $pginfo->name . '&lt;br /&gt;';
            $toolTipText .= $pginfo->address . '&lt;br /&gt;';
            $toolTipText .= $pginfo->zipcode . ' ' . $pginfo->city . '&lt;br /&gt;';
            $link = JoomleagueHelperRoute::getPlaygroundRoute($this->project->id, $game->playground_id);
            $playgroundName = $this->config['show_playground_name'] == 'name' ? $pginfo->name : $pginfo->short_name;
            ?>
<span class='hasTip'
	title='<?php 
            echo $toolTipTitle;
            ?>
 :: <?php 
            echo $toolTipText;
            ?>
'> 
	<?php 
            echo JHTML::link($link, $boldStart . $playgroundName . $boldEnd);
            ?>
 </span>

	<?php 
        }
    }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:58,代码来源:html.php

示例3: foreach

            echo JText::_('COM_JOOMLEAGUE_CLUBINFO_DISSOLVED');
            ?>
</span>
			<span class="clubinfo_listing_value"><?php 
            echo $this->club->dissolved;
            ?>
</span>
			<?php 
        }
        if ($this->config['show_playgrounds_of_club'] == 1 && isset($this->stadiums) && count($this->stadiums) > 0) {
            ?>
			<!-- SHOW PLAYGROUNDS - START -->
			<?php 
            $playground_number = 1;
            foreach ($this->playgrounds as $playground) {
                $link = JoomleagueHelperRoute::getPlaygroundRoute($this->project->slug, $playground->slug);
                $pl_dummy = JText::_('COM_JOOMLEAGUE_CLUBINFO_PLAYGROUND');
                ?>
					<span class="clubinfo_listing_item"><?php 
                echo str_replace("%NUMBER%", $playground_number, $pl_dummy);
                ?>
</span>
					<span class="clubinfo_listing_value"><?php 
                echo JHtml::link($link, $playground->name);
                ?>
</span>
					<?php 
                $playground_number++;
            }
            ?>
			<!-- SHOW PLAYGROUNDS - END -->
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:31,代码来源:default_clubinfo.php

示例4: elseif

 if ($params->get('show_playground_name', 0)) {
     $textdiv .= '<div class="jlplplaneplname"> ';
     if ($match->playground_id != "") {
         $playgroundname = $match->playground_name;
         $playground_id = $match->playground_id;
     } else {
         if ($match->team_playground_id != "") {
             $playgroundname = $match->team_playground_name;
             $playground_id = $match->team_playground_id;
         } elseif ($match->club_playground_id != "") {
             $playgroundname = $match->club_playground_name;
             $playground_id = $match->club_playground_id;
         }
     }
     if ($params->get('show_playground_link')) {
         $link = JoomleagueHelperRoute::getPlaygroundRoute($match->project_id, $playground_id);
         $playgroundname = JHtml::link($link, JText::sprintf('%1$s', $playgroundname));
     } else {
         $playgroundname = JText::sprintf('%1$s', $playgroundname);
     }
     $textdiv .= $playgroundname . '</div>';
 }
 $textdiv .= '<div class="jlplplanedate">';
 $textdiv .= JoomleagueHelper::getMatchDate($match, $dateformat);
 $textdiv .= " " . JText::_('MOD_JOOMLEAGUE_PLAYGROUNDPLAN_START_TIME') . " ";
 $textdiv .= JoomleagueHelper::getMatchTime($match, $timeformat);
 $textdiv .= '</div>';
 if ($params->get('show_project_name', 0)) {
     $textdiv .= '<div class="jlplplaneleaguename">';
     $textdiv .= $match->project_name;
     $textdiv .= '</div>';
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default.php

示例5: explode

                ?>
						</th>
					</tr>
				<?php 
            }
            $prevDate = $gameDate;
        }
    }
    $class = $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
    $result_link = JoomleagueHelperRoute::getResultsRoute($game->project_id, $game->roundid, $game->division_id);
    $nextmatch_link = JoomleagueHelperRoute::getNextmatchRoute($game->project_id, $game->id);
    $teaminfo1_link = JoomleagueHelperRoute::getTeamInfoRoute($game->project_id, $game->team1_id);
    $teaminfo2_link = JoomleagueHelperRoute::getTeamInfoRoute($game->project_id, $game->team2_id);
    $teamstats1_link = JoomleagueHelperRoute::getTeamStatsRoute($game->project_id, $game->team1_id);
    $teamstats2_link = JoomleagueHelperRoute::getTeamStatsRoute($game->project_id, $game->team2_id);
    $playground_link = JoomleagueHelperRoute::getPlaygroundRoute($game->project_id, $game->playground_id);
    $favs = JoomleagueHelper::getProjectFavTeams($game->project_id);
    $favteams = explode(",", $favs->fav_team);
    if ($this->config['which_link2'] == 1) {
        $link1 = $teaminfo1_link;
        $link2 = $teaminfo2_link;
    } else {
        if ($this->config['which_link2'] == 2) {
            $link1 = $teamstats1_link;
            $link2 = $teamstats2_link;
        } else {
            $link1 = null;
            $link2 = null;
        }
    }
    $hometeam = $game;
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default_matches.php


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