Version Description
- Fix JetPack lazy load
Download this release
Release Info
Developer | techlabpro1 |
Plugin | The Post Grid |
Version | 2.2.70 |
Comparing to | |
See all releases |
Code changes from version 2.2.63 to 2.2.70
- README.txt +4 -1
- assets/js/post-grid-blocks.js +1 -1
- assets/js/rttpg.js +21 -10
- the-post-grid.php +1 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: post grid, content grid, post display, post format, post view, blog display, news display, post
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -138,6 +138,9 @@ For any bug or suggestion please mail support@radiustheme.com
|
|
138 |
|
139 |
== Changelog ==
|
140 |
|
|
|
|
|
|
|
141 |
= 2.2.63 =
|
142 |
* Update navigation button issue
|
143 |
|
4 |
Tags: post grid, content grid, post display, post format, post view, blog display, news display, post
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 2.2.70
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
138 |
|
139 |
== Changelog ==
|
140 |
|
141 |
+
= 2.2.70 =
|
142 |
+
* Fix JetPack lazy load
|
143 |
+
|
144 |
= 2.2.63 =
|
145 |
* Update navigation button issue
|
146 |
|
assets/js/post-grid-blocks.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=(r.n(n),r(2)),l=(r.n(o),function(){function e(e,t){var r=[],n=!0,o=!1,l=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,l=e}finally{try{!n&&a.return&&a.return()}finally{if(o)throw l}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),i=wp.i18n.__,a=wp.blocks.registerBlockType,u=wp.components,
|
1 |
+
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=(r.n(n),r(2)),l=(r.n(o),function(){function e(e,t){var r=[],n=!0,o=!1,l=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,l=e}finally{try{!n&&a.return&&a.return()}finally{if(o)throw l}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),i=wp.i18n.__,a=wp.blocks.registerBlockType,u=wp.components,s=u.SelectControl,c=u.PanelRow,p=wp.editor.InspectorControls;a("rttpg/post-grid",{title:i("The Post Grid","the-post-grid"),icon:"grid-view",category:"common",keywords:[i("Post Grid","the-post-grid"),i("The Post Grid","the-post-grid"),i("the-post-grid","the-post-grid")],attributes:{gridId:{type:"number",default:0}},edit:function(e){var t=e.attributes.gridId,r=e.setAttributes,n="",o=[{value:0,label:i("Select one","the-post-grid")}];if(rttpgGB.short_codes){var a=!0,u=!1,d=void 0;try{for(var f,m=Object.entries(rttpgGB.short_codes)[Symbol.iterator]();!(a=(f=m.next()).done);a=!0){var h=f.value,g=l(h,2),b=g[0],w=g[1];o.push({value:b,label:w}),t&&Number(b)===t&&(n=w)}}catch(e){u=!0,d=e}finally{try{!a&&m.return&&m.return()}finally{if(u)throw d}}}return[wp.element.createElement(p,null,"This text will show when the box is selected",wp.element.createElement(c,null,wp.element.createElement(s,{label:i("Select a grid:"),options:o,value:t,onChange:function(e){return r({gridId:Number(e)})}}))),wp.element.createElement("div",{className:e.className},t?wp.element.createElement("div",null,wp.element.createElement("span",null,wp.element.createElement("img",{src:rttpgGB.icon}))," ",wp.element.createElement("span",null,i("The Post Grid","the-post-grid")," ( ",n," )")):wp.element.createElement("p",null,"Please select a shortcode from block settings"))]},save:function(e){e.attributes.gridId;return null}})},function(e,t){},function(e,t){}]);
|
assets/js/rttpg.js
CHANGED
@@ -1,10 +1,22 @@
|
|
1 |
(function ($) {
|
2 |
'use strict';
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
$(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
var isotope = $isotope.imagesLoaded(function () {
|
9 |
$.when(tgpHeightResize()).done(function () {
|
10 |
isotope.isotope({
|
@@ -23,11 +35,10 @@
|
|
23 |
$(this).parent().find('.selected').removeClass('selected');
|
24 |
$(this).addClass('selected');
|
25 |
});
|
26 |
-
}
|
27 |
-
}
|
28 |
-
}
|
29 |
-
|
30 |
-
|
31 |
$(window).on('load resize', function () {
|
32 |
tgpHeightResize();
|
33 |
overlayIconResizeTpg();
|
1 |
(function ($) {
|
2 |
'use strict';
|
3 |
+
|
4 |
+
window.tpgFixLazyLoad = function () {
|
5 |
+
$('.rt-tpg-container').each(function () {
|
6 |
+
// jetpack Lazy load
|
7 |
+
$(this).find('img.jetpack-lazy-image:not(.jetpack-lazy-image--handled)').each(function () {
|
8 |
+
console.log('trigger');
|
9 |
+
$(this).addClass('jetpack-lazy-image--handled').removeAttr('srcset').removeAttr('data-lazy-src').attr('data-lazy-loaded', 1);
|
10 |
+
});
|
11 |
+
});
|
12 |
+
};
|
13 |
+
|
14 |
+
window.initTpg = function () {
|
15 |
+
$(".rt-tpg-container").each(function () {
|
16 |
+
var $isotopeHolder = $(this).find('.tpg-isotope');
|
17 |
+
var $isotope = $isotopeHolder.find('.rt-tpg-isotope');
|
18 |
+
if ($isotope.length) {
|
19 |
+
tpgFixLazyLoad();
|
20 |
var isotope = $isotope.imagesLoaded(function () {
|
21 |
$.when(tgpHeightResize()).done(function () {
|
22 |
isotope.isotope({
|
35 |
$(this).parent().find('.selected').removeClass('selected');
|
36 |
$(this).addClass('selected');
|
37 |
});
|
38 |
+
}
|
39 |
+
});
|
40 |
+
};
|
41 |
+
initTpg();
|
|
|
42 |
$(window).on('load resize', function () {
|
43 |
tgpHeightResize();
|
44 |
overlayIconResizeTpg();
|
the-post-grid.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://demo.radiustheme.com/wordpress/plugins/the-post-grid/
|
5 |
* Description: Fast & Easy way to display WordPress post in Grid, List & Isotope view ( filter by category, tag, author..) without a single line of coding.
|
6 |
* Author: RadiusTheme
|
7 |
-
* Version: 2.2.
|
8 |
* Text Domain: the-post-grid
|
9 |
* Domain Path: /languages
|
10 |
* Author URI: https://radiustheme.com/
|
4 |
* Plugin URI: http://demo.radiustheme.com/wordpress/plugins/the-post-grid/
|
5 |
* Description: Fast & Easy way to display WordPress post in Grid, List & Isotope view ( filter by category, tag, author..) without a single line of coding.
|
6 |
* Author: RadiusTheme
|
7 |
+
* Version: 2.2.70
|
8 |
* Text Domain: the-post-grid
|
9 |
* Domain Path: /languages
|
10 |
* Author URI: https://radiustheme.com/
|