PluginProbe ʕ •ᴥ•ʔ
Starter Templates – AI-Powered Templates for Elementor & Gutenberg / 4.4.0
Starter Templates – AI-Powered Templates for Elementor & Gutenberg v4.4.0
4.6.1 4.6.0 4.5.4 4.5.3 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.5.0 2.5.1 2.6.0 2.6.1 2.6.10 2.6.11 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.18 2.6.19 2.6.2 2.6.20 2.6.21 2.6.22 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 3.0.0 3.0.1 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.18 3.0.19 3.0.2 3.0.20 3.0.21 3.0.22 3.0.23 3.0.24 3.0.25 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 3.1.19 3.1.2 3.1.20 3.1.21 3.1.22 3.1.23 3.1.24 3.1.25 3.1.26 3.1.27 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 4.0.0 4.0.1 4.0.10 4.0.11 4.0.12 4.0.13 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.8 4.3.9 4.4.0 4.4.1 4.4.10 4.4.11 4.4.12 4.4.13 4.4.14 4.4.16 4.4.17 4.4.18 4.4.19 4.4.2 4.4.20 4.4.21 4.4.22 4.4.23 4.4.24 trunk 4.4.25 0.4.4.0 4.4.26 0.4.4.15 4.4.27 1.0.0 4.4.28 1.0.1 4.4.29 1.0.10 4.4.3 1.0.11 4.4.30 1.0.12 4.4.31 1.0.13 4.4.32 1.0.14 4.4.33 1.0.2 4.4.34 1.0.3 4.4.35 1.0.4 4.4.36 1.0.5 4.4.37 1.0.6 4.4.38 1.0.7 4.4.39 1.0.8 4.4.4 1.0.9 4.4.40 1.1.0 4.4.41 1.1.1 4.4.42 1.1.2 4.4.43 1.1.3 4.4.44 1.1.4 4.4.45 1.1.5 4.4.46 1.1.6 4.4.47 1.1.7 4.4.48 1.1.8 4.4.49 1.1.9 4.4.5 1.2.0 4.4.50 1.2.1 4.4.51 1.2.10 4.4.52 1.2.11 4.4.6 1.2.12 4.4.7 1.2.13 4.4.8 1.2.14 4.4.9 1.2.15 4.5.0 1.2.2 4.5.1 1.2.3 4.5.2 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.10 1.3.11 1.3.13 1.3.14 1.3.15 1.3.16 1.3.17 1.3.18 1.3.19 1.3.2 1.3.20 1.3.21 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 2.0.0 2.0.1 2.0.2 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5
astra-sites / inc / includes / templates.php
astra-sites / inc / includes Last commit date
image-templates.php 4 years ago templates.php 1 year ago white-label.php 3 years ago
templates.php
574 lines
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 if ( ! defined( 'ABSPATH' ) ) {
15 exit;
16 }
17 $suggestion_link = astra_sites_get_suggestion_link();
18 ?>
19
20 <script type="text/template" id="tmpl-ast-template-base-skeleton">
21 <div class="dialog-widget dialog-lightbox-widget dialog-type-buttons dialog-type-lightbox" id="ast-sites-modal">
22 <div class="dialog-widget-content dialog-lightbox-widget-content">
23 <div class="astra-sites-content-wrap" data-page="1">
24 <div class="ast-template-library-toolbar">
25 <div class="elementor-template-library-filter-toolbar">
26 <div class="elementor-template-library-order">
27 <select class="elementor-template-library-order-input elementor-template-library-filter-select elementor-select2">
28 <option value=""><?php esc_html_e( 'All', 'astra-sites' ); ?></option>
29 <option value="free"><?php esc_html_e( 'Free', 'astra-sites' ); ?></option>
30 <option value="agency"><?php esc_html_e( 'Premium', 'astra-sites' ); ?></option>
31 </select>
32 </div>
33 <div class="astra-blocks-category-inner-wrap">
34 <select id="elementor-template-library-filter" class="astra-blocks-category elementor-template-library-filter-select elementor-select2">
35 <option value=""><?php esc_html_e( 'All', 'astra-sites' ); ?></option>
36 <# for ( key in astraElementorSites.astra_block_categories ) { #>
37 <option value="{{astraElementorSites.astra_block_categories[key].id}}">{{astraElementorSites.astra_block_categories[key].name}}</option>
38 <# } #>
39 </select>
40 </div>
41 <div class="astra-blocks-filter-inner-wrap" id="elementor-template-block-color-filter" style="display: none;"></div>
42 </div>
43 <div class="ast-sites-template-library-filter-text-wrapper">
44 <label for="elementor-template-library-filter-text" class="elementor-screen-only"><?php esc_html_e( 'Search...', 'astra-sites' ); ?></label>
45 <input id="wp-filter-search-input" placeholder="<?php esc_attr_e( 'SEARCH', 'astra-sites' ); ?>" class="">
46 <i class="eicon-search"></i>
47 </div>
48 </div>
49 <?php
50 // Check flexbox container, If inactive then activate it.
51 $flexbox_container = get_option( 'elementor_experiment-container' );
52 // Check if the value is 'inactive'.
53 if ( 'inactive' === $flexbox_container ) {
54 ?>
55 <div class="ast-sites-container-notice-wrap">
56 <div class="ast-sites-container-notice-content">
57 <p><?php esc_html_e( "We've observed that the 'Flexbox Container' setting in your Elementor configuration is currently inactive. To ensure a seamless import, please active this option.", 'astra-sites' ); ?></p>
58 <div class="ast-sites-container-notice-actions">
59 <a href="<?php echo esc_url( home_url( '/wp-admin/admin.php?page=elementor#tab-experiments' ) ); ?>" class="ast-sites-container-notice-button" >
60 <span><?php esc_html_e( 'Activate it!', 'astra-sites' ); ?></span>
61 </a>
62 </div>
63 </div>
64 </div>
65 <?php
66 }
67 ?>
68 <div id="ast-sites-floating-notice-wrap-id" class="ast-sites-floating-notice-wrap"><div class="ast-sites-floating-notice"></div></div>
69 <?php
70 $manual_sync = get_site_option( 'astra-sites-manual-sync-complete', 'no' );
71 if ( 'yes' === $manual_sync ) {
72 $batch_status = get_site_option( 'astra-sites-batch-is-complete', 'no' );
73 if ( 'yes' === $batch_status ) {
74 ?>
75 <div class="ast-sites-floating-notice-wrap refreshed-notice slide-in">
76 <div class="ast-sites-floating-notice">
77 <div class="astra-sites-sync-library-message success astra-sites-notice notice notice-success is-dismissible">
78 <?php Astra_Sites::get_instance()->get_sync_complete_message( true ); ?> <button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php esc_html_e( 'Dismiss', 'astra-sites' ); ?></span></button>
79 </div>
80 </div>
81 </div>
82 <?php
83 }
84 }
85 ?>
86 <div class="dialog-message dialog-lightbox-message" data-type="pages">
87 <div class="dialog-content dialog-lightbox-content theme-browser"></div>
88 <div class="theme-preview"></div>
89 </div>
90 <div class="dialog-message dialog-lightbox-message-block" data-type="blocks">
91 <div class="dialog-content dialog-lightbox-content-block theme-browser" data-block-page="1"></div>
92 <div class="theme-preview-block"></div>
93 </div>
94 <div class="astra-loading-wrap"><div class="astra-loading-icon"></div></div>
95 </div>
96 <div class="dialog-buttons-wrapper dialog-lightbox-buttons-wrapper"></div>
97 </div>
98 <div class="dialog-background-lightbox"></div>
99 </div>
100 </script>
101
102 <script type="text/template" id="tmpl-ast-template-block-color-filters">
103 <select class="astra-blocks-filter elementor-template-library-filter-select elementor-select2">
104 <option value=""><?php esc_html_e( 'Filter by Color', 'astra-sites' ); ?></option>
105 <# for ( key in data ) { #>
106 <option value="{{data[key]}}">{{data[key]}}</option>
107 <# } #>
108 </select>
109 </script>
110
111 <script type="text/template" id="tmpl-ast-template-modal__header-back">
112 <div class="dialog-lightbox-back"><span class="dialog-lightbox-back-text"><?php esc_html_e( 'Back to Pages', 'astra-sites' ); ?></span></div>
113 </script>
114
115 <script type="text/template" id="tmpl-ast-template-modal__header">
116 <div class="dialog-header dialog-lightbox-header">
117 <div class="ast-sites-modal__header">
118 <div class="ast-sites-modal__header__logo-area">
119 <?php
120 if ( ! Astra_Sites_White_Label::get_instance()->is_white_labeled() ) {
121 ?>
122 <div class="ast-sites-modal__header__logo">
123 <span class="ast-sites-modal__header__logo__icon-wrapper"></span>
124 </div>
125 <?php
126 } else {
127 ?>
128 <div class="ast-sites-modal__header__logo">
129 <span class="ast-sites-modal__header__logo__text-wrapper"><?php echo esc_html( Astra_Sites_White_Label::get_instance()->get_white_label_name() ); ?></span>
130 </div>
131 <?php
132 }
133 ?>
134 <div class="back-to-layout" title="<?php esc_attr_e( 'Back to Layout', 'astra-sites' ); ?>" data-step="1"><i class="ast-icon-chevron-left"></i></div>
135 </div>
136 <div class="elementor-templates-modal__header__menu-area astra-sites-step-1-wrap ast-sites-modal__options">
137 <div class="elementor-template-library-header-menu">
138 <div class="elementor-template-library-menu-item elementor-active" data-template-source="remote" data-template-type="pages"><span class="ast-icon-file"></span><?php esc_html_e( 'Pages', 'astra-sites' ); ?></div>
139 <div class="elementor-template-library-menu-item" data-template-source="remote" data-template-type="blocks"><span class="ast-icon-layers"></span><?php esc_html_e( 'Blocks', 'astra-sites' ); ?></div>
140 </div>
141 </div>
142 <div class="elementor-templates-modal__header__items-area">
143 <div class="ast-sites-modal__header__close ast-sites-modal__header__close--normal ast-sites-modal__header__item">
144 <i class="dashicons close dashicons-no-alt" aria-hidden="true" title="<?php esc_attr_e( 'Close', 'astra-sites' ); ?>"></i>
145 <span class="elementor-screen-only"><?php esc_html_e( 'Close', 'astra-sites' ); ?></span>
146 </div>
147 <div class="astra-sites__sync-wrap">
148 <div class="astra-sites-sync-library-button">
149 <span class="ast-icon-refresh" aria-hidden="true" title="<?php esc_attr_e( 'Sync Library', 'astra-sites' ); ?>"></span>
150 </div>
151 </div>
152 </div>
153 </div>
154 </div>
155 </script>
156
157 <script type="text/template" id="tmpl-astra-sites-list">
158
159 <#
160 var count = 0;
161 for ( key in data ) {
162 var page_data = data[ key ][ 'pages' ];
163 var site_type = data[ key ][ 'astra-sites-type' ] || '';
164 if ( 0 == Object.keys( page_data ).length ) {
165 continue;
166 }
167 if ( undefined == site_type ) {
168 continue;
169 }
170 if ( '' !== AstraElementorSitesAdmin.siteType ) {
171 if ( 'free' == AstraElementorSitesAdmin.siteType && site_type != 'free' ) {
172 continue;
173 }
174
175 if ( 'free' != AstraElementorSitesAdmin.siteType && site_type == 'free' ) {
176 continue;
177 }
178 }
179 var type_class = ' site-type-' + data[ key ]['astra-sites-type'];
180 var site_title = data[ key ]['title'].slice( 0, 25 );
181 if ( data[ key ]['title'].length > 25 ) {
182 site_title += '...';
183 }
184 count++;
185 #>
186 <div class="theme astra-theme site-single publish page-builder-elementor {{type_class}}" data-site-id={{key}} data-template-id="">
187 <div class="inner">
188 <span class="site-preview" data-href="" data-title={{site_title}}>
189 <div class="theme-screenshot one loading" data-step="1" data-src={{data[ key ]['thumbnail-image-url']}} data-featured-src={{data[ key ]['featured-image-url']}}>
190 <div class="elementor-template-library-template-preview">
191 <i class="eicon-zoom-in" aria-hidden="true"></i>
192 </div>
193 </div>
194 </span>
195 <div class="theme-id-container">
196 <h3 class="theme-name">{{site_title}}</h3>
197 </div>
198 <# if ( site_type && 'free' !== site_type ) { #>
199 <?php /* translators: %1$s are white label strings. */ ?>
200 <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Premium" Package.', 'astra-sites' ), esc_html( Astra_Sites_White_Label::get_instance()->get_white_label_name() ) ); ?>"><img class="premium-crown-icon" src="<?php echo esc_url( ASTRA_SITES_URI . 'inc/assets/images/premium-crown.svg' ); ?>" alt="premium-crown"><?php esc_html_e( 'Premium', 'astra-sites' ); ?></div>
201 <# } #>
202 </div>
203 </div>
204 <#
205 }
206 #>
207 </script>
208
209 <script type="text/template" id="tmpl-astra-blocks-list">
210
211 <#
212 var count = 0;
213 let upper_window = ( AstraElementorSitesAdmin.per_page * ( AstraElementorSitesAdmin.page - 1 ) );
214 let lower_window = ( upper_window + AstraElementorSitesAdmin.per_page );
215
216 for ( key in data ) {
217
218 var site_title = ( undefined == data[ key ]['category'] || 0 == data[ key ]['category'].length ) ? data[ key ]['title'] : astraElementorSites.astra_block_categories[data[ key ]['category']].name;
219
220 if ( '' !== AstraElementorSitesAdmin.blockCategory ) {
221 if ( AstraElementorSitesAdmin.blockCategory != data[ key ]['category'] ) {
222 continue;
223 }
224 }
225
226 if ( '' !== AstraElementorSitesAdmin.blockColor ) {
227 if ( undefined !== data[ key ]['filter'] && AstraElementorSitesAdmin.blockColor != data[ key ]['filter'] ) {
228 continue;
229 }
230 }
231 count++;
232 #>
233 <div class="astra-sites-library-template astra-theme" data-block-id={{key}}>
234 <div class="astra-sites-library-template-inner" >
235 <div class="elementor-template-library-template-body theme-screenshot" data-step="1">
236 <img src="{{data[ key ]['thumbnail-image-url']}}">
237 <div class="elementor-template-library-template-preview">
238 <i class="eicon-zoom-in" aria-hidden="true"></i>
239 </div>
240 </div>
241 <div class="elementor-template-library-template-footer">
242 <a class="elementor-template-library-template-action elementor-template-library-template-insert ast-block-insert">
243 <i class="eicon-file-download" aria-hidden="true"></i>
244 <span class="elementor-button-title"><?php esc_html_e( 'INSERT', 'astra-sites' ); ?></span>
245 </a>
246 </div>
247 </div>
248 </div>
249 <#
250 }
251 if ( count == 0 ) {
252 #>
253 <div class="astra-sites-no-sites">
254 <div class="inner">
255 <h3><?php esc_html_e( 'Sorry No Results Found.', 'astra-sites' ); ?></h3>
256 <div class="content" style="text-align: center">
257 <div class="description">
258 <p>
259 <?php
260 /* translators: %1$s External Link */
261 printf( esc_html__( "Don't see a template you would like to import? %s", 'astra-sites' ), nl2br( '<br><a target="_blank" href="' . esc_url( $suggestion_link ) . '">Make a Template Suggestion!</a>' ) );
262 ?>
263 </p>
264 <div class="back-to-layout-button"><span class="button astra-sites-back"><?php esc_html_e( 'Back to Templates', 'astra-sites' ); ?></span></div>
265 </div>
266 </div>
267 </div>
268 </div>
269 <#
270 }
271 #>
272 </script>
273
274 <script type="text/template" id="tmpl-astra-sites-list-search">
275
276 <#
277 var count = 0;
278
279 for ( ind in data ) {
280 var site_type = data[ ind ]['site-pages-type'];
281 var type_class = ' site-type-' + site_type;
282 var site_id = ( undefined == data.site_id ) ? data[ind].site_id : data.site_id;
283 if ( undefined == site_type ) {
284 continue;
285 }
286 if ( 'gutenberg' == data[ind]['site-pages-page-builder'] ) {
287 continue;
288 }
289 var site_title = data[ ind ]['title'].slice( 0, 25 );
290 if ( data[ ind ]['title'].length > 25 ) {
291 site_title += '...';
292 }
293 count++;
294 #>
295 <div class="theme astra-theme site-single publish page-builder-elementor {{type_class}}" data-template-id={{ind}} data-site-id={{site_id}}>
296 <div class="inner">
297 <span class="site-preview" data-href="" data-title={{site_title}}>
298 <div class="theme-screenshot one loading" data-step="2" data-src={{data[ ind ]['thumbnail-image-url']}} data-featured-src={{data[ ind ]['featured-image-url']}}>
299 <div class="elementor-template-library-template-preview">
300 <i class="eicon-zoom-in" aria-hidden="true"></i>
301 </div>
302 </div>
303 </span>
304 <div class="theme-id-container">
305 <h3 class="theme-name">{{site_title}}</h3>
306 <#
307 var is_free = true;
308 if ( 'pages' == AstraElementorSitesAdmin.type ) {
309 if( 'free' !== data[ ind ]['site-pages-type'] && ! astraElementorSites.license_status ) {
310 is_free = false;
311 }
312 }
313 if( is_free ) { #>
314 <a class="elementor-template-library-template-action elementor-template-library-template-insert ast-block-insert">
315 <i class="eicon-file-download" aria-hidden="true"></i>
316 <span class="elementor-button-title"><?php esc_html_e( 'INSERT', 'astra-sites' ); ?></span>
317 </a>
318 <# } else { #>
319 <a class="elementor-template-library-template-action elementor-template-library-template-go-pro" href="{{astraElementorSites.getProURL}}" target="_blank">
320 <i class="eicon-external-link-square" aria-hidden="true"></i>
321 <span class="elementor-button-title"><?php esc_html_e( 'Get Access!', 'astra-sites' ); ?></span>
322 </a>
323 <# } #>
324 </div>
325 <# if ( site_type && 'free' !== site_type ) { #>
326 <?php /* translators: %1$s are white label strings. */ ?>
327 <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Premium" Package.', 'astra-sites' ), esc_html( Astra_Sites_White_Label::get_instance()->get_white_label_name() ) ); ?>"><?php esc_html_e( 'Premium', 'astra-sites' ); ?></div>
328 <# } #>
329 </div>
330 </div>
331 <#
332 }
333
334 if ( count == 0 ) {
335 #>
336 <div class="astra-sites-no-sites">
337 <div class="inner">
338 <h3><?php esc_html_e( 'Sorry No Results Found.', 'astra-sites' ); ?></h3>
339 <div class="content">
340 <div class="description">
341 <p>
342 <?php
343 /* translators: %1$s External Link */
344 printf( esc_attr__( 'Don\'t see a template you would like to import?<br><a target="_blank" href="%1$s">Make a Template Suggestion!</a>', 'astra-sites' ), esc_url( $suggestion_link ) );
345 ?>
346 </p>
347 <div class="back-to-layout-button"><span class="button astra-sites-back"><?php esc_html_e( 'Back to Templates', 'astra-sites' ); ?></span></div>
348 </div>
349 </div>
350 </div>
351 </div>
352 <#
353 }
354 #>
355 </script>
356
357 <script type="text/template" id="tmpl-astra-sites-search">
358
359 <#
360 var count = 0;
361
362 for ( ind in data ) {
363 if ( 'gutenberg' == data[ind]['site-pages-page-builder'] ) {
364 continue;
365 }
366
367 var site_id = ( undefined == data.site_id ) ? data[ind].site_id : data.site_id;
368 var site_type = data[ ind ]['site-pages-type'];
369
370 if ( 'site' == data[ind]['type'] ) {
371 site_type = data[ ind ]['astra-sites-type'];
372 }
373
374 if ( undefined == site_type ) {
375 continue;
376 }
377
378 var parent_name = '';
379 if ( undefined != data[ind]['parent-site-name'] ) {
380 var parent_name = jQuery( "<textarea/>") .html( data[ind]['parent-site-name'] ).text();
381 }
382
383 var complete_title = parent_name + ' - ' + data[ ind ]['title'];
384 var site_title = complete_title.slice( 0, 25 );
385 if ( complete_title.length > 25 ) {
386 site_title += '...';
387 }
388
389 var tmp = site_title.split(' - ');
390 var title1 = site_title;
391 var title2 = '';
392 if ( undefined !== tmp && undefined !== tmp[1] ) {
393 title1 = tmp[0];
394 title2 = ' - ' + tmp[1];
395 } else {
396 title1 = tmp[0];
397 title2 = '';
398 }
399
400 var type_class = ' site-type-' + site_type;
401 count++;
402 #>
403 <div class="theme astra-theme site-single publish page-builder-elementor {{type_class}}" data-template-id={{ind}} data-site-id={{site_id}}>
404 <div class="inner">
405 <span class="site-preview" data-href="" data-title={{title2}}>
406 <div class="theme-screenshot one loading" data-type={{data[ind]['type']}} data-step={{data[ind]['step']}} data-show="search" data-src={{data[ ind ]['thumbnail-image-url']}} data-featured-src={{data[ ind ]['featured-image-url']}}></div>
407 </span>
408 <div class="theme-id-container">
409 <h3 class="theme-name"><strong>{{title1}}</strong>{{title2}}</h3>
410 </div>
411 <# if ( site_type && 'free' !== site_type ) { #>
412 <div class="agency-ribbons" title="
413 <?php
414 /* translators: %1$s are white label strings. */
415 printf( esc_attr__( 'This premium template is accessible with %1$s "Premium" Package.', 'astra-sites' ), esc_html( Astra_Sites_White_Label::get_instance()->get_white_label_name() ) );
416 ?>
417 "
418 >
419 <?php esc_html_e( 'Premium', 'astra-sites' ); ?>
420 </div>
421 <# } #>
422 </div>
423 </div>
424 <#
425 }
426
427 if ( count == 0 ) {
428 #>
429 <div class="astra-sites-no-sites">
430 <div class="inner">
431 <h3><?php esc_html_e( 'Sorry No Results Found.', 'astra-sites' ); ?></h3>
432 <div class="content" style="text-align: center">
433 <div class="description">
434 <p>
435 <?php
436 /* translators: %1$s External Link */
437 printf( esc_html__( "Don't see a template you would like to import? %s", 'astra-sites' ), nl2br( '<br><a target="_blank" href="' . esc_url( $suggestion_link ) . '">Make a Template Suggestion!</a>' ) );
438 ?>
439 </p>
440 <div class="back-to-layout-button"><span class="button astra-sites-back"><?php esc_html_e( 'Back to Templates', 'astra-sites' ); ?></span></div>
441 </div>
442 </div>
443 </div>
444 </div>
445 <#
446 }
447 #>
448 </script>
449
450 <script type="text/template" id="tmpl-astra-sites-insert-button">
451 <div id="elementor-template-library-header-preview-insert-wrapper" class="elementor-templates-modal__header__item" data-template-id={{data.template_id}} data-site-id={{data.site_id}}>
452 <a class="elementor-template-library-template-action elementor-template-library-template-insert elementor-button">
453 <i class="eicon-file-download" aria-hidden="true"></i>
454 <span class="elementor-button-title"><?php esc_html_e( 'Insert', 'astra-sites' ); ?></span>
455 </a>
456
457 </div>
458 </script>
459
460 <?php
461 /**
462 * TMPL - Third Party Required Plugins
463 */
464 ?>
465 <script type="text/template" id="tmpl-astra-sites-third-party-required-plugins">
466 <div class="skip-and-import">
467 <div class="heading">
468 <h3><?php esc_html_e( 'Required Plugins Missing', 'astra-sites' ); ?></h3>
469 <span class="dashicons close dashicons-no-alt"></span>
470 </div>
471 <div class="astra-sites-import-content">
472 <p><?php esc_html_e( 'This starter site requires premium plugins. As these are third party premium plugins, you\'ll need to purchase, install and activate them first.', 'astra-sites' ); ?></p>
473 <ul class="astra-sites-third-party-required-plugins">
474 <# for ( key in data ) { #>
475 <li class="plugin-card plugin-card-{{data[ key ].slug}}'" data-slug="{{data[ key ].slug }}" data-init="{{data[ key ].init}}" data-name="{{data[ key ].name}}"><a href="{{data[ key ].link}}" target="_blank">{{data[ key ].name}}</a></li>
476 <# } #>
477 </ul>
478 </div>
479 <div class="ast-actioms-wrap">
480 <a href="#" class="button button-hero button-primary astra-sites-skip-and-import-step"><?php esc_html_e( 'Skip & Import', 'astra-sites' ); ?></a>
481 <div class="button button-hero site-import-cancel"><?php esc_html_e( 'Cancel', 'astra-sites' ); ?></div>
482 </div>
483 </div>
484 </script>
485
486 <script type="text/template" id="tmpl-astra-sites-no-sites">
487 <div class="astra-sites-no-sites">
488 <div class="inner">
489 <h3><?php esc_html_e( 'Sorry No Results Found.', 'astra-sites' ); ?></h3>
490 <div class="content">
491 <div class="empty-item">
492 <img class="empty-collection-part" src="<?php echo esc_url( ASTRA_SITES_URI . 'inc/assets/images/empty-collection.svg' ); ?>" alt="empty-collection">
493 </div>
494 <div class="description">
495 <p>
496 <?php
497 /* translators: %1$s External Link */
498 printf( esc_html__( 'Don\'t see a template you would like to import?<br><a target="_blank" href="%1$s">Make a Template Suggestion!</a>', 'astra-sites' ), esc_url( $suggestion_link ) );
499 ?>
500 </p>
501 <div class="back-to-layout-button"><span class="button astra-sites-back"><?php esc_html_e( 'Back to Templates', 'astra-sites' ); ?></span></div>
502 </div>
503 </div>
504 </div>
505 </div>
506 <#
507 </script>
508
509 <script type="text/template" id="tmpl-astra-sites-elementor-preview">
510 <#
511 let wrap_height = $elscope.find( '.astra-sites-content-wrap' ).height();
512 wrap_height = ( wrap_height - 55 );
513 wrap_height = wrap_height + 'px';
514 #>
515 <div id="astra-blocks" class="themes wp-clearfix" data-site-id="{{data.id}}" style="display: block;">
516 <div class="single-site-wrap">
517 <div class="single-site">
518 <div class="single-site-preview-wrap">
519 <div class="single-site-preview" style="max-height: {{wrap_height}};">
520 <img class="theme-screenshot" data-src="" src="{{data['featured-image-url']}}">
521 </div>
522 </div>
523 </div>
524 </div>
525 </div>
526 </script>
527
528 <script type="text/template" id="tmpl-astra-sites-elementor-preview-actions">
529 <#
530 var demo_link = '';
531 var action_str = '';
532 if ( 'blocks' == AstraElementorSitesAdmin.type ) {
533 demo_link = astraElementorSites.astra_blocks[AstraElementorSitesAdmin.block_id]['url'];
534 action_str = 'Block';
535 } else {
536 demo_link = data['astra-page-url'];
537 action_str = 'Template';
538 }
539 #>
540 <div class="astra-preview-actions-wrap">
541 <div class="astra-preview-actions-inner-wrap">
542 <div class="astra-preview-actions">
543 <div class="site-action-buttons-wrap">
544 <div class="astra-sites-import-template-action site-action-buttons-right">
545 <div class="astra-sites-tooltip"><span class="astra-sites-tooltip-icon" data-tip-id="astra-sites-tooltip-plugins-settings"><span class="dashicons dashicons-editor-help"></span></span></div>
546 <#
547 var is_free = true;
548 if ( 'pages' == AstraElementorSitesAdmin.type ) {
549 if( 'free' !== data['site-pages-type'] && ! astraElementorSites.license_status ) {
550 is_free = false;
551 }
552 }
553 if( ! is_free ) { #>
554 <a class="button button-hero button-primary" href="{{astraElementorSites.getProURL}}" target="_blank">{{astraElementorSites.getProText}}<i class="dashicons dashicons-external"></i></a>
555 <# } else { #>
556 <div type="button" class="button button-hero button-primary ast-library-template-insert disabled"><?php esc_html_e( 'Import ', 'astra-sites' ); ?>{{action_str}}</div>
557 <div type="button" class="button button-hero button-primary ast-import-elementor-template disabled"><?php esc_html_e( 'Save ', 'astra-sites' ); ?>{{action_str}}</div>
558 <# } #>
559 </div>
560 </div>
561 </div>
562 <div class="ast-tooltip-wrap">
563 <div>
564 <div class="ast-tooltip-inner-wrap" id="astra-sites-tooltip-plugins-settings">
565 <ul class="required-plugins-list"><span class="spinner is-active"></span></ul>
566 </div>
567 </div>
568 </div>
569 </div>
570 </div>
571 </script>
572
573 <?php
574