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

Version Description

Download this release

Release Info

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

Code changes from version 6.8.0 to 6.9.0

Files changed (3) hide show
  1. README.txt +8 -3
  2. public/class-wpvr-public.php +54 -7
  3. wpvr.php +41 -33
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.1
7
  Requires PHP: 7.0.0
8
- Stable tag: 6.8.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -545,8 +545,13 @@ Simply add “/plugins/wpvr” to the exclusion field (or use the location where
545
  * Mobile media resizer switch added
546
  * Ocean theme conflict fixed
547
 
548
- = 6.8.0 (22-10-2020) =
549
  * Display gallery by default on the tour
550
 
 
 
 
 
 
551
  == Upgrade Notice ==
552
  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.5.3
7
  Requires PHP: 7.0.0
8
+ Stable tag: 6.9.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
545
  * Mobile media resizer switch added
546
  * Ocean theme conflict fixed
547
 
548
+ 6.8.0 (22-10-2020)
549
  * Display gallery by default on the tour
550
 
551
+ 6.9.0 (16-11-2020)
552
+ * Accordion support added for elementor
553
+ * Iframe conflict fixed
554
+ * Control button overlap issue fixed
555
+
556
  == Upgrade Notice ==
557
  Please do update the WP VR to the latest version. Each update makes sure your plugin is supporting all tour features.
public/class-wpvr-public.php CHANGED
@@ -1044,6 +1044,9 @@ class Wpvr_Public
1044
  $html .= 'var panoshow'.$id.' = pannellum.viewer(response[0]["panoid"], scenes);';
1045
 
1046
  $html .= 'panoshow'.$id.'.on("load", function (){
 
 
 
1047
  if (jQuery("#pano'.$id.'").children().children(".pnlm-panorama-info:visible").length > 0) {
1048
  jQuery("#controls'.$id.'").css("bottom", "55px");
1049
  }
@@ -1052,6 +1055,10 @@ class Wpvr_Public
1052
  }
1053
  });';
1054
 
 
 
 
 
1055
  $html .= '
1056
  if (scenes.autoRotate) {
1057
  panoshow'.$id.'.on("load", function (){
@@ -1228,14 +1235,54 @@ class Wpvr_Public
1228
  });';
1229
  }
1230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1231
  $html .= '
1232
- jQuery(".elementor-tab-title, .geodir-tab-head dd, #vr-tour-tab").click(function(){
1233
- jQuery("#pano'.$id.'").children(".pnlm-render-container").remove();
1234
- jQuery("#pano'.$id.'").children(".pnlm-ui").remove();
1235
- panoshow'.$id.' = pannellum.viewer(response[0]["panoid"], scenes);
1236
- setTimeout(function() {
1237
- panoshow'.$id.'.loadScene("'.$default_scene.'");
1238
- }, 2000);
 
 
 
 
 
 
 
1239
  });
1240
  ';
1241
 
1044
  $html .= 'var panoshow'.$id.' = pannellum.viewer(response[0]["panoid"], scenes);';
1045
 
1046
  $html .= 'panoshow'.$id.'.on("load", function (){
1047
+ setTimeout(() => {
1048
+ window.dispatchEvent(new Event("resize"));
1049
+ }, 200);
1050
  if (jQuery("#pano'.$id.'").children().children(".pnlm-panorama-info:visible").length > 0) {
1051
  jQuery("#controls'.$id.'").css("bottom", "55px");
1052
  }
1055
  }
1056
  });';
1057
 
1058
+ $html .= 'panoshow'.$id.'.on("render", function (){
1059
+ window.dispatchEvent(new Event("resize"));
1060
+ });';
1061
+
1062
  $html .= '
1063
  if (scenes.autoRotate) {
1064
  panoshow'.$id.'.on("load", function (){
1235
  });';
1236
  }
1237
 
1238
+ //==Old code working properly==//
1239
+ $html .= '
1240
+ jQuery(".elementor-tab-title").click(function(){
1241
+ var element_id;
1242
+ var pano_id;
1243
+ var element_id = this.id;
1244
+ element_id = element_id.split("-");
1245
+ element_id = element_id[3];
1246
+ jQuery("#elementor-tab-content-"+element_id).children("div").addClass("awwww");
1247
+ var pano_id = jQuery(".awwww").attr("id");
1248
+ jQuery("#elementor-tab-content-"+element_id).children("div").removeClass("awwww");
1249
+ if (pano_id != undefined) {
1250
+ pano_id = pano_id.split("o");
1251
+ pano_id = pano_id[1];
1252
+ if (pano_id == "'.$id.'") {
1253
+ jQuery("#pano'.$id.'").children(".pnlm-render-container").remove();
1254
+ jQuery("#pano'.$id.'").children(".pnlm-ui").remove();
1255
+ panoshow'.$id.' = pannellum.viewer(response[0]["panoid"], scenes);
1256
+ setTimeout(function() {
1257
+ panoshow'.$id.'.loadScene("'.$default_scene.'");
1258
+ window.dispatchEvent(new Event("resize"));
1259
+ if (jQuery("#pano'.$id.'").children().children(".pnlm-panorama-info:visible").length > 0) {
1260
+ jQuery("#controls'.$id.'").css("bottom", "55px");
1261
+ }
1262
+ else {
1263
+ jQuery("#controls'.$id.'").css("bottom", "5px");
1264
+ }
1265
+ }, 200);
1266
+ }
1267
+ }
1268
+ });
1269
+ ';
1270
+
1271
  $html .= '
1272
+ jQuery(".geodir-tab-head dd, #vr-tour-tab").click(function(){
1273
+ jQuery("#pano'.$id.'").children(".pnlm-render-container").remove();
1274
+ jQuery("#pano'.$id.'").children(".pnlm-ui").remove();
1275
+ panoshow'.$id.' = pannellum.viewer(response[0]["panoid"], scenes);
1276
+ setTimeout(function() {
1277
+ panoshow'.$id.'.loadScene("'.$default_scene.'");
1278
+ window.dispatchEvent(new Event("resize"));
1279
+ if (jQuery("#pano'.$id.'").children().children(".pnlm-panorama-info:visible").length > 0) {
1280
+ jQuery("#controls'.$id.'").css("bottom", "55px");
1281
+ }
1282
+ else {
1283
+ jQuery("#controls'.$id.'").css("bottom", "5px");
1284
+ }
1285
+ }, 200);
1286
  });
1287
  ';
1288
 
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: 6.8.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
@@ -1346,46 +1346,54 @@ function wpvr_add_role_cap()
1346
 
1347
  if ($editor_active == "true") {
1348
  $editor = get_role('editor');
1349
- $editor->add_cap('publish_wpvr_tour');
1350
- $editor->add_cap('edit_wpvr_tours');
1351
- $editor->add_cap('read_wpvr_tour');
1352
- $editor->add_cap('edit_wpvr_tour');
1353
- $editor->add_cap('edit_wpvr_tours');
1354
- $editor->add_cap('publish_wpvr_tours');
1355
- $editor->add_cap('publish_wpvr_tour');
1356
- $editor->add_cap('delete_wpvr_tour');
1357
- $editor->add_cap('edit_other_wpvr_tours');
1358
- $editor->add_cap('delete_other_wpvr_tours');
 
 
1359
  } else {
1360
  $editor = get_role('editor');
1361
- $editor->remove_cap('publish_wpvr_tour');
1362
- $editor->remove_cap('edit_wpvr_tours');
1363
- $editor->remove_cap('read_wpvr_tour');
1364
- $editor->remove_cap('edit_wpvr_tour');
1365
- $editor->remove_cap('edit_wpvr_tours');
1366
- $editor->remove_cap('publish_wpvr_tours');
1367
- $editor->remove_cap('publish_wpvr_tour');
1368
- $editor->remove_cap('delete_wpvr_tour');
1369
- $editor->remove_cap('edit_other_wpvr_tours');
1370
- $editor->remove_cap('delete_other_wpvr_tours');
 
 
1371
  }
1372
 
1373
  if ($author_active == "true") {
1374
  $author = get_role('author');
1375
- $author->add_cap('read_wpvr_tour');
1376
- $author->add_cap('edit_wpvr_tour');
1377
- $author->add_cap('edit_wpvr_tours');
1378
- $author->add_cap('publish_wpvr_tours');
1379
- $author->add_cap('publish_wpvr_tour');
1380
- $author->add_cap('delete_wpvr_tour');
 
 
1381
  } else {
1382
  $author = get_role('author');
1383
- $author->remove_cap('read_wpvr_tour');
1384
- $author->remove_cap('edit_wpvr_tour');
1385
- $author->remove_cap('edit_wpvr_tours');
1386
- $author->remove_cap('publish_wpvr_tours');
1387
- $author->remove_cap('publish_wpvr_tour');
1388
- $author->remove_cap('delete_wpvr_tour');
 
 
1389
  }
1390
  }
1391
 
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: 6.9.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
1346
 
1347
  if ($editor_active == "true") {
1348
  $editor = get_role('editor');
1349
+ if ($editor) {
1350
+ $editor->add_cap('publish_wpvr_tour');
1351
+ $editor->add_cap('edit_wpvr_tours');
1352
+ $editor->add_cap('read_wpvr_tour');
1353
+ $editor->add_cap('edit_wpvr_tour');
1354
+ $editor->add_cap('edit_wpvr_tours');
1355
+ $editor->add_cap('publish_wpvr_tours');
1356
+ $editor->add_cap('publish_wpvr_tour');
1357
+ $editor->add_cap('delete_wpvr_tour');
1358
+ $editor->add_cap('edit_other_wpvr_tours');
1359
+ $editor->add_cap('delete_other_wpvr_tours');
1360
+ }
1361
  } else {
1362
  $editor = get_role('editor');
1363
+ if ($editor) {
1364
+ $editor->remove_cap('publish_wpvr_tour');
1365
+ $editor->remove_cap('edit_wpvr_tours');
1366
+ $editor->remove_cap('read_wpvr_tour');
1367
+ $editor->remove_cap('edit_wpvr_tour');
1368
+ $editor->remove_cap('edit_wpvr_tours');
1369
+ $editor->remove_cap('publish_wpvr_tours');
1370
+ $editor->remove_cap('publish_wpvr_tour');
1371
+ $editor->remove_cap('delete_wpvr_tour');
1372
+ $editor->remove_cap('edit_other_wpvr_tours');
1373
+ $editor->remove_cap('delete_other_wpvr_tours');
1374
+ }
1375
  }
1376
 
1377
  if ($author_active == "true") {
1378
  $author = get_role('author');
1379
+ if ($author) {
1380
+ $author->add_cap('read_wpvr_tour');
1381
+ $author->add_cap('edit_wpvr_tour');
1382
+ $author->add_cap('edit_wpvr_tours');
1383
+ $author->add_cap('publish_wpvr_tours');
1384
+ $author->add_cap('publish_wpvr_tour');
1385
+ $author->add_cap('delete_wpvr_tour');
1386
+ }
1387
  } else {
1388
  $author = get_role('author');
1389
+ if ($author) {
1390
+ $author->remove_cap('read_wpvr_tour');
1391
+ $author->remove_cap('edit_wpvr_tour');
1392
+ $author->remove_cap('edit_wpvr_tours');
1393
+ $author->remove_cap('publish_wpvr_tours');
1394
+ $author->remove_cap('publish_wpvr_tour');
1395
+ $author->remove_cap('delete_wpvr_tour');
1396
+ }
1397
  }
1398
  }
1399