Version Description
- Gyroscope support on premium version.
- Appsero error fix.
- Gutenberg block column layout fix.
=
Download this release
Release Info
Developer | rextheme |
Plugin | WP VR – 360 Panorama and virtual tour creator for WordPress |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.4.0 to 2.5.0
- README.txt +9 -2
- admin/class-wpvr-ajax.php +10 -1
- admin/partials/wpvr_documentation.php +1 -0
- public/class-wpvr-public.php +21 -3
- public/css/wpvr-public.css +4 -0
- public/js/wpvr-public.js +3 -1
- public/lib/pannellum/src/js/pannellum.js +1 -0
- wpvr.php +26 -7
- insights.php → wpvrinsights.php +1 -1
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.2
|
7 |
-
Stable tag: 2.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -16,6 +16,8 @@ With WPVR, set up a virtual tour for site visitors where they can navigate a 360
|
|
16 |
|
17 |
> Get your site visitors hooked by giving them a tour that makes them realize how amazing your place is. Check **[Documentation](https://rextheme.com/docs/wp-vr/)**.
|
18 |
|
|
|
|
|
19 |
> Complete Gutenberg block support. Check how to use **[WPVR Block](https://rextheme.com/docs/wp-vr/gutenberg-block/)**.
|
20 |
|
21 |
> Elementor Widget Support. Check how to use **[Elementor WPVR Widget](https://rextheme.com/docs/wp-vr/elementor-widget/)**.
|
@@ -84,11 +86,11 @@ For Elementor page builder, you will find a widget called “WPVR” under the g
|
|
84 |
* Scene grab control and custom boundary for each scene
|
85 |
* Scene title and author tag support
|
86 |
* Hotspot based scene face
|
|
|
87 |
* Personalized support on both support forum and our support e-mail.
|
88 |
|
89 |
**Upcoming Features**
|
90 |
- Panoramic image type support: Cubemap, Multiresolution
|
91 |
-
- Google cardboard support
|
92 |
- Background music
|
93 |
- Advanced on-screen control button.
|
94 |
|
@@ -177,5 +179,10 @@ To solve this issue, go to your WordPress Dashboard > Settings > General. Here m
|
|
177 |
* Plugin conflict fix.
|
178 |
* Rextheme link removed from premium version.
|
179 |
|
|
|
|
|
|
|
|
|
|
|
180 |
== Upgrade Notice ==
|
181 |
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.2
|
7 |
+
Stable tag: 2.5.0
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
16 |
|
17 |
> Get your site visitors hooked by giving them a tour that makes them realize how amazing your place is. Check **[Documentation](https://rextheme.com/docs/wp-vr/)**.
|
18 |
|
19 |
+
> Gyroscope support on Premium version.
|
20 |
+
|
21 |
> Complete Gutenberg block support. Check how to use **[WPVR Block](https://rextheme.com/docs/wp-vr/gutenberg-block/)**.
|
22 |
|
23 |
> Elementor Widget Support. Check how to use **[Elementor WPVR Widget](https://rextheme.com/docs/wp-vr/elementor-widget/)**.
|
86 |
* Scene grab control and custom boundary for each scene
|
87 |
* Scene title and author tag support
|
88 |
* Hotspot based scene face
|
89 |
+
* Gyroscope support
|
90 |
* Personalized support on both support forum and our support e-mail.
|
91 |
|
92 |
**Upcoming Features**
|
93 |
- Panoramic image type support: Cubemap, Multiresolution
|
|
|
94 |
- Background music
|
95 |
- Advanced on-screen control button.
|
96 |
|
179 |
* Plugin conflict fix.
|
180 |
* Rextheme link removed from premium version.
|
181 |
|
182 |
+
= 2.5.0 =
|
183 |
+
* Gyroscope support on premium version.
|
184 |
+
* Appsero error fix.
|
185 |
+
* Gutenberg block column layout fix.
|
186 |
+
|
187 |
== Upgrade Notice ==
|
188 |
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
@@ -562,6 +562,15 @@ class Wpvr_Ajax {
|
|
562 |
$control = false;
|
563 |
}
|
564 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
565 |
$compass = sanitize_text_field($_POST['compass']);
|
566 |
if ($compass == 'on') {
|
567 |
$compass = true;
|
@@ -787,7 +796,7 @@ class Wpvr_Ajax {
|
|
787 |
}
|
788 |
|
789 |
$pano_array = array();
|
790 |
-
$pano_array = array(__( "panoid" )=>$panoid,__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "compass" )=>$compass,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "panodata" )=>$panodata);
|
791 |
|
792 |
if ($rotation == 'off') {
|
793 |
unset($pano_array['autoRotate']);
|
562 |
$control = false;
|
563 |
}
|
564 |
|
565 |
+
$gyro = sanitize_text_field($_POST['gyro']);
|
566 |
+
|
567 |
+
if ($gyro == 'on') {
|
568 |
+
$gyro = true;
|
569 |
+
}
|
570 |
+
else {
|
571 |
+
$gyro = false;
|
572 |
+
}
|
573 |
+
|
574 |
$compass = sanitize_text_field($_POST['compass']);
|
575 |
if ($compass == 'on') {
|
576 |
$compass = true;
|
796 |
}
|
797 |
|
798 |
$pano_array = array();
|
799 |
+
$pano_array = array(__( "panoid" )=>$panoid,__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "gyro" )=>$gyro,__( "compass" )=>$compass,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "panodata" )=>$panodata);
|
800 |
|
801 |
if ($rotation == 'off') {
|
802 |
unset($pano_array['autoRotate']);
|
admin/partials/wpvr_documentation.php
CHANGED
@@ -150,6 +150,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
150 |
<div class="item"><?php _e('Scene grab control and custom boundary for each scene','wpvr'); ?></div>
|
151 |
<div class="item"><?php _e('Scene title and author tag support','wpvr'); ?></div>
|
152 |
<div class="item"><?php _e('Hotspot based scene face support','wpvr'); ?></div>
|
|
|
153 |
<div class="item"><?php _e('Personalized support on both support forum and our support e-mail.','wpvr'); ?></div>
|
154 |
</div>
|
155 |
<a href="https://rextheme.com/wpvr/" target="_blank" class="waves-effect waves-light btn wpvr-btn"><?php _e('Get Premium Version','wpvr'); ?></a>
|
150 |
<div class="item"><?php _e('Scene grab control and custom boundary for each scene','wpvr'); ?></div>
|
151 |
<div class="item"><?php _e('Scene title and author tag support','wpvr'); ?></div>
|
152 |
<div class="item"><?php _e('Hotspot based scene face support','wpvr'); ?></div>
|
153 |
+
<div class="item"><?php _e('Gyroscope support','wpvr'); ?></div>
|
154 |
<div class="item"><?php _e('Personalized support on both support forum and our support e-mail.','wpvr'); ?></div>
|
155 |
</div>
|
156 |
<a href="https://rextheme.com/wpvr/" target="_blank" class="waves-effect waves-light btn wpvr-btn"><?php _e('Get Premium Version','wpvr'); ?></a>
|
public/class-wpvr-public.php
CHANGED
@@ -198,6 +198,11 @@ class Wpvr_Public {
|
|
198 |
$control = $postdata['showControls'];
|
199 |
}
|
200 |
|
|
|
|
|
|
|
|
|
|
|
201 |
$compass = false;
|
202 |
if (isset($postdata['compass'])) {
|
203 |
$compass = $postdata['compass'];
|
@@ -438,7 +443,7 @@ class Wpvr_Public {
|
|
438 |
$pano_id_array = array();
|
439 |
$pano_id_array = array(__( "panoid" )=>$panoid);
|
440 |
$pano_response = array();
|
441 |
-
$pano_response = array(__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "compass" )=>$compass,__( "preview" )=>$preview,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "default" )=>$default_data,__( "scenes" )=>$scene_data);
|
442 |
|
443 |
if (empty($autorotation)) {
|
444 |
unset($pano_response['autoRotate']);
|
@@ -472,7 +477,6 @@ class Wpvr_Public {
|
|
472 |
else {
|
473 |
$foreground_color = '#fff';
|
474 |
}
|
475 |
-
|
476 |
$html = '';
|
477 |
$html .= '<style>';
|
478 |
$html .= '#'.$panoid.' div.pnlm-hotspot-base.fas,
|
@@ -501,7 +505,21 @@ class Wpvr_Public {
|
|
501 |
100% {
|
502 |
box-shadow: 0 0 0 10px rgba('.$pulse_color[0].', 0);
|
503 |
}
|
504 |
-
}';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
$html .= '</style>';
|
506 |
$html .= '<div id="pano'.$id.'" class="pano-wrap" style=" text-align:center; width: '.$width.'; height: '.$height.'; margin: 0 auto;">';
|
507 |
$html .= '<i class="fa fa-times cross"></i>';
|
198 |
$control = $postdata['showControls'];
|
199 |
}
|
200 |
|
201 |
+
$gyro = false;
|
202 |
+
if (isset($postdata['gyro'])) {
|
203 |
+
$gyro = $postdata['gyro'];
|
204 |
+
}
|
205 |
+
|
206 |
$compass = false;
|
207 |
if (isset($postdata['compass'])) {
|
208 |
$compass = $postdata['compass'];
|
443 |
$pano_id_array = array();
|
444 |
$pano_id_array = array(__( "panoid" )=>$panoid);
|
445 |
$pano_response = array();
|
446 |
+
$pano_response = array(__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "orientationSupport" )=>'false',__( "compass" )=>$compass,__( "preview" )=>$preview,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "default" )=>$default_data,__( "scenes" )=>$scene_data);
|
447 |
|
448 |
if (empty($autorotation)) {
|
449 |
unset($pano_response['autoRotate']);
|
477 |
else {
|
478 |
$foreground_color = '#fff';
|
479 |
}
|
|
|
480 |
$html = '';
|
481 |
$html .= '<style>';
|
482 |
$html .= '#'.$panoid.' div.pnlm-hotspot-base.fas,
|
505 |
100% {
|
506 |
box-shadow: 0 0 0 10px rgba('.$pulse_color[0].', 0);
|
507 |
}
|
508 |
+
}';
|
509 |
+
$status = get_option( 'wpvr_edd_license_status' );
|
510 |
+
if( $status !== false && $status == 'valid' ) {
|
511 |
+
if (!$gyro) {
|
512 |
+
$html .= '#'.$panoid.' div.pnlm-orientation-button {
|
513 |
+
display: none;
|
514 |
+
}';
|
515 |
+
}
|
516 |
+
}
|
517 |
+
else {
|
518 |
+
$html .= '#'.$panoid.' div.pnlm-orientation-button {
|
519 |
+
display: none;
|
520 |
+
}';
|
521 |
+
}
|
522 |
+
|
523 |
$html .= '</style>';
|
524 |
$html .= '<div id="pano'.$id.'" class="pano-wrap" style=" text-align:center; width: '.$width.'; height: '.$height.'; margin: 0 auto;">';
|
525 |
$html .= '<i class="fa fa-times cross"></i>';
|
public/css/wpvr-public.css
CHANGED
@@ -12,6 +12,10 @@ div.pnlm-hotspot-base.far:before{
|
|
12 |
transform: translate(-50%, -50%);
|
13 |
}
|
14 |
|
|
|
|
|
|
|
|
|
15 |
.pnlm-container iframe {
|
16 |
max-width: inherit;
|
17 |
margin-bottom: 0;
|
12 |
transform: translate(-50%, -50%);
|
13 |
}
|
14 |
|
15 |
+
/*.pnlm-orientation-button {
|
16 |
+
display: none;
|
17 |
+
}*/
|
18 |
+
|
19 |
.pnlm-container iframe {
|
20 |
max-width: inherit;
|
21 |
margin-bottom: 0;
|
public/js/wpvr-public.js
CHANGED
@@ -62,7 +62,9 @@ jQuery(document).ready(function($){
|
|
62 |
$('iframe').attr('src', $('iframe').attr('src'));
|
63 |
});
|
64 |
});
|
65 |
-
|
|
|
|
|
66 |
|
67 |
|
68 |
|
62 |
$('iframe').attr('src', $('iframe').attr('src'));
|
63 |
});
|
64 |
});
|
65 |
+
// jQuery(document).ready(function($){
|
66 |
+
// $('.pnlm-orientation-button').hide();
|
67 |
+
// });
|
68 |
|
69 |
|
70 |
|
public/lib/pannellum/src/js/pannellum.js
CHANGED
@@ -243,6 +243,7 @@ controls.orientation.addEventListener('click', function(e) {
|
|
243 |
stopOrientation();
|
244 |
else
|
245 |
startOrientation();
|
|
|
246 |
});
|
247 |
controls.orientation.addEventListener('mousedown', function(e) {e.stopPropagation();});
|
248 |
controls.orientation.addEventListener('touchstart', function(e) {e.stopPropagation();});
|
243 |
stopOrientation();
|
244 |
else
|
245 |
startOrientation();
|
246 |
+
// stopOrientation();
|
247 |
});
|
248 |
controls.orientation.addEventListener('mousedown', function(e) {e.stopPropagation();});
|
249 |
controls.orientation.addEventListener('touchstart', function(e) {e.stopPropagation();});
|
wpvr.php
CHANGED
@@ -14,9 +14,9 @@
|
|
14 |
*
|
15 |
* @wordpress-plugin
|
16 |
* Plugin Name: WP VR
|
17 |
-
* Plugin URI: https://rextheme.com/
|
18 |
* Description: WP VR - 360 Panorama and virtual tour creator for WordPress is a customized panaroma & virtual builder tool for WordPress Website.
|
19 |
-
* Version: 2.
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
@@ -111,10 +111,10 @@ add_action( 'activated_plugin', 'wpvr_activation_redirect' );
|
|
111 |
*/
|
112 |
function appsero_init_tracker_wpvr() {
|
113 |
|
114 |
-
if ( ! class_exists( 'AppSero\
|
115 |
-
require_once __DIR__ . '/
|
116 |
}
|
117 |
-
$insights = new AppSero\
|
118 |
$insights->optin();
|
119 |
$insights->init_plugin();
|
120 |
|
@@ -131,7 +131,7 @@ function wpvr_block() {
|
|
131 |
wp_enqueue_style(
|
132 |
'gutyblocks/guty-block',
|
133 |
plugins_url( 'src/view.css', __FILE__ ),
|
134 |
-
array(
|
135 |
);
|
136 |
|
137 |
if (function_exists('register_block_type')) {
|
@@ -231,6 +231,11 @@ function wpvr_block_render( $attributes ) {
|
|
231 |
$control = $postdata['showControls'];
|
232 |
}
|
233 |
|
|
|
|
|
|
|
|
|
|
|
234 |
$compass = false;
|
235 |
if (isset($postdata['compass'])) {
|
236 |
$compass = $postdata['compass'];
|
@@ -536,7 +541,21 @@ function wpvr_block_render( $attributes ) {
|
|
536 |
100% {
|
537 |
box-shadow: 0 0 0 10px rgba('.$pulse_color[0].', 0);
|
538 |
}
|
539 |
-
}';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
540 |
$html .= '</style>';
|
541 |
|
542 |
$html .= '<div id="pano'.$id.'" class="pano-wrap" style=" text-align:center; width: '.$width.'px; height: '.$height.'px; margin: 0 auto;">';
|
14 |
*
|
15 |
* @wordpress-plugin
|
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: 2.5.0
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
111 |
*/
|
112 |
function appsero_init_tracker_wpvr() {
|
113 |
|
114 |
+
if ( ! class_exists( 'AppSero\WPVRInsights' ) ) {
|
115 |
+
require_once __DIR__ . '/wpvrinsights.php';
|
116 |
}
|
117 |
+
$insights = new AppSero\WPVRInsights( 'cab9761e-b067-4824-9c71-042df5d58598', 'WP VR', __FILE__);
|
118 |
$insights->optin();
|
119 |
$insights->init_plugin();
|
120 |
|
131 |
wp_enqueue_style(
|
132 |
'gutyblocks/guty-block',
|
133 |
plugins_url( 'src/view.css', __FILE__ ),
|
134 |
+
array()
|
135 |
);
|
136 |
|
137 |
if (function_exists('register_block_type')) {
|
231 |
$control = $postdata['showControls'];
|
232 |
}
|
233 |
|
234 |
+
$gyro = false;
|
235 |
+
if (isset($postdata['gyro'])) {
|
236 |
+
$gyro = $postdata['gyro'];
|
237 |
+
}
|
238 |
+
|
239 |
$compass = false;
|
240 |
if (isset($postdata['compass'])) {
|
241 |
$compass = $postdata['compass'];
|
541 |
100% {
|
542 |
box-shadow: 0 0 0 10px rgba('.$pulse_color[0].', 0);
|
543 |
}
|
544 |
+
}';
|
545 |
+
$status = get_option( 'wpvr_edd_license_status' );
|
546 |
+
if( $status !== false && $status == 'valid' ) {
|
547 |
+
if (!$gyro) {
|
548 |
+
$html .= '#'.$panoid.' div.pnlm-orientation-button {
|
549 |
+
display: none;
|
550 |
+
}';
|
551 |
+
}
|
552 |
+
}
|
553 |
+
else {
|
554 |
+
$html .= '#'.$panoid.' div.pnlm-orientation-button {
|
555 |
+
display: none;
|
556 |
+
}';
|
557 |
+
}
|
558 |
+
|
559 |
$html .= '</style>';
|
560 |
|
561 |
$html .= '<div id="pano'.$id.'" class="pano-wrap" style=" text-align:center; width: '.$width.'px; height: '.$height.'px; margin: 0 auto;">';
|
insights.php → wpvrinsights.php
RENAMED
@@ -8,7 +8,7 @@ namespace AppSero;
|
|
8 |
* No personal information is being tracked by this class, only general settings, active plugins, environment details
|
9 |
* and admin email.
|
10 |
*/
|
11 |
-
class
|
12 |
|
13 |
/**
|
14 |
* The client version
|
8 |
* No personal information is being tracked by this class, only general settings, active plugins, environment details
|
9 |
* and admin email.
|
10 |
*/
|
11 |
+
class WPVRInsights {
|
12 |
|
13 |
/**
|
14 |
* The client version
|