Version Description
- 2020-08-17 fix - post grid elements action hook order issue fixed.
Download this release
Release Info
Developer | pickplugins |
Plugin | Post Grid |
Version | 2.0.71 |
Comparing to | |
See all releases |
Code changes from version 2.0.70 to 2.0.71
- includes/classes/class-post-grid-support.php +3 -3
- includes/functions.php +8 -1
- includes/menu/layout-editor.php +1 -1
- includes/settings-hook.php +1 -1
- post-grid.php +2 -2
- readme.txt +6 -3
- templates/post-grid-hook.php +10 -10
includes/classes/class-post-grid-support.php
CHANGED
@@ -12,19 +12,19 @@ class class_post_grid_support{
|
|
12 |
$our_plugins = array(
|
13 |
array(
|
14 |
'title'=>'Post Grid',
|
15 |
-
'link'=>'
|
16 |
'thumb'=>'https://www.pickplugins.com/wp-content/uploads/2015/12/3814-post-grid-thumb-500x262.jpg',
|
17 |
),
|
18 |
|
19 |
array(
|
20 |
'title'=>'Woocommerce Products Slider',
|
21 |
-
'link'=>'
|
22 |
'thumb'=>'https://www.pickplugins.com/wp-content/uploads/2016/03/4357-woocommerce-products-slider-thumb-500x250.jpg',
|
23 |
),
|
24 |
|
25 |
array(
|
26 |
'title'=>'Team Showcase',
|
27 |
-
'link'=>'
|
28 |
'thumb'=>'https://www.pickplugins.com/wp-content/uploads/2016/06/5145-team-thumb-500x250.jpg',
|
29 |
),
|
30 |
|
12 |
$our_plugins = array(
|
13 |
array(
|
14 |
'title'=>'Post Grid',
|
15 |
+
'link'=>'https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/',
|
16 |
'thumb'=>'https://www.pickplugins.com/wp-content/uploads/2015/12/3814-post-grid-thumb-500x262.jpg',
|
17 |
),
|
18 |
|
19 |
array(
|
20 |
'title'=>'Woocommerce Products Slider',
|
21 |
+
'link'=>'https://www.pickplugins.com/item/woocommerce-products-slider-for-wordpress/',
|
22 |
'thumb'=>'https://www.pickplugins.com/wp-content/uploads/2016/03/4357-woocommerce-products-slider-thumb-500x250.jpg',
|
23 |
),
|
24 |
|
25 |
array(
|
26 |
'title'=>'Team Showcase',
|
27 |
+
'link'=>'https://www.pickplugins.com/item/team-responsive-meet-the-team-grid-for-wordpress/',
|
28 |
'thumb'=>'https://www.pickplugins.com/wp-content/uploads/2016/06/5145-team-thumb-500x250.jpg',
|
29 |
),
|
30 |
|
includes/functions.php
CHANGED
@@ -2,6 +2,13 @@
|
|
2 |
if ( ! defined('ABSPATH')) exit; // if direct access
|
3 |
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
|
7 |
|
@@ -1022,7 +1029,7 @@ function post_grid_layout_add_elements(){
|
|
1022 |
<input type="hidden" value="'.$item_key.'" name="post_grid_layout_content['.$layout.']['.$unique_id.'][key]" />
|
1023 |
<input type="hidden" value="'.$item_name.'" name="post_grid_layout_content['.$layout.']['.$unique_id.'][name]" />
|
1024 |
CSS: <br />
|
1025 |
-
<a target="_blank" href="
|
1026 |
<textarea class="custom_css" item_id="'.$unique_id.'" name="post_grid_layout_content['.$layout.']['.$unique_id.'][css]" style="width:100%" spellcheck="false" autocapitalize="off" autocorrect="off">'.$item_css.'</textarea><br /><br />
|
1027 |
|
1028 |
CSS Hover: <br />
|
2 |
if ( ! defined('ABSPATH')) exit; // if direct access
|
3 |
|
4 |
|
5 |
+
//add_image_size( 'custom-size', 435, 435, true );
|
6 |
+
//add_image_size( 'center-435', 220, 220, array( 'center', 'center' ) );
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
|
13 |
|
14 |
|
1029 |
<input type="hidden" value="'.$item_key.'" name="post_grid_layout_content['.$layout.']['.$unique_id.'][key]" />
|
1030 |
<input type="hidden" value="'.$item_name.'" name="post_grid_layout_content['.$layout.']['.$unique_id.'][name]" />
|
1031 |
CSS: <br />
|
1032 |
+
<a target="_blank" href="https://www.pickplugins.com/demo/post-grid/sample-css-for-layout-editor/">Sample css</a><br />
|
1033 |
<textarea class="custom_css" item_id="'.$unique_id.'" name="post_grid_layout_content['.$layout.']['.$unique_id.'][css]" style="width:100%" spellcheck="false" autocapitalize="off" autocorrect="off">'.$item_css.'</textarea><br /><br />
|
1034 |
|
1035 |
CSS Hover: <br />
|
includes/menu/layout-editor.php
CHANGED
@@ -370,7 +370,7 @@ else
|
|
370 |
?>
|
371 |
<br />
|
372 |
<?php _e('CSS:', 'post-grid' ); ?> <br />
|
373 |
-
<a target="_blank" href="
|
374 |
<textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="width:100%" class="custom_css" item_id="<?php echo $key; ?>" name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]"><?php echo str_replace(array("\n", "\r"), '', $item_info); ?></textarea><br />
|
375 |
|
376 |
|
370 |
?>
|
371 |
<br />
|
372 |
<?php _e('CSS:', 'post-grid' ); ?> <br />
|
373 |
+
<a target="_blank" href="https://www.pickplugins.com/demo/post-grid/sample-css-for-layout-editor/"><?php _e('Sample css', 'post-grid' ); ?></a><br />
|
374 |
<textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="width:100%" class="custom_css" item_id="<?php echo $key; ?>" name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]"><?php echo str_replace(array("\n", "\r"), '', $item_info); ?></textarea><br />
|
375 |
|
376 |
|
includes/settings-hook.php
CHANGED
@@ -262,7 +262,7 @@ if(!function_exists('post_grid_settings_content_buy_pro')) {
|
|
262 |
|
263 |
<p><?php echo __('If you love our plugin and want more feature please consider to buy pro version.', 'post-grid'); ?></p>
|
264 |
<a class="button" href="https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=dashobard"><?php echo __('Buy premium', 'post-grid'); ?></a>
|
265 |
-
<a class="button" href="
|
266 |
|
267 |
<h2><?php echo __('See the differences','post-grid'); ?></h2>
|
268 |
|
262 |
|
263 |
<p><?php echo __('If you love our plugin and want more feature please consider to buy pro version.', 'post-grid'); ?></p>
|
264 |
<a class="button" href="https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=dashobard"><?php echo __('Buy premium', 'post-grid'); ?></a>
|
265 |
+
<a class="button" href="https://www.pickplugins.com/demo/post-grid/?ref=dashobard"><?php echo __('See all demo', 'post-grid'); ?></a>
|
266 |
|
267 |
<h2><?php echo __('See the differences','post-grid'); ?></h2>
|
268 |
|
post-grid.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Post Grid by PickPlugins
|
4 |
Plugin URI: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/
|
5 |
Description: Awesome post grid for query post from any post type and display on grid.
|
6 |
-
Version: 2.0.
|
7 |
Author: PickPlugins
|
8 |
Author URI: https://www.pickplugins.com/
|
9 |
License: GPLv2 or later
|
@@ -21,7 +21,7 @@ if( !class_exists( 'PostGrid' )){
|
|
21 |
define('post_grid_plugin_dir', plugin_dir_path(__FILE__));
|
22 |
define('post_grid_plugin_basename', plugin_basename(__FILE__));
|
23 |
define('post_grid_plugin_name', 'Post Grid');
|
24 |
-
define('post_grid_version', '2.0.
|
25 |
//define('post_grid_server_url', 'http://localhost/wp/');
|
26 |
define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
|
27 |
|
3 |
Plugin Name: Post Grid by PickPlugins
|
4 |
Plugin URI: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/
|
5 |
Description: Awesome post grid for query post from any post type and display on grid.
|
6 |
+
Version: 2.0.71
|
7 |
Author: PickPlugins
|
8 |
Author URI: https://www.pickplugins.com/
|
9 |
License: GPLv2 or later
|
21 |
define('post_grid_plugin_dir', plugin_dir_path(__FILE__));
|
22 |
define('post_grid_plugin_basename', plugin_basename(__FILE__));
|
23 |
define('post_grid_plugin_name', 'Post Grid');
|
24 |
+
define('post_grid_version', '2.0.71');
|
25 |
//define('post_grid_server_url', 'http://localhost/wp/');
|
26 |
define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
|
27 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
Donate link: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org
|
4 |
Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -18,7 +18,7 @@ Almost everything is ready to create post grid from any post types, with few cli
|
|
18 |
|
19 |
### Post Grid by [http://pickplugins.com](http://pickplugins.com)
|
20 |
|
21 |
-
* [See the Live demo](
|
22 |
* [Buy Premium](https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org)
|
23 |
* [Documentation](http://pickplugins.com/documentation/post-grid/?ref=wordpress.org)
|
24 |
* [Support](https://www.pickplugins.com/support/?ref=wordpress.org)
|
@@ -222,6 +222,9 @@ then paste this shortcode anywhere in your page to display grid<br />
|
|
222 |
|
223 |
== Changelog ==
|
224 |
|
|
|
|
|
|
|
225 |
= 2.0.70 =
|
226 |
* 2020-08-08 fix - layout editor lazy load issue fixed.
|
227 |
|
3 |
Donate link: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org
|
4 |
Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 5.5
|
7 |
+
Stable tag: 2.0.71
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
18 |
|
19 |
### Post Grid by [http://pickplugins.com](http://pickplugins.com)
|
20 |
|
21 |
+
* [See the Live demo](https://www.pickplugins.com/demo/post-grid/?ref=wordpress.org)
|
22 |
* [Buy Premium](https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org)
|
23 |
* [Documentation](http://pickplugins.com/documentation/post-grid/?ref=wordpress.org)
|
24 |
* [Support](https://www.pickplugins.com/support/?ref=wordpress.org)
|
222 |
|
223 |
== Changelog ==
|
224 |
|
225 |
+
= 2.0.71 =
|
226 |
+
* 2020-08-17 fix - post grid elements action hook order issue fixed.
|
227 |
+
|
228 |
= 2.0.70 =
|
229 |
* 2020-08-08 fix - layout editor lazy load issue fixed.
|
230 |
|
templates/post-grid-hook.php
CHANGED
@@ -4,7 +4,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
4 |
|
5 |
|
6 |
|
7 |
-
add_action('post_grid_main', 'post_grid_main_lazy',
|
8 |
|
9 |
function post_grid_main_lazy($atts){
|
10 |
|
@@ -39,7 +39,7 @@ function post_grid_main_lazy($atts){
|
|
39 |
|
40 |
|
41 |
|
42 |
-
add_action('post_grid_main', 'post_grid_main_container',
|
43 |
|
44 |
function post_grid_main_container($atts){
|
45 |
|
@@ -134,7 +134,7 @@ function post_grid_container_search($args){
|
|
134 |
|
135 |
|
136 |
|
137 |
-
add_action('post_grid_container', 'post_grid_posts_loop');
|
138 |
|
139 |
function post_grid_posts_loop($args){
|
140 |
|
@@ -323,7 +323,7 @@ function post_grid_posts_loop($args){
|
|
323 |
|
324 |
}
|
325 |
|
326 |
-
add_action('post_grid_loop_no_post', 'post_grid_loop_no_post');
|
327 |
|
328 |
function post_grid_loop_no_post($args){
|
329 |
|
@@ -341,7 +341,7 @@ function post_grid_loop_no_post($args){
|
|
341 |
|
342 |
|
343 |
|
344 |
-
add_action('post_grid_loop', 'post_grid_loop');
|
345 |
|
346 |
function post_grid_loop($args){
|
347 |
|
@@ -412,7 +412,7 @@ function post_grid_loop($args){
|
|
412 |
|
413 |
|
414 |
|
415 |
-
add_action('post_grid_item_layout', 'post_grid_item_layout_media');
|
416 |
|
417 |
function post_grid_item_layout_media($args){
|
418 |
|
@@ -466,7 +466,7 @@ function post_grid_item_layout_media($args){
|
|
466 |
|
467 |
|
468 |
|
469 |
-
add_action('post_grid_item_layout', 'post_grid_item_layout_content');
|
470 |
|
471 |
function post_grid_item_layout_content($args){
|
472 |
|
@@ -527,7 +527,7 @@ function post_grid_item_layout_content($args){
|
|
527 |
|
528 |
}
|
529 |
|
530 |
-
add_action('post_grid_container', 'post_grid_container_old_layout_css');
|
531 |
|
532 |
function post_grid_container_old_layout_css($args){
|
533 |
|
@@ -613,7 +613,7 @@ function post_grid_container_old_layout_css($args){
|
|
613 |
|
614 |
}
|
615 |
|
616 |
-
add_action('post_grid_item_layout', 'post_grid_item_layout_new');
|
617 |
|
618 |
function post_grid_item_layout_new($args){
|
619 |
|
@@ -997,7 +997,7 @@ function post_grid_view_type_css_grid($args){
|
|
997 |
|
998 |
|
999 |
|
1000 |
-
add_action('post_grid_container', 'post_grid_main_scripts',
|
1001 |
|
1002 |
function post_grid_main_scripts($args){
|
1003 |
$post_grid_options = $args['options'];
|
4 |
|
5 |
|
6 |
|
7 |
+
add_action('post_grid_main', 'post_grid_main_lazy', 5);
|
8 |
|
9 |
function post_grid_main_lazy($atts){
|
10 |
|
39 |
|
40 |
|
41 |
|
42 |
+
add_action('post_grid_main', 'post_grid_main_container', 10);
|
43 |
|
44 |
function post_grid_main_container($atts){
|
45 |
|
134 |
|
135 |
|
136 |
|
137 |
+
add_action('post_grid_container', 'post_grid_posts_loop', 10);
|
138 |
|
139 |
function post_grid_posts_loop($args){
|
140 |
|
323 |
|
324 |
}
|
325 |
|
326 |
+
add_action('post_grid_loop_no_post', 'post_grid_loop_no_post', 10);
|
327 |
|
328 |
function post_grid_loop_no_post($args){
|
329 |
|
341 |
|
342 |
|
343 |
|
344 |
+
add_action('post_grid_loop', 'post_grid_loop', 10);
|
345 |
|
346 |
function post_grid_loop($args){
|
347 |
|
412 |
|
413 |
|
414 |
|
415 |
+
add_action('post_grid_item_layout', 'post_grid_item_layout_media', 10);
|
416 |
|
417 |
function post_grid_item_layout_media($args){
|
418 |
|
466 |
|
467 |
|
468 |
|
469 |
+
add_action('post_grid_item_layout', 'post_grid_item_layout_content', 20);
|
470 |
|
471 |
function post_grid_item_layout_content($args){
|
472 |
|
527 |
|
528 |
}
|
529 |
|
530 |
+
add_action('post_grid_container', 'post_grid_container_old_layout_css', 20);
|
531 |
|
532 |
function post_grid_container_old_layout_css($args){
|
533 |
|
613 |
|
614 |
}
|
615 |
|
616 |
+
add_action('post_grid_item_layout', 'post_grid_item_layout_new', 30);
|
617 |
|
618 |
function post_grid_item_layout_new($args){
|
619 |
|
997 |
|
998 |
|
999 |
|
1000 |
+
add_action('post_grid_container', 'post_grid_main_scripts', 80);
|
1001 |
|
1002 |
function post_grid_main_scripts($args){
|
1003 |
$post_grid_options = $args['options'];
|