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

Version Description

(19-11-2020) = * Black Friday banner added

=

Download this release

Release Info

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

Code changes from version 6.9.0 to 7.0.0

README.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://rextheme.com/wp-vr-360-panorama-and-virtual-tour-creator-fo
5
  Requires at least: 5.0
6
  Tested up to: 5.5.3
7
  Requires PHP: 7.0.0
8
- Stable tag: 6.9.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -545,13 +545,16 @@ Simply add “/plugins/wpvr” to the exclusion field (or use the location where
545
  * Mobile media resizer switch added
546
  * Ocean theme conflict fixed
547
 
548
- 6.8.0 (22-10-2020)
549
  * Display gallery by default on the tour
550
 
551
- 6.9.0 (16-11-2020)
552
  * Accordion support added for elementor
553
  * Iframe conflict fixed
554
  * Control button overlap issue fixed
555
 
 
 
 
556
  == Upgrade Notice ==
557
  Please do update the WP VR to the latest version. Each update makes sure your plugin is supporting all tour features.
5
  Requires at least: 5.0
6
  Tested up to: 5.5.3
7
  Requires PHP: 7.0.0
8
+ Stable tag: 7.0.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
545
  * Mobile media resizer switch added
546
  * Ocean theme conflict fixed
547
 
548
+ = 6.8.0 (22-10-2020) =
549
  * Display gallery by default on the tour
550
 
551
+ = 6.9.0 (16-11-2020) =
552
  * Accordion support added for elementor
553
  * Iframe conflict fixed
554
  * Control button overlap issue fixed
555
 
556
+ = 7.0.0 (19-11-2020) =
557
+ * Black Friday banner added
558
+
559
  == Upgrade Notice ==
560
  Please do update the WP VR to the latest version. Each update makes sure your plugin is supporting all tour features.
admin/css/wpvr-admin.css CHANGED
@@ -3,7 +3,6 @@
3
  * included in this file.
4
  */
5
 
6
-
7
  .wpvr_gt_settings_ruler {
8
  content: "";
9
  display: block;
@@ -980,7 +979,7 @@ div.custom-tooltip:hover span:after {
980
  display: block;
981
  }
982
 
983
- .rex-pano-tab-content .general .single-settings.preview-setting .remove-attachment:before,
984
  .rex-pano-tab-content .general .single-settings.preview-setting .remove-attachment:after {
985
  content: "";
986
  position: absolute;
3
  * included in this file.
4
  */
5
 
 
6
  .wpvr_gt_settings_ruler {
7
  content: "";
8
  display: block;
979
  display: block;
980
  }
981
 
982
+ .rex-pano-tab-content .general .single-settings.preview-setting .remove-attachment:before,
983
  .rex-pano-tab-content .general .single-settings.preview-setting .remove-attachment:after {
984
  content: "";
985
  position: absolute;
admin/js/wpvr-admin.js CHANGED
@@ -702,7 +702,7 @@
702
 
703
  file_fram.open();
704
  });
705
-
706
  //----remove tour preview image----
707
  $(document).on("click", ".remove-attachment", function(event) {
708
  $(this).hide();
@@ -1202,9 +1202,6 @@
1202
  }
1203
  }
1204
  }
1205
-
1206
-
1207
-
1208
-
1209
  });
 
1210
  })(jQuery);
702
 
703
  file_fram.open();
704
  });
705
+
706
  //----remove tour preview image----
707
  $(document).on("click", ".remove-attachment", function(event) {
708
  $(this).hide();
1202
  }
1203
  }
1204
  }
 
 
 
 
1205
  });
1206
+
1207
  })(jQuery);
admin/js/wpvr-global.js CHANGED
@@ -44,6 +44,26 @@
44
  $('#'+val).show();
45
  $('#'+val).siblings().hide();
46
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  });
48
 
49
  $(document).on("click","#wpvr-dismissible",function(e) {
@@ -62,5 +82,25 @@
62
  });
63
  });
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
  })( jQuery );
44
  $('#'+val).show();
45
  $('#'+val).siblings().hide();
46
  });
47
+
48
+ function wpvr_bf_notice_dismiss(event) {
49
+ event.preventDefault();
50
+ console.log("test");
51
+ var ajaxurl = wpvr_global_obj.ajaxurl;
52
+ var that = $(this);
53
+ $.ajax({
54
+ type : "post",
55
+ dataType : "json",
56
+ url : ajaxurl,
57
+ data : { action: "wpvr_black_friday_offer_notice_dismiss" },
58
+ success: function(response) {
59
+ if(response.success) {
60
+ that.fadeOut('slow');
61
+ console.log(response)
62
+ }
63
+ }
64
+ })
65
+ }
66
+ $(document).on('click', '.wpvr-black-friday-offer notice-dismiss', wpvr_bf_notice_dismiss);
67
  });
68
 
69
  $(document).on("click","#wpvr-dismissible",function(e) {
82
  });
83
  });
84
 
85
+ function wpvr_bf_notice_dismiss(event) {
86
+ event.preventDefault();
87
+ console.log("test");
88
+ var ajaxurl = wpvr_global_obj.ajaxurl;
89
+ var that = $(this);
90
+ $.ajax({
91
+ type : "post",
92
+ dataType : "json",
93
+ url : ajaxurl,
94
+ data : { action: "wpvr_black_friday_offer_notice_dismiss" },
95
+ success: function(response) {
96
+ if(response.success) {
97
+ that.fadeOut('slow');
98
+ console.log(response)
99
+ }
100
+ }
101
+ })
102
+ }
103
+ $(document).on('click', '.wpvr-black-friday-offer .notice-dismiss', wpvr_bf_notice_dismiss);
104
+
105
 
106
  })( jQuery );
admin/partials/wpvr_documentation.php CHANGED
@@ -146,7 +146,13 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
146
 
147
  <div class="promotion-area">
148
  <h4 class="title"><?php _e('Check out our other amazing free plugins!','wpvr'); ?></h4>
149
-
 
 
 
 
 
 
150
  <div class="single-block m2c">
151
  <span class="icon">
152
  <img src="<?php echo WPVR_PLUGIN_DIR_URL . 'admin/icon/m2c.png'?>" alt="icon">
146
 
147
  <div class="promotion-area">
148
  <h4 class="title"><?php _e('Check out our other amazing free plugins!','wpvr'); ?></h4>
149
+ <div class="single-block bf">
150
+ <a href="https://rextheme.com/black-friday/" target="_blank">
151
+ <div class="wpvr-banner-container">
152
+ <img src="<?php echo WPVR_PLUGIN_DIR_URL . 'images/Settings-Page_Banner.png'; ?>" style="max-width: 100%;">
153
+ </div>
154
+ </a>
155
+ </div>
156
  <div class="single-block m2c">
157
  <span class="icon">
158
  <img src="<?php echo WPVR_PLUGIN_DIR_URL . 'admin/icon/m2c.png'?>" alt="icon">
images/Dashboard_banner.png ADDED
Binary file
images/Settings-Page_Banner.png ADDED
Binary file
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.9.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
@@ -34,7 +34,7 @@ require plugin_dir_path(__FILE__) . 'elementor/elementor.php';
34
  * Start at version 1.0.0 and use SemVer - https://semver.org
35
  * Rename this for your plugin and update it as you release new versions.
36
  */
37
- define('WPVR', '1.0.0');
38
  define('WPVR_FILE', __FILE__);
39
  define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
40
  define("WPVR_PLUGIN_PUBLIC_DIR_URL", plugin_dir_url(__FILE__) .'public/');
@@ -1437,7 +1437,7 @@ function wpvr_add_role_cap()
1437
  <?php
1438
  }
1439
  }
1440
- add_action('admin_notices', 'sample_admin_notice__success');
1441
 
1442
  //===Oxygen widget===//
1443
  add_action('plugins_loaded', function () {
@@ -1452,3 +1452,66 @@ function wpvr_mobile_media_handle()
1452
  {
1453
  add_image_size('wpvr_mobile', 4096, 2048); //mobile
1454
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 7.0.0
20
  * Author: Rextheme
21
  * Author URI: http://rextheme.com/
22
  * License: GPL-2.0+
34
  * Start at version 1.0.0 and use SemVer - https://semver.org
35
  * Rename this for your plugin and update it as you release new versions.
36
  */
37
+ define('WPVR', '7.0.0');
38
  define('WPVR_FILE', __FILE__);
39
  define("WPVR_PLUGIN_DIR_URL", plugin_dir_url(__FILE__));
40
  define("WPVR_PLUGIN_PUBLIC_DIR_URL", plugin_dir_url(__FILE__) .'public/');
1437
  <?php
1438
  }
1439
  }
1440
+ // add_action('admin_notices', 'sample_admin_notice__success');
1441
 
1442
  //===Oxygen widget===//
1443
  add_action('plugins_loaded', function () {
1452
  {
1453
  add_image_size('wpvr_mobile', 4096, 2048); //mobile
1454
  }
1455
+
1456
+ //===Black Friday Notice===//
1457
+ function wpvr_black_friday_offer_notice(){
1458
+ $screen = get_current_screen();
1459
+ if ($screen->id=="toplevel_page_wpvr" || $screen->id=="wpvr_item" || $screen->id=="edit-wpvr_item" || $screen->id=="wp-vr_page_wpvr-addons" || $screen->id=="wp-vr_page_wpvrpro") {
1460
+
1461
+ $current_time = time();
1462
+ $date_now = date("Y-m-d", $current_time);
1463
+ $notice_info = get_option('wpvr_bff_notice', array(
1464
+ 'show_notice' => 'yes',
1465
+ 'updated_at' => $current_time,
1466
+ ));
1467
+ if( $notice_info['show_notice'] === 'yes' && $date_now <= '2020-11-27' ) {?>
1468
+ <style>
1469
+ .wpvr-black-friday-offer {
1470
+ padding: 0!important;
1471
+ border: 0;
1472
+ }
1473
+ .wpvr-black-friday-offer img {
1474
+ display: block;
1475
+ width: 100%;
1476
+ }
1477
+ .wpvr-black-friday-offer .notice-dismiss {
1478
+ top: 4px;
1479
+ right: 6px;
1480
+ padding: 4px;
1481
+ background: #fff;
1482
+ border-radius: 100%;
1483
+ }
1484
+ .wpvr-black-friday-offer .notice-dismiss:before {
1485
+ content: "\f335";
1486
+ font-size: 20px;
1487
+ }
1488
+
1489
+ </style>
1490
+ <div class="wpvr-black-friday-offer notice notice-warning is-dismissible">
1491
+ <a href="https://rextheme.com/black-friday/" target="_blank">
1492
+ <div class="wpvr-banner-container">
1493
+ <img src="<?php echo WPVR_PLUGIN_DIR_URL . 'images/Dashboard_banner.png'; ?>" style="max-width: 100%;">
1494
+ </div>
1495
+ </a>
1496
+ </div>
1497
+ <?php }
1498
+
1499
+ }
1500
+ }
1501
+ add_action('admin_notices', 'wpvr_black_friday_offer_notice');
1502
+
1503
+ add_action("wp_ajax_wpvr_black_friday_offer_notice_dismiss", "wpvr_black_friday_offer_notice_dismiss");
1504
+ function wpvr_black_friday_offer_notice_dismiss() {
1505
+ $current_time = time();
1506
+ $info = array(
1507
+ 'show_notice' => 'no',
1508
+ 'updated_at' => $current_time,
1509
+ );
1510
+ update_option('wpvr_bff_notice', $info);
1511
+ $result = array(
1512
+ 'success' => true
1513
+ );
1514
+ $result = json_encode($result);
1515
+ echo $result;
1516
+ wp_die();
1517
+ }