diff options
author | momo-i <momo-i@ampache> | 2009-02-24 04:34:03 +0000 |
---|---|---|
committer | momo-i <momo-i@ampache> | 2009-02-24 04:34:03 +0000 |
commit | 6ef181ccef1c9432b97998907e66a09087fba103 (patch) | |
tree | 6d74c3f86e786816b8a70b57a85e92c63af7d6dc /templates/show_lyrics.inc.php | |
parent | 14ef5361513ebf5a9d8086f17d098ab76e545d14 (diff) | |
download | ampache-6ef181ccef1c9432b97998907e66a09087fba103.tar.gz ampache-6ef181ccef1c9432b97998907e66a09087fba103.tar.bz2 ampache-6ef181ccef1c9432b97998907e66a09087fba103.zip |
Add: forgot to add file.
Diffstat (limited to 'templates/show_lyrics.inc.php')
-rw-r--r-- | templates/show_lyrics.inc.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/templates/show_lyrics.inc.php b/templates/show_lyrics.inc.php new file mode 100644 index 00000000..c2f45459 --- /dev/null +++ b/templates/show_lyrics.inc.php @@ -0,0 +1,48 @@ +<?php +/* + + Copyright (c) 2001 - 2007 Ampache.org + All rights reserved. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License v2 + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +/* + * show_lyrics.inc.php + * show lyrics for selected song, if user has selected to do so in preferences + * + * Al Ayres + * al.ayres@gmail.com + * Modified: 01/01/2008 + * +*/ +?> +<?php show_box_top($song->title . ' ' . _('Lyrics')); ?> +<table class="tabledata" cellspacing="0" cellpadding="0"> +<tr> + <td> + <?php + $return = scrub_out(Artist::get_song_lyrics($song->id, ucwords($song->f_artist), ucwords($song->title))); + if($return =="Sorry Lyrics, Not found") { + echo _("Sorry Lyrics, not found\n\n"); + } + else { + echo "<pre>" . $return . "</pre>"; + } + ?> + </td> +</tr> +</table> +<?php show_box_bottom(); ?> |