Post Grid - Version 2.0.49

Version Description

  • 2020-04-30 fix - post title link issue fixed.
Download this release

Release Info

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

Code changes from version 2.0.48 to 2.0.49

assets/settings-tabs/settings-tabs.js CHANGED
@@ -49,8 +49,11 @@ jQuery(document).ready(function($){
49
  if(editor_enabled == 'no' && typeof wp.editor != 'undefined'){
50
  wp.editor.initialize( id, {
51
  mediaButtons: true,
52
- tinymce: {
53
- toolbar1: 'bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,strikethrough,hr,forecolor,pastetext,removeformat,codeformat,undo,redo'
 
 
 
54
  },
55
  quicktags: true,
56
  } );
49
  if(editor_enabled == 'no' && typeof wp.editor != 'undefined'){
50
  wp.editor.initialize( id, {
51
  mediaButtons: true,
52
+ tinymce: {
53
+ wpautop: true,
54
+ plugins : 'charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview',
55
+ toolbar1: 'bold italic underline strikethrough | bullist numlist | blockquote hr wp_more | alignleft aligncenter alignright | link unlink | fullscreen | wp_adv',
56
+ toolbar2: 'formatselect alignjustify forecolor | pastetext removeformat charmap | outdent indent | undo redo | wp_help'
57
  },
58
  quicktags: true,
59
  } );
includes/functions/post-grid-layout-elements.php CHANGED
@@ -280,7 +280,7 @@ function post_grid_layout_element_title_link($args){
280
  $title = get_the_title($post_id);
281
  $post_link = get_permalink($post_id);
282
 
283
- $link_to = isset($element['link_to']) ? $element['link_to'] : '';
284
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
285
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
286
  $char_limit = isset($element['char_limit']) ? (int) $element['char_limit'] : 0;
@@ -625,7 +625,7 @@ function post_grid_layout_element_read_more($args){
625
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
626
  $read_more_text = isset($element['read_more_text']) ? $element['read_more_text'] : '';
627
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
628
- $link_to = isset($element['link_to']) ? $element['link_to'] : '';
629
 
630
 
631
  ?>
@@ -1094,7 +1094,7 @@ function post_grid_layout_element_post_date($args){
1094
  if(empty($post_id)) return;
1095
 
1096
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
1097
- $link_to = isset($element['link_to']) ? $element['link_to'] : '';
1098
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
1099
  $date_format = isset($element['date_format']) ? $element['date_format'] : 'd-m-Y';
1100
 
@@ -1188,7 +1188,7 @@ function post_grid_layout_element_author($args){
1188
  if(empty($post_id)) return;
1189
 
1190
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
1191
- $link_to = isset($element['link_to']) ? $element['link_to'] : '';
1192
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
1193
  $date_format = isset($element['date_format']) ? $element['date_format'] : 'd-m-Y';
1194
 
@@ -1291,7 +1291,7 @@ function post_grid_layout_element_author_link($args){
1291
  if(empty($post_id)) return;
1292
 
1293
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
1294
- $link_to = isset($element['link_to']) ? $element['link_to'] : '';
1295
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
1296
  $date_format = isset($element['date_format']) ? $element['date_format'] : 'd-m-Y';
1297
 
280
  $title = get_the_title($post_id);
281
  $post_link = get_permalink($post_id);
282
 
283
+ $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
284
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
285
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
286
  $char_limit = isset($element['char_limit']) ? (int) $element['char_limit'] : 0;
625
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
626
  $read_more_text = isset($element['read_more_text']) ? $element['read_more_text'] : '';
627
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
628
+ $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
629
 
630
 
631
  ?>
1094
  if(empty($post_id)) return;
1095
 
1096
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
1097
+ $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
1098
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
1099
  $date_format = isset($element['date_format']) ? $element['date_format'] : 'd-m-Y';
1100
 
1188
  if(empty($post_id)) return;
1189
 
1190
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
1191
+ $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
1192
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
1193
  $date_format = isset($element['date_format']) ? $element['date_format'] : 'd-m-Y';
1194
 
1291
  if(empty($post_id)) return;
1292
 
1293
  $custom_class = isset($element['custom_class']) ? $element['custom_class'] : '';
1294
+ $link_to = isset($element['link_to']) ? $element['link_to'] : 'post_link';
1295
  $link_target = isset($element['link_target']) ? $element['link_target'] : '';
1296
  $date_format = isset($element['date_format']) ? $element['date_format'] : 'd-m-Y';
1297
 
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.48
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.48');
25
 
26
  include('includes/classes/class-post-types.php');
27
  include('includes/functions/functions-settings-hook.php');
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.49
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.49');
25
 
26
  include('includes/classes/class-post-types.php');
27
  include('includes/functions/functions-settings-hook.php');
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.4
7
- Stable tag: 2.0.48
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,9 @@ then paste this shortcode anywhere in your page to display grid<br />
139
 
140
  == Changelog ==
141
 
 
 
 
142
  = 2.0.48 =
143
  * 2020-04-29 fix - new layout media image source issue fixed.
144
  * 2020-04-29 add - default layout xml file added and ready to import.
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.4
7
+ Stable tag: 2.0.49
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 2.0.49 =
143
+ * 2020-04-30 fix - post title link issue fixed.
144
+
145
  = 2.0.48 =
146
  * 2020-04-29 fix - new layout media image source issue fixed.
147
  * 2020-04-29 add - default layout xml file added and ready to import.