From 3f2f2f8569bebe7c33f979ee0367920eae447e87 Mon Sep 17 00:00:00 2001 From: Ben Byrne Date: Fri, 17 May 2013 11:34:43 -0600 Subject: [PATCH] CF gallery fix Making change recommended by CrowdFavorite and incrementing version number. --- argo-audio-player.php | 69 +++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 35 deletions(-) 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("/\>.+\|\.+\|\