diff --git a/argo-audio-player.php b/argo-audio-player.php
index a97517a..fe50508 100755
--- a/argo-audio-player.php
+++ b/argo-audio-player.php
@@ -1,24 +1,24 @@
";
echo "";
-
-
+
+
/* Setup the SoundManager 2 swf directories*/
echo "";
-
- }
+
+ }
/*
* DISABLE DEFAULT FUNCTIONALITY
*/
-
+
function disable_builtin_caption( $shcode, $html ) {
return $html;
}
@@ -84,7 +84,7 @@ function disable_builtin_caption( $shcode, $html ) {
/*
* END DISABLE DEFAULT FUNCTIONALITY
*/
-
+
/*
* AUDIO EDITOR MARKUP CUSTOMIZATIONS
*/
@@ -96,10 +96,10 @@ function argo_audio_editor_markup( $href, $title, $caption ) {
}
$out .= sprintf( '%s', $href, 'exclude', 'Download' );
$out .= "";
-
+
return $out;
}
-
+
/*
* SHORTCODES
*/
@@ -110,32 +110,31 @@ function argo_audio_shortcode( $atts, $content ) {
$html = ArgoAudioPlayer::argo_audio_editor_markup( $href, $title, $content );
return $html;
}
-
+
// construct shortcode for audio embeds
function argo_audio_editor_shortcode( $html, $href, $title ) {
return sprintf( '[audio href="%s" title="%s"]Insert caption here[/audio]', $href, $title );
}
// construct shortcode for audio embeds
function argo_audio_editor_media_gallery_shortcode( $html, $send_id, $attachment ) {
- $title = '';
- $href = '';
- if (preg_match("/\.mp3|\.ogg|\.mp4|\.wav|\.m4a/",$html)) {
- /* Get the title from the html */
- preg_match("/\>.+\",$html,$title);
- $title = $title[0];
- $title = preg_replace("/\>|\","",$title);
- $title = preg_replace("/_/"," ",$title);
- /* Get the url of the file from the html */
- preg_match("/\'.+\'/",$html,$href);
- $href = $href[0];
- $href = preg_replace("/\'/","",$href);
- return sprintf( '[audio href="%s" title="%s"]Insert caption here[/audio]', $href, $title );
- } else {
- return;
-
- }
-
+ $title = '';
+ $href = '';
+ if (preg_match("/\.mp3|\.ogg|\.mp4|\.wav|\.m4a/",$html)) {
+ /* Get the title from the html */
+ preg_match("/\>.+\",$html,$title);
+ $title = $title[0];
+ $title = preg_replace("/\>|\","",$title);
+ $title = preg_replace("/_/"," ",$title);
+ /* Get the url of the file from the html */
+ preg_match("/\'.+\'/",$html,$href);
+ $href = $href[0];
+ $href = preg_replace("/\'/","",$href);
+ return sprintf( '[audio href="%s" title="%s"]Insert caption here[/audio]', $href, $title );
+ } else {
+ return $html;
+ }
}
+
/*
* ADMIN PRESENTATION CUSTOMIZATIONS
*/
@@ -147,8 +146,8 @@ function argo_tweak_upload_tabs( $defaults ) {
}
// XXX: it does more harm than good to comment this out.
//add_filter( 'media_upload_tabs', 'argo_tweak_upload_tabs', 12, 1 );
-
-
+
+
/*
* END ADMIN PRESENTATION CUSTOMIZATIONS
*/