The Post Grid - Version 3.1.3

Version Description

  • Fixed: Post Excerpt hide issue in mobile
  • Fixed: Pagination Type selection issue
Download this release

Release Info

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

Code changes from version 3.1.2 to 3.1.3

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.5
6
- Tested up to: 5.8.2
7
- Stable tag: 3.1.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -151,6 +151,10 @@ For any bug or suggestion please mail support@radiustheme.com
151
 
152
  == Changelog ==
153
 
 
 
 
 
154
  = 3.1.2 =
155
  * Added: No post found message in Isotope
156
 
@@ -193,4 +197,4 @@ For any bug or suggestion please mail support@radiustheme.com
193
  * Changed demo link
194
 
195
  = 2.3.6.5 =
196
- * Add New icon
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.5
6
+ Tested up to: 5.9
7
+ Stable tag: 3.1.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
151
 
152
  == Changelog ==
153
 
154
+ = 3.1.3 =
155
+ * Fixed: Post Excerpt hide issue in mobile
156
+ * Fixed: Pagination Type selection issue
157
+
158
  = 3.1.2 =
159
  * Added: No post found message in Isotope
160
 
197
  * Changed demo link
198
 
199
  = 2.3.6.5 =
200
+ * Add New icon
assets/css/thepostgrid.css CHANGED
@@ -548,7 +548,7 @@ body.rt-model-open,
548
  }
549
 
550
  @media (max-width: 991px) {
551
- .rt-tpg-container h3.entry-title a {
552
  overflow: hidden !important;
553
  text-overflow: ellipsis !important;
554
  display: -webkit-box !important;
@@ -748,7 +748,7 @@ span.more-loading {
748
  }
749
 
750
  @media (max-width: 991px) {
751
- .rt-tpg-container .rt-holder .tpg-excerpt {
752
  overflow: hidden !important;
753
  text-overflow: ellipsis !important;
754
  display: -webkit-box !important;
548
  }
549
 
550
  @media (max-width: 991px) {
551
+ .rt-post-overlay .post-img + .post-content .post-title a {
552
  overflow: hidden !important;
553
  text-overflow: ellipsis !important;
554
  display: -webkit-box !important;
748
  }
749
 
750
  @media (max-width: 991px) {
751
+ .rt-tpg-container .rt-post-overlay .post-img + .post-content .tpg-excerpt {
752
  overflow: hidden !important;
753
  text-overflow: ellipsis !important;
754
  display: -webkit-box !important;
assets/images/admin/banner.png ADDED
Binary file
assets/images/admin/client1.jpeg ADDED
Binary file
assets/images/admin/client2.jpeg ADDED
Binary file
lib/classes/rtTPGInit.php CHANGED
@@ -37,6 +37,10 @@ if (!class_exists('rtTPGInit')):
37
  'remove_all_meta_boxes_tgp_sc'
38
  ));
39
  }
 
 
 
 
40
  }
41
 
42
  function remove_all_meta_boxes_tgp_sc() {
@@ -162,18 +166,27 @@ if (!class_exists('rtTPGInit')):
162
  $this,
163
  'rttpg_settings'
164
  ));
 
 
 
 
165
  }
166
 
167
  function rttpg_settings() {
168
  rtTPG()->render_view('settings.settings');
169
  }
170
 
 
 
 
 
171
  public function the_post_grid_load_text_domain() {
172
  load_plugin_textdomain('the-post-grid', false, RT_THE_POST_GRID_LANGUAGE_PATH);
173
  }
174
 
175
  function activate() {
176
  $this->insertDefaultData();
 
177
  }
178
 
179
  function deactivate() {
37
  'remove_all_meta_boxes_tgp_sc'
38
  ));
39
  }
40
+ if ( get_option('rttpg_activation_redirect', false) ) {
41
+ delete_option('rttpg_activation_redirect');
42
+ wp_redirect( admin_url('edit.php?post_type=rttpg&page=rttpg_get_help') );
43
+ }
44
  }
45
 
46
  function remove_all_meta_boxes_tgp_sc() {
166
  $this,
167
  'rttpg_settings'
168
  ));
169
+ add_submenu_page('edit.php?post_type=' . rtTPG()->post_type, __('Get Help'), __('Get Help', "the-post-grid"), 'administrator', 'rttpg_get_help', array(
170
+ $this,
171
+ 'get_help'
172
+ ));
173
  }
174
 
175
  function rttpg_settings() {
176
  rtTPG()->render_view('settings.settings');
177
  }
178
 
179
+ function get_help() {
180
+ rtTPG()->render_view('pages.help');
181
+ }
182
+
183
  public function the_post_grid_load_text_domain() {
184
  load_plugin_textdomain('the-post-grid', false, RT_THE_POST_GRID_LANGUAGE_PATH);
185
  }
186
 
187
  function activate() {
188
  $this->insertDefaultData();
189
+ add_option('rttpg_activation_redirect', true);
190
  }
191
 
192
  function deactivate() {
lib/classes/rtTPGOptions.php CHANGED
@@ -525,7 +525,7 @@ if ( ! class_exists( 'rtTPGOptions' ) ):
525
  'posts_loading_type' => [
526
  "type" => "radio",
527
  "label" => "Pagination Type",
528
- 'holderClass' => "pagination-item posts-loading-type tpg-hidden pro-field",
529
  "alignment" => "vertical",
530
  "default" => 'pagination',
531
  "options" => $this->postLoadingType(),
@@ -1395,12 +1395,9 @@ if ( ! class_exists( 'rtTPGOptions' ) ):
1395
  }
1396
 
1397
  function postLoadingType() {
1398
- return [
1399
- 'pagination' => "Pagination",
1400
- 'pagination_ajax' => "Ajax Number Pagination ( Only for Grid )",
1401
- 'load_more' => "Load more button (by ajax loading)",
1402
- 'load_on_scroll' => "Load more on scroll (by ajax loading)",
1403
- ];
1404
  }
1405
 
1406
  function scGridOpt() {
525
  'posts_loading_type' => [
526
  "type" => "radio",
527
  "label" => "Pagination Type",
528
+ 'holderClass' => "pagination-item posts-loading-type tpg-hidden",
529
  "alignment" => "vertical",
530
  "default" => 'pagination',
531
  "options" => $this->postLoadingType(),
1395
  }
1396
 
1397
  function postLoadingType() {
1398
+ return apply_filters('rttpg_pagination_type', [
1399
+ 'pagination' => __("Pagination", "the-post-grid")
1400
+ ]);
 
 
 
1401
  }
1402
 
1403
  function scGridOpt() {
lib/views/pages/help.php ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+ /**
6
+ * Get Help
7
+ */
8
+ ?>
9
+ <style>
10
+ .rttpg-help-wrapper {
11
+ width: 60%;
12
+ margin: 0 auto;
13
+ }
14
+ .rttpg-help-section iframe {
15
+ max-width: 100%;
16
+ }
17
+ .rttpg-help-wrapper .rt-document-box .rt-box-title {
18
+ margin-bottom: 30px;
19
+ }
20
+ .rttpg-help-wrapper .rttpg-help-section {
21
+ margin-top: 30px;
22
+ }
23
+ .rttpg-feature-list ul {
24
+ display: flex;
25
+ flex-wrap: wrap;
26
+ }
27
+ .rttpg-feature-list ul li {
28
+ margin: 5px 10px 5px 0;
29
+ width: calc(50% - 20px);
30
+ flex: 0 0 calc(50% - 20px);
31
+ font-size: 14px;
32
+ }
33
+ .rttpg-feature-list ul li i {
34
+ color: var(--rt-primary-color);
35
+ }
36
+ .rttpg-pro-feature-content {
37
+ display: flex;
38
+ flex-wrap: wrap;
39
+ }
40
+ .rttpg-pro-feature-content .rt-document-box + .rt-document-box {
41
+ margin-left: 30px;
42
+ }
43
+ .rttpg-pro-feature-content .rt-document-box {
44
+ flex: 0 0 calc(33.3333% - 60px);
45
+ margin-top: 30px;
46
+ }
47
+ .rttpg-testimonials {
48
+ display: flex;
49
+ flex-wrap: wrap;
50
+ }
51
+ .rttpg-testimonials .rttpg-testimonial + .rttpg-testimonial {
52
+ margin-left: 30px;
53
+ }
54
+ .rttpg-testimonials .rttpg-testimonial {
55
+ flex: 0 0 calc(50% - 30px)
56
+ }
57
+ .rttpg-testimonial .client-info {
58
+ display: flex;
59
+ flex-wrap: wrap;
60
+ font-size: 14px;
61
+ align-items: center;
62
+ }
63
+ .rttpg-testimonial .client-info img {
64
+ width: 60px;
65
+ height: 60px;
66
+ object-fit: cover;
67
+ border-radius: 50%;
68
+ margin-right: 10px;
69
+ }
70
+ .rttpg-testimonial .client-info .rttpg-star {
71
+ color: var(--rt-primary-color);
72
+ }
73
+ .rttpg-testimonial .client-info .client-name {
74
+ display: block;
75
+ color: #000;
76
+ font-size: 16px;
77
+ font-weight: 600;
78
+ margin: 8px 0 5px;
79
+ }
80
+ .rttpg-call-to-action {
81
+ background-size: cover;
82
+ background-repeat: no-repeat;
83
+ background-position: center;
84
+ height: 150px;
85
+ color: #ffffff;
86
+ margin: 30px 0;
87
+ }
88
+ .rttpg-call-to-action a {
89
+ color: inherit;
90
+ display: flex;
91
+ flex-wrap: wrap;
92
+ width: 100%;
93
+ height: 100%;
94
+ flex: 1;
95
+ justify-content: center;
96
+ align-items: center;
97
+ font-size: 28px;
98
+ font-weight: 700;
99
+ text-decoration: none;
100
+ }
101
+ .rttpg-call-to-action:hover a {
102
+ text-decoration: underline;
103
+ }
104
+ @media all and (max-width: 1400px) {
105
+ .rttpg-help-wrapper {
106
+ width: 80%;
107
+ }
108
+ .rttpg-help-section iframe {
109
+ max-width: 100%;
110
+ height: 320px;
111
+ }
112
+ }
113
+ @media all and (max-width: 991px) {
114
+ .rttpg-help-wrapper {
115
+ width: calc(100% - 40px);
116
+ }
117
+ .rttpg-pro-feature-content .rt-document-box {
118
+ flex: 0 0 calc(50% - 55px)
119
+ }
120
+ .rttpg-pro-feature-content .rt-document-box + .rt-document-box + .rt-document-box {
121
+ margin-left: 0;
122
+ }
123
+ }
124
+ @media all and (max-width: 600px) {
125
+ .rt-document-box .rt-box-content .rt-box-title {
126
+ line-height: 28px;
127
+ }
128
+ .rttpg-help-section iframe {
129
+ height: 250px;
130
+ }
131
+ .rttpg-feature-list ul {
132
+ display: block;
133
+ }
134
+ .rttpg-feature-list ul li {
135
+ width: 100%;
136
+ }
137
+ .rttpg-call-to-action a {
138
+ padding-left: 25px;
139
+ padding-right: 25px;
140
+ font-size: 20px;
141
+ line-height: 28px;
142
+ width: 80%;
143
+ }
144
+ .rttpg-testimonials {
145
+ display: block;
146
+ }
147
+ .rttpg-testimonials .rttpg-testimonial + .rttpg-testimonial {
148
+ margin-left: 0;
149
+ margin-top: 30px;
150
+ }
151
+ .rttpg-pro-feature-content .rt-document-box {
152
+ width: 100%;
153
+ flex: auto;
154
+ }
155
+ .rttpg-pro-feature-content .rt-document-box + .rt-document-box {
156
+ margin-left: 0;
157
+ }
158
+ }
159
+ </style>
160
+ <div class="rttpg-help-wrapper" >
161
+ <div class="rttpg-help-section rt-document-box">
162
+ <div class="rt-box-icon"><i class="dashicons dashicons-media-document"></i></div>
163
+ <div class="rt-box-content">
164
+ <h3 class="rt-box-title">Thank you for installing The Post Grid</h3>
165
+ <iframe width="800" height="450" src="https://www.youtube.com/embed/_xZBDU4kgKk" title="The Post Grid" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
166
+ </div>
167
+ </div>
168
+ <div class="rt-document-box">
169
+ <div class="rt-box-icon"><i class="dashicons dashicons-megaphone"></i></div>
170
+ <div class="rt-box-content rttpg-feature-list">
171
+ <h3 class="rt-box-title">Pro Features</h3>
172
+ <ul>
173
+ <li><i class="dashicons dashicons-saved"></i> Custom Post Type Supported.</li>
174
+ <li><i class="dashicons dashicons-saved"></i> Advanced Post Filter.</li>
175
+ <li><i class="dashicons dashicons-saved"></i> Single or Multi Popup.</li>
176
+ <li><i class="dashicons dashicons-saved"></i> Custom Image Size.</li>
177
+ <li><i class="dashicons dashicons-saved"></i> Meta Position Control.</li>
178
+ <li><i class="dashicons dashicons-saved"></i> Social Share.</li>
179
+ <li><i class="dashicons dashicons-saved"></i> 62 Different Layouts.</li>
180
+ <li><i class="dashicons dashicons-saved"></i> Slider Layout.</li>
181
+ <li><i class="dashicons dashicons-saved"></i> Fields Selection.</li>
182
+ <li><i class="dashicons dashicons-saved"></i> All Text and Color control.</li>
183
+ <li><i class="dashicons dashicons-saved"></i> AJAX Pagination (Load more and Load on Scrolling).</li>
184
+ <li><i class="dashicons dashicons-saved"></i> More Features...</li>
185
+ </ul>
186
+ </div>
187
+ </div>
188
+ <div class="rttpg-call-to-action" style="background-image: url('<?php echo rtTPG()->assetsUrl; ?>images/admin/banner.png')">
189
+ <a href="https://www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/" target="_blank" class="rt-update-pro-btn">
190
+ Update Pro To Get More Features
191
+ </a>
192
+ </div>
193
+ <div class="rt-document-box">
194
+ <div class="rt-box-icon"><i class="dashicons dashicons-thumbs-up"></i></div>
195
+ <div class="rt-box-content">
196
+ <h3 class="rt-box-title">Happy clients of the Post Grid</h3>
197
+ <div class="rttpg-testimonials">
198
+ <div class="rttpg-testimonial">
199
+ <p>So much functionality in the free version. Thank you very much! Many plugins offer a crippled free version to push into going to their PRO. The guys here provide a free version that brings lots of value also. I needed a flexible grid solution to my website that has dozen of grids in different configurations and the plugin could do everything I needed. Very easy to use and support it fantastic. Highly Recomended!</p>
200
+ <div class="client-info">
201
+ <img src="<?php echo rtTPG()->assetsUrl; ?>images/admin/client1.jpeg">
202
+ <div>
203
+ <div class="rttpg-star">
204
+ <i class="dashicons dashicons-star-filled"></i>
205
+ <i class="dashicons dashicons-star-filled"></i>
206
+ <i class="dashicons dashicons-star-filled"></i>
207
+ <i class="dashicons dashicons-star-filled"></i>
208
+ <i class="dashicons dashicons-star-filled"></i>
209
+ </div>
210
+ <span class="client-name">Erez Speiser</span>
211
+ </div>
212
+ </div>
213
+ </div>
214
+ <div class="rttpg-testimonial">
215
+ <p>The post grid is a fantastic plugin! It’s very easy to figure out without having to read any documentation. That is the mark of an excellent developer who knows how to make the user interface easy for people to use. I love that I can take my simple theme, and jazz it up with a nice grid, without having to go to a page builder. I am now teaching this to all my WordPress students 🙂 Hats off to this amazing plugin!</p>
216
+ <div class="client-info">
217
+ <img src="<?php echo rtTPG()->assetsUrl; ?>images/admin/client2.jpeg">
218
+ <div>
219
+ <div class="rttpg-star">
220
+ <i class="dashicons dashicons-star-filled"></i>
221
+ <i class="dashicons dashicons-star-filled"></i>
222
+ <i class="dashicons dashicons-star-filled"></i>
223
+ <i class="dashicons dashicons-star-filled"></i>
224
+ <i class="dashicons dashicons-star-filled"></i>
225
+ </div>
226
+ <span class="client-name">Christina Hills</span>
227
+ </div>
228
+ </div>
229
+ </div>
230
+ </div>
231
+ </div>
232
+ </div>
233
+ <div class="rttpg-pro-feature-content">
234
+ <div class="rt-document-box">
235
+ <div class="rt-box-icon"><i class="dashicons dashicons-media-document"></i></div>
236
+ <div class="rt-box-content">
237
+ <h3 class="rt-box-title">Documentation</h3>
238
+ <p>Get started by spending some time with the documentation we included step by step process with screenshots with video.</p>
239
+ <a href="https://www.radiustheme.com/docs/the-post-grid/" target="_blank" class="rt-admin-btn">Documentation</a>
240
+ </div>
241
+ </div>
242
+ <div class="rt-document-box">
243
+ <div class="rt-box-icon"><i class="dashicons dashicons-sos"></i></div>
244
+ <div class="rt-box-content">
245
+ <h3 class="rt-box-title">Need Help?</h3>
246
+ <p>Stuck with something? Please create a
247
+ <a href="https://www.radiustheme.com/contact/">ticket here</a> or post on <a href="https://www.facebook.com/groups/234799147426640/">facebook group</a>. For emergency case join our <a href="https://www.radiustheme.com/">live chat</a>.</p>
248
+ <a href="https://www.radiustheme.com/contact/" target="_blank" class="rt-admin-btn">Get Support</a>
249
+ </div>
250
+ </div>
251
+ <div class="rt-document-box">
252
+ <div class="rt-box-icon"><i class="dashicons dashicons-smiley"></i></div>
253
+ <div class="rt-box-content">
254
+ <h3 class="rt-box-title">Happy Our Work?</h3>
255
+ <p>If you happy with <strong>The Post Grid</strong> plugin, please add a rating. It would be glad to us.</p>
256
+ <a href="https://wordpress.org/support/plugin/the-post-grid/reviews/?filter=5#new-post" class="rt-admin-btn" target="_blank">Post Review</a>
257
+ </div>
258
+ </div>
259
+ </div>
260
+ </div>
261
+ <?php
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: 3.1.2
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: 3.1.3
8
  * Text Domain: the-post-grid
9
  * Domain Path: /languages
10
  * Author URI: https://radiustheme.com/