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

Version Description

  • Keyboard control switch added
  • Fontawesome conflict fix

=

Download this release

Release Info

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

Code changes from version 4.1.0 to 4.2.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.3
7
- Stable tag: 4.1.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -333,5 +333,9 @@ Simply add "/plugins/wpvr" to exclusion field (or use the location where you sto
333
  * 360 video autoplay and loop
334
  * Mouse scroll support added
335
 
 
 
 
 
336
  == Upgrade Notice ==
337
  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.2.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
333
  * 360 video autoplay and loop
334
  * Mouse scroll support added
335
 
336
+ = 4.2.0 =
337
+ * Keyboard control switch added
338
+ * Fontawesome conflict fix
339
+
340
  == Upgrade Notice ==
341
  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
@@ -46,6 +46,14 @@ class Wpvr_Ajax {
46
  $mouseZoom = false;
47
  }
48
 
 
 
 
 
 
 
 
 
49
  $autoload = sanitize_text_field($_POST['autoload']);
50
  if ($autoload == 'on') {
51
  $autoload = true;
@@ -475,7 +483,7 @@ class Wpvr_Ajax {
475
  $pano_id_array = array();
476
  $pano_id_array = array("panoid"=>$panoid);
477
  $pano_response = array();
478
- $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"compass"=>$compass,"mouseZoom"=>$mouseZoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
479
 
480
  if ($rotation == 'off') {
481
  unset($pano_response['autoRotate']);
@@ -805,6 +813,14 @@ class Wpvr_Ajax {
805
  $mouseZoom = false;
806
  }
807
 
 
 
 
 
 
 
 
 
808
  $autoload = sanitize_text_field($_POST['autoload']);
809
  if ($autoload == 'on') {
810
  $autoload = true;
@@ -1106,7 +1122,7 @@ class Wpvr_Ajax {
1106
  }
1107
 
1108
  $pano_array = array();
1109
- $pano_array = array(__( "panoid" )=>$panoid,__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "cpLogoSwitch" )=>$cpLogoSwitch,__( "cpLogoImg" )=>$cpLogoImg,__( "cpLogoContent" )=>$cpLogoContent,__( "vrgallery" )=>$vrgallery,__( "customcontrol" )=>$custom_control,__( "gyro" )=>$gyro,__( "compass" )=>$compass,__( "mouseZoom" )=>$mouseZoom,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "panodata" )=>$panodata);
1110
 
1111
  if ($rotation == 'off') {
1112
  unset($pano_array['autoRotate']);
@@ -1249,8 +1265,10 @@ class Wpvr_Ajax {
1249
  function wpvr_role_management() {
1250
  $editor = sanitize_text_field($_POST['editor']);
1251
  $author = sanitize_text_field($_POST['author']);
 
1252
  update_option('wpvr_editor_active', $editor);
1253
  update_option('wpvr_author_active', $author);
 
1254
  $response = array(
1255
  'status' => 'success',
1256
  'message' => 'Successfully saved',
46
  $mouseZoom = false;
47
  }
48
 
49
+ $diskeyboard = sanitize_text_field($_POST['diskeyboard']);
50
+ if ($diskeyboard == 'on') {
51
+ $diskeyboard = true;
52
+ }
53
+ else {
54
+ $diskeyboard = false;
55
+ }
56
+
57
  $autoload = sanitize_text_field($_POST['autoload']);
58
  if ($autoload == 'on') {
59
  $autoload = true;
483
  $pano_id_array = array();
484
  $pano_id_array = array("panoid"=>$panoid);
485
  $pano_response = array();
486
+ $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"compass"=>$compass,"mouseZoom"=>$mouseZoom,"disableKeyboardCtrl"=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
487
 
488
  if ($rotation == 'off') {
489
  unset($pano_response['autoRotate']);
813
  $mouseZoom = false;
814
  }
815
 
816
+ $diskeyboard = sanitize_text_field($_POST['diskeyboard']);
817
+ if ($diskeyboard == 'on') {
818
+ $diskeyboard = true;
819
+ }
820
+ else {
821
+ $diskeyboard = false;
822
+ }
823
+
824
  $autoload = sanitize_text_field($_POST['autoload']);
825
  if ($autoload == 'on') {
826
  $autoload = true;
1122
  }
1123
 
1124
  $pano_array = array();
1125
+ $pano_array = array(__( "panoid" )=>$panoid,__( "autoLoad" )=>$autoload,__( "showControls" )=>$control,__( "cpLogoSwitch" )=>$cpLogoSwitch,__( "cpLogoImg" )=>$cpLogoImg,__( "cpLogoContent" )=>$cpLogoContent,__( "vrgallery" )=>$vrgallery,__( "customcontrol" )=>$custom_control,__( "gyro" )=>$gyro,__( "compass" )=>$compass,__( "mouseZoom" )=>$mouseZoom,__( "diskeyboard" )=>$diskeyboard,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "panodata" )=>$panodata);
1126
 
1127
  if ($rotation == 'off') {
1128
  unset($pano_array['autoRotate']);
1265
  function wpvr_role_management() {
1266
  $editor = sanitize_text_field($_POST['editor']);
1267
  $author = sanitize_text_field($_POST['author']);
1268
+ $fontawesome = sanitize_text_field($_POST['fontawesome']);
1269
  update_option('wpvr_editor_active', $editor);
1270
  update_option('wpvr_author_active', $author);
1271
+ update_option('wpvr_fontawesome_disable', $fontawesome);
1272
  $response = array(
1273
  'status' => 'success',
1274
  'message' => 'Successfully saved',
admin/partials/wpvr-meta-box-builder-display.php CHANGED
@@ -98,13 +98,17 @@ if (isset($postdata['showControls'])) {
98
  $control = $postdata['showControls'];
99
  }
100
  $compass = false;
101
- if (isset($postdata['compass'])) {
102
- $compass = $postdata['compass'];
103
- }
104
- $mouseZoom = true;
105
- if (isset($postdata['mouseZoom'])) {
106
- $mouseZoom = $postdata['mouseZoom'];
107
- }
 
 
 
 
108
  $autoload = false;
109
  if (isset($postdata['autoLoad'])) {
110
  $autoload = $postdata['autoLoad'];
@@ -360,7 +364,7 @@ if (isset($postdata['panodata'])) {
360
  $pano_id_array = array();
361
  $pano_id_array = array("panoid"=>$panoid);
362
  $pano_response = array();
363
- $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
364
 
365
  if (empty($autorotation)) {
366
  unset($pano_response['autoRotate']);
98
  $control = $postdata['showControls'];
99
  }
100
  $compass = false;
101
+ if (isset($postdata['compass'])) {
102
+ $compass = $postdata['compass'];
103
+ }
104
+ $mouseZoom = true;
105
+ if (isset($postdata['mouseZoom'])) {
106
+ $mouseZoom = $postdata['mouseZoom'];
107
+ }
108
+ $diskeyboard = false;
109
+ if (isset($postdata['diskeyboard'])) {
110
+ $diskeyboard = $postdata['diskeyboard'];
111
+ }
112
  $autoload = false;
113
  if (isset($postdata['autoLoad'])) {
114
  $autoload = $postdata['autoLoad'];
364
  $pano_id_array = array();
365
  $pano_id_array = array("panoid"=>$panoid);
366
  $pano_response = array();
367
+ $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
368
 
369
  if (empty($autorotation)) {
370
  unset($pano_response['autoRotate']);
admin/partials/wpvr_documentation.php CHANGED
@@ -204,6 +204,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
204
  <?php
205
  $editor_active = get_option('wpvr_editor_active');
206
  $author_active = get_option('wpvr_author_active');
 
207
  ?>
208
  <li>
209
  <div class="switch">
@@ -250,6 +251,28 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
250
  </label>
251
  </div>
252
  </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  </ul>
254
  <div id="wpvr_role_progress" class="progress" style="display:none;">
255
  <div class="indeterminate"></div>
204
  <?php
205
  $editor_active = get_option('wpvr_editor_active');
206
  $author_active = get_option('wpvr_author_active');
207
+ $fontawesome_disable = get_option('wpvr_fontawesome_disable');
208
  ?>
209
  <li>
210
  <div class="switch">
251
  </label>
252
  </div>
253
  </li>
254
+ <li>
255
+ <div class="switch">
256
+ <h6>Disable Fontawesome from WP VR: </h6>
257
+ <label>
258
+ Off
259
+ <?php
260
+ if ($fontawesome_disable == "true") {
261
+ ?>
262
+ <input id="wpvr_fontawesome_disable" type="checkbox" checked>
263
+ <?php
264
+ }
265
+ else {
266
+ ?>
267
+ <input id="wpvr_fontawesome_disable" type="checkbox">
268
+ <?php
269
+ }
270
+ ?>
271
+ <span class="lever"></span>
272
+ On
273
+ </label>
274
+ </div>
275
+ </li>
276
  </ul>
277
  <div id="wpvr_role_progress" class="progress" style="display:none;">
278
  <div class="indeterminate"></div>
public/class-wpvr-public.php CHANGED
@@ -73,7 +73,12 @@ class Wpvr_Public {
73
  * class.
74
  */
75
 
76
- wp_enqueue_style( $this->plugin_name . 'fontawesome', 'https://use.fontawesome.com/releases/v5.7.2/css/all.css', array(), $this->version, 'all' );
 
 
 
 
 
77
  wp_enqueue_style('panellium-css', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/css/pannellum.css', array(), true);
78
  wp_enqueue_style('videojs-css', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/css/video-js.css', array(), true);
79
  wp_enqueue_style( 'owl-css', plugin_dir_url( __FILE__ ) . 'css/owl.carousel.css', array(), $this->version, 'all' );
@@ -283,6 +288,11 @@ class Wpvr_Public {
283
  $mouseZoom = $postdata['mouseZoom'];
284
  }
285
 
 
 
 
 
 
286
  $autoload = false;
287
 
288
  if (isset($postdata['autoLoad'])) {
@@ -549,7 +559,7 @@ class Wpvr_Public {
549
  $pano_id_array = array();
550
  $pano_id_array = array("panoid"=>$panoid);
551
  $pano_response = array();
552
- $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"orientationSupport"=>'false',"compass"=>$compass,"mouseZoom"=>$mouseZoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
553
 
554
  if (empty($autorotation)) {
555
  unset($pano_response['autoRotate']);
@@ -587,6 +597,7 @@ class Wpvr_Public {
587
  $html .= '<style>';
588
  $html .= '#'.$panoid.' div.pnlm-hotspot-base.fas,
589
  #'.$panoid.' div.pnlm-hotspot-base.fab,
 
590
  #'.$panoid.' div.pnlm-hotspot-base.far {
591
  display: block !important;
592
  background-color: '.$hotspoticoncolor.';
@@ -858,8 +869,8 @@ class Wpvr_Public {
858
  }
859
  }
860
 
861
- $angle_up = '<i class="fas fa-angle-up"></i>';
862
- $angle_down = '<i class="fas fa-angle-down"></i>';
863
  $sin_qout = "'";
864
 
865
  $html .= '
73
  * class.
74
  */
75
 
76
+ $fontawesome_disable = get_option('wpvr_fontawesome_disable');
77
+ if ($fontawesome_disable == 'true') {
78
+ }
79
+ else {
80
+ wp_enqueue_style( $this->plugin_name . 'fontawesome', 'https://use.fontawesome.com/releases/v5.7.2/css/all.css', array(), $this->version, 'all' );
81
+ }
82
  wp_enqueue_style('panellium-css', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/css/pannellum.css', array(), true);
83
  wp_enqueue_style('videojs-css', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/css/video-js.css', array(), true);
84
  wp_enqueue_style( 'owl-css', plugin_dir_url( __FILE__ ) . 'css/owl.carousel.css', array(), $this->version, 'all' );
288
  $mouseZoom = $postdata['mouseZoom'];
289
  }
290
 
291
+ $diskeyboard = false;
292
+ if (isset($postdata['diskeyboard'])) {
293
+ $diskeyboard = $postdata['diskeyboard'];
294
+ }
295
+
296
  $autoload = false;
297
 
298
  if (isset($postdata['autoLoad'])) {
559
  $pano_id_array = array();
560
  $pano_id_array = array("panoid"=>$panoid);
561
  $pano_response = array();
562
+ $pano_response = array("autoLoad"=>$autoload,"showControls"=>$control,"orientationSupport"=>'false',"compass"=>$compass,"mouseZoom"=>$mouseZoom,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,"default"=>$default_data,"scenes"=>$scene_data);
563
 
564
  if (empty($autorotation)) {
565
  unset($pano_response['autoRotate']);
597
  $html .= '<style>';
598
  $html .= '#'.$panoid.' div.pnlm-hotspot-base.fas,
599
  #'.$panoid.' div.pnlm-hotspot-base.fab,
600
+ #'.$panoid.' div.pnlm-hotspot-base.fa,
601
  #'.$panoid.' div.pnlm-hotspot-base.far {
602
  display: block !important;
603
  background-color: '.$hotspoticoncolor.';
869
  }
870
  }
871
 
872
+ $angle_up = '<i class="fa fa-angle-up"></i>';
873
+ $angle_down = '<i class="fa fa-angle-down"></i>';
874
  $sin_qout = "'";
875
 
876
  $html .= '
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.1.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
@@ -311,6 +311,11 @@ function wpvr_block_render( $attributes ) {
311
  $mouseZoom = $postdata['mouseZoom'];
312
  }
313
 
 
 
 
 
 
314
  $autoload = false;
315
 
316
  if (isset($postdata['autoLoad'])) {
@@ -578,7 +583,7 @@ function wpvr_block_render( $attributes ) {
578
  $pano_id_array = array();
579
  $pano_id_array = array('panoid'=>$panoid);
580
  $pano_response = array();
581
- $pano_response = array('autoLoad'=>$autoload,'showControls'=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,'default'=>$default_data,'scenes'=>$scene_data);
582
  if (empty($autorotation)) {
583
  unset($pano_response['autoRotate']);
584
  unset($pano_response['autoRotateInactivityDelay']);
@@ -620,6 +625,7 @@ function wpvr_block_render( $attributes ) {
620
  $html .= '<style>';
621
  $html .= '#'.$panoid.' div.pnlm-hotspot-base.fas,
622
  #'.$panoid.' div.pnlm-hotspot-base.fab,
 
623
  #'.$panoid.' div.pnlm-hotspot-base.far {
624
  display: block !important;
625
  background-color: '.$hotspoticoncolor.';
@@ -627,6 +633,8 @@ function wpvr_block_render( $attributes ) {
627
  border-radius: 100%;
628
  width: 30px;
629
  height: 30px;
 
 
630
  animation: icon-pulse'.$panoid.' 1.5s infinite cubic-bezier(.25, 0, 0, 1);
631
  }';
632
  if ($hotspotblink == 'on') {
@@ -873,8 +881,8 @@ function wpvr_block_render( $attributes ) {
873
  }
874
  }
875
 
876
- $angle_up = '<i class="fas fa-angle-up"></i>';
877
- $angle_down = '<i class="fas fa-angle-down"></i>';
878
  $sin_qout = "'";
879
 
880
  $html .= '
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.2.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
311
  $mouseZoom = $postdata['mouseZoom'];
312
  }
313
 
314
+ $diskeyboard = false;
315
+ if (isset($postdata['diskeyboard'])) {
316
+ $diskeyboard = $postdata['diskeyboard'];
317
+ }
318
+
319
  $autoload = false;
320
 
321
  if (isset($postdata['autoLoad'])) {
583
  $pano_id_array = array();
584
  $pano_id_array = array('panoid'=>$panoid);
585
  $pano_response = array();
586
+ $pano_response = array('autoLoad'=>$autoload,'showControls'=>$control,'compass'=>$compass,'mouseZoom'=>$mouseZoom,'disableKeyboardCtrl'=>$diskeyboard,"preview"=>$preview,"autoRotate"=>$autorotation,"autoRotateInactivityDelay"=>$autorotationinactivedelay,"autoRotateStopDelay"=>$autorotationstopdelay,'default'=>$default_data,'scenes'=>$scene_data);
587
  if (empty($autorotation)) {
588
  unset($pano_response['autoRotate']);
589
  unset($pano_response['autoRotateInactivityDelay']);
625
  $html .= '<style>';
626
  $html .= '#'.$panoid.' div.pnlm-hotspot-base.fas,
627
  #'.$panoid.' div.pnlm-hotspot-base.fab,
628
+ #'.$panoid.' div.pnlm-hotspot-base.fa,
629
  #'.$panoid.' div.pnlm-hotspot-base.far {
630
  display: block !important;
631
  background-color: '.$hotspoticoncolor.';
633
  border-radius: 100%;
634
  width: 30px;
635
  height: 30px;
636
+ font-size: 16px;
637
+ line-height: 30px;
638
  animation: icon-pulse'.$panoid.' 1.5s infinite cubic-bezier(.25, 0, 0, 1);
639
  }';
640
  if ($hotspotblink == 'on') {
881
  }
882
  }
883
 
884
+ $angle_up = '<i class="fa fa-angle-up"></i>';
885
+ $angle_down = '<i class="fa fa-angle-down"></i>';
886
  $sin_qout = "'";
887
 
888
  $html .= '