Guest User

Untitled

a guest
May 30th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. <?php
  2. /**
  3. * @Theme Name : wallstreet-Pro
  4. * @file : index-service.php
  5. * @package : wallstreet-Pro
  6. @author : webriti
  7. * @filesource : wp-content/themes/wallstreet/index-service.php
  8. */
  9. ?>
  10. <!-- wallstreet Service Section ---->
  11. <div class="service-section">
  12. <div class="container">
  13. <?php $wallstreet_pro_options=theme_data_setup();
  14. $current_options = wp_parse_args( get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options ); ?>
  15. <div class="row">
  16. <div class="section_heading_title">
  17. <?php if($current_options['service_title']) { ?>
  18. <h1><?php echo $current_options['service_title']; ?></h1>
  19. <div class="pagetitle-separator">
  20. <div class="pagetitle-separator-border">
  21. <div class="pagetitle-separator-box"></div>
  22. </div>
  23. </div>
  24. <?php } ?>
  25. <?php if($current_options['service_description']) { ?>
  26. <p><?php echo $current_options['service_description']; ?></p>
  27. <?php } ?>
  28.  
  29. </div>
  30. </div>
  31. <div class="row">
  32.  
  33. <div class="col-md-4 col-sm-6 service-effect">
  34. <div class="service-box">
  35. <iframe width="100%" allow="autoplay;"id="play2" src="https://www.youtube.com/embed/4ZM6DoiDoD8?enablejsapi=1&mute=1&amp;rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
  36. </div>
  37. <div class="service-area">
  38. <h2><a href="#">Product designing</a></h2>
  39. <p><?php echo 'Lorem ipsum dolor sit amet, consectetur adipisicing elit.Lorem ipsum dolor sit amet, consectetur adipisicing elit dignissim dapib tumst dign eger porta nisl.'; ?></p>
  40. <div class="service-btn"><a href="#"><?php _e('Read More','wallstreet'); ?></a></div>
  41. </div>
  42. </div>
  43. <div class="col-md-4 col-sm-6 service-effect">
  44. <div class="service-box">
  45. <iframe width="100%" allow="autoplay;"id="play3" src="https://www.youtube.com/embed/mz_m5U6NDTk?enablejsapi=1&mute=1&amp;rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
  46. </div>
  47. <div class="service-area">
  48. <h2><a href="#">WordPress themes</a></h2>
  49. <p><?php echo 'Lorem ipsum dolor sit amet, consectetur adipisicing elit.Lorem ipsum dolor sit amet, consectetur adipisicing elit dignissim dapib tumst dign eger porta nisl.'; ?></p>
  50. <div class="service-btn"><a href="#"><?php _e('Read More','wallstreet'); ?></a></div>
  51. </div>
  52. </div>
  53. <div class="col-md-4 col-sm-6 service-effect">
  54. <div class="service-box">
  55. <iframe width="100%" allow="autoplay;" id="play4" src="https://www.youtube.com/embed/JxRW0qdhdpw?enablejsapi=1&mute=1&amp;rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
  56. </div>
  57. <div class="service-area">
  58. <h2><a href="#">Responsive designs</a></h2>
  59. <p><?php echo 'Lorem ipsum dolor sit amet, consectetur adipisicing elit.Lorem ipsum dolor sit amet, consectetur adipisicing elit dignissim dapib tumst dign eger porta nisl.'; ?></p>
  60. <div class="service-btn"><a href="#"><?php _e('Read More','wallstreet'); ?></a></div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <script>
  66.  
  67. var tag = document.createElement('script');
  68. tag.id = 'iframe-demo';
  69. tag.src = 'https://www.youtube.com/iframe_api';
  70. var firstScriptTag = document.getElementsByTagName('script')[0];
  71. firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
  72.  
  73. var player1, player2, player3, player4;
  74. function onYouTubeIframeAPIReady() {
  75. player1 = new YT.Player('play1', {
  76. events: {
  77. 'onReady': onPlayerReady1,
  78. 'onStateChange': onPlayerStateChange1
  79. }
  80. });
  81. player2 = new YT.Player('play2', {
  82. events: {
  83. 'onReady': onPlayerReady2,
  84. 'onStateChange': onPlayerStateChange2
  85. }
  86. });
  87. player3 = new YT.Player('play3', {
  88. events: {
  89. 'onReady': onPlayerReady3,
  90. 'onStateChange': onPlayerStateChange3
  91. }
  92. });
  93. player4 = new YT.Player('play4', {
  94. events: {
  95. 'onReady': onPlayerReady4,
  96. 'onStateChange': onPlayerStateChange4
  97. }
  98. });
  99. }
  100. function onPlayerReady1(event) {
  101. player1.playVideo();
  102.  
  103. }
  104.  
  105. function onPlayerStateChange1(event) {
  106. if (event.data == YT.PlayerState.ENDED) {
  107. player2.playVideo();
  108. }
  109. }
  110.  
  111. function onPlayerReady2(event) {
  112.  
  113. }
  114.  
  115. function onPlayerStateChange2(event) {
  116. if (event.data == YT.PlayerState.ENDED) {
  117. player3.playVideo();
  118. }
  119. }
  120.  
  121. function onPlayerReady3(event) {
  122.  
  123. }
  124.  
  125. function onPlayerStateChange3(event) {
  126. if (event.data == YT.PlayerState.ENDED) {
  127. player4.playVideo();
  128. }
  129. }
  130.  
  131. function onPlayerReady4(event) {
  132.  
  133. }
  134.  
  135. function onPlayerStateChange4(event) {
  136. if (event.data == YT.PlayerState.ENDED) {
  137.  
  138. }
  139. }
  140.  
  141.  
  142. </script>
  143. </div>
  144. <!-- /wallstreet Service Section ---->
Add Comment
Please, Sign In to add comment