Advertisement
ssaidz

Player Tab Jquery Bootstrap

Dec 7th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.98 KB | None | 0 0
  1.  <h2>Watch <?php the_title(); ?> Eng Sub Indo Streaming Online</h2>
  2. <?php if( have_rows('player') ): ?>
  3. <div class="tab-content player <?php strtolower(the_title()); ?>">
  4.     <div class="tab-pane active" id="#player<?php the_ID(); ?>0">
  5.        <?php the_field('active'); ?>
  6.     </div>
  7.          <?php $numerado = 1; { while( have_rows('player') ): the_row(); ?>
  8.     <div class="tab-pane" id="player<?php the_ID(); ?><?php echo $numerado; ?>">
  9.             <?php  the_sub_field('embed'); ?>
  10.     </div>
  11. <?php $numerado++; ?>  
  12. <?php endwhile; } ?>
  13. <form>
  14.     <select id='mySelect' class="choose-video <?php the_ID(); ?>">
  15.         <option value='0'>Choose Episode / Server / Quality to Watch ^_^</option>
  16. <?php $numerado = 1; { while( have_rows('player') ): the_row(); ?>
  17. <option value="<?php echo $numerado; ?>" /><?php  the_sub_field('title'); ?></option>
  18. <?php $numerado++; ?>  
  19. <?php endwhile; } ?>
  20. </select>
  21. </form>
  22. <ul class="nav nav-tabs" id="myTab">
  23.     <li class="active"><a href="#player<?php the_ID(); ?>0">Choose Video Player</a></li>
  24. <?php $numerado = 1; { while( have_rows('player') ): the_row(); ?>
  25.     <li><a href="#player<?php the_ID(); ?><?php echo $numerado; ?>" title="watch online <?php the_title(); ?>"><?php  the_sub_field('title'); ?></a></li>
  26. <?php $numerado++; ?>  
  27. <?php endwhile; } ?>
  28. </ul>
  29. </div>
  30. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
  31. <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  32. <script src="//netdna.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  33. <script type="text/javascript">
  34. $('#mySelect').on('change', function (e) {
  35.     $('#myTab li a').eq($(this).val()).tab('show');
  36. });
  37. </script>
  38. <?php else : ?>
  39.     <div class="video-kosong <?php the_ID(); ?>"><?php _e('No Soure Video Found for this Films, Maybe has Been Removed or Deleted. Please Report to US! We Will Add New Videos As Soon as Possible xD','dramaku.top'); ?></div>
  40. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement