/
home
/
wqgepnx
/
www
/
wp-content
/
themes
/
prixexport
/
page-templates
/
File Upload :
llllll
Current File: /home/wqgepnx/www/wp-content/themes/prixexport/page-templates/homepage-tabs.php
<?php /** * Template Name: tabs * * Template for displaying a page without sidebar even if a sidebar widget is published. * * @package understrap */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } get_header(); ?> <?php $pass = 'prix-export'; $email = $_GET['mail']; $args = array( 'post_type' => 'jury', 'title' => $email, 'posts_per_page' => 1 ); $query = new WP_Query($args); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); //echo 'mail ok'; } if(isset($_GET['pwd']) && isset($_GET['mail'])) { if ($_GET['pwd'] == $pass) { setcookie('password', md5($_GET['password']), time()+60*60*24*365, '/', 'www.frenchtvexportawards.com'); } $container = get_theme_mod( 'understrap_container_type' ); ?> <div class="wrapper" id="full-width-page-wrapper"> <div class="<?php echo esc_attr( $container ); ?>" id="content"> <div class="row"> <div class="tab-content"> <div class="tab-pane active" id="p0"> <div class="row row-tabs-content"> <?php while ( have_posts() ) : the_post(); the_content(); endwhile; ?> </div> <div class="row row-tabs-content"> <div class="col-md-12 bg-voting"> <h2>About Unifrance TV Export Awards</h2> Unifrance TV Export Awards are given every year to one of France's best selling program in 3 categories. The nominees are selected with objective criteria based on hourly revenue. </div> </div> </div><!-- //end Tabs P0 --> <div class="tab-pane" id="p1"> <!-- Tabs Animation --> <div class="col-md-12"><!-- Style col-md-12 --> <div id="accordion"> <div class="row bg-animation"> <div class="separator"></div> <?php $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'cat' => '1', 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'ASC', ); $anim = new WP_Query( $args ); while ( $anim->have_posts() ) : $anim->the_post(); $image = get_field('logo_distributeur'); ?> <div class="col-md-4"> <a class="card-link" data-toggle="collapse" href="#collapseanim<?php the_ID(); ?>"> <div style="height:50px;"><?php the_title(); ?></div> <?php the_post_thumbnail( 'large' ); ?> <div class="seemore">See more +</div> </a> </div> <?php endwhile; ?> <div class="separator"></div> </div> <!-- //end row bg-animation --> <div class="row"> <div class="col-md-12"> <?php while ( $anim->have_posts() ) : $anim->the_post(); ?> <div id="collapseanim<?php the_ID(); ?>" class="collapse" data-parent="#accordion"> <div class="row"> <div class="col-6"> <div class="embed-responsive embed-responsive-4by3"> <video width="100%" controls controlsList="nodownload" class="embed-responsive-item"> <source src="<?php echo the_field("lien_de_la_video"); ?>" type="video/mp4"> <source src="<?php echo the_field("lien_de_la_video"); ?>" type="video/avi"> <source src="<?php echo the_field("lien_de_la_video"); ?>" type="video/mov"> </video> </div> </div> <div class="col-6"> <h3><?php the_title(); ?></h3> <p><strong>Duration </strong>: <?php echo the_field("durations"); ?></p> <p><strong>Distributor </strong>: <?php echo the_field("distributor"); ?></p> <p><strong>Producer </strong>: <?php echo the_field("producter"); ?></p> <p><strong>Director </strong>: <?php echo the_field("director"); ?></p> <p><strong>Sold territories</strong>: <?php echo the_field("number_country"); ?></p> <p><strong>Contact </strong>: <a href="mailto:<?php echo the_field("email_contact"); ?>" class="link-color"><?php echo the_field("nom_contact"); ?></a></p> <p><strong>Synopsis</strong> : <?php the_field("synopsis"); ?></p><br> <p><a href="<?php the_field("lien_press_kit"); ?>" class="link-color" target="_blank"><strong>Download PressKit</strong></a></p> </div> </div><!-- //end row collapse show --> <div class="separator"></div> </div><!-- //end collapse show --> <?php endwhile; ?> </div> <!-- //end col-md-12 show details --> </div> <!-- //end row show details --> </div><!-- //end accordion --> <?php wp_reset_postdata($anim); ?> </div> <!-- //end col-md-12 --> <div class="col-md-12 intro">Vote for 1 program among these 3 nominees</div> <?php //echo do_shortcode('[poll id="2"]'); ?> <?php get_poll(2); ?> <?php echo do_shortcode('[block id="criteria-vote"]'); ?> <div class="separator"></div> </div> <!-- //end tabs P1 --> <div class="tab-pane" id="p2"> <!-- Tabs Documentary --> <div class="col-md-12"><!-- Style col-md-12 --> <div id="accordion1"> <div class="row bg-documentary"> <div class="separator"></div> <?php $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'cat' => '2', 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'DESC', ); $doc = new WP_Query( $args ); while ( $doc->have_posts() ) : $doc->the_post(); $image = get_field('logo_distributeur'); ?> <div class="col-md-4"> <a class="card-link" data-toggle="collapse" href="#collapsedoc<?php the_ID(); ?>"> <div style="height:50px;"><?php the_title(); ?></div> <?php the_post_thumbnail( 'large' ); ?> <div class="seemore">See more +</div> </a> </div> <?php endwhile; ?> <div class="separator"></div> </div> <!-- //end row bg-animation --> <div class="row"> <div class="col-md-12"> <?php while ( $doc->have_posts() ) : $doc->the_post(); ?> <div id="collapsedoc<?php the_ID(); ?>" class="collapse" data-parent="#accordion1"> <div class="row"> <div class="col-6"> <div class="embed-responsive embed-responsive-4by3"> <video width="100%" controls controlsList="nodownload" class="embed-responsive-item"> <source src="<?php echo the_field("lien_de_la_video"); ?>" type="video/mp4"> <source src="<?php echo the_field("lien_de_la_video"); ?>" type="video/avi"> <source src="<?php echo the_field("lien_de_la_video"); ?>" type="video/mov"> </video> </div> </div> <div class="col-6"> <h3><?php the_title(); ?></h3> <p><strong>Duration </strong>: <?php echo the_field("durations"); ?></p> <p><strong>Distributor </strong>: <?php echo the_field("distributor"); ?></p> <p><strong>Producer </strong>: <?php echo the_field("producter"); ?></p> <p><strong>Director </strong>: <?php echo the_field("director"); ?></p> <p><strong>Sold territories</strong>: <?php echo the_field("number_country"); ?></p> <p><strong>Contact </strong>: <a href="mailto:<?php echo the_field("email_contact"); ?>" class="link-color"><?php echo the_field("nom_contact"); ?></a></p> <p><strong>Synopsis</strong> : <?php the_field("synopsis"); ?></p><br> <p><a href="<?php the_field("lien_press_kit"); ?>" class="link-color" target="_blank"><strong>Download PressKit</strong></a></p> </div> </div><!-- //end row collapse show --> <div class="separator"></div> </div><!-- //end collapse show --> <?php endwhile; ?> </div> <!-- //end col-md-12 show details --> </div> <!-- //end row show details --> </div><!-- //end accordion --> <?php wp_reset_postdata($doc); ?> </div> <!-- //end col-md-12 --> <div class="col-md-12 intro">Vote for 1 program among these 3 nominees</div> <?php //echo do_shortcode('[poll id="3"]'); ?> <?php get_poll(3); ?> <?php echo do_shortcode('[block id="criteria-vote"]'); ?> <div class="separator"></div> </div> <!-- //end tabs P2 --> <div class="tab-pane" id="p3"> <!-- Tabs Fiction --> <div class="col-md-12"><!-- Style col-md-12 --> <div id="accordion2"> <div class="row bg-fiction"> <div class="separator"></div> <?php $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'cat' => '3', 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'ASC', ); $fiction = new WP_Query( $args ); while ( $fiction->have_posts() ) : $fiction->the_post(); $image = get_field('logo_distributeur'); ?> <div class="col-md-4"> <a class="card-link" data-toggle="collapse" href="#collapsedoc<?php the_ID(); ?>"> <div style="height:50px;"><?php the_title(); ?></div> <?php the_post_thumbnail( 'large' ); ?> <div class="seemore">See more +</div> </a> </div> <?php endwhile; ?> <div class="separator"></div> </div> <!-- //end row bg-fiction --> <div class="row"> <div class="col-md-12"> <?php while ( $fiction->have_posts() ) : $fiction->the_post(); ?> <div id="collapsedoc<?php the_ID(); ?>" class="collapse" data-parent="#accordion2"> <div class="row"> <div class="col-6"> <div class="embed-responsive embed-responsive-4by3"> <video width="100%" controls controlsList="nodownload" class="embed-responsive-item"> <source src="<?php echo the_field("lien_de_la_video"); ?>" type="video/mp4"> <source src="<?php echo the_field("lien_de_la_video"); ?>" type="video/avi"> <source src="<?php echo the_field("lien_de_la_video"); ?>" type="video/mov"> </video> </div> </div> <div class="col-6"> <h3><?php the_title(); ?></h3> <p><strong>Duration </strong>: <?php echo the_field("durations"); ?></p> <p><strong>With </strong>: <?php echo the_field("width_cast"); ?></p> <p><strong>Distributor </strong>: <?php echo the_field("distributor"); ?></p> <p><strong>Producer </strong>: <?php echo the_field("producter"); ?></p> <p><strong>Director </strong>: <?php echo the_field("director"); ?></p> <p><strong>Sold territories</strong>: <?php echo the_field("number_country"); ?></p> <p><strong>Contact </strong>: <a href="mailto:<?php echo the_field("email_contact"); ?>" class="link-color"><?php echo the_field("nom_contact"); ?></a></p> <p><strong>Synopsis</strong> : <?php the_field("synopsis"); ?></p><br> <p><a href="<?php the_field("lien_press_kit"); ?>" class="link-color" target="_blank"><strong>Download PressKit</strong></a></p> </div> </div><!-- //end row collapse show --> <div class="separator"></div> </div><!-- //end collapse show --> <?php endwhile; ?> </div> <!-- //end col-md-12 show details --> </div> <!-- //end row show details --> </div><!-- //end accordion --> <?php wp_reset_postdata($fiction); ?> </div> <!-- //end col-md-12 --> <div class="col-md-12 intro">Vote for 1 program among these 3 nominees</div> <?php echo do_shortcode('[poll id="4"]'); ?> <?php echo do_shortcode('[block id="criteria-vote"]'); ?> <div class="separator"></div> </div> <!-- //end tabs P3 --> </div><!-- //end tabs --> </div><!-- .row end --> </div><!-- Container end --> </div><!-- Wrapper end --> <?php } else { ?> <div class="container"> <div class="row"> <div class="col-md-12"> <?php if(isset($_GET['mail'])) : ?> <h2>Password</h2> <form name="login" method="post" action="/?mail=<?php echo $_GET['mail']; ?>&pwd=<?php echo $_GET['pwd']; ?>"> Password: <input type="password" name="pwd" id="pwd"><br> <input type="hidden" name="mail" id="mail" value="<?php echo $_GET['mail']; ?>" > <input type="submit" name="submit" value="Login!"> </form> <?php else: ?> <h2>Access denied, please check your email</h2> <?php endif; ?> </div> </div> </div> <?php } ?> <?php } else { echo '<h2 style="text-align: center;">Access denied, please check your email</h2>'; } wp_reset_postdata(); ?> <?php get_footer(); ?>
Copyright ©2k19 -
Hexid
|
Tex7ure