Astra Starter Sites - Version 2.6.7

Version Description

Download this release

Release Info

Developer brainstormworg
Plugin Icon Astra Starter Sites
Version 2.6.7
Comparing to
See all releases

Code changes from version 2.6.6 to 2.6.7

astra-sites.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Starter Templates
4
  * Plugin URI: https://wpastra.com/
5
  * Description: Starter Templates is all in one solution for complete starter sites, single page templates, blocks & images. This plugin offers the premium library of ready templates & provides quick access to beautiful Pixabay images that can be imported in your website easily.
6
- * Version: 2.6.6
7
  * Author: Brainstorm Force
8
  * Author URI: https://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', '2.6.6' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
3
  * Plugin Name: Starter Templates
4
  * Plugin URI: https://wpastra.com/
5
  * Description: Starter Templates is all in one solution for complete starter sites, single page templates, blocks & images. This plugin offers the premium library of ready templates & provides quick access to beautiful Pixabay images that can be imported in your website easily.
6
+ * Version: 2.6.7
7
  * Author: Brainstorm Force
8
  * Author URI: https://www.brainstormforce.com
9
  * Text Domain: astra-sites
19
  }
20
 
21
  if ( ! defined( 'ASTRA_SITES_VER' ) ) {
22
+ define( 'ASTRA_SITES_VER', '2.6.7' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
inc/assets/js/src/content.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ wp.media.view.AstraSearch = require( './search.js' );
2
+
3
+ var AstraContent = wp.media.View.extend({
4
+
5
+ tagName: 'div',
6
+ className: 'ast-attachments-search-wrap',
7
+ initialize: function() {
8
+ this.value = this.options.value;
9
+ },
10
+
11
+ render: function() {
12
+
13
+ var search = new wp.media.view.AstraSearch({
14
+ controller: this.controller,
15
+ model: this.model,
16
+ });
17
+ this.views.add( search );
18
+ return this;
19
+ }
20
+ });
21
+
22
+ module.exports = AstraContent;
inc/assets/js/src/frame.js ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var Frame = wp.media.view.Frame,
2
+ AstraAttachmentsBrowser;
3
+
4
+ wp.media.view.AstraContent = require( './content.js' );
5
+
6
+ AstraAttachmentsBrowser = Frame.extend({
7
+ tagName: 'div',
8
+ className: 'attachments-browser ast-attachments-browser',
9
+ images : [],
10
+ object: [],
11
+ initialize: function() {
12
+ _.defaults( this.options, {
13
+ filters: false,
14
+ search: true,
15
+ date: true,
16
+ display: false,
17
+ sidebar: true,
18
+ AttachmentView: wp.media.view.Attachment.Library
19
+ });
20
+
21
+ // Add a heading before the attachments list.
22
+ this.createContent();
23
+ },
24
+
25
+ createContent: function() {
26
+
27
+ this.attachmentsHeading = new wp.media.view.Heading( {
28
+ text: astraImages.title,
29
+ level: 'h3',
30
+ className: 'ast-media-views-heading'
31
+ } );
32
+ // this.views.add( this.attachmentsHeading );
33
+ this.views.add( new wp.media.view.AstraContent );
34
+ this.$el.find( '.ast-image__search' ).wrapAll( '<div class="ast-image__search-wrap">' ).parent().html();
35
+ this.$el.find( '.ast-image__search-wrap' ).append( '<span class="ast-icon-search search-icon"></span>' );
36
+ },
37
+
38
+ photoUploadComplete: function( savedImage ) {
39
+ if ( savedImage && savedImage.attachmentData) {
40
+ this.model.frame.content.mode("browse")
41
+ this.model.get("selection").add( savedImage.attachmentData )
42
+ this.model.frame.trigger("library:selection:add")
43
+ this.model.get("selection")
44
+ jQuery(".media-frame .media-button-select").click()
45
+ }
46
+ }
47
+ });
48
+
49
+ module.exports = AstraAttachmentsBrowser;
inc/assets/js/src/index.js ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($){
2
+
3
+ var AstraImages = {
4
+
5
+ init: function() {
6
+
7
+ if ( undefined != wp && wp.media ) {
8
+
9
+ var $ = jQuery,
10
+ oldMediaFrameSelect = wp.media.view.MediaFrame.Select;
11
+
12
+ wp.media.view.AstraAttachmentsBrowser = require( './frame.js' );
13
+
14
+ wp.media.view.MediaFrame.Select = oldMediaFrameSelect.extend( {
15
+
16
+ // Tab / Router
17
+ browseRouter( routerView ) {
18
+ oldMediaFrameSelect.prototype.browseRouter.apply( this, arguments );
19
+ routerView.set( {
20
+ astraimages: {
21
+ text: astraImages.title,
22
+ priority: 70,
23
+ },
24
+ } );
25
+ },
26
+
27
+ // Handlers
28
+ bindHandlers() {
29
+ oldMediaFrameSelect.prototype.bindHandlers.apply( this, arguments );
30
+ this.on( 'content:create:astraimages', this.astraimages, this );
31
+ },
32
+
33
+ /**
34
+ * Render callback for the content region in the `browse` mode.
35
+ *
36
+ * @param {wp.media.controller.Region} contentRegion
37
+ */
38
+ astraimages( contentRegion ) {
39
+ const state = this.state();
40
+ // Browse our library of attachments.
41
+ let thisView = new wp.media.view.AstraAttachmentsBrowser({
42
+ controller: this,
43
+ model: state,
44
+ AttachmentView: state.get( 'AttachmentView' )
45
+ });
46
+ contentRegion.view = thisView
47
+ wp.media.view.AstraAttachmentsBrowser.object = thisView
48
+ setTimeout( function() {
49
+ $( document ).trigger( 'ast-image__set-scope' );
50
+ }, 100 );
51
+ }
52
+
53
+ });
54
+ }
55
+ },
56
+
57
+ };
58
+
59
+
60
+ /**
61
+ * Initialize AstraImages
62
+ */
63
+ $( function(){
64
+
65
+ AstraImages.init();
66
+
67
+ if ( astraImages.is_bb_active && astraImages.is_bb_editor ) {
68
+ if ( undefined !== FLBuilder ) {
69
+ if ( null !== FLBuilder._singlePhotoSelector ) {
70
+ FLBuilder._singlePhotoSelector.on( 'open', function( event ) {
71
+ AstraImages.init();
72
+ } );
73
+ }
74
+ }
75
+ }
76
+
77
+ });
78
+
79
+ })(jQuery);
80
+
inc/assets/js/src/search.js ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $ = jQuery
2
+ // Search input view controller.
3
+ var AstraSearch = wp.Backbone.View.extend({
4
+
5
+ tagName: 'input',
6
+ className: 'ast-image__search',
7
+ id: 'ast-image-search-input',
8
+ searching: false,
9
+ images: [],
10
+ attributes: {
11
+ placeholder: astraImages.search_placeholder,
12
+ type: 'search',
13
+ 'aria-describedby': 'live-search-desc'
14
+ },
15
+
16
+ events: {
17
+ 'search' : 'search',
18
+ 'keyup': 'search',
19
+ 'blur': 'pushState',
20
+ 'infinite': 'infinite',
21
+ },
22
+
23
+ initialize: function( options ) {
24
+
25
+ this.parent = options.parent;
26
+ },
27
+
28
+ infinite: function( event ) {
29
+
30
+ // Since doSearch is debounced, it will only run when user input comes to a rest.
31
+ this.doSearch( event );
32
+ },
33
+
34
+ search: function( event ) {
35
+
36
+ // Clear on escape.
37
+ if ( event.type === 'keyup' && event.which === 27 ) {
38
+ event.target.value = '';
39
+ }
40
+ if( '' == event.target.value ) {
41
+ this.$el.removeClass('has-input');
42
+ } else {
43
+ this.$el.addClass('has-input');
44
+ }
45
+
46
+ $scope.find( '.ast-image__skeleton' ).animate({ scrollTop: 0 }, 0 );
47
+ $( 'body' ).data( 'page', 1 );
48
+ AstraImageCommon.infiniteLoad = false;
49
+
50
+ let thisObject = this;
51
+ setTimeout( function(){
52
+ thisObject.doSearch( event );
53
+ }, 1000 );
54
+ },
55
+
56
+ // Runs a search on the theme collection.
57
+ doSearch: function( event ) {
58
+
59
+ if ( this.searching ) {
60
+ return;
61
+ }
62
+
63
+ let thisObject = this;
64
+ thisObject.searching = true;
65
+ AstraImageCommon.config.q = event.target.value;
66
+ var url = astraImages.pixabay_url + '?' + $.param( AstraImageCommon.config );
67
+
68
+ if ( url ) {
69
+ fetch( url ).then(function (response) {
70
+ return response.json();
71
+ }).then(function (result) {
72
+ thisObject.searching = false;
73
+ this.images = result.hits;
74
+ wp.media.view.AstraAttachmentsBrowser.images = this.images;
75
+ $( document ).trigger( 'ast-image__refresh' );
76
+ });
77
+ }
78
+ },
79
+
80
+ pushState: function( event ) {
81
+ $( document ).trigger( 'ast-image__refresh' );
82
+ }
83
+ });
84
+
85
+ module.exports = AstraSearch;
inc/classes/class-astra-sites-page.php CHANGED
@@ -430,7 +430,7 @@ if ( ! class_exists( 'Astra_Sites_Page' ) ) {
430
  <?php if ( 'invalid_site_id' === $import_status ) { ?>
431
  <p><?php esc_html_e( 'The demo you are importing seems invalid. The site is not found.', 'astra-sites' ); ?></p>
432
  <?php } elseif ( 'premium_sites' === $import_status ) { ?>
433
- <p><?php esc_html_e( 'The demo you are importing is a premium demo.', 'astra-sites' ); ?> <a href="https://wpastra.com/pricing/?utm_source=batch-site-import&utm_campaign=astra-sites&utm_medium=batch-import" class="" target="_blank"><?php esc_html_e( 'Get Agency Bundle', 'astra-sites' ); ?><i class="dashicons dashicons-external"></i></a></p>
434
  <?php } else { ?>
435
  <p><?php esc_html_e( 'The import process can take a few minutes depending on the size of the site and speed of the connection.', 'astra-sites' ); ?></p>
436
  <?php } ?>
@@ -698,7 +698,7 @@ if ( ! class_exists( 'Astra_Sites_Page' ) ) {
698
  </li>
699
  <li class="ast-sites__filter-wrap-checkbox">
700
  <label>
701
- <input id="radio-agency" type="radio" name="ast-sites-radio" class="checkbox" value="agency" /><?php esc_html_e( 'Agency', 'astra-sites' ); ?>
702
  </label>
703
  </li>
704
  </ul>
430
  <?php if ( 'invalid_site_id' === $import_status ) { ?>
431
  <p><?php esc_html_e( 'The demo you are importing seems invalid. The site is not found.', 'astra-sites' ); ?></p>
432
  <?php } elseif ( 'premium_sites' === $import_status ) { ?>
433
+ <p><?php esc_html_e( 'The demo you are importing is a premium demo.', 'astra-sites' ); ?> <a href="https://wpastra.com/pricing/?utm_source=batch-site-import&utm_campaign=astra-sites&utm_medium=batch-import" class="" target="_blank"><?php esc_html_e( 'Get Access!', 'astra-sites' ); ?><i class="dashicons dashicons-external"></i></a></p>
434
  <?php } else { ?>
435
  <p><?php esc_html_e( 'The import process can take a few minutes depending on the size of the site and speed of the connection.', 'astra-sites' ); ?></p>
436
  <?php } ?>
698
  </li>
699
  <li class="ast-sites__filter-wrap-checkbox">
700
  <label>
701
+ <input id="radio-agency" type="radio" name="ast-sites-radio" class="checkbox" value="agency" /><?php esc_html_e( 'Premium', 'astra-sites' ); ?>
702
  </label>
703
  </li>
704
  </ul>
inc/classes/class-astra-sites-wp-cli.php CHANGED
@@ -180,7 +180,7 @@ if ( class_exists( 'WP_CLI_Command' ) && ! class_exists( 'Astra_Sites_WP_CLI' )
180
  if ( 'free' !== $demo_data['site-type'] && 'upgrade' === $demo_data['license-status'] && ! $license_status ) {
181
 
182
  if ( ! defined( 'ASTRA_PRO_SITES_NAME' ) ) {
183
- WP_CLI::line( __( 'This is Agency site. Please activate the "Starter Templates" license!', 'astra-sites' ) );
184
  WP_CLI::line( __( 'Use `wp plugin deactivate astra-sites` and then `wp plugin activate astra-pro-sites`', 'astra-sites' ) );
185
  }
186
 
@@ -590,7 +590,7 @@ if ( class_exists( 'WP_CLI_Command' ) && ! class_exists( 'Astra_Sites_WP_CLI' )
590
  'slug' => $site['slug'],
591
  'title' => $site['title']['rendered'],
592
  'url' => $site['astra-site-url'],
593
- 'type' => ( 'premium' === $site['astra-site-type'] ) ? 'Agency' : ucwords( $site['astra-site-type'] ),
594
  'categories' => array(),
595
  'page_builders' => array(),
596
  );
180
  if ( 'free' !== $demo_data['site-type'] && 'upgrade' === $demo_data['license-status'] && ! $license_status ) {
181
 
182
  if ( ! defined( 'ASTRA_PRO_SITES_NAME' ) ) {
183
+ WP_CLI::line( __( 'This is Premium site. Please activate the "Starter Templates" license!', 'astra-sites' ) );
184
  WP_CLI::line( __( 'Use `wp plugin deactivate astra-sites` and then `wp plugin activate astra-pro-sites`', 'astra-sites' ) );
185
  }
186
 
590
  'slug' => $site['slug'],
591
  'title' => $site['title']['rendered'],
592
  'url' => $site['astra-site-url'],
593
+ 'type' => ( 'premium' === $site['astra-site-type'] ) ? 'Premium' : ucwords( $site['astra-site-type'] ),
594
  'categories' => array(),
595
  'page_builders' => array(),
596
  );
inc/classes/class-astra-sites.php CHANGED
@@ -1295,7 +1295,7 @@ if ( ! class_exists( 'Astra_Sites' ) ) :
1295
  'whiteLabelName' => Astra_Sites_White_Label::get_instance()->get_white_label_name(),
1296
  'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ),
1297
  'siteURL' => site_url(),
1298
- 'getProText' => __( 'Get Agency Bundle', 'astra-sites' ),
1299
  'getProURL' => esc_url( 'https://wpastra.com/pricing/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=wp-dashboard' ),
1300
  'getUpgradeText' => __( 'Upgrade', 'astra-sites' ),
1301
  'getUpgradeURL' => esc_url( 'https://wpastra.com/pricing/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=wp-dashboard' ),
@@ -1512,11 +1512,11 @@ if ( ! class_exists( 'Astra_Sites' ) ) :
1512
  }
1513
 
1514
  /* translators: %s are link. */
1515
- $license_msg = sprintf( __( 'This is a premium website demo available only with the Agency Bundles you can purchase it from <a href="%s" target="_blank">here</a>.', 'astra-sites' ), 'https://wpastra.com/pricing/' );
1516
 
1517
  if ( defined( 'ASTRA_PRO_SITES_NAME' ) ) {
1518
  /* translators: %s are link. */
1519
- $license_msg = sprintf( __( 'This is a premium template available with \'Agency\' packages. <a href="%s" target="_blank">Validate Your License</a> Key to import this template.', 'astra-sites' ), esc_url( admin_url( 'plugins.php?bsf-inline-license-form=astra-pro-sites' ) ) );
1520
  }
1521
 
1522
  $data = apply_filters(
@@ -1538,7 +1538,7 @@ if ( ! class_exists( 'Astra_Sites' ) ) :
1538
  'isPro' => defined( 'ASTRA_PRO_SITES_NAME' ) ? true : false,
1539
  'license_msg' => $license_msg,
1540
  'isWhiteLabeled' => Astra_Sites_White_Label::get_instance()->is_white_labeled(),
1541
- 'getProText' => __( 'Get Agency Bundle', 'astra-sites' ),
1542
  'getProURL' => esc_url( 'https://wpastra.com/pricing/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=wp-dashboard' ),
1543
  'astra_block_categories' => $this->get_api_option( 'astra-blocks-categories' ),
1544
  'siteURL' => site_url(),
1295
  'whiteLabelName' => Astra_Sites_White_Label::get_instance()->get_white_label_name(),
1296
  'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ),
1297
  'siteURL' => site_url(),
1298
+ 'getProText' => __( 'Get Access!', 'astra-sites' ),
1299
  'getProURL' => esc_url( 'https://wpastra.com/pricing/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=wp-dashboard' ),
1300
  'getUpgradeText' => __( 'Upgrade', 'astra-sites' ),
1301
  'getUpgradeURL' => esc_url( 'https://wpastra.com/pricing/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=wp-dashboard' ),
1512
  }
1513
 
1514
  /* translators: %s are link. */
1515
+ $license_msg = sprintf( __( 'This is a premium template available with Essential Bundle and Growth Bundle. you can purchase it from <a href="%s" target="_blank">here</a>.', 'astra-sites' ), 'https://wpastra.com/pricing/' );
1516
 
1517
  if ( defined( 'ASTRA_PRO_SITES_NAME' ) ) {
1518
  /* translators: %s are link. */
1519
+ $license_msg = sprintf( __( 'This is a premium template available with Essential Bundle and Growth Bundle. <a href="%s" target="_blank">Validate Your License</a> Key to import this template.', 'astra-sites' ), esc_url( admin_url( 'plugins.php?bsf-inline-license-form=astra-pro-sites' ) ) );
1520
  }
1521
 
1522
  $data = apply_filters(
1538
  'isPro' => defined( 'ASTRA_PRO_SITES_NAME' ) ? true : false,
1539
  'license_msg' => $license_msg,
1540
  'isWhiteLabeled' => Astra_Sites_White_Label::get_instance()->is_white_labeled(),
1541
+ 'getProText' => __( 'Get Access!', 'astra-sites' ),
1542
  'getProURL' => esc_url( 'https://wpastra.com/pricing/?utm_source=demo-import-panel&utm_campaign=astra-sites&utm_medium=wp-dashboard' ),
1543
  'astra_block_categories' => $this->get_api_option( 'astra-blocks-categories' ),
1544
  'siteURL' => site_url(),
inc/includes/admin-page.php CHANGED
@@ -241,7 +241,7 @@ $site_import_options = apply_filters(
241
  </div>
242
  <# if ( site_type && 'free' !== site_type ) { #>
243
  <?php /* translators: %s are white label strings. */ ?>
244
- <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Agency" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Agency', 'astra-sites' ); ?></div>
245
  <# } #>
246
  </div>
247
  </div>
@@ -330,7 +330,7 @@ $site_import_options = apply_filters(
330
  </div>
331
  <# if ( site_type && 'free' !== site_type ) { #>
332
  <?php /* translators: %s are white label strings. */ ?>
333
- <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Agency" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Agency', 'astra-sites' ); ?></div>
334
  <# } #>
335
  </div>
336
  </div>
@@ -391,7 +391,7 @@ $site_import_options = apply_filters(
391
  </div>
392
  <# if ( site_type && 'free' !== site_type ) { #>
393
  <?php /* translators: %s are white label strings. */ ?>
394
- <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Agency" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Agency', 'astra-sites' ); ?></div>
395
  <# } #>
396
  </div>
397
  </div>
@@ -410,13 +410,13 @@ $site_import_options = apply_filters(
410
  <p>
411
  <?php
412
  /* translators: %s is pricing page link */
413
- printf( __( 'This is a premium template available with \'Agency\' package. you can purchase it from <a href="%s" target="_blank">here</a>.', 'astra-sites' ), 'https://wpastra.com/pricing/' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
414
  ?>
415
  </p>
416
  <p>
417
  <?php
418
  /* translators: %s is article link */
419
- printf( __( 'If you already own an Agency pack. Read an article to know how you can <a href="%s" target="_blank">import a premium website demo</a>.', 'astra-sites' ), esc_url( 'https://wpastra.com/docs/starter-templates-complete-site/' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
420
  ?>
421
  </p>
422
  </script>
@@ -444,7 +444,7 @@ $site_import_options = apply_filters(
444
 
445
  <?php
446
  /**
447
- * TMPL - Invalid Mini Agency License
448
  */
449
  ?>
450
  <script type="text/template" id="tmpl-astra-sites-invalid-mini-agency-license">
@@ -460,7 +460,7 @@ $site_import_options = apply_filters(
460
  }
461
 
462
  /* translators: %s is pricing page link */
463
- printf( __( '<p>Seems like you have purchased the %4$s \'Mini Agency\' package with a choice of \'%1$s\' page builder addon.</p><p>While this template is built with \'%2$s\' page builder addon.</p><p>Read article <a href="%3$s" target="_blank">here</a> to see how you can proceed.</p>', 'astra-sites' ), esc_html( $current_page_builder ), esc_html( $upgrade_page_builder ), esc_url( Astra_Sites_White_Label::get_instance()->get_white_label_link( 'https://wpastra.com/docs/not-valid-license/' ) ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
464
  ?>
465
  </p>
466
  </script>
241
  </div>
242
  <# if ( site_type && 'free' !== site_type ) { #>
243
  <?php /* translators: %s are white label strings. */ ?>
244
+ <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Premium" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Premium', 'astra-sites' ); ?></div>
245
  <# } #>
246
  </div>
247
  </div>
330
  </div>
331
  <# if ( site_type && 'free' !== site_type ) { #>
332
  <?php /* translators: %s are white label strings. */ ?>
333
+ <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Premium" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Premium', 'astra-sites' ); ?></div>
334
  <# } #>
335
  </div>
336
  </div>
391
  </div>
392
  <# if ( site_type && 'free' !== site_type ) { #>
393
  <?php /* translators: %s are white label strings. */ ?>
394
+ <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Premium" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Premium', 'astra-sites' ); ?></div>
395
  <# } #>
396
  </div>
397
  </div>
410
  <p>
411
  <?php
412
  /* translators: %s is pricing page link */
413
+ printf( __( 'This is a premium template available with Essential Bundle and Growth Bundle. You can purchase one of the bundles from <a href="%s" target="_blank">here</a> to get access to this premium template.', 'astra-sites' ), 'https://wpastra.com/pricing/' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
414
  ?>
415
  </p>
416
  <p>
417
  <?php
418
  /* translators: %s is article link */
419
+ printf( __( 'If you already own Essential Bundle or Growth Bundle, read an article to know how you can <a href="%s" target="_blank">import a premium website demo</a>.', 'astra-sites' ), esc_url( 'https://wpastra.com/docs/starter-templates-complete-site/' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
420
  ?>
421
  </p>
422
  </script>
444
 
445
  <?php
446
  /**
447
+ * TMPL - Invalid Essential Bundle License
448
  */
449
  ?>
450
  <script type="text/template" id="tmpl-astra-sites-invalid-mini-agency-license">
460
  }
461
 
462
  /* translators: %s is pricing page link */
463
+ printf( __( '<p>Seems like you have purchased the %4$s \'Essential Bundle\' package with a choice of \'%1$s\' page builder addon.</p><p>While this template is built with \'%2$s\' page builder addon.</p><p>Read article <a href="%3$s" target="_blank">here</a> to see how you can proceed.</p>', 'astra-sites' ), esc_html( $current_page_builder ), esc_html( $upgrade_page_builder ), esc_url( Astra_Sites_White_Label::get_instance()->get_white_label_link( 'https://wpastra.com/docs/not-valid-license/' ) ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
464
  ?>
465
  </p>
466
  </script>
inc/includes/templates.php CHANGED
@@ -27,7 +27,7 @@ $suggestion_link = astra_sites_get_suggestion_link();
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( 'Agency', 'astra-sites' ); ?></option>
31
  </select>
32
  </div>
33
  <div class="astra-blocks-category-inner-wrap">
@@ -168,7 +168,7 @@ $suggestion_link = astra_sites_get_suggestion_link();
168
  </div>
169
  <# if ( site_type && 'free' !== site_type ) { #>
170
  <?php /* translators: %s are white label strings. */ ?>
171
- <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Agency" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Agency', 'astra-sites' ); ?></div>
172
  <# } #>
173
  </div>
174
  </div>
@@ -295,7 +295,7 @@ $suggestion_link = astra_sites_get_suggestion_link();
295
  </div>
296
  <# if ( site_type && 'free' !== site_type ) { #>
297
  <?php /* translators: %s are white label strings. */ ?>
298
- <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Agency" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Agency', 'astra-sites' ); ?></div>
299
  <# } #>
300
  </div>
301
  </div>
@@ -381,7 +381,7 @@ $suggestion_link = astra_sites_get_suggestion_link();
381
  </div>
382
  <# if ( site_type && 'free' !== site_type ) { #>
383
  <?php /* translators: %1$s External Link */ ?>
384
- <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Agency" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Agency', 'astra-sites' ); ?></div>
385
  <# } #>
386
  </div>
387
  </div>
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">
168
  </div>
169
  <# if ( site_type && 'free' !== site_type ) { #>
170
  <?php /* translators: %s are white label strings. */ ?>
171
+ <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Premium" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Premium', 'astra-sites' ); ?></div>
172
  <# } #>
173
  </div>
174
  </div>
295
  </div>
296
  <# if ( site_type && 'free' !== site_type ) { #>
297
  <?php /* translators: %s are white label strings. */ ?>
298
+ <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Premium" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Premium', 'astra-sites' ); ?></div>
299
  <# } #>
300
  </div>
301
  </div>
381
  </div>
382
  <# if ( site_type && 'free' !== site_type ) { #>
383
  <?php /* translators: %1$s External Link */ ?>
384
+ <div class="agency-ribbons" title="<?php printf( esc_attr__( 'This premium template is accessible with %1$s "Premium" Package.', 'astra-sites' ), Astra_Sites_White_Label::get_instance()->get_white_label_name() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php esc_html_e( 'Premium', 'astra-sites' ); ?></div>
385
  <# } #>
386
  </div>
387
  </div>
inc/lib/ast-block-templates/dist/json/ast-block-templates-block-requests.json CHANGED
File without changes
inc/lib/ast-block-templates/dist/json/ast-block-templates-blocks-1.json CHANGED
File without changes
inc/lib/ast-block-templates/dist/json/ast-block-templates-site-requests.json CHANGED
File without changes
inc/lib/ast-block-templates/dist/json/ast-block-templates-sites-1.json CHANGED
File without changes
inc/lib/bsf-quick-links/readme.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BSF Quick Links
2
+
3
+ BSF Quick Links allows you to show a list of your most commonly used links and access them from our plugins settings page
4
+ > Example
5
+ > - Upgrade to Pro.
6
+ > - Documentation
7
+ > - Join our community and access them from our plugins settings page.
8
+
9
+
10
+ ### How to use? ###
11
+ @see https://github.com/brainstormforce/astra-sites/blob/3c42ceeeb466a2f4e7656ba0d5b43a8a9909e6fd/inc/classes/class-astra-sites.php#L143
12
+
13
+ - Add below action into respective plugins settings page.
14
+ ```sh
15
+ add_action( 'admin_footer', array( $this, 'add_quick_links' ) );
16
+ ```
17
+
18
+ - Callback function
19
+ ```sh
20
+ public function add_quick_links() {
21
+ $current_screen = get_current_screen();
22
+
23
+ if ( 'plugin_settings_screen_name' !== $current_screen->id ) {
24
+ return;
25
+ }
26
+
27
+ if ( Astra_Sites_White_Label::get_instance()->is_white_labeled() ) {
28
+ return;
29
+ }
30
+
31
+ $data = array(
32
+ 'default_logo' => array(
33
+ 'title' => '', //title on logo hover.
34
+ 'url' => '',
35
+ ),
36
+ 'links' => array(
37
+ array('label' => '','icon' => '','url' => ''),
38
+ array('label' => '','icon' => '','url' => ''),
39
+ array('label' => '','icon' => '','url' => ''),
40
+ ...
41
+ )
42
+ );
43
+ if ( defined( 'ASTRA_PRO_SITES_VER' ) ) {
44
+ array_shift( $data['links'] ); //Exclude upgrade to pro link.
45
+ }
46
+
47
+ bsf_quick_links( $data );
48
+ }
49
+ ```
readme.txt CHANGED
@@ -5,7 +5,7 @@ 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.7
8
- Stable tag: 2.6.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -63,7 +63,7 @@ Businesses like restaurants, lawyers, agencies, interior designers, artist shops
63
  - [Gutenberg Free Website Templates](https://wpastra.com/ready-websites/?page-builder=gutenberg&category=free)
64
  - [Brizy Free Website Templates](https://wpastra.com/ready-websites/?page-builder=brizy&category=free)
65
 
66
- 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.
67
 
68
  = WHY PEOPLE LOVE THE ASTRA THEME? =
69
 
@@ -149,6 +149,12 @@ We are open to suggestions and would love to work on topics that our users are l
149
 
150
  == Changelog ==
151
 
 
 
 
 
 
 
152
  v2.6.6 - 18-May-2021
153
  - Fix: Avoided the HTML being printed in one of the error message screens.
154
  - Improvement: Improved error message when the requests fail to reach Starter Templates' servers.
5
  Requires at least: 4.4
6
  Requires PHP: 5.3
7
  Tested up to: 5.7
8
+ Stable tag: 2.6.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
63
  - [Gutenberg Free Website Templates](https://wpastra.com/ready-websites/?page-builder=gutenberg&category=free)
64
  - [Brizy Free Website Templates](https://wpastra.com/ready-websites/?page-builder=brizy&category=free)
65
 
66
+ You can extend this library with premium ready-to-use website demos by purchasing one of the Astra Bundles, i.e. either the Essential Bundle or the Growth Bundle.
67
 
68
  = WHY PEOPLE LOVE THE ASTRA THEME? =
69
 
149
 
150
  == Changelog ==
151
 
152
+ v2.6.7 - 19-May-2021
153
+ - Improvement: Changed 'Agency' tag with 'Premium' for templates in library [Screenshot](https://share.bsf.io/rRuGrRjq)
154
+ - Improvement: Get Agency Bundle button text will now be 'Get Access' [Screenshot](https://share.bsf.io/rRuGrRjq)
155
+ - Improvement: All strings with Agency Bundle will now be Growth Bundle. [Screenshot](https://share.bsf.io/6qu86nY1)
156
+ - Improvement: All strings with Mini Agency Bundle will now be Essential Bundle.
157
+
158
  v2.6.6 - 18-May-2021
159
  - Fix: Avoided the HTML being printed in one of the error message screens.
160
  - Improvement: Improved error message when the requests fail to reach Starter Templates' servers.