<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);
            }
            ?>
					</div></div><!-- end #screen -->
				</div><!-- end #video -->
			<?php 
        }
        /* Get carousel items
         *============================================*/
        // Get Thumbnail html
        $thumb_html = dp_thumb_html('custom-small', '', '', false);
        // Build classname
        $classes = array('item');
Example #2
0
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;
}
Example #3
0
    the_post();
    global $post;
    ?>
		
		<div <?php 
    post_class();
    ?>
 id="post-<?php 
    the_ID();
    ?>
">
		
		<div id="video">
			<div id="screen">
				<?php 
    dp_video($post->ID, get_option('dp_single_video_autoplay'));
    ?>
			</div><!-- end #screen -->
		</div><!-- end #video-->

		
		<div id="details" class="section-box">
			<div class="section-content">
			<div id="info" data-height="150">
				<p class="entry-meta">
					<span class="author"><?php 
    _e('Added by', 'dp');
    ?>
 <?php 
    the_author_posts_link();
    ?>