Created
October 31, 2013 18:20
-
-
Save chasereeves/7254423 to your computer and use it in GitHub Desktop.
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 ' | |
<div class="podlisten"> | |
<h5>Push Play: '. get_the_title() .' <a href="'. $src . '" target="_blank" class="iconotype">/</a></h5> | |
<div class="audio_element"> | |
<audio src="'.$src.'" controls autobuffer preload="none"> | |
<a href="'. $src . '">Listen to '. get_the_title() .'</a> | |
</audio> | |
</div> | |
<div class="group"> | |
<div class="onethird_column_left"> | |
<a target="_blank" href="https://itunes.apple.com/us/podcast/fizzle-show-honest-online/id656726654"> | |
<img src="'.get_template_directory_uri().'/images/sparkline-fizzle-show-small-square.jpg" alt="Fizzle Show:'. get_the_title() .'" class="frame podlisten_image" /> | |
</a> | |
</div> | |
<div class="onethird_column_right"> | |
<p class="podcast_about">A podcast for creative entrepreneurs and honest business builders...</p> | |
<p><strong style="letter-spacing:1px;font-size:.9em;">TO SUBSCRIBE:</strong> simply search for <em>“The Fizzle Show”</em> in your podcast app, or click here:<br /> | |
<a class="icon_btn" href="https://itunes.apple.com/us/podcast/fizzle-show-honest-online/id656726654">iTunes</a> | |
<a class="icon_btn" href="http://www.stitcher.com/podcast/fizzlepodcast/the-fizzle-show">Stitcher</a> | |
<a class="icon_btn" href="podcast://fizzle.libsyn.com/rss">Instacast</a> | |
<a class="icon_btn" href="http://fizzle.libsyn.com/rss">Podcast Feed URL</a> | |
</p> | |
</div> | |
</div> | |
<hr/> | |
</div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment