forked from initLab/initlanesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-video.php
38 lines (29 loc) · 931 Bytes
/
content-video.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
//* Video post format
$content = get_the_content();
$title = get_the_title( );
$permalink=get_permalink( );
wp_enqueue_script('jquery_fitvids');
echo '<div class="media_container">';
$embed = get_post_meta( $post->ID, 'zp_video_format_embed', true);
if( !empty( $embed ) ) {
echo stripslashes(htmlspecialchars_decode($embed));
?>
<script type="text/javascript">
jQuery(document).ready(function(){
//fitvideo
jQuery(".media_container").fitVids();
});
</script>
<?php
} else {
zp_video($post->ID, 640);
}
echo '</div>';
echo '<div class="post_content">';
do_action( 'genesis_entry_header' );
do_action( 'genesis_before_entry_content' );
printf( '<div %s>', genesis_attr( 'entry-content' ) );
genesis_do_post_content();
echo '</div>'; //* end .entry-content
echo '</div>';