|
|
@ -4709,12 +4709,12 @@
|
|
|
|
$entry .= "<audio controls=\"controls\"><source src=\"$url\" type=\"$ctype\" />";
|
|
|
|
$entry .= "<audio controls=\"controls\"><source src=\"$url\" type=\"$ctype\" />";
|
|
|
|
if (($ctype == __("audio/mpeg")) &&
|
|
|
|
if (($ctype == __("audio/mpeg")) &&
|
|
|
|
(get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
|
|
|
|
(get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
|
|
|
|
$entry .= "<div><object type=\"application/x-shockwave-flash\" data=\"extras/button/musicplayer.swf?song_url=$url\" width=\"17\" height=\"17\"> <param name=\"movie\" value=\"extras/button/musicplayer.swf?song_url=$url\" /> </object></div>";
|
|
|
|
$entry .= "<span><object type=\"application/x-shockwave-flash\" data=\"extras/button/musicplayer.swf?song_url=$url\" width=\"17\" height=\"17\"> <param name=\"movie\" value=\"extras/button/musicplayer.swf?song_url=$url\" /> </object></span>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$entry .= "</audio>";
|
|
|
|
$entry .= "</audio> ";
|
|
|
|
if (($ctype == __("audio/mpeg")) &&
|
|
|
|
if (($ctype == __("audio/mpeg")) &&
|
|
|
|
(get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
|
|
|
|
(get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
|
|
|
|
$entry .= "<a id='switchToFlashLink' href='#' onclick='return switchToFlash(this)'>".__('Switch to Flash Player')."</a><br />";
|
|
|
|
$entry .= "<a id='switchToFlashLink' href='#' onclick='return switchToFlash(this)'>".__('Switch to Flash Player')."</a>";
|
|
|
|
$entry .= "<script type='text/javascript'>html5AudioOrFlash('$ctype');</script>";
|
|
|
|
$entry .= "<script type='text/javascript'>html5AudioOrFlash('$ctype');</script>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} elseif (substr($ctype,0,6)=="video/") {
|
|
|
|
} elseif (substr($ctype,0,6)=="video/") {
|
|
|
@ -5263,12 +5263,12 @@
|
|
|
|
$entry .= "<audio controls=\"controls\"><source src=\"$url\" type=\"$ctype\" />";
|
|
|
|
$entry .= "<audio controls=\"controls\"><source src=\"$url\" type=\"$ctype\" />";
|
|
|
|
if (($ctype == __("audio/mpeg")) &&
|
|
|
|
if (($ctype == __("audio/mpeg")) &&
|
|
|
|
(get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
|
|
|
|
(get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
|
|
|
|
$entry .= "<div><object type=\"application/x-shockwave-flash\" data=\"extras/button/musicplayer.swf?song_url=$url\" width=\"17\" height=\"17\"> <param name=\"movie\" value=\"extras/button/musicplayer.swf?song_url=$url\" /> </object></div>";
|
|
|
|
$entry .= "<span><object type=\"application/x-shockwave-flash\" data=\"extras/button/musicplayer.swf?song_url=$url\" width=\"17\" height=\"17\"> <param name=\"movie\" value=\"extras/button/musicplayer.swf?song_url=$url\" /> </object></span>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$entry .= "</audio>";
|
|
|
|
$entry .= "</audio> ";
|
|
|
|
if (($ctype == __("audio/mpeg")) &&
|
|
|
|
if (($ctype == __("audio/mpeg")) &&
|
|
|
|
(get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
|
|
|
|
(get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
|
|
|
|
$entry .= "<a id='switchToFlashLink' href='#' onclick='return switchToFlash(this)'>".__('Switch to Flash Player')."</a><br />";
|
|
|
|
$entry .= "<a id='switchToFlashLink' href='#' onclick='return switchToFlash(this)'>".__('Switch to Flash Player')."</a>";
|
|
|
|
$entry .= "<script type='text/javascript'>html5AudioOrFlash('$ctype');</script>";
|
|
|
|
$entry .= "<script type='text/javascript'>html5AudioOrFlash('$ctype');</script>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} elseif (substr($ctype,0,6)=="video/") {
|
|
|
|
} elseif (substr($ctype,0,6)=="video/") {
|
|
|
|