Version Description
- Fix. WordPress 5.5 compatibility
Download this release
Release Info
Developer | quadlayers |
Plugin | Instagram Gallery |
Version | 3.0.0 |
Comparing to | |
See all releases |
Code changes from version 2.9.9 to 3.0.0
- assets/backend/js/qligg-admin-account.js +2 -62
- assets/backend/js/qligg-admin-account.min.js +1 -1
- assets/backend/js/qligg-admin-feed.js +6 -20
- assets/backend/js/qligg-admin-feed.min.js +1 -1
- assets/backend/js/qligg-admin-settings.js +9 -13
- assets/backend/js/qligg-admin-settings.min.js +1 -1
- assets/frontend/js/qligg.js +4 -65
- assets/frontend/js/qligg.min.js +1 -1
- includes/backend.php +29 -16
- includes/controllers/AccountController.php +1 -1
- includes/frontend.php +2 -5
- includes/helpers.php +2 -8
- includes/models/Suggestions.php +1 -1
- includes/view/backend/pages/feeds.php +0 -11
- includes/view/backend/pages/modals/feed/panel-feed.php +2 -2
- insta-gallery.php +2 -2
- readme.txt +5 -2
assets/backend/js/qligg-admin-account.js
CHANGED
@@ -1,12 +1,5 @@
|
|
1 |
(function ($) {
|
2 |
-
|
3 |
-
function getUrlVars() {
|
4 |
-
var vars = {};
|
5 |
-
var parts = window.location.href.slice(0, -2).replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) {
|
6 |
-
vars[key] = value;
|
7 |
-
});
|
8 |
-
return vars;
|
9 |
-
}
|
10 |
|
11 |
_.mixin({
|
12 |
escapeHtml: function (attribute) {
|
@@ -194,58 +187,5 @@
|
|
194 |
e.preventDefault();
|
195 |
new AccountModal(e);
|
196 |
});
|
197 |
-
|
198 |
-
// Generate token
|
199 |
-
// ---------------------------------------------------------------------------
|
200 |
-
/*$(document).on('ready', function (e) {
|
201 |
-
|
202 |
-
var $button = $('#qligg-generate-token'),
|
203 |
-
$spinner = $button.closest('p').find('.spinner');
|
204 |
-
|
205 |
-
var urlVars = getUrlVars();
|
206 |
-
// id = urlVars.id || false,
|
207 |
-
// access_token = urlVars.access_token || false,
|
208 |
-
// account_type = urlVars.account_type || false,
|
209 |
-
// expires_in = urlVars.expires_in || false,
|
210 |
-
// username = urlVars.username || false;
|
211 |
-
|
212 |
-
console.log('urlVars', urlVars);
|
213 |
-
|
214 |
-
if (!urlVars.id || !urlVars.access_token || !urlVars.username) {
|
215 |
-
return;
|
216 |
-
}
|
217 |
-
|
218 |
-
$.ajax({
|
219 |
-
url: ajaxurl,
|
220 |
-
type: 'post',
|
221 |
-
data: {
|
222 |
-
action: 'qligg_add_account',
|
223 |
-
account_data: window.location.href,
|
224 |
-
nonce: qligg_account.nonce.qligg_add_account
|
225 |
-
},
|
226 |
-
beforeSend: function () {
|
227 |
-
$button.css({ 'opacity': '.5', 'pointer-events': 'none' });
|
228 |
-
$spinner.addClass('is-active');
|
229 |
-
},
|
230 |
-
success: function (response) {
|
231 |
-
if (response.success) {
|
232 |
-
setTimeout(function () {
|
233 |
-
window.location = window.location.href.split("&access_token")[0];
|
234 |
-
}, 300);
|
235 |
-
} else {
|
236 |
-
alert(response.data);
|
237 |
-
}
|
238 |
-
},
|
239 |
-
complete: function () {
|
240 |
-
$button.removeAttr('style');
|
241 |
-
$spinner.removeClass('is-active');
|
242 |
-
// window.location.hash = '';
|
243 |
-
window.location.href.substring(0, window.location.href.indexOf('?'));
|
244 |
-
},
|
245 |
-
error: function (jqXHR, textStatus) {
|
246 |
-
console.log(textStatus);
|
247 |
-
}
|
248 |
-
});
|
249 |
-
|
250 |
-
});*/
|
251 |
})(jQuery);
|
1 |
(function ($) {
|
2 |
+
"use strict";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
_.mixin({
|
5 |
escapeHtml: function (attribute) {
|
187 |
e.preventDefault();
|
188 |
new AccountModal(e);
|
189 |
});
|
190 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
})(jQuery);
|
assets/backend/js/qligg-admin-account.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function($){
|
1 |
+
!function($){"use strict";_.mixin({escapeHtml:function(attribute){return attribute.replace("&",/&/g).replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"').replace(/'/g,"'")},getFormData:function($form){return $form.serializeJSON()}});var Account=Backbone.Model.extend({defaults:{access_token:""}}),AccountView=Backbone.View.extend({events:{"change input":"enable","click .media-modal-close":"close","submit .media-modal-form":"submit"},templates:{},initialize:function(){_.bindAll(this,"open","render","close","enable","submit"),this.init(),this.open()},init:function(){this.templates.window=wp.template("qligg-modal-account-main")},render:function(){var modal=this;this.$el.html(this.templates.window(this.model.attributes))},updateModel:function(e){e.preventDefault();var modal=this,$form=this.$el.find("form"),model=_.getFormData($form);this.model.set(model)},enable:function(e){$(".media-modal-submit").removeProp("disabled"),this.updateModel(e)},open:function(e){this.render(),$("body").addClass("modal-open").append(this.$el)},close:function(e){e.preventDefault(),this.undelegateEvents(),$(document).off("focusin"),$("body").removeClass("modal-open"),this.remove()},submit:function(e){e.preventDefault();var modal=this,$modal=modal.$el.find("#qligg_modal"),$spinner=$modal.find(".settings-save-status .spinner"),$saved=$modal.find(".settings-save-status .saved");return $.ajax({url:ajaxurl,data:{action:"qligg_add_account",nonce:qligg_account.nonce.qligg_add_account,account_data:modal.model.attributes},dataType:"json",type:"POST",beforeSend:function(){$(".media-modal-submit").prop("disabled",!0),$spinner.addClass("is-active")},complete:function(){$spinner.removeClass("is-active")},error:function(response){alert("Error!")},success:function(response){response.success?($modal.addClass("reload"),$saved.addClass("is-active"),_.delay((function(){$saved.removeClass("is-active")}),5e3),modal.close(e),window.location.reload()):alert(response.data)}}),!1}}),AccountModal=Backbone.View.extend({initialize:function(e){var model=new Account;model.set({access_token:""}),new AccountView({model:model})}});$(document).on("click","[data-qligg-copy-token]",(function(e){e.preventDefault(),$($(this).data("qligg-copy-token")).select(),document.execCommand("copy")})),$(document).on("click","[data-qligg-delete-token]",(function(e){var c;if(e.preventDefault(),!confirm(qligg_account.message.confirm_delete))return!1;var $button,account_id=$(e.target).closest("[data-account_id]").data("account_id"),$spinner=$(e.target).closest("td").find(".spinner");$.ajax({url:ajaxurl,type:"post",data:{action:"qligg_delete_account",account_id:account_id,nonce:qligg_account.nonce.qligg_delete_account},beforeSend:function(){$spinner.addClass("is-active")},success:function(response){response.success?setTimeout((function(){window.location.reload()}),300):alert(response.data)},complete:function(){$spinner.removeClass("is-active")},error:function(jqXHR,textStatus){console.log(textStatus)}})})),$("#qligg-add-token").on("click",(function(e){e.preventDefault(),new AccountModal(e)}))}(jQuery);
|
assets/backend/js/qligg-admin-feed.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
(function ($) {
|
|
|
2 |
|
3 |
var count = 0,
|
4 |
timer;
|
@@ -25,8 +26,6 @@
|
|
25 |
},
|
26 |
getFormData: function ($form) {
|
27 |
return $form.serializeJSON({ checkboxUncheckedValue: 'false', parseBooleans: true, parseNulls: true });
|
28 |
-
//breakes image highlight id
|
29 |
-
// return $form.serializeJSON({checkboxUncheckedValue: 'false', parseBooleans: true, parseNumbers: true, parseNulls: true});
|
30 |
}
|
31 |
});
|
32 |
|
@@ -288,17 +287,7 @@
|
|
288 |
this.renderPanels(e);
|
289 |
this.renderTabs(e);
|
290 |
this.enableSave(e);
|
291 |
-
}
|
292 |
-
// setUsername: function (e) {
|
293 |
-
// var modal = this,
|
294 |
-
// $select = modal.$el.find('#qligg_modal').find('form').find('select[name=username]');
|
295 |
-
// $select.trigger('change');
|
296 |
-
// },
|
297 |
-
// change: function (e) {
|
298 |
-
// e.preventDefault();
|
299 |
-
// this.updateModel(e);
|
300 |
-
// },
|
301 |
-
|
302 |
});
|
303 |
|
304 |
var FeedViewTabs = Backbone.View.extend({
|
@@ -337,13 +326,10 @@
|
|
337 |
console.log('wpColorPicker');
|
338 |
$(event.target).trigger('qligg.color.change');
|
339 |
},
|
340 |
-
clear: function (event, ui) {
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
aler('!!!!');
|
345 |
-
// $(event.target).trigger('change');
|
346 |
-
}
|
347 |
});
|
348 |
});
|
349 |
|
1 |
(function ($) {
|
2 |
+
"use strict";
|
3 |
|
4 |
var count = 0,
|
5 |
timer;
|
26 |
},
|
27 |
getFormData: function ($form) {
|
28 |
return $form.serializeJSON({ checkboxUncheckedValue: 'false', parseBooleans: true, parseNulls: true });
|
|
|
|
|
29 |
}
|
30 |
});
|
31 |
|
287 |
this.renderPanels(e);
|
288 |
this.renderTabs(e);
|
289 |
this.enableSave(e);
|
290 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
});
|
292 |
|
293 |
var FeedViewTabs = Backbone.View.extend({
|
326 |
console.log('wpColorPicker');
|
327 |
$(event.target).trigger('qligg.color.change');
|
328 |
},
|
329 |
+
//clear: function (event, ui) {
|
330 |
+
//},
|
331 |
+
//: function (event, ui) {
|
332 |
+
//}
|
|
|
|
|
|
|
333 |
});
|
334 |
});
|
335 |
|
assets/backend/js/qligg-admin-feed.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function($){var count=0,timer,is_blocked=function($node){return $node.is(".processing")||$node.parents(".processing").length},block=function(){$("#qligg_modal").addClass("processing")},unblock=function(){$("#qligg_modal").removeClass("processing")};_.mixin({escapeHtml:function(attribute){return attribute.replace("&",/&/g).replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"').replace(/'/g,"'")},getFormData:function($form){return $form.serializeJSON({checkboxUncheckedValue:"false",parseBooleans:!0,parseNulls:!0})}});var FeedModel=Backbone.Model.extend({defaults:qligg_feed.args}),FeedModal=Backbone.View.extend({initialize:function(e){var $button,feed_id=$(e.target).closest("[data-feed_position]").data("feed_id"),model=new FeedModel,c;Object.keys(qligg_feed.accounts).length?(model.set({id:feed_id}),feed_id||model.set({username:Object.keys(qligg_feed.accounts)[0]}),new FeedView({model:model}).render()):confirm(qligg_feed.message.confirm_username)&&(window.location.href=qligg_feed.redirect.accounts)}}),FeedView=Backbone.View.extend({events:{"change input":"enableSave","change textarea":"enableSave","change select":"enableSave","click .media-modal-image":"setLayout","click .media-modal-backdrop":"close","click .media-modal-close":"close","click .media-modal-prev":"edit","click .media-modal-next":"edit","click .media-modal-tab":"tab","change .media-modal-render-tabs":"renderTabs","change .media-modal-render-panels":"renderPanels","submit .media-modal-form":"submit","qligg.color.change input":"enableSave"},templates:{},initialize:function(){_.bindAll(this,"open","tab","edit","load","render","close","submit"),this.init(),this.open()},init:function(){this.templates.window=wp.template("qligg-modal-main")},assign:function(view,selector){view.setElement(this.$(selector)).render()},updateModel:function(e){e&&e.preventDefault();var modal=this,$form=this.$el.find("#qligg_modal").find("form"),model=_.getFormData($form);this.model.set(model)},reload:function(e){this.$el.find("#qligg_modal").hasClass("reload")?location.reload():this.remove()},close:function(e){e.preventDefault(),this.undelegateEvents(),$(document).off("focusin"),$("body").removeClass("modal-open"),this.$el.find("#qligg_modal").addClass("reload"),this.reload(e)},enableSave:function(e){$(".media-modal-submit").removeProp("disabled"),this.updateModel(e)},disableSave:function(e){$(".media-modal-submit").prop("disabled",!0)},tab:function(e){e.preventDefault();var modal=this,$modal=this.$el.find("#qligg_modal"),$tab=$(e.currentTarget),$tabs=$modal.find("ul.qligg-tabs"),panel=$tab.find("a").attr("href").replace("#","");$tabs.find(".active").removeClass("active"),$tab.addClass("active"),this.model.attributes.panel=panel,this.model.changed.panel=panel,this.renderPanels(e)},renderTabs:function(e){this.renderPanels(e),this.tabs.render()},renderPanels:function(e){this.updateModel(e),this.panels.render()},render:function(){var modal=this;modal.$el.html(modal.templates.window(modal.model.attributes)),this.tabs=new FeedViewTabs({model:modal.model}),this.panels=new FeedViewPanels({model:modal.model}),this.assign(this.tabs,"#qligg-modal-tabs"),this.assign(this.panels,"#qligg-modal-panels"),_.delay((function(){modal.$el.trigger("qligg-enhanced-color")}),100)},open:function(e){var modal=this;$("body").addClass("modal-open").append(this.$el),this.load()},load:function(){var modal=this;if(null==modal.model.attributes.id)return modal.render(),void _.delay((function(){unblock()}),300);$.ajax({url:ajaxurl,data:{action:"qligg_edit_feed",nonce:qligg_feed.nonce.qligg_edit_feed,feed_id:this.model.attributes.id},dataType:"json",type:"POST",complete:function(){qligg_feed.accounts[modal.model.attributes.username]||(modal.enableSave(),alert(qligg_feed.message.save)),unblock()},error:function(){alert("Error!")},success:function(response){response.success?(modal.model.set(response.data),modal.render()):alert(response.data)}})},edit:function(e){e.preventDefault();var modal=this,$button=$(e.target),feed_count=parseInt($("#qligg_feeds_table tr[data-feed_id]").length),feed_position=parseInt($("#qligg_feeds_table tr[data-feed_id="+modal.model.get("id")+"]").data("feed_position"));count++,timer&&clearTimeout(timer),timer=setTimeout((function(){feed_position=$button.hasClass("media-modal-next")?Math.min(feed_position+count,feed_count):Math.max(feed_position-count,1),modal.model.set({id:parseInt($("#qligg_feeds_table tr[data-feed_position="+feed_position+"]").data("feed_id"))}),count=0,modal.load()}),300)},submit:function(e){e.preventDefault();var modal=this,$modal=modal.$el.find("#qligg_modal"),$spinner=$modal.find(".settings-save-status .spinner"),$saved=$modal.find(".settings-save-status .saved");return $.ajax({url:ajaxurl,data:{action:"qligg_save_feed",nonce:qligg_feed.nonce.qligg_save_feed,feed:JSON.stringify(modal.model.attributes)},dataType:"json",type:"POST",beforeSend:function(){$(".media-modal-submit").prop("disabled",!0),$spinner.addClass("is-active")},complete:function(){$saved.addClass("is-active"),$spinner.removeClass("is-active"),_.delay((function(){$saved.removeClass("is-active")}),1e3)},error:function(response){alert("Error!")},success:function(response){console.log(response),response.success?null==modal.model.attributes.id&&($modal.addClass("reload"),modal.reload(e),modal.close(e)):alert(response.data)}}),!1},setLayout:function(e){e.preventDefault(),e.stopPropagation(),$(e.target).find("input[type=radio]").prop("checked",!0),$(e.target).siblings().find("input[type=radio]").prop("checked",!1),this.updateModel(e),this.renderPanels(e),this.renderTabs(e),this.enableSave(e)}}),FeedViewTabs=Backbone.View.extend({templates:{},initialize:function(){this.templates.window=wp.template("qligg-modal-tabs")},render:function(){this.model.attributes.panel="tab_panel_feed",this.$el.html(this.templates.window(this.model.attributes))}}),FeedViewPanels=Backbone.View.extend({templates:{},initialize:function(){this.templates.window=wp.template("qligg-modal-panels")},render:function(){this.$el.html(this.templates.window(this.model.attributes)),this.$el.trigger("qligg-enhanced-color")}});$(document).on("qligg-enhanced-color",(function(e){$(".color-picker").filter(":not(.enhanced)").each((function(){$(this).is("[readonly]")&&$(this).parent(".form-field").addClass("disabled-field"),$(this).wpColorPicker({change:function(event,ui){console.log("wpColorPicker"),$(event.target).trigger("qligg.color.change")}
|
1 |
+
!function($){"use strict";var count=0,timer,is_blocked=function($node){return $node.is(".processing")||$node.parents(".processing").length},block=function(){$("#qligg_modal").addClass("processing")},unblock=function(){$("#qligg_modal").removeClass("processing")};_.mixin({escapeHtml:function(attribute){return attribute.replace("&",/&/g).replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"').replace(/'/g,"'")},getFormData:function($form){return $form.serializeJSON({checkboxUncheckedValue:"false",parseBooleans:!0,parseNulls:!0})}});var FeedModel=Backbone.Model.extend({defaults:qligg_feed.args}),FeedModal=Backbone.View.extend({initialize:function(e){var $button,feed_id=$(e.target).closest("[data-feed_position]").data("feed_id"),model=new FeedModel,c;Object.keys(qligg_feed.accounts).length?(model.set({id:feed_id}),feed_id||model.set({username:Object.keys(qligg_feed.accounts)[0]}),new FeedView({model:model}).render()):confirm(qligg_feed.message.confirm_username)&&(window.location.href=qligg_feed.redirect.accounts)}}),FeedView=Backbone.View.extend({events:{"change input":"enableSave","change textarea":"enableSave","change select":"enableSave","click .media-modal-image":"setLayout","click .media-modal-backdrop":"close","click .media-modal-close":"close","click .media-modal-prev":"edit","click .media-modal-next":"edit","click .media-modal-tab":"tab","change .media-modal-render-tabs":"renderTabs","change .media-modal-render-panels":"renderPanels","submit .media-modal-form":"submit","qligg.color.change input":"enableSave"},templates:{},initialize:function(){_.bindAll(this,"open","tab","edit","load","render","close","submit"),this.init(),this.open()},init:function(){this.templates.window=wp.template("qligg-modal-main")},assign:function(view,selector){view.setElement(this.$(selector)).render()},updateModel:function(e){e&&e.preventDefault();var modal=this,$form=this.$el.find("#qligg_modal").find("form"),model=_.getFormData($form);this.model.set(model)},reload:function(e){this.$el.find("#qligg_modal").hasClass("reload")?location.reload():this.remove()},close:function(e){e.preventDefault(),this.undelegateEvents(),$(document).off("focusin"),$("body").removeClass("modal-open"),this.$el.find("#qligg_modal").addClass("reload"),this.reload(e)},enableSave:function(e){$(".media-modal-submit").removeProp("disabled"),this.updateModel(e)},disableSave:function(e){$(".media-modal-submit").prop("disabled",!0)},tab:function(e){e.preventDefault();var modal=this,$modal=this.$el.find("#qligg_modal"),$tab=$(e.currentTarget),$tabs=$modal.find("ul.qligg-tabs"),panel=$tab.find("a").attr("href").replace("#","");$tabs.find(".active").removeClass("active"),$tab.addClass("active"),this.model.attributes.panel=panel,this.model.changed.panel=panel,this.renderPanels(e)},renderTabs:function(e){this.renderPanels(e),this.tabs.render()},renderPanels:function(e){this.updateModel(e),this.panels.render()},render:function(){var modal=this;modal.$el.html(modal.templates.window(modal.model.attributes)),this.tabs=new FeedViewTabs({model:modal.model}),this.panels=new FeedViewPanels({model:modal.model}),this.assign(this.tabs,"#qligg-modal-tabs"),this.assign(this.panels,"#qligg-modal-panels"),_.delay((function(){modal.$el.trigger("qligg-enhanced-color")}),100)},open:function(e){var modal=this;$("body").addClass("modal-open").append(this.$el),this.load()},load:function(){var modal=this;if(null==modal.model.attributes.id)return modal.render(),void _.delay((function(){unblock()}),300);$.ajax({url:ajaxurl,data:{action:"qligg_edit_feed",nonce:qligg_feed.nonce.qligg_edit_feed,feed_id:this.model.attributes.id},dataType:"json",type:"POST",complete:function(){qligg_feed.accounts[modal.model.attributes.username]||(modal.enableSave(),alert(qligg_feed.message.save)),unblock()},error:function(){alert("Error!")},success:function(response){response.success?(modal.model.set(response.data),modal.render()):alert(response.data)}})},edit:function(e){e.preventDefault();var modal=this,$button=$(e.target),feed_count=parseInt($("#qligg_feeds_table tr[data-feed_id]").length),feed_position=parseInt($("#qligg_feeds_table tr[data-feed_id="+modal.model.get("id")+"]").data("feed_position"));count++,timer&&clearTimeout(timer),timer=setTimeout((function(){feed_position=$button.hasClass("media-modal-next")?Math.min(feed_position+count,feed_count):Math.max(feed_position-count,1),modal.model.set({id:parseInt($("#qligg_feeds_table tr[data-feed_position="+feed_position+"]").data("feed_id"))}),count=0,modal.load()}),300)},submit:function(e){e.preventDefault();var modal=this,$modal=modal.$el.find("#qligg_modal"),$spinner=$modal.find(".settings-save-status .spinner"),$saved=$modal.find(".settings-save-status .saved");return $.ajax({url:ajaxurl,data:{action:"qligg_save_feed",nonce:qligg_feed.nonce.qligg_save_feed,feed:JSON.stringify(modal.model.attributes)},dataType:"json",type:"POST",beforeSend:function(){$(".media-modal-submit").prop("disabled",!0),$spinner.addClass("is-active")},complete:function(){$saved.addClass("is-active"),$spinner.removeClass("is-active"),_.delay((function(){$saved.removeClass("is-active")}),1e3)},error:function(response){alert("Error!")},success:function(response){console.log(response),response.success?null==modal.model.attributes.id&&($modal.addClass("reload"),modal.reload(e),modal.close(e)):alert(response.data)}}),!1},setLayout:function(e){e.preventDefault(),e.stopPropagation(),$(e.target).find("input[type=radio]").prop("checked",!0),$(e.target).siblings().find("input[type=radio]").prop("checked",!1),this.updateModel(e),this.renderPanels(e),this.renderTabs(e),this.enableSave(e)}}),FeedViewTabs=Backbone.View.extend({templates:{},initialize:function(){this.templates.window=wp.template("qligg-modal-tabs")},render:function(){this.model.attributes.panel="tab_panel_feed",this.$el.html(this.templates.window(this.model.attributes))}}),FeedViewPanels=Backbone.View.extend({templates:{},initialize:function(){this.templates.window=wp.template("qligg-modal-panels")},render:function(){this.$el.html(this.templates.window(this.model.attributes)),this.$el.trigger("qligg-enhanced-color")}});$(document).on("qligg-enhanced-color",(function(e){$(".color-picker").filter(":not(.enhanced)").each((function(){$(this).is("[readonly]")&&$(this).parent(".form-field").addClass("disabled-field"),$(this).wpColorPicker({change:function(event,ui){console.log("wpColorPicker"),$(event.target).trigger("qligg.color.change")}})}))})),$("#qligg-add-feed").on("click",(function(e){e.preventDefault(),new FeedModal(e)}));var exist_modal=!1;$(".qligg_edit_feed").on("click",(function(e){e.preventDefault(),exist_modal||(new FeedModal(e),exist_modal=!0)})),$(".qligg_delete_feed").on("click",(function(e){var c;if(e.preventDefault(),!confirm(qligg_feed.message.confirm_delete))return!1;var $button=$(e.target),$spinner=$button.parent().find(".spinner"),feed_id=$button.closest("[data-feed_id]").data("feed_id");$.ajax({url:ajaxurl,data:{action:"qligg_delete_feed",nonce:qligg_feed.nonce.qligg_delete_feed,feed_id:feed_id},dataType:"json",type:"POST",beforeSend:function(){$spinner.addClass("is-active")},complete:function(){$spinner.removeClass("is-active")},error:function(response){},success:function(response){response.data?(console.log(response.data),location.reload()):alert(response.data)}})})),$(".qligg_clear_cache").on("click",(function(e){var c;if(e.preventDefault(),!confirm(qligg_feed.message.confirm_clear_cache))return!1;var $button=$(e.target),$spinner=$button.parent().find(".spinner"),feed_id=$button.closest("[data-feed_id]").data("feed_id");$.ajax({url:ajaxurl,type:"post",data:{action:"qligg_clear_cache",feed_id:feed_id,nonce:qligg_feed.nonce.qligg_clear_cache},beforeSend:function(){$spinner.addClass("is-active")},success:function(response){response.success?setTimeout((function(){$spinner.removeClass("is-active")}),300):alert(response.data)},complete:function(){setTimeout((function(){$spinner.removeClass("is-active")}),600)},error:function(jqXHR,textStatus){console.log(textStatus)}})})),$(document).on("click",".upload_image_button",(function(e){e.preventDefault();var send_attachment_bkp=wp.media.editor.send.attachment,button=$(this);return wp.media.editor.send.attachment=function(props,attachment){$(button).parent().prev().attr("src",attachment.url),$(button).prev().val(attachment.url).trigger("change"),wp.media.editor.send.attachment=send_attachment_bkp},wp.media.editor.open(button),!1})),$(document).on("click",".remove_image_button",(function(e){e.preventDefault();var src=$(this).parent().prev().attr("data-src");return $(this).parent().prev().attr("src",src),$(this).prev().prev().val("").trigger("change"),!1})),$(document).on("click","[data-qligg-copy-feed-shortcode]",(function(e){e.preventDefault(),$($(this).data("qligg-copy-feed-shortcode")).select(),document.execCommand("copy")}))}(jQuery);
|
assets/backend/js/qligg-admin-settings.js
CHANGED
@@ -1,21 +1,19 @@
|
|
1 |
-
|
2 |
(function ($) {
|
|
|
3 |
|
4 |
_.mixin({
|
5 |
escapeHtml: function (attribute) {
|
6 |
return attribute.replace('&', /&/g)
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
},
|
12 |
getFormData: function ($form) {
|
13 |
return $form.serializeJSON();
|
14 |
}
|
15 |
});
|
16 |
|
17 |
-
|
18 |
-
|
19 |
// Spinner
|
20 |
// -------------------------------------------------------------------------
|
21 |
|
@@ -37,13 +35,13 @@
|
|
37 |
}
|
38 |
|
39 |
var $igs_image_id = $('input[name=insta_spinner_image_id]'),
|
40 |
-
|
41 |
|
42 |
$('#qligg-save-settings').on('submit', function (e) {
|
43 |
e.preventDefault();
|
44 |
|
45 |
var $form = $(this),
|
46 |
-
|
47 |
|
48 |
$.ajax({
|
49 |
url: ajaxurl,
|
@@ -69,7 +67,7 @@
|
|
69 |
});
|
70 |
|
71 |
// reset spinner to default
|
72 |
-
$igs_reset.click
|
73 |
$igs_image_id.val('');
|
74 |
ig_change_spinner();
|
75 |
$(this).hide();
|
@@ -82,7 +80,7 @@
|
|
82 |
|
83 |
// Upload media image
|
84 |
// ---------------------------------------------------------------------------
|
85 |
-
$('#ig-spinner-upload').click
|
86 |
e.preventDefault();
|
87 |
var image_frame;
|
88 |
|
@@ -144,6 +142,4 @@
|
|
144 |
image_frame.open();
|
145 |
});
|
146 |
|
147 |
-
|
148 |
-
|
149 |
})(jQuery);
|
|
|
1 |
(function ($) {
|
2 |
+
"use strict";
|
3 |
|
4 |
_.mixin({
|
5 |
escapeHtml: function (attribute) {
|
6 |
return attribute.replace('&', /&/g)
|
7 |
+
.replace(/>/g, ">")
|
8 |
+
.replace(/</g, "<")
|
9 |
+
.replace(/"/g, '"')
|
10 |
+
.replace(/'/g, "'");
|
11 |
},
|
12 |
getFormData: function ($form) {
|
13 |
return $form.serializeJSON();
|
14 |
}
|
15 |
});
|
16 |
|
|
|
|
|
17 |
// Spinner
|
18 |
// -------------------------------------------------------------------------
|
19 |
|
35 |
}
|
36 |
|
37 |
var $igs_image_id = $('input[name=insta_spinner_image_id]'),
|
38 |
+
$igs_reset = $('#ig-spinner-reset');
|
39 |
|
40 |
$('#qligg-save-settings').on('submit', function (e) {
|
41 |
e.preventDefault();
|
42 |
|
43 |
var $form = $(this),
|
44 |
+
$spinner = $form.find('.spinner');
|
45 |
|
46 |
$.ajax({
|
47 |
url: ajaxurl,
|
67 |
});
|
68 |
|
69 |
// reset spinner to default
|
70 |
+
$igs_reset.on('click', function () {
|
71 |
$igs_image_id.val('');
|
72 |
ig_change_spinner();
|
73 |
$(this).hide();
|
80 |
|
81 |
// Upload media image
|
82 |
// ---------------------------------------------------------------------------
|
83 |
+
$('#ig-spinner-upload').on('click', function (e) {
|
84 |
e.preventDefault();
|
85 |
var image_frame;
|
86 |
|
142 |
image_frame.open();
|
143 |
});
|
144 |
|
|
|
|
|
145 |
})(jQuery);
|
assets/backend/js/qligg-admin-settings.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function($){function ig_change_spinner(link){if(link){if($("#qligg-save-settings .insta-gallery-spinner img").length)$("#qligg-save-settings .insta-gallery-spinner img").attr("src",link);else{var img='<img src="'+link+'" class="ig-spin" />';$("#qligg-save-settings .insta-gallery-spinner").append(img)}$("#qligg-save-settings .insta-gallery-spinner .ig-spin").hide(),$("#qligg-save-settings .insta-gallery-spinner img").show()}else $("#qligg-save-settings .insta-gallery-spinner .ig-spin").show(),$("#qligg-save-settings .insta-gallery-spinner img").remove()}_.mixin({escapeHtml:function(attribute){return attribute.replace("&",/&/g).replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"').replace(/'/g,"'")},getFormData:function($form){return $form.serializeJSON()}});var $igs_image_id=$("input[name=insta_spinner_image_id]"),$igs_reset=$("#ig-spinner-reset");$("#qligg-save-settings").on("submit",(function(e){e.preventDefault();var $form=$(this),$spinner=$form.find(".spinner");$.ajax({url:ajaxurl,type:"post",dataType:"JSON",data:{action:"qligg_save_settings",nonce:qligg_settings.nonce.qligg_save_settings,settings_data:$form.serialize()},beforeSend:function(){$spinner.addClass("is-active")},success:function(response){},complete:function(){$spinner.removeClass("is-active")},error:function(jqXHR,textStatus){console.log(textStatus)}})})),$igs_reset.click(
|
1 |
+
!function($){"use strict";function ig_change_spinner(link){if(link){if($("#qligg-save-settings .insta-gallery-spinner img").length)$("#qligg-save-settings .insta-gallery-spinner img").attr("src",link);else{var img='<img src="'+link+'" class="ig-spin" />';$("#qligg-save-settings .insta-gallery-spinner").append(img)}$("#qligg-save-settings .insta-gallery-spinner .ig-spin").hide(),$("#qligg-save-settings .insta-gallery-spinner img").show()}else $("#qligg-save-settings .insta-gallery-spinner .ig-spin").show(),$("#qligg-save-settings .insta-gallery-spinner img").remove()}_.mixin({escapeHtml:function(attribute){return attribute.replace("&",/&/g).replace(/>/g,">").replace(/</g,"<").replace(/"/g,'"').replace(/'/g,"'")},getFormData:function($form){return $form.serializeJSON()}});var $igs_image_id=$("input[name=insta_spinner_image_id]"),$igs_reset=$("#ig-spinner-reset");$("#qligg-save-settings").on("submit",(function(e){e.preventDefault();var $form=$(this),$spinner=$form.find(".spinner");$.ajax({url:ajaxurl,type:"post",dataType:"JSON",data:{action:"qligg_save_settings",nonce:qligg_settings.nonce.qligg_save_settings,settings_data:$form.serialize()},beforeSend:function(){$spinner.addClass("is-active")},success:function(response){},complete:function(){$spinner.removeClass("is-active")},error:function(jqXHR,textStatus){console.log(textStatus)}})})),$igs_reset.on("click",(function(){$igs_image_id.val(""),ig_change_spinner(),$(this).hide()})),""==$igs_image_id.val()&&$igs_reset.hide(),""!=$igs_image_id.data("misrc")&&ig_change_spinner($igs_image_id.data("misrc")),$("#ig-spinner-upload").on("click",(function(e){var image_frame;e.preventDefault(),image_frame&&image_frame.open(),(image_frame=wp.media({title:"Select Media",multiple:!1,library:{type:"image"}})).on("close",(function(){var selection=image_frame.state().get("selection");if(selection.length){var gallery_ids=new Array,i=0,attachment_url;selection.each((function(attachment){gallery_ids[i]=attachment.id,attachment_url=attachment.attributes.url,i++}));var ids=gallery_ids.join(",");$igs_image_id.val(ids),ig_change_spinner(attachment_url)}""==$igs_image_id.val()?$igs_reset.hide():$igs_reset.show()})),image_frame.on("open",(function(){var selection=image_frame.state().get("selection"),ids;$igs_image_id.val().split(",").forEach((function(id){attachment=wp.media.attachment(id),attachment.fetch(),selection.add(attachment?[attachment]:[])}))})),image_frame.open()}))}(jQuery);
|
assets/frontend/js/qligg.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
(function ($) {
|
2 |
-
|
|
|
3 |
var swiper_index = 0, $swipers = {};
|
4 |
|
5 |
// Ajax load
|
@@ -229,7 +230,6 @@
|
|
229 |
// Carousel
|
230 |
// -------------------------------------------------------------------------
|
231 |
//$('.insta-gallery-item', $wrap).on('mfpOpen', function (e) {
|
232 |
-
//console.log(e);
|
233 |
//});
|
234 |
|
235 |
if (!options.popup.display) {
|
@@ -246,17 +246,8 @@
|
|
246 |
|
247 |
var media = '', profile = '', counter = '', caption = '', info = '', likes = '', date = '', comments = '';
|
248 |
|
249 |
-
//if (item.el.data('item').type == 'video') {
|
250 |
-
// media = '<video autoplay>' +
|
251 |
-
// '<source src="' + item.el.data('item').videos.standard + '" type="video/mp4">' +
|
252 |
-
// '</video>';
|
253 |
-
//} else if (item.el.data('item').type == 'gallery') {
|
254 |
-
//media = 'this is a gallery';
|
255 |
-
//} else {
|
256 |
-
|
257 |
media = '<img src="' + item.el.data('item').images.standard + '"/>'
|
258 |
-
|
259 |
-
|
260 |
counter = '<div class="mfp-icons"><div class="mfp-counter">' + (item.index + 1) + ' / ' + $('.insta-gallery-item', $wrap).length + '</div><a class="mfp-link" href="' + item.el.data('item').link + '" target="_blank" rel="noopener"><i class="qligg-icon-instagram"></i>Instagram</a></div>';
|
261 |
|
262 |
if (options.popup.profile) {
|
@@ -321,59 +312,7 @@
|
|
321 |
|
322 |
qligg_load_item_images($item, 0);
|
323 |
|
324 |
-
});
|
325 |
-
|
326 |
-
/*function ig_lazy_load($wrap, item) {
|
327 |
-
var lazyImages = [].slice.call($wrap.find('img.ig-lazy'));
|
328 |
-
var active = false;
|
329 |
-
|
330 |
-
var lazyLoadImages = function () {
|
331 |
-
if (active === false) {
|
332 |
-
active = true;
|
333 |
-
|
334 |
-
setTimeout(
|
335 |
-
function () {
|
336 |
-
lazyImages
|
337 |
-
.forEach(function (lazyImage) {
|
338 |
-
if ((lazyImage.getBoundingClientRect().top <= window.innerHeight && lazyImage
|
339 |
-
.getBoundingClientRect().bottom >= 0)
|
340 |
-
&& getComputedStyle(lazyImage).display !== "none") {
|
341 |
-
lazyImage.src = lazyImage.dataset.src;
|
342 |
-
lazyImage.classList.remove("lazy");
|
343 |
-
|
344 |
-
lazyImages = lazyImages
|
345 |
-
.filter(function (image) {
|
346 |
-
return image !== lazyImage;
|
347 |
-
});
|
348 |
-
|
349 |
-
if (lazyImages.length === 0) {
|
350 |
-
document.removeEventListener(
|
351 |
-
"scroll",
|
352 |
-
lazyLoadImages);
|
353 |
-
document.removeEventListener(
|
354 |
-
"touchmove",
|
355 |
-
lazyLoadImages);
|
356 |
-
window.removeEventListener(
|
357 |
-
"resize",
|
358 |
-
lazyLoadImages);
|
359 |
-
window.removeEventListener(
|
360 |
-
"orientationchange",
|
361 |
-
lazyLoadImages);
|
362 |
-
}
|
363 |
-
}
|
364 |
-
});
|
365 |
-
|
366 |
-
active = false;
|
367 |
-
}, 200);
|
368 |
-
}
|
369 |
-
};
|
370 |
-
|
371 |
-
document.addEventListener("scroll", lazyLoadImages);
|
372 |
-
document.addEventListener("touchmove", lazyLoadImages);
|
373 |
-
window.addEventListener("resize", lazyLoadImages);
|
374 |
-
window.addEventListener("orientationchange", lazyLoadImages);
|
375 |
-
lazyLoadImages();
|
376 |
-
}*/
|
377 |
|
378 |
// IE8
|
379 |
// ---------------------------------------------------------------------------
|
1 |
(function ($) {
|
2 |
+
"use strict";
|
3 |
+
|
4 |
var swiper_index = 0, $swipers = {};
|
5 |
|
6 |
// Ajax load
|
230 |
// Carousel
|
231 |
// -------------------------------------------------------------------------
|
232 |
//$('.insta-gallery-item', $wrap).on('mfpOpen', function (e) {
|
|
|
233 |
//});
|
234 |
|
235 |
if (!options.popup.display) {
|
246 |
|
247 |
var media = '', profile = '', counter = '', caption = '', info = '', likes = '', date = '', comments = '';
|
248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
media = '<img src="' + item.el.data('item').images.standard + '"/>'
|
250 |
+
|
|
|
251 |
counter = '<div class="mfp-icons"><div class="mfp-counter">' + (item.index + 1) + ' / ' + $('.insta-gallery-item', $wrap).length + '</div><a class="mfp-link" href="' + item.el.data('item').link + '" target="_blank" rel="noopener"><i class="qligg-icon-instagram"></i>Instagram</a></div>';
|
252 |
|
253 |
if (options.popup.profile) {
|
312 |
|
313 |
qligg_load_item_images($item, 0);
|
314 |
|
315 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
|
317 |
// IE8
|
318 |
// ---------------------------------------------------------------------------
|
assets/frontend/js/qligg.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function($){var swiper_index=0,$swipers={};function qligg_load_item_images($item,next_max_id){var $wrap=$(".insta-gallery-list",$item),$spinner=$(".insta-gallery-spinner",$item),feed=$item.data("feed");$.ajax({url:qligg.ajax_url,type:"post",timeout:3e4,data:{action:"qligg_load_item_images",next_max_id:next_max_id,feed:JSON.stringify(feed)},beforeSend:function(){$spinner.show()},success:function(response){if(!0!==response.success)return $wrap.append($(response.data)),void $spinner.hide();var $images=$(response.data);$wrap.append($images).trigger("qligg.loaded",[$images])},complete:function(){},error:function(jqXHR,textStatus){$spinner.hide(),console.log(textStatus)}})}$(".insta-gallery-feed").on("qligg.loaded",(function(e,images){var $item=$(e.delegateTarget),$wrap=$(".insta-gallery-list",$item),$spinner=$(".insta-gallery-spinner",$item),$button=$(".insta-gallery-button.load",$item),options=$item.data("feed"),total=$(images).length,loaded=0;total&&$wrap.find(".insta-gallery-image").load((function(e){++loaded>=total&&$wrap.trigger("qligg.imagesLoaded",[images])})),total<options.limit&&($spinner.hide(),setTimeout((function(){$button.fadeOut()}),300))})),$(".insta-gallery-feed").on("qligg.imagesLoaded",(function(e){var $item=$(e.delegateTarget),$spinner;$(".insta-gallery-spinner",$item).hide()})),$(".insta-gallery-feed[data-feed_layout=gallery]").on("qligg.imagesLoaded",(function(e,images){var $item;$(e.delegateTarget).addClass("loaded"),$(images).each((function(i,item){setTimeout((function(){$(item).addClass("ig-image-loaded")}),150+30*i)}))})),$(".insta-gallery-feed[data-feed_layout=carousel]").on("qligg.imagesLoaded",(function(e,images){var $item;$(e.delegateTarget).addClass("loaded"),$(images).each((function(i,item){$(item).addClass("ig-image-loaded")}))})),$(".insta-gallery-feed[data-feed_layout=carousel]").on("qligg.imagesLoaded",(function(e,images){var $item=$(e.delegateTarget),$swiper=$(".swiper-container",$item),options=$item.data("feed");options.carousel.slides=options.carousel.slidespv,swiper_index++,$swipers[swiper_index]=new Swiper($swiper,{loop:!0,autoHeight:!0,observer:!0,observeParents:!0,slidesPerView:1,spaceBetween:2,autoplay:!!options.carousel.autoplay&&{delay:parseInt(options.carousel.autoplay_interval)},pagination:{el:".swiper-pagination",dynamicBullets:!0,clickable:!0,type:"bullets"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{320:{slidesPerView:1,spaceBetween:1},480:{spaceBetween:parseInt(options.spacing),slidesPerView:Math.min(2,parseInt(options.carousel.slides))},768:{spaceBetween:parseInt(options.spacing),slidesPerView:Math.min(3,parseInt(options.carousel.slides))},1024:{spaceBetween:parseInt(options.spacing),slidesPerView:parseInt(options.carousel.slides)}}})})),$(".insta-gallery-feed[data-feed_layout=masonry]").on("qligg.imagesLoaded",(function(e,images){var $item=$(e.delegateTarget),$wrap=$(".insta-gallery-list",$item);$wrap.data("masonry")?$wrap.masonry("appended",images,!1):$wrap.masonry({itemSelector:".insta-gallery-item",isResizable:!0,isAnimated:!1,transitionDuration:0,percentPosition:!0,columnWidth:".insta-gallery-item:last-child"})})),$(".insta-gallery-feed[data-feed_layout=masonry]").on("layoutComplete",(function(e,items){var $item;$(e.delegateTarget).addClass("loaded"),$(items).each((function(i,item){$(item.element).addClass("ig-image-loaded")}))})),$(".insta-gallery-feed").on("qligg.loaded",(function(e){var $item=$(e.delegateTarget),$wrap=$(".insta-gallery-list",$item),options=$item.data("feed");$(".insta-gallery-item .insta-gallery-icon.qligg-icon-instagram",$wrap).on("click",(function(e){e.stopPropagation()})),options.popup.display&&$(".insta-gallery-item",$wrap).magnificPopup({type:"inline",callbacks:{beforeOpen:function(){this.st.mainClass=this.st.mainClass+" qligg-mfp-wrap"},elementParse:function(item){var media="",profile="",counter="",caption="",info="",likes="",date="",comments="";media='<img src="'+item.el.data("item").images.standard+'"/>',counter='<div class="mfp-icons"><div class="mfp-counter">'+(item.index+1)+" / "+$(".insta-gallery-item",$wrap).length+'</div><a class="mfp-link" href="'+item.el.data("item").link+'" target="_blank" rel="noopener"><i class="qligg-icon-instagram"></i>Instagram</a></div>',options.popup.profile&&(profile='<div class="mfp-user"><img src="'+options.profile.profile_picture_url+'"><a href="https://www.instagram.com/'+options.profile.username+'" title="'+options.profile.name+'" target="_blank" rel="noopener">'+options.profile.username+"</a></div>"),options.popup.caption&&(caption='<div class="mfp-caption">'+item.el.data("item").caption+"</div>"),item.el.data("item").date&&(date='<div class="mfp-date">'+item.el.data("item").date+"</div>"),item.el.data("item").comments&&options.popup.comments&&(comments='<div class="mfp-comments"><i class="qligg-icon-comment"></i>'+item.el.data("item").comments+"</div>"),item.el.data("item").likes&&options.popup.likes&&(likes='<div class="mfp-likes"><i class="qligg-icon-heart"></i>'+item.el.data("item").likes+"</div>"),(options.popup.likes||options.popup.comments)&&(info='<div class="mfp-info">'+likes+comments+date+"</div>"),item.src='<div class="mfp-figure '+options.popup.align+'">'+media+'<div class="mfp-close"></div><div class="mfp-bottom-bar"><div class="mfp-title">'+profile+counter+caption+info+"</div></div></div>"}},gallery:{enabled:!0}})})),$(".insta-gallery-feed").on("click",".insta-gallery-button.load",(function(e){e.preventDefault();var $item=$(e.delegateTarget),next_max_id;if(!$item.hasClass("loaded"))return!1;qligg_load_item_images($item,$(".insta-gallery-list .insta-gallery-item:last-child",$item).data("item").i)})),$(".insta-gallery-feed").each((function(index,item){var $item=$(item);if($item.hasClass("loaded"))return!1;qligg_load_item_images($item,0)})),-1!=navigator.appVersion.indexOf("MSIE 8.")&&(document.body.className+=" instagal-ie-8"),-1!=navigator.appVersion.indexOf("MSIE 9.")&&(document.body.className+=" instagal-ie-9")}(jQuery);
|
1 |
+
!function($){"use strict";var swiper_index=0,$swipers={};function qligg_load_item_images($item,next_max_id){var $wrap=$(".insta-gallery-list",$item),$spinner=$(".insta-gallery-spinner",$item),feed=$item.data("feed");$.ajax({url:qligg.ajax_url,type:"post",timeout:3e4,data:{action:"qligg_load_item_images",next_max_id:next_max_id,feed:JSON.stringify(feed)},beforeSend:function(){$spinner.show()},success:function(response){if(!0!==response.success)return $wrap.append($(response.data)),void $spinner.hide();var $images=$(response.data);$wrap.append($images).trigger("qligg.loaded",[$images])},complete:function(){},error:function(jqXHR,textStatus){$spinner.hide(),console.log(textStatus)}})}$(".insta-gallery-feed").on("qligg.loaded",(function(e,images){var $item=$(e.delegateTarget),$wrap=$(".insta-gallery-list",$item),$spinner=$(".insta-gallery-spinner",$item),$button=$(".insta-gallery-button.load",$item),options=$item.data("feed"),total=$(images).length,loaded=0;total&&$wrap.find(".insta-gallery-image").load((function(e){++loaded>=total&&$wrap.trigger("qligg.imagesLoaded",[images])})),total<options.limit&&($spinner.hide(),setTimeout((function(){$button.fadeOut()}),300))})),$(".insta-gallery-feed").on("qligg.imagesLoaded",(function(e){var $item=$(e.delegateTarget),$spinner;$(".insta-gallery-spinner",$item).hide()})),$(".insta-gallery-feed[data-feed_layout=gallery]").on("qligg.imagesLoaded",(function(e,images){var $item;$(e.delegateTarget).addClass("loaded"),$(images).each((function(i,item){setTimeout((function(){$(item).addClass("ig-image-loaded")}),150+30*i)}))})),$(".insta-gallery-feed[data-feed_layout=carousel]").on("qligg.imagesLoaded",(function(e,images){var $item;$(e.delegateTarget).addClass("loaded"),$(images).each((function(i,item){$(item).addClass("ig-image-loaded")}))})),$(".insta-gallery-feed[data-feed_layout=carousel]").on("qligg.imagesLoaded",(function(e,images){var $item=$(e.delegateTarget),$swiper=$(".swiper-container",$item),options=$item.data("feed");options.carousel.slides=options.carousel.slidespv,swiper_index++,$swipers[swiper_index]=new Swiper($swiper,{loop:!0,autoHeight:!0,observer:!0,observeParents:!0,slidesPerView:1,spaceBetween:2,autoplay:!!options.carousel.autoplay&&{delay:parseInt(options.carousel.autoplay_interval)},pagination:{el:".swiper-pagination",dynamicBullets:!0,clickable:!0,type:"bullets"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{320:{slidesPerView:1,spaceBetween:1},480:{spaceBetween:parseInt(options.spacing),slidesPerView:Math.min(2,parseInt(options.carousel.slides))},768:{spaceBetween:parseInt(options.spacing),slidesPerView:Math.min(3,parseInt(options.carousel.slides))},1024:{spaceBetween:parseInt(options.spacing),slidesPerView:parseInt(options.carousel.slides)}}})})),$(".insta-gallery-feed[data-feed_layout=masonry]").on("qligg.imagesLoaded",(function(e,images){var $item=$(e.delegateTarget),$wrap=$(".insta-gallery-list",$item);$wrap.data("masonry")?$wrap.masonry("appended",images,!1):$wrap.masonry({itemSelector:".insta-gallery-item",isResizable:!0,isAnimated:!1,transitionDuration:0,percentPosition:!0,columnWidth:".insta-gallery-item:last-child"})})),$(".insta-gallery-feed[data-feed_layout=masonry]").on("layoutComplete",(function(e,items){var $item;$(e.delegateTarget).addClass("loaded"),$(items).each((function(i,item){$(item.element).addClass("ig-image-loaded")}))})),$(".insta-gallery-feed").on("qligg.loaded",(function(e){var $item=$(e.delegateTarget),$wrap=$(".insta-gallery-list",$item),options=$item.data("feed");$(".insta-gallery-item .insta-gallery-icon.qligg-icon-instagram",$wrap).on("click",(function(e){e.stopPropagation()})),options.popup.display&&$(".insta-gallery-item",$wrap).magnificPopup({type:"inline",callbacks:{beforeOpen:function(){this.st.mainClass=this.st.mainClass+" qligg-mfp-wrap"},elementParse:function(item){var media="",profile="",counter="",caption="",info="",likes="",date="",comments="";media='<img src="'+item.el.data("item").images.standard+'"/>',counter='<div class="mfp-icons"><div class="mfp-counter">'+(item.index+1)+" / "+$(".insta-gallery-item",$wrap).length+'</div><a class="mfp-link" href="'+item.el.data("item").link+'" target="_blank" rel="noopener"><i class="qligg-icon-instagram"></i>Instagram</a></div>',options.popup.profile&&(profile='<div class="mfp-user"><img src="'+options.profile.profile_picture_url+'"><a href="https://www.instagram.com/'+options.profile.username+'" title="'+options.profile.name+'" target="_blank" rel="noopener">'+options.profile.username+"</a></div>"),options.popup.caption&&(caption='<div class="mfp-caption">'+item.el.data("item").caption+"</div>"),item.el.data("item").date&&(date='<div class="mfp-date">'+item.el.data("item").date+"</div>"),item.el.data("item").comments&&options.popup.comments&&(comments='<div class="mfp-comments"><i class="qligg-icon-comment"></i>'+item.el.data("item").comments+"</div>"),item.el.data("item").likes&&options.popup.likes&&(likes='<div class="mfp-likes"><i class="qligg-icon-heart"></i>'+item.el.data("item").likes+"</div>"),(options.popup.likes||options.popup.comments)&&(info='<div class="mfp-info">'+likes+comments+date+"</div>"),item.src='<div class="mfp-figure '+options.popup.align+'">'+media+'<div class="mfp-close"></div><div class="mfp-bottom-bar"><div class="mfp-title">'+profile+counter+caption+info+"</div></div></div>"}},gallery:{enabled:!0}})})),$(".insta-gallery-feed").on("click",".insta-gallery-button.load",(function(e){e.preventDefault();var $item=$(e.delegateTarget),next_max_id;if(!$item.hasClass("loaded"))return!1;qligg_load_item_images($item,$(".insta-gallery-list .insta-gallery-item:last-child",$item).data("item").i)})),$(".insta-gallery-feed").each((function(index,item){var $item=$(item);if($item.hasClass("loaded"))return!1;qligg_load_item_images($item,0)})),-1!=navigator.appVersion.indexOf("MSIE 8.")&&(document.body.className+=" instagal-ie-8"),-1!=navigator.appVersion.indexOf("MSIE 9.")&&(document.body.className+=" instagal-ie-9")}(jQuery);
|
includes/backend.php
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class QLIGG_Backend
|
|
|
4 |
|
5 |
protected static $instance;
|
6 |
|
7 |
-
public static function instance()
|
|
|
8 |
if (!isset(self::$instance)) {
|
9 |
self::$instance = new self();
|
10 |
self::$instance->init();
|
@@ -13,30 +15,34 @@ class QLIGG_Backend {
|
|
13 |
return self::$instance;
|
14 |
}
|
15 |
|
16 |
-
function init()
|
|
|
17 |
add_action('admin_enqueue_scripts', array($this, 'add_js'));
|
18 |
add_action('admin_enqueue_scripts', array($this, 'dequeue_js'), 999);
|
19 |
|
20 |
-
//
|
21 |
add_filter('default_option_qligg', array($this, 'generate_db'));
|
22 |
add_filter('sanitize_option_qligg', 'wp_unslash');
|
23 |
}
|
24 |
|
25 |
-
function generate_db()
|
|
|
26 |
$db = new QLIGG_Model();
|
27 |
return $db->options();
|
28 |
}
|
29 |
|
30 |
-
function includes()
|
31 |
-
|
32 |
-
include_once
|
33 |
-
include_once
|
34 |
-
include_once
|
35 |
-
include_once
|
36 |
-
include_once
|
|
|
37 |
}
|
38 |
|
39 |
-
function dequeue_js()
|
|
|
40 |
// Fix Instagram Feed compatibility
|
41 |
if (isset($_GET['page']) && strpos($_GET['page'], QLIGG_DOMAIN) !== false) {
|
42 |
wp_deregister_script('sb_instagram_admin_js');
|
@@ -44,17 +50,24 @@ class QLIGG_Backend {
|
|
44 |
}
|
45 |
}
|
46 |
|
47 |
-
function add_js()
|
|
|
48 |
wp_register_script('jquery-serializejson', plugins_url('/assets/backend/jquery-serializejson/jquery-serializejson' . QLIGG::is_min() . '.js', QLIGG_PLUGIN_FILE), array('jquery'), QLIGG_PLUGIN_VERSION, true);
|
49 |
wp_register_script('wp-color-picker-alpha', plugins_url('/assets/backend/rgba/wp-color-picker-alpha.min.js', QLIGG_PLUGIN_FILE), array('jquery', 'wp-color-picker'), QLIGG_PLUGIN_VERSION, true);
|
50 |
wp_register_style('qligg-admin', plugins_url('/assets/backend/css/qligg-admin' . QLIGG::is_min() . '.css', QLIGG_PLUGIN_FILE), array('wp-color-picker', 'media-views'), QLIGG_PLUGIN_VERSION, 'all');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
if (isset($_GET['page']) && strpos($_GET['page'], QLIGG_PREFIX) !== false) {
|
53 |
wp_enqueue_style('qligg-admin');
|
54 |
}
|
55 |
}
|
56 |
-
|
57 |
}
|
58 |
|
59 |
QLIGG_Backend::instance();
|
60 |
-
|
1 |
<?php
|
2 |
|
3 |
+
class QLIGG_Backend
|
4 |
+
{
|
5 |
|
6 |
protected static $instance;
|
7 |
|
8 |
+
public static function instance()
|
9 |
+
{
|
10 |
if (!isset(self::$instance)) {
|
11 |
self::$instance = new self();
|
12 |
self::$instance->init();
|
15 |
return self::$instance;
|
16 |
}
|
17 |
|
18 |
+
function init()
|
19 |
+
{
|
20 |
add_action('admin_enqueue_scripts', array($this, 'add_js'));
|
21 |
add_action('admin_enqueue_scripts', array($this, 'dequeue_js'), 999);
|
22 |
|
23 |
+
//delete generate_db
|
24 |
add_filter('default_option_qligg', array($this, 'generate_db'));
|
25 |
add_filter('sanitize_option_qligg', 'wp_unslash');
|
26 |
}
|
27 |
|
28 |
+
function generate_db()
|
29 |
+
{
|
30 |
$db = new QLIGG_Model();
|
31 |
return $db->options();
|
32 |
}
|
33 |
|
34 |
+
function includes()
|
35 |
+
{
|
36 |
+
include_once(QLIGG_PLUGIN_DIR . 'includes/controllers/WelcomeController.php');
|
37 |
+
include_once(QLIGG_PLUGIN_DIR . 'includes/controllers/AccountController.php');
|
38 |
+
include_once(QLIGG_PLUGIN_DIR . 'includes/controllers/FeedController.php');
|
39 |
+
include_once(QLIGG_PLUGIN_DIR . 'includes/controllers/SettingController.php');
|
40 |
+
include_once(QLIGG_PLUGIN_DIR . 'includes/controllers/PremiumController.php');
|
41 |
+
include_once(QLIGG_PLUGIN_DIR . 'includes/controllers/SuggestionsController.php');
|
42 |
}
|
43 |
|
44 |
+
function dequeue_js()
|
45 |
+
{
|
46 |
// Fix Instagram Feed compatibility
|
47 |
if (isset($_GET['page']) && strpos($_GET['page'], QLIGG_DOMAIN) !== false) {
|
48 |
wp_deregister_script('sb_instagram_admin_js');
|
50 |
}
|
51 |
}
|
52 |
|
53 |
+
function add_js()
|
54 |
+
{
|
55 |
wp_register_script('jquery-serializejson', plugins_url('/assets/backend/jquery-serializejson/jquery-serializejson' . QLIGG::is_min() . '.js', QLIGG_PLUGIN_FILE), array('jquery'), QLIGG_PLUGIN_VERSION, true);
|
56 |
wp_register_script('wp-color-picker-alpha', plugins_url('/assets/backend/rgba/wp-color-picker-alpha.min.js', QLIGG_PLUGIN_FILE), array('jquery', 'wp-color-picker'), QLIGG_PLUGIN_VERSION, true);
|
57 |
wp_register_style('qligg-admin', plugins_url('/assets/backend/css/qligg-admin' . QLIGG::is_min() . '.css', QLIGG_PLUGIN_FILE), array('wp-color-picker', 'media-views'), QLIGG_PLUGIN_VERSION, 'all');
|
58 |
+
wp_localize_script('wp-color-picker-alpha', 'wpColorPickerL10n', array(
|
59 |
+
'clear' => __('Clear', 'insta-gallery'),
|
60 |
+
'clearAriaLabel' => __('Clear color', 'insta-gallery'),
|
61 |
+
'defaultString' => __('Default', 'insta-gallery'),
|
62 |
+
'defaultAriaLabel' => __('Select default color', 'insta-gallery'),
|
63 |
+
'pick' => __('Select Color', 'insta-gallery'),
|
64 |
+
'defaultLabel' => __('Color value', 'insta-gallery'),
|
65 |
+
));
|
66 |
|
67 |
if (isset($_GET['page']) && strpos($_GET['page'], QLIGG_PREFIX) !== false) {
|
68 |
wp_enqueue_style('qligg-admin');
|
69 |
}
|
70 |
}
|
|
|
71 |
}
|
72 |
|
73 |
QLIGG_Backend::instance();
|
|
includes/controllers/AccountController.php
CHANGED
@@ -155,7 +155,7 @@ class QLIGG_Account_Controller extends QLIGG_Controller
|
|
155 |
'qligg_delete_account' => wp_create_nonce('qligg_delete_account'),
|
156 |
),
|
157 |
'message' => array(
|
158 |
-
'confirm_delete' =>
|
159 |
)
|
160 |
));
|
161 |
|
155 |
'qligg_delete_account' => wp_create_nonce('qligg_delete_account'),
|
156 |
),
|
157 |
'message' => array(
|
158 |
+
'confirm_delete' => esc_html__('Do you want to delete the account?', 'insta-gallery')
|
159 |
)
|
160 |
));
|
161 |
|
includes/frontend.php
CHANGED
@@ -24,7 +24,7 @@ if (!class_exists('QLIGG_Frontend')) {
|
|
24 |
|
25 |
// Masonry
|
26 |
// -----------------------------------------------------------------------
|
27 |
-
wp_register_script('
|
28 |
|
29 |
// Swiper
|
30 |
// -----------------------------------------------------------------------
|
@@ -191,7 +191,6 @@ if (!class_exists('QLIGG_Frontend')) {
|
|
191 |
|
192 |
$options = $instagram_feed = $feed;
|
193 |
|
194 |
-
|
195 |
wp_enqueue_style('insta-gallery');
|
196 |
wp_enqueue_script('insta-gallery');
|
197 |
|
@@ -206,7 +205,7 @@ if (!class_exists('QLIGG_Frontend')) {
|
|
206 |
}
|
207 |
|
208 |
if (in_array($feed['layout'], array('masonry', 'highlight'))) {
|
209 |
-
wp_enqueue_script('
|
210 |
}
|
211 |
|
212 |
$item_selector = "insta-gallery-feed-{$id}";
|
@@ -276,9 +275,7 @@ if (!class_exists('QLIGG_Frontend')) {
|
|
276 |
add_action('wp_ajax_nopriv_qligg_load_item_images', array($this, 'ajax_load_item_images'));
|
277 |
add_action('wp_ajax_qligg_load_item_images', array($this, 'ajax_load_item_images'));
|
278 |
add_action('wp_enqueue_scripts', array($this, 'add_js'));
|
279 |
-
//1326
|
280 |
add_action('admin_enqueue_scripts', array($this, 'add_js'));
|
281 |
-
|
282 |
add_shortcode('insta-gallery', array($this, 'do_shortcode'));
|
283 |
}
|
284 |
|
24 |
|
25 |
// Masonry
|
26 |
// -----------------------------------------------------------------------
|
27 |
+
wp_register_script('masonry', plugins_url('/assets/frontend/masonry/masonry.pkgd.min.js', QLIGG_PLUGIN_FILE), null, QLIGG_PLUGIN_VERSION, true);
|
28 |
|
29 |
// Swiper
|
30 |
// -----------------------------------------------------------------------
|
191 |
|
192 |
$options = $instagram_feed = $feed;
|
193 |
|
|
|
194 |
wp_enqueue_style('insta-gallery');
|
195 |
wp_enqueue_script('insta-gallery');
|
196 |
|
205 |
}
|
206 |
|
207 |
if (in_array($feed['layout'], array('masonry', 'highlight'))) {
|
208 |
+
wp_enqueue_script('masonry');
|
209 |
}
|
210 |
|
211 |
$item_selector = "insta-gallery-feed-{$id}";
|
275 |
add_action('wp_ajax_nopriv_qligg_load_item_images', array($this, 'ajax_load_item_images'));
|
276 |
add_action('wp_ajax_qligg_load_item_images', array($this, 'ajax_load_item_images'));
|
277 |
add_action('wp_enqueue_scripts', array($this, 'add_js'));
|
|
|
278 |
add_action('admin_enqueue_scripts', array($this, 'add_js'));
|
|
|
279 |
add_shortcode('insta-gallery', array($this, 'do_shortcode'));
|
280 |
}
|
281 |
|
includes/helpers.php
CHANGED
@@ -61,13 +61,13 @@ function qligg_get_user_profile($account_id = null)
|
|
61 |
if (!$account['access_token']) {
|
62 |
return $defaults;
|
63 |
}
|
64 |
-
|
65 |
//detect token type old || new
|
66 |
//validate token based on type
|
67 |
|
68 |
if ($account['token_type'] === 'BASIC') {
|
69 |
$_profile_info = $qliggAPI->BASIC->get_user_profile($account['access_token']);
|
70 |
-
$_profile_info['name'] =
|
71 |
}
|
72 |
|
73 |
if ($account['token_type'] === 'PERSONAL') {
|
@@ -114,14 +114,8 @@ function qligg_get_tag_profile($hashtag = null)
|
|
114 |
return wp_parse_args($profile_info, $defaults);
|
115 |
}
|
116 |
|
117 |
-
// if (!$hashtag_id = $qliggAPI->BUSINESS->getTagId($hashtag)) {
|
118 |
-
// return $defaults;
|
119 |
-
// }
|
120 |
-
|
121 |
$_profile_info = array();
|
122 |
|
123 |
-
//$_profile_info['id'] = $hashtag_id;
|
124 |
-
|
125 |
// business token to get profile pic
|
126 |
|
127 |
$profile_info = wp_parse_args($_profile_info, $defaults);
|
61 |
if (!$account['access_token']) {
|
62 |
return $defaults;
|
63 |
}
|
64 |
+
|
65 |
//detect token type old || new
|
66 |
//validate token based on type
|
67 |
|
68 |
if ($account['token_type'] === 'BASIC') {
|
69 |
$_profile_info = $qliggAPI->BASIC->get_user_profile($account['access_token']);
|
70 |
+
$_profile_info['name'] = esc_html__('This token expires soon!');
|
71 |
}
|
72 |
|
73 |
if ($account['token_type'] === 'PERSONAL') {
|
114 |
return wp_parse_args($profile_info, $defaults);
|
115 |
}
|
116 |
|
|
|
|
|
|
|
|
|
117 |
$_profile_info = array();
|
118 |
|
|
|
|
|
119 |
// business token to get profile pic
|
120 |
|
121 |
$profile_info = wp_parse_args($_profile_info, $defaults);
|
includes/models/Suggestions.php
CHANGED
@@ -107,7 +107,7 @@ class QLIGG_Suggestions_List_Table extends WP_Plugin_Install_List_Table {
|
|
107 |
$tabs = array();
|
108 |
|
109 |
if ('search' === $tab) {
|
110 |
-
$tabs['search'] =
|
111 |
}
|
112 |
if ($tab === 'beta' || false !== strpos(get_bloginfo('version'), '-')) {
|
113 |
$tabs['beta'] = _x('Beta Testing', 'Plugin Installer');
|
107 |
$tabs = array();
|
108 |
|
109 |
if ('search' === $tab) {
|
110 |
+
$tabs['search'] = esc_html__('Search Results');
|
111 |
}
|
112 |
if ($tab === 'beta' || false !== strpos(get_bloginfo('version'), '-')) {
|
113 |
$tabs['beta'] = _x('Beta Testing', 'Plugin Installer');
|
includes/view/backend/pages/feeds.php
CHANGED
@@ -74,15 +74,4 @@
|
|
74 |
</form>
|
75 |
</div>
|
76 |
|
77 |
-
<!-- <div class="wrap about-wrap full-width-layout">
|
78 |
-
<?php
|
79 |
-
// if (count($feeds)) {
|
80 |
-
|
81 |
-
// $last = end($feeds);
|
82 |
-
|
83 |
-
// echo do_shortcode('[insta-gallery id="' . $last['id'] . '"]');
|
84 |
-
// }
|
85 |
-
?>
|
86 |
-
</div> -->
|
87 |
-
|
88 |
<?php include_once('modals/template-scripts-feed.php'); ?>
|
74 |
</form>
|
75 |
</div>
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
<?php include_once('modals/template-scripts-feed.php'); ?>
|
includes/view/backend/pages/modals/feed/panel-feed.php
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<p class="form-field">
|
24 |
<span class="notice error" style="margin-left:0; margin-right:0; padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
25 |
<strong>
|
26 |
-
<?php printf(
|
27 |
</strong>
|
28 |
</span>
|
29 |
</p>
|
@@ -77,7 +77,7 @@
|
|
77 |
<p class="form-field">
|
78 |
<span class="notice error" style="margin-left:0; margin-right:0; padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
79 |
<strong>
|
80 |
-
<?php printf(
|
81 |
</strong>
|
82 |
</span>
|
83 |
</p>
|
23 |
<p class="form-field">
|
24 |
<span class="notice error" style="margin-left:0; margin-right:0; padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
25 |
<strong>
|
26 |
+
<?php printf(esc_html__('No Instagram account connected. Please connect your account <a href="%s">here</a>.', 'insta-gallery'), admin_url('admin.php?page=qligg_account')); ?>
|
27 |
</strong>
|
28 |
</span>
|
29 |
</p>
|
77 |
<p class="form-field">
|
78 |
<span class="notice error" style="margin-left:0; margin-right:0; padding-top: 10px; padding-bottom: 10px; display: flex; justify-content: left; align-items: center;">
|
79 |
<strong>
|
80 |
+
<?php printf(esc_html__('Due to the restrictions of the new Instagram <a target="_blank" href="%s">API</a> it is necessary to connect a business account <a href="%s">here</a>.', 'insta-gallery'), 'https://quadlayers.com/documentation/instagram-feed-gallery/api/business/?utm_source=qligg_admin', admin_url('admin.php?page=qligg_account')); ?>
|
81 |
</strong>
|
82 |
</span>
|
83 |
</p>
|
insta-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Social Feed Gallery
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/instagram-feed-gallery/
|
6 |
* Description: Display beautiful and responsive galleries on your website from your Instagram feed account.
|
7 |
-
* Version:
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPLv3
|
@@ -19,7 +19,7 @@ if (!defined('QLIGG_PLUGIN_NAME')) {
|
|
19 |
define('QLIGG_PLUGIN_NAME', 'Social Feed Gallery');
|
20 |
}
|
21 |
if (!defined('QLIGG_PLUGIN_VERSION')) {
|
22 |
-
define('QLIGG_PLUGIN_VERSION', '
|
23 |
}
|
24 |
if (!defined('QLIGG_PLUGIN_FILE')) {
|
25 |
define('QLIGG_PLUGIN_FILE', __FILE__);
|
4 |
* Plugin Name: Social Feed Gallery
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/instagram-feed-gallery/
|
6 |
* Description: Display beautiful and responsive galleries on your website from your Instagram feed account.
|
7 |
+
* Version: 3.0.0
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPLv3
|
19 |
define('QLIGG_PLUGIN_NAME', 'Social Feed Gallery');
|
20 |
}
|
21 |
if (!defined('QLIGG_PLUGIN_VERSION')) {
|
22 |
+
define('QLIGG_PLUGIN_VERSION', '3.0.0');
|
23 |
}
|
24 |
if (!defined('QLIGG_PLUGIN_FILE')) {
|
25 |
define('QLIGG_PLUGIN_FILE', __FILE__);
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: quadlayers
|
|
3 |
Donate link: https://quadlayers.com/portfolio/instagram-gallery/
|
4 |
Tags: Instagram, Instagram feed, Instagram gallery, Instagram photos, Instagram widget, Instagram pictures
|
5 |
Requires at least: 3.4
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag:
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -105,6 +105,9 @@ There may be some other plugins(like: fancybox, elementor) which also uses image
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
108 |
= 2.9.9 =
|
109 |
* Fix. instagram feed carousel
|
110 |
|
3 |
Donate link: https://quadlayers.com/portfolio/instagram-gallery/
|
4 |
Tags: Instagram, Instagram feed, Instagram gallery, Instagram photos, Instagram widget, Instagram pictures
|
5 |
Requires at least: 3.4
|
6 |
+
Tested up to: 5.5.0
|
7 |
+
Stable tag: 3.0.0
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 3.0.0 =
|
109 |
+
* Fix. WordPress 5.5 compatibility
|
110 |
+
|
111 |
= 2.9.9 =
|
112 |
* Fix. instagram feed carousel
|
113 |
|