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

Version Description

  • Scene title field added for gallery content

=

Download this release

Release Info

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

Code changes from version 4.8.0 to 4.9.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.8.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -22,7 +22,7 @@ Simply provide a 360 panoramic image, and this plugin will transform it into a r
22
  >WPVR is fully compatible with Gutenberg Block Editor and Elementor Page Builder.
23
 
24
 
25
- [Demo Virtual Tour (Pro)](https://rextheme.com/docs/wp-vr/demo-tours/pro-demo-virtual-tour/) | [Demo Tour (Free)](https://rextheme.com/docs/wp-vr/demo-tours/demo-tour-wpvr-free/) | [Documentation](https://rextheme.com/docs/wp-vr/) | [Premium Version](https://rextheme.com/wpvr/)
26
 
27
 
28
  == Why Use WPVR? ==
@@ -361,5 +361,8 @@ Simply add "/plugins/wpvr" to exclusion field (or use the location where you sto
361
  = 4.8.0 =
362
  * Script & Style file control modified
363
 
 
 
 
364
  == Upgrade Notice ==
365
  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.9.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
22
  >WPVR is fully compatible with Gutenberg Block Editor and Elementor Page Builder.
23
 
24
 
25
+ [Demo Virtual Tour (Pro)](https://rextheme.com/wpvr/#demo-tour) | [Documentation](https://rextheme.com/docs/wp-vr/) | [Premium Version](https://rextheme.com/wpvr/)
26
 
27
 
28
  == Why Use WPVR? ==
361
  = 4.8.0 =
362
  * Script & Style file control modified
363
 
364
+ = 4.9.0 =
365
+ * Scene title field added for gallery content
366
+
367
  == Upgrade Notice ==
368
  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
@@ -796,6 +796,14 @@ class Wpvr_Ajax {
796
  $vrgallery = false;
797
  }
798
 
 
 
 
 
 
 
 
 
799
  $gyro = sanitize_text_field($_POST['gyro']);
800
 
801
  if ($gyro == 'on') {
@@ -1138,7 +1146,7 @@ class Wpvr_Ajax {
1138
  }
1139
 
1140
  $pano_array = array();
1141
- $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,__( "draggable" )=>$draggable,__( "diskeyboard" )=>$diskeyboard,__( "autoRotate" )=>$autorotation,__( "autoRotateInactivityDelay" )=>$autorotationinactivedelay,__( "autoRotateStopDelay" )=>$autorotationstopdelay,__( "preview" )=>$preview,__( "defaultscene" )=>$default_scene,__( "scenefadeduration" )=>$scene_fade_duration,__( "panodata" )=>$panodata);
1142
 
1143
  if ($rotation == 'off') {
1144
  unset($pano_array['autoRotate']);
796
  $vrgallery = false;
797
  }
798
 
799
+ $vrgallery_title = sanitize_text_field($_POST['vrgallery_title']);
800
+ if ($vrgallery_title == 'on') {
801
+ $vrgallery_title = true;
802
+ }
803
+ else {
804
+ $vrgallery_title = false;
805
+ }
806
+
807
  $gyro = sanitize_text_field($_POST['gyro']);
808
 
809
  if ($gyro == 'on') {
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']);
public/class-wpvr-public.php CHANGED
@@ -325,6 +325,11 @@ class Wpvr_Public {
325
  $vrgallery = $postdata['vrgallery'];
326
  }
327
 
 
 
 
 
 
328
  $gyro = false;
329
  if (isset($postdata['gyro'])) {
330
  $gyro = $postdata['gyro'];
@@ -808,8 +813,15 @@ class Wpvr_Public {
808
  if (isset($panodata["scene-list"])) {
809
  foreach ($panodata["scene-list"] as $panoscenes) {
810
  $scene_key = $panoscenes['scene-id'];
 
 
 
 
 
 
 
811
  $img_src_url = $panoscenes['scene-attachment-url'];
812
- $html .= '<ul style="width:150px;"><li title="Double click to view scene"><img class="scctrl" id="'.$scene_key.'_gallery_'.$id.'" src="'.$img_src_url.'"></li></ul>';
813
  }
814
  }
815
  $html .= '</div>';
325
  $vrgallery = $postdata['vrgallery'];
326
  }
327
 
328
+ $vrgallery_title = false;
329
+ if (isset($postdata['vrgallery_title'])) {
330
+ $vrgallery_title = $postdata['vrgallery_title'];
331
+ }
332
+
333
  $gyro = false;
334
  if (isset($postdata['gyro'])) {
335
  $gyro = $postdata['gyro'];
813
  if (isset($panodata["scene-list"])) {
814
  foreach ($panodata["scene-list"] as $panoscenes) {
815
  $scene_key = $panoscenes['scene-id'];
816
+ if ($vrgallery_title == 'on') {
817
+ // $scene_key_title = $panoscenes['scene-ititle'];
818
+ $scene_key_title = $panoscenes['scene-id'];
819
+ }
820
+ else {
821
+ $scene_key_title = "";
822
+ }
823
  $img_src_url = $panoscenes['scene-attachment-url'];
824
+ $html .= '<ul style="width:150px;"><li title="Double click to view scene">'.$scene_key_title.'<img class="scctrl" id="'.$scene_key.'_gallery_'.$id.'" src="'.$img_src_url.'"></li></ul>';
825
  }
826
  }
827
  $html .= '</div>';
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.8.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
@@ -296,6 +296,11 @@ function wpvr_block_render( $attributes ) {
296
  $vrgallery = $postdata['vrgallery'];
297
  }
298
 
 
 
 
 
 
299
  $gyro = false;
300
  if (isset($postdata['gyro'])) {
301
  $gyro = $postdata['gyro'];
@@ -771,8 +776,15 @@ function wpvr_block_render( $attributes ) {
771
  if (isset($panodata["scene-list"])) {
772
  foreach ($panodata["scene-list"] as $panoscenes) {
773
  $scene_key = $panoscenes['scene-id'];
 
 
 
 
 
 
 
774
  $img_src_url = $panoscenes['scene-attachment-url'];
775
- $html .= '<ul style="width:150px;"><li title="Double click to view scene"><img class="scctrl" id="'.$scene_key.'_gallery_'.$id.'" src="'.$img_src_url.'"></li></ul>';
776
  }
777
  }
778
  $html .= '</div>';
@@ -1159,7 +1171,7 @@ function wpvr_add_role_cap() {
1159
 
1160
  add_action('admin_init','wpvr_add_role_cap',999);
1161
 
1162
- function wpvr_role_management_from_post_type( $args, $post_type ){
1163
 
1164
  if ( 'wpvr_item' !== $post_type ) {
1165
  return $args;
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.9.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
296
  $vrgallery = $postdata['vrgallery'];
297
  }
298
 
299
+ $vrgallery_title = false;
300
+ if (isset($postdata['vrgallery_title'])) {
301
+ $vrgallery_title = $postdata['vrgallery_title'];
302
+ }
303
+
304
  $gyro = false;
305
  if (isset($postdata['gyro'])) {
306
  $gyro = $postdata['gyro'];
776
  if (isset($panodata["scene-list"])) {
777
  foreach ($panodata["scene-list"] as $panoscenes) {
778
  $scene_key = $panoscenes['scene-id'];
779
+ if ($vrgallery_title == 'on') {
780
+ // $scene_key_title = $panoscenes['scene-ititle'];
781
+ $scene_key_title = $panoscenes['scene-id'];
782
+ }
783
+ else {
784
+ $scene_key_title = "";
785
+ }
786
  $img_src_url = $panoscenes['scene-attachment-url'];
787
+ $html .= '<ul style="width:150px;"><li title="Double click to view scene">'.$scene_key_title.'<img class="scctrl" id="'.$scene_key.'_gallery_'.$id.'" src="'.$img_src_url.'"></li></ul>';
788
  }
789
  }
790
  $html .= '</div>';
1171
 
1172
  add_action('admin_init','wpvr_add_role_cap',999);
1173
 
1174
+ function wpvr_role_management_from_post_type( $args, $post_type ) {
1175
 
1176
  if ( 'wpvr_item' !== $post_type ) {
1177
  return $args;