$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">
?> <div id='flickr' class="multimedia"> <?php $vimeo = new VimeoObject(); ?> <?php $films = $vimeo->thumb_list(); ?> <?php echo $films['list']; ?> </div> <div class="video clear"> <?php $player = $vimeo->get_requested_video($films['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> <?php } else { ?> <div id='flickr' class="multimedia"> <?php $flickr = new FlickrObject();
<?php /** * @package WordPress * @subpackage Starkers */ ?> <ul id="sidebar"> <li> <?php $side_vid = new VimeoObject(); $side_vid->width = 304; $side_vid->height = 171; echo $side_vid->get_requested_video($films['first_film_id']); ?> <li> </ul>