diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-14 06:25:07 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-14 06:25:07 +0000 |
commit | 6983cb8e0cdb661053c9f6336518f2549cfb13a5 (patch) | |
tree | 442ba3f6855d407fb213c1a266d7a1b4051c9486 | |
parent | 089cd9100a6b94602df62e07e5b7a9b2c563ef95 (diff) | |
download | ampache-6983cb8e0cdb661053c9f6336518f2549cfb13a5.tar.gz ampache-6983cb8e0cdb661053c9f6336518f2549cfb13a5.tar.bz2 ampache-6983cb8e0cdb661053c9f6336518f2549cfb13a5.zip |
fixed some minor css issues with recently played, added newest artists/genres back in to main page
-rw-r--r-- | templates/show_index.inc.php | 14 | ||||
-rw-r--r-- | templates/show_objects.inc.php | 2 | ||||
-rw-r--r-- | templates/show_recently_played.inc.php | 4 |
3 files changed, 15 insertions, 5 deletions
diff --git a/templates/show_index.inc.php b/templates/show_index.inc.php index ade19a52..6bcfcfd5 100644 --- a/templates/show_index.inc.php +++ b/templates/show_index.inc.php @@ -50,8 +50,18 @@ if (isset($_REQUEST['xspf']) && isset ($_REQUEST['play_info'])){ <?php $objects = Stats::get_newest('album'); $headers = array('f_link'=>_('Newest Albums')); - show_box_top(); - require_once Config::get('prefix') . '/templates/show_objects.inc.php'; + show_box_top('','info-box'); + require Config::get('prefix') . '/templates/show_objects.inc.php'; + show_box_bottom(); + $objects = Stats::get_newest('artist'); + $headers = array('f_name_link'=>_('Newest Artists')); + show_box_top('','info-box'); + require Config::get('prefix') . '/templates/show_objects.inc.php'; + show_box_bottom(); + $objects = Stats::get_newest('genre'); + $headers = array('f_link'=>_('Newest Genres')); + show_box_top('','info-box'); + require Config::get('prefix') . '/templates/show_objects.inc.php'; show_box_bottom(); ?> </div> diff --git a/templates/show_objects.inc.php b/templates/show_objects.inc.php index 12629919..0cb0d935 100644 --- a/templates/show_objects.inc.php +++ b/templates/show_objects.inc.php @@ -24,7 +24,7 @@ */ ?> <table class="table-data" cellspacing="0"> -<tr class="<?php echo flip_class(); ?>"> +<tr> <?php foreach ($headers as $header) { ?> <th><?php echo scrub_out($header); ?></th> <?php } ?> diff --git a/templates/show_recently_played.inc.php b/templates/show_recently_played.inc.php index 5b58afcc..e7250a74 100644 --- a/templates/show_recently_played.inc.php +++ b/templates/show_recently_played.inc.php @@ -23,7 +23,7 @@ $time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days ago'),_('weeks ago'),_('months ago'),_('years ago')); ?> -<table> +<table class="table-data" cellspacing="0"> <tr class="table-header"> <td><?php echo _('Username'); ?></td> <td><?php echo _('Song'); ?></td> @@ -61,7 +61,7 @@ $time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days a $song->format(); ?> -<tr> +<tr class="<?php echo flip_class(); ?>"> <td> <a href="<?php echo Config::get('web_path'); ?>/stats.php?action=show_user&user_id=<?php echo scrub_out($row_user->id); ?>"> <?php echo scrub_out($row_user->fullname); ?> |