1
0
www.mikescher.com/www/fragments/panel_aoc.php

23 lines
561 B
PHP
Raw Normal View History

2019-11-03 15:44:47 +01:00
<?php
require_once(__DIR__ . '/../internals/adventofcode.php');
2020-01-06 21:58:09 +01:00
$years = AdventOfCode::listYears();
$year = end($years);
2019-11-03 15:44:47 +01:00
?>
<div class="index_pnl_base">
<div class="index_pnl_header">
2020-01-06 21:58:09 +01:00
<a href="<?php echo AdventOfCode::getURLForYear($year); ?>">Advent of Code</a>
2019-11-03 15:44:47 +01:00
</div>
<div class="index_pnl_content">
<?php
global $PARAM_AOCCALENDAR;
2020-01-06 21:58:09 +01:00
$PARAM_AOCCALENDAR = ['year' => $year, 'nav'=>true, 'linkheader'=>true, 'ajax'=>true];
2019-11-03 15:44:47 +01:00
require (__DIR__ . '/../fragments/panel_aoc_calendar.php')
?>
</div>
</div>