diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 5d91af9e..be94e802 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,7 @@ -------------------------------------------------------------------------- v.3.4-Alpha3 + - Added single song view - Added Play Select drop down back in - Fixed ordering of catalogs - Fixed multi-genre Random Play diff --git a/lib/class/song.class.php b/lib/class/song.class.php index d39aef1a..e912e511 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -677,7 +677,7 @@ class Song { $this->f_title = truncate_with_ellipsis($this->title,Config::get('ellipse_threshold_title')); // Create Links for the different objects - $this->f_link = "id . "\"> " . scrub_out($this->f_title) . ""; + $this->f_link = "id . "\"> " . scrub_out($this->f_title) . ""; $this->f_album_link = "album . "\"> " . scrub_out($this->f_album) . ""; $this->f_artist_link = "artist . "\"> " . scrub_out($this->f_artist) . ""; @@ -688,7 +688,6 @@ class Song { $this->f_genre = $this->get_genre_name(); $this->f_genre_link = "genre . "\">$this->f_genre"; - // Format the Time $min = floor($this->time/60); $sec = sprintf("%02d", ($this->time%60) ); @@ -702,14 +701,14 @@ class Song { return true; - } // format_song + } // format - /*! - * @function get_rel_path - * @discussion returns the path of the song file stripped of the catalog path - * used for mpd playback - */ - function get_rel_path($file_path=0,$catalog_id=0) { + /** + * @function get_rel_path + * @discussion returns the path of the song file stripped of the catalog path + * used for mpd playback + */ + function get_rel_path($file_path=0,$catalog_id=0) { if (!$file_path) { $info = $this->_get_info(); @@ -724,7 +723,7 @@ class Song { $catalog_path = rtrim($catalog_path, "/"); return( str_replace( $catalog_path . "/", "", $file_path ) ); - } // get_rel_path + } // get_rel_path /*! diff --git a/song.php b/song.php new file mode 100644 index 00000000..be55fbbf --- /dev/null +++ b/song.php @@ -0,0 +1,39 @@ +format(); + $song->fill_ext_info(); + require_once Config::get('prefix') . '/templates/show_song.inc.php'; + break; +} // end data collection + +show_footer(); + +?> diff --git a/templates/show_song.inc.php b/templates/show_song.inc.php new file mode 100644 index 00000000..9f7b19e5 --- /dev/null +++ b/templates/show_song.inc.php @@ -0,0 +1,58 @@ + +title . ' ' . _('Details')); ?> +
+ | title); ?> | +
+ | f_artist_link; ?> | +
+ | f_album_link; ?> (year); ?>) | +
+ | f_genre_link; ?> | +
+ | f_bitrate); ?> | +
+ | file); ?> (f_size; ?>MB) | +
+ | update_time); ?> | +
+ | addition_time); ?> | +