The Post Grid - Version 5.0.2

Version Description

  • Improved: Some styles.
Download this release

Release Info

Developer techlabpro1
Plugin Icon 128x128 The Post Grid
Version 5.0.2
Comparing to
See all releases

Code changes from version 5.0.1 to 5.0.2

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: post grid, content grid, post block, post grid gutengerg block, post grid elementor addon
5
  Requires at least: 5.0
6
  Tested up to: 6.1
7
- Stable tag: 5.0.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -361,10 +361,12 @@ With the Post Grid PRO, you get to use the Single Page Builder, which is based o
361
 
362
  == Changelog ==
363
 
 
 
 
364
  = 5.0.1 =
365
  * Fixed: Parse error in the earlier PHP versions.
366
 
367
-
368
  = 5.0.0 =
369
  * Added: 3 Gutenberg Blocks (Grid Layout, List Layout, and Grid Hover Layout) with 9 layouts for Post Grid
370
  * Fixed: Shortcode bug fixed
@@ -501,4 +503,4 @@ With the Post Grid PRO, you get to use the Single Page Builder, which is based o
501
  * Changed demo link
502
 
503
  = 2.3.6.5 =
504
- * Add New icon
4
  Tags: post grid, content grid, post block, post grid gutengerg block, post grid elementor addon
5
  Requires at least: 5.0
6
  Tested up to: 6.1
7
+ Stable tag: 5.0.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
361
 
362
  == Changelog ==
363
 
364
+ = 5.0.2 =
365
+ * Improved: Some styles.
366
+
367
  = 5.0.1 =
368
  * Fixed: Parse error in the earlier PHP versions.
369
 
 
370
  = 5.0.0 =
371
  * Added: 3 Gutenberg Blocks (Grid Layout, List Layout, and Grid Hover Layout) with 9 layouts for Post Grid
372
  * Fixed: Shortcode bug fixed
503
  * Changed demo link
504
 
505
  = 2.3.6.5 =
506
+ * Add New icon
app/Controllers/Admin/NoticeController.php CHANGED
@@ -21,16 +21,16 @@ class NoticeController {
21
  */
22
  public function __construct() {
23
  $current = time();
24
- $black_friday = mktime( 0, 0, 0, 11, 22, 2021 ) <= $current && $current <= mktime( 0, 0, 0, 12, 6, 2021 );
25
 
26
  if ( $black_friday ) {
27
  add_action( 'admin_init', [ $this, 'black_friday_notice' ] );
28
- } else {
29
- register_activation_hook( RT_THE_POST_GRID_PLUGIN_ACTIVE_FILE_NAME, [ $this, 'rttpg_activation_time' ] );
30
- add_action( 'admin_init', [ $this, 'rttpg_check_installation_time' ] );
31
- add_action( 'admin_init', [ __CLASS__, 'rttpg_spare_me' ], 5 );
32
  }
33
 
 
 
 
 
34
  add_action( 'admin_init', [ __CLASS__, 'rttpg_notice' ] );
35
  add_filter( 'post_row_actions', [ $this, 'filter_post_row_actions' ], 11, 2 );
36
  add_filter( 'page_row_actions', [ $this, 'filter_post_row_actions' ], 11, 2 );
@@ -104,9 +104,9 @@ class NoticeController {
104
  * @return void
105
  */
106
  public static function black_friday_notice() {
107
- if ( get_option( 'rttpg_bf_2021' ) != '1' ) {
108
- if ( ! isset( $GLOBALS['rt_tpg_2021_notice'] ) ) {
109
- $GLOBALS['rt_tpg_2021_notice'] = 'rttpg_bf_2021';
110
  self::notice();
111
  }
112
  }
@@ -130,15 +130,15 @@ class NoticeController {
130
  function () {
131
  $plugin_name = 'The Post Grid';
132
  $download_link = 'https://www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/'; ?>
133
- <div class="notice notice-info is-dismissible" data-rttpg-dismissable="rttpg_bf_2021"
134
  style="display:grid;grid-template-columns: 100px auto;padding-top: 25px; padding-bottom: 22px;">
135
  <img alt="<?php echo esc_attr( $plugin_name ); ?>"
136
- src="<?php echo esc_url( rtTPG()->get_assets_uri( 'images/icon-128x128.png' ) ); ?>"
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 Black Friday Deal!!', esc_html( $plugin_name ) ); ?></h3>
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 5.</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>
@@ -179,7 +179,7 @@ class NoticeController {
179
  function () {
180
  check_ajax_referer( 'rttpg-dismissible-notice', 'nonce' );
181
 
182
- update_option( 'rttpg_bf_2021', '1' );
183
  wp_die();
184
  }
185
  );
21
  */
22
  public function __construct() {
23
  $current = time();
24
+ $black_friday = mktime( 0, 0, 0, 11, 18, 2022 ) <= $current && $current <= mktime( 0, 0, 0, 12, 2, 2022 );
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 );
36
  add_filter( 'page_row_actions', [ $this, 'filter_post_row_actions' ], 11, 2 );
104
  * @return void
105
  */
106
  public static function black_friday_notice() {
107
+ if ( get_option( 'rttpg_bf_2022' ) != '1' ) {
108
+ if ( ! isset( $GLOBALS['rt_tpg_2022_notice'] ) ) {
109
+ $GLOBALS['rt_tpg_2022_notice'] = 'rttpg_bf_2022';
110
  self::notice();
111
  }
112
  }
130
  function () {
131
  $plugin_name = 'The Post Grid';
132
  $download_link = 'https://www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/'; ?>
133
+ <div class="notice notice-info is-dismissible" data-rttpg-dismissable="rttpg_bf_2022"
134
  style="display:grid;grid-template-columns: 100px auto;padding-top: 25px; padding-bottom: 22px;">
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 Black Friday Deal!!', esc_html( $plugin_name ) ); ?></h3>
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>
179
  function () {
180
  check_ajax_referer( 'rttpg-dismissible-notice', 'nonce' );
181
 
182
+ update_option( 'rttpg_bf_2022', '1' );
183
  wp_die();
184
  }
185
  );
assets/images/post-grid-gif.gif ADDED
Binary file
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.1
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.1' );
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.2
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.2' );
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
+ }