Ocean Demo Import - Version 1.0.11

Version Description

  • Added: Codes for the Freemius switch.
Download this release

Release Info

Developer oceanwp
Plugin Icon 128x128 Ocean Demo Import
Version 1.0.11
Comparing to
See all releases

Code changes from version 1.0.10 to 1.0.11

Files changed (2) hide show
  1. ocean-demo-import.php +50 -3
  2. readme.txt +5 -2
ocean-demo-import.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin Name: Ocean Demo Import
4
  * Plugin URI: https://oceanwp.org/extension/ocean-demo-import/
5
  * Description: Import the OceanWP demo content, widgets and customizer settings with one click.
6
- * Version: 1.0.10
7
  * Author: OceanWP
8
  * Author URI: https://oceanwp.org/
9
  * Requires at least: 4.0.0
10
- * Tested up to: 5.0
11
  *
12
  * Text Domain: ocean-demo-import
13
  * Domain Path: /languages/
@@ -86,7 +86,7 @@ final class Ocean_Demo_Import {
86
  $this->token = 'ocean-demo-import';
87
  $this->plugin_url = plugin_dir_url( __FILE__ );
88
  $this->plugin_path = plugin_dir_path( __FILE__ );
89
- $this->version = '1.0.10';
90
 
91
  define( 'ODI_PATH', $this->plugin_path );
92
  define( 'ODI_URL', $this->plugin_url );
@@ -181,3 +181,50 @@ final class Ocean_Demo_Import {
181
  }
182
 
183
  } // End Class
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  * Plugin Name: Ocean Demo Import
4
  * Plugin URI: https://oceanwp.org/extension/ocean-demo-import/
5
  * Description: Import the OceanWP demo content, widgets and customizer settings with one click.
6
+ * Version: 1.0.11
7
  * Author: OceanWP
8
  * Author URI: https://oceanwp.org/
9
  * Requires at least: 4.0.0
10
+ * Tested up to: 5.2
11
  *
12
  * Text Domain: ocean-demo-import
13
  * Domain Path: /languages/
86
  $this->token = 'ocean-demo-import';
87
  $this->plugin_url = plugin_dir_url( __FILE__ );
88
  $this->plugin_path = plugin_dir_path( __FILE__ );
89
+ $this->version = '1.0.11';
90
 
91
  define( 'ODI_PATH', $this->plugin_path );
92
  define( 'ODI_URL', $this->plugin_url );
181
  }
182
 
183
  } // End Class
184
+
185
+ #--------------------------------------------------------------------------------
186
+ #region Freemius
187
+ #--------------------------------------------------------------------------------
188
+
189
+ if ( ! function_exists( 'ocean_demo_import_fs' ) ) {
190
+ // Create a helper function for easy SDK access.
191
+ function ocean_demo_import_fs() {
192
+ global $ocean_demo_import_fs;
193
+
194
+ if ( ! isset( $ocean_demo_import_fs ) ) {
195
+ $ocean_demo_import_fs = OceanWP_EDD_Addon_Migration::instance( 'ocean_demo_import_fs' )->init_sdk( array(
196
+ 'id' => '3811',
197
+ 'slug' => 'ocean-demo-import',
198
+ 'public_key' => 'pk_28285e0f391b4955f4460589da147',
199
+ 'is_premium' => false,
200
+ 'is_premium_only' => false,
201
+ 'has_paid_plans' => false,
202
+ ) );
203
+ }
204
+
205
+ return $ocean_demo_import_fs;
206
+ }
207
+
208
+ function ocean_demo_import_fs_addon_init() {
209
+ if ( class_exists( 'Ocean_Extra' ) ) {
210
+ OceanWP_EDD_Addon_Migration::instance( 'ocean_demo_import_fs' )->init();
211
+ }
212
+ }
213
+
214
+ if ( 0 == did_action( 'owp_fs_loaded' ) ) {
215
+ // Init add-on only after parent theme was loaded.
216
+ add_action( 'owp_fs_loaded', 'ocean_demo_import_fs_addon_init', 15 );
217
+ } else {
218
+ if ( class_exists( 'Ocean_Extra' ) ) {
219
+ /**
220
+ * This makes sure that if the theme was already loaded
221
+ * before the plugin, it will run Freemius right away.
222
+ *
223
+ * This is crucial for the plugin's activation hook.
224
+ */
225
+ ocean_demo_import_fs_addon_init();
226
+ }
227
+ }
228
+ }
229
+
230
+ #endregion
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: oceanwp
3
  Tags: import, content, demo, data, widgets, settings, oceanwp
4
  Requires at least: 4.0
5
- Tested up to: 5.0
6
- Stable tag: 1.0.10
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -30,6 +30,9 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
30
 
31
  == Changelog ==
32
 
 
 
 
33
  = 1.0.10 =
34
  - Added: Notice added to tell you that this plugin can be removed from your website as all free demos have been directly incorporated in Ocean Extra.
35
 
2
  Contributors: oceanwp
3
  Tags: import, content, demo, data, widgets, settings, oceanwp
4
  Requires at least: 4.0
5
+ Tested up to: 5.2
6
+ Stable tag: 1.0.11
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
30
 
31
  == Changelog ==
32
 
33
+ = 1.0.11 =
34
+ - Added: Codes for the Freemius switch.
35
+
36
  = 1.0.10 =
37
  - Added: Notice added to tell you that this plugin can be removed from your website as all free demos have been directly incorporated in Ocean Extra.
38