Example #1
0
    ?>
	<!-- Playground next games -->
	<div id="jlg_plgndnextgames">

		<h2><?php 
    echo JText::_('COM_JOOMLEAGUE_PLAYGROUND_NEXT_GAMES');
    ?>
</h2>
		<?php 
    if ($this->config['show_ical_link']) {
        ?>
		<table width="96%" align="center" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td class="contentheading" style="text-align: right;">
				<?php 
        $link = JoomleagueHelperRoute::getIcalRoute(0, null, $this->playground->id);
        $text = JHtml::_('image', 'administrator/components/com_joomleague/assets/images/calendar.png', JText::_('COM_JOOMLEAGUE_PLAYGROUND_ICAL_EXPORT'));
        $attribs = array('title' => JText::_('COM_JOOMLEAGUE_PLAYGROUND_ICAL_EXPORT'));
        echo JHtml::_('link', $link, $text, $attribs);
        ?>
				</td>
			</tr>
		</table>
		<?php 
    }
    ?>
		<div class="venuecontent map">
			<table width="96%" align="center" border="0" cellpadding="0" cellspacing="0">
			<?php 
    //sort games by dates
    $gamesByDate = array();
			<?php 
$output = '';
if (isset($this->division) && is_a($this->division, 'LeagueDivision')) {
    $output .= ' ' . $this->division->name . ' ';
}
if (!empty($this->ptid)) {
    $output .= ' ' . $this->teams[$this->ptid]->name;
} else {
    $output .= ' ' . $this->project->name;
}
echo JText::sprintf('COM_JOOMLEAGUE_TEAMPLAN_PAGE_TITLE', $output);
?>
		</td>
		<?php 
if ($this->config['show_ical_link']) {
    ?>
			<td class="contentheading" style="text-align: right;">
				<?php 
    if (!is_null($this->ptid)) {
        $link = JoomleagueHelperRoute::getIcalRoute($this->project->id, $this->teams[$this->ptid]->team_id, null, null);
        $text = JHTML::_('image', 'administrator/components/com_joomleague/assets/images/calendar.png', JText::_('COM_JOOMLEAGUE_TEAMPLAN_ICAL_EXPORT'));
        $attribs = array('title' => JText::_('COM_JOOMLEAGUE_TEAMPLAN_ICAL_EXPORT'));
        echo JHTML::_('link', $link, $text, $attribs);
    }
    ?>
			</td>
			<?php 
}
?>
	</tr>
</table><br />