</a></h1> <div id="actions"> <?php dp_like_post(); ?> <div class="dropdown dp-share"> <a class="dropdown-handle" href="#"><?php _e('Share', 'dp'); ?> </a> <div class="dropdown-content"> <?php dp_addthis(array('post_id' => $post->ID)); ?> </div> </div> </div> </div><!-- end #headline --> <div id="screen"><div id="screen-inner"> <?php if (is_video($post->ID)) { dp_video($post->ID, $autoplay); } else { $thumb_size = 'custom-full'; dp_thumb_html($thumb_size);
function dp_ajax_video() { if (!isset($_REQUEST['action']) || !isset($_REQUEST['id']) || $_REQUEST['action'] != 'ajax-video') { return false; } $pid = $_REQUEST['id']; ?> <div id="video" class="wrap cf"> <div id="headline" class="cf"> <h1 class="entry-title"><a href="<?php echo get_permalink($pid); ?> "><?php echo get_the_title($pid); ?> </a></h1> <div id="actions"> <?php dp_like_post($pid); ?> <div class="dropdown dp-share"> <span class="dropdown-handle"><?php _e('Share', 'dp'); ?> </span> <div class="dropdown-content"> <?php dp_addthis(array('post_id' => $pid)); ?> </div> </div> </div> </div><!-- end #headline --> <div id="screen" class="loading"><div id="screen-inner"> <?php dp_video($pid, true); ?> </div></div><!-- end #screen --> </div><!-- end #video --> <?php die; }
</h1> <div id="actions"> <?php dp_like_post(); ?> <div class="dropdown dp-share"> <a class="dropdown-handle" href="#"><?php _e('Share', 'dp'); ?> </a> <div class="dropdown-content"> <?php dp_addthis(); ?> </div> </div> </div> </div><!-- end #headline>.inner --> </div><!-- end #headline --> <div id="content" role="main"> <?php while (have_posts()) { the_post(); global $post; ?> <div <?php