Version Description
- Added Image Size
- Fixed Shortcode Preview Icon issue
Download this release
Release Info
Developer | techlabpro1 |
Plugin | The Post Grid |
Version | 2.3.6.4 |
Comparing to | |
See all releases |
Code changes from version 2.3.6.3 to 2.3.6.4
- README.txt +6 -2
- assets/css/admin.css +14 -0
- assets/css/thepostgrid.css +2 -2
- assets/js/admin.js +0 -3
- languages/the-post-grid-bn_BD.mo +0 -0
- languages/the-post-grid-bn_BD.po +0 -278
- lib/classes/rtTPGHelper.php +18 -4
- lib/classes/rtTPGShortCode.php +1 -0
- lib/views/layouts/isotope1.php +2 -2
- lib/views/layouts/layout1.php +2 -2
- lib/views/layouts/layout2.php +2 -2
- lib/views/layouts/layout3.php +4 -4
- 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.5
|
6 |
-
Tested up to: 5.7
|
7 |
-
Stable tag: 2.3.6.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -140,6 +140,10 @@ For any bug or suggestion please mail support@radiustheme.com
|
|
140 |
|
141 |
== Changelog ==
|
142 |
|
|
|
|
|
|
|
|
|
143 |
= 2.3.6.3 =
|
144 |
* Add WordPress 5.7 support
|
145 |
|
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.7.2
|
7 |
+
Stable tag: 2.3.6.4
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
140 |
|
141 |
== Changelog ==
|
142 |
|
143 |
+
= 2.3.6.4 =
|
144 |
+
* Added Image Size
|
145 |
+
* Fixed Shortcode Preview Icon issue
|
146 |
+
|
147 |
= 2.3.6.3 =
|
148 |
* Add WordPress 5.7 support
|
149 |
|
assets/css/admin.css
CHANGED
@@ -445,6 +445,20 @@ input.large-text.code.rt-code-sc {
|
|
445 |
padding: 11px;
|
446 |
}
|
447 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
/************************** Others END ****************************/
|
449 |
|
450 |
|
445 |
padding: 11px;
|
446 |
}
|
447 |
|
448 |
+
.rt-tpg-container .layout3 .rt-holder .rt-img-holder .overlay .link-holder,
|
449 |
+
.rt-tpg-container .layout2 .rt-holder .rt-img-holder .overlay .link-holder {
|
450 |
+
position: static;
|
451 |
+
}
|
452 |
+
|
453 |
+
.rt-tpg-container .rt-holder .overlay .view-details {
|
454 |
+
position: absolute;
|
455 |
+
top: 50%;
|
456 |
+
left: 50%;
|
457 |
+
margin-top: -18px;
|
458 |
+
margin-left: -18px;
|
459 |
+
z-index: 99;
|
460 |
+
}
|
461 |
+
|
462 |
/************************** Others END ****************************/
|
463 |
|
464 |
|
assets/css/thepostgrid.css
CHANGED
@@ -477,8 +477,8 @@
|
|
477 |
display: inline-block;
|
478 |
}
|
479 |
|
480 |
-
.rt-tpg-container .layout3 .rt-holder .rt-img-holder > a img
|
481 |
-
.layout3 .rt-holder .rt-img-holder .overlay {
|
482 |
border-radius: 50%;
|
483 |
}
|
484 |
|
477 |
display: inline-block;
|
478 |
}
|
479 |
|
480 |
+
.rt-tpg-container .layout3 .rt-holder .rt-img-holder.rounded > a img,
|
481 |
+
.layout3 .rt-holder .rt-img-holder.rounded .overlay {
|
482 |
border-radius: 50%;
|
483 |
}
|
484 |
|
assets/js/admin.js
CHANGED
@@ -236,7 +236,6 @@
|
|
236 |
});
|
237 |
});
|
238 |
|
239 |
-
|
240 |
function rtTPGIsotopeFilter($this) {
|
241 |
var arg = "post_type=" + $this.val();
|
242 |
var bindElement = $this;
|
@@ -264,7 +263,6 @@
|
|
264 |
|
265 |
}
|
266 |
|
267 |
-
|
268 |
function thpShowHideScMeta() {
|
269 |
|
270 |
var layout = $("#rt-tpg-sc-layout").val();
|
@@ -292,7 +290,6 @@
|
|
292 |
$(".rt-tpg-filter-item.term-filter-item").hide();
|
293 |
}
|
294 |
|
295 |
-
|
296 |
if ($("#rt-feature-image").is(':checked')) {
|
297 |
$(".rt-field-wrapper.feature-image-options").hide();
|
298 |
} else {
|
236 |
});
|
237 |
});
|
238 |
|
|
|
239 |
function rtTPGIsotopeFilter($this) {
|
240 |
var arg = "post_type=" + $this.val();
|
241 |
var bindElement = $this;
|
263 |
|
264 |
}
|
265 |
|
|
|
266 |
function thpShowHideScMeta() {
|
267 |
|
268 |
var layout = $("#rt-tpg-sc-layout").val();
|
290 |
$(".rt-tpg-filter-item.term-filter-item").hide();
|
291 |
}
|
292 |
|
|
|
293 |
if ($("#rt-feature-image").is(':checked')) {
|
294 |
$(".rt-field-wrapper.feature-image-options").hide();
|
295 |
} else {
|
languages/the-post-grid-bn_BD.mo
DELETED
Binary file
|
languages/the-post-grid-bn_BD.po
DELETED
@@ -1,278 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
4 |
-
"Project-Id-Version: The Post Grid\n"
|
5 |
-
"POT-Creation-Date: 2017-01-05 16:56+0600\n"
|
6 |
-
"PO-Revision-Date: 2018-02-15 13:09+0600\n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 1.8.5\n"
|
12 |
-
"X-Poedit-Basepath: ..\n"
|
13 |
-
"X-Poedit-WPHeader: the-post-grid.php\n"
|
14 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
16 |
-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
17 |
-
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
18 |
-
"Last-Translator: \n"
|
19 |
-
"Language: bn_BD\n"
|
20 |
-
"X-Poedit-SearchPath-0: .\n"
|
21 |
-
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
22 |
-
|
23 |
-
#: lib/classes/rtTPGAjaxResponse.php:27
|
24 |
-
msgid "Settings successfully updated"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: lib/classes/rtTPGAjaxResponse.php:32
|
28 |
-
msgid "Security Error !!"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: lib/classes/rtTPGAjaxResponse.php:58
|
32 |
-
msgid "<div class=\"field-holder\">No Taxonomy found</div>"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: lib/classes/rtTPGAjaxResponse.php:62 lib/classes/rtTPGAjaxResponse.php:81
|
36 |
-
#: lib/classes/rtTPGAjaxResponse.php:120
|
37 |
-
msgid "Security error"
|
38 |
-
msgstr ""
|
39 |
-
|
40 |
-
#: lib/classes/rtTPGAjaxResponse.php:134
|
41 |
-
msgid "Select Short code"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: lib/classes/rtTPGAjaxResponse.php:136
|
45 |
-
msgid "Default"
|
46 |
-
msgstr ""
|
47 |
-
|
48 |
-
#: lib/classes/rtTPGAjaxResponse.php:145
|
49 |
-
msgid "No shortCode found."
|
50 |
-
msgstr ""
|
51 |
-
|
52 |
-
#. Plugin Name of the plugin/theme
|
53 |
-
#: lib/classes/rtTPGInit.php:21 lib/classes/rtTPGInit.php:22
|
54 |
-
msgid "The Post Grid"
|
55 |
-
msgstr ""
|
56 |
-
|
57 |
-
#: lib/classes/rtTPGInit.php:23
|
58 |
-
msgid "Add New Grid"
|
59 |
-
msgstr ""
|
60 |
-
|
61 |
-
#: lib/classes/rtTPGInit.php:24
|
62 |
-
msgid "All Grids"
|
63 |
-
msgstr ""
|
64 |
-
|
65 |
-
#: lib/classes/rtTPGInit.php:25
|
66 |
-
msgid "Add New Post Grid"
|
67 |
-
msgstr ""
|
68 |
-
|
69 |
-
#: lib/classes/rtTPGInit.php:26
|
70 |
-
msgid "Edit Post Grid"
|
71 |
-
msgstr ""
|
72 |
-
|
73 |
-
#: lib/classes/rtTPGInit.php:27
|
74 |
-
msgid "New Post Grid"
|
75 |
-
msgstr ""
|
76 |
-
|
77 |
-
#: lib/classes/rtTPGInit.php:28
|
78 |
-
msgid "View Post Grid"
|
79 |
-
msgstr ""
|
80 |
-
|
81 |
-
#: lib/classes/rtTPGInit.php:29
|
82 |
-
msgid "Search Post Grids"
|
83 |
-
msgstr ""
|
84 |
-
|
85 |
-
#: lib/classes/rtTPGInit.php:30
|
86 |
-
msgid "No Post Grids found"
|
87 |
-
msgstr ""
|
88 |
-
|
89 |
-
#: lib/classes/rtTPGInit.php:31
|
90 |
-
msgid "No Post Grids found in Trash"
|
91 |
-
msgstr ""
|
92 |
-
|
93 |
-
#: lib/classes/rtTPGInit.php:143
|
94 |
-
msgid "Settings"
|
95 |
-
msgstr ""
|
96 |
-
|
97 |
-
#: lib/classes/rtTPGInit.php:156 lib/classes/rtTPGInit.php:159
|
98 |
-
msgid "Field group updated."
|
99 |
-
msgstr ""
|
100 |
-
|
101 |
-
#: lib/classes/rtTPGInit.php:157
|
102 |
-
msgid "Custom field updated."
|
103 |
-
msgstr ""
|
104 |
-
|
105 |
-
#: lib/classes/rtTPGInit.php:158
|
106 |
-
msgid "Custom field deleted."
|
107 |
-
msgstr ""
|
108 |
-
|
109 |
-
#: lib/classes/rtTPGInit.php:161
|
110 |
-
#, php-format
|
111 |
-
msgid "Field group restored to revision from %s"
|
112 |
-
msgstr ""
|
113 |
-
|
114 |
-
#: lib/classes/rtTPGInit.php:162
|
115 |
-
msgid "Field group published."
|
116 |
-
msgstr ""
|
117 |
-
|
118 |
-
#: lib/classes/rtTPGInit.php:163
|
119 |
-
msgid "Field group saved."
|
120 |
-
msgstr ""
|
121 |
-
|
122 |
-
#: lib/classes/rtTPGInit.php:164
|
123 |
-
msgid "Field group submitted."
|
124 |
-
msgstr ""
|
125 |
-
|
126 |
-
#: lib/classes/rtTPGInit.php:165
|
127 |
-
msgid "Field group scheduled for."
|
128 |
-
msgstr ""
|
129 |
-
|
130 |
-
#: lib/classes/rtTPGInit.php:166
|
131 |
-
msgid "Field group draft updated."
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: lib/classes/rtTPGMeta.php:26
|
135 |
-
msgid "Shortcode"
|
136 |
-
msgstr ""
|
137 |
-
|
138 |
-
#: lib/classes/rtTPGMeta.php:76
|
139 |
-
msgid "Short Code Generator"
|
140 |
-
msgstr ""
|
141 |
-
|
142 |
-
#: lib/classes/rtTPGMeta.php:108
|
143 |
-
msgid "Post Source"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#: lib/classes/rtTPGMeta.php:109
|
147 |
-
msgid "Layout Settings"
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: lib/classes/rtTPGMeta.php:110
|
151 |
-
msgid "Field Selection"
|
152 |
-
msgstr ""
|
153 |
-
|
154 |
-
#: lib/classes/rtTPGMeta.php:111
|
155 |
-
msgid "Style"
|
156 |
-
msgstr ""
|
157 |
-
|
158 |
-
#: lib/classes/rtTPGOptions.php:73
|
159 |
-
msgid "List of post IDs to show (comma-separated values, for example: 1,2,3)"
|
160 |
-
msgstr ""
|
161 |
-
|
162 |
-
#: lib/classes/rtTPGOptions.php:80
|
163 |
-
msgid "List of post IDs to hide (comma-separated values, for example: 1,2,3)"
|
164 |
-
msgstr ""
|
165 |
-
|
166 |
-
#: lib/classes/rtTPGOptions.php:87
|
167 |
-
msgid "The number of posts to show. Set empty to show all found posts."
|
168 |
-
msgstr ""
|
169 |
-
|
170 |
-
#: lib/classes/rtTPGOptions.php:178
|
171 |
-
msgid ""
|
172 |
-
"If value of Limit setting is not blank (empty), this value should be smaller "
|
173 |
-
"than Limit value."
|
174 |
-
msgstr ""
|
175 |
-
|
176 |
-
#: lib/classes/rtTPGOptions.php:202
|
177 |
-
msgid ""
|
178 |
-
"Excerpt limit only integer number is allowed, Leave it blank for full "
|
179 |
-
"excerpt. Note: This will remove all html tag"
|
180 |
-
msgstr ""
|
181 |
-
|
182 |
-
#: lib/classes/rtTPGOptions.php:265
|
183 |
-
msgid "Feature Image"
|
184 |
-
msgstr ""
|
185 |
-
|
186 |
-
#: lib/classes/rtTPGOptions.php:266
|
187 |
-
msgid "First Image from content"
|
188 |
-
msgstr ""
|
189 |
-
|
190 |
-
#: lib/classes/rtTPGOptions.php:289
|
191 |
-
msgid "Title"
|
192 |
-
msgstr ""
|
193 |
-
|
194 |
-
#: lib/classes/rtTPGOptions.php:290
|
195 |
-
msgid "Excerpt"
|
196 |
-
msgstr ""
|
197 |
-
|
198 |
-
#: lib/classes/rtTPGOptions.php:291 lib/views/layouts/layout1.php:53
|
199 |
-
msgid "Read More"
|
200 |
-
msgstr "আরও পড়ুন"
|
201 |
-
|
202 |
-
#: lib/classes/rtTPGOptions.php:292
|
203 |
-
msgid "Post Date"
|
204 |
-
msgstr ""
|
205 |
-
|
206 |
-
#: lib/classes/rtTPGOptions.php:293
|
207 |
-
msgid "Author"
|
208 |
-
msgstr ""
|
209 |
-
|
210 |
-
#: lib/classes/rtTPGOptions.php:294
|
211 |
-
msgid "Categories"
|
212 |
-
msgstr ""
|
213 |
-
|
214 |
-
#: lib/classes/rtTPGOptions.php:295
|
215 |
-
msgid "Tags"
|
216 |
-
msgstr ""
|
217 |
-
|
218 |
-
#: lib/classes/rtTPGOptions.php:296
|
219 |
-
msgid "Comment Count"
|
220 |
-
msgstr ""
|
221 |
-
|
222 |
-
#: lib/classes/rtTPGShortCode.php:242
|
223 |
-
msgid "Show all"
|
224 |
-
msgstr "সকল"
|
225 |
-
|
226 |
-
#: lib/classes/rtTPGShortCode.php:305
|
227 |
-
msgid "No post found"
|
228 |
-
msgstr ""
|
229 |
-
|
230 |
-
#: lib/views/layouts/layout2.php:48 lib/views/layouts/layout3.php:44
|
231 |
-
msgid "Read More .."
|
232 |
-
msgstr "আরো পড়ুন .."
|
233 |
-
|
234 |
-
#: lib/views/settings/settings.php:8
|
235 |
-
msgid "The Post Grid Settings"
|
236 |
-
msgstr ""
|
237 |
-
|
238 |
-
#: lib/views/settings/settings.php:9
|
239 |
-
msgid "General settings"
|
240 |
-
msgstr ""
|
241 |
-
|
242 |
-
#: lib/views/settings/settings.php:10 lib/views/settings/settings.php:56
|
243 |
-
msgid "Documentation"
|
244 |
-
msgstr ""
|
245 |
-
|
246 |
-
#: lib/views/settings/settings.php:52
|
247 |
-
msgid "Short Code"
|
248 |
-
msgstr ""
|
249 |
-
|
250 |
-
#: lib/views/settings/settings.php:54
|
251 |
-
msgid "id = short code id (1,2,3,4)"
|
252 |
-
msgstr ""
|
253 |
-
|
254 |
-
#: lib/views/settings/settings.php:55
|
255 |
-
msgid "title = Shot code title (Not recommended)"
|
256 |
-
msgstr ""
|
257 |
-
|
258 |
-
#: lib/views/settings/settings.php:56
|
259 |
-
msgid "Demo"
|
260 |
-
msgstr ""
|
261 |
-
|
262 |
-
#. Plugin URI of the plugin/theme
|
263 |
-
msgid "http://demo.radiustheme.com/wordpress/plugins/the-post-grid/"
|
264 |
-
msgstr ""
|
265 |
-
|
266 |
-
#. Description of the plugin/theme
|
267 |
-
msgid ""
|
268 |
-
"Fast & Easy way to display WordPress post in Grid, List & Isotope view "
|
269 |
-
"( filter by category, tag, author..) without a single line of coding."
|
270 |
-
msgstr ""
|
271 |
-
|
272 |
-
#. Author of the plugin/theme
|
273 |
-
msgid "RadiusTheme"
|
274 |
-
msgstr ""
|
275 |
-
|
276 |
-
#. Author URI of the plugin/theme
|
277 |
-
msgid "https://radiustheme.com/"
|
278 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/classes/rtTPGHelper.php
CHANGED
@@ -185,20 +185,33 @@ if (!class_exists('rtTPGHelper')):
|
|
185 |
}
|
186 |
|
187 |
function getFeatureImageSrc($post_id = null, $fImgSize = 'medium', $mediaSource = 'feature_image') {
|
188 |
-
$
|
|
|
|
|
|
|
|
|
189 |
if ($mediaSource == 'feature_image') {
|
190 |
if ($aID = get_post_thumbnail_id($post_id)) {
|
191 |
-
$image =
|
192 |
-
$imgSrc = $image[0];
|
193 |
}
|
194 |
} else if ($mediaSource == 'first_image') {
|
195 |
if ($img = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content($post_id),
|
196 |
$matches)) {
|
197 |
$imgSrc = $matches[1][0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
}
|
199 |
}
|
200 |
|
201 |
-
return $
|
202 |
}
|
203 |
|
204 |
function get_the_title($post_id, $data = array()) {
|
@@ -261,6 +274,7 @@ if (!class_exists('rtTPGHelper')):
|
|
261 |
$excerpt = preg_replace('/\W\w+\s*(\W*)$/', '$1', $excerpt);
|
262 |
}
|
263 |
}
|
|
|
264 |
} else {
|
265 |
$allowed_html = array(
|
266 |
'a' => array(
|
185 |
}
|
186 |
|
187 |
function getFeatureImageSrc($post_id = null, $fImgSize = 'medium', $mediaSource = 'feature_image') {
|
188 |
+
global $post;
|
189 |
+
$img_class = "img-responsive";
|
190 |
+
$post_id = ( $post_id ? absint( $post_id ) : $post->ID );
|
191 |
+
$alt = get_the_title( $post_id );
|
192 |
+
$image = null;
|
193 |
if ($mediaSource == 'feature_image') {
|
194 |
if ($aID = get_post_thumbnail_id($post_id)) {
|
195 |
+
$image = wp_get_attachment_image($aID, $fImgSize, '', ['class' => $img_class]);
|
|
|
196 |
}
|
197 |
} else if ($mediaSource == 'first_image') {
|
198 |
if ($img = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', get_the_content($post_id),
|
199 |
$matches)) {
|
200 |
$imgSrc = $matches[1][0];
|
201 |
+
|
202 |
+
// Open image as a string
|
203 |
+
$data = file_get_contents($imgSrc);
|
204 |
+
// getimagesizefromstring function accepts image data as string
|
205 |
+
$info = getimagesizefromstring($data);
|
206 |
+
// Get Image dimension
|
207 |
+
$size = $info[3];
|
208 |
+
|
209 |
+
$image = "<img class='{$img_class}' src='{$imgSrc}' {$size} alt='{$alt}'>";
|
210 |
+
|
211 |
}
|
212 |
}
|
213 |
|
214 |
+
return $image;
|
215 |
}
|
216 |
|
217 |
function get_the_title($post_id, $data = array()) {
|
274 |
$excerpt = preg_replace('/\W\w+\s*(\W*)$/', '$1', $excerpt);
|
275 |
}
|
276 |
}
|
277 |
+
$excerpt = stripslashes($excerpt);
|
278 |
} else {
|
279 |
$allowed_html = array(
|
280 |
'a' => array(
|
lib/classes/rtTPGShortCode.php
CHANGED
@@ -454,6 +454,7 @@ if (!class_exists('rtTPGShortCode')):
|
|
454 |
$css .= "#{$layout} .pagination li.active span,
|
455 |
#{$layout} .rt-tpg-isotope-buttons button.selected{";
|
456 |
$css .= "background-color:" . $button_active_bg_color . ";";
|
|
|
457 |
$css .= "}";
|
458 |
}
|
459 |
if ($button_text_color) {
|
454 |
$css .= "#{$layout} .pagination li.active span,
|
455 |
#{$layout} .rt-tpg-isotope-buttons button.selected{";
|
456 |
$css .= "background-color:" . $button_active_bg_color . ";";
|
457 |
+
$css .= "border-color:" . $button_active_bg_color . ";";
|
458 |
$css .= "}";
|
459 |
}
|
460 |
if ($button_text_color) {
|
lib/views/layouts/isotope1.php
CHANGED
@@ -28,9 +28,9 @@ $html .= sprintf('<div class="%s" data-id="%d">', esc_attr(implode(" ", array_fi
|
|
28 |
</div>', $pLink, $link_target);
|
29 |
}
|
30 |
if($link) {
|
31 |
-
$html .= sprintf('<a href="%s"%s
|
32 |
}else{
|
33 |
-
$html .=
|
34 |
}
|
35 |
$html .= '</div> ';
|
36 |
}
|
28 |
</div>', $pLink, $link_target);
|
29 |
}
|
30 |
if($link) {
|
31 |
+
$html .= sprintf('<a href="%s"%s>%s</a>', $pLink,$link_target, $imgSrc);
|
32 |
}else{
|
33 |
+
$html .= $imgSrc;
|
34 |
}
|
35 |
$html .= '</div> ';
|
36 |
}
|
lib/views/layouts/layout1.php
CHANGED
@@ -23,9 +23,9 @@ $html .= sprintf('<div class="%s" data-id="%d">', esc_attr(implode(" ", [$grid,
|
|
23 |
$html .= sprintf('<div class="overlay"><a class="view-details" href="%s"%s><i class="fa fa-info"></i></a></div>', $pLink, $link_target);
|
24 |
}
|
25 |
if($link) {
|
26 |
-
$html .= sprintf('<a href="%s"%s
|
27 |
}else{
|
28 |
-
$html .=
|
29 |
}
|
30 |
$html .= '</div> ';
|
31 |
}
|
23 |
$html .= sprintf('<div class="overlay"><a class="view-details" href="%s"%s><i class="fa fa-info"></i></a></div>', $pLink, $link_target);
|
24 |
}
|
25 |
if($link) {
|
26 |
+
$html .= sprintf('<a href="%s"%s>%s</a>', $pLink,$link_target, $imgSrc);
|
27 |
}else{
|
28 |
+
$html .= $imgSrc;
|
29 |
}
|
30 |
$html .= '</div> ';
|
31 |
}
|
lib/views/layouts/layout2.php
CHANGED
@@ -30,9 +30,9 @@ $html .= sprintf('<div class="%s" data-id="%d">', esc_attr(implode(" ", [$grid,
|
|
30 |
</div>', $pLink, $link_target);
|
31 |
}
|
32 |
if($link) {
|
33 |
-
$html .= sprintf('<a href="%s"%s
|
34 |
}else{
|
35 |
-
$html .=
|
36 |
}
|
37 |
$html .= '</div>';
|
38 |
$html .= '</div>';
|
30 |
</div>', $pLink, $link_target);
|
31 |
}
|
32 |
if($link) {
|
33 |
+
$html .= sprintf('<a href="%s"%s>%s</a>', $pLink,$link_target, $imgSrc);
|
34 |
}else{
|
35 |
+
$html .= $imgSrc;
|
36 |
}
|
37 |
$html .= '</div>';
|
38 |
$html .= '</div>';
|
lib/views/layouts/layout3.php
CHANGED
@@ -22,7 +22,7 @@ $html .= sprintf('<div class="%s" data-id="%d">', esc_attr(implode(" ", [$grid,
|
|
22 |
$html .= '<div class="row">';
|
23 |
if(!empty($imgSrc)) {
|
24 |
$html .= "<div class='{$image_area}'>";
|
25 |
-
$html .= '<div class="rt-img-holder">';
|
26 |
if($overlay && $link) {
|
27 |
$html .= sprintf('<div class="overlay">
|
28 |
<div class="link-holder">
|
@@ -31,9 +31,9 @@ $html .= sprintf('<div class="%s" data-id="%d">', esc_attr(implode(" ", [$grid,
|
|
31 |
</div>', $pLink, $link_target);
|
32 |
}
|
33 |
if($link) {
|
34 |
-
$html .= sprintf('<a href="%s"%s
|
35 |
-
}else{
|
36 |
-
$html .=
|
37 |
}
|
38 |
$html .= '</div>';
|
39 |
$html .= '</div>';
|
22 |
$html .= '<div class="row">';
|
23 |
if(!empty($imgSrc)) {
|
24 |
$html .= "<div class='{$image_area}'>";
|
25 |
+
$html .= '<div class="rt-img-holder rounded">';
|
26 |
if($overlay && $link) {
|
27 |
$html .= sprintf('<div class="overlay">
|
28 |
<div class="link-holder">
|
31 |
</div>', $pLink, $link_target);
|
32 |
}
|
33 |
if($link) {
|
34 |
+
$html .= sprintf('<a href="%s"%s>%s</a>', $pLink,$link_target, $imgSrc);
|
35 |
+
} else {
|
36 |
+
$html .= $imgSrc;
|
37 |
}
|
38 |
$html .= '</div>';
|
39 |
$html .= '</div>';
|
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: 2.3.6.
|
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: 2.3.6.4
|
8 |
* Text Domain: the-post-grid
|
9 |
* Domain Path: /languages
|
10 |
* Author URI: https://radiustheme.com/
|