summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-25 15:32:53 +0300
committerAndrew Dolgov <[email protected]>2010-11-25 15:32:53 +0300
commit7515cb51d15f24b4c2fce367f097b1dd69ccefa7 (patch)
tree9ff10b0fcd5f49cc896817f659f756ec659ed36e /functions.php
parent8353bd26f26723876c7cdbeb95b80535e4fc6a67 (diff)
blacklist option ENABLE_FLASH_PLAYER
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php25
1 files changed, 2 insertions, 23 deletions
diff --git a/functions.php b/functions.php
index 27efb2c48..d874ba3b9 100644
--- a/functions.php
+++ b/functions.php
@@ -4454,35 +4454,14 @@
$entry = "";
- if (($ctype == __("audio/mpeg")) && (get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
+ if ($ctype == "audio/mpeg") {
$entry .= "<object type=\"application/x-shockwave-flash\"
data=\"extras/button/musicplayer.swf?song_url=$url\"
- width=\"17\" height=\"17\" style='float : left'>
+ width=\"17\" height=\"17\" style='float : left; margin-right : 5px;'>
<param name=\"movie\" value=\"extras/button/musicplayer.swf?song_url=$url\" /> </object>";
}
- /*
-
- if (substr($ctype,0,6)=="audio/" || $ctype=="application/ogg" || $ctype=="application/x-ogg") {
- $entry .= "<audio controls=\"controls\"><source src=\"$url\" type=\"$ctype\" />";
- if (($ctype == __("audio/mpeg")) &&
- (get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
- $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> ";
- if (($ctype == __("audio/mpeg")) &&
- (get_pref($link, "ENABLE_FLASH_PLAYER")) ) {
- $entry .= "<a id='switchToFlashLink' href='#' onclick='return switchToFlash(this)'>".__('Switch to Flash Player')."</a>";
- $entry .= "<script type='text/javascript'>html5AudioOrFlash('$ctype');</script>";
- }
- } elseif (substr($ctype,0,6)=="video/") {
- $entry .= "<video controls=\"controls\"><source src=\"$url\" type=\"$ctype\" />";
- $entry .= "</video>";
- } */
-
-
-
return $entry;
}