Version Description
(02-04-2020) = * Author URL field added
=
Download this release
Release Info
Developer | rextheme |
Plugin | WP VR – 360 Panorama and virtual tour creator for WordPress |
Version | 5.2.0 |
Comparing to | |
See all releases |
Code changes from version 5.1.0 to 5.2.0
- README.txt +5 -2
- public/class-wpvr-public.php +10 -2
- wpvr.php +11 -2
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: rextheme, coderexco
|
|
3 |
Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-for-wordpress/
|
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.
|
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
|
@@ -370,5 +370,8 @@ Simply add "/plugins/wpvr" to exclusion field (or use the location where you sto
|
|
370 |
= 5.1.0 (26-03-2020) =
|
371 |
* Auto device based gyro enable added
|
372 |
|
|
|
|
|
|
|
373 |
== Upgrade Notice ==
|
374 |
Please do update the WP VR to the latest version. Each update makes it sure your plugin is supporting all tour features.
|
3 |
Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-for-wordpress/
|
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.2.0
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
370 |
= 5.1.0 (26-03-2020) =
|
371 |
* Auto device based gyro enable added
|
372 |
|
373 |
+
= 5.2.0 (02-04-2020) =
|
374 |
+
* Author URL field added
|
375 |
+
|
376 |
== Upgrade Notice ==
|
377 |
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
@@ -314,7 +314,7 @@ class Wpvr_Public {
|
|
314 |
if ($control) {
|
315 |
if (isset($postdata['customcontrol'])) {
|
316 |
$custom_control = $postdata['customcontrol'];
|
317 |
-
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") {
|
318 |
$control = false;
|
319 |
}
|
320 |
}
|
@@ -414,6 +414,11 @@ class Wpvr_Public {
|
|
414 |
$scene_author = sanitize_text_field($panoscenes["scene-author"]);
|
415 |
}
|
416 |
|
|
|
|
|
|
|
|
|
|
|
417 |
$scene_vaov = 180;
|
418 |
if (isset($panoscenes["scene-vaov"])) {
|
419 |
$scene_vaov = (float)$panoscenes["scene-vaov"];
|
@@ -548,7 +553,7 @@ class Wpvr_Public {
|
|
548 |
}
|
549 |
|
550 |
$scene_info = array();
|
551 |
-
$scene_info = array("type"=>$panoscenes["scene-type"],"panorama"=>$panoscenes["scene-attachment-url"],"pitch"=>$default_scene_pitch,"maxPitch"=>$scene_max_pitch,"minPitch"=>$scene_min_pitch,"maxYaw"=>$scene_max_yaw,"minYaw"=>$scene_min_yaw,"yaw"=>$default_scene_yaw,"hfov"=>$default_zoom,"maxHfov"=>$max_zoom,"minHfov"=>$min_zoom,"title"=>$scene_ititle,"author"=>$scene_author, "vaov"=>$scene_vaov, "haov"=>$scene_haov, "vOffset"=>$scene_vertical_offset, "hotSpots"=>$hotspots);
|
552 |
|
553 |
if (isset($panoscenes["ptyscene"])) {
|
554 |
if ($panoscenes["ptyscene"] == "off") {
|
@@ -563,6 +568,9 @@ class Wpvr_Public {
|
|
563 |
if (empty($panoscenes["scene-author"])) {
|
564 |
unset($scene_info['author']);
|
565 |
}
|
|
|
|
|
|
|
566 |
|
567 |
if (empty($scene_vaov)) {
|
568 |
unset($scene_info['vaov']);
|
314 |
if ($control) {
|
315 |
if (isset($postdata['customcontrol'])) {
|
316 |
$custom_control = $postdata['customcontrol'];
|
317 |
+
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") {
|
318 |
$control = false;
|
319 |
}
|
320 |
}
|
414 |
$scene_author = sanitize_text_field($panoscenes["scene-author"]);
|
415 |
}
|
416 |
|
417 |
+
$scene_author_url = '';
|
418 |
+
if (isset($panoscenes["scene-author-url"])) {
|
419 |
+
$scene_author_url = sanitize_text_field($panoscenes["scene-author-url"]);
|
420 |
+
}
|
421 |
+
|
422 |
$scene_vaov = 180;
|
423 |
if (isset($panoscenes["scene-vaov"])) {
|
424 |
$scene_vaov = (float)$panoscenes["scene-vaov"];
|
553 |
}
|
554 |
|
555 |
$scene_info = array();
|
556 |
+
$scene_info = array("type"=>$panoscenes["scene-type"],"panorama"=>$panoscenes["scene-attachment-url"],"pitch"=>$default_scene_pitch,"maxPitch"=>$scene_max_pitch,"minPitch"=>$scene_min_pitch,"maxYaw"=>$scene_max_yaw,"minYaw"=>$scene_min_yaw,"yaw"=>$default_scene_yaw,"hfov"=>$default_zoom,"maxHfov"=>$max_zoom,"minHfov"=>$min_zoom,"title"=>$scene_ititle,"author"=>$scene_author, "authorURL"=>$scene_author_url, "vaov"=>$scene_vaov, "haov"=>$scene_haov, "vOffset"=>$scene_vertical_offset, "hotSpots"=>$hotspots);
|
557 |
|
558 |
if (isset($panoscenes["ptyscene"])) {
|
559 |
if ($panoscenes["ptyscene"] == "off") {
|
568 |
if (empty($panoscenes["scene-author"])) {
|
569 |
unset($scene_info['author']);
|
570 |
}
|
571 |
+
if (empty($panoscenes["scene-author-url"])) {
|
572 |
+
unset($scene_info['authorURL']);
|
573 |
+
}
|
574 |
|
575 |
if (empty($scene_vaov)) {
|
576 |
unset($scene_info['vaov']);
|
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+
|
@@ -386,6 +386,11 @@ function wpvr_block_render( $attributes ) {
|
|
386 |
$scene_author = sanitize_text_field($panoscenes["scene-author"]);
|
387 |
}
|
388 |
|
|
|
|
|
|
|
|
|
|
|
389 |
$scene_vaov = 180;
|
390 |
if (isset($panoscenes["scene-vaov"])) {
|
391 |
$scene_vaov = (float)$panoscenes["scene-vaov"];
|
@@ -521,7 +526,7 @@ function wpvr_block_render( $attributes ) {
|
|
521 |
}
|
522 |
|
523 |
$scene_info = array();
|
524 |
-
$scene_info = array('type'=>$panoscenes['scene-type'],'panorama'=>$panoscenes['scene-attachment-url'],"pitch"=>$default_scene_pitch,"maxPitch"=>$scene_max_pitch,"minPitch"=>$scene_min_pitch,"maxYaw"=>$scene_max_yaw,"minYaw"=>$scene_min_yaw,"yaw"=>$default_scene_yaw,"hfov"=>$default_zoom,"maxHfov"=>$max_zoom,"minHfov"=>$min_zoom,"title"=>$scene_ititle,"author"=>$scene_author, "vaov"=>$scene_vaov, "haov"=>$scene_haov, "vOffset"=>$scene_vertical_offset, 'hotSpots'=>$hotspots);
|
525 |
|
526 |
if (isset($panoscenes["ptyscene"])) {
|
527 |
if ($panoscenes["ptyscene"] == "off") {
|
@@ -529,12 +534,16 @@ function wpvr_block_render( $attributes ) {
|
|
529 |
unset($scene_info['yaw']);
|
530 |
}
|
531 |
}
|
|
|
532 |
if (empty($panoscenes["scene-ititle"])) {
|
533 |
unset($scene_info['title']);
|
534 |
}
|
535 |
if (empty($panoscenes["scene-author"])) {
|
536 |
unset($scene_info['author']);
|
537 |
}
|
|
|
|
|
|
|
538 |
|
539 |
if (empty($scene_vaov)) {
|
540 |
unset($scene_info['vaov']);
|
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.2.0
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
386 |
$scene_author = sanitize_text_field($panoscenes["scene-author"]);
|
387 |
}
|
388 |
|
389 |
+
$scene_author_url = '';
|
390 |
+
if (isset($panoscenes["scene-author-url"])) {
|
391 |
+
$scene_author_url = sanitize_text_field($panoscenes["scene-author-url"]);
|
392 |
+
}
|
393 |
+
|
394 |
$scene_vaov = 180;
|
395 |
if (isset($panoscenes["scene-vaov"])) {
|
396 |
$scene_vaov = (float)$panoscenes["scene-vaov"];
|
526 |
}
|
527 |
|
528 |
$scene_info = array();
|
529 |
+
$scene_info = array('type'=>$panoscenes['scene-type'],'panorama'=>$panoscenes['scene-attachment-url'],"pitch"=>$default_scene_pitch,"maxPitch"=>$scene_max_pitch,"minPitch"=>$scene_min_pitch,"maxYaw"=>$scene_max_yaw,"minYaw"=>$scene_min_yaw,"yaw"=>$default_scene_yaw,"hfov"=>$default_zoom,"maxHfov"=>$max_zoom,"minHfov"=>$min_zoom,"title"=>$scene_ititle,"author"=>$scene_author, "authorURL"=>$scene_author_url, "vaov"=>$scene_vaov, "haov"=>$scene_haov, "vOffset"=>$scene_vertical_offset, 'hotSpots'=>$hotspots);
|
530 |
|
531 |
if (isset($panoscenes["ptyscene"])) {
|
532 |
if ($panoscenes["ptyscene"] == "off") {
|
534 |
unset($scene_info['yaw']);
|
535 |
}
|
536 |
}
|
537 |
+
|
538 |
if (empty($panoscenes["scene-ititle"])) {
|
539 |
unset($scene_info['title']);
|
540 |
}
|
541 |
if (empty($panoscenes["scene-author"])) {
|
542 |
unset($scene_info['author']);
|
543 |
}
|
544 |
+
if (empty($panoscenes["scene-author-url"])) {
|
545 |
+
unset($scene_info['authorURL']);
|
546 |
+
}
|
547 |
|
548 |
if (empty($scene_vaov)) {
|
549 |
unset($scene_info['vaov']);
|