diff options
Diffstat (limited to 'pages/column.php')
-rw-r--r-- | pages/column.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pages/column.php b/pages/column.php new file mode 100644 index 0000000..082565e --- /dev/null +++ b/pages/column.php @@ -0,0 +1,42 @@ +<?php +include_once($UTIL_DIR . "/album.php"); +list($album, $photo) = getRandomPhoto(); +?> +<div class="random_image"> +<a href="?page=gallery&image=<?php echo $photo->file; ?>&album=<?php echo $album->album; ?>"> + <img alt="Random gallery image" src="<?php echo thumbnail($album->album, $photo->file, 201, 201); ?>"/> +</a> +</div> +<div class="small_header">Upcoming shows</div> +<?php +include_once($UTIL_DIR."/events.php"); + +$events = new Events($DATA_DIR."/events.xml"); +$events->showcoming(3); +?> +<div class="more"> + <a href="?page=live">more >></a> +</div> +<div class="small_header">Site news</div> +<?php +include_once($UTIL_DIR."/news.php"); + +$news = new News($DATA_DIR."/news.xml"); + +$news->show(3, "site"); +?> +<div class="more"> + <a href="?page=news&show=all">more >></a> +</div> + +<div class="small_header">Links</div> +<?php +include_once($UTIL_DIR."/links.php"); + +$links = new Links($DATA_DIR."/links.xml"); + +$links->show("column"); +?> +<div class="more"> + <a href="?page=links">more >></a> +</div> |