2019-11-03 00:06:25 +01:00
< ? php
2020-01-17 00:36:37 +01:00
require_once ( __DIR__ . '/../internals/website.php' );
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS ;
/** @var URLRoute $ROUTE */ global $ROUTE ;
/** @var Website $SITE */ global $SITE ;
global $FRAGMENT_PARAM ;
/** @var array $parameter */
$parameter = $FRAGMENT_PARAM ;
?>
< ? php
$post = $parameter [ 'blogpost' ];
2019-11-03 00:06:25 +01:00
$year = $post [ 'extras' ][ 'aoc:year' ];
2020-01-20 21:13:26 +01:00
$FRAME_OPTIONS -> alternative_url = " /adventofcode/ $year " ;
2019-11-03 00:06:25 +01:00
?>
2023-09-11 19:59:07 +02:00
< div class = " boxedcontent blogcontent_aoclist " >
2019-11-03 00:06:25 +01:00
< div style = " position: relative; " >
2020-01-17 00:36:37 +01:00
< a href = " <?php echo $SITE->modules ->AdventOfCode()->getGithubLink( $year ); ?> " style = " position: absolute; top: 0; right: 0; border: 0; " >
2019-11-03 00:06:25 +01:00
< img src = " /data/images/blog/github_band.png " alt = " Fork me on GitHub " data - canonical - src = " https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png " >
</ a >
</ div >
< div class = " bc_header " >
< ? php echo $post [ 'date' ]; ?>
</ div >
< div class = " bc_data " >
2020-12-02 08:32:04 +01:00
< ? php echo $SITE -> renderMarkdown ( $SITE -> modules -> Blog () -> getPostFragment ( $post )); ?>
2020-01-09 12:50:08 +01:00
< br />
2020-01-17 00:36:37 +01:00
< ? php echo $SITE -> fragments -> PanelAdventOfCodeCalendar ( $year , true , false , false ); ?>
2019-11-03 00:06:25 +01:00
</ div >
</ div >