<div data-animated="fadeInLeft" id="post-<?php the_ID(); ?>" <?php post_class('post clearfix'); ?>>
<div class="blog-bg">
	<div class="post-title">
	
<h2> <i class="fa fa-film fa-2x pull-right"></i>	<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__('Permalink to %s', 'KP_THEME_NAME'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
	</div><!-- End of Title -->

	<div class="post-meta">
	 <h5>  Posted at <?php the_time('d'); ?> <?php the_time('M'); ?> <?php the_time('Y'); ?> , <?php _e(' ', 'KP_THEME_NAME'); the_category(', '); ?></h5>
	</div><!-- End of Meta Date -->
	
	<div class="post-media">
		
		<?php 
  
  $kp_video_type = rwmb_meta( 'slant_post_video_type' );
  $kp_video_id = rwmb_meta( 'slant_post_video_id' );
  
  ?> 
		 <div class="post-video fitvideo">
            <?php  
            if($kp_video_type == 'vimeo'){
        	echo '<iframe src="https://player.vimeo.com/video/'.$kp_video_id.'?badge=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'; 
			}
			if($kp_video_type == 'youtube'){
        	echo '<iframe width="500px" height="250" src="https://www.youtube.com/embed/'.$kp_video_id.'" frameborder="0" allowfullscreen></iframe>';
			}
            ?> 
        </div>
		
	</div>

	<div class="post-txt blog-content">
	



	<div class="post-content">
		
		
		 <?php
              //if no excerpt is set

               global $post;

              if(empty( $post->post_excerpt )) {

              the_content('<div class="clearfix"></div><span class="more fa  fa-external-link">'. __("  Read More", KP_THEME_NAME) . '</span>');

                                                                }

                                                               

                                                                //excerpt

                                                                else {

                                                                                echo '<div class="excerpt">';

                                                                                                the_excerpt();

                                                                                echo '</div>';

                                                                                echo '<div class="clearfix"></div><a class="more fa  fa-external-link" href="' . get_permalink() . '"><span class="more fa  fa-external-link">'. __("  Read More", KP_THEME_NAME) .'</span></a>';

                                                                }

                                                               

                                                                ?>
        <?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>   
	</div><!-- End of Content -->
	</div><!-- End of txt -->
    <!-- End of Tags -->
</div><!--bg-->
</div><!-- End of Post -->




