Photo Gallery by WD – Responsive Photo Gallery - Version 1.5.51

Version Description

  • Removed: Dismissable notification about new offer by 10Web.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Photo Gallery by WD – Responsive Photo Gallery
Version 1.5.51
Comparing to
See all releases

Code changes from version 1.5.50 to 1.5.51

admin/controllers/Uninstall.php CHANGED
@@ -21,7 +21,7 @@ class UninstallController_bwg {
21
  if ( !BWG()->is_pro ) {
22
  global $bwg_options;
23
  if ( !class_exists("TenWebNewLibConfig") ) {
24
- $plugin_dir = apply_filters('tenweb_new_free_users_lib_path', array('version' => '1.1.2', 'path' => BWG()->plugin_dir));
25
  include_once($plugin_dir['path'] . "/wd/config.php");
26
  }
27
  $config = new TenWebNewLibConfig();
21
  if ( !BWG()->is_pro ) {
22
  global $bwg_options;
23
  if ( !class_exists("TenWebNewLibConfig") ) {
24
+ $plugin_dir = apply_filters('tenweb_free_users_lib_path', array('version' => '1.1.3', 'path' => BWG()->plugin_dir));
25
  include_once($plugin_dir['path'] . "/wd/config.php");
26
  }
27
  $config = new TenWebNewLibConfig();
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
- * Version: 1.5.50
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -86,8 +86,8 @@ final class BWG {
86
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
87
  $this->front_url = $this->plugin_url;
88
  $this->main_file = plugin_basename(__FILE__);
89
- $this->plugin_version = '1.5.50';
90
- $this->db_version = '1.5.50';
91
  $this->prefix = 'bwg';
92
  $this->nicename = __('Photo Gallery', $this->prefix);
93
 
@@ -384,18 +384,8 @@ final class BWG {
384
  $this->overview();
385
  add_action('init', array($this, 'language_load'));
386
  add_action('init', array($this, 'create_post_types'));
387
- $page = WDWLibrary::get('page');
388
- $taxonomy = WDWLibrary::get('taxonomy');
389
- if (($page != '') && (($page == 'galleries_' . $this->prefix) || ($page == 'albums_' . $this->prefix) || ($page == 'options_' . $this->prefix) || ($page == 'themes_' . $this->prefix) || ($page == 'addons_' . $this->prefix) || ($page == $this->prefix . '_tag'))) {
390
- $this->tenweb_speed();
391
- }
392
  }
393
 
394
- public function tenweb_speed() {
395
- do_action( $this->prefix . '_tenweb_speedOption_banner');
396
- }
397
-
398
-
399
  /**
400
  * Wordpress admin notice actions.
401
  */
@@ -1447,12 +1437,12 @@ final class BWG {
1447
  }
1448
 
1449
  public function init_free_users_lib() {
1450
- add_filter('tenweb_new_free_users_lib_path', array($this, 'tenweb_lib_path'));
1451
  }
1452
 
1453
  public function tenweb_lib_path($path) {
1454
  // The version of WD Lib
1455
- $version = '1.1.2';
1456
  if (!isset($path['version']) || version_compare($path['version'], $version) === -1) {
1457
  $path['version'] = $version;
1458
  $path['path'] = $this->plugin_dir;
@@ -1466,7 +1456,7 @@ final class BWG {
1466
  public function overview() {
1467
  if (is_admin() && !isset($_REQUEST['ajax'])) {
1468
  if (!class_exists("TenWebLibNew")) {
1469
- $plugin_dir = apply_filters('tenweb_new_free_users_lib_path', array('version' => '1.1.2', 'path' => $this->plugin_dir));
1470
  require_once($plugin_dir['path'] . '/wd/start.php');
1471
  }
1472
 
@@ -1700,8 +1690,6 @@ final class BWG {
1700
  "custom_post" => '',
1701
  "menu_position" => null,
1702
  "display_overview" => false,
1703
- "is_plugin_free" => !$this->is_pro,
1704
- "utm_source" => BWG()->utm_source . "&utm_campaign=hosting_from_plugins",
1705
  );
1706
 
1707
  ten_web_new_lib_init($bwg_options);
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/?utm_source=photo_gallery&utm_medium=free_plugin
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
+ * Version: 1.5.51
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/plugins/?utm_source=photo_gallery&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
86
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
87
  $this->front_url = $this->plugin_url;
88
  $this->main_file = plugin_basename(__FILE__);
89
+ $this->plugin_version = '1.5.51';
90
+ $this->db_version = '1.5.51';
91
  $this->prefix = 'bwg';
92
  $this->nicename = __('Photo Gallery', $this->prefix);
93
 
384
  $this->overview();
385
  add_action('init', array($this, 'language_load'));
386
  add_action('init', array($this, 'create_post_types'));
 
 
 
 
 
387
  }
388
 
 
 
 
 
 
389
  /**
390
  * Wordpress admin notice actions.
391
  */
1437
  }
1438
 
1439
  public function init_free_users_lib() {
1440
+ add_filter('tenweb_free_users_lib_path', array($this, 'tenweb_lib_path'));
1441
  }
1442
 
1443
  public function tenweb_lib_path($path) {
1444
  // The version of WD Lib
1445
+ $version = '1.1.3';
1446
  if (!isset($path['version']) || version_compare($path['version'], $version) === -1) {
1447
  $path['version'] = $version;
1448
  $path['path'] = $this->plugin_dir;
1456
  public function overview() {
1457
  if (is_admin() && !isset($_REQUEST['ajax'])) {
1458
  if (!class_exists("TenWebLibNew")) {
1459
+ $plugin_dir = apply_filters('tenweb_free_users_lib_path', array('version' => '1.1.3', 'path' => $this->plugin_dir));
1460
  require_once($plugin_dir['path'] . '/wd/start.php');
1461
  }
1462
 
1690
  "custom_post" => '',
1691
  "menu_position" => null,
1692
  "display_overview" => false,
 
 
1693
  );
1694
 
1695
  ten_web_new_lib_init($bwg_options);
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport,10web
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 4.6
5
  Tested up to: 5.4
6
- Stable tag: 1.5.50
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -282,8 +282,11 @@ Choose whether to display random or the first/last specific number of images.
282
 
283
  == Changelog ==
284
 
 
 
 
285
  = 1.5.50 =
286
- * Added: Dismissable notification about new offer by 10Web.
287
 
288
  = 1.5.49 =
289
  * Fixed: Navigation issue in lightbox for images with spaces in name.
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 4.6
5
  Tested up to: 5.4
6
+ Stable tag: 1.5.51
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
282
 
283
  == Changelog ==
284
 
285
+ = 1.5.51 =
286
+ * Removed: Dismissable notification about new offer by 10Web.
287
+
288
  = 1.5.50 =
289
+ * Added: Dismissable notification about new offer by 10Web.
290
 
291
  = 1.5.49 =
292
  * Fixed: Navigation issue in lightbox for images with spaces in name.
wd/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Version: 1.1.2
2
 
3
 
4
  Usage:
1
+ Version: 1.1.3
2
 
3
 
4
  Usage:
wd/assets/css/img/close.png DELETED
Binary file
wd/assets/css/img/google_cloud.png DELETED
Binary file
wd/assets/css/img/optimizer_banner_1024.png DELETED
Binary file
wd/assets/css/img/optimizer_banner_1280.png DELETED
Binary file
wd/assets/css/img/optimizer_banner_1366.png DELETED
Binary file
wd/assets/css/img/optimizer_banner_1920.png DELETED
Binary file
wd/assets/css/img/optimizer_banner_768.png DELETED
Binary file
wd/assets/css/speedOptimizer_banner.css DELETED
@@ -1,234 +0,0 @@
1
- img.google-cloud-mobile {
2
- display: none;
3
- }
4
- img.google-cloud {
5
- height: 38px;
6
- }
7
- .close-btn {
8
- background-image: url(img/close.png);
9
- background-repeat: no-repeat;
10
- background-size: 14px;
11
- display: inline-block;
12
- width: 14px;
13
- height: 14px;
14
- position: absolute;
15
- top: 20px;
16
- right: 20px;
17
- cursor: pointer;
18
- }
19
- .br-mobile {
20
- display:none;
21
- }
22
- .free-plugins-banner-container {
23
- position: relative;
24
- font-family: Open Sans;
25
- display: flex;
26
- justify-content: space-between;
27
- background-color: white;
28
- box-shadow: 0px 5px 20px #E5E6E8CC;
29
- border-radius: 15px;
30
- height: 282px;
31
- background-image: url(img/optimizer_banner_1920.png);
32
- background-repeat: no-repeat;
33
- padding-left: 410px;
34
- margin: 40px 20px 20px 0;
35
- }
36
- .free-plugins-banner-container .banner-left-container {
37
- padding: 40px 0;
38
- }
39
- .free-plugins-banner-container .banner-left-container .plugin-title {
40
- font-size: 18px;
41
- font-weight: 600;
42
- margin: 0;
43
- letter-spacing: 0;
44
- }
45
- .free-plugins-banner-container .banner-left-container .optimizer-banner-title {
46
- font-size: 50px;
47
- font-weight: 800;
48
- margin: 0;
49
- letter-spacing: 0.41;
50
- padding: 15px 0 10px 0;
51
- line-height: 1.3;
52
- }
53
- .free-plugins-banner-container .banner-left-container .banner-description {
54
- font-size: 18px;
55
- font-weight: 300;
56
- margin: 0;
57
- letter-spacing: 0;
58
- padding: 0 0 20px 0;
59
- }
60
- .free-plugins-banner-container .banner-left-container .line {
61
- width: 40px;
62
- border-bottom: 2px solid #F8C332;
63
- }
64
- .free-plugins-banner-container .banner-right-container {
65
- text-align: center;
66
- margin: 111px 40px 81px 10px;
67
- }
68
- .free-plugins-banner-container .banner-right-container .button-div{
69
- margin-bottom: 8px;
70
- background: #F8C332;
71
- border-radius: 30px;
72
- padding: 20px 61px 19px 61px;
73
- text-transform: uppercase;
74
- }
75
- .free-plugins-banner-container .banner-right-container a{
76
- text-decoration: none;
77
- color: white;
78
- font-size: 20px;
79
- font-weight: 600;
80
- letter-spacing: 0.17px;
81
- }
82
- .free-plugins-banner-container .banner-right-container a:hover{
83
- text-decoration: none;
84
- }
85
- .free-plugins-banner-container .banner-right-container .button-div:hover{
86
- cursor: pointer;
87
- background: #f9bb11;
88
- }
89
- .free-plugins-banner-container .banner-right-container p{
90
- margin: 0;
91
- font-size: 16px;
92
- letter-spacing: 0.13px;
93
- font-weight: 100;
94
- }
95
- @media screen and (max-width: 1660px) {
96
- img.google-cloud {
97
- height: 30px;
98
- }
99
- .free-plugins-banner-container {
100
- height: 247px;
101
- background-image: url(img/optimizer_banner_1366.png);
102
- background-repeat: no-repeat;
103
- padding-left: 300px;
104
- }
105
- .free-plugins-banner-container .banner-left-container .plugin-title,
106
- .free-plugins-banner-container .banner-left-container .banner-description,
107
- .free-plugins-banner-container .banner-right-container a {
108
- font-size: 15px;
109
- }
110
- .free-plugins-banner-container .banner-right-container {
111
- margin: 91px 30px 91px 5px;
112
- }
113
- .free-plugins-banner-container .banner-left-container .optimizer-banner-title {
114
- font-size: 38px;
115
- }
116
- .free-plugins-banner-container .banner-right-container p{
117
- font-size: 12px;
118
- }
119
- .free-plugins-banner-container .banner-right-container .button-div{
120
- padding: 10px 27px;
121
- }
122
- }
123
- @media screen and (max-width: 1281px) {
124
- .free-plugins-banner-container {
125
- background-image: url(img/optimizer_banner_1280.png);
126
- background-repeat: no-repeat;
127
- padding-left: 270px;
128
- }
129
- }
130
- @media screen and (max-width: 1220px) {
131
- .free-plugins-banner-container {
132
- background-image: url(img/optimizer_banner_1024.png);
133
- background-repeat: no-repeat;
134
- height: 262px;
135
- padding-bottom: 25px;
136
- padding-left: 250px;
137
- padding-right: 30px;
138
- display: block;
139
- }
140
- .free-plugins-banner-container .banner-left-container {
141
- padding: 25px 0 10px 0;
142
- }
143
- .free-plugins-banner-container .banner-left-container .plugin-title,
144
- .free-plugins-banner-container .banner-left-container .banner-description {
145
- font-size: 14px;
146
- }
147
- .free-plugins-banner-container .banner-left-container .optimizer-banner-title {
148
- font-size: 36px;
149
- }
150
- .free-plugins-banner-container .banner-right-container {
151
- text-align: center;
152
- width: 150px;
153
- float: right;
154
- margin: 0;
155
- }
156
- .free-plugins-banner-container .banner-right-container .button-div{
157
- width: 97px;
158
- }
159
- }
160
- @media screen and (max-width: 1015px) {
161
- .free-plugins-banner-container {
162
- background-image: url(img/optimizer_banner_768.png);
163
- background-repeat: no-repeat;
164
- padding-left: 155px;
165
- }
166
- .free-plugins-banner-container .banner-right-container {
167
- text-align: center;
168
- width: 150px;
169
- float: right;
170
- margin: 0;
171
- }
172
- }
173
- @media screen and (max-width: 750px) {
174
- img.google-cloud {
175
- display: none;
176
- }
177
- img.google-cloud-mobile {
178
- display: block;
179
- margin-left: auto;
180
- padding-bottom: 20px;
181
- height: 28px;
182
- }
183
- .close-btn {
184
- background-size: 10px;
185
- width: 10px;
186
- height: 10px;
187
- position: absolute;
188
- top: 10px;
189
- right: 10px;
190
- }
191
- .br-mobile {
192
- display: block;
193
- }
194
- .free-plugins-banner-container {
195
- background-image: unset;
196
- padding: 30px 15px;
197
- text-align: center;
198
- height: auto;
199
- margin: 10px 10px 10px 0;
200
- }
201
- .free-plugins-banner-container .banner-left-container {
202
- padding: 0;
203
- }
204
- .free-plugins-banner-container .banner-left-container .line{
205
- display: none;
206
- }
207
- .free-plugins-banner-container .banner-left-container .plugin-title,
208
- .free-plugins-banner-container .banner-left-container .banner-description {
209
- font-size: 16px;
210
- }
211
- .free-plugins-banner-container .banner-left-container .optimizer-banner-title {
212
- font-size: 26px;
213
- padding: 10px 0 5px 0;
214
- }
215
- .free-plugins-banner-container .banner-right-container {
216
- text-align: center;
217
- margin: 0 auto;
218
- float: unset;
219
- }
220
- .free-plugins-banner-container .banner-right-container .button-div{
221
- width: 97px;
222
- margin-top: 10px;
223
- }
224
- }
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wd/assets/js/speedOptimizer_banner.js DELETED
@@ -1,18 +0,0 @@
1
- jQuery(document).ready(function(){
2
- jQuery(document).on("click", ".close-btn", function () {
3
- jQuery(".free-plugins-banner-container").css( 'display', 'none' );
4
- jQuery.ajax({
5
- type: "POST",
6
- url: ajaxurl,
7
- data: {
8
- action: 'wdSpeed_banner',
9
- task: "closeBanner",
10
- },
11
- success: function (response) {
12
- jQuery(".free-plugins-banner-container").remove();
13
- },
14
- error: function (jqXHR, textStatus, errorThrown) {
15
- }
16
- });
17
- });
18
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wd/config.php CHANGED
@@ -36,8 +36,7 @@ class TenWebNewLibConfig {
36
  public $menu_position = NULL;
37
  public $overview_welcome_image = NULL;
38
  public $display_overview = TRUE;
39
- public $is_plugin_free = FALSE;
40
- public $utm_source = NULL;
41
  public function set_options( $options ) {
42
 
43
  if ( isset($options["prefix"]) ) {
@@ -115,12 +114,6 @@ class TenWebNewLibConfig {
115
  if ( isset($options["display_overview"]) ) {
116
  $this->display_overview = $options["display_overview"];
117
  }
118
- if ( isset($options["is_plugin_free"]) ) {
119
- $this->is_plugin_free= $options["is_plugin_free"];
120
- }
121
- if ( isset($options["utm_source"]) ) {
122
- $this->utm_source = $options["utm_source"];
123
- }
124
  // directories
125
  $this->wd_dir = dirname($this->plugin_main_file) . '/wd';
126
  $this->wd_dir_includes = $this->wd_dir . '/includes';
36
  public $menu_position = NULL;
37
  public $overview_welcome_image = NULL;
38
  public $display_overview = TRUE;
39
+
 
40
  public function set_options( $options ) {
41
 
42
  if ( isset($options["prefix"]) ) {
114
  if ( isset($options["display_overview"]) ) {
115
  $this->display_overview = $options["display_overview"];
116
  }
 
 
 
 
 
 
117
  // directories
118
  $this->wd_dir = dirname($this->plugin_main_file) . '/wd';
119
  $this->wd_dir_includes = $this->wd_dir . '/includes';
wd/includes/speedOptimizer_banner.php DELETED
@@ -1,69 +0,0 @@
1
- <?php
2
- if ( !defined('ABSPATH') ) {
3
- exit;
4
- }
5
-
6
- class speedOptimizer_banner {
7
- public $config;
8
- public $wd_speedOption_banner;
9
- public $wd_prefix;
10
-
11
- /**
12
- * @param array $options
13
- */
14
- public function __construct( $options = array() ) {
15
- if ( isset($this->wd_speedOption_banner) && $this->wd_speedOption_banner == 1 ) {
16
- return;
17
- }
18
- $this->config = $options;
19
- $this->wd_prefix = $options->prefix;
20
- $this->speedOptimizer_banner_script_style();
21
- $task = isset($_POST['task']) ? sanitize_text_field($_POST['task']) : '';
22
- if( $task == 'closeBanner' ){
23
- $this->closeBanner();
24
- } else {
25
- add_action('admin_notices', array( $this, 'wd_speedOptimizer_banner' ));
26
- }
27
- }
28
-
29
- public function wd_speedOptimizer_banner(){
30
- $config = $this->config;
31
- ?>
32
- <div class="free-plugins-banner-container container wrap">
33
- <span class="close-btn"></span>
34
- <div class="banner-left-container">
35
- <p class="plugin-title"><?php echo $config->plugin_title; ?> created by 10Web</p>
36
- <h2 class="optimizer-banner-title">Managed <br class ="br-mobile"> WordPress Hosting</h2>
37
- <img class="google-cloud-mobile" src="<?php echo $config->wd_url_css . '/img/google_cloud.png'; ?>">
38
- <p class="banner-description">Copy your website with 1click to 10Web & automatically get 95+ PageSpeed Score</p>
39
- <div class="line"></div>
40
- <img class="google-cloud" src="<?php echo $config->wd_url_css . '/img/google_cloud.png'; ?>">
41
- </div>
42
- <div class="banner-right-container">
43
- <div class="button-div">
44
- <a href="https://10web.io/<?php echo $config->utm_source;?>" target="_blank">learn more</a>
45
- </div>
46
- <p>14-Day Free Trial</p>
47
- </div>
48
- </div>
49
-
50
- <?php
51
- }
52
-
53
- /* Include js and css */
54
- public function speedOptimizer_banner_script_style() {
55
- $wd_options = $this->config;
56
- wp_register_script('speedOptimizer_banner_js', $wd_options->wd_url_js . '/speedOptimizer_banner.js', array( 'jquery' ));
57
- wp_register_style('speedOptimizer_banner_css', $wd_options->wd_url_css . '/speedOptimizer_banner.css');
58
- wp_enqueue_style('wd_speedOptimizer-open-sans', 'https://fonts.googleapis.com/css?family=Open+Sans:100,200,300,400,600,700,800&display=swap');
59
- wp_enqueue_script('speedOptimizer_banner_js');
60
- wp_enqueue_style('speedOptimizer_banner_css');
61
- }
62
-
63
- /* Close banner */
64
- public function closeBanner() {
65
- $this->wd_speedOption_banner = 1;
66
- $wd_speedOption_banner = $this->wd_speedOption_banner;
67
- update_option('wd_speedOption_banner', $wd_speedOption_banner);
68
- }
69
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wd/wd.php CHANGED
@@ -8,7 +8,7 @@ class TenWebLibNew {
8
  public $overview_instance;
9
  public $subscribe_instance;
10
  public $config;
11
- private $version = "1.1.2";
12
 
13
  public function __construct() {
14
  // Add menu for Overview page
@@ -23,32 +23,11 @@ class TenWebLibNew {
23
  $config = new TenWebNewLibConfig();
24
  $config->set_options($options);
25
  $this->config = $config;
26
- $is_free = $config->is_plugin_free;
27
  if ( !class_exists("TenWebNewLibApi") ) {
28
  $this->wd_includes();
29
  }
30
  $this->init_classes();
31
  $this->register_hooks();
32
-
33
- if( $is_free ) {
34
- $wd_speedOption_banner = get_option('wd_speedOption_banner');
35
- if ( empty( $wd_speedOption_banner ) ) {
36
- add_action('wp_ajax_wdSpeed_banner', array( $this, 'tenweb_speed__banner_ajax' )); // Banner for check site speed.
37
- add_action( $this->config->prefix . '_tenweb_speedOption_banner', array( $this, 'tenweb_speedOption_banner_init' ), 8);
38
- }
39
- }
40
-
41
- }
42
-
43
- public function tenweb_speedOption_banner_init() {
44
- if ( file_exists($this->config->wd_dir_includes . "/speedOptimizer_banner.php") && !class_exists("speedOptimizer_banner") ) {
45
- require_once $this->config->wd_dir_includes . "/speedOptimizer_banner.php";
46
- }
47
- new speedOptimizer_banner($this->config);
48
- }
49
-
50
- public function tenweb_speed__banner_ajax() {
51
- do_action($this->config->prefix . '_tenweb_speedOption_banner');
52
  }
53
 
54
  // Create overview menu page
8
  public $overview_instance;
9
  public $subscribe_instance;
10
  public $config;
11
+ private $version = "1.1.3";
12
 
13
  public function __construct() {
14
  // Add menu for Overview page
23
  $config = new TenWebNewLibConfig();
24
  $config->set_options($options);
25
  $this->config = $config;
 
26
  if ( !class_exists("TenWebNewLibApi") ) {
27
  $this->wd_includes();
28
  }
29
  $this->init_classes();
30
  $this->register_hooks();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  }
32
 
33
  // Create overview menu page