WP VR – 360 Panorama and virtual tour creator for WordPress - Version 7.2.0

Version Description

(09-12-2020) = * WordPress 5.6 compatibility checked * VR audio conflict fixed

=

Download this release

Release Info

Developer rextheme
Plugin Icon 128x128 WP VR – 360 Panorama and virtual tour creator for WordPress
Version 7.2.0
Comparing to
See all releases

Code changes from version 7.1.0 to 7.2.0

README.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: rextheme, coderexco
3
  Tags: virtual tour, real estate tour, panorama, panorama viewer, virtual tour, 360 panorama, interactive tour, 360, streetview, virtual reality, 360 video, virtual, vr, interactive, 360-degree, equirectangular, google streetview, panoramas
4
  Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-for-wordpress/
5
  Requires at least: 5.0
6
- Tested up to: 5.5.3
7
  Requires PHP: 7.0.0
8
- Stable tag: 7.1.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -559,5 +559,9 @@ Simply add “/plugins/wpvr” to the exclusion field (or use the location where
559
  = 7.1.0 (19-11-2020) =
560
  * Black Friday banner modified
561
 
 
 
 
 
562
  == Upgrade Notice ==
563
  Please do update the WP VR to the latest version. Each update makes sure your plugin is supporting all tour features.
3
  Tags: virtual tour, real estate tour, panorama, panorama viewer, virtual tour, 360 panorama, interactive tour, 360, streetview, virtual reality, 360 video, virtual, vr, interactive, 360-degree, equirectangular, google streetview, panoramas
4
  Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-for-wordpress/
5
  Requires at least: 5.0
6
+ Tested up to: 5.6.0
7
  Requires PHP: 7.0.0
8
+ Stable tag: 7.2.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
559
  = 7.1.0 (19-11-2020) =
560
  * Black Friday banner modified
561
 
562
+ = 7.2.0 (09-12-2020) =
563
+ * WordPress 5.6 compatibility checked
564
+ * VR audio conflict fixed
565
+
566
  == Upgrade Notice ==
567
  Please do update the WP VR to the latest version. Each update makes sure your plugin is supporting all tour features.
images/Dashboard_banner.png DELETED
Binary file
images/Settings-Page_Banner.png DELETED
Binary file
public/class-wpvr-public.php CHANGED
@@ -941,11 +941,11 @@ class Wpvr_Public
941
 
942
  if ($bg_music == 'on') {
943
  $html .= '<div id="adcontrol'.$id.'" class="adcontrol" style="right:'.$audio_right.'">';
944
- $html .= '<audio id="vrAudio'.$id.'" onended="audionEnd'.$id.'()" '.$bg_loop.'>
945
  <source src="'.$bg_music_url.'" type="audio/mpeg">
946
  Your browser does not support the audio element.
947
  </audio>
948
- <button onclick="playPause'.$id.'()" class="ctrl audio_control" id="audio_control'.$id.'"><i id="vr-volume'.$id.'" class="fas fa-volume-up" style="color:#fff;"></i></button>
949
  ';
950
  $html .= '</div>';
951
  }
@@ -953,7 +953,7 @@ class Wpvr_Public
953
 
954
 
955
  $html .= '<div class="wpvr-hotspot-tweak-contents-wrapper" style="display: none">';
956
- $html .= '<i class="fa fa-times cross"></i>';
957
  $html .= '<div class="wpvr-hotspot-tweak-contents-flex">';
958
  $html .= '<div class="wpvr-hotspot-tweak-contents">';
959
  ob_start();
@@ -965,7 +965,7 @@ class Wpvr_Public
965
  $html .= '</div>';
966
 
967
  $html .= '<div class="custom-ifram-wrapper" style="display: none;">';
968
- $html .= '<i class="fa fa-times cross"></i>';
969
 
970
  $html .= '<div class="custom-ifram-flex">';
971
  $html .= '<div class="custom-ifram">';
@@ -992,6 +992,7 @@ class Wpvr_Public
992
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-up");
993
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-mute");
994
  x'.$id.'.pause();
 
995
  playing'.$id.' = false;
996
 
997
  }
@@ -999,6 +1000,7 @@ class Wpvr_Public
999
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-mute");
1000
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-up");
1001
  x'.$id.'.play();
 
1002
  playing'.$id.' = true;
1003
  }
1004
  }
@@ -1007,6 +1009,7 @@ class Wpvr_Public
1007
  playing'.$id.' = false;
1008
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-up");
1009
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-mute");
 
1010
  }
1011
  ';
1012
 
941
 
942
  if ($bg_music == 'on') {
943
  $html .= '<div id="adcontrol'.$id.'" class="adcontrol" style="right:'.$audio_right.'">';
944
+ $html .= '<audio id="vrAudio'.$id.'" class="vrAudioDefault" data-autoplay="'.$autoplay_bg_music.'" onended="audionEnd'.$id.'()" '.$bg_loop.'>
945
  <source src="'.$bg_music_url.'" type="audio/mpeg">
946
  Your browser does not support the audio element.
947
  </audio>
948
+ <button onclick="playPause'.$id.'()" class="ctrl audio_control" data-play="'.$autoplay_bg_music.'" id="audio_control'.$id.'"><i id="vr-volume'.$id.'" class="wpvrvolumeicon'.$id.' fas fa-volume-up" style="color:#fff;"></i></button>
949
  ';
950
  $html .= '</div>';
951
  }
953
 
954
 
955
  $html .= '<div class="wpvr-hotspot-tweak-contents-wrapper" style="display: none">';
956
+ $html .= '<i class="fa fa-times cross" data-id="'.$id.'"></i>';
957
  $html .= '<div class="wpvr-hotspot-tweak-contents-flex">';
958
  $html .= '<div class="wpvr-hotspot-tweak-contents">';
959
  ob_start();
965
  $html .= '</div>';
966
 
967
  $html .= '<div class="custom-ifram-wrapper" style="display: none;">';
968
+ $html .= '<i class="fa fa-times cross" data-id="'.$id.'"></i>';
969
 
970
  $html .= '<div class="custom-ifram-flex">';
971
  $html .= '<div class="custom-ifram">';
992
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-up");
993
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-mute");
994
  x'.$id.'.pause();
995
+ jQuery("#audio_control'.$id.'").attr("data-play", "off");
996
  playing'.$id.' = false;
997
 
998
  }
1000
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-mute");
1001
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-up");
1002
  x'.$id.'.play();
1003
+ jQuery("#audio_control'.$id.'").attr("data-play", "on");
1004
  playing'.$id.' = true;
1005
  }
1006
  }
1009
  playing'.$id.' = false;
1010
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-up");
1011
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-mute");
1012
+ jQuery("#audio_control'.$id.'").attr("data-play", "off");
1013
  }
1014
  ';
1015
 
public/js/wpvr-public.js CHANGED
@@ -32,6 +32,7 @@
32
  })( jQuery );
33
 
34
  function wpvrhotspot(hotSpotDiv, args) {
 
35
  var argst = args.replace(/\\/g, '');
36
  jQuery(document).ready(function($){
37
  $(hotSpotDiv.target).parent().siblings(".custom-ifram-wrapper").find('.custom-ifram').html(argst);
@@ -55,7 +56,7 @@ jQuery(document).ready(function($){
55
 
56
  $(".cross").on("click", function(e){
57
  e.preventDefault();
58
-
59
  $(this).parent(".custom-ifram-wrapper").fadeOut();
60
  $(this).parents(".pano-wrap").removeClass("show-modal");
61
 
32
  })( jQuery );
33
 
34
  function wpvrhotspot(hotSpotDiv, args) {
35
+ console.log("test");
36
  var argst = args.replace(/\\/g, '');
37
  jQuery(document).ready(function($){
38
  $(hotSpotDiv.target).parent().siblings(".custom-ifram-wrapper").find('.custom-ifram').html(argst);
56
 
57
  $(".cross").on("click", function(e){
58
  e.preventDefault();
59
+
60
  $(this).parent(".custom-ifram-wrapper").fadeOut();
61
  $(this).parents(".pano-wrap").removeClass("show-modal");
62
 
wpvr.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: WP VR
17
  * Plugin URI: https://rextheme.com/wpvr/
18
  * Description: WP VR - 360 Panorama and virtual tour creator for WordPress is a customized panaroma & virtual builder tool for WordPress Website.
19
- * Version: 7.1.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
@@ -34,7 +34,7 @@ require plugin_dir_path(__FILE__) . 'elementor/elementor.php';
34
  * Start at version 1.0.0 and use SemVer - https://semver.org
35
  * Rename this for your plugin and update it as you release new versions.
36
  */
37
- define('WPVR', '7.1.0');
38
  define('WPVR_FILE', __FILE__);
39
  define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
40
  define("WPVR_PLUGIN_PUBLIC_DIR_URL", plugin_dir_url(__FILE__) .'public/');
@@ -889,11 +889,11 @@ function wpvr_block_render($attributes)
889
 
890
  if ($bg_music == 'on') {
891
  $html .= '<div id="adcontrol'.$id.'" class="adcontrol" style="right:'.$audio_right.'">';
892
- $html .= '<audio id="vrAudio'.$id.'" onended="audionEnd'.$id.'()" '.$bg_loop.'>
893
  <source src="'.$bg_music_url.'" type="audio/mpeg">
894
  Your browser does not support the audio element.
895
  </audio>
896
- <button onclick="playPause'.$id.'()" class="ctrl audio_control" id="audio_control'.$id.'"><i id="vr-volume'.$id.'" class="fas fa-volume-up" style="color:#fff;"></i></button>
897
  ';
898
  $html .= '</div>';
899
  }
@@ -901,7 +901,7 @@ function wpvr_block_render($attributes)
901
 
902
 
903
  $html .= '<div class="wpvr-hotspot-tweak-contents-wrapper" style="display: none">';
904
- $html .= '<i class="fa fa-times cross"></i>';
905
  $html .= '<div class="wpvr-hotspot-tweak-contents-flex">';
906
  $html .= '<div class="wpvr-hotspot-tweak-contents">';
907
  ob_start();
@@ -913,7 +913,7 @@ function wpvr_block_render($attributes)
913
  $html .= '</div>';
914
 
915
  $html .= '<div class="custom-ifram-wrapper" style="display: none;">';
916
- $html .= '<i class="fa fa-times cross"></i>';
917
  $html .= '<div class="custom-ifram-flex">';
918
  $html .= '<div class="custom-ifram">';
919
  $html .= '</div>';
@@ -937,12 +937,14 @@ function wpvr_block_render($attributes)
937
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-up");
938
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-mute");
939
  x'.$id.'.pause();
 
940
  playing'.$id.' = false;
941
 
942
  }
943
  else {
944
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-mute");
945
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-up");
 
946
  x'.$id.'.play();
947
  playing'.$id.' = true;
948
  }
@@ -952,6 +954,7 @@ function wpvr_block_render($attributes)
952
  playing'.$id.' = false;
953
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-up");
954
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-mute");
 
955
  }
956
  ';
957
 
@@ -1452,66 +1455,3 @@ function wpvr_mobile_media_handle()
1452
  {
1453
  add_image_size('wpvr_mobile', 4096, 2048); //mobile
1454
  }
1455
-
1456
- //===Black Friday Notice===//
1457
- function wpvr_black_friday_offer_notice(){
1458
- $screen = get_current_screen();
1459
- if ($screen->id=="toplevel_page_wpvr" || $screen->id=="wpvr_item" || $screen->id=="edit-wpvr_item" || $screen->id=="wp-vr_page_wpvr-addons" || $screen->id=="wp-vr_page_wpvrpro") {
1460
-
1461
- $current_time = time();
1462
- $date_now = date("Y-m-d", $current_time);
1463
- $notice_info = get_option('wpvr_bff_notice', array(
1464
- 'show_notice' => 'yes',
1465
- 'updated_at' => $current_time,
1466
- ));
1467
- if( $notice_info['show_notice'] === 'yes' && $date_now <= '2020-11-27' ) {?>
1468
- <style>
1469
- .wpvr-black-friday-offer {
1470
- padding: 0!important;
1471
- border: 0;
1472
- }
1473
- .wpvr-black-friday-offer img {
1474
- display: block;
1475
- width: 100%;
1476
- }
1477
- .wpvr-black-friday-offer .notice-dismiss {
1478
- top: 4px;
1479
- right: 6px;
1480
- padding: 4px;
1481
- background: #fff;
1482
- border-radius: 100%;
1483
- }
1484
- .wpvr-black-friday-offer .notice-dismiss:before {
1485
- content: "\f335";
1486
- font-size: 20px;
1487
- }
1488
-
1489
- </style>
1490
- <div class="wpvr-black-friday-offer notice notice-warning is-dismissible">
1491
- <a href="https://rextheme.com/black-friday/" target="_blank">
1492
- <div class="wpvr-banner-container">
1493
- <img src="<?php echo WPVR_PLUGIN_DIR_URL . 'images/Dashboard_banner.png'; ?>" style="max-width: 100%;">
1494
- </div>
1495
- </a>
1496
- </div>
1497
- <?php }
1498
-
1499
- }
1500
- }
1501
- add_action('admin_notices', 'wpvr_black_friday_offer_notice');
1502
-
1503
- add_action("wp_ajax_wpvr_black_friday_offer_notice_dismiss", "wpvr_black_friday_offer_notice_dismiss");
1504
- function wpvr_black_friday_offer_notice_dismiss() {
1505
- $current_time = time();
1506
- $info = array(
1507
- 'show_notice' => 'no',
1508
- 'updated_at' => $current_time,
1509
- );
1510
- update_option('wpvr_bff_notice', $info);
1511
- $result = array(
1512
- 'success' => true
1513
- );
1514
- $result = json_encode($result);
1515
- echo $result;
1516
- wp_die();
1517
- }
16
  * Plugin Name: WP VR
17
  * Plugin URI: https://rextheme.com/wpvr/
18
  * Description: WP VR - 360 Panorama and virtual tour creator for WordPress is a customized panaroma & virtual builder tool for WordPress Website.
19
+ * Version: 7.2.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
34
  * Start at version 1.0.0 and use SemVer - https://semver.org
35
  * Rename this for your plugin and update it as you release new versions.
36
  */
37
+ define('WPVR', '7.2.0');
38
  define('WPVR_FILE', __FILE__);
39
  define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
40
  define("WPVR_PLUGIN_PUBLIC_DIR_URL", plugin_dir_url(__FILE__) .'public/');
889
 
890
  if ($bg_music == 'on') {
891
  $html .= '<div id="adcontrol'.$id.'" class="adcontrol" style="right:'.$audio_right.'">';
892
+ $html .= '<audio class="vrAudioDefault" id="vrAudio'.$id.'" data-autoplay="'.$autoplay_bg_music.'" onended="audionEnd'.$id.'()" '.$bg_loop.'>
893
  <source src="'.$bg_music_url.'" type="audio/mpeg">
894
  Your browser does not support the audio element.
895
  </audio>
896
+ <button onclick="playPause'.$id.'()" class="ctrl audio_control" id="audio_control'.$id.'"><i id="vr-volume'.$id.'" class="wpvrvolumeicon'.$id.' fas fa-volume-up" style="color:#fff;"></i></button>
897
  ';
898
  $html .= '</div>';
899
  }
901
 
902
 
903
  $html .= '<div class="wpvr-hotspot-tweak-contents-wrapper" style="display: none">';
904
+ $html .= '<i class="fa fa-times cross" data-id="'.$id.'"></i>';
905
  $html .= '<div class="wpvr-hotspot-tweak-contents-flex">';
906
  $html .= '<div class="wpvr-hotspot-tweak-contents">';
907
  ob_start();
913
  $html .= '</div>';
914
 
915
  $html .= '<div class="custom-ifram-wrapper" style="display: none;">';
916
+ $html .= '<i class="fa fa-times cross" data-id="'.$id.'"></i>';
917
  $html .= '<div class="custom-ifram-flex">';
918
  $html .= '<div class="custom-ifram">';
919
  $html .= '</div>';
937
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-up");
938
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-mute");
939
  x'.$id.'.pause();
940
+ jQuery("#audio_control'.$id.'").attr("data-play", "off");
941
  playing'.$id.' = false;
942
 
943
  }
944
  else {
945
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-mute");
946
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-up");
947
+ jQuery("#audio_control'.$id.'").attr("data-play", "on");
948
  x'.$id.'.play();
949
  playing'.$id.' = true;
950
  }
954
  playing'.$id.' = false;
955
  jQuery("#vr-volume'.$id.'").removeClass("fas fa-volume-up");
956
  jQuery("#vr-volume'.$id.'").addClass("fas fa-volume-mute");
957
+ jQuery("#audio_control'.$id.'").attr("data-play", "off");
958
  }
959
  ';
960
 
1455
  {
1456
  add_image_size('wpvr_mobile', 4096, 2048); //mobile
1457
  }