Astra Starter Sites - Version 2.6.15

Version Description

Download this release

Release Info

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

Code changes from version 2.6.14 to 2.6.15

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.14
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.14' );
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.15
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.15' );
23
  }
24
 
25
  if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
inc/assets/js/dist/common.js DELETED
@@ -1,295 +0,0 @@
1
- (function($){
2
-
3
- $scope = {};
4
-
5
- AstraImageCommon = {
6
-
7
- images: {},
8
- image: {},
9
- action: '',
10
- offset: 0,
11
- loadingStatus: true,
12
- config: {
13
- key : astraImages.pixabay_api_key,
14
- q : '',
15
- lang : 'en',
16
- image_type : 'all',
17
- orientation : 'all',
18
- category : '',
19
- min_width : 0,
20
- min_height : 0,
21
- colors : '',
22
- editors_choice : false,
23
- safesearch : true,
24
- order : 'popular',
25
- page : $( 'body' ).data( 'page' ),
26
- per_page : 30,
27
- callback : '',
28
- pretty : true
29
- },
30
- canSave: false,
31
- infiniteLoad: false,
32
- uploader: {},
33
- file: {},
34
- frame: {},
35
- isPreview: false,
36
- apiStatus: true,
37
- id : '',
38
- isValidating: false,
39
-
40
- init: function() {
41
- this._bind();
42
- },
43
-
44
- /**
45
- * Binds events for the Astra Sites.
46
- *
47
- * @since 1.0.0
48
- * @access private
49
- * @method _bind
50
- */
51
- _bind: function() {
52
-
53
- // Triggers.
54
- $( document ).on( "ast-image__refresh", AstraImageCommon._initImages );
55
- $( document ).on( "ast-image__set-scope", AstraImageCommon._setScope );
56
- $( document ).on( "click", ".ast-image__list-img-overlay", AstraImageCommon._preview );
57
- $( document ).on( "click", ".ast-image__go-back-text", AstraImageCommon._goBack );
58
- $( document ).on( "click", ".ast-image__save", AstraImageCommon._save );
59
- $( document ).on( "click", ".ast-image__filter-safesearch input", AstraImageCommon._filter );
60
- $( document ).on( "change", ".ast-image__filter select", AstraImageCommon._filter );
61
- $( document ).on( "click", ".ast-image__edit-api", AstraImageCommon._editAPI );
62
- $( document ).on( "click", ".ast-image__browse-images", AstraImageCommon._browse );
63
- },
64
-
65
- _browse: function() {
66
- $scope.find( '.ast-image__search' ).trigger( 'keyup' );
67
- },
68
-
69
- _editAPI: function( event ) {
70
- event.stopPropagation();
71
- wp.media.view.AstraAttachmentsBrowser.images = [];
72
- $scope.find( '.ast-image__loader-wrap' ).show();
73
- $scope.find( '.ast-image__skeleton' ).html( '' );
74
- $scope.find( '.ast-image__skeleton' ).attr( 'style', '' );
75
- $scope.find( '.ast-image__search' ).trigger( 'keyup' );
76
- $scope.find( '.ast-image__loader-wrap' ).hide();
77
- },
78
-
79
- _filter: function() {
80
- let safesearch = $scope.find( '.ast-image__filter-safesearch input:checked' ).length ? true : false;
81
- let category = $scope.find( '.ast-image__filter-category select' ).val();
82
- let orientation = $scope.find( '.ast-image__filter-orientation select' ).val();
83
- let order = $scope.find( '.ast-image__filter-order select' ).val();
84
-
85
- AstraImageCommon.config.safesearch = safesearch;
86
- AstraImageCommon.config.orientation = orientation;
87
- AstraImageCommon.config.category = category;
88
- AstraImageCommon.config.order = order;
89
-
90
- $scope.find( '.ast-image__search' ).trigger( 'keyup' );
91
- $scope.find( '.ast-image__loader-wrap' ).show();
92
- },
93
-
94
- _save: function() {
95
-
96
- if ( ! AstraImageCommon.canSave ) {
97
- return;
98
- }
99
-
100
- let thisBtn = $( this )
101
-
102
- if ( thisBtn.data( 'import-status' ) ) {
103
- return;
104
- }
105
-
106
- thisBtn.text( astraImages.downloading );
107
- thisBtn.addClass( 'installing' );
108
-
109
- AstraImageCommon.canSave = false;
110
-
111
- // Work with JSON page here
112
- $.ajax({
113
- url: astraImages.ajaxurl,
114
- type: 'POST',
115
- dataType: 'json',
116
- data: {
117
- 'action' : 'astra-sites-create-image',
118
- 'url' : AstraImageCommon.image.largeImageURL,
119
- 'name' : AstraImageCommon.image.tags,
120
- 'id' : AstraImageCommon.image.id,
121
- '_ajax_nonce' : astraImages._ajax_nonce,
122
- },
123
- })
124
- .fail(function( jqXHR ){
125
- console.log( jqXHR );
126
- })
127
- .done(function ( data ) {
128
- console.log(data.data);
129
- if ( undefined == data.data ) {
130
- return;
131
- }
132
- astraImages.saved_images = data.data['updated-saved-images'];
133
- wp.media.view.AstraAttachmentsBrowser.object.photoUploadComplete( data.data );
134
- thisBtn.text( 'Done' );
135
- thisBtn.removeClass( 'installing' );
136
- AstraImageCommon._empty();
137
- });
138
- },
139
-
140
- _empty: function() {
141
-
142
- AstraImageCommon.image = {};
143
- AstraImageCommon.canSave = false;
144
- AstraImageCommon.uploader = {};
145
- AstraImageCommon.file = {};
146
- AstraImageCommon.isPreview = false;
147
- },
148
-
149
- _goBack: function() {
150
-
151
- AstraImageCommon._empty();
152
-
153
- $( document ).trigger( 'ast-image__refresh' );
154
-
155
- $scope.find( '.ast-image__skeleton' ).show();
156
- $scope.removeClass( 'preview-mode' );
157
- $scope.find( '.ast-attachments-search-wrap' ).children().show();
158
- $scope.find( '.ast-image__go-back' ).remove();
159
- $scope.find( '.ast-image__save-wrap' ).remove();
160
- $scope.find( '.ast-image__preview-skeleton' ).hide();
161
- $scope.find( '.ast-image__preview-skeleton' ).html( '' );
162
-
163
- let wrapHeight = ( AstraImageCommon.offset - 210 );
164
- $scope.find( '.ast-image__skeleton-inner-wrap' ).css( 'height', wrapHeight );
165
- },
166
-
167
- _preview: function() {
168
-
169
- AstraImageCommon.isPreview = true;
170
-
171
- let height = ( AstraImageCommon.offset - 190 );
172
- $scope.find( '.ast-image__skeleton-inner-wrap' ).css( 'height', height );
173
-
174
- setTimeout( function() {
175
- $scope.find( '.ast-image__loader-wrap' ).hide();
176
- }, 200 );
177
-
178
- AstraImageCommon.image = $( this ).data( 'img-info' );
179
-
180
- let preview = wp.template( 'ast-image-single' );
181
- let single_html = preview( AstraImageCommon.image );
182
-
183
- let save_btn = wp.template( 'ast-image-save' );
184
- let single_btn = save_btn( AstraImageCommon.image );
185
-
186
- let wrapHeight = $scope.find( '.ast-image__skeleton-inner-wrap' ).outerHeight();
187
- wrapHeight = ( wrapHeight - 60 );
188
-
189
- $scope.find( '.ast-image__skeleton' ).hide();
190
- $scope.addClass( 'preview-mode' );
191
- $scope.find( '.ast-attachments-search-wrap' ).children().hide();
192
- $scope.find( '.ast-image__search-wrap' ).before( $( '#tmpl-ast-image-go-back' ).text() );
193
- $scope.find( '.ast-image__search-wrap' ).after( single_btn );
194
- $scope.find( '.ast-image__preview-skeleton' ).html( single_html );
195
- $scope.find( '.ast-image__preview-skeleton' ).show();
196
- $scope.find( '.single-site-preview' ).css( 'max-height', wrapHeight );
197
-
198
- AstraImageCommon.canSave = true;
199
- },
200
-
201
- _setScope: function() {
202
-
203
- AstraImageCommon.frame = wp.media.view.AstraAttachmentsBrowser.object.$el.closest( '.media-frame' );
204
- $scope = AstraImageCommon.frame.find( '.ast-attachments-browser' );
205
-
206
- if ( undefined == $scope ) {
207
- return;
208
- }
209
-
210
- $( 'body' ).data( 'page', 1 );
211
- let skeleton = $( '#tmpl-ast-image-skeleton' ).text();
212
- $scope.append( skeleton );
213
-
214
- let pixabay_filter = wp.template( 'ast-image-filters' );
215
- $scope.find( '.ast-attachments-search-wrap' ).append( pixabay_filter() );
216
-
217
- AstraImageCommon.offset = AstraImageCommon.frame.outerHeight();
218
- let wrapHeight = ( AstraImageCommon.offset - 210 );
219
- $scope.find( '.ast-image__skeleton-inner-wrap' ).css( 'height', wrapHeight );
220
- $scope.find( '.ast-image__search' ).trigger( 'keyup' );
221
- $scope.find( '.ast-image__loader-wrap' ).show();
222
- $scope.find( '.ast-image__skeleton-inner-wrap' ).scroll( AstraImageCommon._loadMore );
223
- },
224
-
225
- _initImages: function() {
226
-
227
- let loop = wp.template( 'ast-image-list' );
228
- let list_html = loop( wp.media.view.AstraAttachmentsBrowser.images );
229
-
230
- let masonryObj;
231
- let container = document.querySelector( '.ast-image__skeleton' );
232
- $scope.find( '.ast-image__loader-wrap' ).show();
233
-
234
- if ( AstraImageCommon.infiniteLoad ) {
235
- AstraImageCommon.images.push( wp.media.view.AstraAttachmentsBrowser.images );
236
- $scope.find( '.ast-image__skeleton' ).append( list_html );
237
- } else {
238
- AstraImageCommon.images = wp.media.view.AstraAttachmentsBrowser.images;
239
- $scope.find( '.ast-image__skeleton' ).html( list_html );
240
- }
241
- AstraImageCommon.loadingStatus = true;
242
- if ( $scope.find( '.ast-image__list-wrap' ).length ) {
243
- imagesLoaded( container, function() {
244
- $scope.find( '.ast-image__list-wrap' ).each( function( index ) {
245
- $( this ).removeClass( 'loading' );
246
- $( this ).addClass( 'loaded' );
247
- } );
248
- $scope.find( '.ast-image__loader-wrap' ).hide();
249
- masonryObj = new Masonry( container, {
250
- itemSelector: '.ast-image__list-wrap'
251
- });
252
- });
253
- } else {
254
- $scope.find( '.ast-image__loader-wrap' ).hide();
255
- }
256
- },
257
-
258
- _loadMore: function() {
259
-
260
- if( AstraImageCommon.isPreview ) {
261
- return;
262
- }
263
-
264
- let page = $( 'body' ).data( 'page' );
265
- page = ( undefined == page ) ? 2 : ( page + 1 );
266
-
267
- if ( undefined != $scope.find( '.ast-image__list-wrap:last' ).offset() ) {
268
-
269
- if( ( $( window ).scrollTop() + AstraImageCommon.offset ) >= ( $scope.find( '.ast-image__list-wrap:last' ).offset().top ) ) {
270
-
271
- if ( AstraImageCommon.loadingStatus ) {
272
-
273
- $scope.find( '.ast-image__loader-wrap' ).show();
274
-
275
- AstraImageCommon.loadingStatus = false;
276
- AstraImageCommon.infiniteLoad = true;
277
- AstraImageCommon.config.page = page;
278
-
279
- $( 'body' ).data( 'page', page );
280
-
281
- $scope.find( '.ast-image__search' ).trigger( 'infinite' );
282
- }
283
- }
284
- }
285
- },
286
- };
287
-
288
- /**
289
- * Initialize AstraImageCommon
290
- */
291
- $(function(){
292
- AstraImageCommon.init();
293
- });
294
-
295
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/assets/js/dist/index.js DELETED
@@ -1,340 +0,0 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
- /******/
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
- /******/
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId]) {
10
- /******/ return installedModules[moduleId].exports;
11
- /******/ }
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ i: moduleId,
15
- /******/ l: false,
16
- /******/ exports: {}
17
- /******/ };
18
- /******/
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
- /******/
22
- /******/ // Flag the module as loaded
23
- /******/ module.l = true;
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
- /******/
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
- /******/
36
- /******/ // define getter function for harmony exports
37
- /******/ __webpack_require__.d = function(exports, name, getter) {
38
- /******/ if(!__webpack_require__.o(exports, name)) {
39
- /******/ Object.defineProperty(exports, name, {
40
- /******/ configurable: false,
41
- /******/ enumerable: true,
42
- /******/ get: getter
43
- /******/ });
44
- /******/ }
45
- /******/ };
46
- /******/
47
- /******/ // getDefaultExport function for compatibility with non-harmony modules
48
- /******/ __webpack_require__.n = function(module) {
49
- /******/ var getter = module && module.__esModule ?
50
- /******/ function getDefault() { return module['default']; } :
51
- /******/ function getModuleExports() { return module; };
52
- /******/ __webpack_require__.d(getter, 'a', getter);
53
- /******/ return getter;
54
- /******/ };
55
- /******/
56
- /******/ // Object.prototype.hasOwnProperty.call
57
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58
- /******/
59
- /******/ // __webpack_public_path__
60
- /******/ __webpack_require__.p = "";
61
- /******/
62
- /******/ // Load entry module and return exports
63
- /******/ return __webpack_require__(__webpack_require__.s = 0);
64
- /******/ })
65
- /************************************************************************/
66
- /******/ ([
67
- /* 0 */
68
- /*!************************************!*\
69
- !*** ./inc/assets/js/src/index.js ***!
70
- \************************************/
71
- /*! dynamic exports provided */
72
- /*! all exports used */
73
- /***/ (function(module, exports, __webpack_require__) {
74
-
75
- (function ($) {
76
-
77
- var AstraImages = {
78
-
79
- init: function init() {
80
-
81
- if (undefined != wp && wp.media) {
82
-
83
- var $ = jQuery,
84
- oldMediaFrameSelect = wp.media.view.MediaFrame.Select;
85
-
86
- wp.media.view.AstraAttachmentsBrowser = __webpack_require__(/*! ./frame.js */ 1);
87
-
88
- wp.media.view.MediaFrame.Select = oldMediaFrameSelect.extend({
89
-
90
- // Tab / Router
91
- browseRouter: function browseRouter(routerView) {
92
- oldMediaFrameSelect.prototype.browseRouter.apply(this, arguments);
93
- routerView.set({
94
- astraimages: {
95
- text: astraImages.title,
96
- priority: 70
97
- }
98
- });
99
- },
100
-
101
-
102
- // Handlers
103
- bindHandlers: function bindHandlers() {
104
- oldMediaFrameSelect.prototype.bindHandlers.apply(this, arguments);
105
- this.on('content:create:astraimages', this.astraimages, this);
106
- },
107
-
108
-
109
- /**
110
- * Render callback for the content region in the `browse` mode.
111
- *
112
- * @param {wp.media.controller.Region} contentRegion
113
- */
114
- astraimages: function astraimages(contentRegion) {
115
- var state = this.state();
116
- // Browse our library of attachments.
117
- var thisView = new wp.media.view.AstraAttachmentsBrowser({
118
- controller: this,
119
- model: state,
120
- AttachmentView: state.get('AttachmentView')
121
- });
122
- contentRegion.view = thisView;
123
- wp.media.view.AstraAttachmentsBrowser.object = thisView;
124
- setTimeout(function () {
125
- $(document).trigger('ast-image__set-scope');
126
- }, 100);
127
- }
128
- });
129
- }
130
- }
131
-
132
- };
133
-
134
- /**
135
- * Initialize AstraImages
136
- */
137
- $(function () {
138
-
139
- AstraImages.init();
140
-
141
- if (astraImages.is_bb_active && astraImages.is_bb_editor) {
142
- if (undefined !== FLBuilder) {
143
- if (null !== FLBuilder._singlePhotoSelector) {
144
- FLBuilder._singlePhotoSelector.on('open', function (event) {
145
- AstraImages.init();
146
- });
147
- }
148
- }
149
- }
150
- });
151
- })(jQuery);
152
-
153
- /***/ }),
154
- /* 1 */
155
- /*!************************************!*\
156
- !*** ./inc/assets/js/src/frame.js ***!
157
- \************************************/
158
- /*! dynamic exports provided */
159
- /*! all exports used */
160
- /***/ (function(module, exports, __webpack_require__) {
161
-
162
- var Frame = wp.media.view.Frame,
163
- AstraAttachmentsBrowser;
164
-
165
- wp.media.view.AstraContent = __webpack_require__(/*! ./content.js */ 2);
166
-
167
- AstraAttachmentsBrowser = Frame.extend({
168
- tagName: 'div',
169
- className: 'attachments-browser ast-attachments-browser',
170
- images: [],
171
- object: [],
172
- initialize: function initialize() {
173
- _.defaults(this.options, {
174
- filters: false,
175
- search: true,
176
- date: true,
177
- display: false,
178
- sidebar: true,
179
- AttachmentView: wp.media.view.Attachment.Library
180
- });
181
-
182
- // Add a heading before the attachments list.
183
- this.createContent();
184
- },
185
-
186
- createContent: function createContent() {
187
-
188
- this.attachmentsHeading = new wp.media.view.Heading({
189
- text: astraImages.title,
190
- level: 'h3',
191
- className: 'ast-media-views-heading'
192
- });
193
- // this.views.add( this.attachmentsHeading );
194
- this.views.add(new wp.media.view.AstraContent());
195
- this.$el.find('.ast-image__search').wrapAll('<div class="ast-image__search-wrap">').parent().html();
196
- this.$el.find('.ast-image__search-wrap').append('<span class="ast-icon-search search-icon"></span>');
197
- },
198
-
199
- photoUploadComplete: function photoUploadComplete(savedImage) {
200
- if (savedImage && savedImage.attachmentData) {
201
- this.model.frame.content.mode("browse");
202
- this.model.get("selection").add(savedImage.attachmentData);
203
- this.model.frame.trigger("library:selection:add");
204
- this.model.get("selection");
205
- jQuery(".media-frame .media-button-select").click();
206
- }
207
- }
208
- });
209
-
210
- module.exports = AstraAttachmentsBrowser;
211
-
212
- /***/ }),
213
- /* 2 */
214
- /*!**************************************!*\
215
- !*** ./inc/assets/js/src/content.js ***!
216
- \**************************************/
217
- /*! dynamic exports provided */
218
- /*! all exports used */
219
- /***/ (function(module, exports, __webpack_require__) {
220
-
221
- wp.media.view.AstraSearch = __webpack_require__(/*! ./search.js */ 3);
222
-
223
- var AstraContent = wp.media.View.extend({
224
-
225
- tagName: 'div',
226
- className: 'ast-attachments-search-wrap',
227
- initialize: function initialize() {
228
- this.value = this.options.value;
229
- },
230
-
231
- render: function render() {
232
-
233
- var search = new wp.media.view.AstraSearch({
234
- controller: this.controller,
235
- model: this.model
236
- });
237
- this.views.add(search);
238
- return this;
239
- }
240
- });
241
-
242
- module.exports = AstraContent;
243
-
244
- /***/ }),
245
- /* 3 */
246
- /*!*************************************!*\
247
- !*** ./inc/assets/js/src/search.js ***!
248
- \*************************************/
249
- /*! dynamic exports provided */
250
- /*! all exports used */
251
- /***/ (function(module, exports) {
252
-
253
- $ = jQuery;
254
- // Search input view controller.
255
- var AstraSearch = wp.Backbone.View.extend({
256
-
257
- tagName: 'input',
258
- className: 'ast-image__search',
259
- id: 'ast-image-search-input',
260
- searching: false,
261
- images: [],
262
- attributes: {
263
- placeholder: astraImages.search_placeholder,
264
- type: 'search',
265
- 'aria-describedby': 'live-search-desc'
266
- },
267
-
268
- events: {
269
- 'search': 'search',
270
- 'keyup': 'search',
271
- 'blur': 'pushState',
272
- 'infinite': 'infinite'
273
- },
274
-
275
- initialize: function initialize(options) {
276
-
277
- this.parent = options.parent;
278
- },
279
-
280
- infinite: function infinite(event) {
281
-
282
- // Since doSearch is debounced, it will only run when user input comes to a rest.
283
- this.doSearch(event);
284
- },
285
-
286
- search: function search(event) {
287
-
288
- // Clear on escape.
289
- if (event.type === 'keyup' && event.which === 27) {
290
- event.target.value = '';
291
- }
292
- if ('' == event.target.value) {
293
- this.$el.removeClass('has-input');
294
- } else {
295
- this.$el.addClass('has-input');
296
- }
297
-
298
- $scope.find('.ast-image__skeleton').animate({ scrollTop: 0 }, 0);
299
- $('body').data('page', 1);
300
- AstraImageCommon.infiniteLoad = false;
301
-
302
- var thisObject = this;
303
- setTimeout(function () {
304
- thisObject.doSearch(event);
305
- }, 1000);
306
- },
307
-
308
- // Runs a search on the theme collection.
309
- doSearch: function doSearch(event) {
310
-
311
- if (this.searching) {
312
- return;
313
- }
314
-
315
- var thisObject = this;
316
- thisObject.searching = true;
317
- AstraImageCommon.config.q = event.target.value;
318
- var url = astraImages.pixabay_url + '?' + $.param(AstraImageCommon.config);
319
-
320
- if (url) {
321
- fetch(url).then(function (response) {
322
- return response.json();
323
- }).then(function (result) {
324
- thisObject.searching = false;
325
- this.images = result.hits;
326
- wp.media.view.AstraAttachmentsBrowser.images = this.images;
327
- $(document).trigger('ast-image__refresh');
328
- });
329
- }
330
- },
331
-
332
- pushState: function pushState(event) {
333
- $(document).trigger('ast-image__refresh');
334
- }
335
- });
336
-
337
- module.exports = AstraSearch;
338
-
339
- /***/ })
340
- /******/ ]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/assets/js/dist/main.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '0f0678a4291919c0a0e1b7d1dbcfc3a7');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '9a6ce3242818e82a525576bb7feea785');
inc/classes/class-astra-sites-importer.php CHANGED
@@ -628,7 +628,7 @@ if ( ! class_exists( 'Astra_Sites_Importer' ) ) {
628
  // Flush permalinks.
629
  flush_rewrite_rules();
630
 
631
- delete_site_option( 'astra_sites_import_data' );
632
 
633
  Astra_Sites_Importer_Log::add( 'Complete ' );
634
  }
628
  // Flush permalinks.
629
  flush_rewrite_rules();
630
 
631
+ delete_option( 'astra_sites_import_data' );
632
 
633
  Astra_Sites_Importer_Log::add( 'Complete ' );
634
  }
inc/classes/class-astra-sites-white-label.php CHANGED
@@ -254,7 +254,10 @@ if ( ! class_exists( 'Astra_Sites_White_Label' ) ) :
254
  */
255
  public function get_white_label_link( $link = '' ) {
256
  if ( is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ) {
257
- return Astra_Ext_White_Label_Markup::get_whitelabel_string( 'astra-agency', 'licence' );
 
 
 
258
  }
259
 
260
  return $link;
254
  */
255
  public function get_white_label_link( $link = '' ) {
256
  if ( is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ) {
257
+ $white_label_link = Astra_Ext_White_Label_Markup::get_whitelabel_string( 'astra-agency', 'licence' );
258
+ if ( ! empty( $white_label_link ) ) {
259
+ return $white_label_link;
260
+ }
261
  }
262
 
263
  return $link;
inc/classes/functions.php CHANGED
@@ -75,7 +75,7 @@ if ( ! function_exists( 'astra_get_site_data' ) ) :
75
  * @return mixed
76
  */
77
  function astra_get_site_data( $index = '' ) {
78
- $demo_data = get_site_option( 'astra_sites_import_data', array() );
79
  if ( ! empty( $demo_data ) && isset( $demo_data[ $index ] ) ) {
80
  return $demo_data[ $index ];
81
  }
75
  * @return mixed
76
  */
77
  function astra_get_site_data( $index = '' ) {
78
+ $demo_data = get_option( 'astra_sites_import_data', array() );
79
  if ( ! empty( $demo_data ) && isset( $demo_data[ $index ] ) ) {
80
  return $demo_data[ $index ];
81
  }
inc/json/astra-sites-tags.json CHANGED
@@ -1 +1 @@
1
- [{"id":2204,"name":"a","slug":"a"},{"id":352,"name":"About","slug":"about"},{"id":1007,"name":"about me","slug":"about-me"},{"id":455,"name":"about us","slug":"about-us"},{"id":599,"name":"ac repair","slug":"ac-repair"},{"id":2114,"name":"Academic","slug":"academic"},{"id":2154,"name":"Academics","slug":"academics"},{"id":2110,"name":"academy","slug":"academy"},{"id":639,"name":"accessories","slug":"accessories"},{"id":1869,"name":"accident lawyers","slug":"accident-lawyers"}]
1
+ [{"id":352,"name":"About","slug":"about"},{"id":1007,"name":"about me","slug":"about-me"},{"id":455,"name":"about us","slug":"about-us"},{"id":599,"name":"ac repair","slug":"ac-repair"},{"id":2114,"name":"Academic","slug":"academic"},{"id":2154,"name":"Academics","slug":"academics"},{"id":2110,"name":"academy","slug":"academy"},{"id":639,"name":"accessories","slug":"accessories"},{"id":1869,"name":"accident lawyers","slug":"accident-lawyers"}]
inc/lib/ast-block-templates/classes/class-ast-block-templates.php CHANGED
@@ -385,7 +385,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', 'ast-block-templates', 'astra-sites' ),
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',
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', 'astra-sites' ),
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',
languages/astra-sites.pot CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Starter Templates 2.6.14\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
- "POT-Creation-Date: 2021-07-13 15:35:39+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
4
  msgstr ""
5
  "Project-Id-Version: Starter Templates 2.6.14\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/astra-sites\n"
7
+ "POT-Creation-Date: 2021-07-15 08:32:16+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.14
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.14 - 13-July-2021
153
  - Improvement: Compatibility to WordPress 5.8.
154
  - Improvement: Improved the import process by reducing the body size of the AJAX calls for better performance.
5
  Requires at least: 4.4
6
  Requires PHP: 5.3
7
  Tested up to: 5.8
8
+ Stable tag: 2.6.15
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.15 - 15-July-2021
153
+ - Fix: Rectified the failing import process on multisite due to an issue introduced in v2.6.14
154
+ - Fix: Fixed the broken invalid license document links.
155
+
156
  v2.6.14 - 13-July-2021
157
  - Improvement: Compatibility to WordPress 5.8.
158
  - Improvement: Improved the import process by reducing the body size of the AJAX calls for better performance.