Version Description
- Added: All block list added in wordpress.org
Download this release
Release Info
Developer | techlabpro1 |
Plugin | The Post Grid |
Version | 5.0.3 |
Comparing to | |
See all releases |
Code changes from version 5.0.2 to 5.0.3
- README.txt +12 -7
- app/Controllers/Admin/NoticeController.php +23 -29
- app/Controllers/Admin/UpgradeController.php +3 -2
- app/Controllers/Blocks/GridHoverLayout.php +3 -0
- app/Controllers/Blocks/GridLayout.php +4 -0
- app/Controllers/Blocks/ListLayout.php +3 -0
- app/Widgets/elementor/rtTPGElementorQuery.php +2 -2
- assets/js/blocks-placeholder.js +7 -0
- languages/the-post-grid.pot +2 -2
- templates/page-template/template-canvas.php +29 -29
- templates/page-template/template-full-width.php +44 -44
- the-post-grid.php +3 -3
README.txt
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
-
=== The Post Grid – Shortcode, Gutenberg Blocks
|
2 |
Contributors: techlabpro1
|
3 |
Donate link:
|
4 |
-
Tags: post grid, content grid, post
|
5 |
-
Requires at least: 5
|
6 |
Tested up to: 6.1
|
7 |
-
Stable tag: 5.0.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
-
|
|
|
12 |
|
13 |
👉 [Plugin Demo](https://www.radiustheme.com/demo/plugins/the-post-grid/) | [Elementor Demo](https://www.radiustheme.com/demo/plugins/the-post-grid-elementor/) | [Gutenberg Demo](https://www.radiustheme.com/demo/plugins/the-post-grid-gutenberg/) | [Documentation](https://www.radiustheme.com/docs/the-post-grid/) | [Get Pro](https://www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/) 👈
|
14 |
|
@@ -343,13 +344,14 @@ With the Post Grid PRO, you get to use the Single Page Builder, which is based o
|
|
343 |
|
344 |
= Can I control style? =
|
345 |
|
346 |
-
* Yes you can style and control all from the post grid
|
347 |
|
348 |
== Screenshots ==
|
349 |
|
350 |
01. Gutenberg Layout
|
351 |
02. Gutenberg Controls
|
352 |
03. Layout 1
|
|
|
353 |
04. Layout 2 Single
|
354 |
05. Isotope Layout
|
355 |
06. Shortcode Post Source
|
@@ -361,6 +363,9 @@ With the Post Grid PRO, you get to use the Single Page Builder, which is based o
|
|
361 |
|
362 |
== Changelog ==
|
363 |
|
|
|
|
|
|
|
364 |
= 5.0.2 =
|
365 |
* Improved: Some styles.
|
366 |
|
@@ -503,4 +508,4 @@ With the Post Grid PRO, you get to use the Single Page Builder, which is based o
|
|
503 |
* Changed demo link
|
504 |
|
505 |
= 2.3.6.5 =
|
506 |
-
* Add New icon
|
1 |
+
=== The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid ===
|
2 |
Contributors: techlabpro1
|
3 |
Donate link:
|
4 |
+
Tags: post grid, content grid, post display, post slider, post grid elementor addon
|
5 |
+
Requires at least: 4.5
|
6 |
Tested up to: 6.1
|
7 |
+
Stable tag: 5.0.3
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
11 |
+
Post Grid Plugin allows you to create grid, list, grid hover, filter and slider view. Post Grid Plugin is Easy to use as shortcode, Gutenberg Blocks or Elementor Addon.
|
12 |
+
|
13 |
|
14 |
👉 [Plugin Demo](https://www.radiustheme.com/demo/plugins/the-post-grid/) | [Elementor Demo](https://www.radiustheme.com/demo/plugins/the-post-grid-elementor/) | [Gutenberg Demo](https://www.radiustheme.com/demo/plugins/the-post-grid-gutenberg/) | [Documentation](https://www.radiustheme.com/docs/the-post-grid/) | [Get Pro](https://www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/) 👈
|
15 |
|
344 |
|
345 |
= Can I control style? =
|
346 |
|
347 |
+
* Yes you can style and control all from the post grid plugin.
|
348 |
|
349 |
== Screenshots ==
|
350 |
|
351 |
01. Gutenberg Layout
|
352 |
02. Gutenberg Controls
|
353 |
03. Layout 1
|
354 |
+
03. Layout 1
|
355 |
04. Layout 2 Single
|
356 |
05. Isotope Layout
|
357 |
06. Shortcode Post Source
|
363 |
|
364 |
== Changelog ==
|
365 |
|
366 |
+
= 5.0.3 =
|
367 |
+
* Added: All block list added in wordpress.org
|
368 |
+
|
369 |
= 5.0.2 =
|
370 |
* Improved: Some styles.
|
371 |
|
508 |
* Changed demo link
|
509 |
|
510 |
= 2.3.6.5 =
|
511 |
+
* Add New icon
|
app/Controllers/Admin/NoticeController.php
CHANGED
@@ -21,15 +21,15 @@ class NoticeController {
|
|
21 |
*/
|
22 |
public function __construct() {
|
23 |
$current = time();
|
24 |
-
$black_friday = mktime( 0, 0, 0, 11, 18, 2022 ) <= $current && $current <= mktime( 0, 0, 0,
|
25 |
|
26 |
if ( $black_friday ) {
|
27 |
add_action( 'admin_init', [ $this, 'black_friday_notice' ] );
|
28 |
}
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
|
34 |
add_action( 'admin_init', [ __CLASS__, 'rttpg_notice' ] );
|
35 |
add_filter( 'post_row_actions', [ $this, 'filter_post_row_actions' ], 11, 2 );
|
@@ -40,11 +40,9 @@ class NoticeController {
|
|
40 |
public function filter_post_row_actions( $actions, $post ) {
|
41 |
|
42 |
// return $post->ID;
|
43 |
-
|
44 |
}
|
45 |
|
46 |
-
|
47 |
-
|
48 |
/**
|
49 |
* Notice
|
50 |
*
|
@@ -104,11 +102,8 @@ class NoticeController {
|
|
104 |
* @return void
|
105 |
*/
|
106 |
public static function black_friday_notice() {
|
107 |
-
if ( get_option( '
|
108 |
-
|
109 |
-
$GLOBALS['rt_tpg_2022_notice'] = 'rttpg_bf_2022';
|
110 |
-
self::notice();
|
111 |
-
}
|
112 |
}
|
113 |
}
|
114 |
|
@@ -135,10 +130,9 @@ class NoticeController {
|
|
135 |
<img alt="<?php echo esc_attr( $plugin_name ); ?>"
|
136 |
src="<?php echo esc_url( rtTPG()->get_assets_uri( 'images/post-grid-gif.gif' ) ); ?>"
|
137 |
width="74px" height="74px" style="grid-row: 1 / 4; align-self: center;justify-self: center"/>
|
138 |
-
<h3 style="margin:0;"><?php echo sprintf( '%s
|
139 |
<p style="margin:0 0 2px;">Don't miss out on our biggest sale of the year! Get your
|
140 |
-
<b><?php echo esc_html( $plugin_name ); ?> plan</b> with <b>UPTO 50% OFF</b>! Limited time offer
|
141 |
-
expires on December 2.</p>
|
142 |
<p style="margin:0;">
|
143 |
<a class="button button-primary" href="<?php echo esc_url( $download_link ); ?>"
|
144 |
target="_blank">Buy Now</a>
|
@@ -154,21 +148,21 @@ class NoticeController {
|
|
154 |
function () {
|
155 |
?>
|
156 |
<script type="text/javascript">
|
157 |
-
(function (
|
158 |
-
$(
|
159 |
-
setTimeout(
|
160 |
-
$(
|
161 |
-
.on(
|
162 |
e.preventDefault();
|
163 |
-
$.post(
|
164 |
'action': 'rttpg_dismiss_admin_notice',
|
165 |
'nonce': <?php echo wp_json_encode( wp_create_nonce( 'rttpg-dismissible-notice' ) ); ?>
|
166 |
-
}
|
167 |
-
$(
|
168 |
-
}
|
169 |
-
}, 1000
|
170 |
-
}
|
171 |
-
})(
|
172 |
</script>
|
173 |
<?php
|
174 |
}
|
@@ -217,7 +211,7 @@ class NoticeController {
|
|
217 |
|
218 |
if ( $now >= $remind_due ) {
|
219 |
add_action( 'admin_notices', [ __CLASS__, 'rttpg_display_admin_notice' ] );
|
220 |
-
}
|
221 |
add_action( 'admin_notices', [ __CLASS__, 'rttpg_display_admin_notice' ] );
|
222 |
}
|
223 |
}
|
@@ -448,4 +442,4 @@ class NoticeController {
|
|
448 |
}
|
449 |
}
|
450 |
}
|
451 |
-
}
|
21 |
*/
|
22 |
public function __construct() {
|
23 |
$current = time();
|
24 |
+
$black_friday = mktime( 0, 0, 0, 11, 18, 2022 ) <= $current && $current <= mktime( 0, 0, 0, 1, 6, 2023 );
|
25 |
|
26 |
if ( $black_friday ) {
|
27 |
add_action( 'admin_init', [ $this, 'black_friday_notice' ] );
|
28 |
}
|
29 |
|
30 |
+
register_activation_hook( RT_THE_POST_GRID_PLUGIN_ACTIVE_FILE_NAME, [ $this, 'rttpg_activation_time' ] );
|
31 |
+
add_action( 'admin_init', [ $this, 'rttpg_check_installation_time' ] );
|
32 |
+
add_action( 'admin_init', [ __CLASS__, 'rttpg_spare_me' ], 5 );
|
33 |
|
34 |
add_action( 'admin_init', [ __CLASS__, 'rttpg_notice' ] );
|
35 |
add_filter( 'post_row_actions', [ $this, 'filter_post_row_actions' ], 11, 2 );
|
40 |
public function filter_post_row_actions( $actions, $post ) {
|
41 |
|
42 |
// return $post->ID;
|
43 |
+
return $actions;
|
44 |
}
|
45 |
|
|
|
|
|
46 |
/**
|
47 |
* Notice
|
48 |
*
|
102 |
* @return void
|
103 |
*/
|
104 |
public static function black_friday_notice() {
|
105 |
+
if ( get_option( 'rttpg_bf_2023' ) != '1' ) {
|
106 |
+
self::notice();
|
|
|
|
|
|
|
107 |
}
|
108 |
}
|
109 |
|
130 |
<img alt="<?php echo esc_attr( $plugin_name ); ?>"
|
131 |
src="<?php echo esc_url( rtTPG()->get_assets_uri( 'images/post-grid-gif.gif' ) ); ?>"
|
132 |
width="74px" height="74px" style="grid-row: 1 / 4; align-self: center;justify-self: center"/>
|
133 |
+
<h3 style="margin:0;"><?php echo sprintf( '%s Cyber Week Deal!!', esc_html( $plugin_name ) ); ?></h3>
|
134 |
<p style="margin:0 0 2px;">Don't miss out on our biggest sale of the year! Get your
|
135 |
+
<b><?php echo esc_html( $plugin_name ); ?> plan</b> with <b>UPTO 50% OFF</b>! Limited time offer!!!</p>
|
|
|
136 |
<p style="margin:0;">
|
137 |
<a class="button button-primary" href="<?php echo esc_url( $download_link ); ?>"
|
138 |
target="_blank">Buy Now</a>
|
148 |
function () {
|
149 |
?>
|
150 |
<script type="text/javascript">
|
151 |
+
(function ($) {
|
152 |
+
$(function () {
|
153 |
+
setTimeout(function () {
|
154 |
+
$('div[data-rttpg-dismissable] .notice-dismiss, div[data-rttpg-dismissable] .button-dismiss')
|
155 |
+
.on('click', function (e) {
|
156 |
e.preventDefault();
|
157 |
+
$.post(ajaxurl, {
|
158 |
'action': 'rttpg_dismiss_admin_notice',
|
159 |
'nonce': <?php echo wp_json_encode( wp_create_nonce( 'rttpg-dismissible-notice' ) ); ?>
|
160 |
+
});
|
161 |
+
$(e.target).closest('.is-dismissible').remove();
|
162 |
+
});
|
163 |
+
}, 1000);
|
164 |
+
});
|
165 |
+
})(jQuery);
|
166 |
</script>
|
167 |
<?php
|
168 |
}
|
211 |
|
212 |
if ( $now >= $remind_due ) {
|
213 |
add_action( 'admin_notices', [ __CLASS__, 'rttpg_display_admin_notice' ] );
|
214 |
+
} else if ( ( $past_date >= $install_date ) && '2' !== $nobug ) {
|
215 |
add_action( 'admin_notices', [ __CLASS__, 'rttpg_display_admin_notice' ] );
|
216 |
}
|
217 |
}
|
442 |
}
|
443 |
}
|
444 |
}
|
445 |
+
}
|
app/Controllers/Admin/UpgradeController.php
CHANGED
@@ -104,8 +104,9 @@ class UpgradeController {
|
|
104 |
/**
|
105 |
* Notification
|
106 |
*
|
107 |
-
* @param array
|
108 |
* @param string $file File.
|
|
|
109 |
* @return array
|
110 |
*/
|
111 |
public function show_update_notification( $links, $file ) {
|
@@ -117,4 +118,4 @@ class UpgradeController {
|
|
117 |
|
118 |
return (array) $links;
|
119 |
}
|
120 |
-
}
|
104 |
/**
|
105 |
* Notification
|
106 |
*
|
107 |
+
* @param array $links Link.
|
108 |
* @param string $file File.
|
109 |
+
*
|
110 |
* @return array
|
111 |
*/
|
112 |
public function show_update_notification( $links, $file ) {
|
118 |
|
119 |
return (array) $links;
|
120 |
}
|
121 |
+
}
|
app/Controllers/Blocks/GridHoverLayout.php
CHANGED
@@ -28,6 +28,9 @@ class GridHoverLayout extends BlockBase {
|
|
28 |
* @return void
|
29 |
*/
|
30 |
public function register_blocks() {
|
|
|
|
|
|
|
31 |
register_block_type(
|
32 |
$this->block_type,
|
33 |
[
|
28 |
* @return void
|
29 |
*/
|
30 |
public function register_blocks() {
|
31 |
+
if ( ! function_exists( 'register_block_type' ) ) {
|
32 |
+
return;
|
33 |
+
}
|
34 |
register_block_type(
|
35 |
$this->block_type,
|
36 |
[
|
app/Controllers/Blocks/GridLayout.php
CHANGED
@@ -21,6 +21,7 @@ class GridLayout extends BlockBase {
|
|
21 |
'prefix' => $this->prefix,
|
22 |
'default_layout' => 'grid-layout1'
|
23 |
];
|
|
|
24 |
}
|
25 |
|
26 |
/**
|
@@ -28,6 +29,9 @@ class GridLayout extends BlockBase {
|
|
28 |
* @return void
|
29 |
*/
|
30 |
public function register_blocks() {
|
|
|
|
|
|
|
31 |
register_block_type(
|
32 |
$this->block_type,
|
33 |
[
|
21 |
'prefix' => $this->prefix,
|
22 |
'default_layout' => 'grid-layout1'
|
23 |
];
|
24 |
+
|
25 |
}
|
26 |
|
27 |
/**
|
29 |
* @return void
|
30 |
*/
|
31 |
public function register_blocks() {
|
32 |
+
if ( ! function_exists( 'register_block_type' ) ) {
|
33 |
+
return;
|
34 |
+
}
|
35 |
register_block_type(
|
36 |
$this->block_type,
|
37 |
[
|
app/Controllers/Blocks/ListLayout.php
CHANGED
@@ -31,6 +31,9 @@ class ListLayout extends BlockBase {
|
|
31 |
* @return void
|
32 |
*/
|
33 |
public function register_blocks() {
|
|
|
|
|
|
|
34 |
register_block_type(
|
35 |
$this->block_type,
|
36 |
[
|
31 |
* @return void
|
32 |
*/
|
33 |
public function register_blocks() {
|
34 |
+
if ( ! function_exists( 'register_block_type' ) ) {
|
35 |
+
return;
|
36 |
+
}
|
37 |
register_block_type(
|
38 |
$this->block_type,
|
39 |
[
|
app/Widgets/elementor/rtTPGElementorQuery.php
CHANGED
@@ -22,7 +22,7 @@ class rtTPGElementorQuery {
|
|
22 |
*
|
23 |
* @return array
|
24 |
*/
|
25 |
-
public static function post_query( $data, $prefix = '' ) {
|
26 |
$post_type = isset( $data['post_type'] ) ? $data['post_type'] : 'post';
|
27 |
$args = [
|
28 |
'post_type' => [ $post_type ],
|
@@ -231,7 +231,7 @@ class rtTPGElementorQuery {
|
|
231 |
*
|
232 |
* @return array
|
233 |
*/
|
234 |
-
public static function post_query_builder( $data, $prefix = '', $template_type = '' ) {
|
235 |
if ( 'single' === $template_type ) {
|
236 |
$rt_post_cat = wp_get_object_terms( $data['last_post_id'], $data['taxonomy_lists'], [ 'fields' => 'ids' ] );
|
237 |
$args = [
|
22 |
*
|
23 |
* @return array
|
24 |
*/
|
25 |
+
public static function post_query( $data, $prefix = '' ): array {
|
26 |
$post_type = isset( $data['post_type'] ) ? $data['post_type'] : 'post';
|
27 |
$args = [
|
28 |
'post_type' => [ $post_type ],
|
231 |
*
|
232 |
* @return array
|
233 |
*/
|
234 |
+
public static function post_query_builder( $data, $prefix = '', $template_type = '' ): array {
|
235 |
if ( 'single' === $template_type ) {
|
236 |
$rt_post_cat = wp_get_object_terms( $data['last_post_id'], $data['taxonomy_lists'], [ 'fields' => 'ids' ] );
|
237 |
$args = [
|
assets/js/blocks-placeholder.js
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Block Placeholder for WordPress.org
|
3 |
+
*/
|
4 |
+
|
5 |
+
registerBlockType( 'rttpg/tpg-grid-layout', { title:'Grid Layout', description: 'The post grid block, Grid layout' } );
|
6 |
+
registerBlockType( 'rttpg/tpg-grid-hover-layout', { title:'Grid Hover Layout', description: 'The post grid block, Grid Hover layout' } );
|
7 |
+
registerBlockType( 'rttpg/tpg-list-layout', { title:'List Layout', description: 'The post grid block, List layout' } );
|
languages/the-post-grid.pot
CHANGED
@@ -6,7 +6,7 @@ msgstr ""
|
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
-
"POT-Creation-Date: 2022-
|
10 |
"X-Poedit-Basepath: ..\n"
|
11 |
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
12 |
"X-Poedit-SearchPath-0: .\n"
|
@@ -146,7 +146,7 @@ msgstr ""
|
|
146 |
msgid "Loading ..."
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: ../app/Controllers/ShortcodeController.php:916, ../app/Controllers/Admin/AdminAjaxController.php:1153, ../app/Controllers/Blocks/GridHoverLayout.php:
|
150 |
msgid "No post found"
|
151 |
msgstr ""
|
152 |
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
9 |
+
"POT-Creation-Date: 2022-12-02 09:23+0000\n"
|
10 |
"X-Poedit-Basepath: ..\n"
|
11 |
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
12 |
"X-Poedit-SearchPath-0: .\n"
|
146 |
msgid "Loading ..."
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: ../app/Controllers/ShortcodeController.php:916, ../app/Controllers/Admin/AdminAjaxController.php:1153, ../app/Controllers/Blocks/GridHoverLayout.php:193, ../app/Controllers/Blocks/GridLayout.php:183, ../app/Controllers/Blocks/ListLayout.php:175, ../app/Widgets/elementor/widgets/grid-hover-layout-archive.php:264, ../app/Widgets/elementor/widgets/grid-hover-layout.php:283, ../app/Widgets/elementor/widgets/grid-layout-archive.php:262, ../app/Widgets/elementor/widgets/grid-layout.php:290, ../app/Widgets/elementor/widgets/list-layout-archive.php:259, ../app/Widgets/elementor/widgets/list-layout.php:276, ../app/Widgets/elementor/widgets/slider-layout-archive.php:322, ../app/Widgets/elementor/widgets/slider-layout-archive.php:383, ../app/Widgets/elementor/widgets/slider-layout.php:311, ../app/Widgets/elementor/widgets/slider-layout.php:371
|
150 |
msgid "No post found"
|
151 |
msgstr ""
|
152 |
|
templates/page-template/template-canvas.php
CHANGED
@@ -1,30 +1,30 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* The Post Grid Template Canvas
|
4 |
-
* @package RT_TPG
|
5 |
-
*/
|
6 |
-
|
7 |
-
// Do not allow directly accessing this file.
|
8 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
-
exit( 'This script cannot be accessed directly.' );
|
10 |
-
}
|
11 |
-
?>
|
12 |
-
<!DOCTYPE html>
|
13 |
-
<html <?php language_attributes(); ?>>
|
14 |
-
<head>
|
15 |
-
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
16 |
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
17 |
-
<link rel="profile" href="https://gmpg.org/xfn/11" />
|
18 |
-
<?php if ( ! current_theme_supports( 'title-tag' ) ) : ?>
|
19 |
-
<title><?php echo wp_get_document_title(); ?></title>
|
20 |
-
<?php endif; ?>
|
21 |
-
<?php wp_head(); ?>
|
22 |
-
</head>
|
23 |
-
<body <?php body_class(); ?>>
|
24 |
-
<?php wp_body_open(); ?>
|
25 |
-
<?php while ( have_posts() ) : the_post(); ?>
|
26 |
-
<?php the_content(); ?>
|
27 |
-
<?php endwhile; ?>
|
28 |
-
<?php wp_footer(); ?>
|
29 |
-
</body>
|
30 |
</html>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The Post Grid Template Canvas
|
4 |
+
* @package RT_TPG
|
5 |
+
*/
|
6 |
+
|
7 |
+
// Do not allow directly accessing this file.
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit( 'This script cannot be accessed directly.' );
|
10 |
+
}
|
11 |
+
?>
|
12 |
+
<!DOCTYPE html>
|
13 |
+
<html <?php language_attributes(); ?>>
|
14 |
+
<head>
|
15 |
+
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
16 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
17 |
+
<link rel="profile" href="https://gmpg.org/xfn/11" />
|
18 |
+
<?php if ( ! current_theme_supports( 'title-tag' ) ) : ?>
|
19 |
+
<title><?php echo wp_get_document_title(); ?></title>
|
20 |
+
<?php endif; ?>
|
21 |
+
<?php wp_head(); ?>
|
22 |
+
</head>
|
23 |
+
<body <?php body_class(); ?>>
|
24 |
+
<?php wp_body_open(); ?>
|
25 |
+
<?php while ( have_posts() ) : the_post(); ?>
|
26 |
+
<?php the_content(); ?>
|
27 |
+
<?php endwhile; ?>
|
28 |
+
<?php wp_footer(); ?>
|
29 |
+
</body>
|
30 |
</html>
|
templates/page-template/template-full-width.php
CHANGED
@@ -1,45 +1,45 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* The Post Grid Template Full Width
|
4 |
-
* @package RT_TPG
|
5 |
-
*/
|
6 |
-
|
7 |
-
// Do not allow directly accessing this file.
|
8 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
-
exit( 'This script cannot be accessed directly.' );
|
10 |
-
}
|
11 |
-
|
12 |
-
global $wp_version;
|
13 |
-
if ( version_compare( $wp_version, '5.9', '>=' ) && function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) { ?>
|
14 |
-
<!doctype html>
|
15 |
-
<html <?php language_attributes(); ?>>
|
16 |
-
<head>
|
17 |
-
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
18 |
-
<?php wp_head(); ?>
|
19 |
-
</head>
|
20 |
-
<body <?php body_class(); ?>>
|
21 |
-
<?php wp_body_open(); ?>
|
22 |
-
<div class="wp-site-blocks">
|
23 |
-
<?php
|
24 |
-
$theme = wp_get_theme();
|
25 |
-
$theme_slug = $theme->get( 'TextDomain' );
|
26 |
-
echo do_blocks( '<!-- wp:template-part {"slug":"header","theme":"' . esc_attr( $theme_slug ) . '","tagName":"header","className":"site-header"} /-->' );
|
27 |
-
} else {
|
28 |
-
get_header();
|
29 |
-
}
|
30 |
-
|
31 |
-
while ( have_posts() ) : the_post();
|
32 |
-
the_content();
|
33 |
-
endwhile; // End of the loop.
|
34 |
-
|
35 |
-
if ( version_compare( $wp_version, '5.9', '>=' ) && function_exists( 'wp_is_block_theme' ) && true === wp_is_block_theme() ) {
|
36 |
-
$theme = wp_get_theme();
|
37 |
-
$theme_slug = $theme->get( 'TextDomain' );
|
38 |
-
echo do_blocks('<!-- wp:template-part {"slug":"footer","theme":"' . esc_attr( $theme_slug ) . '","tagName":"footer","className":"site-footer"} /-->');
|
39 |
-
echo '</div>';
|
40 |
-
wp_footer();
|
41 |
-
echo '</body>';
|
42 |
-
echo '</html>';
|
43 |
-
} else {
|
44 |
-
get_footer();
|
45 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The Post Grid Template Full Width
|
4 |
+
* @package RT_TPG
|
5 |
+
*/
|
6 |
+
|
7 |
+
// Do not allow directly accessing this file.
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit( 'This script cannot be accessed directly.' );
|
10 |
+
}
|
11 |
+
|
12 |
+
global $wp_version;
|
13 |
+
if ( version_compare( $wp_version, '5.9', '>=' ) && function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) { ?>
|
14 |
+
<!doctype html>
|
15 |
+
<html <?php language_attributes(); ?>>
|
16 |
+
<head>
|
17 |
+
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
18 |
+
<?php wp_head(); ?>
|
19 |
+
</head>
|
20 |
+
<body <?php body_class(); ?>>
|
21 |
+
<?php wp_body_open(); ?>
|
22 |
+
<div class="wp-site-blocks">
|
23 |
+
<?php
|
24 |
+
$theme = wp_get_theme();
|
25 |
+
$theme_slug = $theme->get( 'TextDomain' );
|
26 |
+
echo do_blocks( '<!-- wp:template-part {"slug":"header","theme":"' . esc_attr( $theme_slug ) . '","tagName":"header","className":"site-header"} /-->' );
|
27 |
+
} else {
|
28 |
+
get_header();
|
29 |
+
}
|
30 |
+
|
31 |
+
while ( have_posts() ) : the_post();
|
32 |
+
the_content();
|
33 |
+
endwhile; // End of the loop.
|
34 |
+
|
35 |
+
if ( version_compare( $wp_version, '5.9', '>=' ) && function_exists( 'wp_is_block_theme' ) && true === wp_is_block_theme() ) {
|
36 |
+
$theme = wp_get_theme();
|
37 |
+
$theme_slug = $theme->get( 'TextDomain' );
|
38 |
+
echo do_blocks('<!-- wp:template-part {"slug":"footer","theme":"' . esc_attr( $theme_slug ) . '","tagName":"footer","className":"site-footer"} /-->');
|
39 |
+
echo '</div>';
|
40 |
+
wp_footer();
|
41 |
+
echo '</body>';
|
42 |
+
echo '</html>';
|
43 |
+
} else {
|
44 |
+
get_footer();
|
45 |
}
|
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: 5.0.
|
8 |
* Text Domain: the-post-grid
|
9 |
* Domain Path: /languages
|
10 |
* Author URI: https://radiustheme.com/
|
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
17 |
exit( 'This script cannot be accessed directly.' );
|
18 |
}
|
19 |
|
20 |
-
define( 'RT_THE_POST_GRID_VERSION', '5.0.
|
21 |
define( 'RT_THE_POST_GRID_AUTHOR', 'RadiusTheme' );
|
22 |
define( 'RT_THE_POST_GRID_NAME', 'The Post Grid' );
|
23 |
define( 'RT_THE_POST_GRID_PLUGIN_FILE', __FILE__ );
|
@@ -29,4 +29,4 @@ define( 'RT_THE_POST_GRID_LANGUAGE_PATH', dirname( plugin_basename( __FILE__ ) )
|
|
29 |
|
30 |
if ( ! class_exists( 'rtTPG' ) ) {
|
31 |
require_once 'app/RtTpg.php';
|
32 |
-
}
|
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: 5.0.3
|
8 |
* Text Domain: the-post-grid
|
9 |
* Domain Path: /languages
|
10 |
* Author URI: https://radiustheme.com/
|
17 |
exit( 'This script cannot be accessed directly.' );
|
18 |
}
|
19 |
|
20 |
+
define( 'RT_THE_POST_GRID_VERSION', '5.0.3' );
|
21 |
define( 'RT_THE_POST_GRID_AUTHOR', 'RadiusTheme' );
|
22 |
define( 'RT_THE_POST_GRID_NAME', 'The Post Grid' );
|
23 |
define( 'RT_THE_POST_GRID_PLUGIN_FILE', __FILE__ );
|
29 |
|
30 |
if ( ! class_exists( 'rtTPG' ) ) {
|
31 |
require_once 'app/RtTpg.php';
|
32 |
+
}
|