Post Grid - Version 2.0.36

Version Description

Download this release

Release Info

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

Code changes from version 2.0.34 to 2.0.36

includes/classes/class-post-grid-support.php CHANGED
@@ -62,21 +62,158 @@ class class_post_grid_support{
62
63
public function video_tutorials(){
64
65
$tutorials = array(
66
array(
67
- 'question'=>__('How to install activate & license', 'post-grid'),
68
- 'answer_url'=>'https://www.youtube.com/watch?v=gzH0uO6IReE',
69
),
70
array(
71
- 'question'=>__('How to create Post Grid', 'post-grid'),
72
- 'answer_url'=>'https://www.youtube.com/watch?v=6HwLUBqT7i4',
73
),
74
array(
75
- 'question'=>__('How to activate license?', 'post-grid'),
76
- 'answer_url'=>'https://www.pickplugins.com/documentation/woocommerce-products-slider/faq/activate-license/',
77
),
78
);
79
80
return apply_filters('post_grid_video_tutorials', $tutorials);
81
82
62
63
public function video_tutorials(){
64
65
+
66
$tutorials = array(
67
+
68
+ array(
69
+ 'question'=>__('How to create post grid', 'post-grid'),
70
+ 'answer_url'=>'https://www.youtube.com/watch?v=g5kxtJIopXs',
71
+ ),
72
+ array(
73
+ 'question'=>__('Custom read more text', 'post-grid'),
74
+ 'answer_url'=>'https://www.youtube.com/watch?v=LY7IjS7SFNk',
75
+ ),
76
+ array(
77
+ 'question'=>__('Remove read more text', 'post-grid'),
78
+ 'answer_url'=>'https://www.youtube.com/watch?v=ZcS2vRcTe4A',
79
+ ),
80
+ array(
81
+ 'question'=>__('Excerpt word count', 'post-grid'),
82
+ 'answer_url'=>'https://www.youtube.com/watch?v=gZ6E3UiKQqk',
83
+ ),
84
+
85
+ array(
86
+ 'question'=>__('Custom media height', 'post-grid'),
87
+ 'answer_url'=>'https://www.youtube.com/watch?v=TupF2TpHHFA',
88
+ ),
89
+ array(
90
+ 'question'=>__('Item custom padding margin', 'post-grid'),
91
+ 'answer_url'=>'https://www.youtube.com/watch?v=HRZpoib1VvI',
92
+ ),
93
+ array(
94
+ 'question'=>__('Grid item height', 'post-grid'),
95
+ 'answer_url'=>'https://www.youtube.com/watch?v=ydqlgzfsboQ',
96
+ ),
97
+ array(
98
+ 'question'=>__('Column Width or column number', 'post-grid'),
99
+ 'answer_url'=>'https://www.youtube.com/watch?v=ZV8hd1ij5Wo',
100
+ ),
101
+ array(
102
+ 'question'=>__('Post title linked', 'post-grid'),
103
+ 'answer_url'=>'https://www.youtube.com/watch?v=oUVZB9F5d4U',
104
+ ),
105
+ array(
106
+ 'question'=>__('Featured image linked to post', 'post-grid'),
107
+ 'answer_url'=>'https://www.youtube.com/watch?v=stGOJLwUF-k',
108
+ ),
109
+ array(
110
+ 'question'=>__('Query post by categories or terms', 'post-grid'),
111
+ 'answer_url'=>'https://www.youtube.com/watch?v=xYzqtWRg8W4',
112
+ ),
113
+ array(
114
+ 'question'=>__('Query post by tags or terms', 'post-grid'),
115
+ 'answer_url'=>'https://www.youtube.com/watch?v=RKb-B_Q72Ak',
116
+ ),
117
+ array(
118
+ 'question'=>__('Display search input', 'post-grid'),
119
+ 'answer_url'=>'https://www.youtube.com/watch?v=psJR65Fmc_s',
120
+ ),
121
+ array(
122
+ 'question'=>__('Work with layout editor', 'post-grid'),
123
+ 'answer_url'=>'https://www.youtube.com/watch?v=9bQc7q40jMc',
124
+ ),
125
+ array(
126
+ 'question'=>__('[ Pro ] Create filterable grid', 'post-grid'),
127
+ 'answer_url'=>'https://www.youtube.com/watch?v=Zg2r7idmEm0',
128
+ ),
129
+ array(
130
+ 'question'=>__('[ Pro ] Filterable custom filter type data logic', 'post-grid'),
131
+ 'answer_url'=>'https://www.youtube.com/watch?v=5Dueav6Yoyc',
132
+ ),
133
+
134
array(
135
+ 'question'=>__('[ Pro ] Filterable custom all text', 'post-grid'),
136
+ 'answer_url'=>'https://www.youtube.com/watch?v=JvVkAyoXC3g',
137
),
138
array(
139
+ 'question'=>__('[ Pro ] Filterable default active filter', 'post-grid'),
140
+ 'answer_url'=>'https://www.youtube.com/watch?v=h2rbyZNhMhU',
141
),
142
+
143
+ array(
144
+ 'question'=>__('[ Pro ] Filterable custom filter', 'post-grid'),
145
+ 'answer_url'=>'https://www.youtube.com/watch?v=e8phxNKIRsU',
146
+ ),
147
+
148
array(
149
+ 'question'=>__('[ Pro ] Filterable dropdown single filter', 'post-grid'),
150
+ 'answer_url'=>'https://www.youtube.com/watch?v=ZHY8qf-z3H0',
151
),
152
+
153
+ array(
154
+ 'question'=>__('[ Pro ] Filterable display sort filter', 'post-grid'),
155
+ 'answer_url'=>'https://www.youtube.com/watch?v=21TYNsp2OPI',
156
+ ),
157
+
158
+ array(
159
+ 'question'=>__('[ Pro ] Filterable multi filter', 'post-grid'),
160
+ 'answer_url'=>'https://www.youtube.com/watch?v=uRcfd_R9YCM',
161
+ ),
162
+
163
+
164
+
165
+ array(
166
+ 'question'=>__('[ Pro ] Post grid on archive tags', 'post-grid'),
167
+ 'answer_url'=>'https://youtu.be/lNyAjva_UXo',
168
+ ),
169
+
170
+
171
+
172
+
173
+ array(
174
+ 'question'=>__('[ Pro ] Query post by meta field', 'post-grid'),
175
+ 'answer_url'=>'https://www.youtube.com/watch?v=0AIDNJvZGR0',
176
+ ),
177
+
178
+
179
+ array(
180
+ 'question'=>__('[ Pro ] Multi skin', 'post-grid'),
181
+ 'answer_url'=>'https://www.youtube.com/watch?v=YzUs_P3cFCo',
182
+ ),
183
+ array(
184
+ 'question'=>__('[ Pro ] Sticky post query', 'post-grid'),
185
+ 'answer_url'=>'https://www.youtube.com/watch?v=nVIOUbVjML4',
186
+ ),
187
+ array(
188
+ 'question'=>__('[ Pro ] Masonry layout', 'post-grid'),
189
+ 'answer_url'=>'https://www.youtube.com/watch?v=qYjbv2euNpE',
190
+ ),
191
+ array(
192
+ 'question'=>__('[ Pro ] Post query by author', 'post-grid'),
193
+ 'answer_url'=>'https://www.youtube.com/watch?v=KtoGa8NB3ig',
194
+ ),
195
+ array(
196
+ 'question'=>__('[ Pro ] Create glossary grid', 'post-grid'),
197
+ 'answer_url'=>'https://www.youtube.com/watch?v=MKL4EZ-WYTs',
198
+ ),
199
+ array(
200
+ 'question'=>__('[ Pro ] Post carousel slider', 'post-grid'),
201
+ 'answer_url'=>'https://www.youtube.com/watch?v=A0bZ_luBtQQ',
202
+ ),
203
+
204
+ array(
205
+ 'question'=>__('[ Pro ] Grid layout type', 'post-grid'),
206
+ 'answer_url'=>'https://www.youtube.com/watch?v=58piQVkDZN4',
207
+ ),
208
+ array(
209
+ 'question'=>__('[ Pro ] Thumbnail youtube', 'post-grid'),
210
+ 'answer_url'=>'https://www.youtube.com/watch?v=Zm5vD15yvNM',
211
+ ),
212
+
213
+
214
);
215
216
+
217
return apply_filters('post_grid_video_tutorials', $tutorials);
218
219
includes/post-grid-meta-box.php CHANGED
@@ -314,6 +314,7 @@ function meta_boxes_post_grid_side( $post ) {
314
315
316
<h3>Video Tutorials</h3>
317
<div class="faq">
318
<?php
319
314
315
316
<h3>Video Tutorials</h3>
317
+ <p class="description">Some tutorial contain pro features.</p>
318
<div class="faq">
319
<?php
320
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.34
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.34' );
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.34';
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);
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.35
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.35' );
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.35';
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);
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.2
7
- Stable tag: 2.0.34
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -67,13 +67,8 @@ you can display YouTube, vimeo, dailymotion, soundcloud, mp3, gallery, Font Awes
67
68
<strong>Video Tutorial(with premium version interface)</strong>
69
70
- * [How to install activate & license](https://youtu.be/gzH0uO6IReE)
71
- * [How to create Post Grid](https://youtu.be/6HwLUBqT7i4)
72
- * [Post Grid - Query Post](https://youtu.be/FKIcey0ujgo)
73
- * [Post Grid - Grid Layout](https://youtu.be/g2GSb4chGXQ)
74
- * [Post Grid - Navigation](https://youtu.be/B12CglBCLJY)
75
- * [Post Grid - Layout Editor](https://youtu.be/z_tygQ12aJk)
76
- * [Post Grid - Settings](https://youtu.be/JsPKfENJL8I)
77
78
79
== Installation ==
@@ -104,6 +99,10 @@ then paste this shortcode anywhere in your page to display grid<br />
104
105
== Changelog ==
106
107
= 2.0.34 =
108
* 15/05/2019 fix - Custom CSS & JS saveing issue fixed
109
* 15/05/2019 fix - select2 issue fixed
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.2
7
+ Stable tag: 2.0.35
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
67
68
<strong>Video Tutorial(with premium version interface)</strong>
69
70
+ * [All tutorials](https://www.youtube.com/watch?v=RKb-B_Q72Ak&list=PL2GPPfgLrfWxAZBQc10XCh5wzDSOfPrKB)
71
+
72
73
74
== Installation ==
99
100
== Changelog ==
101
102
+ = 2.0.35 =
103
+ * 26/05/2019 fix - js script error issue fixed.
104
+ * 26/05/2019 add - Some video tutorials added.
105
+
106
= 2.0.34 =
107
* 15/05/2019 fix - Custom CSS & JS saveing issue fixed
108
* 15/05/2019 fix - select2 issue fixed
templates/lazy.php CHANGED
@@ -19,10 +19,6 @@ if($lazy_load_enable=='yes'){
19
jQuery('#post-grid-lazy-<?php echo $grid_id; ?>').fadeOut();
20
jQuery('#post-grid-<?php echo $grid_id; ?>').fadeIn();
21
})
22
- //jQuery( window ).load(function() {
23
- // jQuery('#post-grid-lazy-<?php //echo $grid_id; ?>//').fadeOut();
24
- // jQuery('#post-grid-<?php //echo $grid_id; ?>//').fadeIn();
25
- //});
26
</script>
27
<style type="text/css">#post-grid-<?php echo $grid_id; ?>{display: none;}</style>
28
<?php
19
jQuery('#post-grid-lazy-<?php echo $grid_id; ?>').fadeOut();
20
jQuery('#post-grid-<?php echo $grid_id; ?>').fadeIn();
21
})
22
</script>
23
<style type="text/css">#post-grid-<?php echo $grid_id; ?>{display: none;}</style>
24
<?php
templates/post-grid.php CHANGED
@@ -25,23 +25,14 @@ if ( ! defined('ABSPATH')) exit; // if direct access
25
26
<script>
27
post_grid_masonry_enable = "<?php echo $masonry_enable; ?>";
28
- jQuery(document).ready(function($){
29
-
30
-
31
-
32
- });
33
-
34
</script>
35
36
<div id="post-grid-<?php echo $grid_id; ?>" class="post-grid <?php echo $grid_type; ?>">
37
-
38
<div class="grid-nav-top">
39
<?php
40
include post_grid_plugin_dir.'templates/nav-top.php';
41
?>
42
</div>
43
-
44
-
45
<?php
46
47
if($grid_type=='slider'){
@@ -65,140 +56,113 @@ if ( ! defined('ABSPATH')) exit; // if direct access
65
<?php
66
}
67
?>
68
69
70
- <div class="grid-items <?php echo $owl_carousel_class; ?>">
71
-
72
- <?php
73
-
74
75
-
76
-
77
- $odd_even = 0;
78
-
79
-
80
-
81
- if ( $post_grid_wp_query->have_posts() ) :
82
- while ( $post_grid_wp_query->have_posts() ) : $post_grid_wp_query->the_post();
83
84
- $item_post_id = get_the_ID();
85
- //var_dump($item_post_id);
86
-
87
-
88
- $post_grid_post_settings = get_post_meta( $item_post_id, 'post_grid_post_settings', true );
89
-
90
-
91
- //var_dump($post_grid_post_settings);
92
-
93
- if($enable_multi_skin=='yes'){
94
-
95
- if(!empty($post_grid_post_settings['post_skin'])){
96
-
97
- $skin = $post_grid_post_settings['post_skin'];
98
-
99
- }
100
- else{
101
-
102
- $skin = $skin_main;
103
- }
104
-
105
- }
106
-
107
- if($odd_even%2==0){
108
- $odd_even_calss = 'even';
109
- }
110
- else{
111
- $odd_even_calss = 'odd';
112
- }
113
- $odd_even++;
114
115
- if($grid_type=='glossary'){
116
- $glossary_str = get_the_title($item_post_id);
117
- $glossary_cha = isset($glossary_str[0]) ? $glossary_str[0] : '';
118
- }
119
120
121
- $item_css_class = array();
122
123
- $item_css_class['item'] = 'item';
124
- $item_css_class['item_id'] = 'item-'.$item_post_id;
125
126
- $item_css_class['skin'] = 'skin '.$skin;
127
- $item_css_class['odd_even'] = $odd_even_calss;
128
129
- if($grid_type=='filterable' || $grid_type=='glossary'){
130
- $item_css_class['mix'] = 'mix';
131
- $item_css_class['post_term_slug'] = post_grid_term_slug_list($item_post_id);
132
- }
133
134
135
- if($grid_type=='glossary'){
136
- $item_css_class['glossary'] = $glossary_cha;
137
- }
138
139
140
- $item_css_class = apply_filters('post_grid_item_classes', $item_css_class);
141
- $item_css_class = implode(' ', $item_css_class);
142
143
144
145
146
- ?><div class="<?php echo $item_css_class; ?>">
147
148
- <div class="layer-wrapper">
149
- <?php
150
- include post_grid_plugin_dir.'/templates/layer-media.php';
151
- include post_grid_plugin_dir.'/templates/layer-content.php';
152
- //include post_grid_plugin_dir.'/templates/layer-hover.php';
153
154
- ?>
155
- </div>
156
157
- <?php
158
159
- if($grid_type == 'timeline'){
160
- ?>
161
- <span class="timeline-arrow">
162
- <i class="timeline-bubble"></i>
163
- </span>
164
- <?php
165
- }
166
- ?>
167
168
-
169
-
170
-
171
- </div><!-- End .item --><?php
172
-
173
- $post_grid_ads_loop_meta_options = get_post_meta($grid_id, 'post_grid_ads_loop_meta_options', true);
174
-
175
- if(!empty($post_grid_ads_loop_meta_options['ads_positions'])){
176
-
177
- $ads_positions = $post_grid_ads_loop_meta_options['ads_positions'];
178
- $ads_positions = explode(',',$ads_positions);
179
-
180
- $ads_positions_html = $post_grid_ads_loop_meta_options['ads_positions_html'];
181
-
182
- $post_grid_ads_positions = apply_filters('post_grid_filter_ads_positions', $ads_positions);
183
-
184
- foreach($post_grid_ads_positions as $position){
185
-
186
- if( $post_grid_wp_query->current_post == $position ){
187
-
188
- if(!empty($ads_positions_html[$position]))
189
- echo apply_filters('post_grid_nth_item_html',$ads_positions_html[$position]);
190
-
191
- }
192
- }
193
-
194
- }
195
-
196
-
197
-
198
- endwhile;
199
200
- ?>
201
- </div> <!-- .grid-items -->
202
</div> <!-- .grid-items-wrap -->
203
<div class="grid-nav-bottom">
204
<?php
25
26
<script>
27
post_grid_masonry_enable = "<?php echo $masonry_enable; ?>";
28
</script>
29
30
<div id="post-grid-<?php echo $grid_id; ?>" class="post-grid <?php echo $grid_type; ?>">
31
<div class="grid-nav-top">
32
<?php
33
include post_grid_plugin_dir.'templates/nav-top.php';
34
?>
35
</div>
36
<?php
37
38
if($grid_type=='slider'){
56
<?php
57
}
58
?>
59
+ <div class="grid-items <?php echo $owl_carousel_class; ?>">
60
+ <?php
61
+ $odd_even = 0;
62
63
+ if ( $post_grid_wp_query->have_posts() ) :
64
+ while ( $post_grid_wp_query->have_posts() ) : $post_grid_wp_query->the_post();
65
+ $item_post_id = get_the_ID();
66
+ //var_dump($item_post_id);
67
+ $post_grid_post_settings = get_post_meta( $item_post_id, 'post_grid_post_settings', true );
68
+ //var_dump($post_grid_post_settings);
69
+ if($enable_multi_skin=='yes'){
70
+ if(!empty($post_grid_post_settings['post_skin'])){
71
+ $skin = $post_grid_post_settings['post_skin'];
72
+ }
73
+ else{
74
+ $skin = $skin_main;
75
+ }
76
+ }
77
78
+ if($odd_even%2==0){
79
+ $odd_even_calss = 'even';
80
+ }
81
+ else{
82
+ $odd_even_calss = 'odd';
83
+ }
84
+ $odd_even++;
85
86
+ if($grid_type=='glossary'){
87
+ $glossary_str = get_the_title($item_post_id);
88
+ $glossary_cha = isset($glossary_str[0]) ? $glossary_str[0] : '';
89
+ }
90
91
92
+ $item_css_class = array();
93
+
94
+ $item_css_class['item'] = 'item';
95
+ $item_css_class['item_id'] = 'item-'.$item_post_id;
96
+
97
+ $item_css_class['skin'] = 'skin '.$skin;
98
+ $item_css_class['odd_even'] = $odd_even_calss;
99
+
100
+ if($grid_type=='filterable' || $grid_type=='glossary'){
101
+ $item_css_class['mix'] = 'mix';
102
+ $item_css_class['post_term_slug'] = post_grid_term_slug_list($item_post_id);
103
+ }
104
105
106
+ if($grid_type=='glossary'){
107
+ //$item_css_class['glossary'] = $glossary_cha;
108
+ }
109
110
111
+ $item_css_class = apply_filters('post_grid_item_classes', $item_css_class);
112
+ $item_css_class = implode(' ', $item_css_class);
113
114
115
116
117
+ ?><div class="<?php echo $item_css_class; ?>">
118
+ <div class="layer-wrapper">
119
+ <?php
120
+ include post_grid_plugin_dir.'/templates/layer-media.php';
121
+ include post_grid_plugin_dir.'/templates/layer-content.php';
122
+ //include post_grid_plugin_dir.'/templates/layer-hover.php';
123
+ ?>
124
+ </div>
125
+ <?php
126
127
+ if($grid_type == 'timeline'){
128
+ ?>
129
+ <span class="timeline-arrow">
130
+ <i class="timeline-bubble"></i>
131
+ </span>
132
+ <?php
133
+ }
134
+ ?></div> <?php /* End .item*/?>
135
+ <?php
136
137
+ $post_grid_ads_loop_meta_options = get_post_meta($grid_id, 'post_grid_ads_loop_meta_options', true);
138
139
+ if(!empty($post_grid_ads_loop_meta_options['ads_positions'])){
140
141
+ $ads_positions = $post_grid_ads_loop_meta_options['ads_positions'];
142
+ $ads_positions = explode(',',$ads_positions);
143
144
+ $ads_positions_html = $post_grid_ads_loop_meta_options['ads_positions_html'];
145
146
+ $post_grid_ads_positions = apply_filters('post_grid_filter_ads_positions', $ads_positions);
147
148
+ foreach($post_grid_ads_positions as $position){
149
150
+ if( $post_grid_wp_query->current_post == $position ){
151
152
+ if(!empty($ads_positions_html[$position]))
153
+ echo apply_filters('post_grid_nth_item_html',$ads_positions_html[$position]);
154
155
+ }
156
+ }
157
158
+ }
159
+
160
+
161
+
162
+ endwhile;
163
+
164
+ ?>
165
+ </div> <!-- .grid-items -->
166
</div> <!-- .grid-items-wrap -->
167
<div class="grid-nav-bottom">
168
<?php
templates/scripts.php CHANGED
@@ -11,13 +11,10 @@ if ( ! defined('ABSPATH')) exit; // if direct access
11
12
<script>
13
<?php
14
-
15
if($masonry_enable=='yes' && ($grid_type != 'filterable' && $grid_type != 'glossary')):
16
?>
17
jQuery('#post-grid-lazy-<?php echo $grid_id; ?>').ready(function($){
18
-
19
var $container = $('#post-grid-<?php echo $grid_id; ?> .grid-items');
20
-
21
$container.masonry({
22
itemSelector: '.item',
23
columnWidth: '.item', //as you wish , you can use numeric
@@ -25,17 +22,11 @@ if ( ! defined('ABSPATH')) exit; // if direct access
25
isFitWidth: true,
26
horizontalOrder: true,
27
});
28
-
29
-
30
$container.imagesLoaded().done( function() {
31
$container.masonry('layout');
32
});
33
-
34
-
35
-
36
})
37
<?php
38
endif;
39
?>
40
-
41
</script>
11
12
<script>
13
<?php
14
if($masonry_enable=='yes' && ($grid_type != 'filterable' && $grid_type != 'glossary')):
15
?>
16
jQuery('#post-grid-lazy-<?php echo $grid_id; ?>').ready(function($){
17
var $container = $('#post-grid-<?php echo $grid_id; ?> .grid-items');
18
$container.masonry({
19
itemSelector: '.item',
20
columnWidth: '.item', //as you wish , you can use numeric
22
isFitWidth: true,
23
horizontalOrder: true,
24
});
25
$container.imagesLoaded().done( function() {
26
$container.masonry('layout');
27
});
28
})
29
<?php
30
endif;
31
?>
32
</script>