Post Grid - Version 2.1.14

Version Description

  • 2021-12-24 - add - Shortcdoe support for layout elements custom classes.
Download this release

Release Info

Developer pickplugins
Plugin Icon 128x128 Post Grid
Version 2.1.14
Comparing to
See all releases

Code changes from version 2.1.13 to 2.1.14

includes/post-grid-layout-elements.php CHANGED
@@ -479,6 +479,7 @@ function post_grid_layout_element_custom_text($args){
479
  $title = get_the_title($post_id);
480
 
481
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
482
  $text = isset($element['text']) ? $element['text'] : '';
483
 
484
  ?>
@@ -808,6 +809,7 @@ function post_grid_layout_element_title($args){
808
 
809
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
810
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
811
  $char_limit = isset($element['char_limit']) ? (int) $element['char_limit'] : 0;
812
  $char_end = isset($element['char_end']) ? $element['char_end'] : '...';
813
  $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
@@ -1169,6 +1171,7 @@ function post_grid_layout_element_title_link($args){
1169
  $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
1170
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
1171
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
1172
  $char_limit = isset($element['char_limit']) ? (int) $element['char_limit'] : 0;
1173
  $char_end = isset($element['char_end']) ? $element['char_end'] : '...';
1174
 
@@ -1432,6 +1435,7 @@ function post_grid_layout_element_content($args){
1432
 
1433
 
1434
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
1435
 
1436
  $post_content = wpautop($post_content);
1437
  $post_content = do_shortcode($post_content);
@@ -1752,6 +1756,7 @@ function post_grid_layout_element_excerpt($args){
1752
 
1753
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
1754
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
1755
  $char_limit = !empty($element['char_limit']) ? (int) $element['char_limit'] : 50;
1756
  $read_more_text = isset($element['read_more_text']) ? $element['read_more_text'] : '';
1757
 
@@ -2137,6 +2142,7 @@ function post_grid_layout_element_excerpt_read_more($args){
2137
  $excerpt_source = !empty($element['excerpt_source']) ? $element['excerpt_source'] : 'excerpt_content';
2138
 
2139
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
2140
  $char_limit = isset($element['char_limit']) ? (int) $element['char_limit'] : 0;
2141
  $read_more_text = isset($element['read_more_text']) ? $element['read_more_text'] : '';
2142
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
@@ -2492,6 +2498,7 @@ function post_grid_layout_element_read_more($args){
2492
 
2493
 
2494
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
2495
  $read_more_text = isset($element['read_more_text']) ? $element['read_more_text'] : '';
2496
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
2497
  $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
@@ -2895,6 +2902,7 @@ function post_grid_layout_element_media($args){
2895
  if(empty($post_id)) return;
2896
 
2897
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
2898
  $media_source = isset($element['media_source']) ? $element['media_source'] : '';
2899
 
2900
  $featured_img_size = !empty($element['featured_img_size']) ? $element['featured_img_size'] : 'full';
@@ -3309,6 +3317,7 @@ function post_grid_layout_element_thumb($args){
3309
  if(empty($post_id)) return;
3310
 
3311
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
3312
  $default_thumb_src = isset($element['default_thumb_src']) ? $element['default_thumb_src'] : '';
3313
  $thumb_size = isset($element['thumb_size']) ? $element['thumb_size'] : 'large';
3314
 
@@ -3676,6 +3685,7 @@ function post_grid_layout_element_thumb_link($args){
3676
  if(empty($post_id)) return;
3677
 
3678
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
3679
  $default_thumb_src = isset($element['default_thumb_src']) ? $element['default_thumb_src'] : '';
3680
  $thumb_size = isset($element['thumb_size']) ? $element['thumb_size'] : 'large';
3681
 
@@ -4028,6 +4038,7 @@ function post_grid_layout_element_post_date($args){
4028
  if(empty($post_id)) return;
4029
 
4030
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
4031
  $link_to = isset($element['link_to']) ? $element['link_to'] : '';
4032
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
4033
  $date_format = isset($element['date_format']) ? $element['date_format'] : 'd-m-Y';
@@ -4346,6 +4357,7 @@ function post_grid_layout_element_author($args){
4346
  if(empty($post_id)) return;
4347
 
4348
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
4349
  $link_to = isset($element['link_to']) ? $element['link_to'] : '';
4350
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
4351
  $wrapper_html = !empty($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
@@ -4672,6 +4684,7 @@ function post_grid_layout_element_author_link($args){
4672
  if(empty($post_id)) return;
4673
 
4674
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
4675
  $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
4676
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
4677
  $wrapper_html = !empty($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
@@ -5042,6 +5055,7 @@ function post_grid_layout_element_categories($args){
5042
  if(empty($post_id)) return;
5043
 
5044
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
5045
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
5046
  $max_count = isset($element['max_count']) ? (int) $element['max_count'] : 3;
5047
  $wrapper_html = !empty($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
@@ -5361,6 +5375,7 @@ function post_grid_layout_element_tags($args){
5361
  if(empty($post_id)) return;
5362
 
5363
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
5364
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
5365
  $max_count = isset($element['max_count']) ? (int) $element['max_count'] : 3;
5366
  $wrapper_html = !empty($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
@@ -5663,6 +5678,7 @@ function post_grid_layout_element_comments_count($args){
5663
  if(empty($post_id)) return;
5664
 
5665
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
5666
  $wrapper_html = isset($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
5667
 
5668
 
@@ -5905,6 +5921,7 @@ function post_grid_layout_element_share_button($args){
5905
  if(empty($post_id)) return;
5906
 
5907
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
5908
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
5909
  $wrapper_html = isset($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
5910
  $font_size = isset($element['font_size']) ? $element['font_size'] : '';
@@ -6147,6 +6164,7 @@ function post_grid_layout_element_hr($args){
6147
  if(empty($post_id)) return;
6148
 
6149
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
6150
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
6151
  $wrapper_html = isset($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
6152
  $height = isset($element['height']) ? $element['height'] : '';
@@ -6368,6 +6386,7 @@ function post_grid_layout_element_five_star($args){
6368
  if(empty($post_id)) return;
6369
 
6370
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
 
6371
  $star_count = isset($element['star_count']) ? $element['star_count'] : 5;
6372
  $wrapper_html = isset($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
6373
  $star_icon = isset($element['star_html']) ? $element['star_html'] : '';
479
  $title = get_the_title($post_id);
480
 
481
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
482
+ $custom_class = do_shortcode($custom_class);
483
  $text = isset($element['text']) ? $element['text'] : '';
484
 
485
  ?>
809
 
810
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
811
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
812
+ $custom_class = do_shortcode($custom_class);
813
  $char_limit = isset($element['char_limit']) ? (int) $element['char_limit'] : 0;
814
  $char_end = isset($element['char_end']) ? $element['char_end'] : '...';
815
  $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
1171
  $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
1172
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
1173
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
1174
+ $custom_class = do_shortcode($custom_class);
1175
  $char_limit = isset($element['char_limit']) ? (int) $element['char_limit'] : 0;
1176
  $char_end = isset($element['char_end']) ? $element['char_end'] : '...';
1177
 
1435
 
1436
 
1437
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
1438
+ $custom_class = do_shortcode($custom_class);
1439
 
1440
  $post_content = wpautop($post_content);
1441
  $post_content = do_shortcode($post_content);
1756
 
1757
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
1758
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
1759
+ $custom_class = do_shortcode($custom_class);
1760
  $char_limit = !empty($element['char_limit']) ? (int) $element['char_limit'] : 50;
1761
  $read_more_text = isset($element['read_more_text']) ? $element['read_more_text'] : '';
1762
 
2142
  $excerpt_source = !empty($element['excerpt_source']) ? $element['excerpt_source'] : 'excerpt_content';
2143
 
2144
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
2145
+ $custom_class = do_shortcode($custom_class);
2146
  $char_limit = isset($element['char_limit']) ? (int) $element['char_limit'] : 0;
2147
  $read_more_text = isset($element['read_more_text']) ? $element['read_more_text'] : '';
2148
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
2498
 
2499
 
2500
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
2501
+ $custom_class = do_shortcode($custom_class);
2502
  $read_more_text = isset($element['read_more_text']) ? $element['read_more_text'] : '';
2503
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
2504
  $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
2902
  if(empty($post_id)) return;
2903
 
2904
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
2905
+ $custom_class = do_shortcode($custom_class);
2906
  $media_source = isset($element['media_source']) ? $element['media_source'] : '';
2907
 
2908
  $featured_img_size = !empty($element['featured_img_size']) ? $element['featured_img_size'] : 'full';
3317
  if(empty($post_id)) return;
3318
 
3319
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
3320
+ $custom_class = do_shortcode($custom_class);
3321
  $default_thumb_src = isset($element['default_thumb_src']) ? $element['default_thumb_src'] : '';
3322
  $thumb_size = isset($element['thumb_size']) ? $element['thumb_size'] : 'large';
3323
 
3685
  if(empty($post_id)) return;
3686
 
3687
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
3688
+ $custom_class = do_shortcode($custom_class);
3689
  $default_thumb_src = isset($element['default_thumb_src']) ? $element['default_thumb_src'] : '';
3690
  $thumb_size = isset($element['thumb_size']) ? $element['thumb_size'] : 'large';
3691
 
4038
  if(empty($post_id)) return;
4039
 
4040
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
4041
+ $custom_class = do_shortcode($custom_class);
4042
  $link_to = isset($element['link_to']) ? $element['link_to'] : '';
4043
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
4044
  $date_format = isset($element['date_format']) ? $element['date_format'] : 'd-m-Y';
4357
  if(empty($post_id)) return;
4358
 
4359
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
4360
+ $custom_class = do_shortcode($custom_class);
4361
  $link_to = isset($element['link_to']) ? $element['link_to'] : '';
4362
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
4363
  $wrapper_html = !empty($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
4684
  if(empty($post_id)) return;
4685
 
4686
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
4687
+ $custom_class = do_shortcode($custom_class);
4688
  $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
4689
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
4690
  $wrapper_html = !empty($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
5055
  if(empty($post_id)) return;
5056
 
5057
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
5058
+ $custom_class = do_shortcode($custom_class);
5059
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
5060
  $max_count = isset($element['max_count']) ? (int) $element['max_count'] : 3;
5061
  $wrapper_html = !empty($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
5375
  if(empty($post_id)) return;
5376
 
5377
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
5378
+ $custom_class = do_shortcode($custom_class);
5379
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
5380
  $max_count = isset($element['max_count']) ? (int) $element['max_count'] : 3;
5381
  $wrapper_html = !empty($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
5678
  if(empty($post_id)) return;
5679
 
5680
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
5681
+ $custom_class = do_shortcode($custom_class);
5682
  $wrapper_html = isset($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
5683
 
5684
 
5921
  if(empty($post_id)) return;
5922
 
5923
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
5924
+ $custom_class = do_shortcode($custom_class);
5925
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
5926
  $wrapper_html = isset($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
5927
  $font_size = isset($element['font_size']) ? $element['font_size'] : '';
6164
  if(empty($post_id)) return;
6165
 
6166
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
6167
+ $custom_class = do_shortcode($custom_class);
6168
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
6169
  $wrapper_html = isset($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
6170
  $height = isset($element['height']) ? $element['height'] : '';
6386
  if(empty($post_id)) return;
6387
 
6388
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
6389
+ $custom_class = do_shortcode($custom_class);
6390
  $star_count = isset($element['star_count']) ? $element['star_count'] : 5;
6391
  $wrapper_html = isset($element['wrapper_html']) ? $element['wrapper_html'] : '%s';
6392
  $star_icon = isset($element['star_html']) ? $element['star_html'] : '';
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.1.13
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.1.13');
25
  define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
26
 
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.1.14
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.1.14');
25
  define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
26
 
27
 
readme.txt CHANGED
@@ -4,7 +4,7 @@
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.8
7
- Stable tag: 2.1.13
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -223,6 +223,9 @@ then paste this shortcode anywhere in your page to display grid<br />
223
  == Changelog ==
224
 
225
 
 
 
 
226
  = 2.1.13 =
227
  * 2021-12-15 - fix - SQL security issue fixed.
228
 
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.8
7
+ Stable tag: 2.1.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
223
  == Changelog ==
224
 
225
 
226
+ = 2.1.14 =
227
+ * 2021-12-24 - add - Shortcdoe support for layout elements custom classes.
228
+
229
  = 2.1.13 =
230
  * 2021-12-15 - fix - SQL security issue fixed.
231