Version Description
Download this release
Release Info
Developer | patilvikasj |
Plugin | Astra Starter Sites |
Version | 1.2.12 |
Comparing to | |
See all releases |
Code changes from version 1.2.11 to 1.2.12
- astra-sites.php +3 -3
- inc/classes/class-astra-sites-white-label.php +289 -289
- inc/classes/class-astra-sites.php +1 -1
- inc/importers/wxr-importer/class-astra-wxr-importer.php +24 -0
- inc/includes/admin-page.php +311 -311
- languages/astra-sites.pot +3 -3
- readme.txt +81 -18
astra-sites.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name: Astra Starter Sites
|
4 |
* Plugin URI: http://www.wpastra.com/pro/
|
5 |
* Description: Import free sites build with Astra theme.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-sites
|
@@ -19,7 +19,7 @@ if ( ! defined( 'ASTRA_SITES_NAME' ) ) {
|
|
19 |
}
|
20 |
|
21 |
if ( ! defined( 'ASTRA_SITES_VER' ) ) {
|
22 |
-
define( 'ASTRA_SITES_VER', '1.2.
|
23 |
}
|
24 |
|
25 |
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: Astra Starter Sites – Elementor, Beaver Builder & Gutenberg Templates
|
4 |
* Plugin URI: http://www.wpastra.com/pro/
|
5 |
* Description: Import free sites build with Astra theme.
|
6 |
+
* Version: 1.2.12
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-sites
|
19 |
}
|
20 |
|
21 |
if ( ! defined( 'ASTRA_SITES_VER' ) ) {
|
22 |
+
define( 'ASTRA_SITES_VER', '1.2.12' );
|
23 |
}
|
24 |
|
25 |
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
|
inc/classes/class-astra-sites-white-label.php
CHANGED
@@ -1,289 +1,289 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Astra Sites White Label
|
4 |
-
*
|
5 |
-
* @package Astra Sites
|
6 |
-
* @since 1.0.12
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! class_exists( 'Astra_Sites_White_Label' ) ) :
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Astra_Sites_White_Label
|
13 |
-
*
|
14 |
-
* @since 1.0.12
|
15 |
-
*/
|
16 |
-
class Astra_Sites_White_Label {
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Instance
|
20 |
-
*
|
21 |
-
* @since 1.0.12
|
22 |
-
*
|
23 |
-
* @var object Class Object.
|
24 |
-
* @access private
|
25 |
-
*/
|
26 |
-
private static $instance;
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Member Variable
|
30 |
-
*
|
31 |
-
* @since 1.0.12
|
32 |
-
*
|
33 |
-
* @var array branding
|
34 |
-
* @access private
|
35 |
-
*/
|
36 |
-
private static $branding;
|
37 |
-
|
38 |
-
/**
|
39 |
-
* Settings
|
40 |
-
*
|
41 |
-
* @since 1.2.11
|
42 |
-
*
|
43 |
-
* @var array settings
|
44 |
-
*
|
45 |
-
* @access private
|
46 |
-
*/
|
47 |
-
private $settings;
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Initiator
|
51 |
-
*
|
52 |
-
* @since 1.0.12
|
53 |
-
*
|
54 |
-
* @return object initialized object of class.
|
55 |
-
*/
|
56 |
-
public static function get_instance() {
|
57 |
-
if ( ! isset( self::$instance ) ) {
|
58 |
-
self::$instance = new self;
|
59 |
-
}
|
60 |
-
return self::$instance;
|
61 |
-
}
|
62 |
-
|
63 |
-
/**
|
64 |
-
* Constructor
|
65 |
-
*
|
66 |
-
* @since 1.0.12
|
67 |
-
*/
|
68 |
-
public function __construct() {
|
69 |
-
|
70 |
-
$this->set_white_labels();
|
71 |
-
|
72 |
-
add_filter( 'all_plugins', array( $this, 'plugins_page' ) );
|
73 |
-
add_filter( 'astra_addon_branding_options', __CLASS__ . '::settings' );
|
74 |
-
add_action( 'astra_pro_white_label_add_form', __CLASS__ . '::add_white_lavel_form' );
|
75 |
-
add_filter( 'astra_sites_menu_page_title', array( $this, 'page_title' ) );
|
76 |
-
|
77 |
-
// Display the link with the plugin meta.
|
78 |
-
if ( is_admin() ) {
|
79 |
-
add_filter( 'plugin_row_meta', array( $this, 'plugin_links' ), 10, 4 );
|
80 |
-
}
|
81 |
-
}
|
82 |
-
|
83 |
-
/**
|
84 |
-
* White labels the plugins page.
|
85 |
-
*
|
86 |
-
* @since 1.0.12
|
87 |
-
*
|
88 |
-
* @param array $plugins Plugins Array.
|
89 |
-
* @return array
|
90 |
-
*/
|
91 |
-
function plugins_page( $plugins ) {
|
92 |
-
|
93 |
-
if ( ! is_callable( 'Astra_Ext_White_Label_Markup::get_white_label' ) ) {
|
94 |
-
return $plugins;
|
95 |
-
}
|
96 |
-
|
97 |
-
if ( ! isset( $plugins[ ASTRA_SITES_BASE ] ) ) {
|
98 |
-
return $plugins;
|
99 |
-
}
|
100 |
-
|
101 |
-
// Set White Labels.
|
102 |
-
$name = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'name' );
|
103 |
-
$description = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'description' );
|
104 |
-
$author = Astra_Ext_White_Label_Markup::get_white_label( 'astra-agency', 'author' );
|
105 |
-
$author_uri = Astra_Ext_White_Label_Markup::get_white_label( 'astra-agency', 'author_url' );
|
106 |
-
|
107 |
-
if ( ! empty( $name ) ) {
|
108 |
-
$plugins[ ASTRA_SITES_BASE ]['Name'] = $name;
|
109 |
-
|
110 |
-
// Remove Plugin URI if Agency White Label name is set.
|
111 |
-
$plugins[ ASTRA_SITES_BASE ]['PluginURI'] = '';
|
112 |
-
}
|
113 |
-
|
114 |
-
if ( ! empty( $description ) ) {
|
115 |
-
$plugins[ ASTRA_SITES_BASE ]['Description'] = $description;
|
116 |
-
}
|
117 |
-
|
118 |
-
if ( ! empty( $author ) ) {
|
119 |
-
$plugins[ ASTRA_SITES_BASE ]['Author'] = $author;
|
120 |
-
}
|
121 |
-
|
122 |
-
if ( ! empty( $author_uri ) ) {
|
123 |
-
$plugins[ ASTRA_SITES_BASE ]['AuthorURI'] = $author_uri;
|
124 |
-
}
|
125 |
-
|
126 |
-
return $plugins;
|
127 |
-
}
|
128 |
-
|
129 |
-
/**
|
130 |
-
* Remove a "view details" link from the plugin list table
|
131 |
-
*
|
132 |
-
* @since 1.0.12
|
133 |
-
*
|
134 |
-
* @param array $plugin_meta List of links.
|
135 |
-
* @param string $plugin_file Relative path to the main plugin file from the plugins directory.
|
136 |
-
* @param array $plugin_data Data from the plugin headers.
|
137 |
-
* @return array
|
138 |
-
*/
|
139 |
-
public function plugin_links( $plugin_meta, $plugin_file, $plugin_data ) {
|
140 |
-
|
141 |
-
if ( ! is_callable( 'Astra_Ext_White_Label_Markup::get_white_label' ) ) {
|
142 |
-
return $plugin_meta;
|
143 |
-
}
|
144 |
-
|
145 |
-
// Set White Labels.
|
146 |
-
if ( ASTRA_SITES_BASE == $plugin_file ) {
|
147 |
-
|
148 |
-
$name = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'name' );
|
149 |
-
$description = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'description' );
|
150 |
-
|
151 |
-
// Remove Plugin URI if Agency White Label name is set.
|
152 |
-
if ( ! empty( $name ) ) {
|
153 |
-
unset( $plugin_meta[2] );
|
154 |
-
}
|
155 |
-
}
|
156 |
-
|
157 |
-
return $plugin_meta;
|
158 |
-
}
|
159 |
-
|
160 |
-
/**
|
161 |
-
* Add White Label setting's
|
162 |
-
*
|
163 |
-
* @since 1.0.12
|
164 |
-
*
|
165 |
-
* @param array $settings White label setting.
|
166 |
-
* @return array
|
167 |
-
*/
|
168 |
-
public static function settings( $settings = array() ) {
|
169 |
-
|
170 |
-
$settings['astra-sites'] = array(
|
171 |
-
'name' => '',
|
172 |
-
'description' => '',
|
173 |
-
);
|
174 |
-
|
175 |
-
return $settings;
|
176 |
-
}
|
177 |
-
|
178 |
-
/**
|
179 |
-
* Add White Label form
|
180 |
-
*
|
181 |
-
* @since 1.0.12
|
182 |
-
*
|
183 |
-
* @param array $settings White label setting.
|
184 |
-
* @return void
|
185 |
-
*/
|
186 |
-
public static function add_white_lavel_form( $settings = array() ) {
|
187 |
-
|
188 |
-
/* translators: %1$s product name */
|
189 |
-
$plugin_name = sprintf( __( '%1$s Branding', 'astra-sites' ), ASTRA_SITES_NAME );
|
190 |
-
|
191 |
-
require_once ASTRA_SITES_DIR . 'inc/includes/white-label.php';
|
192 |
-
}
|
193 |
-
|
194 |
-
/**
|
195 |
-
* Page Title
|
196 |
-
*
|
197 |
-
* @since 1.0.12
|
198 |
-
*
|
199 |
-
* @param string $title Page Title.
|
200 |
-
* @return string Filtered Page Title.
|
201 |
-
*/
|
202 |
-
function page_title( $title ) {
|
203 |
-
$get_white_labels = 'Astra_Ext_White_Label_Markup::get_white_labels';
|
204 |
-
if ( is_callable( $get_white_labels ) ) {
|
205 |
-
$astra_sites_name = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'name' );
|
206 |
-
if ( ! empty( $astra_sites_name ) ) {
|
207 |
-
$title = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'name' );
|
208 |
-
}
|
209 |
-
}
|
210 |
-
|
211 |
-
return $title;
|
212 |
-
}
|
213 |
-
|
214 |
-
/**
|
215 |
-
* Set White Labels
|
216 |
-
*
|
217 |
-
* @since 1.2.11
|
218 |
-
*
|
219 |
-
* @return void
|
220 |
-
*/
|
221 |
-
function set_white_labels() {
|
222 |
-
|
223 |
-
$name = $description = $support_link = $author = '';
|
224 |
-
if ( is_callable( 'Astra_Ext_White_Label_Markup::get_white_label' ) ) {
|
225 |
-
$name = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'name' );
|
226 |
-
$description = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'description' );
|
227 |
-
$support_link = Astra_Ext_White_Label_Markup::get_white_label( 'astra-agency', 'author_url' );
|
228 |
-
$author = Astra_Ext_White_Label_Markup::get_white_label( 'astra-agency', 'author' );
|
229 |
-
}
|
230 |
-
|
231 |
-
$this->settings = array(
|
232 |
-
'name' => ( ! empty( $name ) ) ? $name : __( 'Astra Sites', 'astra-sites' ),
|
233 |
-
'author' => ( ! empty( $author ) ) ? $author : __( 'Brainstorm Force', 'astra-sites' ),
|
234 |
-
'description' => ( ! empty( $description ) ) ? $description : __( 'Import free sites build with Astra theme.', 'astra-sites' ),
|
235 |
-
'support-link' => ( ! empty( $support_link ) ) ? $support_link : 'mailto:support@bsf.io',
|
236 |
-
);
|
237 |
-
}
|
238 |
-
|
239 |
-
/**
|
240 |
-
* Get Name
|
241 |
-
*
|
242 |
-
* @since 1.2.11
|
243 |
-
*
|
244 |
-
* @return string
|
245 |
-
*/
|
246 |
-
function get_name() {
|
247 |
-
return $this->settings['name'];
|
248 |
-
}
|
249 |
-
|
250 |
-
/**
|
251 |
-
* Get Description
|
252 |
-
*
|
253 |
-
* @since 1.2.11
|
254 |
-
*
|
255 |
-
* @return string
|
256 |
-
*/
|
257 |
-
function get_description() {
|
258 |
-
return $this->settings['description'];
|
259 |
-
}
|
260 |
-
|
261 |
-
/**
|
262 |
-
* Get Author
|
263 |
-
*
|
264 |
-
* @since 1.2.11
|
265 |
-
*
|
266 |
-
* @return string
|
267 |
-
*/
|
268 |
-
function get_author() {
|
269 |
-
return $this->settings['author'];
|
270 |
-
}
|
271 |
-
|
272 |
-
/**
|
273 |
-
* Get Support Link
|
274 |
-
*
|
275 |
-
* @since 1.2.11
|
276 |
-
*
|
277 |
-
* @return string
|
278 |
-
*/
|
279 |
-
function get_support_link() {
|
280 |
-
return $this->settings['support-link'];
|
281 |
-
}
|
282 |
-
}
|
283 |
-
|
284 |
-
/**
|
285 |
-
* Kicking this off by calling 'get_instance()' method
|
286 |
-
*/
|
287 |
-
Astra_Sites_White_Label::get_instance();
|
288 |
-
|
289 |
-
endif;
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Astra Sites White Label
|
4 |
+
*
|
5 |
+
* @package Astra Sites
|
6 |
+
* @since 1.0.12
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! class_exists( 'Astra_Sites_White_Label' ) ) :
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Astra_Sites_White_Label
|
13 |
+
*
|
14 |
+
* @since 1.0.12
|
15 |
+
*/
|
16 |
+
class Astra_Sites_White_Label {
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Instance
|
20 |
+
*
|
21 |
+
* @since 1.0.12
|
22 |
+
*
|
23 |
+
* @var object Class Object.
|
24 |
+
* @access private
|
25 |
+
*/
|
26 |
+
private static $instance;
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Member Variable
|
30 |
+
*
|
31 |
+
* @since 1.0.12
|
32 |
+
*
|
33 |
+
* @var array branding
|
34 |
+
* @access private
|
35 |
+
*/
|
36 |
+
private static $branding;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Settings
|
40 |
+
*
|
41 |
+
* @since 1.2.11
|
42 |
+
*
|
43 |
+
* @var array settings
|
44 |
+
*
|
45 |
+
* @access private
|
46 |
+
*/
|
47 |
+
private $settings;
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Initiator
|
51 |
+
*
|
52 |
+
* @since 1.0.12
|
53 |
+
*
|
54 |
+
* @return object initialized object of class.
|
55 |
+
*/
|
56 |
+
public static function get_instance() {
|
57 |
+
if ( ! isset( self::$instance ) ) {
|
58 |
+
self::$instance = new self;
|
59 |
+
}
|
60 |
+
return self::$instance;
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Constructor
|
65 |
+
*
|
66 |
+
* @since 1.0.12
|
67 |
+
*/
|
68 |
+
public function __construct() {
|
69 |
+
|
70 |
+
$this->set_white_labels();
|
71 |
+
|
72 |
+
add_filter( 'all_plugins', array( $this, 'plugins_page' ) );
|
73 |
+
add_filter( 'astra_addon_branding_options', __CLASS__ . '::settings' );
|
74 |
+
add_action( 'astra_pro_white_label_add_form', __CLASS__ . '::add_white_lavel_form' );
|
75 |
+
add_filter( 'astra_sites_menu_page_title', array( $this, 'page_title' ) );
|
76 |
+
|
77 |
+
// Display the link with the plugin meta.
|
78 |
+
if ( is_admin() ) {
|
79 |
+
add_filter( 'plugin_row_meta', array( $this, 'plugin_links' ), 10, 4 );
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
/**
|
84 |
+
* White labels the plugins page.
|
85 |
+
*
|
86 |
+
* @since 1.0.12
|
87 |
+
*
|
88 |
+
* @param array $plugins Plugins Array.
|
89 |
+
* @return array
|
90 |
+
*/
|
91 |
+
function plugins_page( $plugins ) {
|
92 |
+
|
93 |
+
if ( ! is_callable( 'Astra_Ext_White_Label_Markup::get_white_label' ) ) {
|
94 |
+
return $plugins;
|
95 |
+
}
|
96 |
+
|
97 |
+
if ( ! isset( $plugins[ ASTRA_SITES_BASE ] ) ) {
|
98 |
+
return $plugins;
|
99 |
+
}
|
100 |
+
|
101 |
+
// Set White Labels.
|
102 |
+
$name = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'name' );
|
103 |
+
$description = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'description' );
|
104 |
+
$author = Astra_Ext_White_Label_Markup::get_white_label( 'astra-agency', 'author' );
|
105 |
+
$author_uri = Astra_Ext_White_Label_Markup::get_white_label( 'astra-agency', 'author_url' );
|
106 |
+
|
107 |
+
if ( ! empty( $name ) ) {
|
108 |
+
$plugins[ ASTRA_SITES_BASE ]['Name'] = $name;
|
109 |
+
|
110 |
+
// Remove Plugin URI if Agency White Label name is set.
|
111 |
+
$plugins[ ASTRA_SITES_BASE ]['PluginURI'] = '';
|
112 |
+
}
|
113 |
+
|
114 |
+
if ( ! empty( $description ) ) {
|
115 |
+
$plugins[ ASTRA_SITES_BASE ]['Description'] = $description;
|
116 |
+
}
|
117 |
+
|
118 |
+
if ( ! empty( $author ) ) {
|
119 |
+
$plugins[ ASTRA_SITES_BASE ]['Author'] = $author;
|
120 |
+
}
|
121 |
+
|
122 |
+
if ( ! empty( $author_uri ) ) {
|
123 |
+
$plugins[ ASTRA_SITES_BASE ]['AuthorURI'] = $author_uri;
|
124 |
+
}
|
125 |
+
|
126 |
+
return $plugins;
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
* Remove a "view details" link from the plugin list table
|
131 |
+
*
|
132 |
+
* @since 1.0.12
|
133 |
+
*
|
134 |
+
* @param array $plugin_meta List of links.
|
135 |
+
* @param string $plugin_file Relative path to the main plugin file from the plugins directory.
|
136 |
+
* @param array $plugin_data Data from the plugin headers.
|
137 |
+
* @return array
|
138 |
+
*/
|
139 |
+
public function plugin_links( $plugin_meta, $plugin_file, $plugin_data ) {
|
140 |
+
|
141 |
+
if ( ! is_callable( 'Astra_Ext_White_Label_Markup::get_white_label' ) ) {
|
142 |
+
return $plugin_meta;
|
143 |
+
}
|
144 |
+
|
145 |
+
// Set White Labels.
|
146 |
+
if ( ASTRA_SITES_BASE == $plugin_file ) {
|
147 |
+
|
148 |
+
$name = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'name' );
|
149 |
+
$description = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'description' );
|
150 |
+
|
151 |
+
// Remove Plugin URI if Agency White Label name is set.
|
152 |
+
if ( ! empty( $name ) ) {
|
153 |
+
unset( $plugin_meta[2] );
|
154 |
+
}
|
155 |
+
}
|
156 |
+
|
157 |
+
return $plugin_meta;
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Add White Label setting's
|
162 |
+
*
|
163 |
+
* @since 1.0.12
|
164 |
+
*
|
165 |
+
* @param array $settings White label setting.
|
166 |
+
* @return array
|
167 |
+
*/
|
168 |
+
public static function settings( $settings = array() ) {
|
169 |
+
|
170 |
+
$settings['astra-sites'] = array(
|
171 |
+
'name' => '',
|
172 |
+
'description' => '',
|
173 |
+
);
|
174 |
+
|
175 |
+
return $settings;
|
176 |
+
}
|
177 |
+
|
178 |
+
/**
|
179 |
+
* Add White Label form
|
180 |
+
*
|
181 |
+
* @since 1.0.12
|
182 |
+
*
|
183 |
+
* @param array $settings White label setting.
|
184 |
+
* @return void
|
185 |
+
*/
|
186 |
+
public static function add_white_lavel_form( $settings = array() ) {
|
187 |
+
|
188 |
+
/* translators: %1$s product name */
|
189 |
+
$plugin_name = sprintf( __( '%1$s Branding', 'astra-sites' ), ASTRA_SITES_NAME );
|
190 |
+
|
191 |
+
require_once ASTRA_SITES_DIR . 'inc/includes/white-label.php';
|
192 |
+
}
|
193 |
+
|
194 |
+
/**
|
195 |
+
* Page Title
|
196 |
+
*
|
197 |
+
* @since 1.0.12
|
198 |
+
*
|
199 |
+
* @param string $title Page Title.
|
200 |
+
* @return string Filtered Page Title.
|
201 |
+
*/
|
202 |
+
function page_title( $title ) {
|
203 |
+
$get_white_labels = 'Astra_Ext_White_Label_Markup::get_white_labels';
|
204 |
+
if ( is_callable( $get_white_labels ) ) {
|
205 |
+
$astra_sites_name = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'name' );
|
206 |
+
if ( ! empty( $astra_sites_name ) ) {
|
207 |
+
$title = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'name' );
|
208 |
+
}
|
209 |
+
}
|
210 |
+
|
211 |
+
return $title;
|
212 |
+
}
|
213 |
+
|
214 |
+
/**
|
215 |
+
* Set White Labels
|
216 |
+
*
|
217 |
+
* @since 1.2.11
|
218 |
+
*
|
219 |
+
* @return void
|
220 |
+
*/
|
221 |
+
function set_white_labels() {
|
222 |
+
|
223 |
+
$name = $description = $support_link = $author = '';
|
224 |
+
if ( is_callable( 'Astra_Ext_White_Label_Markup::get_white_label' ) ) {
|
225 |
+
$name = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'name' );
|
226 |
+
$description = Astra_Ext_White_Label_Markup::get_white_label( 'astra-sites', 'description' );
|
227 |
+
$support_link = Astra_Ext_White_Label_Markup::get_white_label( 'astra-agency', 'author_url' );
|
228 |
+
$author = Astra_Ext_White_Label_Markup::get_white_label( 'astra-agency', 'author' );
|
229 |
+
}
|
230 |
+
|
231 |
+
$this->settings = array(
|
232 |
+
'name' => ( ! empty( $name ) ) ? $name : __( 'Astra Sites', 'astra-sites' ),
|
233 |
+
'author' => ( ! empty( $author ) ) ? $author : __( 'Brainstorm Force', 'astra-sites' ),
|
234 |
+
'description' => ( ! empty( $description ) ) ? $description : __( 'Import free sites build with Astra theme.', 'astra-sites' ),
|
235 |
+
'support-link' => ( ! empty( $support_link ) ) ? $support_link : 'mailto:support@bsf.io',
|
236 |
+
);
|
237 |
+
}
|
238 |
+
|
239 |
+
/**
|
240 |
+
* Get Name
|
241 |
+
*
|
242 |
+
* @since 1.2.11
|
243 |
+
*
|
244 |
+
* @return string
|
245 |
+
*/
|
246 |
+
function get_name() {
|
247 |
+
return $this->settings['name'];
|
248 |
+
}
|
249 |
+
|
250 |
+
/**
|
251 |
+
* Get Description
|
252 |
+
*
|
253 |
+
* @since 1.2.11
|
254 |
+
*
|
255 |
+
* @return string
|
256 |
+
*/
|
257 |
+
function get_description() {
|
258 |
+
return $this->settings['description'];
|
259 |
+
}
|
260 |
+
|
261 |
+
/**
|
262 |
+
* Get Author
|
263 |
+
*
|
264 |
+
* @since 1.2.11
|
265 |
+
*
|
266 |
+
* @return string
|
267 |
+
*/
|
268 |
+
function get_author() {
|
269 |
+
return $this->settings['author'];
|
270 |
+
}
|
271 |
+
|
272 |
+
/**
|
273 |
+
* Get Support Link
|
274 |
+
*
|
275 |
+
* @since 1.2.11
|
276 |
+
*
|
277 |
+
* @return string
|
278 |
+
*/
|
279 |
+
function get_support_link() {
|
280 |
+
return $this->settings['support-link'];
|
281 |
+
}
|
282 |
+
}
|
283 |
+
|
284 |
+
/**
|
285 |
+
* Kicking this off by calling 'get_instance()' method
|
286 |
+
*/
|
287 |
+
Astra_Sites_White_Label::get_instance();
|
288 |
+
|
289 |
+
endif;
|
inc/classes/class-astra-sites.php
CHANGED
@@ -463,4 +463,4 @@ if ( ! class_exists( 'Astra_Sites' ) ) :
|
|
463 |
*/
|
464 |
Astra_Sites::get_instance();
|
465 |
|
466 |
-
endif;
|
463 |
*/
|
464 |
Astra_Sites::get_instance();
|
465 |
|
466 |
+
endif;
|
inc/importers/wxr-importer/class-astra-wxr-importer.php
CHANGED
@@ -54,6 +54,30 @@ class Astra_WXR_Importer {
|
|
54 |
add_action( 'wp_ajax_astra-wxr-import', array( $this, 'sse_import' ) );
|
55 |
add_filter( 'wxr_importer.pre_process.user', '__return_null' );
|
56 |
add_filter( 'wp_check_filetype_and_ext', array( $this, 'real_mime_type_for_xml' ), 10, 4 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
}
|
58 |
|
59 |
/**
|
54 |
add_action( 'wp_ajax_astra-wxr-import', array( $this, 'sse_import' ) );
|
55 |
add_filter( 'wxr_importer.pre_process.user', '__return_null' );
|
56 |
add_filter( 'wp_check_filetype_and_ext', array( $this, 'real_mime_type_for_xml' ), 10, 4 );
|
57 |
+
add_filter( 'wxr_importer.pre_process.post', array( $this, 'gutenberg_content_fix' ), 10, 4 );
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Gutenberg Content Data Fix
|
62 |
+
*
|
63 |
+
* Gutenberg encode the page content. In import process the encoded characterless e.g. <, > are
|
64 |
+
* decoded into HTML tag and it break the Gutenberg render markup.
|
65 |
+
*
|
66 |
+
* Note: We have not check the post is created with Gutenberg or not. We have imported other sites
|
67 |
+
* and confirm that this works for every other page builders too.
|
68 |
+
*
|
69 |
+
* @since 1.2.12
|
70 |
+
*
|
71 |
+
* @param array $data Post data. (Return empty to skip.).
|
72 |
+
* @param array $meta Meta data.
|
73 |
+
* @param array $comments Comments on the post.
|
74 |
+
* @param array $terms Terms on the post.
|
75 |
+
*/
|
76 |
+
function gutenberg_content_fix( $data, $meta, $comments, $terms ) {
|
77 |
+
if ( isset( $data['post_content'] ) ) {
|
78 |
+
$data['post_content'] = wp_slash( $data['post_content'] );
|
79 |
+
}
|
80 |
+
return $data;
|
81 |
}
|
82 |
|
83 |
/**
|
inc/includes/admin-page.php
CHANGED
@@ -1,311 +1,311 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Shortcode Markup
|
4 |
-
*
|
5 |
-
* TMPL - Single Demo Preview
|
6 |
-
* TMPL - No more demos
|
7 |
-
* TMPL - Filters
|
8 |
-
* TMPL - List
|
9 |
-
*
|
10 |
-
* @package Astra Sites
|
11 |
-
* @since 1.0.0
|
12 |
-
*/
|
13 |
-
|
14 |
-
defined( 'ABSPATH' ) or exit;
|
15 |
-
?>
|
16 |
-
|
17 |
-
<div class="wrap" id="astra-sites-admin">
|
18 |
-
|
19 |
-
<div id="astra-sites-filters">
|
20 |
-
|
21 |
-
<?php if ( apply_filters( 'astra_sites_show_filters', true ) ) { ?>
|
22 |
-
<div class="wp-filter hide-if-no-js">
|
23 |
-
<div class="section-left">
|
24 |
-
|
25 |
-
<!-- All Filters -->
|
26 |
-
<div class="filter-count">
|
27 |
-
<span class="count"></span>
|
28 |
-
</div>
|
29 |
-
<div class="filters-wrap">
|
30 |
-
<div id="astra-site-page-builder"></div>
|
31 |
-
</div>
|
32 |
-
|
33 |
-
</div>
|
34 |
-
|
35 |
-
<div class="section-right">
|
36 |
-
|
37 |
-
<div class="filters-wrap">
|
38 |
-
<div id="astra-site-category"></div>
|
39 |
-
</div>
|
40 |
-
|
41 |
-
<div class="search-form">
|
42 |
-
<label class="screen-reader-text" for="wp-filter-search-input"><?php _e( 'Search Sites', 'astra-sites' ); ?> </label>
|
43 |
-
<input placeholder="<?php _e( 'Search Sites...', 'astra-sites' ); ?>" type="search" aria-describedby="live-search-desc" id="wp-filter-search-input" class="wp-filter-search">
|
44 |
-
</div>
|
45 |
-
|
46 |
-
</div>
|
47 |
-
</div>
|
48 |
-
<?php } ?>
|
49 |
-
|
50 |
-
</div>
|
51 |
-
|
52 |
-
<?php do_action( 'astra_sites_before_site_grid' ); ?>
|
53 |
-
|
54 |
-
<div class="theme-browser rendered">
|
55 |
-
<div id="astra-sites" class="themes wp-clearfix"></div>
|
56 |
-
</div>
|
57 |
-
|
58 |
-
<div class="spinner-wrap">
|
59 |
-
<span class="spinner"></span>
|
60 |
-
</div>
|
61 |
-
|
62 |
-
<?php do_action( 'astra_sites_after_site_grid' ); ?>
|
63 |
-
|
64 |
-
</div>
|
65 |
-
|
66 |
-
<?php
|
67 |
-
/**
|
68 |
-
* TMPL - Single Demo Preview
|
69 |
-
*/
|
70 |
-
?>
|
71 |
-
<script type="text/template" id="tmpl-astra-site-select-page-builder">
|
72 |
-
<div class="select-page-builder">
|
73 |
-
<div class="note-wrap">
|
74 |
-
<h3>
|
75 |
-
<span class="up-arrow dashicons dashicons-editor-break"></span>
|
76 |
-
<div class="note"><?php _e( 'Select Your Favorite Page Builder', 'astra-sites' ); ?></div>
|
77 |
-
</h3>
|
78 |
-
</div>
|
79 |
-
<img src="<?php echo esc_url( ASTRA_SITES_URI . 'inc/assets/images/sites-screenshot.jpg' ); ?>" alt="<?php _e( 'Sites List..', 'astra-sites' ); ?>" title="<?php _e( 'Sites List..', 'astra-sites' ); ?>" />
|
80 |
-
</div>
|
81 |
-
</script>
|
82 |
-
|
83 |
-
<?php
|
84 |
-
/**
|
85 |
-
* TMPL - Single Demo Preview
|
86 |
-
*/
|
87 |
-
?>
|
88 |
-
<script type="text/template" id="tmpl-astra-site-preview">
|
89 |
-
<div class="astra-sites-preview theme-install-overlay wp-full-overlay expanded">
|
90 |
-
<div class="wp-full-overlay-sidebar">
|
91 |
-
<div class="wp-full-overlay-header"
|
92 |
-
data-demo-id="{{{data.id}}}"
|
93 |
-
data-demo-type="{{{data.astra_demo_type}}}"
|
94 |
-
data-demo-url="{{{data.astra_demo_url}}}"
|
95 |
-
data-demo-api="{{{data.demo_api}}}"
|
96 |
-
data-demo-name="{{{data.demo_name}}}"
|
97 |
-
data-demo-slug="{{{data.slug}}}"
|
98 |
-
data-screenshot="{{{data.screenshot}}}"
|
99 |
-
data-content="{{{data.content}}}"
|
100 |
-
data-required-plugins="{{data.required_plugins}}">
|
101 |
-
<input type="hidden" class="astra-site-options" value="{{data.astra_site_options}}" >
|
102 |
-
<input type="hidden" class="astra-enabled-extensions" value="{{data.astra_enabled_extensions}}" >
|
103 |
-
<button class="close-full-overlay"><span class="screen-reader-text"><?php esc_html_e( 'Close', 'astra-sites' ); ?></span></button>
|
104 |
-
<button class="previous-theme"><span class="screen-reader-text"><?php esc_html_e( 'Previous', 'astra-sites' ); ?></span></button>
|
105 |
-
<button class="next-theme"><span class="screen-reader-text"><?php esc_html_e( 'Next', 'astra-sites' ); ?></span></button>
|
106 |
-
<a class="button hide-if-no-customize astra-demo-import" href="#" data-import="disabled"><?php esc_html_e( 'Install Plugins', 'astra-sites' ); ?></a>
|
107 |
-
|
108 |
-
</div>
|
109 |
-
<div class="wp-full-overlay-sidebar-content">
|
110 |
-
<div class="install-theme-info">
|
111 |
-
|
112 |
-
<span class="site-type {{{data.astra_demo_type}}}">{{{data.astra_demo_type}}}</span>
|
113 |
-
<h3 class="theme-name">{{{data.demo_name}}}</h3>
|
114 |
-
|
115 |
-
<# if ( data.screenshot.length ) { #>
|
116 |
-
<img class="theme-screenshot" src="{{{data.screenshot}}}" alt="">
|
117 |
-
<# } #>
|
118 |
-
|
119 |
-
<div class="theme-details">
|
120 |
-
{{{data.content}}}
|
121 |
-
</div>
|
122 |
-
<a href="#" class="theme-details-read-more"><?php _e( 'Read more', 'astra-sites' ); ?> …</a>
|
123 |
-
|
124 |
-
<div class="required-plugins-wrap">
|
125 |
-
<h4><?php _e( 'Required Plugins', 'astra-sites' ); ?> </h4>
|
126 |
-
<div class="required-plugins"></div>
|
127 |
-
</div>
|
128 |
-
</div>
|
129 |
-
</div>
|
130 |
-
|
131 |
-
<div class="wp-full-overlay-footer">
|
132 |
-
<div class="footer-import-button-wrap">
|
133 |
-
<a class="button button-hero hide-if-no-customize astra-demo-import" href="#" data-import="disabled">
|
134 |
-
<?php esc_html_e( 'Install Plugins', 'astra-sites' ); ?>
|
135 |
-
</a>
|
136 |
-
</div>
|
137 |
-
<button type="button" class="collapse-sidebar button" aria-expanded="true"
|
138 |
-
aria-label="Collapse Sidebar">
|
139 |
-
<span class="collapse-sidebar-arrow"></span>
|
140 |
-
<span class="collapse-sidebar-label"><?php esc_html_e( 'Collapse', 'astra-sites' ); ?></span>
|
141 |
-
</button>
|
142 |
-
|
143 |
-
<div class="devices-wrapper">
|
144 |
-
<div class="devices">
|
145 |
-
<button type="button" class="preview-desktop active" aria-pressed="true" data-device="desktop">
|
146 |
-
<span class="screen-reader-text"><?php _e( 'Enter desktop preview mode', 'astra-sites' ); ?></span>
|
147 |
-
</button>
|
148 |
-
<button type="button" class="preview-tablet" aria-pressed="false" data-device="tablet">
|
149 |
-
<span class="screen-reader-text"><?php _e( 'Enter tablet preview mode', 'astra-sites' ); ?></span>
|
150 |
-
</button>
|
151 |
-
<button type="button" class="preview-mobile" aria-pressed="false" data-device="mobile">
|
152 |
-
<span class="screen-reader-text"><?php _e( 'Enter mobile preview mode', 'astra-sites' ); ?></span>
|
153 |
-
</button>
|
154 |
-
</div>
|
155 |
-
</div>
|
156 |
-
|
157 |
-
</div>
|
158 |
-
</div>
|
159 |
-
<div class="wp-full-overlay-main">
|
160 |
-
<iframe src="{{{data.astra_demo_url}}}" title="<?php esc_attr_e( 'Preview', 'astra-sites' ); ?>"></iframe>
|
161 |
-
</div>
|
162 |
-
</div>
|
163 |
-
</script>
|
164 |
-
|
165 |
-
<?php
|
166 |
-
/**
|
167 |
-
* TMPL - No more demos
|
168 |
-
*/
|
169 |
-
?>
|
170 |
-
<script type="text/template" id="tmpl-astra-site-api-request-failed">
|
171 |
-
<div class="no-themes">
|
172 |
-
<?php
|
173 |
-
|
174 |
-
/* translators: %1$s & %2$s are a Demo API URL */
|
175 |
-
printf( __( '<p> It seems the demo data server, <i><a href="%1$s">%2$s</a></i> is unreachable from your site.</p>', 'astra-sites' ), esc_url( Astra_Sites::$api_url ), esc_url( Astra_Sites::$api_url ) );
|
176 |
-
|
177 |
-
_e( '<p class="left-margin"> 1. Sometimes, simple page reload fixes any temporary issues. No kidding!</p>', 'astra-sites' );
|
178 |
-
|
179 |
-
_e( '<p class="left-margin"> 2. If that does not work, you will need to talk to your server administrator and check if demo server is being blocked by the firewall!</p>', 'astra-sites' );
|
180 |
-
|
181 |
-
/* translators: %1$s is a support link */
|
182 |
-
printf( __( '<p>If that does not help, please open up a <a href="%1$s" target="_blank">Support Ticket</a> and we will be glad take a closer look for you.</p>', 'astra-sites' ), esc_url( 'https://wpastra.com/support/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=api-request-failed' ) );
|
183 |
-
?>
|
184 |
-
</div>
|
185 |
-
</script>
|
186 |
-
|
187 |
-
<?php
|
188 |
-
/**
|
189 |
-
* TMPL - Site Down
|
190 |
-
*/
|
191 |
-
?>
|
192 |
-
<script type="text/template" id="tmpl-astra-site-down">
|
193 |
-
<div class="postbox astra-site-down">
|
194 |
-
<h2><?php _e( 'Under Maintenance..', 'astra-sites' ); ?></h2>
|
195 |
-
<p><?php _e( 'If you are seeing this message, most likely our servers are under routine maintenance and we will be back shortly. ', 'astra-sites' ); ?></p>
|
196 |
-
<p><?php _e( 'In rare case, it is possible your website is having trouble connecting with ours. If you need help, please feel free to get in touch with us from our website.', 'astra-sites' ); ?></p>
|
197 |
-
</div>
|
198 |
-
</script>
|
199 |
-
|
200 |
-
<?php
|
201 |
-
/**
|
202 |
-
* TMPL - Filters
|
203 |
-
*/
|
204 |
-
?>
|
205 |
-
<script type="text/template" id="tmpl-astra-site-filters">
|
206 |
-
|
207 |
-
<# if ( data ) { #>
|
208 |
-
|
209 |
-
<ul class="{{ data.args.wrapper_class }} {{ data.args.class }}">
|
210 |
-
|
211 |
-
<# if ( data.args.show_all ) { #>
|
212 |
-
<li>
|
213 |
-
<a href="#" data-group="all"> All </a>
|
214 |
-
</li>
|
215 |
-
<# } #>
|
216 |
-
|
217 |
-
<# for ( key in data.items ) { #>
|
218 |
-
<# if ( data.items[ key ].count ) { #>
|
219 |
-
<li>
|
220 |
-
<a href="#" data-group='{{ data.items[ key ].id }}' class="{{ data.items[ key ].name }}">
|
221 |
-
{{ data.items[ key ].name }}
|
222 |
-
</a>
|
223 |
-
</li>
|
224 |
-
<# } #>
|
225 |
-
<# } #>
|
226 |
-
|
227 |
-
</ul>
|
228 |
-
<# } #>
|
229 |
-
</script>
|
230 |
-
|
231 |
-
<?php
|
232 |
-
/**
|
233 |
-
* TMPL - List
|
234 |
-
*/
|
235 |
-
?>
|
236 |
-
<script type="text/template" id="tmpl-astra-sites-list">
|
237 |
-
|
238 |
-
<# if ( data.items.length ) { #>
|
239 |
-
<# for ( key in data.items ) { #>
|
240 |
-
|
241 |
-
<div class="theme astra-theme site-single {{ data.items[ key ].status }}" tabindex="0" aria-describedby="astra-theme-action astra-theme-name"
|
242 |
-
data-demo-id="{{{ data.items[ key ].id }}}"
|
243 |
-
data-demo-type="{{{ data.items[ key ]['astra-site-type'] }}}"
|
244 |
-
data-demo-url="{{{ data.items[ key ]['astra-site-url'] }}}"
|
245 |
-
data-demo-api="{{{ data.items[ key ]['_links']['self'][0]['href'] }}}"
|
246 |
-
data-demo-name="{{{ data.items[ key ].title.rendered }}}"
|
247 |
-
data-demo-slug="{{{ data.items[ key ].slug }}}"
|
248 |
-
data-screenshot="{{{ data.items[ key ]['featured-image-url'] }}}"
|
249 |
-
data-content="{{{ data.items[ key ].content.rendered }}}"
|
250 |
-
data-required-plugins="{{ JSON.stringify( data.items[ key ]['required-plugins'] ) }}"
|
251 |
-
data-groups=["{{ data.items[ key ].tags }}"]>
|
252 |
-
<input type="hidden" class="astra-site-options" value="{{ JSON.stringify(data.items[ key ]['astra-site-options-data'] ) }}" />
|
253 |
-
<input type="hidden" class="astra-enabled-extensions" value="{{ JSON.stringify(data.items[ key ]['astra-enabled-extensions'] ) }}" />
|
254 |
-
|
255 |
-
<div class="inner">
|
256 |
-
<span class="site-preview" data-href="{{ data.items[ key ]['astra-site-url'] }}?TB_iframe=true&width=600&height=550" data-title="{{ data.items[ key ].title.rendered }}">
|
257 |
-
<div class="theme-screenshot">
|
258 |
-
<# if( '' !== data.items[ key ]['featured-image-url'] ) { #>
|
259 |
-
<img src="{{ data.items[ key ]['featured-image-url'] }}" />
|
260 |
-
<# } #>
|
261 |
-
</div>
|
262 |
-
</span>
|
263 |
-
<span class="more-details"> <?php esc_html_e( 'Details & Preview', 'astra-sites' ); ?> </span>
|
264 |
-
<# if ( data.items[ key ]['astra-site-type'] ) { #>
|
265 |
-
<# var type = ( data.items[ key ]['astra-site-type'] !== 'premium' ) ? ( data.items[ key ]['astra-site-type'] ) : 'agency'; #>
|
266 |
-
<span class="site-type {{data.items[ key ]['astra-site-type']}}">{{ type }}</span>
|
267 |
-
<# } #>
|
268 |
-
<# if ( data.items[ key ].status ) { #>
|
269 |
-
<span class="status {{data.items[ key ].status}}">{{data.items[ key ].status}}</span>
|
270 |
-
<# } #>
|
271 |
-
<div class="theme-id-container">
|
272 |
-
<h3 class="theme-name" id="astra-theme-name"> {{{ data.items[ key ].title.rendered }}} </h3>
|
273 |
-
<div class="theme-actions">
|
274 |
-
<button class="button preview install-theme-preview"><?php esc_html_e( 'Preview', 'astra-sites' ); ?></button>
|
275 |
-
</div>
|
276 |
-
</div>
|
277 |
-
</div>
|
278 |
-
</div>
|
279 |
-
<# } #>
|
280 |
-
<# } else { #>
|
281 |
-
<p class="no-themes" style="display:block;">
|
282 |
-
<?php _e( 'No Demos found, Try a different search.', 'astra-sites' ); ?>
|
283 |
-
<span class="description">
|
284 |
-
<?php
|
285 |
-
/* translators: %1$s External Link */
|
286 |
-
printf( __( 'Don\'t see a site that you would like to import?<br><a target="_blank" href="%1$s">Please suggest us!</a>', 'astra-sites' ), esc_url( 'https://wpastra.com/sites-suggestions/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=suggestions' ) );
|
287 |
-
?>
|
288 |
-
</span>
|
289 |
-
</p>
|
290 |
-
<# } #>
|
291 |
-
</script>
|
292 |
-
|
293 |
-
<?php
|
294 |
-
/**
|
295 |
-
* TMPL - List
|
296 |
-
*/
|
297 |
-
?>
|
298 |
-
<script type="text/template" id="tmpl-astra-sites-suggestions">
|
299 |
-
<div class="theme astra-theme site-single astra-sites-suggestions">
|
300 |
-
<div class="inner">
|
301 |
-
<p>
|
302 |
-
<?php
|
303 |
-
/* translators: %1$s External Link */
|
304 |
-
printf( __( 'Don\'t see a site that you would like to import?<br><a target="_blank" href="%1$s">Please suggest us!</a>', 'astra-sites' ), esc_url( 'https://wpastra.com/sites-suggestions/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=suggestions' ) );
|
305 |
-
?>
|
306 |
-
</p>
|
307 |
-
</div>
|
308 |
-
</div>
|
309 |
-
</script>
|
310 |
-
<?php
|
311 |
-
wp_print_admin_notice_templates();
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Shortcode Markup
|
4 |
+
*
|
5 |
+
* TMPL - Single Demo Preview
|
6 |
+
* TMPL - No more demos
|
7 |
+
* TMPL - Filters
|
8 |
+
* TMPL - List
|
9 |
+
*
|
10 |
+
* @package Astra Sites
|
11 |
+
* @since 1.0.0
|
12 |
+
*/
|
13 |
+
|
14 |
+
defined( 'ABSPATH' ) or exit;
|
15 |
+
?>
|
16 |
+
|
17 |
+
<div class="wrap" id="astra-sites-admin">
|
18 |
+
|
19 |
+
<div id="astra-sites-filters">
|
20 |
+
|
21 |
+
<?php if ( apply_filters( 'astra_sites_show_filters', true ) ) { ?>
|
22 |
+
<div class="wp-filter hide-if-no-js">
|
23 |
+
<div class="section-left">
|
24 |
+
|
25 |
+
<!-- All Filters -->
|
26 |
+
<div class="filter-count">
|
27 |
+
<span class="count"></span>
|
28 |
+
</div>
|
29 |
+
<div class="filters-wrap">
|
30 |
+
<div id="astra-site-page-builder"></div>
|
31 |
+
</div>
|
32 |
+
|
33 |
+
</div>
|
34 |
+
|
35 |
+
<div class="section-right">
|
36 |
+
|
37 |
+
<div class="filters-wrap">
|
38 |
+
<div id="astra-site-category"></div>
|
39 |
+
</div>
|
40 |
+
|
41 |
+
<div class="search-form">
|
42 |
+
<label class="screen-reader-text" for="wp-filter-search-input"><?php _e( 'Search Sites', 'astra-sites' ); ?> </label>
|
43 |
+
<input placeholder="<?php _e( 'Search Sites...', 'astra-sites' ); ?>" type="search" aria-describedby="live-search-desc" id="wp-filter-search-input" class="wp-filter-search">
|
44 |
+
</div>
|
45 |
+
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
<?php } ?>
|
49 |
+
|
50 |
+
</div>
|
51 |
+
|
52 |
+
<?php do_action( 'astra_sites_before_site_grid' ); ?>
|
53 |
+
|
54 |
+
<div class="theme-browser rendered">
|
55 |
+
<div id="astra-sites" class="themes wp-clearfix"></div>
|
56 |
+
</div>
|
57 |
+
|
58 |
+
<div class="spinner-wrap">
|
59 |
+
<span class="spinner"></span>
|
60 |
+
</div>
|
61 |
+
|
62 |
+
<?php do_action( 'astra_sites_after_site_grid' ); ?>
|
63 |
+
|
64 |
+
</div>
|
65 |
+
|
66 |
+
<?php
|
67 |
+
/**
|
68 |
+
* TMPL - Single Demo Preview
|
69 |
+
*/
|
70 |
+
?>
|
71 |
+
<script type="text/template" id="tmpl-astra-site-select-page-builder">
|
72 |
+
<div class="select-page-builder">
|
73 |
+
<div class="note-wrap">
|
74 |
+
<h3>
|
75 |
+
<span class="up-arrow dashicons dashicons-editor-break"></span>
|
76 |
+
<div class="note"><?php _e( 'Select Your Favorite Page Builder', 'astra-sites' ); ?></div>
|
77 |
+
</h3>
|
78 |
+
</div>
|
79 |
+
<img src="<?php echo esc_url( ASTRA_SITES_URI . 'inc/assets/images/sites-screenshot.jpg' ); ?>" alt="<?php _e( 'Sites List..', 'astra-sites' ); ?>" title="<?php _e( 'Sites List..', 'astra-sites' ); ?>" />
|
80 |
+
</div>
|
81 |
+
</script>
|
82 |
+
|
83 |
+
<?php
|
84 |
+
/**
|
85 |
+
* TMPL - Single Demo Preview
|
86 |
+
*/
|
87 |
+
?>
|
88 |
+
<script type="text/template" id="tmpl-astra-site-preview">
|
89 |
+
<div class="astra-sites-preview theme-install-overlay wp-full-overlay expanded">
|
90 |
+
<div class="wp-full-overlay-sidebar">
|
91 |
+
<div class="wp-full-overlay-header"
|
92 |
+
data-demo-id="{{{data.id}}}"
|
93 |
+
data-demo-type="{{{data.astra_demo_type}}}"
|
94 |
+
data-demo-url="{{{data.astra_demo_url}}}"
|
95 |
+
data-demo-api="{{{data.demo_api}}}"
|
96 |
+
data-demo-name="{{{data.demo_name}}}"
|
97 |
+
data-demo-slug="{{{data.slug}}}"
|
98 |
+
data-screenshot="{{{data.screenshot}}}"
|
99 |
+
data-content="{{{data.content}}}"
|
100 |
+
data-required-plugins="{{data.required_plugins}}">
|
101 |
+
<input type="hidden" class="astra-site-options" value="{{data.astra_site_options}}" >
|
102 |
+
<input type="hidden" class="astra-enabled-extensions" value="{{data.astra_enabled_extensions}}" >
|
103 |
+
<button class="close-full-overlay"><span class="screen-reader-text"><?php esc_html_e( 'Close', 'astra-sites' ); ?></span></button>
|
104 |
+
<button class="previous-theme"><span class="screen-reader-text"><?php esc_html_e( 'Previous', 'astra-sites' ); ?></span></button>
|
105 |
+
<button class="next-theme"><span class="screen-reader-text"><?php esc_html_e( 'Next', 'astra-sites' ); ?></span></button>
|
106 |
+
<a class="button hide-if-no-customize astra-demo-import" href="#" data-import="disabled"><?php esc_html_e( 'Install Plugins', 'astra-sites' ); ?></a>
|
107 |
+
|
108 |
+
</div>
|
109 |
+
<div class="wp-full-overlay-sidebar-content">
|
110 |
+
<div class="install-theme-info">
|
111 |
+
|
112 |
+
<span class="site-type {{{data.astra_demo_type}}}">{{{data.astra_demo_type}}}</span>
|
113 |
+
<h3 class="theme-name">{{{data.demo_name}}}</h3>
|
114 |
+
|
115 |
+
<# if ( data.screenshot.length ) { #>
|
116 |
+
<img class="theme-screenshot" src="{{{data.screenshot}}}" alt="">
|
117 |
+
<# } #>
|
118 |
+
|
119 |
+
<div class="theme-details">
|
120 |
+
{{{data.content}}}
|
121 |
+
</div>
|
122 |
+
<a href="#" class="theme-details-read-more"><?php _e( 'Read more', 'astra-sites' ); ?> …</a>
|
123 |
+
|
124 |
+
<div class="required-plugins-wrap">
|
125 |
+
<h4><?php _e( 'Required Plugins', 'astra-sites' ); ?> </h4>
|
126 |
+
<div class="required-plugins"></div>
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
</div>
|
130 |
+
|
131 |
+
<div class="wp-full-overlay-footer">
|
132 |
+
<div class="footer-import-button-wrap">
|
133 |
+
<a class="button button-hero hide-if-no-customize astra-demo-import" href="#" data-import="disabled">
|
134 |
+
<?php esc_html_e( 'Install Plugins', 'astra-sites' ); ?>
|
135 |
+
</a>
|
136 |
+
</div>
|
137 |
+
<button type="button" class="collapse-sidebar button" aria-expanded="true"
|
138 |
+
aria-label="Collapse Sidebar">
|
139 |
+
<span class="collapse-sidebar-arrow"></span>
|
140 |
+
<span class="collapse-sidebar-label"><?php esc_html_e( 'Collapse', 'astra-sites' ); ?></span>
|
141 |
+
</button>
|
142 |
+
|
143 |
+
<div class="devices-wrapper">
|
144 |
+
<div class="devices">
|
145 |
+
<button type="button" class="preview-desktop active" aria-pressed="true" data-device="desktop">
|
146 |
+
<span class="screen-reader-text"><?php _e( 'Enter desktop preview mode', 'astra-sites' ); ?></span>
|
147 |
+
</button>
|
148 |
+
<button type="button" class="preview-tablet" aria-pressed="false" data-device="tablet">
|
149 |
+
<span class="screen-reader-text"><?php _e( 'Enter tablet preview mode', 'astra-sites' ); ?></span>
|
150 |
+
</button>
|
151 |
+
<button type="button" class="preview-mobile" aria-pressed="false" data-device="mobile">
|
152 |
+
<span class="screen-reader-text"><?php _e( 'Enter mobile preview mode', 'astra-sites' ); ?></span>
|
153 |
+
</button>
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
+
|
157 |
+
</div>
|
158 |
+
</div>
|
159 |
+
<div class="wp-full-overlay-main">
|
160 |
+
<iframe src="{{{data.astra_demo_url}}}" title="<?php esc_attr_e( 'Preview', 'astra-sites' ); ?>"></iframe>
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
</script>
|
164 |
+
|
165 |
+
<?php
|
166 |
+
/**
|
167 |
+
* TMPL - No more demos
|
168 |
+
*/
|
169 |
+
?>
|
170 |
+
<script type="text/template" id="tmpl-astra-site-api-request-failed">
|
171 |
+
<div class="no-themes">
|
172 |
+
<?php
|
173 |
+
|
174 |
+
/* translators: %1$s & %2$s are a Demo API URL */
|
175 |
+
printf( __( '<p> It seems the demo data server, <i><a href="%1$s">%2$s</a></i> is unreachable from your site.</p>', 'astra-sites' ), esc_url( Astra_Sites::$api_url ), esc_url( Astra_Sites::$api_url ) );
|
176 |
+
|
177 |
+
_e( '<p class="left-margin"> 1. Sometimes, simple page reload fixes any temporary issues. No kidding!</p>', 'astra-sites' );
|
178 |
+
|
179 |
+
_e( '<p class="left-margin"> 2. If that does not work, you will need to talk to your server administrator and check if demo server is being blocked by the firewall!</p>', 'astra-sites' );
|
180 |
+
|
181 |
+
/* translators: %1$s is a support link */
|
182 |
+
printf( __( '<p>If that does not help, please open up a <a href="%1$s" target="_blank">Support Ticket</a> and we will be glad take a closer look for you.</p>', 'astra-sites' ), esc_url( 'https://wpastra.com/support/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=api-request-failed' ) );
|
183 |
+
?>
|
184 |
+
</div>
|
185 |
+
</script>
|
186 |
+
|
187 |
+
<?php
|
188 |
+
/**
|
189 |
+
* TMPL - Site Down
|
190 |
+
*/
|
191 |
+
?>
|
192 |
+
<script type="text/template" id="tmpl-astra-site-down">
|
193 |
+
<div class="postbox astra-site-down">
|
194 |
+
<h2><?php _e( 'Under Maintenance..', 'astra-sites' ); ?></h2>
|
195 |
+
<p><?php _e( 'If you are seeing this message, most likely our servers are under routine maintenance and we will be back shortly. ', 'astra-sites' ); ?></p>
|
196 |
+
<p><?php _e( 'In rare case, it is possible your website is having trouble connecting with ours. If you need help, please feel free to get in touch with us from our website.', 'astra-sites' ); ?></p>
|
197 |
+
</div>
|
198 |
+
</script>
|
199 |
+
|
200 |
+
<?php
|
201 |
+
/**
|
202 |
+
* TMPL - Filters
|
203 |
+
*/
|
204 |
+
?>
|
205 |
+
<script type="text/template" id="tmpl-astra-site-filters">
|
206 |
+
|
207 |
+
<# if ( data ) { #>
|
208 |
+
|
209 |
+
<ul class="{{ data.args.wrapper_class }} {{ data.args.class }}">
|
210 |
+
|
211 |
+
<# if ( data.args.show_all ) { #>
|
212 |
+
<li>
|
213 |
+
<a href="#" data-group="all"> All </a>
|
214 |
+
</li>
|
215 |
+
<# } #>
|
216 |
+
|
217 |
+
<# for ( key in data.items ) { #>
|
218 |
+
<# if ( data.items[ key ].count ) { #>
|
219 |
+
<li>
|
220 |
+
<a href="#" data-group='{{ data.items[ key ].id }}' class="{{ data.items[ key ].name }}">
|
221 |
+
{{ data.items[ key ].name }}
|
222 |
+
</a>
|
223 |
+
</li>
|
224 |
+
<# } #>
|
225 |
+
<# } #>
|
226 |
+
|
227 |
+
</ul>
|
228 |
+
<# } #>
|
229 |
+
</script>
|
230 |
+
|
231 |
+
<?php
|
232 |
+
/**
|
233 |
+
* TMPL - List
|
234 |
+
*/
|
235 |
+
?>
|
236 |
+
<script type="text/template" id="tmpl-astra-sites-list">
|
237 |
+
|
238 |
+
<# if ( data.items.length ) { #>
|
239 |
+
<# for ( key in data.items ) { #>
|
240 |
+
|
241 |
+
<div class="theme astra-theme site-single {{ data.items[ key ].status }}" tabindex="0" aria-describedby="astra-theme-action astra-theme-name"
|
242 |
+
data-demo-id="{{{ data.items[ key ].id }}}"
|
243 |
+
data-demo-type="{{{ data.items[ key ]['astra-site-type'] }}}"
|
244 |
+
data-demo-url="{{{ data.items[ key ]['astra-site-url'] }}}"
|
245 |
+
data-demo-api="{{{ data.items[ key ]['_links']['self'][0]['href'] }}}"
|
246 |
+
data-demo-name="{{{ data.items[ key ].title.rendered }}}"
|
247 |
+
data-demo-slug="{{{ data.items[ key ].slug }}}"
|
248 |
+
data-screenshot="{{{ data.items[ key ]['featured-image-url'] }}}"
|
249 |
+
data-content="{{{ data.items[ key ].content.rendered }}}"
|
250 |
+
data-required-plugins="{{ JSON.stringify( data.items[ key ]['required-plugins'] ) }}"
|
251 |
+
data-groups=["{{ data.items[ key ].tags }}"]>
|
252 |
+
<input type="hidden" class="astra-site-options" value="{{ JSON.stringify(data.items[ key ]['astra-site-options-data'] ) }}" />
|
253 |
+
<input type="hidden" class="astra-enabled-extensions" value="{{ JSON.stringify(data.items[ key ]['astra-enabled-extensions'] ) }}" />
|
254 |
+
|
255 |
+
<div class="inner">
|
256 |
+
<span class="site-preview" data-href="{{ data.items[ key ]['astra-site-url'] }}?TB_iframe=true&width=600&height=550" data-title="{{ data.items[ key ].title.rendered }}">
|
257 |
+
<div class="theme-screenshot">
|
258 |
+
<# if( '' !== data.items[ key ]['featured-image-url'] ) { #>
|
259 |
+
<img src="{{ data.items[ key ]['featured-image-url'] }}" />
|
260 |
+
<# } #>
|
261 |
+
</div>
|
262 |
+
</span>
|
263 |
+
<span class="more-details"> <?php esc_html_e( 'Details & Preview', 'astra-sites' ); ?> </span>
|
264 |
+
<# if ( data.items[ key ]['astra-site-type'] ) { #>
|
265 |
+
<# var type = ( data.items[ key ]['astra-site-type'] !== 'premium' ) ? ( data.items[ key ]['astra-site-type'] ) : 'agency'; #>
|
266 |
+
<span class="site-type {{data.items[ key ]['astra-site-type']}}">{{ type }}</span>
|
267 |
+
<# } #>
|
268 |
+
<# if ( data.items[ key ].status ) { #>
|
269 |
+
<span class="status {{data.items[ key ].status}}">{{data.items[ key ].status}}</span>
|
270 |
+
<# } #>
|
271 |
+
<div class="theme-id-container">
|
272 |
+
<h3 class="theme-name" id="astra-theme-name"> {{{ data.items[ key ].title.rendered }}} </h3>
|
273 |
+
<div class="theme-actions">
|
274 |
+
<button class="button preview install-theme-preview"><?php esc_html_e( 'Preview', 'astra-sites' ); ?></button>
|
275 |
+
</div>
|
276 |
+
</div>
|
277 |
+
</div>
|
278 |
+
</div>
|
279 |
+
<# } #>
|
280 |
+
<# } else { #>
|
281 |
+
<p class="no-themes" style="display:block;">
|
282 |
+
<?php _e( 'No Demos found, Try a different search.', 'astra-sites' ); ?>
|
283 |
+
<span class="description">
|
284 |
+
<?php
|
285 |
+
/* translators: %1$s External Link */
|
286 |
+
printf( __( 'Don\'t see a site that you would like to import?<br><a target="_blank" href="%1$s">Please suggest us!</a>', 'astra-sites' ), esc_url( 'https://wpastra.com/sites-suggestions/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=suggestions' ) );
|
287 |
+
?>
|
288 |
+
</span>
|
289 |
+
</p>
|
290 |
+
<# } #>
|
291 |
+
</script>
|
292 |
+
|
293 |
+
<?php
|
294 |
+
/**
|
295 |
+
* TMPL - List
|
296 |
+
*/
|
297 |
+
?>
|
298 |
+
<script type="text/template" id="tmpl-astra-sites-suggestions">
|
299 |
+
<div class="theme astra-theme site-single astra-sites-suggestions">
|
300 |
+
<div class="inner">
|
301 |
+
<p>
|
302 |
+
<?php
|
303 |
+
/* translators: %1$s External Link */
|
304 |
+
printf( __( 'Don\'t see a site that you would like to import?<br><a target="_blank" href="%1$s">Please suggest us!</a>', 'astra-sites' ), esc_url( 'https://wpastra.com/sites-suggestions/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=suggestions' ) );
|
305 |
+
?>
|
306 |
+
</p>
|
307 |
+
</div>
|
308 |
+
</div>
|
309 |
+
</script>
|
310 |
+
<?php
|
311 |
+
wp_print_admin_notice_templates();
|
languages/astra-sites.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Astra Starter Sites package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Astra Starter Sites 1.2.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
|
7 |
-
"POT-Creation-Date: 2019-01-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -384,7 +384,7 @@ msgstr ""
|
|
384 |
msgid "No Title"
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: inc/importers/wxr-importer/class-astra-wxr-importer.php:
|
388 |
msgid "Import complete!"
|
389 |
msgstr ""
|
390 |
|
2 |
# This file is distributed under the same license as the Astra Starter Sites package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Astra Starter Sites 1.2.12\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
|
7 |
+
"POT-Creation-Date: 2019-01-28 13:25:33+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
384 |
msgid "No Title"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: inc/importers/wxr-importer/class-astra-wxr-importer.php:229
|
388 |
msgid "Import complete!"
|
389 |
msgstr ""
|
390 |
|
readme.txt
CHANGED
@@ -1,30 +1,68 @@
|
|
1 |
-
=== Astra Starter Sites ===
|
2 |
Contributors: brainstormforce
|
3 |
Donate link: https://wpastra.com/pro/
|
4 |
-
Tags:
|
5 |
Requires at least: 4.4
|
6 |
Requires PHP: 5.3
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 1.2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
-
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
2. Pick a site you like.
|
20 |
-
3. Install required plugins in one click
|
21 |
-
4. Import the site data.
|
22 |
-
5. Done ;)
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
Use this imported site as a base for your project and don't waste time starting from scratch!
|
26 |
|
27 |
-
_<a href="https://wpastra.com/ready-websites
|
28 |
|
29 |
#### Video Walkthrough by Adam from WPCrafter:
|
30 |
[youtube https://www.youtube.com/watch?v=zYbz-jxE9_Q]
|
@@ -37,16 +75,38 @@ _<a href="https://wpastra.com/ready-websites/">See list of all available sites t
|
|
37 |
|
38 |
== Frequently Asked Questions ==
|
39 |
|
40 |
-
=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
-
|
43 |
|
44 |
-
|
45 |
|
46 |
-
= Can I
|
47 |
|
48 |
-
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
|
52 |
== Screenshots ==
|
@@ -57,6 +117,9 @@ https://wpastra.com/sites-suggestions/
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
60 |
v1.2.11 - 24-Jan-2019
|
61 |
* Improvement: Display a maintenance message if the Astra Sites API is unreachable.
|
62 |
* Fix: EventSource abort the import process if default charset is not UTF-8.
|
1 |
+
=== Astra Starter Sites – Elementor, Beaver Builder & Gutenberg Templates ===
|
2 |
Contributors: brainstormforce
|
3 |
Donate link: https://wpastra.com/pro/
|
4 |
+
Tags: Elementor,Beaver Builder,Templates,Gutenberg,Astra Starter Sites
|
5 |
Requires at least: 4.4
|
6 |
Requires PHP: 5.3
|
7 |
+
Tested up to: 5.1
|
8 |
+
Stable tag: 1.2.12
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
+
The growing library of 90+ ready-to-use free website templates built for Elementor, Beaver Builder page builder and the default WordPress editor Gutenberg.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
= FREE TEMPLATES FOR ELEMENTOR, BEAVER BUILDER AND GUTENBERG =
|
17 |
|
18 |
+
Create professional designed pixel perfect websites in minutes with the Astra Starter Sites plugin.
|
|
|
|
|
|
|
|
|
19 |
|
20 |
+
This plugin gives you access to 90+ pre-made full website demos for your favorite page builder such as Elementor, Beaver Builder, Brizy and the WordPress default editor Gutenberg.
|
21 |
+
|
22 |
+
All you need to do is select the demo that suits your needs, import, tweak and go live!
|
23 |
+
|
24 |
+
> I love the fact that the Astra Starter Sites plugin comes with dozens of pre-built sites that were built using Elementor and that can be used to create a full website with one click. - Ben Pines, CMO at Elementor
|
25 |
+
|
26 |
+
> Astra Sites allows anyone to have a beautiful website in under 5 minutes while using all open source software. The theme is free, the plugin is free, it’s almost unbelievable. You have to see it with your own eyes. - Adam Preiser, WPCrafter
|
27 |
+
|
28 |
+
= GET A WEBSITE LIVE IN 5 CLICKS! =
|
29 |
+
|
30 |
+
1.Install and activate Astra Starter Sites Plugin
|
31 |
+
2.Pick a website demo that suits your needs
|
32 |
+
3.Install required plugins with a single click
|
33 |
+
4.Import the website
|
34 |
+
5.Done!
|
35 |
+
|
36 |
+
= FULL WEBSITE TEMPLATES FOR =
|
37 |
+
|
38 |
+
Businesses like restaurants, lawyers, agencies, interior designers, artist shops, brandstore, pet services, charity, plumber, dental clinic, construction, fitness trainer, gardening, makeup artist and a lot more. You can take a look at all of them built with different page builders.
|
39 |
+
|
40 |
+
- [Elementor Free Website Templates](https://wpastra.com/ready-websites/?page-builder=elementor&category=free)
|
41 |
+
- [Beaver Builder Free Website Templates](https://wpastra.com/ready-websites/?page-builder=beaver-builder&category=free)
|
42 |
+
- [Gutenberg Free Website Templates](https://wpastra.com/ready-websites/?page-builder=gutenberg&category=free)
|
43 |
+
- [Brizy Free Website Templates](https://wpastra.com/ready-websites/?page-builder=brizy&category=free)
|
44 |
+
|
45 |
+
You can extend this library with premium ready-to-use website demos by purchasing one of the Agency Bundles, i.e. either the Mini Agency Bundle or the Agency Bundle.
|
46 |
+
|
47 |
+
= WHY PEOPLE LOVE THE ASTRA THEME? =
|
48 |
+
|
49 |
+
Over 200,000+ users are empowering their websites with Astra! From beginners to industry experts, everyone is loving Astra for its performance and ease of use.
|
50 |
+
|
51 |
+
= Here are a few reasons why they love Astra - =
|
52 |
+
|
53 |
+
**Faster Performance** - Built with speed and performance in mind, Astra follows the best coding standards and lets you build faster loading and better performing websites.
|
54 |
+
|
55 |
+
**Easy Customization** - With all the settings managed through the customizer, Astra keeps it simple and gives you lots of options to customize everything with a few clicks.
|
56 |
+
|
57 |
+
**Pixel Perfect Design** - Astra reduces your design time by giving you pixel-perfect FREE ready-to-use websites demos within a huge library of starter sites.
|
58 |
+
|
59 |
+
**Deeper Integrations** - Astra works seamlessly with all WooCommerce plugins, LifterLMS, LearnDash etc. This means that you can create and beautify eCommerce websites and those that offer online courses in minutes.
|
60 |
+
|
61 |
+
Fetch the website, tweak images and content and go live!
|
62 |
|
63 |
Use this imported site as a base for your project and don't waste time starting from scratch!
|
64 |
|
65 |
+
_<a href="https://wpastra.com/ready-websites/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme">See list of all available sites to import »</a>_
|
66 |
|
67 |
#### Video Walkthrough by Adam from WPCrafter:
|
68 |
[youtube https://www.youtube.com/watch?v=zYbz-jxE9_Q]
|
75 |
|
76 |
== Frequently Asked Questions ==
|
77 |
|
78 |
+
= Will the Astra Starter Sites work with my theme? =
|
79 |
+
|
80 |
+
All the website demos are built using the Astra theme. Therefore, in order to use the Astra Starter Sites plugin and import a ready-to-use website, you will need to have the Astra theme installed.
|
81 |
+
|
82 |
+
= Are all the starter sites free? =
|
83 |
+
|
84 |
+
You get over 90+ FREE ready-to-use websites as of now. There are many more premium website demos that can be accessed when you purchase one of our Agency Bundles.
|
85 |
+
|
86 |
+
= How can I import and install the starter sites? =
|
87 |
+
|
88 |
+
Here is an article that will help you [install and import Astra starter sites](https://wpastra.com/docs/installing-importing-astra-sites/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme) on your website.
|
89 |
+
|
90 |
|
91 |
+
= Can I import a website demo on an existing website? =
|
92 |
|
93 |
+
It is recommended to install and import a website demo on a fresh WordPress installation or a blank website to avoid overriding of settings and page design.
|
94 |
|
95 |
+
= Can I deactivate the Astra Starter Sites plugin after importing a website? =
|
96 |
|
97 |
+
Yes! The Astra Strater Sites plugin acts as a medium through which you can import and install a website from our cloud server. Once you have the website at your end, you can go ahead and deactivate the plugin.
|
98 |
+
|
99 |
+
= Do I need to install any other plugin before importing a website? =
|
100 |
+
|
101 |
+
You just need to activate the Astra theme and import the website through the Astra Starter Sites plugin. During the process of importing, you will come across a step in which you can install necessary plugins with one click.
|
102 |
+
|
103 |
+
= Will you add more website demos? =
|
104 |
+
|
105 |
+
Yes! We are working on many more free website demos built using Elementor, Beaver Builder, Gutenberg and Brizy.
|
106 |
+
|
107 |
+
= What if I do not find a website for the topic I am looking for? =
|
108 |
+
|
109 |
+
We are open to suggestions and would love to work on topics that our users are looking out for. Please feel free to drop your suggestions through the form [here](https://wpastra.com/sites-suggestions/?utm_source=wp-repo&utm_medium=link&utm_campaign=readme).
|
110 |
|
111 |
|
112 |
== Screenshots ==
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
v1.2.12 - 29-Jan-2019
|
121 |
+
* Fix: Gutenberg render markup is invalid due to encoded characterless e.g. <, > are decoded into HTML tag.
|
122 |
+
|
123 |
v1.2.11 - 24-Jan-2019
|
124 |
* Improvement: Display a maintenance message if the Astra Sites API is unreachable.
|
125 |
* Fix: EventSource abort the import process if default charset is not UTF-8.
|