WP VR – 360 Panorama and virtual tour creator for WordPress - Version 5.3.0

Version Description

(16-04-2020) = * Keyboard zoom control added * Logo style modified

=

Download this release

Release Info

Developer rextheme
Plugin Icon 128x128 WP VR – 360 Panorama and virtual tour creator for WordPress
Version 5.3.0
Comparing to
See all releases

Code changes from version 5.2.0 to 5.3.0

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.2.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -373,5 +373,9 @@ Simply add "/plugins/wpvr" to exclusion field (or use the location where you sto
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.  
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.3.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
373
  = 5.2.0 (02-04-2020) =
374
  * Author URL field added
375
 
376
+ = 5.3.0 (16-04-2020) =
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.  
admin/class-wpvr-ajax.php CHANGED
@@ -62,6 +62,14 @@ class Wpvr_Ajax {
62
  $diskeyboard = false;
63
  }
64
 
 
 
 
 
 
 
 
 
65
  $autoload = sanitize_text_field($_POST['autoload']);
66
  if ($autoload == 'on') {
67
  $autoload = true;
@@ -491,7 +499,7 @@ class Wpvr_Ajax {
491
  $pano_id_array = array();
492
  $pano_id_array = array("panoid"=>$panoid);
493
  $pano_response = array();
494
- $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"compass"=>$compass,"mouseZoom"=>$mouseZoom,"draggable"=>$draggable,"disableKeyboardCtrl"=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
495
 
496
  if ($rotation == 'off') {
497
  unset($pano_response['autoRotate']);
@@ -845,6 +853,15 @@ class Wpvr_Ajax {
845
  $diskeyboard = false;
846
  }
847
 
 
 
 
 
 
 
 
 
 
848
  $autoload = sanitize_text_field($_POST['autoload']);
849
  if ($autoload == 'on') {
850
  $autoload = true;
@@ -1146,7 +1163,7 @@ class Wpvr_Ajax {
1146
  }
1147
 
1148
  $pano_array = array();
1149
- $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,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "panodata" )=>$panodata);
1150
 
1151
  if ($rotation == 'off') {
1152
  unset($pano_array['autoRotate']);
62
  $diskeyboard = false;
63
  }
64
 
65
+ $keyboardzoom = sanitize_text_field($_POST['keyboardzoom']);
66
+ if ($keyboardzoom == 'off') {
67
+ $keyboardzoom = false;
68
+ }
69
+ else {
70
+ $keyboardzoom = true;
71
+ }
72
+
73
  $autoload = sanitize_text_field($_POST['autoload']);
74
  if ($autoload == 'on') {
75
  $autoload = true;
499
  $pano_id_array = array();
500
  $pano_id_array = array("panoid"=>$panoid);
501
  $pano_response = array();
502
+ $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"compass"=>$compass,"mouseZoom"=>$mouseZoom,"draggable"=>$draggable,"disableKeyboardCtrl"=>$diskeyboard,'keyboardZoom'=>$keyboardzoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
503
 
504
  if ($rotation == 'off') {
505
  unset($pano_response['autoRotate']);
853
  $diskeyboard = false;
854
  }
855
 
856
+ $keyboardzoom = sanitize_text_field($_POST['keyboardzoom']);
857
+
858
+ if ($keyboardzoom == 'off') {
859
+ $keyboardzoom = false;
860
+ }
861
+ else {
862
+ $keyboardzoom = true;
863
+ }
864
+
865
  $autoload = sanitize_text_field($_POST['autoload']);
866
  if ($autoload == 'on') {
867
  $autoload = true;
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']);
admin/partials/wpvr-meta-box-builder-display.php CHANGED
@@ -113,6 +113,10 @@ $diskeyboard = false;
113
  if (isset($postdata['diskeyboard'])) {
114
  $diskeyboard = $postdata['diskeyboard'];
115
  }
 
 
 
 
116
  $autoload = false;
117
  if (isset($postdata['autoLoad'])) {
118
  $autoload = $postdata['autoLoad'];
@@ -368,7 +372,7 @@ if (isset($postdata['panodata'])) {
368
  $pano_id_array = array();
369
  $pano_id_array = array("panoid"=>$panoid);
370
  $pano_response = array();
371
- $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,'draggable'=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
372
 
373
  if (empty($autorotation)) {
374
  unset($pano_response['autoRotate']);
113
  if (isset($postdata['diskeyboard'])) {
114
  $diskeyboard = $postdata['diskeyboard'];
115
  }
116
+ $keyboardzoom = true;
117
+ if (isset($postdata['keyboardzoom'])) {
118
+ $keyboardzoom = $postdata['keyboardzoom'];
119
+ }
120
  $autoload = false;
121
  if (isset($postdata['autoLoad'])) {
122
  $autoload = $postdata['autoLoad'];
372
  $pano_id_array = array();
373
  $pano_id_array = array("panoid"=>$panoid);
374
  $pano_response = array();
375
+ $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,'draggable'=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,'keyboardZoom'=>$keyboardzoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
376
 
377
  if (empty($autorotation)) {
378
  unset($pano_response['autoRotate']);
public/class-wpvr-public.php CHANGED
@@ -357,6 +357,11 @@ class Wpvr_Public {
357
  $diskeyboard = $postdata['diskeyboard'];
358
  }
359
 
 
 
 
 
 
360
  $autoload = false;
361
 
362
  if (isset($postdata['autoLoad'])) {
@@ -631,7 +636,7 @@ class Wpvr_Public {
631
  $pano_id_array = array();
632
  $pano_id_array = array("panoid"=>$panoid);
633
  $pano_response = array();
634
- $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"orientationSupport"=>'false',"compass"=>$compass,'orientationOnByDefault'=>$gyro_orientation,"mouseZoom"=>$mouseZoom,"draggable"=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
635
 
636
  if (empty($autorotation)) {
637
  unset($pano_response['autoRotate']);
357
  $diskeyboard = $postdata['diskeyboard'];
358
  }
359
 
360
+ $keyboardzoom = true;
361
+ if (isset($postdata['keyboardzoom'])) {
362
+ $keyboardzoom = $postdata['keyboardzoom'];
363
+ }
364
+
365
  $autoload = false;
366
 
367
  if (isset($postdata['autoLoad'])) {
636
  $pano_id_array = array();
637
  $pano_id_array = array("panoid"=>$panoid);
638
  $pano_response = array();
639
+ $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"orientationSupport"=>'false',"compass"=>$compass,'orientationOnByDefault'=>$gyro_orientation,"mouseZoom"=>$mouseZoom,"draggable"=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,'keyboardZoom'=>$keyboardzoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
640
 
641
  if (empty($autorotation)) {
642
  unset($pano_response['autoRotate']);
public/css/wpvr-public.css CHANGED
@@ -10,13 +10,39 @@
10
  z-index: 2;
11
  }
12
  .cp-logo-ctrl {
 
 
 
 
 
 
 
 
 
 
13
  max-width: 100px;
14
  height: auto;
15
  display: inline-block;
16
  cursor: pointer;
17
  margin: 0 auto;
18
- }
 
19
  #cp-logo-controls .cp-logo-ctrl .cp-info {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  font-size: 15px;
21
  position: absolute;
22
  top: 100%;
@@ -28,11 +54,11 @@
28
  opacity: 0;
29
  visibility: hidden;
30
  transition: all 0.3s ease;
31
- }
32
- #cp-logo-controls .cp-logo-ctrl.show .cp-info {
33
  opacity: 1;
34
  visibility: visible;
35
- }
36
 
37
  #zoom-in-out-controls {
38
  position: absolute;
@@ -238,6 +264,9 @@ div.custom-tooltip span {
238
  transform: translateX(-50%);
239
  min-width: 300px;
240
  }
 
 
 
241
  div.custom-tooltip span img{
242
  max-width: inherit;
243
  height: 225px;
10
  z-index: 2;
11
  }
12
  .cp-logo-ctrl {
13
+ height: auto;
14
+ display: inline-block;
15
+ cursor: pointer;
16
+ margin: 0 auto;
17
+ }
18
+ .cp-logo-ctrl img {
19
+ max-width: 100px;
20
+ margin-left: auto;
21
+ }
22
+ /* .cp-logo-ctrl {
23
  max-width: 100px;
24
  height: auto;
25
  display: inline-block;
26
  cursor: pointer;
27
  margin: 0 auto;
28
+ } */
29
+
30
  #cp-logo-controls .cp-logo-ctrl .cp-info {
31
+ font-size: 15px;
32
+ position: relative;
33
+ background: #fff;
34
+ max-width: 350px;
35
+ width: auto;
36
+ padding: 10px;
37
+ border-radius: 5px;
38
+ margin-top: 5px;
39
+ display: none;
40
+ transition: all 0.3s ease;
41
+ }
42
+ #cp-logo-controls .cp-logo-ctrl.show .cp-info {
43
+ display: block;
44
+ }
45
+ /* #cp-logo-controls .cp-logo-ctrl .cp-info {
46
  font-size: 15px;
47
  position: absolute;
48
  top: 100%;
54
  opacity: 0;
55
  visibility: hidden;
56
  transition: all 0.3s ease;
57
+ } */
58
+ /* #cp-logo-controls .cp-logo-ctrl.show .cp-info {
59
  opacity: 1;
60
  visibility: visible;
61
+ } */
62
 
63
  #zoom-in-out-controls {
64
  position: absolute;
264
  transform: translateX(-50%);
265
  min-width: 300px;
266
  }
267
+ div.custom-tooltip span a {
268
+ transition: inherit;
269
+ }
270
  div.custom-tooltip span img{
271
  max-width: inherit;
272
  height: 225px;
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.2.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
@@ -328,6 +328,11 @@ function wpvr_block_render( $attributes ) {
328
  $diskeyboard = $postdata['diskeyboard'];
329
  }
330
 
 
 
 
 
 
331
  $autoload = false;
332
 
333
  if (isset($postdata['autoLoad'])) {
@@ -604,7 +609,7 @@ function wpvr_block_render( $attributes ) {
604
  $pano_id_array = array();
605
  $pano_id_array = array('panoid'=>$panoid);
606
  $pano_response = array();
607
- $pano_response = array('autoLoad'=>$autoload,'showControls'=>$control,'compass'=>$compass,'orientationOnByDefault'=>$gyro_orientation,'mouseZoom'=>$mouseZoom,'draggable'=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,'default'=>$default_data,'scenes'=>$scene_data);
608
  if (empty($autorotation)) {
609
  unset($pano_response['autoRotate']);
610
  unset($pano_response['autoRotateInactivityDelay']);
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.3.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
328
  $diskeyboard = $postdata['diskeyboard'];
329
  }
330
 
331
+ $keyboardzoom = true;
332
+ if (isset($postdata['keyboardzoom'])) {
333
+ $keyboardzoom = $postdata['keyboardzoom'];
334
+ }
335
+
336
  $autoload = false;
337
 
338
  if (isset($postdata['autoLoad'])) {
609
  $pano_id_array = array();
610
  $pano_id_array = array('panoid'=>$panoid);
611
  $pano_response = array();
612
+ $pano_response = array('autoLoad'=>$autoload,'showControls'=>$control,'compass'=>$compass,'orientationOnByDefault'=>$gyro_orientation,'mouseZoom'=>$mouseZoom,'draggable'=>$draggable,'disableKeyboardCtrl'=>$diskeyboard,'keyboardZoom'=>$keyboardzoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,'default'=>$default_data,'scenes'=>$scene_data);
613
  if (empty($autorotation)) {
614
  unset($pano_response['autoRotate']);
615
  unset($pano_response['autoRotateInactivityDelay']);