Version Description
- Gyroscope Support fix for custom control
=
Download this release
Release Info
Developer | rextheme |
Plugin | WP VR – 360 Panorama and virtual tour creator for WordPress |
Version | 4.6.0 |
Comparing to | |
See all releases |
Code changes from version 4.5.0 to 4.6.0
- README.txt +6 -3
- public/class-wpvr-public.php +17 -0
- wpvr.php +22 -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.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -171,8 +171,8 @@ That’s it. Now you can go to the browser and open the page with the virtual to
|
|
171 |
|
172 |
You will find the gyroscope icon at the top left side.
|
173 |
|
174 |
-
= 9. I Use
|
175 |
-
If you use
|
176 |
|
177 |
Simply add "/plugins/wpvr" to exclusion field (or use the location where you store plugins)
|
178 |
|
@@ -350,5 +350,8 @@ Simply add "/plugins/wpvr" to exclusion field (or use the location where you sto
|
|
350 |
* Library updated
|
351 |
* Fixed default icon issue on android.
|
352 |
|
|
|
|
|
|
|
353 |
== Upgrade Notice ==
|
354 |
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: 4.6.0
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
171 |
|
172 |
You will find the gyroscope icon at the top left side.
|
173 |
|
174 |
+
= 9. I Use Autoptimize plugin =
|
175 |
+
If you use Autoptimize, then you need to exclude our plugin from their minification function.
|
176 |
|
177 |
Simply add "/plugins/wpvr" to exclusion field (or use the location where you store plugins)
|
178 |
|
350 |
* Library updated
|
351 |
* Fixed default icon issue on android.
|
352 |
|
353 |
+
= 4.6.0 =
|
354 |
+
* Gyroscope Support fix for custom control
|
355 |
+
|
356 |
== Upgrade Notice ==
|
357 |
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
@@ -757,6 +757,9 @@ class Wpvr_Public {
|
|
757 |
if ($custom_control['panZoomOutSwitch'] == "on") {
|
758 |
$html .= '<div class="ctrl" id="zoom-out"><i class="'.$custom_control['panZoomOutIcon'].'" style="color:'.$custom_control['panZoomOutColor'].';"></i></div>';
|
759 |
}
|
|
|
|
|
|
|
760 |
$html .= '</div>';
|
761 |
}
|
762 |
//===zoom in out Control===//
|
@@ -920,6 +923,20 @@ class Wpvr_Public {
|
|
920 |
$html .= 'panoshow'.$id.'.toggleFullscreen();';
|
921 |
$html .= '});';
|
922 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
923 |
}
|
924 |
|
925 |
$angle_up = '<i class="fa fa-angle-up"></i>';
|
757 |
if ($custom_control['panZoomOutSwitch'] == "on") {
|
758 |
$html .= '<div class="ctrl" id="zoom-out"><i class="'.$custom_control['panZoomOutIcon'].'" style="color:'.$custom_control['panZoomOutColor'].';"></i></div>';
|
759 |
}
|
760 |
+
if ($custom_control['gyroscopeSwitch'] == "on") {
|
761 |
+
$html .= '<div class="ctrl" id="gyroscope"><i class="'.$custom_control['gyroscopeIcon'].'" style="color:'.$custom_control['gyroscopeColor'].';"></i></div>';
|
762 |
+
}
|
763 |
$html .= '</div>';
|
764 |
}
|
765 |
//===zoom in out Control===//
|
923 |
$html .= 'panoshow'.$id.'.toggleFullscreen();';
|
924 |
$html .= '});';
|
925 |
}
|
926 |
+
|
927 |
+
if ($custom_control['gyroscopeSwitch'] == "on") {
|
928 |
+
$html .= 'document.getElementById("gyroscope").addEventListener("click", function(e) {';
|
929 |
+
$html .= '
|
930 |
+
if (panoshow'.$id.'.isOrientationActive()) {
|
931 |
+
panoshow'.$id.'.stopOrientation();
|
932 |
+
}
|
933 |
+
else {
|
934 |
+
panoshow'.$id.'.startOrientation();
|
935 |
+
}
|
936 |
+
|
937 |
+
';
|
938 |
+
$html .= '});';
|
939 |
+
}
|
940 |
}
|
941 |
|
942 |
$angle_up = '<i class="fa fa-angle-up"></i>';
|
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.
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
@@ -711,7 +711,7 @@ function wpvr_block_render( $attributes ) {
|
|
711 |
|
712 |
//===Custom Control===//
|
713 |
if (isset($custom_control)) {
|
714 |
-
if ( $custom_control['panZoomInSwitch'] == "on" || $custom_control['panZoomOutSwitch'] == "on" ) {
|
715 |
|
716 |
$html .= '<div id="zoom-in-out-controls">';
|
717 |
|
@@ -722,11 +722,15 @@ function wpvr_block_render( $attributes ) {
|
|
722 |
if ($custom_control['panZoomOutSwitch'] == "on") {
|
723 |
$html .= '<div class="ctrl" id="zoom-out"><i class="'.$custom_control['panZoomOutIcon'].'" style="color:'.$custom_control['panZoomOutColor'].';"></i></div>';
|
724 |
}
|
|
|
|
|
|
|
|
|
725 |
$html .= '</div>';
|
726 |
}
|
727 |
//===zoom in out Control===//
|
728 |
|
729 |
-
if ($custom_control['panupSwitch'] == "on" || $custom_control['panDownSwitch'] == "on" || $custom_control['panLeftSwitch'] == "on" || $custom_control['panRightSwitch'] == "on" || $custom_control['panFullscreenSwitch'] == "on") {
|
730 |
|
731 |
//===Custom Control===//
|
732 |
$html .= '<div id="controls">';
|
@@ -884,6 +888,21 @@ function wpvr_block_render( $attributes ) {
|
|
884 |
$html .= 'panoshow'.$id.'.toggleFullscreen();';
|
885 |
$html .= '});';
|
886 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
887 |
}
|
888 |
|
889 |
$angle_up = '<i class="fa fa-angle-up"></i>';
|
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.6.0
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
711 |
|
712 |
//===Custom Control===//
|
713 |
if (isset($custom_control)) {
|
714 |
+
if ( $custom_control['panZoomInSwitch'] == "on" || $custom_control['panZoomOutSwitch'] == "on" || $custom_control['gyroscopeSwitch'] == "on") {
|
715 |
|
716 |
$html .= '<div id="zoom-in-out-controls">';
|
717 |
|
722 |
if ($custom_control['panZoomOutSwitch'] == "on") {
|
723 |
$html .= '<div class="ctrl" id="zoom-out"><i class="'.$custom_control['panZoomOutIcon'].'" style="color:'.$custom_control['panZoomOutColor'].';"></i></div>';
|
724 |
}
|
725 |
+
|
726 |
+
if ($custom_control['gyroscopeSwitch'] == "on") {
|
727 |
+
$html .= '<div class="ctrl" id="gyroscope"><i class="'.$custom_control['gyroscopeIcon'].'" style="color:'.$custom_control['gyroscopeColor'].';"></i></div>';
|
728 |
+
}
|
729 |
$html .= '</div>';
|
730 |
}
|
731 |
//===zoom in out Control===//
|
732 |
|
733 |
+
if ($custom_control['panupSwitch'] == "on" || $custom_control['panDownSwitch'] == "on" || $custom_control['panLeftSwitch'] == "on" || $custom_control['panRightSwitch'] == "on" || $custom_control['panFullscreenSwitch'] == "on" || $custom_control['gyroscopeSwitch'] == "on") {
|
734 |
|
735 |
//===Custom Control===//
|
736 |
$html .= '<div id="controls">';
|
888 |
$html .= 'panoshow'.$id.'.toggleFullscreen();';
|
889 |
$html .= '});';
|
890 |
}
|
891 |
+
|
892 |
+
if ($custom_control['gyroscopeSwitch'] == "on") {
|
893 |
+
$html .= 'document.getElementById("gyroscope").addEventListener("click", function(e) {';
|
894 |
+
$html .= '
|
895 |
+
if (panoshow'.$id.'.isOrientationActive()) {
|
896 |
+
panoshow'.$id.'.stopOrientation();
|
897 |
+
}
|
898 |
+
else {
|
899 |
+
panoshow'.$id.'.startOrientation();
|
900 |
+
}
|
901 |
+
|
902 |
+
';
|
903 |
+
$html .= '});';
|
904 |
+
}
|
905 |
+
|
906 |
}
|
907 |
|
908 |
$angle_up = '<i class="fa fa-angle-up"></i>';
|