Version Description
Download this release
Release Info
Developer | brainstormworg |
Plugin | Astra Starter Sites |
Version | 2.6.17 |
Comparing to | |
See all releases |
Code changes from version 2.6.16 to 2.6.17
- assets/js/admin.js +10 -0
- astra-sites.php +2 -2
- classes/class-astra-sites-admin.php +29 -2
- inc/assets/js/admin-page.js +1 -0
- inc/assets/js/dist/main.asset.php +1 -1
- inc/assets/js/dist/main.js +1 -1
- inc/assets/js/src/index.js +5 -1
- inc/lib/ast-block-templates/ast-block-templates.php +2 -2
- inc/lib/ast-block-templates/classes/class-ast-block-templates.php +6 -1
- inc/lib/ast-block-templates/version.json +1 -1
- languages/astra-sites.pot +2 -2
- readme.txt +5 -1
assets/js/admin.js
CHANGED
@@ -24,6 +24,16 @@
|
|
24 |
*/
|
25 |
_bind: function () {
|
26 |
$(window).on('scroll', StarterTemplatesAdmin._addCustomCTAInfobar);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
},
|
28 |
|
29 |
/**
|
24 |
*/
|
25 |
_bind: function () {
|
26 |
$(window).on('scroll', StarterTemplatesAdmin._addCustomCTAInfobar);
|
27 |
+
$(document).on('astra-sites-change-page-builder', StarterTemplatesAdmin._changeCTALink);
|
28 |
+
},
|
29 |
+
|
30 |
+
_changeCTALink: function(event, page_builder) {
|
31 |
+
var link = AstraSitesAdminVars.cta_links[page_builder] || '';
|
32 |
+
|
33 |
+
if( link ) {
|
34 |
+
$('.astra-sites-cta-link').attr( 'href', link );
|
35 |
+
}
|
36 |
+
|
37 |
},
|
38 |
|
39 |
/**
|
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.
|
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.
|
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.17
|
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.17' );
|
23 |
}
|
24 |
|
25 |
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
|
classes/class-astra-sites-admin.php
CHANGED
@@ -68,6 +68,28 @@ if ( ! class_exists( 'Astra_Sites_Admin' ) ) :
|
|
68 |
|
69 |
wp_enqueue_style( 'astra-sites-admin-page', ASTRA_SITES_URI . 'assets/css/admin.css', ASTRA_SITES_VER, true );
|
70 |
wp_enqueue_script( 'astra-sites-admin-js', ASTRA_SITES_URI . 'assets/js/admin.js', array( 'jquery' ), ASTRA_SITES_VER, true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
/**
|
@@ -83,19 +105,24 @@ if ( ! class_exists( 'Astra_Sites_Admin' ) ) :
|
|
83 |
if ( Astra_Sites_White_Label::get_instance()->is_white_labeled() ) {
|
84 |
return;
|
85 |
}
|
|
|
|
|
|
|
|
|
|
|
86 |
$custom_cta_content_data = apply_filters(
|
87 |
'astra_sites_custom_cta_vars',
|
88 |
array(
|
89 |
'text' => __( 'Get unlimited access to all premium Starter Templates and more, at a single low cost!', 'astra-sites' ),
|
90 |
'button_text' => __( 'Get Essential Bundle', 'astra-sites' ),
|
91 |
-
'cta_link' =>
|
92 |
)
|
93 |
);
|
94 |
|
95 |
$html = '<div class="astra-sites-custom-cta-wrap">';
|
96 |
$html .= '<span class="astra-sites-cta-title">' . esc_html( $custom_cta_content_data['text'] ) . '</span>';
|
97 |
$html .= '<span class="astra-sites-cta-btn">';
|
98 |
-
$html .= '<a href="' . esc_url( $custom_cta_content_data['cta_link'] ) . '" target="_blank" >' . esc_html( $custom_cta_content_data['button_text'] ) . '</a>';
|
99 |
$html .= '</span>';
|
100 |
$html .= '</div>';
|
101 |
echo wp_kses_post( $html );
|
68 |
|
69 |
wp_enqueue_style( 'astra-sites-admin-page', ASTRA_SITES_URI . 'assets/css/admin.css', ASTRA_SITES_VER, true );
|
70 |
wp_enqueue_script( 'astra-sites-admin-js', ASTRA_SITES_URI . 'assets/js/admin.js', array( 'jquery' ), ASTRA_SITES_VER, true );
|
71 |
+
wp_localize_script(
|
72 |
+
'astra-sites-admin-js',
|
73 |
+
'AstraSitesAdminVars',
|
74 |
+
array(
|
75 |
+
'cta_links' => $this->get_cta_links(),
|
76 |
+
)
|
77 |
+
);
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Get CTA Links
|
82 |
+
*
|
83 |
+
* @since x.x.x
|
84 |
+
* @return array
|
85 |
+
*/
|
86 |
+
public function get_cta_links() {
|
87 |
+
return array(
|
88 |
+
'elementor' => 'https://wpastra.com/elementor-starter-templates/?utm_source=elementor-templates&utm_medium=dashboard&utm_campaign=Starter-Template-Backend',
|
89 |
+
'beaver-builder' => 'https://wpastra.com/beaver-builder-starter-templates/?utm_source=beaver-templates&utm_medium=dashboard&utm_campaign=Starter-Template-Backend',
|
90 |
+
'gutenberg' => 'https://wpastra.com/starter-templates-plans/?utm_source=gutenberg-templates&utm_medium=dashboard&utm_campaign=Starter-Template-Backend',
|
91 |
+
'brizy' => 'https://wpastra.com/starter-templates-plans/?utm_source=brizy-templates&utm_medium=dashboard&utm_campaign=Starter-Template-Backend',
|
92 |
+
);
|
93 |
}
|
94 |
|
95 |
/**
|
105 |
if ( Astra_Sites_White_Label::get_instance()->is_white_labeled() ) {
|
106 |
return;
|
107 |
}
|
108 |
+
|
109 |
+
$default_page_builder = Astra_Sites_Page::get_instance()->get_setting( 'page_builder' );
|
110 |
+
$cta_links = $this->get_cta_links();
|
111 |
+
$link = isset( $cta_links[ $default_page_builder ] ) ? $cta_links[ $default_page_builder ] : 'https://wpastra.com/starter-templates-plans/?utm_source=StarterTemplatesPlugin&utm_campaign=WPAdmin';
|
112 |
+
|
113 |
$custom_cta_content_data = apply_filters(
|
114 |
'astra_sites_custom_cta_vars',
|
115 |
array(
|
116 |
'text' => __( 'Get unlimited access to all premium Starter Templates and more, at a single low cost!', 'astra-sites' ),
|
117 |
'button_text' => __( 'Get Essential Bundle', 'astra-sites' ),
|
118 |
+
'cta_link' => $link,
|
119 |
)
|
120 |
);
|
121 |
|
122 |
$html = '<div class="astra-sites-custom-cta-wrap">';
|
123 |
$html .= '<span class="astra-sites-cta-title">' . esc_html( $custom_cta_content_data['text'] ) . '</span>';
|
124 |
$html .= '<span class="astra-sites-cta-btn">';
|
125 |
+
$html .= '<a class="astra-sites-cta-link" href="' . esc_url( $custom_cta_content_data['cta_link'] ) . '" target="_blank" >' . esc_html( $custom_cta_content_data['button_text'] ) . '</a>';
|
126 |
$html .= '</span>';
|
127 |
$html .= '</div>';
|
128 |
echo wp_kses_post( $html );
|
inc/assets/js/admin-page.js
CHANGED
@@ -2050,6 +2050,7 @@ var AstraSitesAjaxQueue = (function () {
|
|
2050 |
AstraSitesAdmin.add_sites(response.data);
|
2051 |
|
2052 |
AstraSitesAdmin._autocomplete();
|
|
|
2053 |
}
|
2054 |
});
|
2055 |
|
2050 |
AstraSitesAdmin.add_sites(response.data);
|
2051 |
|
2052 |
AstraSitesAdmin._autocomplete();
|
2053 |
+
$(document).trigger('astra-sites-change-page-builder', page_builder_slug, response.data, response);
|
2054 |
}
|
2055 |
});
|
2056 |
|
inc/assets/js/dist/main.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '73747d3a078511d37fe6bf7f0db3b0a8');
|
inc/assets/js/dist/main.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function a(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(i,r,function(t){return e[t]}.bind(null,r));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,a){e.exports=a(1)},function(e,t,a){!function(e){var t=function(){if(null!=wp&&wp.media){var e=jQuery,t=wp.media.view.MediaFrame.Post,i=wp.media.view.MediaFrame.Select;wp.media.view.AstraAttachmentsBrowser=a(2);var r={browseRouter:function(e){i.prototype.browseRouter.apply(this,arguments),e.set({astraimages:{text:astraImages.title,priority:70}})},bindHandlers:function(){i.prototype.bindHandlers.apply(this,arguments),this.on("content:create:astraimages",this.astraimages,this)},astraimages:function(t){var a=this.state(),i=new wp.media.view.AstraAttachmentsBrowser({controller:this,model:a,AttachmentView:a.get("AttachmentView")});t.view=i,wp.media.view.AstraAttachmentsBrowser.object=i,setTimeout((function(){e(document).trigger("ast-image__set-scope")}),100)}};astraImages.is_elementor_editor?wp.media.view.MediaFrame.Post=t.extend(r):wp.media.view.MediaFrame.Select=i.extend(r)}};e((function(){t(),astraImages.is_bb_active&&astraImages.is_bb_editor&&void 0!==FLBuilder&&null!==FLBuilder._singlePhotoSelector&&FLBuilder._singlePhotoSelector.on("open",(function(e){t()}))}))}(jQuery)},function(e,t,a){var i,r=wp.media.view.Frame;wp.media.view.AstraContent=a(3),i=r.extend({tagName:"div",className:"attachments-browser ast-attachments-browser",images:[],object:[],initialize:function(){_.defaults(this.options,{filters:!1,search:!0,date:!0,display:!1,sidebar:!0,AttachmentView:wp.media.view.Attachment.Library}),this.createContent()},createContent:function(){this.attachmentsHeading=new wp.media.view.Heading({text:astraImages.title,level:"h3",className:"ast-media-views-heading"}),this.views.add(new wp.media.view.AstraContent),this.$el.find(".ast-image__search").wrapAll('<div class="ast-image__search-wrap">').parent().html(),this.$el.find(".ast-image__search-wrap").append('<span class="ast-icon-search search-icon"></span>')},photoUploadComplete:function(e){e&&e.attachmentData&&(this.model.frame.content.mode("browse"),this.model.get("selection").add(e.attachmentData),this.model.frame.trigger("library:selection:add"),this.model.get("selection"),jQuery(".media-frame .media-button-select").click())}}),e.exports=i},function(e,t,a){wp.media.view.AstraSearch=a(4);var i=wp.media.View.extend({tagName:"div",className:"ast-attachments-search-wrap",initialize:function(){this.value=this.options.value},render:function(){var e=new wp.media.view.AstraSearch({controller:this.controller,model:this.model});return this.views.add(e),this}});e.exports=i},function(e,t){$=jQuery;var a=wp.Backbone.View.extend({tagName:"input",className:"ast-image__search",id:"ast-image-search-input",searching:!1,images:[],attributes:{placeholder:astraImages.search_placeholder,type:"search","aria-describedby":"live-search-desc"},events:{search:"search",keyup:"search",blur:"pushState",infinite:"infinite"},initialize:function(e){this.parent=e.parent},infinite:function(e){this.doSearch(e)},search:function(e){"keyup"===e.type&&27===e.which&&(e.target.value=""),""==e.target.value?this.$el.removeClass("has-input"):this.$el.addClass("has-input"),$scope.find(".ast-image__skeleton").animate({scrollTop:0},0),$("body").data("page",1),AstraImageCommon.infiniteLoad=!1;var t=this;setTimeout((function(){t.doSearch(e)}),1500)},doSearch:function(e){if(!this.searching){var t=this;t.searching=!0,AstraImageCommon.config.q=e.target.value;var a=astraImages.pixabay_url+"?"+$.param(AstraImageCommon.config);a&&fetch(a).then((function(e){return e.json()})).then((function(e){t.searching=!1,this.images=e.hits,wp.media.view.AstraAttachmentsBrowser.images=this.images,$(document).trigger("ast-image__refresh")}))}},pushState:function(e){$(document).trigger("ast-image__refresh")}});e.exports=a}]);
|
1 |
+
!function(e){var t={};function a(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(i,r,function(t){return e[t]}.bind(null,r));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,a){e.exports=a(1)},function(e,t,a){!function(e){var t=function(){if(null!=wp&&wp.media){var e=jQuery,t=wp.media.view.MediaFrame.Post,i=wp.media.view.MediaFrame.Select;wp.media.view.AstraAttachmentsBrowser=a(2);var r={browseRouter:function(e){i.prototype.browseRouter.apply(this,arguments),e.set({astraimages:{text:astraImages.title,priority:70}})},bindHandlers:function(){astraImages.is_elementor_editor?t.prototype.bindHandlers.apply(this,arguments):i.prototype.bindHandlers.apply(this,arguments),this.on("content:create:astraimages",this.astraimages,this)},astraimages:function(t){var a=this.state(),i=new wp.media.view.AstraAttachmentsBrowser({controller:this,model:a,AttachmentView:a.get("AttachmentView")});t.view=i,wp.media.view.AstraAttachmentsBrowser.object=i,setTimeout((function(){e(document).trigger("ast-image__set-scope")}),100)}};astraImages.is_elementor_editor?wp.media.view.MediaFrame.Post=t.extend(r):wp.media.view.MediaFrame.Select=i.extend(r)}};e((function(){t(),astraImages.is_bb_active&&astraImages.is_bb_editor&&void 0!==FLBuilder&&null!==FLBuilder._singlePhotoSelector&&FLBuilder._singlePhotoSelector.on("open",(function(e){t()}))}))}(jQuery)},function(e,t,a){var i,r=wp.media.view.Frame;wp.media.view.AstraContent=a(3),i=r.extend({tagName:"div",className:"attachments-browser ast-attachments-browser",images:[],object:[],initialize:function(){_.defaults(this.options,{filters:!1,search:!0,date:!0,display:!1,sidebar:!0,AttachmentView:wp.media.view.Attachment.Library}),this.createContent()},createContent:function(){this.attachmentsHeading=new wp.media.view.Heading({text:astraImages.title,level:"h3",className:"ast-media-views-heading"}),this.views.add(new wp.media.view.AstraContent),this.$el.find(".ast-image__search").wrapAll('<div class="ast-image__search-wrap">').parent().html(),this.$el.find(".ast-image__search-wrap").append('<span class="ast-icon-search search-icon"></span>')},photoUploadComplete:function(e){e&&e.attachmentData&&(this.model.frame.content.mode("browse"),this.model.get("selection").add(e.attachmentData),this.model.frame.trigger("library:selection:add"),this.model.get("selection"),jQuery(".media-frame .media-button-select").click())}}),e.exports=i},function(e,t,a){wp.media.view.AstraSearch=a(4);var i=wp.media.View.extend({tagName:"div",className:"ast-attachments-search-wrap",initialize:function(){this.value=this.options.value},render:function(){var e=new wp.media.view.AstraSearch({controller:this.controller,model:this.model});return this.views.add(e),this}});e.exports=i},function(e,t){$=jQuery;var a=wp.Backbone.View.extend({tagName:"input",className:"ast-image__search",id:"ast-image-search-input",searching:!1,images:[],attributes:{placeholder:astraImages.search_placeholder,type:"search","aria-describedby":"live-search-desc"},events:{search:"search",keyup:"search",blur:"pushState",infinite:"infinite"},initialize:function(e){this.parent=e.parent},infinite:function(e){this.doSearch(e)},search:function(e){"keyup"===e.type&&27===e.which&&(e.target.value=""),""==e.target.value?this.$el.removeClass("has-input"):this.$el.addClass("has-input"),$scope.find(".ast-image__skeleton").animate({scrollTop:0},0),$("body").data("page",1),AstraImageCommon.infiniteLoad=!1;var t=this;setTimeout((function(){t.doSearch(e)}),1500)},doSearch:function(e){if(!this.searching){var t=this;t.searching=!0,AstraImageCommon.config.q=e.target.value;var a=astraImages.pixabay_url+"?"+$.param(AstraImageCommon.config);a&&fetch(a).then((function(e){return e.json()})).then((function(e){t.searching=!1,this.images=e.hits,wp.media.view.AstraAttachmentsBrowser.images=this.images,$(document).trigger("ast-image__refresh")}))}},pushState:function(e){$(document).trigger("ast-image__refresh")}});e.exports=a}]);
|
inc/assets/js/src/index.js
CHANGED
@@ -27,7 +27,11 @@
|
|
27 |
|
28 |
// Handlers
|
29 |
bindHandlers() {
|
30 |
-
|
|
|
|
|
|
|
|
|
31 |
this.on( 'content:create:astraimages', this.astraimages, this );
|
32 |
},
|
33 |
|
27 |
|
28 |
// Handlers
|
29 |
bindHandlers() {
|
30 |
+
if ( astraImages.is_elementor_editor ) {
|
31 |
+
oldMediaFramePost.prototype.bindHandlers.apply( this, arguments );
|
32 |
+
} else {
|
33 |
+
oldMediaFrameSelect.prototype.bindHandlers.apply( this, arguments );
|
34 |
+
}
|
35 |
this.on( 'content:create:astraimages', this.astraimages, this );
|
36 |
},
|
37 |
|
inc/lib/ast-block-templates/ast-block-templates.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Gutenberg Starter Templates
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: Gutenberg single page templates, and blocks library to imported your website easily.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Text Domain: ast-block-templates
|
@@ -21,7 +21,7 @@ if ( apply_filters( 'ast_block_templates_disable', false ) ) {
|
|
21 |
|
22 |
// Set constants.
|
23 |
define( 'AST_BLOCK_TEMPLATES_LIBRARY_URL', 'https://websitedemos.net/' );
|
24 |
-
define( 'AST_BLOCK_TEMPLATES_VER', '1.0.
|
25 |
define( 'AST_BLOCK_TEMPLATES_FILE', __FILE__ );
|
26 |
define( 'AST_BLOCK_TEMPLATES_BASE', plugin_basename( AST_BLOCK_TEMPLATES_FILE ) );
|
27 |
define( 'AST_BLOCK_TEMPLATES_DIR', plugin_dir_path( AST_BLOCK_TEMPLATES_FILE ) );
|
3 |
* Plugin Name: Gutenberg Starter Templates
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: Gutenberg single page templates, and blocks library to imported your website easily.
|
6 |
+
* Version: 1.0.8
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: https://www.brainstormforce.com
|
9 |
* Text Domain: ast-block-templates
|
21 |
|
22 |
// Set constants.
|
23 |
define( 'AST_BLOCK_TEMPLATES_LIBRARY_URL', 'https://websitedemos.net/' );
|
24 |
+
define( 'AST_BLOCK_TEMPLATES_VER', '1.0.8' );
|
25 |
define( 'AST_BLOCK_TEMPLATES_FILE', __FILE__ );
|
26 |
define( 'AST_BLOCK_TEMPLATES_BASE', plugin_basename( AST_BLOCK_TEMPLATES_FILE ) );
|
27 |
define( 'AST_BLOCK_TEMPLATES_DIR', plugin_dir_path( AST_BLOCK_TEMPLATES_FILE ) );
|
inc/lib/ast-block-templates/classes/class-ast-block-templates.php
CHANGED
@@ -364,6 +364,11 @@ if ( ! class_exists( 'Ast_Block_Templates' ) ) :
|
|
364 |
* @since 1.0.0
|
365 |
*/
|
366 |
public function template_assets() {
|
|
|
|
|
|
|
|
|
|
|
367 |
wp_enqueue_script( 'ast-block-templates', AST_BLOCK_TEMPLATES_URI . 'dist/main.js', array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'masonry', 'imagesloaded', 'updates' ), AST_BLOCK_TEMPLATES_VER, true );
|
368 |
wp_add_inline_script( 'ast-block-templates', 'window.lodash = _.noConflict();', 'after' );
|
369 |
|
@@ -385,7 +390,7 @@ if ( ! class_exists( 'Ast_Block_Templates' ) ) :
|
|
385 |
'wpforms_status' => $this->get_plugin_status( 'wpforms-lite/wpforms.php' ),
|
386 |
'gutenberg_status' => $this->get_plugin_status( 'gutenberg/gutenberg.php' ),
|
387 |
'_ajax_nonce' => wp_create_nonce( 'ast-block-templates-ajax-nonce' ),
|
388 |
-
'button_text' => esc_html__( 'Starter Templates', '
|
389 |
'display_button_logo' => true,
|
390 |
'popup_logo_uri' => AST_BLOCK_TEMPLATES_URI . 'dist/logo.svg',
|
391 |
'button_logo' => AST_BLOCK_TEMPLATES_URI . 'dist/starter-template-logo.svg',
|
364 |
* @since 1.0.0
|
365 |
*/
|
366 |
public function template_assets() {
|
367 |
+
|
368 |
+
if ( ! is_admin() ) {
|
369 |
+
return;
|
370 |
+
}
|
371 |
+
|
372 |
wp_enqueue_script( 'ast-block-templates', AST_BLOCK_TEMPLATES_URI . 'dist/main.js', array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'masonry', 'imagesloaded', 'updates' ), AST_BLOCK_TEMPLATES_VER, true );
|
373 |
wp_add_inline_script( 'ast-block-templates', 'window.lodash = _.noConflict();', 'after' );
|
374 |
|
390 |
'wpforms_status' => $this->get_plugin_status( 'wpforms-lite/wpforms.php' ),
|
391 |
'gutenberg_status' => $this->get_plugin_status( 'gutenberg/gutenberg.php' ),
|
392 |
'_ajax_nonce' => wp_create_nonce( 'ast-block-templates-ajax-nonce' ),
|
393 |
+
'button_text' => esc_html__( 'Starter Templates', 'ast-block-templates' ),
|
394 |
'display_button_logo' => true,
|
395 |
'popup_logo_uri' => AST_BLOCK_TEMPLATES_URI . 'dist/logo.svg',
|
396 |
'button_logo' => AST_BLOCK_TEMPLATES_URI . 'dist/starter-template-logo.svg',
|
inc/lib/ast-block-templates/version.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
{
|
2 |
-
"ast-block-templates": "1.0.
|
3 |
}
|
1 |
{
|
2 |
+
"ast-block-templates": "1.0.8"
|
3 |
}
|
languages/astra-sites.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Starter Templates package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Starter Templates 2.6.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
|
7 |
-
"POT-Creation-Date: 2021-07-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the Starter Templates package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Starter Templates 2.6.17\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
|
7 |
+
"POT-Creation-Date: 2021-07-22 07:41:38+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -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.8
|
8 |
-
Stable tag: 2.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -149,6 +149,10 @@ We are open to suggestions and would love to work on topics that our users are l
|
|
149 |
|
150 |
== Changelog ==
|
151 |
|
|
|
|
|
|
|
|
|
152 |
v2.6.16 - 19-July-2021
|
153 |
- Fix: Fixed the issue where Free Images by Pixabay were not available on Elementor Editor.
|
154 |
|
5 |
Requires at least: 4.4
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.8
|
8 |
+
Stable tag: 2.6.17
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
v2.6.17 - 22-July-2021
|
153 |
+
- Improvement: Avoided loading the Gutenberg Blocks scripts in the customizer screen.
|
154 |
+
- Fix: Fixed the missing 'Create Gallery' button in Media Popup for Elementor editor.
|
155 |
+
|
156 |
v2.6.16 - 19-July-2021
|
157 |
- Fix: Fixed the issue where Free Images by Pixabay were not available on Elementor Editor.
|
158 |
|