Version Description
Download this release
Release Info
Developer | Nikschavan |
Plugin | Astra Starter Sites |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- assets/js/admin.js +9 -13
- astra-sites.php +2 -2
- importers/wxr-importer/class-astra-wxr-importer.php +13 -1
- languages/astra-sites.pot +2 -2
- readme.txt +5 -2
assets/js/admin.js
CHANGED
@@ -732,23 +732,19 @@ jQuery(document).on('click', '.astra-demo-import', function (event) {
|
|
732 |
.attr('target', '_blank')
|
733 |
.append('<i class="dashicons dashicons-external"></i>')
|
734 |
.attr('href', astraDemo.siteURL );
|
735 |
-
} else {
|
736 |
-
|
737 |
-
jQuery('.astra-demo-import').removeClass('updating-message installing')
|
738 |
-
.removeAttr('data-import')
|
739 |
-
.addClass('view-site')
|
740 |
-
.removeClass('astra-demo-import')
|
741 |
-
.attr('target', '_blank')
|
742 |
-
.attr('href', astraDemo.strings.importFailedURL );
|
743 |
-
|
744 |
-
jQuery('.wp-full-overlay-header .view-site').text( astraDemo.strings.importFailedBtnSmall ).append('<i class="dashicons dashicons-external"></i>');
|
745 |
-
jQuery('.footer-import-button-wrap .view-site').text( astraDemo.strings.importFailedBtnLarge ).append('<i class="dashicons dashicons-external"></i>');
|
746 |
-
|
747 |
}
|
748 |
|
749 |
})
|
750 |
.fail(function ( demos ) {
|
751 |
-
jQuery('.astra-demo-import').removeClass('updating-message installing')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
752 |
});
|
753 |
|
754 |
});
|
732 |
.attr('target', '_blank')
|
733 |
.append('<i class="dashicons dashicons-external"></i>')
|
734 |
.attr('href', astraDemo.siteURL );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
735 |
}
|
736 |
|
737 |
})
|
738 |
.fail(function ( demos ) {
|
739 |
+
jQuery('.astra-demo-import').removeClass('updating-message installing')
|
740 |
+
.removeAttr('data-import')
|
741 |
+
.addClass('view-site')
|
742 |
+
.removeClass('astra-demo-import')
|
743 |
+
.attr('target', '_blank')
|
744 |
+
.attr('href', astraDemo.strings.importFailedURL );
|
745 |
+
|
746 |
+
jQuery('.wp-full-overlay-header .view-site').text( astraDemo.strings.importFailedBtnSmall ).append('<i class="dashicons dashicons-external"></i>');
|
747 |
+
jQuery('.footer-import-button-wrap .view-site').text( astraDemo.strings.importFailedBtnLarge ).append('<i class="dashicons dashicons-external"></i>');
|
748 |
});
|
749 |
|
750 |
});
|
astra-sites.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Astra Sites
|
4 |
* Plugin URI: http://www.wpastra.com/pro/
|
5 |
* Description: Import sites build with Astra theme.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-sites
|
@@ -14,7 +14,7 @@
|
|
14 |
/**
|
15 |
* Set constants.
|
16 |
*/
|
17 |
-
define( 'ASTRA_SITES_VER', '1.0.
|
18 |
define( 'ASTRA_SITES_FILE', __FILE__ );
|
19 |
define( 'ASTRA_SITES_BASE', plugin_basename( ASTRA_SITES_FILE ) );
|
20 |
define( 'ASTRA_SITES_DIR', plugin_dir_path( ASTRA_SITES_FILE ) );
|
3 |
* Plugin Name: Astra Sites
|
4 |
* Plugin URI: http://www.wpastra.com/pro/
|
5 |
* Description: Import sites build with Astra theme.
|
6 |
+
* Version: 1.0.3
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-sites
|
14 |
/**
|
15 |
* Set constants.
|
16 |
*/
|
17 |
+
define( 'ASTRA_SITES_VER', '1.0.3' );
|
18 |
define( 'ASTRA_SITES_FILE', __FILE__ );
|
19 |
define( 'ASTRA_SITES_BASE', plugin_basename( ASTRA_SITES_FILE ) );
|
20 |
define( 'ASTRA_SITES_DIR', plugin_dir_path( ASTRA_SITES_FILE ) );
|
importers/wxr-importer/class-astra-wxr-importer.php
CHANGED
@@ -45,7 +45,19 @@ class Astra_WXR_Importer {
|
|
45 |
private function __construct() {
|
46 |
$this->includes();
|
47 |
|
48 |
-
add_filter( 'upload_mimes',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
|
51 |
/**
|
45 |
private function __construct() {
|
46 |
$this->includes();
|
47 |
|
48 |
+
add_filter( 'upload_mimes', array( $this, 'custom_upload_mimes' ) );
|
49 |
+
add_filter( 'wxr_importer.pre_process.user', array( $this, 'avoid_user' ) );
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Pre-process user data.
|
54 |
+
*
|
55 |
+
* @since 1.0.3
|
56 |
+
* @param array $data User data. (Return empty to skip.).
|
57 |
+
* @param array $meta Meta data.
|
58 |
+
*/
|
59 |
+
function avoid_user( $data, $meta ) {
|
60 |
+
return '';
|
61 |
}
|
62 |
|
63 |
/**
|
languages/astra-sites.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Astra Sites package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Astra Sites 1.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
|
7 |
-
"POT-Creation-Date: 2017-08-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the Astra Sites package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Astra Sites 1.0.3\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
|
7 |
+
"POT-Creation-Date: 2017-08-11 06:34:41+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpastra.com/pro/
|
|
4 |
Tags: demo, theme demos, one click import
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.8.1
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -17,7 +17,7 @@ This plugin is an add-on for the Astra WordPress Theme. It offers a library of r
|
|
17 |
1. Browse through the library of ready sites right from your WordPress backend.
|
18 |
2. Pick a site you like.
|
19 |
3. Install required plugins in one click
|
20 |
-
4. Import the site data.
|
21 |
5. Done!
|
22 |
|
23 |
Use this imported site as a base for your project and don't waste time starting from scratch.
|
@@ -46,6 +46,9 @@ https://sites.wpastra.com/law-free/
|
|
46 |
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
49 |
v1.0.2 - 09-Aug-2017
|
50 |
* Fix: Listing appropriate next and previous Astra sites.
|
51 |
* Enhancement: Listing Astra sites though AJAX API call.
|
4 |
Tags: demo, theme demos, one click import
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 4.8.1
|
7 |
+
Stable tag: 1.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
17 |
1. Browse through the library of ready sites right from your WordPress backend.
|
18 |
2. Pick a site you like.
|
19 |
3. Install required plugins in one click
|
20 |
+
4. Import the site data.
|
21 |
5. Done!
|
22 |
|
23 |
Use this imported site as a base for your project and don't waste time starting from scratch.
|
46 |
|
47 |
== Changelog ==
|
48 |
|
49 |
+
v1.0.3 - 11-Aug-2017
|
50 |
+
* Fix: Avoided Astra users from site import process.
|
51 |
+
|
52 |
v1.0.2 - 09-Aug-2017
|
53 |
* Fix: Listing appropriate next and previous Astra sites.
|
54 |
* Enhancement: Listing Astra sites though AJAX API call.
|