Created
October 22, 2013 00:11
-
-
Save chasereeves/7093132 to your computer and use it in GitHub Desktop.
Wordpress shortcode for podcast file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//=========================================================== PODLISTEN SHORTCODE | |
add_shortcode('podlisten', 'podlisten_shortcode'); | |
// example: [podlisten src="http://your-site/videos/your-audio.mp3"] | |
function podlisten_shortcode($atts, $content = null) { | |
extract(shortcode_atts(array( | |
"src" => '' | |
), $atts)); | |
return ' | |
<hr class="big"/> | |
<p><strong style="letter-spacing:1px;font-size:.9em;">SUBSCRIBE IN iTUNES:</strong> Visit <a href="https://itunes.apple.com/us/podcast/fizzle-show-honest-online/id656726654">The Fizzle Show’s iTunes page</a> and click “Subscribe.” <br/><span class="quiet"><em>(If that link takes you to another webpage, click the blue “View in iTunes” button.).</em></span></p> | |
<p><strong style="letter-spacing:1px;font-size:.9em;">SUBSCRIBE ELSEWHERE:</strong> Simply search for <em>“The Fizzle Show”</em> in your podcast app. Or click here for: <a href="http://www.stitcher.com/podcast/fizzlepodcast/the-fizzle-show">Stitcher</a> | <a href="podcast://fizzle.libsyn.com/rss">Instacast</a> | <a href="http://fizzle.libsyn.com/rss">Podcast Feed URL</a></p> | |
<div class="audio_element"> | |
<audio src="'.$src.'" controls autobuffer preload="none"> | |
<a href="'. $src . '">Listen to '. get_the_title() .'</a> | |
</audio> | |
<br/> | |
<em><small class="quiet">Download <a href="'. $src . '" target="_blank">'. get_the_title() .'</small></em></a> | |
</div> | |
<hr class="big"/>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment