Ejemplo n.º 1
0
    global $post;
    ?>
                    
                    <div <?php 
    post_class();
    ?>
 id="post-<?php 
    the_ID();
    ?>
">
                    
                    <div id="video">
                        <div class="screen fluid-width-video-wrapper">
                        	<div id="player">
                            <?php 
    $url = tm_video($post->ID, get_option('dp_single_video_autoplay'));
    ?>
 
                            </div>
                            <?php 
    $tern_wp_youtube_video = get_post_meta($post->ID, '_tern_wp_youtube_video', true);
    if (!isset($content_width)) {
        $content_width = 900;
    }
    $file = get_post_meta($post->ID, 'tm_video_file', true);
    $url = trim(get_post_meta($post->ID, 'tm_video_url', true));
    $code = trim(get_post_meta($post->ID, 'tm_video_code', true));
    function getYouTubeIdFromURL($url)
    {
        $url_string = parse_url($url, PHP_URL_QUERY);
        parse_str($url_string, $args);
Ejemplo n.º 2
0
 <div class="container">
     <div class="row">
         <div class="col-md-8">
             <div class="is-carousel" id="stage-carousel" data-notauto=1 >
                 <div class="classy-carousel-content">
                 <?php 
     $item_count = 0;
     while ($header_query->have_posts()) {
         $header_query->the_post();
         $item_count++;
         $format = get_post_format(get_the_ID());
         ?>
                     <div class="video-item">
                         <div class="item-thumbnail">
                             <?php 
         $url = tm_video($post->ID, false);
         ?>
                         </div>
                     </div><!--/video-item-->
                 <?php 
     }
     wp_reset_postdata();
     ?>
                 </div><!--/carousel-content-->
                 <div class="clearfix"></div>
             </div><!--stage-->
         </div><!--col8-->
         <div class="col-md-4">
             <div class="is-carousel" id="control-stage-carousel">
                 <a class="control-up"><i class="fa fa-angle-up"></i></a>
                 <div class="classy-carousel-content">
    $item_count = 0;
    while ($header_query->have_posts()) {
        $header_query->the_post();
        $item_count++;
        $format = get_post_format(get_the_ID());
        ?>
                    <div class="video-item">
                    	<div class="row">
                        	<div class="<?php 
        echo $header_style == 'classy3' ? 'col-md-12' : 'col-md-8';
        ?>
">
                                <div class="item-thumbnail">
                                <?php 
        if (ot_get_option('header_home_use_player') && get_post_format(get_the_ID()) == 'video') {
            $url = tm_video(get_the_ID(), false);
        } else {
            ?>
                                    <a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title_attribute();
            ?>
" >
                                    <?php 
            if (has_post_thumbnail()) {
                global $_device_;
                global $_is_retina_;
                if ($_device_ == 'mobile' && !$_is_retina_) {
                    $thumb = 'thumb_520x293';