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

Version Description

  • Home button added to return to default scene

=

Download this release

Release Info

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

Code changes from version 4.9.0 to 5.0.0

Files changed (3) hide show
  1. README.txt +4 -1
  2. public/class-wpvr-public.php +11 -1
  3. wpvr.php +14 -3
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-fo
4
  Tags: virtual tour, real estate tour, panorama, panorama viewer, virtual tour, 360 panorama, interactive tour
5
  Requires at least: 4.0
6
  Tested up to: 5.3
7
- Stable tag: 4.9.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -364,5 +364,8 @@ Simply add "/plugins/wpvr" to exclusion field (or use the location where you sto
364
  = 4.9.0 =
365
  * Scene title field added for gallery content
366
 
 
 
 
367
  == Upgrade Notice ==
368
  Please do update the WP VR to the latest version. Each update makes it sure your plugin is supporting all tour features.  
4
  Tags: virtual tour, real estate tour, panorama, panorama viewer, virtual tour, 360 panorama, interactive tour
5
  Requires at least: 4.0
6
  Tested up to: 5.3
7
+ Stable tag: 5.0.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
364
  = 4.9.0 =
365
  * Scene title field added for gallery content
366
 
367
+ = 5.0.0 =
368
+ * Home button added to return to default scene
369
+
370
  == Upgrade Notice ==
371
  Please do update the WP VR to the latest version. Each update makes it sure your plugin is supporting all tour features.  
public/class-wpvr-public.php CHANGED
@@ -755,10 +755,14 @@ class Wpvr_Public {
755
 
756
  //===Custom Control===//
757
  if (isset($custom_control)) {
758
- if ( $custom_control['panZoomInSwitch'] == "on" || $custom_control['panZoomOutSwitch'] == "on" || $custom_control['gyroscopeSwitch'] == "on") {
759
 
760
  $html .= '<div id="zoom-in-out-controls">';
761
 
 
 
 
 
762
  if ($custom_control['panZoomInSwitch'] == "on") {
763
  $html .= '<div class="ctrl" id="zoom-in"><i class="'.$custom_control['panZoomInIcon'].'" style="color:'.$custom_control['panZoomInColor'].';"></i></div>';
764
  }
@@ -940,6 +944,12 @@ class Wpvr_Public {
940
  $html .= '});';
941
  }
942
 
 
 
 
 
 
 
943
  if ($custom_control['gyroscopeSwitch'] == "on") {
944
  $html .= 'document.getElementById("gyroscope").addEventListener("click", function(e) {';
945
  $html .= '
755
 
756
  //===Custom Control===//
757
  if (isset($custom_control)) {
758
+ if ( $custom_control['panZoomInSwitch'] == "on" || $custom_control['panZoomOutSwitch'] == "on" || $custom_control['gyroscopeSwitch'] == "on" || $custom_control['backToHomeSwitch'] == "on") {
759
 
760
  $html .= '<div id="zoom-in-out-controls">';
761
 
762
+ if ($custom_control['backToHomeSwitch'] == "on") {
763
+ $html .= '<div class="ctrl" id="backToHome"><i class="'.$custom_control['backToHomeIcon'].'" style="color:'.$custom_control['backToHomeColor'].';"></i></div>';
764
+ }
765
+
766
  if ($custom_control['panZoomInSwitch'] == "on") {
767
  $html .= '<div class="ctrl" id="zoom-in"><i class="'.$custom_control['panZoomInIcon'].'" style="color:'.$custom_control['panZoomInColor'].';"></i></div>';
768
  }
944
  $html .= '});';
945
  }
946
 
947
+ if ($custom_control['backToHomeSwitch'] == "on") {
948
+ $html .= 'document.getElementById("backToHome").addEventListener("click", function(e) {';
949
+ $html .= 'panoshow'.$id.'.loadScene("'.$default_scene.'");';
950
+ $html .= '});';
951
+ }
952
+
953
  if ($custom_control['gyroscopeSwitch'] == "on") {
954
  $html .= 'document.getElementById("gyroscope").addEventListener("click", function(e) {';
955
  $html .= '
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: 4.9.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
@@ -285,7 +285,7 @@ function wpvr_block_render( $attributes ) {
285
  if ($control) {
286
  if (isset($postdata['customcontrol'])) {
287
  $custom_control = $postdata['customcontrol'];
288
- if ($custom_control['panupSwitch'] == "on" || $custom_control['panDownSwitch'] == "on" || $custom_control['panLeftSwitch'] == "on" || $custom_control['panRightSwitch'] == "on" || $custom_control['panZoomInSwitch'] == "on" || $custom_control['panZoomOutSwitch'] == "on" || $custom_control['panFullscreenSwitch'] == "on" || $custom_control['gyroscopeSwitch'] == "on") {
289
  $control = false;
290
  }
291
  }
@@ -716,10 +716,14 @@ function wpvr_block_render( $attributes ) {
716
 
717
  //===Custom Control===//
718
  if (isset($custom_control)) {
719
- if ( $custom_control['panZoomInSwitch'] == "on" || $custom_control['panZoomOutSwitch'] == "on" || $custom_control['gyroscopeSwitch'] == "on") {
720
 
721
  $html .= '<div id="zoom-in-out-controls">';
722
 
 
 
 
 
723
  if ($custom_control['panZoomInSwitch'] == "on") {
724
  $html .= '<div class="ctrl" id="zoom-in"><i class="'.$custom_control['panZoomInIcon'].'" style="color:'.$custom_control['panZoomInColor'].';"></i></div>';
725
  }
@@ -731,6 +735,7 @@ function wpvr_block_render( $attributes ) {
731
  if ($custom_control['gyroscopeSwitch'] == "on") {
732
  $html .= '<div class="ctrl" id="gyroscope"><i class="'.$custom_control['gyroscopeIcon'].'" style="color:'.$custom_control['gyroscopeColor'].';"></i></div>';
733
  }
 
734
  $html .= '</div>';
735
  }
736
  //===zoom in out Control===//
@@ -901,6 +906,12 @@ function wpvr_block_render( $attributes ) {
901
  $html .= '});';
902
  }
903
 
 
 
 
 
 
 
904
  if ($custom_control['gyroscopeSwitch'] == "on") {
905
  $html .= 'document.getElementById("gyroscope").addEventListener("click", function(e) {';
906
  $html .= '
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: 5.0.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
285
  if ($control) {
286
  if (isset($postdata['customcontrol'])) {
287
  $custom_control = $postdata['customcontrol'];
288
+ if ($custom_control['panupSwitch'] == "on" || $custom_control['panDownSwitch'] == "on" || $custom_control['panLeftSwitch'] == "on" || $custom_control['panRightSwitch'] == "on" || $custom_control['panZoomInSwitch'] == "on" || $custom_control['panZoomOutSwitch'] == "on" || $custom_control['panFullscreenSwitch'] == "on" || $custom_control['gyroscopeSwitch'] == "on" || $custom_control['backToHomeSwitch'] == "on") {
289
  $control = false;
290
  }
291
  }
716
 
717
  //===Custom Control===//
718
  if (isset($custom_control)) {
719
+ if ( $custom_control['panZoomInSwitch'] == "on" || $custom_control['panZoomOutSwitch'] == "on" || $custom_control['gyroscopeSwitch'] == "on" || $custom_control['backToHomeSwitch'] == "on") {
720
 
721
  $html .= '<div id="zoom-in-out-controls">';
722
 
723
+ if ($custom_control['backToHomeSwitch'] == "on") {
724
+ $html .= '<div class="ctrl" id="backToHome"><i class="'.$custom_control['backToHomeIcon'].'" style="color:'.$custom_control['backToHomeColor'].';"></i></div>';
725
+ }
726
+
727
  if ($custom_control['panZoomInSwitch'] == "on") {
728
  $html .= '<div class="ctrl" id="zoom-in"><i class="'.$custom_control['panZoomInIcon'].'" style="color:'.$custom_control['panZoomInColor'].';"></i></div>';
729
  }
735
  if ($custom_control['gyroscopeSwitch'] == "on") {
736
  $html .= '<div class="ctrl" id="gyroscope"><i class="'.$custom_control['gyroscopeIcon'].'" style="color:'.$custom_control['gyroscopeColor'].';"></i></div>';
737
  }
738
+
739
  $html .= '</div>';
740
  }
741
  //===zoom in out Control===//
906
  $html .= '});';
907
  }
908
 
909
+ if ($custom_control['backToHomeSwitch'] == "on") {
910
+ $html .= 'document.getElementById("backToHome").addEventListener("click", function(e) {';
911
+ $html .= 'panoshow'.$id.'.loadScene("'.$default_scene.'");';
912
+ $html .= '});';
913
+ }
914
+
915
  if ($custom_control['gyroscopeSwitch'] == "on") {
916
  $html .= 'document.getElementById("gyroscope").addEventListener("click", function(e) {';
917
  $html .= '