Version Description
- 24/05/2018 fix - Grid items responsive height issue fixed, set auto height for mobile and tablets
- 24/05/2018 fix - Grid items media responsive height issue fixed, set auto height for mobile and tablets
Download this release
Release Info
Developer | pickplugins |
Plugin | Post Grid |
Version | 2.0.27 |
Comparing to | |
See all releases |
Code changes from version 2.0.26 to 2.0.27
- grid-items/custom-css.php +91 -146
- includes/meta.php +2 -0
- post-grid.php +10 -8
- readme.txt +8 -3
grid-items/custom-css.php
CHANGED
@@ -175,188 +175,133 @@ if ( ! defined('ABSPATH')) exit; // if direct access
|
|
175 |
|
176 |
$html .= '#post-grid-'.$post_id.' .item .layer-media{';
|
177 |
|
178 |
-
|
179 |
-
|
180 |
-
$html .= 'height:'.$items_media_height.';';
|
181 |
-
}
|
182 |
-
elseif($items_media_height_style=='max_height'){
|
183 |
-
$html .= 'max-height:'.$items_media_height.';';
|
184 |
-
}
|
185 |
-
else{
|
186 |
-
$html .= 'height:'.$items_media_height.';';
|
187 |
-
|
188 |
-
}
|
189 |
|
190 |
$html .= 'overflow: hidden;
|
191 |
-
}';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
|
193 |
|
194 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
if($items_height_style == 'auto_height'){
|
196 |
$items_height = 'auto';
|
197 |
-
|
198 |
elseif($items_height_style == 'fixed_height'){
|
199 |
$items_height = $items_fixed_height;
|
200 |
-
|
201 |
-
|
202 |
elseif($items_height_style == 'max_height'){
|
203 |
$items_height = $items_fixed_height;
|
204 |
-
|
205 |
-
|
206 |
else{
|
207 |
$items_height = '220px';
|
208 |
-
|
209 |
-
|
210 |
|
211 |
|
|
|
212 |
|
|
|
213 |
|
214 |
-
$html .= '#post-grid-'.$post_id.' .item{
|
215 |
-
margin:'.$items_margin.';';
|
216 |
-
|
217 |
if($items_height_style == 'fixed_height' || $items_height_style == 'auto_height'){
|
218 |
-
|
219 |
$html .= 'height:'.$items_height.';';
|
220 |
-
|
221 |
elseif($items_height_style=='max_height'){
|
222 |
$html .= 'max-height:'.$items_height.';';
|
223 |
-
|
224 |
else{
|
225 |
$html .= 'height:'.$items_height.';';
|
226 |
-
|
227 |
-
}
|
228 |
|
229 |
-
|
|
|
|
|
230 |
|
|
|
231 |
|
|
|
232 |
|
|
|
|
|
|
|
233 |
|
|
|
234 |
|
|
|
235 |
|
236 |
-
if($grid_type!='slider'){
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
if($grid_layout_name=='layout_grid'){
|
241 |
-
|
242 |
|
243 |
-
|
244 |
-
}
|
245 |
-
|
246 |
-
elseif($grid_layout_name=='layout_1_N'){
|
247 |
-
|
248 |
-
$width = intval($items_width_desktop*$grid_layout_col_multi)+intval($items_margin*2*($grid_layout_col_multi-1));
|
249 |
-
|
250 |
-
$html .= '
|
251 |
-
|
252 |
-
@media only screen and (min-width: 1024px ) {
|
253 |
-
|
254 |
-
#post-grid-'.$post_id.' .item:first-child{
|
255 |
-
width: '.($width).'px;
|
256 |
-
}
|
257 |
-
}
|
258 |
-
|
259 |
-
';
|
260 |
-
|
261 |
-
|
262 |
-
}
|
263 |
-
|
264 |
-
elseif($grid_layout_name=='layout_N_1'){
|
265 |
-
|
266 |
-
$width = intval($items_width_desktop*$grid_layout_col_multi)+intval($items_margin*2*($grid_layout_col_multi-1));
|
267 |
-
|
268 |
-
$html .= '
|
269 |
-
|
270 |
-
@media only screen and (min-width: 1024px ) {
|
271 |
-
|
272 |
-
#post-grid-'.$post_id.' .item:last-child{
|
273 |
-
width: '.($width).'px;
|
274 |
-
}
|
275 |
-
}
|
276 |
-
|
277 |
-
';
|
278 |
-
|
279 |
-
}
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
elseif($grid_layout_name=='layout_3'){
|
284 |
-
|
285 |
-
$width = intval($items_width_desktop)+intval($items_margin);
|
286 |
-
|
287 |
-
$html .= '
|
288 |
-
|
289 |
-
@media only screen and (min-width: 1024px ) {
|
290 |
-
|
291 |
-
#post-grid-'.$post_id.' .item:first-child{
|
292 |
-
float: left;
|
293 |
-
}
|
294 |
-
|
295 |
-
#post-grid-'.$post_id.' .item{
|
296 |
-
float: right;
|
297 |
-
}
|
298 |
|
299 |
-
|
300 |
-
}
|
301 |
-
|
302 |
-
';
|
303 |
-
|
304 |
-
}
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
|
311 |
-
elseif($grid_layout_name=='layout_L_R'){
|
312 |
-
|
313 |
-
$html .= '
|
314 |
-
|
315 |
-
@media only screen and (min-width: 1024px ) {
|
316 |
-
|
317 |
-
#post-grid-'.$post_id.' .item.odd .layer-media{
|
318 |
-
float: right;
|
319 |
|
320 |
-
}
|
321 |
-
}
|
322 |
-
|
323 |
-
';
|
324 |
-
|
325 |
-
}
|
326 |
|
327 |
-
elseif($grid_layout_name=='layout_1_N_1'){
|
328 |
-
|
329 |
-
$width = intval($items_width_desktop*$grid_layout_col_multi)+intval($items_margin*2*($grid_layout_col_multi-1));
|
330 |
-
|
331 |
-
$html .= '
|
332 |
-
|
333 |
-
@media only screen and (min-width: 1024px ) {
|
334 |
-
|
335 |
-
#post-grid-'.$post_id.' .item:nth-child(1),
|
336 |
-
#post-grid-'.$post_id.' .item:nth-child('.($grid_layout_col_multi+2).') {
|
337 |
-
width: '.($width).'px;
|
338 |
-
}
|
339 |
-
}
|
340 |
-
|
341 |
-
';
|
342 |
-
|
343 |
-
}
|
344 |
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
|
361 |
$html .= '
|
362 |
@media only screen and (min-width: 1024px ) {
|
175 |
|
176 |
$html .= '#post-grid-'.$post_id.' .item .layer-media{';
|
177 |
|
178 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
|
180 |
$html .= 'overflow: hidden;
|
181 |
+
}';
|
182 |
+
|
183 |
+
|
184 |
+
|
185 |
+
$html .= '@media only screen and (min-width: 1024px ) {';
|
186 |
+
|
187 |
+
$html .= '#post-grid-'.$post_id.' .item .layer-media{';
|
188 |
+
|
189 |
+
if($items_media_height_style == 'fixed_height' || $items_media_height_style == 'auto_height'){
|
190 |
+
|
191 |
+
$html .= 'height:'.$items_media_height.';';
|
192 |
+
}
|
193 |
+
elseif($items_media_height_style=='max_height'){
|
194 |
+
$html .= 'max-height:'.$items_media_height.';';
|
195 |
+
}
|
196 |
+
else{
|
197 |
+
$html .= 'height:'.$items_media_height.';';
|
198 |
+
|
199 |
+
}
|
200 |
+
|
201 |
+
$html .= '}}
|
202 |
+
|
203 |
+
@media only screen and ( min-width: 768px ) and ( max-width: 1023px ) {';
|
204 |
+
|
205 |
+
$html .='#post-grid-'.$post_id.' .item .layer-media{height:auto';
|
206 |
+
|
207 |
+
$html .= '}}
|
208 |
+
|
209 |
+
@media only screen and ( min-width: 320px ) and ( max-width: 767px ) {';
|
210 |
+
|
211 |
+
$html .= '#post-grid-'.$post_id.' .item .layer-media{height:auto';
|
212 |
+
|
213 |
+
$html .= '}}';
|
214 |
+
|
215 |
+
|
216 |
+
|
217 |
+
|
218 |
+
|
219 |
+
|
220 |
+
|
221 |
+
|
222 |
+
|
223 |
+
|
224 |
+
|
225 |
+
|
226 |
+
|
227 |
+
|
228 |
+
|
229 |
|
230 |
|
231 |
|
232 |
+
|
233 |
+
|
234 |
+
|
235 |
+
|
236 |
+
|
237 |
+
$html .= '#post-grid-'.$post_id.' .item{
|
238 |
+
margin:'.$items_margin.';';
|
239 |
+
|
240 |
+
$html .= '}';
|
241 |
+
|
242 |
+
|
243 |
if($items_height_style == 'auto_height'){
|
244 |
$items_height = 'auto';
|
245 |
+
}
|
246 |
elseif($items_height_style == 'fixed_height'){
|
247 |
$items_height = $items_fixed_height;
|
248 |
+
}
|
249 |
+
|
250 |
elseif($items_height_style == 'max_height'){
|
251 |
$items_height = $items_fixed_height;
|
252 |
+
}
|
253 |
+
|
254 |
else{
|
255 |
$items_height = '220px';
|
256 |
+
}
|
|
|
257 |
|
258 |
|
259 |
+
$html .= '@media only screen and (min-width: 1024px ) {';
|
260 |
|
261 |
+
$html .= '#post-grid-'.$post_id.' .item{';
|
262 |
|
|
|
|
|
|
|
263 |
if($items_height_style == 'fixed_height' || $items_height_style == 'auto_height'){
|
264 |
+
|
265 |
$html .= 'height:'.$items_height.';';
|
266 |
+
}
|
267 |
elseif($items_height_style=='max_height'){
|
268 |
$html .= 'max-height:'.$items_height.';';
|
269 |
+
}
|
270 |
else{
|
271 |
$html .= 'height:'.$items_height.';';
|
|
|
|
|
272 |
|
273 |
+
}
|
274 |
+
|
275 |
+
$html .= '}}
|
276 |
|
277 |
+
@media only screen and ( min-width: 768px ) and ( max-width: 1023px ) {';
|
278 |
|
279 |
+
$html .='#post-grid-'.$post_id.' .item{height:auto';
|
280 |
|
281 |
+
$html .= '}}
|
282 |
+
|
283 |
+
@media only screen and ( min-width: 320px ) and ( max-width: 767px ) {';
|
284 |
|
285 |
+
$html .= '#post-grid-'.$post_id.' .item{height:auto';
|
286 |
|
287 |
+
$html .= '}}';
|
288 |
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
|
295 |
+
|
296 |
+
|
297 |
+
|
298 |
+
|
299 |
+
|
300 |
+
|
301 |
+
|
302 |
+
|
303 |
+
if($grid_type!='slider'){
|
304 |
+
|
|
|
|
|
|
|
|
|
|
|
305 |
|
306 |
$html .= '
|
307 |
@media only screen and (min-width: 1024px ) {
|
includes/meta.php
CHANGED
@@ -1328,6 +1328,8 @@ function meta_boxes_post_grid_input( $post ) {
|
|
1328 |
<div class="option-box">
|
1329 |
<p class="option-title"><?php _e('Grid Items Height','post-grid'); ?></p>
|
1330 |
<p class="option-info"><?php _e('Grid item height','post-grid'); ?></p>
|
|
|
|
|
1331 |
<label><input <?php if($items_height_style=='auto_height') echo 'checked'; ?> type="radio" name="post_grid_meta_options[item_height][style]" value="auto_height" /><?php _e('Auto height','post-grid'); ?></label><br />
|
1332 |
<label><input <?php if($items_height_style=='fixed_height') echo 'checked'; ?> type="radio" name="post_grid_meta_options[item_height][style]" value="fixed_height" /><?php _e('Fixed height','post-grid'); ?></label><br />
|
1333 |
<label><input <?php if($items_height_style=='max_height') echo 'checked'; ?> type="radio" name="post_grid_meta_options[item_height][style]" value="max_height" /><?php _e('Max height','post-grid'); ?></label><br />
|
1328 |
<div class="option-box">
|
1329 |
<p class="option-title"><?php _e('Grid Items Height','post-grid'); ?></p>
|
1330 |
<p class="option-info"><?php _e('Grid item height','post-grid'); ?></p>
|
1331 |
+
|
1332 |
+
|
1333 |
<label><input <?php if($items_height_style=='auto_height') echo 'checked'; ?> type="radio" name="post_grid_meta_options[item_height][style]" value="auto_height" /><?php _e('Auto height','post-grid'); ?></label><br />
|
1334 |
<label><input <?php if($items_height_style=='fixed_height') echo 'checked'; ?> type="radio" name="post_grid_meta_options[item_height][style]" value="fixed_height" /><?php _e('Fixed height','post-grid'); ?></label><br />
|
1335 |
<label><input <?php if($items_height_style=='max_height') echo 'checked'; ?> type="radio" name="post_grid_meta_options[item_height][style]" value="max_height" /><?php _e('Max height','post-grid'); ?></label><br />
|
post-grid.php
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Post Grid
|
4 |
-
Plugin URI:
|
5 |
Description: Awesome post grid for query post from any post type and display on grid.
|
6 |
-
Version: 2.0.
|
7 |
-
|
|
|
|
|
8 |
Author URI: http://pickplugins.com
|
9 |
Text Domain: post-grid
|
10 |
License: GPLv2 or later
|
@@ -23,12 +25,12 @@ class PostGrid{
|
|
23 |
define('post_grid_plugin_dir', plugin_dir_path(__FILE__) );
|
24 |
define('post_grid_wp_url', 'https://wordpress.org/plugins/post-grid/' );
|
25 |
define('post_grid_wp_reviews', 'http://wordpress.org/support/view/plugin-reviews/post-grid' );
|
26 |
-
define('post_grid_pro_url','
|
27 |
-
define('post_grid_demo_url', '
|
28 |
-
define('post_grid_conatct_url', '
|
29 |
-
define('post_grid_qa_url', '
|
30 |
define('post_grid_plugin_name', 'Post Grid' );
|
31 |
-
define('post_grid_version', '2.0.
|
32 |
define('post_grid_customer_type', 'free' );
|
33 |
define('post_grid_share_url', 'https://wordpress.org/plugins/post-grid/' );
|
34 |
|
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/?ref=dashboard
|
5 |
Description: Awesome post grid for query post from any post type and display on grid.
|
6 |
+
Version: 2.0.27
|
7 |
+
WC requires at least: 3.0.0
|
8 |
+
WC tested up to: 3.3
|
9 |
+
Author: PickPlugins
|
10 |
Author URI: http://pickplugins.com
|
11 |
Text Domain: post-grid
|
12 |
License: GPLv2 or later
|
25 |
define('post_grid_plugin_dir', plugin_dir_path(__FILE__) );
|
26 |
define('post_grid_wp_url', 'https://wordpress.org/plugins/post-grid/' );
|
27 |
define('post_grid_wp_reviews', 'http://wordpress.org/support/view/plugin-reviews/post-grid' );
|
28 |
+
define('post_grid_pro_url','https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=dashboard' );
|
29 |
+
define('post_grid_demo_url', 'https://www.pickplugins.com/demo/post-grid/' );
|
30 |
+
define('post_grid_conatct_url', 'https://pickplugins.com/contact/' );
|
31 |
+
define('post_grid_qa_url', 'https://www.pickplugins.com/questions/' );
|
32 |
define('post_grid_plugin_name', 'Post Grid' );
|
33 |
+
define('post_grid_version', '2.0.27' );
|
34 |
define('post_grid_customer_type', 'free' );
|
35 |
define('post_grid_share_url', 'https://wordpress.org/plugins/post-grid/' );
|
36 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Post Grid ===
|
2 |
-
Contributors:
|
3 |
-
Donate link:
|
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: 4.9
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -19,6 +19,7 @@ Create post grid form any custom post type, You will be thrilled to see how its
|
|
19 |
* [See the Live demo](http://www.pickplugins.com/demo/post-grid/?ref=wordpress.org)
|
20 |
* [Buy Premium](https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org)
|
21 |
* [Documentation](http://pickplugins.com/docs/documentation/post-grid/?ref=wordpress.org)
|
|
|
22 |
|
23 |
|
24 |
<strong>Any Custom Post</strong>
|
@@ -104,6 +105,10 @@ then paste this shortcode anywhere in your page to display grid<br />
|
|
104 |
== Changelog ==
|
105 |
|
106 |
|
|
|
|
|
|
|
|
|
107 |
= 2.0.26 =
|
108 |
* 21/03/2018 add - Post grid search for individual grid on same page
|
109 |
* 21/03/2018 add - Press enter to reset search result.
|
1 |
=== Post Grid ===
|
2 |
+
Contributors: PickPlugins
|
3 |
+
Donate link: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org
|
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: 4.9
|
7 |
+
Stable tag: 2.0.27
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
19 |
* [See the Live demo](http://www.pickplugins.com/demo/post-grid/?ref=wordpress.org)
|
20 |
* [Buy Premium](https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org)
|
21 |
* [Documentation](http://pickplugins.com/docs/documentation/post-grid/?ref=wordpress.org)
|
22 |
+
* [Support](https://www.pickplugins.com/support/?ref=wordpress.org)
|
23 |
|
24 |
|
25 |
<strong>Any Custom Post</strong>
|
105 |
== Changelog ==
|
106 |
|
107 |
|
108 |
+
= 2.0.27 =
|
109 |
+
* 24/05/2018 fix - Grid items responsive height issue fixed, set auto height for mobile and tablets
|
110 |
+
* 24/05/2018 fix - Grid items media responsive height issue fixed, set auto height for mobile and tablets
|
111 |
+
|
112 |
= 2.0.26 =
|
113 |
* 21/03/2018 add - Post grid search for individual grid on same page
|
114 |
* 21/03/2018 add - Press enter to reset search result.
|