Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dt_player = get_post_meta($post->ID, 'repeatable_fields', true);
- $width = get_option('dt_width_layout','1100');
- $light = get_option('dt_player_luces','true');
- $report = get_option('dt_player_report','true');
- $ads = get_option('dt_player_ads','not');
- $qual = get_option('dt_player_quality','true');
- $viewsc = get_option('dt_player_views','true');
- $clic = get_option('dt_player_ads_hide_clic','true');
- $time = get_option('dt_player_ads_time','20');
- $ads_300 = get_option('dt_player_ads_300');
- $dt_maindrop = dt_get_meta('dt_backdrop');
- $dt_runtime = dt_get_meta('runtime');
- // Reportar templante
- get_template_part('inc/parts/single/report-video');
- // Player
- ?>
- <style> .jw-preview.jw-reset { background-image: url('<?php echo "https://image.tmdb.org/t/p/w780".$dt_maindrop ?>'); background-size: cover; } </style>
- <div id="playex" class="player_sist">
- <?php if ( $dt_player ) : ?>
- <div class="playex">
- <?php if ($ads =='true') : ?>
- <div id="playerads" class="ads_player">
- <div class="ads_box">
- <div class="ads">
- <?php if($ads_300) : echo '<div class="code">'. stripslashes($ads_300). '</div>'; endif; ?>
- <?php if ($clic =='true'): ?><span class="notice"><?php _e('انقر فوق الإعلان لإغلاق','mtms'); ?></span><?php endif; ?>
- </div>
- </div>
- </div>
- <?php endif; ?>
- <?php $numerado = 1; { foreach ( $dt_player as $field ) { ?>
- <?php if($field['select'] == 'iframe') { ?>
- <div id="option-<?php echo $numerado; ?>" class="play-box-iframe fixidtab">
- <iframe id="iframe_" class="metaframe rptss" src="<?php
- if (preg_match("/drive/",$field['url'])){
- $field['url'] = base64_encode($field['url']);
- echo 'http://www.moviflex.net/player/embed2.php?url='.$field['url'];
- }
- else {
- echo $field['url'];} ?>" frameborder="0" scrolling="no" allowfullscreen="true"></iframe>
- </div>
- <?php } if($field['select'] == 'mp4') { ?>
- <div id="option-<?php echo $numerado; ?>" class="play-box-mp4 fixidtab">
- <?php echo do_shortcode('[video src="' . $field['url'] .'" width="'. $width .'px" autoplay="false"]'); ?>
- </div>
- <?php } if($field['select'] == 'dtshcode') { ?>
- <div id="option-<?php echo $numerado; ?>" class="play-box-shortcode fixidtab">
- <?php echo do_shortcode($field['url']); ?>
- </div>
- <?php } if($field['select'] == 'mfPlayer') { ?>
- <div id="option-<?php echo $numerado; ?>" class="play-box-mp4 fixidtab">
- <?php
- ?>
- </div>
- <?php } $numerado++; } } ?>
- <div id="player_bg">
- <i class="bg_drop an" style="background-image: url('<?php echo "https://image.tmdb.org/t/p/w780".$dt_maindrop ?>')";></i>
- <span class="pulse-ring"></span>
- <i class="play_bg an"></i>
- <a href="#play" class="play_infos fade-transition an" onclick="removePlay()">
- <i style="background-image: url('http://www.moviflex.net/wp-content/uploads/2017/03/s_assets_play.png');" class="play_ico an"></i>
- <div class="infos_ an">
- <?php if (have_posts()) :while (have_posts()) : the_post(); ?>
- <h2 class="m_name"><?php the_title(); ?></h2>
- <div class="beside_">
- <span class="quality_t">
- <?php if ($qual =='true') : if($quali = $terms = strip_tags( $terms = get_the_term_list( $post->ID, 'dtquality'))) { ?><?php echo $quali; ?><?php } endif; ?>
- </span>
- <span style="margin-left: 5px;">
- <?php echo $dt_runtime; ?>Min
- </span>
- </div>
- <div class="beside_">
- <i class="icon-eye an"></i>
- <span style="margin-left: 5px;">
- <?php if ($viewsc =='true') : if($views = dt_get_meta('dt_views_count')) { echo $views; } endif; ?>
- </span>
- </div>
- <?php endwhile; endif; ?>
- </div>
- </a>
- </div>
- </div>
- <?php endif; ?>
- <div class="control">
- <nav class="player">
- <ul class="options">
- <li>
- <a><i class="icon-menu"></i> <b><?php _e('سيرفر','mtms'); ?></b></a>
- <?php if ( $dt_player ) : ?>
- <ul class="idTabs">
- <?php $numerado = 1; { foreach ( $dt_player as $field ) { ?>
- <li><a class="options" href="#option-<?php echo $numerado; ?>">
- <?php echo $field['name']; ?>
- <?php if($field['idioma']=='nn') { /* none */} else { ?><span class="dt_flag"><img src="<?php echo DT_DIR_URI, '/assets/img/flags/',$field['idioma'],'.png'; ?>"></span><?php } ?>
- </a></li>
- <?php $numerado++; } } ?>
- </ul>
- <?php endif; ?>
- </li>
- </ul>
- </nav>
- <?php if ($qual =='true') : if($quali = $terms = strip_tags( $terms = get_the_term_list( $post->ID, 'dtquality'))) { ?><span class="qualityx"><?php echo $quali; ?></span><?php } endif; ?>
- <?php if ($viewsc =='true') : if($views = dt_get_meta('dt_views_count')) { echo '<span class="views"><strong>'. $views .'</strong> '. __('المشاهدات','mtms') .'</span>'; } endif; ?>
- <nav class="controles">
- <ul class="list">
- <?php if ($ads =='true') : ?><li id="count" class="contadorads"><?php _e('الإعلان','mtms'); ?> <i id="contador"><?php echo $time; ?></i></li><?php endif; ?>
- <?php if ($light =='true') : ?><li><a class="lightSwitcher" href="javascript:void(0);"><i class="icon-wb_sunny"></i></a></li><?php endif; ?>
- <?php if ($report =='true') : ?><li><a class="report-video"><i class="icon-textsms"></i></a></li><?php endif; ?>
- </ul>
- </nav>
- </div>
- <?php if($_GET[ 'report' ] =='send') { send_report(); } ?>
- </div>
- <script type='text/javascript'>
- $(document).ready(function(){
- $("#oscuridad").css("height", $(document).height()).hide();
- $(".lightSwitcher").click(function(){
- $("#oscuridad").toggle();
- if ($("#oscuridad").is(":hidden"))
- $(this).html("<i class='icon-wb_sunny'></i>").removeClass("turnedOff");
- else
- $(this).html("<i class='icon-wb_sunny'></i>").addClass("turnedOff");
- });
- });
- <?php if ($ads =='true') : ?>
- var segundos = <?php echo $time; ?>;
- function ads_time(){
- var t = setTimeout("ads_time()",1000);
- document.getElementById('contador').innerHTML = '' +segundos--+'';
- if (segundos==0){
- $('#playerads').fadeOut('slow');
- $('#count').fadeOut('slow');
- clearInterval(setTimeout);
- }
- }
- ads_time();
- <?php endif; ?>
- <?php if ($clic =='true'): ?>
- $(".code").click(function() {
- $("#playerads").fadeOut("slow");
- $("#count").fadeOut("slow");
- });
- $(".notice").click(function() {
- $("#playerads").fadeOut("slow");
- $("#count").fadeOut("slow");
- });
- <?php endif; ?>
- $( ".options" ).click(function() {
- $( '.rptss' ).attr( 'src', function ( i, val ) { return val; });
- });
- </script>
- <script>
- function removePlay() {
- document.getElementById('player_bg').style.display = "none";
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement