Version Description
- Problem ith images fixed.
Download this release
Release Info
Developer | oceanwp |
Plugin | Ocean Demo Import |
Version | 1.0.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.1.1
- includes/install-demos.php +2 -2
- ocean-demo-import.php +8 -9
- readme.txt +6 -3
includes/install-demos.php
CHANGED
@@ -47,7 +47,7 @@ class ODI_Install_Demos {
|
|
47 |
|
48 |
<div id="odi-demo-wrap" class="wrap">
|
49 |
|
50 |
-
<h2>
|
51 |
|
52 |
<div class="updated error importer-notice importer-notice-1" style="display: none;">
|
53 |
|
@@ -105,7 +105,7 @@ class ODI_Install_Demos {
|
|
105 |
<div class="theme">
|
106 |
|
107 |
<div class="theme-screenshot odi-install" data-demo-id="<?php echo esc_attr( $demo ); ?>">
|
108 |
-
<img src="https://raw.githubusercontent.com/oceanwp/
|
109 |
|
110 |
<div class="demo-import-loader preview-all preview-all-<?php echo esc_attr( $demo ); ?>"></div>
|
111 |
|
47 |
|
48 |
<div id="odi-demo-wrap" class="wrap">
|
49 |
|
50 |
+
<h2>OceanWP - <?php esc_attr_e( 'Install Demos', 'ocean-demo-import' ); ?></h2>
|
51 |
|
52 |
<div class="updated error importer-notice importer-notice-1" style="display: none;">
|
53 |
|
105 |
<div class="theme">
|
106 |
|
107 |
<div class="theme-screenshot odi-install" data-demo-id="<?php echo esc_attr( $demo ); ?>">
|
108 |
+
<img src="https://raw.githubusercontent.com/oceanwp/oceanwp-sample-data/master/<?php echo esc_attr( $demo ); ?>/preview.jpg" />
|
109 |
|
110 |
<div class="demo-import-loader preview-all preview-all-<?php echo esc_attr( $demo ); ?>"></div>
|
111 |
|
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.1
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
* Requires at least: 4.0.0
|
10 |
-
* Tested up to: 4.7
|
11 |
*
|
12 |
* Text Domain: ocean-demo-import
|
13 |
* Domain Path: /languages/
|
@@ -87,9 +87,8 @@ final class Ocean_Demo_Import {
|
|
87 |
$this->token = 'ocean-demo-import';
|
88 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
89 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
90 |
-
$this->version = '1.0.1';
|
91 |
|
92 |
-
define( 'ODI_ROOT', dirname( __FILE__ ) );
|
93 |
define( 'ODI_PATH', $this->plugin_path );
|
94 |
define( 'ODI_URL', $this->plugin_url );
|
95 |
|
@@ -174,11 +173,11 @@ final class Ocean_Demo_Import {
|
|
174 |
public function odi_setup() {
|
175 |
$theme = wp_get_theme();
|
176 |
|
177 |
-
if ( 'OceanWP' == $theme->name || 'oceanwp' == $theme->template
|
178 |
if ( is_admin() ) {
|
179 |
-
require_once(
|
180 |
-
require_once(
|
181 |
-
require_once(
|
182 |
}
|
183 |
add_action( 'admin_enqueue_scripts', array( $this, 'odi_scripts' ) );
|
184 |
} else {
|
@@ -194,7 +193,7 @@ final class Ocean_Demo_Import {
|
|
194 |
*/
|
195 |
public function odi_install_ocean_notice() {
|
196 |
echo '<div class="notice is-dismissible updated">
|
197 |
-
<p>' . esc_html__( 'Ocean Demo Import requires that you use OceanWP as your parent theme.', 'ocean-demo-import' ) . ' <a href="https://oceanwp.
|
198 |
</div>';
|
199 |
}
|
200 |
|
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.1.1
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
* Requires at least: 4.0.0
|
10 |
+
* Tested up to: 4.7.2
|
11 |
*
|
12 |
* Text Domain: ocean-demo-import
|
13 |
* Domain Path: /languages/
|
87 |
$this->token = 'ocean-demo-import';
|
88 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
89 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
90 |
+
$this->version = '1.0.1.1';
|
91 |
|
|
|
92 |
define( 'ODI_PATH', $this->plugin_path );
|
93 |
define( 'ODI_URL', $this->plugin_url );
|
94 |
|
173 |
public function odi_setup() {
|
174 |
$theme = wp_get_theme();
|
175 |
|
176 |
+
if ( 'OceanWP' == $theme->name || 'oceanwp' == $theme->template ) {
|
177 |
if ( is_admin() ) {
|
178 |
+
require_once( ODI_PATH .'/includes/class/class-helpers.php' );
|
179 |
+
require_once( ODI_PATH .'/includes/importer.php' );
|
180 |
+
require_once( ODI_PATH .'/includes/install-demos.php' );
|
181 |
}
|
182 |
add_action( 'admin_enqueue_scripts', array( $this, 'odi_scripts' ) );
|
183 |
} else {
|
193 |
*/
|
194 |
public function odi_install_ocean_notice() {
|
195 |
echo '<div class="notice is-dismissible updated">
|
196 |
+
<p>' . esc_html__( 'Ocean Demo Import requires that you use OceanWP as your parent theme.', 'ocean-demo-import' ) . ' <a href="https://oceanwp.org/">' . esc_html__( 'Install OceanWP Now', 'ocean-demo-import' ) . '</a></p>
|
197 |
</div>';
|
198 |
}
|
199 |
|
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: 4.7
|
6 |
-
Stable tag: 1.0.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -21,7 +21,7 @@ This plugin requires the [OceanWP](https://oceanwp.org/) theme to be installed.
|
|
21 |
|
22 |
== Frequently Asked Questions ==
|
23 |
|
24 |
-
= I installed the plugin but
|
25 |
|
26 |
This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
|
27 |
|
@@ -31,6 +31,9 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
|
|
31 |
|
32 |
== Changelog ==
|
33 |
|
|
|
|
|
|
|
34 |
= 1.0.1 =
|
35 |
- Support OceanWP 1.1.
|
36 |
|
2 |
Contributors: oceanwp
|
3 |
Tags: import, content, demo, data, widgets, settings, oceanwp
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.7.2
|
6 |
+
Stable tag: 1.0.1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
21 |
|
22 |
== Frequently Asked Questions ==
|
23 |
|
24 |
+
= I installed the plugin but it does not work =
|
25 |
|
26 |
This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
|
27 |
|
31 |
|
32 |
== Changelog ==
|
33 |
|
34 |
+
= 1.0.1.1 =
|
35 |
+
- Problem ith images fixed.
|
36 |
+
|
37 |
= 1.0.1 =
|
38 |
- Support OceanWP 1.1.
|
39 |
|