Advertisement
watchhax

dooplay

Jul 23rd, 2017
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. <?php
  2.  
  3. $dt_player = get_post_meta($post->ID, 'repeatable_fields', true);
  4. $reports = get_post_meta($post->ID, 'numreport', true);
  5. $views = dt_get_meta('dt_views_count');
  6. $light = get_option('dt_player_luces','true');
  7. $report = get_option('dt_player_report','true');
  8. $ads = get_option('dt_player_ads','not');
  9. $qual = get_option('dt_player_quality','true');
  10. $viewsc = get_option('dt_player_views','true');
  11. $clic = get_option('dt_player_ads_hide_clic','true');
  12. $time = get_option('dt_player_ads_time','20');
  13. $ads_300 = get_option('dt_player_ads_300');
  14. // Player
  15. ?>
  16. <div id="playex" class="player_sist">
  17. <?php get_template_part('inc/parts/single/report-video'); ?>
  18. <?php if ( $dt_player ) : ?>
  19. <div class="playex">
  20. <?php if ($ads =='true') : ?>
  21. <div id="playerads" class="ads_player">
  22. <div class="ads_box">
  23. <div class="ads">
  24. <?php if($ads_300) : echo '<div class="code">'. stripslashes($ads_300). '</div>'; endif; ?>
  25. <?php if ($clic =='true'): ?><span class="notice"><?php _d('<p style="font-size:50px;">x</p>'); ?></span><?php endif; ?>
  26. </div>
  27. </div>
  28. </div>
  29. <?php endif; ?>
  30. <?php $numerado = 1; { foreach ( $dt_player as $field ) { ?>
  31. <?php if($field['select'] == 'iframe') { ?>
  32. <div id="option-<?php echo $numerado; ?>" class="play-box-iframe fixidtab">
  33. <<?php echo 'iframe'; ?> class="metaframe rptss" src="<?php echo $field['url']; ?>" frameborder="0" allowfullscreen></iframe>
  34. </div>
  35. <?php } if($field['select'] == 'mp4') { ?>
  36. <div id="option-<?php echo $numerado; ?>" class="play-box-mp4 fixidtab">
  37. <?php //echo do_shortcode('[video src="' . $field['url'] .'" width="779px" autoplay="false"]'); ?>
  38.  
  39. <?php dt_video( $post->ID , $field['url']); ?>
  40. </div>
  41. <?php } if($field['select'] == 'dtshcode') { ?>
  42. <div id="option-<?php echo $numerado; ?>" class="play-box-iframe fixidtab">
  43. <?php echo do_shortcode($field['url']); ?>
  44. </div>
  45. <?php } $numerado++; } } ?>
  46. </div>
  47. <?php endif; ?>
  48. <div class="control">
  49. <nav class="player">
  50. <ul class="options">
  51. <li>
  52. <a class="sources"><i class="icon-menu listsormenu"></i> <b><?php _d('server'); ?></b></a>
  53. <?php if ( $dt_player ) : ?>
  54. <ul class="idTabs sourceslist scrolling">
  55. <?php $numerado = 1; { foreach ( $dt_player as $field ) { ?>
  56. <li><a class="options" href="#option-<?php echo $numerado; ?>">
  57. <b class="icon-play_arrow"></b> <?php echo $field['name']; ?>
  58. <?php if($field['idioma']) { ?><span class="dt_flag"><img src="<?php echo DT_DIR_URI, '/assets/img/flags/',$field['idioma'],'.png'; ?>"></span><?php } ?>
  59. </a></li>
  60. <?php $numerado++; } } ?>
  61. </ul>
  62. <?php endif; ?>
  63. </li>
  64. </ul>
  65. </nav>
  66. <?php if ($qual =='true') : if($quali = $terms = strip_tags( $terms = get_the_term_list( $post->ID, 'dtquality'))) { ?>
  67. <?php if($mostrar = $terms = strip_tags( $terms = get_the_term_list( $post->ID, 'dtquality'))) { ?><span class="qualityx"><?php echo $mostrar; ?></span><?php } ?>
  68. <?php } endif; ?>
  69. <?php if ($viewsc =='true') : if($views) { echo '<span class="views"><strong>'. comvert_number($views) .'</strong> '. __d('Views') .'</span>'; } endif; ?>
  70. <nav class="controles">
  71. <ul class="list">
  72. <?php if ($ads =='true') : ?><li id="count" class="contadorads"><?php _d('Ad'); ?> <i id="contador"><?php echo $time; ?></i></li><?php endif; ?>
  73. <?php if ($light =='true') : ?><li><a class="lightSwitcher" href="javascript:void(0);"><i class="icon-wb_sunny"></i></a></li><?php endif; ?>
  74. <?php if ($report =='true') : if($reports=='10') { /* none*/ } else { ?><li><a class="report-video"><i class="icon-notification"></i> <span><?php _d('report'); ?></span></a></li><?php } endif; ?>
  75. <li><a class="wide"><i class="icons-enlarge2"></i></a></li>
  76. </ul>
  77. </nav>
  78. </div>
  79. </div>
  80. <script type='text/javascript'>
  81. jQuery(document).ready(function($){
  82. $("#oscuridad").css("height", $(document).height()).hide();
  83. $(".lightSwitcher").click(function(){
  84. $("#oscuridad").toggle();
  85. if ($("#oscuridad").is(":hidden"))
  86. $(this).html("<i class='icon-wb_sunny'></i>").removeClass("turnedOff");
  87. else
  88. $(this).html("<i class='icon-wb_sunny'></i>").addClass("turnedOff");
  89. });
  90. <?php if ($ads =='true') : ?>
  91. var segundos = <?php echo $time; ?>;
  92. function ads_time(){
  93. var t = setTimeout( ads_time, 1000);
  94. document.getElementById('contador').innerHTML = '' +segundos--+'';
  95. if (segundos==0){
  96. $('#playerads').fadeOut('slow');
  97. $('#count').fadeOut('slow');
  98. clearInterval(setTimeout);
  99. }
  100. }
  101. ads_time();
  102. <?php endif; ?>
  103. <?php if ($clic =='true'): ?>
  104. $(".code").click(function() {
  105. $("#playerads").fadeOut("slow");
  106. $("#count").fadeOut("slow");
  107. });
  108. $(".notice").click(function() {
  109. $("#playerads").fadeOut("slow");
  110. $("#count").fadeOut("slow");
  111. });
  112. <?php endif; ?>
  113. $(".options").click(function() {
  114. $('.rptss').attr('src', function ( i, val ) { return val; });
  115. });
  116. });
  117. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement