Version Description
- Excerpt issue fixed
Download this release
Release Info
Developer | techlabpro1 |
Plugin | The Post Grid |
Version | 1.7 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.7
- README.txt +6 -3
- lib/classes/rtTPGShortCode.php +21 -18
- lib/init.php +1 -1
- the-post-grid.php +1 -1
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: techlabpro1
|
|
3 |
Donate link:
|
4 |
Tags: post grid, content grid, post display, post format, post view, blog display, news display, post
|
5 |
Requires at least: 4
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -18,7 +18,7 @@ The Post Grid is a fully Responsive & Mobile friendly plugin to display your pag
|
|
18 |
|
19 |
[youtube https://www.youtube.com/watch?v=V651fm6eaV4]
|
20 |
|
21 |
-
By using The Post Grid plugin you can
|
22 |
|
23 |
= Features =
|
24 |
* Fully responsive and mobile friendly.
|
@@ -136,6 +136,9 @@ For any bug or suggestion please mail support@radiustheme.com
|
|
136 |
|
137 |
== Changelog ==
|
138 |
|
|
|
|
|
|
|
139 |
= 1.6 =
|
140 |
* Excerpt limit in word or characters
|
141 |
* User define excerpt ending(... )
|
3 |
Donate link:
|
4 |
Tags: post grid, content grid, post display, post format, post view, blog display, news display, post
|
5 |
Requires at least: 4
|
6 |
+
Tested up to: 4.8
|
7 |
+
Stable tag: 1.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
18 |
|
19 |
[youtube https://www.youtube.com/watch?v=V651fm6eaV4]
|
20 |
|
21 |
+
By using The Post Grid plugin you can display your post in Grid List & Isotope view in minutes, without any line of Coding...
|
22 |
|
23 |
= Features =
|
24 |
* Fully responsive and mobile friendly.
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
+
= 1.7 =
|
140 |
+
* Excerpt issue fixed
|
141 |
+
|
142 |
= 1.6 =
|
143 |
* Excerpt limit in word or characters
|
144 |
* User define excerpt ending(... )
|
lib/classes/rtTPGShortCode.php
CHANGED
@@ -217,7 +217,7 @@ if ( ! class_exists( 'rtTPGShortCode' ) ):
|
|
217 |
$arg['items'] = isset( $scMeta['item_fields'] ) ? ( $scMeta['item_fields'] ? $scMeta['item_fields'] : array() ) : array();
|
218 |
$postQuery = new WP_Query( $args );
|
219 |
// Start layout
|
220 |
-
$html
|
221 |
$extClass = null;
|
222 |
if ( $isIsotope ) {
|
223 |
$extClass = ' tpg-isotope';
|
@@ -251,16 +251,19 @@ if ( ! class_exists( 'rtTPGShortCode' ) ):
|
|
251 |
|
252 |
|
253 |
while ( $postQuery->have_posts() ) : $postQuery->the_post();
|
254 |
-
$pID
|
255 |
-
$arg['pID']
|
256 |
-
$arg['title']
|
257 |
-
$arg['pLink']
|
258 |
-
$arg['author']
|
259 |
-
$cc
|
260 |
-
$arg['date']
|
261 |
-
$excerpt
|
262 |
-
|
263 |
-
$
|
|
|
|
|
|
|
264 |
$arg['categories'] = get_the_term_list( $pID, 'category', null, ', ' );
|
265 |
$arg['tags'] = get_the_term_list( $pID, 'post_tag', null, ', ' );
|
266 |
if ( $isIsotope ) {
|
@@ -309,7 +312,7 @@ if ( ! class_exists( 'rtTPGShortCode' ) ):
|
|
309 |
$found = $postQuery->found_posts;
|
310 |
}
|
311 |
$max_num_pages = ceil( $found / $posts_per_page );
|
312 |
-
$html
|
313 |
}
|
314 |
$html .= "</div>"; // container rt-tpg
|
315 |
|
@@ -333,7 +336,7 @@ if ( ! class_exists( 'rtTPGShortCode' ) ):
|
|
333 |
$css = null;
|
334 |
$css .= "<style type='text/css' media='all'>";
|
335 |
// Variable
|
336 |
-
$primaryColor = ( !empty( $scMeta['primary_color'][0] ) ? $scMeta['primary_color'][0] : null );
|
337 |
if ( $primaryColor ) {
|
338 |
$css .= "#{$layout} .rt-detail i,#{$layout} .rt-detail .post-meta-user a,#{$layout} .rt-detail .post-meta-category a{";
|
339 |
$css .= "color:" . $primaryColor . ";";
|
@@ -342,31 +345,31 @@ if ( ! class_exists( 'rtTPGShortCode' ) ):
|
|
342 |
$css .= "background-color:" . $primaryColor . ";";
|
343 |
$css .= "}";
|
344 |
}
|
345 |
-
$button_bg_color = ( !empty( $scMeta['button_bg_color'][0] ) ? $scMeta['button_bg_color'][0] : null );
|
346 |
if ( $button_bg_color ) {
|
347 |
$css .= "#{$layout} .pagination li a,#{$layout} .rt-tpg-isotope-buttons button,#{$layout} .rt-detail .read-more a{";
|
348 |
$css .= "background-color:" . $button_bg_color . ";";
|
349 |
$css .= "}";
|
350 |
}
|
351 |
-
$button_hover_bg_color = ( !empty( $scMeta['button_hover_bg_color'][0] ) ? $scMeta['button_hover_bg_color'][0] : null );
|
352 |
if ( $button_hover_bg_color ) {
|
353 |
$css .= "#{$layout} .pagination li a:hover,#{$layout} .rt-tpg-isotope-buttons button:hover,#{$layout} .rt-detail .read-more a:hover{";
|
354 |
$css .= "background-color:" . $button_hover_bg_color . ";";
|
355 |
$css .= "}";
|
356 |
}
|
357 |
-
$button_active_bg_color = ( !empty( $scMeta['button_active_bg_color'][0] ) ? $scMeta['button_active_bg_color'][0] : null );
|
358 |
if ( $button_active_bg_color ) {
|
359 |
$css .= "#{$layout} .pagination li.active span, #{$layout} .rt-tpg-isotope-buttons button.selected{";
|
360 |
$css .= "background-color:" . $button_active_bg_color . ";";
|
361 |
$css .= "}";
|
362 |
}
|
363 |
-
$button_text_color = ( !empty( $scMeta['button_text_color'][0] ) ? $scMeta['button_text_color'][0] : null );
|
364 |
if ( $button_text_color ) {
|
365 |
$css .= "#{$layout} .pagination li a,#{$layout} .rt-tpg-isotope-buttons button,#{$layout} .rt-detail .read-more a{";
|
366 |
$css .= "color:" . $button_text_color . ";";
|
367 |
$css .= "}";
|
368 |
}
|
369 |
-
$title_color = ( !empty( $scMeta['title_color'][0] ) ? $scMeta['title_color'][0] : null );
|
370 |
if ( $title_color ) {
|
371 |
$css .= "#{$layout} .rt-detail h2.entry-title a{";
|
372 |
$css .= "color:" . $title_color . ";";
|
217 |
$arg['items'] = isset( $scMeta['item_fields'] ) ? ( $scMeta['item_fields'] ? $scMeta['item_fields'] : array() ) : array();
|
218 |
$postQuery = new WP_Query( $args );
|
219 |
// Start layout
|
220 |
+
$html .= "<div class='container-fluid rt-tpg-container' id='{$layoutID}'>";
|
221 |
$extClass = null;
|
222 |
if ( $isIsotope ) {
|
223 |
$extClass = ' tpg-isotope';
|
251 |
|
252 |
|
253 |
while ( $postQuery->have_posts() ) : $postQuery->the_post();
|
254 |
+
$pID = get_the_ID();
|
255 |
+
$arg['pID'] = $pID;
|
256 |
+
$arg['title'] = get_the_title();
|
257 |
+
$arg['pLink'] = get_permalink();
|
258 |
+
$arg['author'] = '<a href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '">' . get_the_author() . '</a>';
|
259 |
+
$cc = wp_count_comments( $pID );
|
260 |
+
$arg['date'] = get_the_date();
|
261 |
+
$arg['excerpt'] = get_the_excerpt();
|
262 |
+
if ( $excerpt_limit ) {
|
263 |
+
$arg['excerpt'] = $rtTPG->strip_tags_content( $arg['excerpt'], $excerpt_type, $excerpt_limit,
|
264 |
+
$excerpt_more_text );
|
265 |
+
}
|
266 |
+
|
267 |
$arg['categories'] = get_the_term_list( $pID, 'category', null, ', ' );
|
268 |
$arg['tags'] = get_the_term_list( $pID, 'post_tag', null, ', ' );
|
269 |
if ( $isIsotope ) {
|
312 |
$found = $postQuery->found_posts;
|
313 |
}
|
314 |
$max_num_pages = ceil( $found / $posts_per_page );
|
315 |
+
$html .= $rtTPG->rt_pagination( $max_num_pages, $args['posts_per_page'] );
|
316 |
}
|
317 |
$html .= "</div>"; // container rt-tpg
|
318 |
|
336 |
$css = null;
|
337 |
$css .= "<style type='text/css' media='all'>";
|
338 |
// Variable
|
339 |
+
$primaryColor = ( ! empty( $scMeta['primary_color'][0] ) ? $scMeta['primary_color'][0] : null );
|
340 |
if ( $primaryColor ) {
|
341 |
$css .= "#{$layout} .rt-detail i,#{$layout} .rt-detail .post-meta-user a,#{$layout} .rt-detail .post-meta-category a{";
|
342 |
$css .= "color:" . $primaryColor . ";";
|
345 |
$css .= "background-color:" . $primaryColor . ";";
|
346 |
$css .= "}";
|
347 |
}
|
348 |
+
$button_bg_color = ( ! empty( $scMeta['button_bg_color'][0] ) ? $scMeta['button_bg_color'][0] : null );
|
349 |
if ( $button_bg_color ) {
|
350 |
$css .= "#{$layout} .pagination li a,#{$layout} .rt-tpg-isotope-buttons button,#{$layout} .rt-detail .read-more a{";
|
351 |
$css .= "background-color:" . $button_bg_color . ";";
|
352 |
$css .= "}";
|
353 |
}
|
354 |
+
$button_hover_bg_color = ( ! empty( $scMeta['button_hover_bg_color'][0] ) ? $scMeta['button_hover_bg_color'][0] : null );
|
355 |
if ( $button_hover_bg_color ) {
|
356 |
$css .= "#{$layout} .pagination li a:hover,#{$layout} .rt-tpg-isotope-buttons button:hover,#{$layout} .rt-detail .read-more a:hover{";
|
357 |
$css .= "background-color:" . $button_hover_bg_color . ";";
|
358 |
$css .= "}";
|
359 |
}
|
360 |
+
$button_active_bg_color = ( ! empty( $scMeta['button_active_bg_color'][0] ) ? $scMeta['button_active_bg_color'][0] : null );
|
361 |
if ( $button_active_bg_color ) {
|
362 |
$css .= "#{$layout} .pagination li.active span, #{$layout} .rt-tpg-isotope-buttons button.selected{";
|
363 |
$css .= "background-color:" . $button_active_bg_color . ";";
|
364 |
$css .= "}";
|
365 |
}
|
366 |
+
$button_text_color = ( ! empty( $scMeta['button_text_color'][0] ) ? $scMeta['button_text_color'][0] : null );
|
367 |
if ( $button_text_color ) {
|
368 |
$css .= "#{$layout} .pagination li a,#{$layout} .rt-tpg-isotope-buttons button,#{$layout} .rt-detail .read-more a{";
|
369 |
$css .= "color:" . $button_text_color . ";";
|
370 |
$css .= "}";
|
371 |
}
|
372 |
+
$title_color = ( ! empty( $scMeta['title_color'][0] ) ? $scMeta['title_color'][0] : null );
|
373 |
if ( $title_color ) {
|
374 |
$css .= "#{$layout} .rt-detail h2.entry-title a{";
|
375 |
$css .= "color:" . $title_color . ";";
|
lib/init.php
CHANGED
@@ -12,7 +12,7 @@ class rtTPG
|
|
12 |
|
13 |
$this->options = array(
|
14 |
'settings' => 'rt_the_post_grid_settings',
|
15 |
-
'version' => '1.
|
16 |
'installed_version' => 'rt_the_post_grid_current_version'
|
17 |
);
|
18 |
$this->defaultSettings = array(
|
12 |
|
13 |
$this->options = array(
|
14 |
'settings' => 'rt_the_post_grid_settings',
|
15 |
+
'version' => '1.7',
|
16 |
'installed_version' => 'rt_the_post_grid_current_version'
|
17 |
);
|
18 |
$this->defaultSettings = array(
|
the-post-grid.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://demo.radiustheme.com/wordpress/plugins/the-post-grid/
|
5 |
* Description: Fast & Easy way to display WordPress post in Grid, List & Isotope view ( filter by category, tag, author..) without a single line of coding.
|
6 |
* Author: RadiusTheme
|
7 |
-
* Version: 1.
|
8 |
* Text Domain: the-post-grid
|
9 |
* Domain Path: /languages
|
10 |
* Author URI: https://radiustheme.com/
|
4 |
* Plugin URI: http://demo.radiustheme.com/wordpress/plugins/the-post-grid/
|
5 |
* Description: Fast & Easy way to display WordPress post in Grid, List & Isotope view ( filter by category, tag, author..) without a single line of coding.
|
6 |
* Author: RadiusTheme
|
7 |
+
* Version: 1.7
|
8 |
* Text Domain: the-post-grid
|
9 |
* Domain Path: /languages
|
10 |
* Author URI: https://radiustheme.com/
|