Version Description
(27-04-2020) = * Device Orientation control fix
=
Download this release
Release Info
Developer | rextheme |
Plugin | WP VR – 360 Panorama and virtual tour creator for WordPress |
Version | 5.4.0 |
Comparing to | |
See all releases |
Code changes from version 5.3.0 to 5.4.0
- README.txt +4 -1
- admin/class-wpvr-ajax.php +9 -1
- public/class-wpvr-public.php +3 -1
- wpvr.php +4 -2
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.4
|
7 |
-
Stable tag: 5.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -377,5 +377,8 @@ Simply add "/plugins/wpvr" to exclusion field (or use the location where you sto
|
|
377 |
* Keyboard zoom control added
|
378 |
* Logo style modified
|
379 |
|
|
|
|
|
|
|
380 |
== Upgrade Notice ==
|
381 |
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.4
|
7 |
+
Stable tag: 5.4.0
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
377 |
* Keyboard zoom control added
|
378 |
* Logo style modified
|
379 |
|
380 |
+
= 5.4.0 (27-04-2020) =
|
381 |
+
* Device Orientation control fix
|
382 |
+
|
383 |
== Upgrade Notice ==
|
384 |
Please do update the WP VR to the latest version. Each update makes it sure your plugin is supporting all tour features.
|
admin/class-wpvr-ajax.php
CHANGED
@@ -813,12 +813,20 @@ class Wpvr_Ajax {
|
|
813 |
}
|
814 |
|
815 |
$gyro = sanitize_text_field($_POST['gyro']);
|
|
|
816 |
|
817 |
if ($gyro == 'on') {
|
818 |
$gyro = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
819 |
}
|
820 |
else {
|
821 |
$gyro = false;
|
|
|
822 |
}
|
823 |
|
824 |
$compass = sanitize_text_field($_POST['compass']);
|
@@ -1163,7 +1171,7 @@ class Wpvr_Ajax {
|
|
1163 |
}
|
1164 |
|
1165 |
$pano_array = array();
|
1166 |
-
$pano_array = array(__( "panoid" )=>$panoid,__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "cpLogoSwitch" )=>$cpLogoSwitch,__( "cpLogoImg" )=>$cpLogoImg,__( "cpLogoContent" )=>$cpLogoContent,__( "vrgallery" )=>$vrgallery,__( "vrgallery_title" )=>$vrgallery_title,__( "customcontrol" )=>$custom_control,__( "gyro" )=>$gyro,__( "compass" )=>$compass,__( "mouseZoom" )=>$mouseZoom,__( "draggable" )=>$draggable,__( "diskeyboard" )=>$diskeyboard,__( "keyboardzoom" )=>$keyboardzoom,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "panodata" )=>$panodata);
|
1167 |
|
1168 |
if ($rotation == 'off') {
|
1169 |
unset($pano_array['autoRotate']);
|
813 |
}
|
814 |
|
815 |
$gyro = sanitize_text_field($_POST['gyro']);
|
816 |
+
$deviceorientationcontrol = sanitize_text_field($_POST['deviceorientationcontrol']);
|
817 |
|
818 |
if ($gyro == 'on') {
|
819 |
$gyro = true;
|
820 |
+
if ($deviceorientationcontrol == 'on') {
|
821 |
+
$deviceorientationcontrol = true;
|
822 |
+
}
|
823 |
+
else {
|
824 |
+
$deviceorientationcontrol = false;
|
825 |
+
}
|
826 |
}
|
827 |
else {
|
828 |
$gyro = false;
|
829 |
+
$deviceorientationcontrol = false;
|
830 |
}
|
831 |
|
832 |
$compass = sanitize_text_field($_POST['compass']);
|
1171 |
}
|
1172 |
|
1173 |
$pano_array = array();
|
1174 |
+
$pano_array = array(__( "panoid" )=>$panoid,__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "cpLogoSwitch" )=>$cpLogoSwitch,__( "cpLogoImg" )=>$cpLogoImg,__( "cpLogoContent" )=>$cpLogoContent,__( "vrgallery" )=>$vrgallery,__( "vrgallery_title" )=>$vrgallery_title,__( "customcontrol" )=>$custom_control,__( "gyro" )=>$gyro,__( "deviceorientationcontrol" )=>$deviceorientationcontrol,__( "compass" )=>$compass,__( "mouseZoom" )=>$mouseZoom,__( "draggable" )=>$draggable,__( "diskeyboard" )=>$diskeyboard,__( "keyboardzoom" )=>$keyboardzoom,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "panodata" )=>$panodata);
|
1175 |
|
1176 |
if ($rotation == 'off') {
|
1177 |
unset($pano_array['autoRotate']);
|
public/class-wpvr-public.php
CHANGED
@@ -334,7 +334,9 @@ class Wpvr_Public {
|
|
334 |
$gyro_orientation = false;
|
335 |
if (isset($postdata['gyro'])) {
|
336 |
$gyro = $postdata['gyro'];
|
337 |
-
$
|
|
|
|
|
338 |
}
|
339 |
|
340 |
$compass = false;
|
334 |
$gyro_orientation = false;
|
335 |
if (isset($postdata['gyro'])) {
|
336 |
$gyro = $postdata['gyro'];
|
337 |
+
if (isset($postdata['deviceorientationcontrol'])) {
|
338 |
+
$gyro_orientation = $postdata['deviceorientationcontrol'];
|
339 |
+
}
|
340 |
}
|
341 |
|
342 |
$compass = false;
|
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: 5.
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
@@ -305,7 +305,9 @@ function wpvr_block_render( $attributes ) {
|
|
305 |
$gyro_orientation = false;
|
306 |
if (isset($postdata['gyro'])) {
|
307 |
$gyro = $postdata['gyro'];
|
308 |
-
$
|
|
|
|
|
309 |
}
|
310 |
|
311 |
$compass = false;
|
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.4.0
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
305 |
$gyro_orientation = false;
|
306 |
if (isset($postdata['gyro'])) {
|
307 |
$gyro = $postdata['gyro'];
|
308 |
+
if (isset($postdata['deviceorientationcontrol'])) {
|
309 |
+
$gyro_orientation = $postdata['deviceorientationcontrol'];
|
310 |
+
}
|
311 |
}
|
312 |
|
313 |
$compass = false;
|