Post Grid - Version 2.0.5

Version Description

  • 17/01/2016 - fix - read more link issue fixed.
    • 17/01/2016 - fix - empty content issue fixed.
Download this release

Release Info

Developer paratheme
Plugin Icon 128x128 Post Grid
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.5

grid-items/layer-content.php CHANGED
@@ -36,10 +36,21 @@ if ( ! defined('ABSPATH')) exit; // if direct access
36
37
if($item_key=='title'){
38
$html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
39
- $html.= wp_trim_words(get_the_title(), $char_limit,'');
40
$html.='</div>';
41
}
42
43
elseif($item_key=='thumb'){
44
45
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'full' );
@@ -47,7 +58,24 @@ if ( ! defined('ABSPATH')) exit; // if direct access
47
48
49
$html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
50
$html.= '<img src="'.$thumb_url.'" />';
51
$html.='</div>';
52
}
53
@@ -58,9 +86,16 @@ if ( ! defined('ABSPATH')) exit; // if direct access
58
$html.='</div>';
59
}
60
61
elseif($item_key=='read_more'){
62
63
- $html.= '<a class="element '.$item_key.'" style="'.$item_info['css'].'" class="read-more" href="'.get_permalink().'">'.__('Read more.', post_grid_textdomain).'</a>';
64
65
}
66
@@ -102,7 +137,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
102
$posttags = get_the_tags();
103
if ($posttags) {
104
foreach($posttags as $tag){
105
- $html.= '<a href="#">'.$tag->name . '</a> , ';
106
}
107
}
108
$html.='</div>';
36
37
if($item_key=='title'){
38
$html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
39
+
40
+ $html.= wp_trim_words(get_the_title(), $char_limit,'');
41
+
42
$html.='</div>';
43
}
44
45
+ elseif($item_key=='title_link'){
46
+
47
+
48
+
49
+ $html.= '<a class="element '.$item_key.'" style="'.$item_info['css'].'" href="'.get_permalink().'">'.wp_trim_words(get_the_title(), $char_limit,'').'</a>';
50
+
51
+
52
+ }
53
+
54
elseif($item_key=='thumb'){
55
56
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'full' );
58
59
60
$html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
61
+ if(!empty($thumb_url)){
62
$html.= '<img src="'.$thumb_url.'" />';
63
+ }
64
+ $html.='</div>';
65
+ }
66
+
67
+ elseif($item_key=='thumb_link'){
68
+
69
+ $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'full' );
70
+ $thumb_url = $thumb['0'];
71
+
72
+
73
+ $html.='<div class="element '.$item_key.'" style="'.$item_info['css'].'" >';
74
+
75
+ if(!empty($thumb_url)){
76
+ $html.= '<a href="'.get_permalink().'"><img src="'.$thumb_url.'" /></a>';
77
+ }
78
+
79
$html.='</div>';
80
}
81
86
$html.='</div>';
87
}
88
89
+ elseif($item_key=='content'){
90
+ $html.='<div class="element element_'.$item_id.' '.$item_key.'" style="'.$item_info['css'].'" >';
91
+ $html.= apply_filters( 'the_content', get_the_content() );
92
+ $html.='</div>';
93
+ }
94
+
95
+
96
elseif($item_key=='read_more'){
97
98
+ $html.= '<a class="element '.$item_key.'" style="'.$item_info['css'].'" href="'.get_permalink().'">'.__('Read more.', post_grid_textdomain).'</a>';
99
100
}
101
137
$posttags = get_the_tags();
138
if ($posttags) {
139
foreach($posttags as $tag){
140
+ $html.= '<a href="'.get_tag_link($tag->term_id).'">'.$tag->name . '</a> , ';
141
}
142
}
143
$html.='</div>';
includes/class-functions.php CHANGED
@@ -37,9 +37,11 @@ class class_post_grid_functions{
37
38
/*Default Post Stuff*/
39
'title'=>'Title',
40
'content'=>'Content',
41
'read_more'=>'Read more',
42
'thumb'=>'Thumbnail',
43
'excerpt'=>'Excerpt',
44
'excerpt_read_more'=>'Excerpt with Read more',
45
'post_date'=>'Post date',
37
38
/*Default Post Stuff*/
39
'title'=>'Title',
40
+ 'title_link'=>'Title with Link',
41
'content'=>'Content',
42
'read_more'=>'Read more',
43
'thumb'=>'Thumbnail',
44
+ 'thumb_link'=>'Thumbnail with Link',
45
'excerpt'=>'Excerpt',
46
'excerpt_read_more'=>'Excerpt with Read more',
47
'post_date'=>'Post date',
includes/functions.php CHANGED
@@ -552,11 +552,25 @@ function post_grid_layout_add_elements(){
552
553
}
554
555
elseif($item_key=='title'){
556
557
$html['item'].= 'Lorem Ipsum is simply';
558
559
- }
560
561
elseif($item_key=='excerpt'){
562
$html['item'].= 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text';
@@ -661,7 +675,7 @@ function post_grid_layout_add_elements(){
661
$html['options'].= 'Meta Key: <br /><input type="text" value="" name="post_grid_layout_content['.$layout.']['.$unique_id.'][field_id]" /><br /><br />';
662
}
663
664
- if($item_key=='title' || $item_key=='excerpt' || $item_key=='excerpt_read_more'){
665
666
$html['options'].= 'Character limit: <br /><input type="text" value="20" name="post_grid_layout_content['.$layout.']['.$unique_id.'][char_limit]" /><br /><br />';
667
}
552
553
}
554
555
+ elseif($item_key=='thumb_link'){
556
+
557
+ $html['item'].= '<a href="#"><img style="width:100%;" src="'.post_grid_plugin_url.'assets/admin/images/thumb.png" /></a>';
558
+
559
+ }
560
+
561
+
562
elseif($item_key=='title'){
563
564
$html['item'].= 'Lorem Ipsum is simply';
565
566
+ }
567
+
568
+ elseif($item_key=='title_link'){
569
+
570
+ $html['item'].= '<a href="#">Lorem Ipsum is simply</a>';
571
+
572
+ }
573
+
574
575
elseif($item_key=='excerpt'){
576
$html['item'].= 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text';
675
$html['options'].= 'Meta Key: <br /><input type="text" value="" name="post_grid_layout_content['.$layout.']['.$unique_id.'][field_id]" /><br /><br />';
676
}
677
678
+ if($item_key=='title' || $item_key=='title_link' || $item_key=='excerpt' || $item_key=='excerpt_read_more'){
679
680
$html['options'].= 'Character limit: <br /><input type="text" value="20" name="post_grid_layout_content['.$layout.']['.$unique_id.'][char_limit]" /><br /><br />';
681
}
includes/menu/layout-editor.php CHANGED
@@ -130,6 +130,13 @@ else
130
<?php
131
}
132
133
elseif($item_key=='title'){
134
135
?>
@@ -138,6 +145,14 @@ else
138
<?php
139
}
140
141
elseif($item_key=='excerpt'){
142
143
?>
130
<?php
131
}
132
133
+ elseif($item_key=='thumb_link'){
134
+
135
+ ?>
136
+ <a href="#"><img style="width:100%; height:auto;" src="<?php echo post_grid_plugin_url; ?>assets/admin/images/thumb.png" /></a>
137
+ <?php
138
+ }
139
+
140
elseif($item_key=='title'){
141
142
?>
145
<?php
146
}
147
148
+ elseif($item_key=='title_link'){
149
+
150
+ ?>
151
+ <a href="#">Lorem Ipsum is simply</a>
152
+ <?php
153
+ }
154
+
155
+
156
elseif($item_key=='excerpt'){
157
158
?>
includes/meta.php CHANGED
@@ -309,7 +309,7 @@ function meta_boxes_post_grid_input( $post ) {
309
<li nav="2" class="nav2"><i class="fa fa-cubes"></i> <?php _e('Query Post','post_grid'); ?></li>
310
<li nav="3" class="nav3"><i class="fa fa-object-group"></i> <?php _e('Layout','post_grid'); ?></li>
311
<li nav="4" class="nav3"><i class="fa fa-magic"></i> <?php _e('Layout settings','post_grid'); ?></li>
312
- <li nav="5" class="nav4"><i class="fa fa-sliders"></i> <?php _e('Naviagtions','post_grid'); ?></li>
313
<li nav="6" class="nav6"><i class="fa fa-css3"></i> <?php _e('Custom Scripts','post_grid'); ?></li>
314
315
@@ -321,10 +321,10 @@ function meta_boxes_post_grid_input( $post ) {
321
<div class="option-box">
322
<p class="option-title"><?php _e('Shortcode','post_grid'); ?></p>
323
<p class="option-info"><?php _e('Copy this shortcode and paste on page or post where you want to display post grid. <br />Use PHP code to your themes file to display post grid.','post_grid'); ?></p>
324
- <textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" >[post_grid <?php echo ' id="'.$post->ID.'"';?> ]</textarea>
325
<br /><br />
326
PHP Code:<br />
327
- <textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" ><?php echo '<?php echo do_shortcode("[post_grid id='; echo "'".$post->ID."' ]"; echo '"); ?>'; ?></textarea>
328
</div>
329
330
</li>
309
<li nav="2" class="nav2"><i class="fa fa-cubes"></i> <?php _e('Query Post','post_grid'); ?></li>
310
<li nav="3" class="nav3"><i class="fa fa-object-group"></i> <?php _e('Layout','post_grid'); ?></li>
311
<li nav="4" class="nav3"><i class="fa fa-magic"></i> <?php _e('Layout settings','post_grid'); ?></li>
312
+ <li nav="5" class="nav4"><i class="fa fa-sliders"></i> <?php _e('Navigations','post_grid'); ?></li>
313
<li nav="6" class="nav6"><i class="fa fa-css3"></i> <?php _e('Custom Scripts','post_grid'); ?></li>
314
315
321
<div class="option-box">
322
<p class="option-title"><?php _e('Shortcode','post_grid'); ?></p>
323
<p class="option-info"><?php _e('Copy this shortcode and paste on page or post where you want to display post grid. <br />Use PHP code to your themes file to display post grid.','post_grid'); ?></p>
324
+ <textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" >[post_grid <?php echo 'id="'.$post->ID.'"';?>]</textarea>
325
<br /><br />
326
PHP Code:<br />
327
+ <textarea cols="50" rows="1" style="background:#bfefff" onClick="this.select();" ><?php echo '<?php echo do_shortcode("[post_grid id='; echo "'".$post->ID."']"; echo '"); ?>'; ?></textarea>
328
</div>
329
330
</li>
post-grid.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Post Grid
4
Plugin URI: http://pickplugins.com
5
Description: Awesome post grid for query post from any post type and display on grid.
6
- Version: 2.0.0
7
Author: pickplugins
8
Author URI: http://pickplugins.com
9
License: GPLv2 or later
@@ -22,12 +22,12 @@ class PostGrid{
22
define('post_grid_plugin_dir', plugin_dir_path(__FILE__) );
23
define('post_grid_wp_url', 'https://wordpress.org/plugins/post-grid/' );
24
define('post_grid_wp_reviews', 'http://wordpress.org/support/view/plugin-reviews/post-grid' );
25
- define('post_grid_pro_url','http://paratheme.com/items/post-grid-awesome-grid-for-any-post-type/' );
26
- define('post_grid_demo_url', 'http://paratheme.com/demo/post-grid/' );
27
- define('post_grid_conatct_url', 'http://paratheme.com/contact/' );
28
- define('post_grid_qa_url', 'http://paratheme.com/qa/' );
29
define('post_grid_plugin_name', 'Post Grid' );
30
- define('post_grid_version', '2.0.0' );
31
define('post_grid_customer_type', 'free' );
32
define('post_grid_share_url', 'https://wordpress.org/plugins/post-grid/' );
33
define('post_grid_tutorial_video_url', '//www.youtube.com/embed/WynnnEl0ncM' );
@@ -62,14 +62,20 @@ class PostGrid{
62
63
$class_post_grid_functions = new class_post_grid_functions();
64
65
- $layout_content_list = $class_post_grid_functions->layout_content_list();
66
- $layout_hover_list = $class_post_grid_functions->layout_hover_list();
67
68
- update_option('post_grid_layout_content', $layout_content_list);
69
- update_option('post_grid_layout_hover', $layout_hover_list);
70
71
do_action( 'post_grid_action_install' );
72
73
}
74
75
public function post_grid_uninstall(){
3
Plugin Name: Post Grid
4
Plugin URI: http://pickplugins.com
5
Description: Awesome post grid for query post from any post type and display on grid.
6
+ Version: 2.0.5
7
Author: pickplugins
8
Author URI: http://pickplugins.com
9
License: GPLv2 or later
22
define('post_grid_plugin_dir', plugin_dir_path(__FILE__) );
23
define('post_grid_wp_url', 'https://wordpress.org/plugins/post-grid/' );
24
define('post_grid_wp_reviews', 'http://wordpress.org/support/view/plugin-reviews/post-grid' );
25
+ define('post_grid_pro_url','http://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/' );
26
+ define('post_grid_demo_url', 'http://www.pickplugins.com/demo/post-grid/' );
27
+ define('post_grid_conatct_url', 'http://pickplugins.com/contact/' );
28
+ define('post_grid_qa_url', 'http://www.pickplugins.com/questions/' );
29
define('post_grid_plugin_name', 'Post Grid' );
30
+ define('post_grid_version', '2.0.5' );
31
define('post_grid_customer_type', 'free' );
32
define('post_grid_share_url', 'https://wordpress.org/plugins/post-grid/' );
33
define('post_grid_tutorial_video_url', '//www.youtube.com/embed/WynnnEl0ncM' );
62
63
$class_post_grid_functions = new class_post_grid_functions();
64
65
+ $post_grid_layout_content = get_option('post_grid_layout_content');
66
+ if(empty($post_grid_layout_content)){
67
+ $layout_content_list = $class_post_grid_functions->layout_content_list();
68
+ update_option('post_grid_layout_content', $layout_content_list);
69
+ }
70
71
+
72
+ //$layout_hover_list = $class_post_grid_functions->layout_hover_list();
73
+ //update_option('post_grid_layout_hover', $layout_hover_list);
74
75
do_action( 'post_grid_action_install' );
76
77
+
78
+
79
}
80
81
public function post_grid_uninstall(){
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
Donate link: http://pickplugins.com
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.3.1
7
- Stable tag: 2.0.0
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -17,10 +17,10 @@ Query post from your custom post types and create awesome grid.
17
Use any where by short-codes and easy customize via short-code generator page, you can display or hide grid meta items like post authors, post date, post categories, post tags and etc.
18
19
20
- ### Post Grid by http://paratheme.com
21
22
* [See the Live demo!&raquo;](http://www.pickplugins.com/demo/post-grid/)
23
- * [Buy Premium! &raquo;](http://paratheme.com/items/post-grid-awesome-grid-for-any-post-type/)
24
25
26
<strong>Plugin Features</strong><br />
@@ -36,10 +36,34 @@ Use any where by short-codes and easy customize via short-code generator page, y
36
* Custom grid width.
37
* Custom grid thumbnail height.
38
39
40
41
- <strong>Video Tutorial(with premium version interface)</strong><br />
42
- https://www.youtube.com/watch?v=WynnnEl0ncM
43
44
45
== Installation ==
@@ -79,6 +103,23 @@ then paste this shortcode anywhere in your page to display grid<br />
79
80
== Changelog ==
81
82
= 2.0.0 =
83
* 21/10/2015 update - Recoded & Redesign plugin.
84
3
Donate link: http://pickplugins.com
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.5
7
+ Stable tag: 2.0.5
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
17
Use any where by short-codes and easy customize via short-code generator page, you can display or hide grid meta items like post authors, post date, post categories, post tags and etc.
18
19
20
+ ### Post Grid by http://pickplugins.com
21
22
* [See the Live demo!&raquo;](http://www.pickplugins.com/demo/post-grid/)
23
+ * [Buy Premium! &raquo;](http://www.pickplugins.com/item/post-grid-crete-awesome-grid-from-any-post-type-for-wordpress/)
24
25
26
<strong>Plugin Features</strong><br />
36
* Custom grid width.
37
* Custom grid thumbnail height.
38
39
+ <strong> premium features </strong><br />
40
41
+ * 29+ ready skin.
42
+ * Query post by taxonomy(multiple) & terms(multiple).
43
+ * support for WooCommerce, Easy Digital Downloads, WP eCommerce.
44
+ * Display Meta Fields. Custom wrapper (HTML) for meta values display.
45
+ * Display Short-code via Meta Fields.
46
+ * Display YouTube, vimeo video, soundcloud, mp3, gallery, Font Awesome icons on thumbnail area.
47
+ * Filterable Grid by custom taxonomy & terms.
48
+ * Ajax load more.
49
+ * Extend grid skin by filter hook.
50
+ * Pagination custom Next , Previous text.
51
+ * Add custom HTML(Shortcodes) via layout editor.
52
+ * Create unlimited layout via layout editor.
53
+ * Post grid for Archive page(category.php, tags.php , custom taxonomy & terms page).
54
+ * Extra query parameter.
55
+
56
+
57
+ <strong>Video Tutorial(with premium version interface)</strong>
58
+
59
+ * [How to install activate & license!&raquo;](https://youtu.be/gzH0uO6IReE)
60
+ * [How to create Post Grid!&raquo;](https://youtu.be/6HwLUBqT7i4)
61
+ * [Post Grid – Query Post!&raquo;](https://youtu.be/FKIcey0ujgo)
62
+ * [Post Grid – Grid Layout!&raquo;](https://youtu.be/g2GSb4chGXQ)
63
+ * [Post Grid – Navigation!&raquo;](https://youtu.be/B12CglBCLJY)
64
+ * [Post Grid – Layout Editor!&raquo;](https://youtu.be/z_tygQ12aJk)
65
+ * [Post Grid – Settings!&raquo;](https://youtu.be/JsPKfENJL8I)
66
67
68
69
== Installation ==
103
104
== Changelog ==
105
106
+
107
+ = 2.0.5 =
108
+ * 17/01/2016 - fix - read more link issue fixed.
109
+ * 17/01/2016 - fix - empty content issue fixed.
110
+
111
+ = 2.0.4 =
112
+ * 13/01/2016 - add - layout overwrite issue fixed.
113
+
114
+ = 2.0.3 =
115
+ * 03/01/2016 - add - post tags linked.
116
+
117
+ = 2.0.2 =
118
+ * 11/12/2015 - fix - shortcode issue fixed.
119
+
120
+ = 2.0.1 =
121
+ * 25/11/2015 add - added two item for layout editor post with link and thumb with link.
122
+
123
= 2.0.0 =
124
* 21/10/2015 update - Recoded & Redesign plugin.
125