diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-17 05:26:11 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-17 05:26:11 +0000 |
commit | 8448a0fc84ba25e6fd949b8162e3d1c96948d808 (patch) | |
tree | f25ba419b76412d0d072e9e9c9ffa7cbbfb36885 /templates/show_index.inc.php | |
parent | d23122dffafa40415b1496c240ebd0b27619ef0f (diff) | |
download | ampache-8448a0fc84ba25e6fd949b8162e3d1c96948d808.tar.gz ampache-8448a0fc84ba25e6fd949b8162e3d1c96948d808.tar.bz2 ampache-8448a0fc84ba25e6fd949b8162e3d1c96948d808.zip |
added shoutbox functionality, only linked from song and album right now also interface for adding could use some improvement and also needs some management stuff to remove stickies etc
Diffstat (limited to 'templates/show_index.inc.php')
-rw-r--r-- | templates/show_index.inc.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/templates/show_index.inc.php b/templates/show_index.inc.php index 3e656024..5dbdf08b 100644 --- a/templates/show_index.inc.php +++ b/templates/show_index.inc.php @@ -28,13 +28,25 @@ if (isset($_REQUEST['xspf']) && isset ($_REQUEST['play_info'])){ <div id="now_playing"> <?php show_now_playing(); ?> </div> <!-- Close Now Playing Div --> -<!-- Recently Played --> +<!-- Sticky Objects, if sticky is enabled --> +<?php if (Config::get('shoutbox')) { ?> +<div id="shout_objects"> + <?php + $shouts = shoutBox::get_top('5'); + if (count($shouts)) { + require_once Config::get('prefix') . '/templates/show_shoutbox.inc.php'; + } + ?> +</div> +<?php } ?> +<!-- Randomly selected albums of the moment --> <div id="random_selection"> <?php $albums = get_random_albums('6'); if (count($albums)) { require_once Config::get('prefix') . '/templates/show_random_albums.inc.php'; } ?> </div> +<!-- Recently Played --> <div id="recently_played"> <?php $data = get_recently_played(); |