xspf_player now uses filename as song title
This commit is contained in:
parent
56f3ca6c10
commit
2c1a94c734
@ -4,13 +4,14 @@ class MP3FileHandlerTheme extends Themelet {
|
|||||||
public function display_image(Page $page, Image $image) {
|
public function display_image(Page $page, Image $image) {
|
||||||
$data_href = get_base_href();
|
$data_href = get_base_href();
|
||||||
$ilink = $image->get_image_link();
|
$ilink = $image->get_image_link();
|
||||||
|
$fname = $image->filename; //Most of the time this will be the title/artist of the song.
|
||||||
$html = "
|
$html = "
|
||||||
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
|
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
|
||||||
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0'
|
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0'
|
||||||
width='400' height='15'>
|
width='400' height='15'>
|
||||||
<param name='movie' value='$data_href/ext/handle_mp3/xspf_player_slim.swf?song_url=$ilink'/>
|
<param name='movie' value='$data_href/ext/handle_mp3/xspf_player_slim.swf?song_url=$ilink'/>
|
||||||
<param name='quality' value='high' />
|
<param name='quality' value='high' />
|
||||||
<embed src='$data_href/ext/handle_mp3/xspf_player_slim.swf?song_url=$ilink' quality='high'
|
<embed src='$data_href/ext/handle_mp3/xspf_player_slim.swf?song_url=$ilink&song_title=$fname' quality='high'
|
||||||
pluginspage='http://www.macromedia.com/go/getflashplayer'
|
pluginspage='http://www.macromedia.com/go/getflashplayer'
|
||||||
width='400' height='15'
|
width='400' height='15'
|
||||||
type='application/x-shockwave-flash'></embed>
|
type='application/x-shockwave-flash'></embed>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user