From 7ddc95541d649fdf0121eafcd71a93376b16efec Mon Sep 17 00:00:00 2001 From: spocky Date: Mon, 17 Mar 2008 20:29:24 +0000 Subject: shoutbox now makes use of flip_class rewrote show_song code and css --- templates/show_shoutbox.inc.php | 5 +- templates/show_song.inc.php | 92 +++++++++++++----------------------- themes/classic/templates/default.css | 24 +++++++++- themes/greysme/templates/default.css | 23 +++++++++ 4 files changed, 80 insertions(+), 64 deletions(-) diff --git a/templates/show_shoutbox.inc.php b/templates/show_shoutbox.inc.php index 9d99620e..83c02f6e 100644 --- a/templates/show_shoutbox.inc.php +++ b/templates/show_shoutbox.inc.php @@ -22,17 +22,14 @@
object_type,$shout->object_id); $object->format(); $client = new User($shout->user); $client->format(); - - $rowparity = ($rowparity=="even") ? "odd" : "even"; ?> -
+
get_image(); ?> object_type); ?>: f_link; ?> f_link; ?> date); ?> diff --git a/templates/show_song.inc.php b/templates/show_song.inc.php index d9180d0b..918bf552 100644 --- a/templates/show_song.inc.php +++ b/templates/show_song.inc.php @@ -19,62 +19,38 @@ */ ?> -title . ' ' . _('Details')); ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -has_access('75')) { ?> - - - - - -update_time) { ?> - - - - - - - - -
title); ?>
f_artist_link; ?>
f_album_link; ?> (year); ?>)
f_genre_link; ?>
f_time); ?>
comment); ?>
label); ?>
language); ?>
catalog_number); ?>
f_bitrate); ?>
file); ?> (f_size; ?>MB)
update_time); ?>
addition_time); ?>
+title . ' ' . _('Details')); + + $songprops['Title'] = scrub_out($song->title); + $songprops['Artist'] = $song->f_artist_link; + $songprops['Album'] = $song->f_album_link . " " . scrub_out($song->year); + $songprops['Genre'] = $song->f_genre_link; + $songprops['Length'] = scrub_out($song->f_time); + $songprops['Comment'] = scrub_out($song->comment); + $songprops['Label'] = scrub_out($song->label); + $songprops['Language']= scrub_out($song->language); + $songprops['Catalog Number'] = scrub_out($song->catalog_number); + $songprops['Bitrate'] = scrub_out($song->f_bitrate); + if ($GLOBALS['user']->has_access('75')) { + $songprops['Filename'] = scrub_out($song->file) . " " . $song->f_size . "MB"; + } + if ($song->update_time) { + $songprops['Last Updated'] = date("d/m/Y H:i",$song->update_time); + } + $songprops['Added'] = date("d/m/Y H:i",$song->addition_time); + ?> + +
+ $value) + { + if(trim($value)) + { + $rowparity = flip_class(); + echo "
" . _($key) . "
" . $value . "
"; + } + }?> +
+ diff --git a/themes/classic/templates/default.css b/themes/classic/templates/default.css index 481a19e5..c6e8f4b7 100644 --- a/themes/classic/templates/default.css +++ b/themes/classic/templates/default.css @@ -533,10 +533,10 @@ a.button{padding:1px 3px;} border-bottom:1px dotted #c0c0c0; } .tabledata .even:hover, .tabledata .odd:hover { - background:#99ccff; + background:#9cf; } .row-highlight:hover { - background:#cc3333; + background:#c33; } @@ -561,6 +561,26 @@ td.cel_cover{padding:6px;} font-size: 0.8em; } +/************************************************/ +/* Song details */ +/************************************************/ +dl.song_details{font-size:0.8em;} +.song_details dt { + float:left; + clear:both; + width:20%; + min-width:20%; /*Ie bugfix*/ + font-weight:bold; +} +.song_details dd { + float:left; + width:79%; + min-width:79%; /*Ie bugfix*/ + margin:0 0 0.2em .3em; + padding-left:.2em; +} +dt + dd {border-bottom:1px dotted #c0c0c0;} +dt:hover, dt:hover + dd {background:#9cf;} /************************************************/ /* Albums of the moment */ diff --git a/themes/greysme/templates/default.css b/themes/greysme/templates/default.css index c086e0c1..584f283b 100644 --- a/themes/greysme/templates/default.css +++ b/themes/greysme/templates/default.css @@ -608,6 +608,29 @@ td.cel_track {text-align:right;} font-size: 0.8em; } +/************************************************/ +/* Song details */ +/************************************************/ +dl.song_details{font-size:1em;} +.song_details dt { + float:left; + clear:both; + width:20%; + min-width:20%; /*Ie bugfix*/ + font-weight:bold; +} +.song_details dd { + float:left; + width:79%; + min-width:79%; /*Ie bugfix*/ + margin:0 0 0.2em .3em; + padding-left:.2em; +} +dt, dt + dd {background: url(../images/list_back.png) 0 50% repeat-x !important; background-image: none;} +dt, dt + dd { background-color: #111 !important;} +dt:hover, dt:hover + dd {background-color: #2b293d !important;} + + /************************************************/ /* Albums of the moment */ /************************************************/ -- cgit