Post Grid - Version 2.0.32

Version Description

  • 05/05/2019 remove - removed some unnecessary script and css files.
Download this release

Release Info

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

Code changes from version 2.0.31 to 2.0.32

assets/frontend/js/scripts.js CHANGED
@@ -2,17 +2,6 @@ jQuery(document).ready(function($)
2
{
3
4
5
- $(window).resize(function() {
6
-
7
- //var windowWidth = $(window).width();
8
- //var width = $('#post-grid-7 .grid-items').width();
9
-
10
- //$('.post-grid-debug').html(width+' - '+windowWidth);
11
-
12
- });
13
-
14
-
15
-
16
$(document).on('keyup', '.post-grid .nav-search .search', function(e)
17
{
18
var keyword = $(this).val();
@@ -64,114 +53,7 @@ jQuery(document).ready(function($)
64
65
66
67
- // if(keyword.length>3){
68
- // $(this).addClass('loading');
69
- //
70
- // $('.pagination').fadeOut();
71
- //
72
- // $.ajax(
73
- // {
74
- // type: 'POST',
75
- // context: this,
76
- // url:post_grid_ajax.post_grid_ajaxurl,
77
- // data: {"action": "post_grid_ajax_search", "grid_id":grid_id,"keyword":keyword,},
78
- // success: function(data)
79
- // {
80
- //
81
- // $('.post-grid .grid-items').html(data);
82
- // $(this).removeClass('loading');
83
- //
84
- // }
85
- // });
86
- //
87
- //
88
- //
89
- // }
90
-
91
- })
92
-
93
-
94
-
95
-
96
-
97
- $(document).on('click', '.post-grid .nav-filter .filter', function()
98
- {
99
- $('.post-grid .nav-filter .filter').removeClass('active');
100
-
101
-
102
- if($(this).hasClass('active'))
103
- {
104
- //$(this).removeClass('active');
105
- }
106
- else
107
- {
108
- $(this).addClass('active');
109
- }
110
-
111
- })
112
-
113
-
114
-
115
-
116
-
117
-
118
- $(document).on('click', '.post-grid .paginate-ajax a.page-numbers', function(event)
119
- {
120
- event.preventDefault();
121
-
122
- $('.post-grid .paginate-ajax .page-numbers').removeClass('current');
123
124
- $(this).addClass('current');
125
-
126
- var current_page = parseInt($(this).text());
127
- var paged = parseInt($(this).attr('paged'));
128
- var grid_id = parseInt($(this).parent().attr('grid-id'));
129
-
130
- $.ajax(
131
- {
132
- type: 'POST',
133
- context: this,
134
- url:post_grid_ajax.post_grid_ajaxurl,
135
- data: {"action": "post_grid_paginate_ajax", "grid_id":grid_id,"current_page":current_page},
136
- success: function(data)
137
- {
138
-
139
- var response = JSON.parse(data)
140
- var data = response['html'];
141
- var pagination = response['pagination'];
142
-
143
- if(post_grid_masonry_enable=='yes'){
144
-
145
- var $grid = $('#post-grid-'+grid_id+' .grid-items').masonry({});
146
- $grid.masonry('destroy');
147
- $grid.html( data ).masonry();
148
-
149
- $grid.masonry( 'reloadItems' );
150
- $grid.masonry( 'layout' );
151
-
152
- $('#post-grid-'+grid_id+' .grid-items').masonry({"isFitWidth": true});
153
- $('#paginate-ajax-'+grid_id).html( pagination );
154
-
155
- }
156
- else{
157
- $('#post-grid-'+grid_id+' .grid-items').html( data );
158
- $('#paginate-ajax-'+grid_id).html( pagination );
159
-
160
- }
161
-
162
-
163
- $("#paginate-ajax-"+grid_id).ScrollTo({
164
- duration: 1000,
165
- easing: 'linear'
166
- });
167
-
168
-
169
-
170
-
171
-
172
- }
173
- });
174
-
175
})
176
177
@@ -180,107 +62,11 @@ jQuery(document).ready(function($)
180
181
182
183
- $(document).on('click', '.post-grid .load-more', function()
184
- {
185
-
186
-
187
- var paged = parseInt($(this).attr('paged'));
188
- var per_page = parseInt($(this).attr('per_page'));
189
- var grid_id = parseInt($(this).attr('grid_id'));
190
- var terms = $('#post-grid-'+grid_id+' .nav-filter .filter.active').attr('terms-id');
191
-
192
- //alert(terms);
193
-
194
- if(terms == null || terms == '')
195
- {
196
- terms = '';
197
- }
198
-
199
- $(this).addClass('loading');
200
-
201
-
202
- $.ajax(
203
- {
204
- type: 'POST',
205
- context: this,
206
- url:post_grid_ajax.post_grid_ajaxurl,
207
- data: {"action": "post_grid_ajax_load_more", "grid_id":grid_id,"per_page":per_page,"paged":paged,"terms":terms,},
208
- success: function(data)
209
- {
210
-
211
-
212
-
213
- // append items to grid
214
-
215
- // add and lay out newly appended items
216
-
217
- if(post_grid_masonry_enable=='yes'){
218
-
219
- var $container = $('#post-grid-'+grid_id+' .grid-items');
220
- // initialize
221
-
222
- $container.append( data ).masonry( 'appended', data, true );
223
- $container.masonry({
224
- itemSelector: '.item',
225
- columnWidth: '.item', //as you wish , you can use numeric
226
- isAnimated: true,
227
- });
228
- $container.masonry('reloadItems');
229
- $container.imagesLoaded().progress( function() {
230
- $container.masonry('layout');
231
- });
232
-
233
-
234
-
235
-
236
-
237
-
238
239
240
- // var $grid = $('#post-grid-'+grid_id+' .grid-items').masonry({});
241
- // $grid.masonry('destroy');
242
- // $grid.append( data ).masonry( 'appended', data, true );
243
- //
244
- //
245
- // $grid.masonry( 'reloadItems' );
246
- // $grid.masonry( 'layout' );
247
- //
248
- //
249
- // $('#post-grid-'+grid_id+' .grid-items').masonry({"isFitWidth": true});
250
251
- //console.log(post_grid_masonry_enable);
252
253
- }
254
- else{
255
- $('#post-grid-'+grid_id+' .grid-items').append( data );
256
- }
257
258
- /*
259
-
260
- $('html, body').animate({
261
- scrollTop: parseInt($("#load-more-"+grid_id).offset().top)
262
- }, 1000);
263
-
264
- */
265
-
266
- // $("#load-more-"+grid_id).ScrollTo({
267
- // duration: 2000,
268
- // easing: 'linear'
269
- // });
270
-
271
-
272
- $(this).attr('paged',(paged+1));
273
-
274
- if($(this).hasClass('loading')){
275
-
276
- $(this).removeClass('loading');
277
- }
278
-
279
- }
280
- });
281
-
282
- //alert(per_page);
283
- })
284
285
});
286
2
{
3
4
5
$(document).on('keyup', '.post-grid .nav-search .search', function(e)
6
{
7
var keyword = $(this).val();
53
54
55
56
57
})
58
59
62
63
64
65
66
67
68
69
70
71
});
72
post-grid.php CHANGED
@@ -1,9 +1,9 @@
1
<?php
2
/*
3
- Plugin Name: Post Grid
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.31
7
Author: PickPlugins
8
Author URI: https://www.pickplugins.com/
9
License: GPLv2 or later
@@ -27,7 +27,7 @@ class PostGrid{
27
define('post_grid_conatct_url', 'https://pickplugins.com/contact/' );
28
define('post_grid_qa_url', 'https://www.pickplugins.com/questions/' );
29
define('post_grid_plugin_name', 'Post Grid' );
30
- define('post_grid_version', '2.0.31' );
31
define('post_grid_customer_type', 'free' );
32
33
@@ -124,7 +124,7 @@ class PostGrid{
124
* */
125
126
$post_grid_info = get_option('post_grid_info');
127
- $post_grid_info['current_version'] = '2.0.31';
128
$post_grid_info['last_version'] = isset($post_grid_info['last_version']) ? $post_grid_info['last_version'] : '2.0.30';
129
$post_grid_info['data_update_status'] = isset($post_grid_info['data_update_status']) ? $post_grid_info['data_update_status'] : 'pending';
130
update_option('post_grid_info',$post_grid_info);
@@ -166,26 +166,28 @@ class PostGrid{
166
wp_localize_script('post_grid_scripts', 'post_grid_ajax', array( 'post_grid_ajaxurl' => admin_url( 'admin-ajax.php')));
167
168
169
- wp_enqueue_script('jquery.mixitup.min', plugins_url( '/assets/frontend/js/jquery.mixitup.min.js' , __FILE__ ) , array( 'jquery' ));
170
- wp_enqueue_script('jquery.mixitup-pagination', plugins_url( '/assets/frontend/js/jquery.mixitup-pagination.js' , __FILE__ ) , array( 'jquery' ));
171
172
wp_enqueue_script('masonry.pkgd.min', plugins_url( '/assets/frontend/js/masonry.pkgd.min.js' , __FILE__ ) , array( 'jquery' ));
173
wp_enqueue_script('imagesloaded.pkgd.js', plugins_url( '/assets/frontend/js/imagesloaded.pkgd.js' , __FILE__ ) , array( 'jquery' ));
174
175
- wp_enqueue_script('jquery-scrollto', plugins_url( '/assets/frontend/js/jquery-scrollto.js' , __FILE__ ) , array( 'jquery' ));
176
177
- wp_enqueue_script('owl.carousel.min', plugins_url( '/assets/frontend/js/owl.carousel.min.js' , __FILE__ ) , array( 'jquery' ));
178
- wp_enqueue_style('owl.carousel.min', post_grid_plugin_url.'assets/frontend/css/owl.carousel.min.css');
179
180
wp_enqueue_style('font-awesome', post_grid_plugin_url.'assets/global/css/font-awesome.min.css');
181
- wp_enqueue_style('style-woocommerce', post_grid_plugin_url.'assets/frontend/css/style-woocommerce.css');
182
183
184
185
wp_enqueue_style('style.skins', post_grid_plugin_url.'assets/global/css/style.skins.css');
186
wp_enqueue_style('style.layout', post_grid_plugin_url.'assets/global/css/style.layout.css');
187
wp_enqueue_style('style.animate', post_grid_plugin_url.'assets/global/css/animate.css');
188
- wp_enqueue_style('font-awesome5', post_grid_plugin_url.'assets/global/css/fontawesome-5.min.css');
189
190
}
191
1
<?php
2
/*
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.32
7
Author: PickPlugins
8
Author URI: https://www.pickplugins.com/
9
License: GPLv2 or later
27
define('post_grid_conatct_url', 'https://pickplugins.com/contact/' );
28
define('post_grid_qa_url', 'https://www.pickplugins.com/questions/' );
29
define('post_grid_plugin_name', 'Post Grid' );
30
+ define('post_grid_version', '2.0.32' );
31
define('post_grid_customer_type', 'free' );
32
33
124
* */
125
126
$post_grid_info = get_option('post_grid_info');
127
+ $post_grid_info['current_version'] = '2.0.32';
128
$post_grid_info['last_version'] = isset($post_grid_info['last_version']) ? $post_grid_info['last_version'] : '2.0.30';
129
$post_grid_info['data_update_status'] = isset($post_grid_info['data_update_status']) ? $post_grid_info['data_update_status'] : 'pending';
130
update_option('post_grid_info',$post_grid_info);
166
wp_localize_script('post_grid_scripts', 'post_grid_ajax', array( 'post_grid_ajaxurl' => admin_url( 'admin-ajax.php')));
167
168
169
+ //wp_enqueue_script('jquery.mixitup.min', plugins_url( '/assets/frontend/js/jquery.mixitup.min.js' , __FILE__ ) , array( 'jquery' ));
170
+ //wp_enqueue_script('jquery.mixitup-pagination', plugins_url( '/assets/frontend/js/jquery.mixitup-pagination.js' , __FILE__ ) , array( 'jquery' ));
171
172
wp_enqueue_script('masonry.pkgd.min', plugins_url( '/assets/frontend/js/masonry.pkgd.min.js' , __FILE__ ) , array( 'jquery' ));
173
wp_enqueue_script('imagesloaded.pkgd.js', plugins_url( '/assets/frontend/js/imagesloaded.pkgd.js' , __FILE__ ) , array( 'jquery' ));
174
175
+ //wp_enqueue_script('jquery-scrollto', plugins_url( '/assets/frontend/js/jquery-scrollto.js' , __FILE__ ) , array( 'jquery' ));
176
177
+ //wp_enqueue_script('owl.carousel.min', plugins_url( '/assets/frontend/js/owl.carousel.min.js' , __FILE__ ) , array( 'jquery' ));
178
+ //wp_enqueue_style('owl.carousel.min', post_grid_plugin_url.'assets/frontend/css/owl.carousel.min.css');
179
180
wp_enqueue_style('font-awesome', post_grid_plugin_url.'assets/global/css/font-awesome.min.css');
181
+ wp_enqueue_style('font-awesome5', post_grid_plugin_url.'assets/global/css/fontawesome-5.min.css');
182
+
183
+ //wp_enqueue_style('style-woocommerce', post_grid_plugin_url.'assets/frontend/css/style-woocommerce.css');
184
185
186
187
wp_enqueue_style('style.skins', post_grid_plugin_url.'assets/global/css/style.skins.css');
188
wp_enqueue_style('style.layout', post_grid_plugin_url.'assets/global/css/style.layout.css');
189
wp_enqueue_style('style.animate', post_grid_plugin_url.'assets/global/css/animate.css');
190
+
191
192
}
193
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.1
7
- Stable tag: 2.0.31
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -104,6 +104,10 @@ then paste this shortcode anywhere in your page to display grid<br />
104
105
== Changelog ==
106
107
108
= 2.0.31 =
109
* 21/01/2019 update - update admin settings
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.1
7
+ Stable tag: 2.0.32
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
104
105
== Changelog ==
106
107
+ = 2.0.32 =
108
+ * 05/05/2019 remove - removed some unnecessary script and css files.
109
+
110
+
111
112
= 2.0.31 =
113
* 21/01/2019 update - update admin settings
templates/layer-content.php CHANGED
@@ -231,19 +231,37 @@ if ( ! defined('ABSPATH')) exit; // if direct access
231
else{
232
$item['rating_widget'] = '<div class="element element_'.$item_id.' '.$item_key.' '.$custom_class.'" >'.__('Please activate Rating widget Plugin', 'post-grid').'</div>';
233
}
234
-
235
-
236
-
237
238
239
-
240
-
241
242
-
243
-
244
245
-
246
- $comments_html = '';
247
$comments_html.= '<h3 class="comment-content ">'.__('Comments', 'post-grid').'</h3>';
248
249
231
else{
232
$item['rating_widget'] = '<div class="element element_'.$item_id.' '.$item_key.' '.$custom_class.'" >'.__('Please activate Rating widget Plugin', 'post-grid').'</div>';
233
}
234
235
236
237
+ $share_button_html = '';
238
239
+ $share_button_html.= '
240
+ <span class="fb">
241
+ <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.get_permalink().'"> </a>
242
+ </span>
243
+ <span class="twitter">
244
+ <a target="_blank" href="https://twitter.com/intent/tweet?url='.get_permalink().'&text='.get_the_title().'"></a>
245
+ </span>
246
+ <span class="gplus">
247
+ <a target="_blank" href="https://plus.google.com/share?url='.get_permalink().'"></a>
248
+ </span>';
249
+
250
+ $share_button_html = apply_filters('post_grid_filter_share_buttons', $share_button_html);
251
+
252
+
253
+
254
+ $item['share_button'] = '<div class="element element_'.$item_id.' '.$item_key.'">'.$share_button_html.'</div>';
255
+
256
+
257
+
258
+ $item['hr'] = '<hr class="element element_'.$item_id.' '.$item_key.'" />';
259
+
260
+
261
+
262
+
263
+
264
+ $comments_html = '';
265
$comments_html.= '<h3 class="comment-content ">'.__('Comments', 'post-grid').'</h3>';
266
267
templates/scripts.php CHANGED
@@ -37,15 +37,5 @@ if ( ! defined('ABSPATH')) exit; // if direct access
37
<?php
38
endif;
39
?>
40
- jQuery(document).ready(function($){
41
- $("#post-grid-<?php echo $grid_id; ?> .layer-media .gallery").owlCarousel({
42
- items : 1,
43
- navText : ["",""],
44
- autoplay: true,
45
- loop: true,
46
- autoHeight : true,
47
- nav : false,
48
- dots : false,
49
- })
50
- });
51
</script>
37
<?php
38
endif;
39
?>
40
+
41
</script>