Version Description
(19-08-2020) = * Media resizer fixed
=
Download this release
Release Info
Developer | rextheme |
Plugin | WP VR – 360 Panorama and virtual tour creator for WordPress |
Version | 6.4.0 |
Comparing to | |
See all releases |
Code changes from version 6.3.0 to 6.4.0
- README.txt +4 -1
- public/class-wpvr-public.php +23 -17
- public/css/wpvr-public.css +1 -1
- public/js/wpvr-public.js +1 -1
- wpvr.php +26 -21
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.5.0
|
7 |
-
Stable tag: 6.
|
8 |
Requires PHP: 7.0.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -431,5 +431,8 @@ Simply add "/plugins/wpvr" to exclusion field (or use the location where you sto
|
|
431 |
* WordPress 5.5 compatible
|
432 |
* Street View responsive issue fixed
|
433 |
|
|
|
|
|
|
|
434 |
== Upgrade Notice ==
|
435 |
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.5.0
|
7 |
+
Stable tag: 6.4.0
|
8 |
Requires PHP: 7.0.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
431 |
* WordPress 5.5 compatible
|
432 |
* Street View responsive issue fixed
|
433 |
|
434 |
+
= 6.4.0 (19-08-2020) =
|
435 |
+
* Media resizer fixed
|
436 |
+
|
437 |
== Upgrade Notice ==
|
438 |
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
@@ -235,7 +235,7 @@ class Wpvr_Public {
|
|
235 |
$html .= '</div>';
|
236 |
|
237 |
return $html;
|
238 |
-
|
239 |
}
|
240 |
|
241 |
if (isset($postdata['vidid'])) {
|
@@ -604,26 +604,30 @@ class Wpvr_Public {
|
|
604 |
}
|
605 |
|
606 |
$device_scene = $panoscenes['scene-attachment-url'];
|
607 |
-
$
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
|
|
|
|
|
|
|
|
615 |
}
|
616 |
}
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
}
|
625 |
}
|
626 |
-
|
627 |
|
628 |
$scene_info = array();
|
629 |
$scene_info = array("type"=>$panoscenes["scene-type"],"panorama"=>$device_scene,"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);
|
@@ -1053,6 +1057,7 @@ class Wpvr_Public {
|
|
1053 |
$html .= '}';
|
1054 |
|
1055 |
$html .= 'var panoshow'.$id.' = pannellum.viewer(response[0]["panoid"], scenes);';
|
|
|
1056 |
$html .= 'panoshow'.$id.'.on("load", function (){
|
1057 |
if (jQuery("#pano'.$id.'").children().children(".pnlm-panorama-info:visible").length > 0) {
|
1058 |
jQuery("#controls'.$id.'").css("bottom", "55px");
|
@@ -1213,6 +1218,7 @@ class Wpvr_Public {
|
|
1213 |
}
|
1214 |
|
1215 |
$html .= '});';
|
|
|
1216 |
$html .= '</script>';
|
1217 |
//script end
|
1218 |
|
235 |
$html .= '</div>';
|
236 |
|
237 |
return $html;
|
238 |
+
|
239 |
}
|
240 |
|
241 |
if (isset($postdata['vidid'])) {
|
604 |
}
|
605 |
|
606 |
$device_scene = $panoscenes['scene-attachment-url'];
|
607 |
+
$image_info = getimagesize($device_scene);
|
608 |
+
|
609 |
+
if ($image_info[0] > 4096) {
|
610 |
+
$src_to_id_for_mobile = '';
|
611 |
+
$src_to_id_for_desktop = '';
|
612 |
+
if (wpvr_isMobileDevice()) {
|
613 |
+
$src_to_id_for_mobile = attachment_url_to_postid($panoscenes['scene-attachment-url']);
|
614 |
+
if ($src_to_id_for_mobile) {
|
615 |
+
$mobile_scene = wp_get_attachment_image_src($src_to_id_for_mobile, 'large');
|
616 |
+
if ($mobile_scene[0]) {
|
617 |
+
$device_scene = $mobile_scene[0];
|
618 |
+
}
|
619 |
}
|
620 |
}
|
621 |
+
else {
|
622 |
+
$src_to_id_for_desktop = attachment_url_to_postid($panoscenes['scene-attachment-url']);
|
623 |
+
if ($src_to_id_for_desktop) {
|
624 |
+
$desktop_scene = wp_get_attachment_image_src($src_to_id_for_mobile, 'full');
|
625 |
+
if ($desktop_scene[0]) {
|
626 |
+
$device_scene = $desktop_scene[0];
|
627 |
+
}
|
628 |
}
|
629 |
}
|
630 |
+
}
|
631 |
|
632 |
$scene_info = array();
|
633 |
$scene_info = array("type"=>$panoscenes["scene-type"],"panorama"=>$device_scene,"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);
|
1057 |
$html .= '}';
|
1058 |
|
1059 |
$html .= 'var panoshow'.$id.' = pannellum.viewer(response[0]["panoid"], scenes);';
|
1060 |
+
|
1061 |
$html .= 'panoshow'.$id.'.on("load", function (){
|
1062 |
if (jQuery("#pano'.$id.'").children().children(".pnlm-panorama-info:visible").length > 0) {
|
1063 |
jQuery("#controls'.$id.'").css("bottom", "55px");
|
1218 |
}
|
1219 |
|
1220 |
$html .= '});';
|
1221 |
+
|
1222 |
$html .= '</script>';
|
1223 |
//script end
|
1224 |
|
public/css/wpvr-public.css
CHANGED
@@ -658,7 +658,7 @@ div.custom-ifram {
|
|
658 |
width: 100%!important;
|
659 |
height: 300px!important;
|
660 |
}
|
661 |
-
|
662 |
|
663 |
|
664 |
/* ----woocommerce product---- */
|
658 |
width: 100%!important;
|
659 |
height: 300px!important;
|
660 |
}
|
661 |
+
|
662 |
|
663 |
|
664 |
/* ----woocommerce product---- */
|
public/js/wpvr-public.js
CHANGED
@@ -70,7 +70,7 @@ jQuery(document).ready(function($){
|
|
70 |
jQuery(document).ready(function($){
|
71 |
var notice_active = wpvr_public.notice_active;
|
72 |
var notice = wpvr_public.notice;
|
73 |
-
if (notice_active) {
|
74 |
if (!$.cookie("wpvr_mobile_notice")) {
|
75 |
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
|
76 |
if ($(".pano-wrap")[0]){
|
70 |
jQuery(document).ready(function($){
|
71 |
var notice_active = wpvr_public.notice_active;
|
72 |
var notice = wpvr_public.notice;
|
73 |
+
if (notice_active == "true") {
|
74 |
if (!$.cookie("wpvr_mobile_notice")) {
|
75 |
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
|
76 |
if ($(".pano-wrap")[0]){
|
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: 6.
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
@@ -193,7 +193,7 @@ function wpvr_block_render( $attributes ) {
|
|
193 |
$html .= '<div class="vr-streetview" style="text-align: center; max-width:100%; width:'.$width.'px; height:'.$height.'px; margin: 0 auto;">';
|
194 |
$html .= '<iframe src="'.$streetviewurl.'" frameborder="0" style="border:0; width:100px; height:100%;" allowfullscreen=""></iframe>';
|
195 |
$html .= '</div>';
|
196 |
-
|
197 |
|
198 |
return $html;
|
199 |
}
|
@@ -559,32 +559,37 @@ function wpvr_block_render( $attributes ) {
|
|
559 |
}
|
560 |
|
561 |
$device_scene = $panoscenes['scene-attachment-url'];
|
562 |
-
$
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
else {
|
572 |
-
$mobile_scene = wp_get_attachment_image_src($src_to_id_for_mobile, 'large');
|
573 |
if ($mobile_scene[3]) {
|
574 |
$device_scene = $mobile_scene[0];
|
575 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
576 |
}
|
577 |
}
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
}
|
586 |
}
|
587 |
-
|
|
|
588 |
|
589 |
$scene_info = array();
|
590 |
$scene_info = array('type'=>$panoscenes['scene-type'],'panorama'=>$device_scene,"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);
|
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: 6.4.0
|
20 |
* Author: Rextheme
|
21 |
* Author URI: http://rextheme.com/
|
22 |
* License: GPL-2.0+
|
193 |
$html .= '<div class="vr-streetview" style="text-align: center; max-width:100%; width:'.$width.'px; height:'.$height.'px; margin: 0 auto;">';
|
194 |
$html .= '<iframe src="'.$streetviewurl.'" frameborder="0" style="border:0; width:100px; height:100%;" allowfullscreen=""></iframe>';
|
195 |
$html .= '</div>';
|
196 |
+
|
197 |
|
198 |
return $html;
|
199 |
}
|
559 |
}
|
560 |
|
561 |
$device_scene = $panoscenes['scene-attachment-url'];
|
562 |
+
$image_info = getimagesize($device_scene);
|
563 |
+
|
564 |
+
if ($image_info[0] > 4096) {
|
565 |
+
$src_to_id_for_mobile = '';
|
566 |
+
$src_to_id_for_desktop = '';
|
567 |
+
if (wpvr_isMobileDevice()) {
|
568 |
+
$src_to_id_for_mobile = attachment_url_to_postid($panoscenes['scene-attachment-url']);
|
569 |
+
if ($src_to_id_for_mobile) {
|
570 |
+
$mobile_scene = wp_get_attachment_image_src($src_to_id_for_mobile, 'wpvr_mobile');
|
|
|
|
|
571 |
if ($mobile_scene[3]) {
|
572 |
$device_scene = $mobile_scene[0];
|
573 |
}
|
574 |
+
else {
|
575 |
+
$mobile_scene = wp_get_attachment_image_src($src_to_id_for_mobile, 'large');
|
576 |
+
if ($mobile_scene[3]) {
|
577 |
+
$device_scene = $mobile_scene[0];
|
578 |
+
}
|
579 |
+
}
|
580 |
}
|
581 |
}
|
582 |
+
else {
|
583 |
+
$src_to_id_for_desktop = attachment_url_to_postid($panoscenes['scene-attachment-url']);
|
584 |
+
if ($src_to_id_for_desktop) {
|
585 |
+
$desktop_scene = wp_get_attachment_image_src($src_to_id_for_mobile, 'full');
|
586 |
+
if ($desktop_scene[0]) {
|
587 |
+
$device_scene = $desktop_scene[0];
|
588 |
+
}
|
589 |
}
|
590 |
}
|
591 |
+
}
|
592 |
+
|
593 |
|
594 |
$scene_info = array();
|
595 |
$scene_info = array('type'=>$panoscenes['scene-type'],'panorama'=>$device_scene,"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);
|