<?php /* Template Name: Multimedia Page */ $vimeo = new VimeoObject(); $films = $vimeo->title_thumb_desc(); ob_start(); get_header(); ?> <?php get_sidebar(); mf_loop(); echo $films['list']; get_footer();
if (post_has_video($post_id, $video_id) == false) { $single_video = false; //prevents sidebar from displaying video if no video exists fb::log($post_id, $video_id); } else { $single_video = $side_vid->oembed_single_video_by_id($video_id); //places video object inside single video } ?> <?php if (is_page('videos') == true) { ?> <li> <div class="video"> <?php $first_video = $side_vid->title_thumb_desc(); $player = $side_vid->get_requested_video($first_video['first_film_id']); echo '<h4>' . $player['title'] . '</h4>'; echo "<p class='video-nav'>Next Video:" . $player['next'] . "</p>"; echo "<p class='video-nav'>Previous Video:" . $player['prev'] . "</p>"; echo $player['video']; echo '<p>' . $player['desc'] . '</p>'; ?> </div> </li> <?php } elseif ($single_video == true) { ?> <li> <div class="video">