Created
May 25, 2012 18:30
-
-
Save technosailor/2789696 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
class AMM_Template_Tags { | |
public function __construct() {} | |
public function display_featured_video() | |
{ | |
$amm_options = get_option( 'amm_options' ); | |
$video_url = $amm_options['featured_video']; // http://www.youtube.com/watch?v=S-PcsfPPUsE | |
if( !$video_url ) | |
return false; | |
echo do_shortcode('[embed]' . $video_url . '[/embed]' ); | |
} | |
} | |
$ammtt = new AMM_Template_Tags | |
function test() | |
{ | |
global $ammtt; | |
$ammtt->display_featured_video(); | |
} | |
add_action('genesis_before_content', 'test'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment