Created
April 2, 2012 15:44
-
-
Save billerickson/2284504 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 | |
| /** | |
| * Single Post | |
| * | |
| * @package BE_Genesis_Child | |
| * @since 1.0.0 | |
| * @link https://github.com/billerickson/BE-Genesis-Child | |
| * @author Bill Erickson <bill@billerickson.net> | |
| * @copyright Copyright (c) 2011, Bill Erickson | |
| * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
| * | |
| */ | |
| /** | |
| * Add video to top of page | |
| * | |
| */ | |
| function be_single_video() { | |
| global $post; | |
| $video = get_post_meta( $post->ID, 'be_video', true ); | |
| if( !empty( $video ) ) | |
| echo '<div id="video-area"><div class="wrap">' . $video . '</div></div>'; | |
| } | |
| add_action( 'genesis_before_content_sidebar_wrap', 'be_single_video' ); | |
| genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment