Post Grid - Version 2.0.69

Version Description

  • 2020-07-05 fix - Layouts editor saving issue fixed.
Download this release

Release Info

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

Code changes from version 2.0.68 to 2.0.69

assets/admin/js/scripts-layouts.js CHANGED
@@ -37,4 +37,50 @@ jQuery(document).ready(function($){
37
 
38
  })
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  });
37
 
38
  })
39
 
40
+
41
+ $(document).on('mouseover','.block-thumb',function(){
42
+
43
+
44
+
45
+ imgHeight = $(this).children('img').height();
46
+ wrapHeight = $(this).height();
47
+
48
+ if (imgHeight > wrapHeight) {
49
+ var animationOffset = wrapHeight - imgHeight;
50
+ var speed = 2000;
51
+ $(this).children('img').animate({
52
+ "marginTop": animationOffset + "px"
53
+ }, speed);
54
+ }
55
+
56
+
57
+ })
58
+
59
+
60
+ $(document).on('mouseout','.block-thumb',function(){
61
+
62
+
63
+
64
+ imgHeight = $(this).children('img').height();
65
+ wrapHeight = $(this).height();
66
+
67
+ //console.log(wrapHeight);
68
+ //console.log(imgHeight);
69
+
70
+ if (imgHeight > wrapHeight) {
71
+
72
+ animationOffset = 0;
73
+ var speed = 1000;
74
+ $(this).children('img').animate({
75
+ "marginTop": animationOffset + "px"
76
+ }, speed);
77
+
78
+ }
79
+
80
+
81
+ })
82
+
83
+
84
+
85
+
86
  });
includes/metabox-post-grid-layout-hook.php CHANGED
@@ -190,7 +190,7 @@ if(!function_exists('post_grid_layout_metabox_content_layout_builder')){
190
  console.log(id);
191
 
192
  tag_options_html = layout_elements_option[tag_id];
193
- var res = tag_options_html.replace("{input_name}", input_name+'['+id+']');
194
 
195
  $('.layout-elements').append(res);
196
 
190
  console.log(id);
191
 
192
  tag_options_html = layout_elements_option[tag_id];
193
+ var res = tag_options_html.replace(/{input_name}/g, input_name+'['+id+']');
194
 
195
  $('.layout-elements').append(res);
196
 
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.68
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.68');
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.69
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.69');
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
@@ -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.68
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -213,9 +213,19 @@ then paste this shortcode anywhere in your page to display grid<br />
213
 
214
  1. screenshot-1
215
  2. screenshot-2
 
 
 
 
 
 
216
 
217
  == Changelog ==
218
 
 
 
 
 
219
  = 2.0.68 =
220
  * 2020-07-04 add - Layouts library added.
221
 
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.69
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
213
 
214
  1. screenshot-1
215
  2. screenshot-2
216
+ 3. screenshot-3
217
+ 4. screenshot-4
218
+ 5. screenshot-5
219
+ 6. screenshot-6
220
+ 7. screenshot-7
221
+ 8. screenshot-8
222
 
223
  == Changelog ==
224
 
225
+ = 2.0.69 =
226
+ * 2020-07-05 fix - Layouts editor saving issue fixed.
227
+
228
+
229
  = 2.0.68 =
230
  * 2020-07-04 add - Layouts library added.
231