Advertisement
Guest User

single.php

a guest
Oct 31st, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.21 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Template for displaying all single posts.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage Novavideo
  7.  * @since Novavideo 1.0
  8.  */
  9.  
  10. get_header();
  11.  
  12. include_once( TEMPLATEPATH . '/_includes/mobile-detect.php' ); ?>
  13.  
  14.     <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  15.    
  16.     <?php novavideo_setPostViews(get_the_ID()); $current_postID = $post->ID; ?>
  17.        
  18.         <div id="video" itemscope itemtype="http://schema.org/Movie">
  19.          
  20.                 <h1 class="border-radius-top-5" itemprop="name"><span><?php the_title(); ?></span></h1>
  21.                
  22.                 <meta itemprop="image" content="<?php echo novavideo_get_post_image( 'full', true );?>" />              
  23.                
  24.            
  25.                 <!-- Video player -->
  26.                 <?php
  27.                      if ( get_option( novavideo_get_theme_name() . '_responsive_player' ) == 'yes' && novavideo_get_video_rendering() )
  28.                         $video_class = 'minheight video-load';
  29.                      elseif ( novavideo_get_video_rendering() )
  30.                         $video_class = 'video-load';
  31.                 ?>
  32.                
  33.                  <div id="video-code" class="<?php echo $video_class;?>">    
  34.  
  35.                     <!-- Hidden description -->
  36.                     <?php if ( get_option( novavideo_get_theme_name() . '_hide_desc' ) == 'yes' && get_the_content() != '' && novavideo_get_video_rendering() ) : ?>
  37.                         <div class="infobutton border-radius-top-right-5"></div>              
  38.                         <div class="infotext border-radius-top-5" itemprop="description"><?php the_content(); ?></div>                        
  39.                     <?php endif; ?>
  40.                    
  41.                     <?php if ( novavideo_get_video_rendering() ) : ?>
  42.                    
  43.                         <div class="video-embed">
  44.                             <?php echo novavideo_get_video_rendering(); ?>                            
  45.                         </div>                                                                                                                      
  46.                        
  47.                     <?php else: ?>
  48.                    
  49.                         <div class="video-embed">                        
  50.                             <?php the_content(); ?>                            
  51.                         </div>
  52.                        
  53.                     <?php endif; ?>                    
  54.                    
  55.                 </div><!-- #video-code -->
  56.                    
  57.                
  58.                 <!-- Video advertising -->
  59.                 <?php include_once( TEMPLATEPATH . '/_front/single/video-advertising.php' ); ?>
  60.                
  61.                 <!-- Video infos -->                
  62.                 <?php include_once( TEMPLATEPATH . '/_front/single/video-infos.php' ); ?>
  63.                
  64.                 <!-- Shadow DZ plus -->
  65.                 <?php if ( get_option( novavideo_get_theme_name() . '_dzplus' ) == 'yes' ) : ?>
  66.                     <img id="shadow_img" src="<?php echo get_bloginfo('template_url'); ?>/images/video-shadow.png" width="100%" />                
  67.                 <?php endif; ?>
  68.            
  69.         </div><!-- #video -->
  70.        
  71.         <!-- Content banner -->
  72.         <?php
  73.             $content_banner                 = novavideo_get_banner( 'content' );
  74.             $affiliate_id                   = get_option ( novavideo_get_theme_name() . '_affiliate_id' );
  75.             $_affiliate_banner_content      = get_option ( novavideo_get_theme_name() . '_affiliate_banner_content' );
  76.         ?>
  77.         <?php if ( $affiliate_id != '' && $_affiliate_banner_content == 'yes' ) : ?>
  78.             <div class="content-banner"><a href="http://www.wp-script.com/?ref=<?php echo $affiliate_id; ?>" title="Create Adult Video Websites with our Premium Wordpress Themes and Plugins" target="_blank" rel="nofollow"><img src="http://www.wp-script.com/banners/wp-script-leaderboard-dark.gif" alt="Create Adult Video Websites with our Premium Wordpress Themes and Plugins" /></a></div>
  79.         <?php elseif ( !empty( $content_banner ) ) : ?>
  80.             <div class="content-banner"><?php echo $content_banner ?></div>
  81.         <?php endif; ?>
  82.        
  83.         <!-- Video content widget -->                      
  84.         <?php
  85.             if ( function_exists('dynamic_sidebar') && is_active_sidebar('video-content') )
  86.                 dynamic_sidebar('Video Content');
  87.         ?>
  88.        
  89.         <!-- Comments -->
  90.         <?php if ( get_option( novavideo_get_theme_name() . '_comments' ) == 'yes' ) : ?>
  91.              
  92.             <div id="comments">                
  93.            
  94.                 <div class="comments-template">
  95.                     <?php comments_template( '', true ); ?>
  96.                 </div>
  97.                
  98.             </div><!-- #comments -->
  99.            
  100.         <?php endif;?>
  101.        
  102.         <?php endwhile; else: ?>
  103.             <?php _e('No video founded.', novavideo_get_theme_name()); ?>
  104.         <?php endif; ?>
  105.        
  106.         <div class="clear"></div>
  107.        
  108.     </div><!-- #content -->
  109.  
  110.     <?php wp_reset_query(); ?>
  111.  
  112. <?php get_sidebar(); ?>
  113. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement