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

Version Description

  • Script & Style file control modified

=

Download this release

Release Info

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

Code changes from version 4.7.0 to 4.8.0

Files changed (3) hide show
  1. README.txt +4 -1
  2. public/class-wpvr-public.php +21 -17
  3. wpvr.php +1 -1
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.7.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -358,5 +358,8 @@ Simply add "/plugins/wpvr" to exclusion field (or use the location where you sto
358
  * WordPress high resolution image upload
359
  * Input type error handled
360
 
 
 
 
361
  == Upgrade Notice ==
362
  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.8.0
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
358
  * WordPress high resolution image upload
359
  * Input type error handled
360
 
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.  
public/class-wpvr-public.php CHANGED
@@ -84,17 +84,19 @@ class Wpvr_Public {
84
  $current_url = home_url(add_query_arg(array($_GET), $wp->request));
85
 
86
  if ($wpvr_script_control == 'true') {
87
- if (in_array($current_url, $allowed_pages_modified)) {
88
- $fontawesome_disable = get_option('wpvr_fontawesome_disable');
89
- if ($fontawesome_disable == 'true') {
 
 
 
 
 
 
 
 
 
90
  }
91
- else {
92
- wp_enqueue_style( $this->plugin_name . 'fontawesome', 'https://use.fontawesome.com/releases/v5.7.2/css/all.css', array(), $this->version, 'all' );
93
- }
94
- wp_enqueue_style('panellium-css', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/css/pannellum.css', array(), true);
95
- wp_enqueue_style('videojs-css', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/css/video-js.css', array(), true);
96
- wp_enqueue_style( 'owl-css', plugin_dir_url( __FILE__ ) . 'css/owl.carousel.css', array(), $this->version, 'all' );
97
- wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wpvr-public.css', array(), $this->version, 'all' );
98
  }
99
  }
100
  else {
@@ -141,13 +143,15 @@ class Wpvr_Public {
141
  $current_url = home_url(add_query_arg(array($_GET), $wp->request));
142
 
143
  if ($wpvr_script_control == 'true') {
144
- if (in_array($current_url, $allowed_pages_modified)) {
145
- wp_enqueue_script('panellium-js', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/js/pannellum.js', array(), true);
146
- wp_enqueue_script('panelliumlib-js', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/js/libpannellum.js', array(), true);
147
- wp_enqueue_script('videojs-js', plugin_dir_url( __FILE__ ) . 'js/video.js', array(), true);
148
- wp_enqueue_script('panelliumvid-js', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/js/videojs-pannellum-plugin.js', array(), true);
149
- wp_enqueue_script( 'owl-js', plugin_dir_url( __FILE__ ) . 'js/owl.carousel.js', array( 'jquery' ), false );
150
- wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wpvr-public.js', array( 'jquery' ), $this->version, false );
 
 
151
  }
152
  }
153
  else {
84
  $current_url = home_url(add_query_arg(array($_GET), $wp->request));
85
 
86
  if ($wpvr_script_control == 'true') {
87
+ foreach ($allowed_pages_modified as $value) {
88
+ if (strpos($current_url, $value) !== false) {
89
+ $fontawesome_disable = get_option('wpvr_fontawesome_disable');
90
+ if ($fontawesome_disable == 'true') {
91
+ }
92
+ else {
93
+ wp_enqueue_style( $this->plugin_name . 'fontawesome', 'https://use.fontawesome.com/releases/v5.7.2/css/all.css', array(), $this->version, 'all' );
94
+ }
95
+ wp_enqueue_style('panellium-css', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/css/pannellum.css', array(), true);
96
+ wp_enqueue_style('videojs-css', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/css/video-js.css', array(), true);
97
+ wp_enqueue_style( 'owl-css', plugin_dir_url( __FILE__ ) . 'css/owl.carousel.css', array(), $this->version, 'all' );
98
+ wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/wpvr-public.css', array(), $this->version, 'all' );
99
  }
 
 
 
 
 
 
 
100
  }
101
  }
102
  else {
143
  $current_url = home_url(add_query_arg(array($_GET), $wp->request));
144
 
145
  if ($wpvr_script_control == 'true') {
146
+ foreach ($allowed_pages_modified as $value) {
147
+ if (strpos($current_url, $value) !== false) {
148
+ wp_enqueue_script('panellium-js', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/js/pannellum.js', array(), true);
149
+ wp_enqueue_script('panelliumlib-js', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/js/libpannellum.js', array(), true);
150
+ wp_enqueue_script('videojs-js', plugin_dir_url( __FILE__ ) . 'js/video.js', array(), true);
151
+ wp_enqueue_script('panelliumvid-js', plugin_dir_url( __FILE__ ) . 'lib/pannellum/src/js/videojs-pannellum-plugin.js', array(), true);
152
+ wp_enqueue_script( 'owl-js', plugin_dir_url( __FILE__ ) . 'js/owl.carousel.js', array( 'jquery' ), false );
153
+ wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wpvr-public.js', array( 'jquery' ), $this->version, false );
154
+ }
155
  }
156
  }
157
  else {
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.7.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
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+