2019-11-03 00:06:25 +01:00
< ? php
require_once ( __DIR__ . '/../internals/base.php' );
require_once ( __DIR__ . '/../internals/blog.php' );
require_once ( __DIR__ . '/../internals/adventofcode.php' );
2020-01-09 12:50:08 +01:00
require_once ( __DIR__ . '/../internals/ParsedownCustom.php' );
2019-11-03 00:06:25 +01:00
$year = $post [ 'extras' ][ 'aoc:year' ];
?>
< div class = " boxedcontent blogcontent_plain " >
< div style = " position: relative; " >
< a href = " <?php echo AdventOfCode::getGithubLink( $year ); ?> " style = " position: absolute; top: 0; right: 0; border: 0; " >
< 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-01-09 12:50:08 +01:00
< ? php
$pd = new ParsedownCustom ();
echo $pd -> text ( Blog :: getPostFragment ( $post ));
?>
< br />
2019-11-03 15:33:23 +01:00
< ? php
global $PARAM_AOCCALENDAR ;
2020-01-06 21:58:09 +01:00
$PARAM_AOCCALENDAR = [ 'year' => $year , 'nav' => true , 'linkheader' => false , 'ajax' => false ];
2019-11-03 15:33:23 +01:00
require ( __DIR__ . '/../fragments/panel_aoc_calendar.php' )
?>
2019-11-03 00:06:25 +01:00
</ div >
</ div >