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

Version Description

(13-10-2021) = * Update: Checked Compatibility with WooCommerce 5.8.0. * Update: Checked Compatibility with Elementor 3.4.5. * Update: Rollback Versions updated to 7.3.3. * New: Preview Option in General Section. * New: Warning Message in Video Tab if no video is assigned. * Fix: Endless Loading Loop in Tour Preview. * Fix: Video Tab Warning - 'X' Button Functionality Issue. * Fix: Warning Message if Scene ID & 360 Degree Image is missing. * Fix: Warning Message while Enabling video.js control, if Exclude Field is empty. * Tweak: Video Tab Warning Message.

Download this release

Release Info

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

Code changes from version 7.3.3 to 7.3.4

README.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-fo
5
  Requires at least: 5.0
6
  Tested up to: 5.8.1
7
  Requires PHP: 7.0.0
8
- Stable tag: 7.3.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -127,7 +127,7 @@ To have more control over creating a virtual tour, learn about the [Premium vers
127
 
128
  * An unlimited number of virtual tours.
129
  * 360 Degree Video Support (Self-hosted, Youtube and Vimeo Videos).
130
- * Full-window Virtual Tours.
131
  * Shortcode Support.
132
  * Gutenberg Block Support.
133
  * Elementor Widget Support.
@@ -168,6 +168,8 @@ To have more control over creating a virtual tour, learn about the [Premium vers
168
  * Google Street View Embed Support.
169
  * Gyroscope Support for Mobile Devices.
170
  * Auto Enable Gyroscope on Mobile Devices.
 
 
171
  * Custom & Responsive Scene Gallery.
172
  * Scene Titles on Each Scene.
173
  * Scene Description (Author) & URL on Each Scene.
@@ -323,6 +325,18 @@ Admins can remove the access from Authors and Editors at any time.
323
 
324
  == Changelog ==
325
 
 
 
 
 
 
 
 
 
 
 
 
 
326
  = 7.3.3 (16-09-2021) =
327
  * Update: Checked Compatibility with WordPress 5.8.1.
328
  * Update: Checked Compatibility with PHP 8.0.
5
  Requires at least: 5.0
6
  Tested up to: 5.8.1
7
  Requires PHP: 7.0.0
8
+ Stable tag: 7.3.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
127
 
128
  * An unlimited number of virtual tours.
129
  * 360 Degree Video Support (Self-hosted, Youtube and Vimeo Videos).
130
+ * Fullscreen Virtual Tours.
131
  * Shortcode Support.
132
  * Gutenberg Block Support.
133
  * Elementor Widget Support.
168
  * Google Street View Embed Support.
169
  * Gyroscope Support for Mobile Devices.
170
  * Auto Enable Gyroscope on Mobile Devices.
171
+ * Cubemap Image Support.
172
+ * Panorama Background.
173
  * Custom & Responsive Scene Gallery.
174
  * Scene Titles on Each Scene.
175
  * Scene Description (Author) & URL on Each Scene.
325
 
326
  == Changelog ==
327
 
328
+ = 7.3.4 (13-10-2021) =
329
+ * Update: Checked Compatibility with WooCommerce 5.8.0.
330
+ * Update: Checked Compatibility with Elementor 3.4.5.
331
+ * Update: Rollback Versions updated to 7.3.3.
332
+ * New: Preview Option in General Section.
333
+ * New: Warning Message in Video Tab if no video is assigned.
334
+ * Fix: Endless Loading Loop in Tour Preview.
335
+ * Fix: Video Tab Warning - 'X' Button Functionality Issue.
336
+ * Fix: Warning Message if Scene ID & 360 Degree Image is missing.
337
+ * Fix: Warning Message while Enabling video.js control, if Exclude Field is empty.
338
+ * Tweak: Video Tab Warning Message.
339
+
340
  = 7.3.3 (16-09-2021) =
341
  * Update: Checked Compatibility with WordPress 5.8.1.
342
  * Update: Checked Compatibility with PHP 8.0.
admin/class-wpvr-admin.php CHANGED
@@ -1062,6 +1062,15 @@ class Wpvr_Admin
1062
  $html .= '</div>';
1063
  //=end inner tab content=
1064
 
 
 
 
 
 
 
 
 
 
1065
  $html .= '<div class="wpvr-use-shortcode">';
1066
  $post = get_post();
1067
  $id = $post->ID;
@@ -1095,6 +1104,9 @@ class Wpvr_Admin
1095
  $html .= '</div>';
1096
  //=end shortcode area=
1097
 
 
 
 
1098
  $html .= '</div>';
1099
  //=end inner tab=
1100
 
@@ -2379,7 +2391,7 @@ class Wpvr_Admin
2379
  $html .= '<div class="preview-btn-wrapper">';
2380
  $html .= '<div class="preview-btn-area clearfix">';
2381
 
2382
- $html .= '<button id="panolenspreview">'.__('Preview', 'wpvr').'</button>';
2383
  $html .= '</div>';
2384
  $html .= '</div>';
2385
  $html .='</div>';
1062
  $html .= '</div>';
1063
  //=end inner tab content=
1064
 
1065
+ //== Start preview button
1066
+ $html .= '<div class="preview-btn-wrapper">';
1067
+ $html .= '<div class="preview-btn-area clearfix">';
1068
+
1069
+ $html .= '<button id="panolenspreview" class="panolenspreview">' . __('Preview', 'wpvr-pro') . '</button>';
1070
+ $html .= '</div>';
1071
+ $html .= '</div>';
1072
+ //== End preview button
1073
+
1074
  $html .= '<div class="wpvr-use-shortcode">';
1075
  $post = get_post();
1076
  $id = $post->ID;
1104
  $html .= '</div>';
1105
  //=end shortcode area=
1106
 
1107
+
1108
+
1109
+
1110
  $html .= '</div>';
1111
  //=end inner tab=
1112
 
2391
  $html .= '<div class="preview-btn-wrapper">';
2392
  $html .= '<div class="preview-btn-area clearfix">';
2393
 
2394
+ $html .= '<button id="panolenspreview" class="panolenspreview">'.__('Preview', 'wpvr').'</button>';
2395
  $html .= '</div>';
2396
  $html .= '</div>';
2397
  $html .='</div>';
admin/class-wpvr-ajax.php CHANGED
@@ -49,7 +49,7 @@ class Wpvr_Ajax
49
  if ($draggable == 'off') {
50
  $draggable = false;
51
  } else {
52
- $draggable = true;
53
  }
54
 
55
  $diskeyboard = sanitize_text_field($_POST['diskeyboard']);
@@ -74,7 +74,7 @@ class Wpvr_Ajax
74
  }
75
 
76
  $default_scene = '';
77
- $default_scene = sanitize_text_field($_POST['defaultscene']);
78
  $preview = '';
79
  $preview = esc_url($_POST['preview']);
80
 
@@ -224,6 +224,11 @@ class Wpvr_Ajax
224
  wp_send_json_error('<span class="pano-error-title">Max-zoom Value Limit Exceeded</span><p> You can set the Max-zoom Value up to 120 degrees.</p>');
225
  die();
226
  }
 
 
 
 
 
227
  }
228
 
229
  if (!empty($scenes_val["scene-minzoom"])) {
@@ -238,6 +243,11 @@ class Wpvr_Ajax
238
  wp_send_json_error('<span class="pano-error-title">Low Min-Zoom Value</span><p> The Min-zoom value must be more than 50 in degree values where Scene ID: ' . $scene_id_validate . '</p>');
239
  die();
240
  }
 
 
 
 
 
241
  }
242
 
243
  if ($scenes_val["hotspot-list"] != "") {
@@ -348,7 +358,7 @@ class Wpvr_Ajax
348
  if ($allsceneids) {
349
  $default_scene = $allsceneids[0];
350
  } else {
351
- wp_send_json_error('<p><span>Warning:</span> No default scene selected and no scene id found to set as default. You need at least one scene to publish a tour </p>');
352
  die();
353
  }
354
  }
@@ -993,7 +1003,7 @@ class Wpvr_Ajax
993
 
994
  //===background tour ===//
995
  $bg_tour_enabler = sanitize_text_field($_POST['wpvr_bg_tour_enabler']);
996
- $bg_tour_navmenu = sanitize_text_field($_POST['wpvr_bg_tour_navmenu_enabler']);
997
  $bg_tour_title = sanitize_text_field($_POST['bg_tour_title']);
998
  $bg_tour_subtitle = sanitize_text_field($_POST['bg_tour_subtitle']);
999
  //===background tour end ===//
@@ -1126,6 +1136,11 @@ class Wpvr_Ajax
1126
 
1127
  die();
1128
  }
 
 
 
 
 
1129
  }
1130
 
1131
  if (!empty($scenes_val["scene-minzoom"])) {
@@ -1140,6 +1155,11 @@ class Wpvr_Ajax
1140
  wp_send_json_error('<span class="pano-error-title">Low Min-Zoom Value</span><p> The Min-zoom value must be more than 50 in degree values where Scene ID: ' . $scene_id_validate . '</p>');
1141
  die();
1142
  }
 
 
 
 
 
1143
  }
1144
 
1145
  if ($scenes_val["hotspot-list"] != "") {
@@ -1271,7 +1291,8 @@ class Wpvr_Ajax
1271
  if ($allsceneids) {
1272
  $default_scene = $allsceneids[0];
1273
  } else {
1274
- wp_send_json_error('<p><span>Warning:</span> No default scene selected and no scene id found to set as default. You need at least one scene to publish a tour </p>');
 
1275
  die();
1276
  }
1277
  }
49
  if ($draggable == 'off') {
50
  $draggable = false;
51
  } else {
52
+ $draggable = true;
53
  }
54
 
55
  $diskeyboard = sanitize_text_field($_POST['diskeyboard']);
74
  }
75
 
76
  $default_scene = '';
77
+ // $default_scene = sanitize_text_field($_POST['defaultscene']);
78
  $preview = '';
79
  $preview = esc_url($_POST['preview']);
80
 
224
  wp_send_json_error('<span class="pano-error-title">Max-zoom Value Limit Exceeded</span><p> You can set the Max-zoom Value up to 120 degrees.</p>');
225
  die();
226
  }
227
+
228
+ if ($max_zoom_value < 50) {
229
+ wp_send_json_error('<span class="pano-error-title">Max-zoom Value Limit Exceeded</span><p> You can not set the Max-zoom Value lower than 50 degrees.</p>');
230
+ die();
231
+ }
232
  }
233
 
234
  if (!empty($scenes_val["scene-minzoom"])) {
243
  wp_send_json_error('<span class="pano-error-title">Low Min-Zoom Value</span><p> The Min-zoom value must be more than 50 in degree values where Scene ID: ' . $scene_id_validate . '</p>');
244
  die();
245
  }
246
+
247
+ if ($min_zoom_value > 120) {
248
+ wp_send_json_error('<span class="pano-error-title">High Min-Zoom Value</span><p> The Min-zoom value must be less than 120 in degree values where Scene ID: ' . $scene_id_validate . '</p>');
249
+ die();
250
+ }
251
  }
252
 
253
  if ($scenes_val["hotspot-list"] != "") {
358
  if ($allsceneids) {
359
  $default_scene = $allsceneids[0];
360
  } else {
361
+ wp_send_json_error('<span class="pano-error-title">Missing Image & Scene ID</span> <p>Please Upload An Image and Set A Scene ID To See The Preview</p>');
362
  die();
363
  }
364
  }
1003
 
1004
  //===background tour ===//
1005
  $bg_tour_enabler = sanitize_text_field($_POST['wpvr_bg_tour_enabler']);
1006
+ // $bg_tour_navmenu = sanitize_text_field($_POST['wpvr_bg_tour_navmenu_enabler']);
1007
  $bg_tour_title = sanitize_text_field($_POST['bg_tour_title']);
1008
  $bg_tour_subtitle = sanitize_text_field($_POST['bg_tour_subtitle']);
1009
  //===background tour end ===//
1136
 
1137
  die();
1138
  }
1139
+
1140
+ if ($max_zoom_value < 50) {
1141
+ wp_send_json_error('<span class="pano-error-title">Max-zoom Value Limit Exceeded</span><p> You can not set the Max-zoom Value lower than 50 degrees.</p>');
1142
+ die();
1143
+ }
1144
  }
1145
 
1146
  if (!empty($scenes_val["scene-minzoom"])) {
1155
  wp_send_json_error('<span class="pano-error-title">Low Min-Zoom Value</span><p> The Min-zoom value must be more than 50 in degree values where Scene ID: ' . $scene_id_validate . '</p>');
1156
  die();
1157
  }
1158
+
1159
+ if ($min_zoom_value > 120) {
1160
+ wp_send_json_error('<span class="pano-error-title">Hight Min-Zoom Value</span><p> The Min-zoom value must be less than 120 in degree values where Scene ID: ' . $scene_id_validate . '</p>');
1161
+ die();
1162
+ }
1163
  }
1164
 
1165
  if ($scenes_val["hotspot-list"] != "") {
1291
  if ($allsceneids) {
1292
  $default_scene = $allsceneids[0];
1293
  } else {
1294
+
1295
+ wp_send_json_error('<span class="pano-error-title">Missing Image & Scene ID</span> <p>Please Upload An Image and Set A Scene ID To See The Preview</p>');
1296
  die();
1297
  }
1298
  }
admin/js/wpvr-admin.js CHANGED
@@ -72,7 +72,7 @@
72
 
73
  j = $('#scene-1').find('.hotspot-nav li').eq(-2).find('span').attr('data-index');
74
  var ajaxurl = wpvr_obj.ajaxurl;
75
- $('#panolenspreview').on('click', function (e) {
76
  e.preventDefault();
77
  $('.wpvr-loading').show();
78
  var postid = $("#post_ID").val();
@@ -205,11 +205,31 @@
205
  var ajaxurl = wpvr_obj.ajaxurl;
206
  $('#videopreview').on('click', function (e) {
207
  e.preventDefault();
208
- $('.wpvr-loading').show();
209
  var postid = $("#post_ID").val();
210
  var videourl = $("input[name='video-attachment-url']").val();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  var vidautoplay = $("input[name='playvideo']:checked").val();
212
  var vidcontrol = $("input[name='playcontrol']:checked").val();
 
213
  jQuery.ajax({
214
  type: "POST",
215
  url: ajaxurl,
@@ -326,7 +346,7 @@
326
  $('body').removeClass('error-overlay');
327
  });
328
 
329
- $("#panolenspreview, #error_occured").on("click", function (e) {
330
  e.stopPropagation();
331
  });
332
  });
@@ -862,9 +882,10 @@
862
  $("li.scene").show();
863
  $("li.hotspot").show();
864
  $("li.streetview").show();
 
865
  }
866
 
867
- $(document).on("click", ".wpvr-delete-confirm-btn .cancel", function (e) {
868
  e.preventDefault();
869
  $('.wpvr-delete-alert-wrapper').css('display', 'none');
870
  $('.wpvr-delete-alert-wrapper').hide();
@@ -876,7 +897,7 @@
876
  $("li.scene").show();
877
  $("li.hotspot").show();
878
  $("li.streetview").show();
879
-
880
 
881
  });
882
 
@@ -1315,43 +1336,152 @@
1315
  var wpvr_video_script_control = $('#wpvr_video_script_control').is(':checked');
1316
  var wpvr_video_script_list = $('#wpvr_video_script_list').val();
1317
  var high_res_image = $('#high_res_image').is(':checked');
1318
-
1319
  /**
1320
- * Nasim
1321
  * check enable script button is on and script list field is not empty
1322
  */
1323
- if ($('#wpvr_script_control').is(':checked') && !wpvr_script_list) {
1324
-
1325
- if (confirm('The "List of Allowed Pages To Load WP VR Scripts " Field Is Empty. No Virtual Tours Will Show Up on Your Site.')) {
1326
-
1327
- jQuery.ajax({
1328
- type: "POST",
1329
- url: ajaxurl,
1330
- data: {
1331
- action: "wpvr_role_management",
1332
- editor: editor,
1333
- author: author,
1334
- fontawesome: fontawesome,
1335
- mobile_media_resize: mobile_media_resize,
1336
- high_res_image: high_res_image,
1337
- wpvr_frontend_notice: wpvr_frontend_notice,
1338
- wpvr_frontend_notice_area: wpvr_frontend_notice_area,
1339
- wpvr_script_control: wpvr_script_control,
1340
- wpvr_script_list: wpvr_script_list,
1341
- wpvr_video_script_control: wpvr_video_script_control,
1342
- wpvr_video_script_list: wpvr_video_script_list,
1343
- },
1344
- success: function (response) {
1345
- $('#wpvr_role_progress').hide();
1346
- $('#wpvr_role_submit').attr('disabled', false);
1347
- if (response.status == 'success') {
1348
- Materialize.toast(response.message, 2000);
 
 
 
 
 
 
 
 
 
 
1349
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1350
  }
1351
- });
1352
- } else {
1353
- $('#wpvr_role_progress').hide();
1354
- $('#wpvr_role_submit').attr('disabled', false);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1355
  }
1356
 
1357
  } else {
72
 
73
  j = $('#scene-1').find('.hotspot-nav li').eq(-2).find('span').attr('data-index');
74
  var ajaxurl = wpvr_obj.ajaxurl;
75
+ $('.panolenspreview').on('click', function (e) {
76
  e.preventDefault();
77
  $('.wpvr-loading').show();
78
  var postid = $("#post_ID").val();
205
  var ajaxurl = wpvr_obj.ajaxurl;
206
  $('#videopreview').on('click', function (e) {
207
  e.preventDefault();
 
208
  var postid = $("#post_ID").val();
209
  var videourl = $("input[name='video-attachment-url']").val();
210
+ if('' == videourl){
211
+ $('#confirm_text').html("No Video Found!"+"<br>"+"<span class='wpvr-video-alert-text'>"+"You haven't uploaded or set the link to a 360 degree video. Please Upload or Set a video to see the Preview."+"</span>");
212
+ $('.wpvr-delete-alert-wrapper .wpvr-delete-confirm-btn').css('display', 'none');
213
+ $('.wpvr-delete-alert-wrapper').css('display', 'flex');
214
+ $('.wpvr-video-alert-text').css('font-weight', '400');
215
+
216
+ $(document).on("click", ".wpvr-delete-alert-wrapper .cross", function (e) {
217
+ e.preventDefault();
218
+ $('.wpvr-delete-alert-wrapper').css('display', 'none');
219
+ $('.wpvr-delete-alert-wrapper .wpvr-delete-confirm-btn').css('display', 'flex');
220
+ $(".video-setting").show();
221
+ $(".video_off").prop('checked', false);
222
+ $(".video_on").prop('checked', true);
223
+ $("li.general").hide();
224
+ $("li.scene").hide();
225
+ $("li.hotspot").hide();
226
+ $("li.streetview").hide();
227
+ });
228
+ return false;
229
+ }
230
  var vidautoplay = $("input[name='playvideo']:checked").val();
231
  var vidcontrol = $("input[name='playcontrol']:checked").val();
232
+ $('.wpvr-loading').show();
233
  jQuery.ajax({
234
  type: "POST",
235
  url: ajaxurl,
346
  $('body').removeClass('error-overlay');
347
  });
348
 
349
+ $(".panolenspreview, #error_occured").on("click", function (e) {
350
  e.stopPropagation();
351
  });
352
  });
882
  $("li.scene").show();
883
  $("li.hotspot").show();
884
  $("li.streetview").show();
885
+ $(".video-setting").hide();
886
  }
887
 
888
+ $(document).on("click", ".wpvr-delete-confirm-btn .cancel,.wpvr-delete-alert-wrapper .cross", function (e) {
889
  e.preventDefault();
890
  $('.wpvr-delete-alert-wrapper').css('display', 'none');
891
  $('.wpvr-delete-alert-wrapper').hide();
897
  $("li.scene").show();
898
  $("li.hotspot").show();
899
  $("li.streetview").show();
900
+ $(".video-setting").hide();
901
 
902
  });
903
 
1336
  var wpvr_video_script_control = $('#wpvr_video_script_control').is(':checked');
1337
  var wpvr_video_script_list = $('#wpvr_video_script_list').val();
1338
  var high_res_image = $('#high_res_image').is(':checked');
1339
+
1340
  /**
 
1341
  * check enable script button is on and script list field is not empty
1342
  */
1343
+ if ( ($('#wpvr_video_script_control').is(':checked') && wpvr_video_script_list == '') || ($('#wpvr_script_control').is(':checked') && wpvr_script_list == '') ) {
1344
+ if(($('#wpvr_script_control').is(':checked') && wpvr_script_list == '')){
1345
+ if (confirm('The "List of Allowed Pages To Load WP VR Scripts " Field Is Empty. No Virtual Tours Will Show Up on Your Site.')) {
1346
+ if($('#wpvr_video_script_control').is(':checked') && wpvr_video_script_list == ''){
1347
+ if (confirm("The 'List of Allowed Pages To Load WPVR Video.js ' Field Is Empty. Any Self-hosted 360-degree videos won't function on your site.")) {
1348
+ jQuery.ajax({
1349
+ type: "POST",
1350
+ url: ajaxurl,
1351
+ data: {
1352
+ action: "wpvr_role_management",
1353
+ editor: editor,
1354
+ author: author,
1355
+ fontawesome: fontawesome,
1356
+ mobile_media_resize: mobile_media_resize,
1357
+ high_res_image: high_res_image,
1358
+ wpvr_frontend_notice: wpvr_frontend_notice,
1359
+ wpvr_frontend_notice_area: wpvr_frontend_notice_area,
1360
+ wpvr_script_control: wpvr_script_control,
1361
+ wpvr_script_list: wpvr_script_list,
1362
+ wpvr_video_script_control: wpvr_video_script_control,
1363
+ wpvr_video_script_list: wpvr_video_script_list,
1364
+ // woocommerce: woocommerce,
1365
+ },
1366
+ success: function (response) {
1367
+ $('#wpvr_role_progress').hide();
1368
+ $('#wpvr_role_submit').attr('disabled', false);
1369
+
1370
+ if (response.status == 'success') {
1371
+ Materialize.toast(response.message, 2000);
1372
+ }
1373
+
1374
+ }
1375
+ });
1376
+ } else {
1377
+ $('#wpvr_role_progress').hide();
1378
+ $('#wpvr_role_submit').attr('disabled', false);
1379
  }
1380
+ }else{
1381
+ jQuery.ajax({
1382
+ type: "POST",
1383
+ url: ajaxurl,
1384
+ data: {
1385
+ action: "wpvr_role_management",
1386
+ editor: editor,
1387
+ author: author,
1388
+ fontawesome: fontawesome,
1389
+ mobile_media_resize: mobile_media_resize,
1390
+ high_res_image: high_res_image,
1391
+ wpvr_frontend_notice: wpvr_frontend_notice,
1392
+ wpvr_frontend_notice_area: wpvr_frontend_notice_area,
1393
+ wpvr_script_control: wpvr_script_control,
1394
+ wpvr_script_list: wpvr_script_list,
1395
+ wpvr_video_script_control: wpvr_video_script_control,
1396
+ wpvr_video_script_list: wpvr_video_script_list,
1397
+ // woocommerce: woocommerce,
1398
+ },
1399
+ success: function (response) {
1400
+ $('#wpvr_role_progress').hide();
1401
+ $('#wpvr_role_submit').attr('disabled', false);
1402
+
1403
+ if (response.status == 'success') {
1404
+ Materialize.toast(response.message, 2000);
1405
+ }
1406
+
1407
+ }
1408
+ });
1409
  }
1410
+ } else {
1411
+ $('#wpvr_role_progress').hide();
1412
+ $('#wpvr_role_submit').attr('disabled', false);
1413
+ }
1414
+ }else if($('#wpvr_video_script_control').is(':checked') && wpvr_video_script_list == ''){
1415
+
1416
+ if (confirm("The 'List of Allowed Pages To Load WPVR Video.js ' Field Is Empty. Any Self-hosted 360-degree videos won't function on your site.")) {
1417
+ if(($('#wpvr_script_control').is(':checked') && wpvr_script_list == '')){
1418
+ if (confirm('The "List of Allowed Pages To Load WP VR Scripts " Field Is Empty. No Virtual Tours Will Show Up on Your Site.')) {
1419
+ jQuery.ajax({
1420
+ type: "POST",
1421
+ url: ajaxurl,
1422
+ data: {
1423
+ action: "wpvr_role_management",
1424
+ editor: editor,
1425
+ author: author,
1426
+ fontawesome: fontawesome,
1427
+ mobile_media_resize: mobile_media_resize,
1428
+ high_res_image: high_res_image,
1429
+ wpvr_frontend_notice: wpvr_frontend_notice,
1430
+ wpvr_frontend_notice_area: wpvr_frontend_notice_area,
1431
+ wpvr_script_control: wpvr_script_control,
1432
+ wpvr_script_list: wpvr_script_list,
1433
+ wpvr_video_script_control: wpvr_video_script_control,
1434
+ wpvr_video_script_list: wpvr_video_script_list,
1435
+ // woocommerce: woocommerce,
1436
+ },
1437
+ success: function (response) {
1438
+ $('#wpvr_role_progress').hide();
1439
+ $('#wpvr_role_submit').attr('disabled', false);
1440
+
1441
+ if (response.status == 'success') {
1442
+ Materialize.toast(response.message, 2000);
1443
+ }
1444
+
1445
+ }
1446
+ });
1447
+ }else {
1448
+ $('#wpvr_role_progress').hide();
1449
+ $('#wpvr_role_submit').attr('disabled', false);
1450
+ }
1451
+ }else{
1452
+ jQuery.ajax({
1453
+ type: "POST",
1454
+ url: ajaxurl,
1455
+ data: {
1456
+ action: "wpvr_role_management",
1457
+ editor: editor,
1458
+ author: author,
1459
+ fontawesome: fontawesome,
1460
+ mobile_media_resize: mobile_media_resize,
1461
+ high_res_image: high_res_image,
1462
+ wpvr_frontend_notice: wpvr_frontend_notice,
1463
+ wpvr_frontend_notice_area: wpvr_frontend_notice_area,
1464
+ wpvr_script_control: wpvr_script_control,
1465
+ wpvr_script_list: wpvr_script_list,
1466
+ wpvr_video_script_control: wpvr_video_script_control,
1467
+ wpvr_video_script_list: wpvr_video_script_list,
1468
+ // woocommerce: woocommerce,
1469
+ },
1470
+ success: function (response) {
1471
+ $('#wpvr_role_progress').hide();
1472
+ $('#wpvr_role_submit').attr('disabled', false);
1473
+
1474
+ if (response.status == 'success') {
1475
+ Materialize.toast(response.message, 2000);
1476
+ }
1477
+
1478
+ }
1479
+ });
1480
+ }
1481
+ } else {
1482
+ $('#wpvr_role_progress').hide();
1483
+ $('#wpvr_role_submit').attr('disabled', false);
1484
+ }
1485
  }
1486
 
1487
  } else {
admin/partials/wpvr_documentation.php CHANGED
@@ -783,6 +783,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
783
  <form class="wpvr-version">
784
  <h6><?php _e('Select a Version to Rollback','wpvr'); ?></h6>
785
  <select name="wpvr_version">
 
786
  <option value="7.3.2">7.3.2</option>
787
  <option value="7.3.1">7.3.1</option>
788
  <option value="7.3.0">7.3.0</option>
783
  <form class="wpvr-version">
784
  <h6><?php _e('Select a Version to Rollback','wpvr'); ?></h6>
785
  <select name="wpvr_version">
786
+ <option value="7.3.3">7.3.3</option>
787
  <option value="7.3.2">7.3.2</option>
788
  <option value="7.3.1">7.3.1</option>
789
  <option value="7.3.0">7.3.0</option>
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.3.3
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
@@ -35,7 +35,7 @@ require plugin_dir_path(__FILE__) . 'elementor/elementor.php';
35
  * Start at version 1.0.0 and use SemVer - https://semver.org
36
  * Rename this for your plugin and update it as you release new versions.
37
  */
38
- define('WPVR', '7.3.3');
39
  define('WPVR_FILE', __FILE__);
40
  define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
41
  define("WPVR_PLUGIN_DIR_PATH", plugin_dir_path(__FILE__));
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.3.4
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
35
  * Start at version 1.0.0 and use SemVer - https://semver.org
36
  * Rename this for your plugin and update it as you release new versions.
37
  */
38
+ define('WPVR', '7.3.4');
39
  define('WPVR_FILE', __FILE__);
40
  define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
41
  define("WPVR_PLUGIN_DIR_PATH", plugin_dir_path(__FILE__));