function mf_customised_pages() { if (is_page('Videos') || post_has_video(ID_ouside_loop())) { ?> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?> /page-customs/css/videos.css" type="text/css" media="screen" /><?php wp_enqueue_script('vimeo ajax', get_bloginfo('template_url') . '/js/vimeo_ajax.js', array('jquery')); } if (is_page('Contact')) { ?> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?> /page-customs/css/contact.css" type="text/css" media="screen" /><?php } }
<?php /* Widgetized sidebar, if you have the plugin installed. */ if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) { ?> <?php if (is_page() || is_single()) { ?> <?php $side_vid = new VimeoObject(); $post_id = ID_ouside_loop(); $video_id = get_post_meta($post_id, 'mf_vimeo', true); $side_vid->width = 304; $side_vid->height = 171; 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();