PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 2.2.10
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v2.2.10
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
← All changes | admin/views/configs/generator/class-sps-display.php +125 -288 2.4.17 → 2.2.10 View file →
@@ -23,26 +23,26 @@
23 23 public static function section( $prefix ) {
24 24 SP_PC::createSection(
25 25 $prefix,
26 26 array(
27 - 'title' => __( 'DISPLAY OPTIONS', 'post-carousel' ),
27 + 'title' => __( 'DISPLAY OPTIONS', 'smart-post-show' ),
28 28 'icon' => 'fa fa-th-large',
29 29 'fields' => array(
30 30 array(
31 31 'id' => 'section_title',
32 32 'type' => 'switcher',
33 - 'title' => __( 'Section Title ', 'post-carousel' ),
34 - 'subtitle' => __( 'Show/Hide item showcase section title.', 'post-carousel' ),
33 + 'title' => __( 'Section Title ', 'smart-post-show' ),
34 + 'subtitle' => __( 'Show/Hide item showcase section title.', 'smart-post-show' ),
35 35 'default' => false,
36 - 'text_on' => __( 'Show', 'post-carousel' ),
37 - 'text_off' => __( 'Hide', 'post-carousel' ),
36 + 'text_on' => __( 'Show', 'smart-post-show' ),
37 + 'text_off' => __( 'Hide', 'smart-post-show' ),
38 38 'text_width' => 75,
39 39 ),
40 40 array(
41 41 'id' => 'section_title_margin',
42 42 'type' => 'spacing',
43 - 'title' => __( 'Section Title Margin', 'post-carousel' ),
44 - 'subtitle' => __( 'Set margin for the section title.', 'post-carousel' ),
43 + 'title' => __( 'Section Title Margin', 'smart-post-show' ),
44 + 'subtitle' => __( 'Set margin for the section title.', 'smart-post-show' ),
45 45 'all_icon' => '<i class="fa fa-long-arrow-down"></i>',
46 46 'units' => array(
47 47 'px',
48 48 ),
@@ -62,10 +62,10 @@
62 62 ),
63 63 array(
64 64 'id' => 'pcp_number_of_columns',
65 65 'type' => 'column',
66 - 'title' => __( 'Column(s)', 'post-carousel' ),
67 - 'subtitle' => __( 'Set number of column(s) in different devices for responsive view.', 'post-carousel' ),
66 + 'title' => __( 'Column(s)', 'smart-post-show' ),
67 + 'subtitle' => __( 'Set number of column(s) in different devices for responsive view.', 'smart-post-show' ),
68 68 'default' => array(
69 69 'lg_desktop' => '4',
70 70 'desktop' => '4',
71 71 'tablet' => '3',
@@ -77,10 +77,10 @@
77 77 ),
78 78 array(
79 79 'id' => 'margin_between_post',
80 80 'type' => 'spacing',
81 - 'title' => __( 'Margin Between Columns', 'post-carousel' ),
82 - 'subtitle' => __( 'Set margin between columns (items).', 'post-carousel' ),
81 + 'title' => __( 'Margin Between Columns', 'smart-post-show' ),
82 + 'subtitle' => __( 'Set margin between columns (items).', 'smart-post-show' ),
83 83 'all' => true,
84 84 'all_icon' => '<i class="fa fa-arrows-h"></i>',
85 85 'units' => array(
86 86 'px',
@@ -92,40 +92,40 @@
92 92 ),
93 93 array(
94 94 'id' => 'post_content_orientation',
95 95 'type' => 'layout_preset',
96 - 'title' => __( 'Content Orientation ', 'post-carousel' ),
97 - 'subtitle' => __( 'Set a position for the item content.', 'post-carousel' ),
98 - 'desc' => __( 'To unlock more amazing Content Orientation and Layout based Settings, <a href="https://smartpostshow.com/" target="_blank"><strong>Upgrade To Pro!</strong></a>', 'post-carousel' ),
96 + 'title' => __( 'Content Orientation ', 'smart-post-show' ),
97 + 'subtitle' => __( 'Set a position for the item content.', 'smart-post-show' ),
98 + 'desc' => __( 'To unlock more amazing Content Orientation and Layout based Settings, <a href="https://smartpostshow.com/" target="_blank"><strong>Upgrade To Pro!</strong></a>', 'smart-post-show' ),
99 99 'class' => 'pcp-content-orientation',
100 100 'options' => array(
101 101 'default' => array(
102 - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/default.svg',
103 - 'text' => __( 'Default', 'post-carousel' ),
102 + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/default.png',
103 + 'text' => __( 'Default', 'smart-post-show' ),
104 104 ),
105 105 'left-thumb' => array(
106 - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/left-image.svg',
107 - 'text' => __( 'Left Image', 'post-carousel' ),
106 + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/left-image.png',
107 + 'text' => __( 'Left Image', 'smart-post-show' ),
108 108 'pro_only' => true,
109 109 ),
110 110 'right-thumb' => array(
111 - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/right-image.svg',
112 - 'text' => __( 'Right Image', 'post-carousel' ),
111 + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/right-image.png',
112 + 'text' => __( 'Right Image', 'smart-post-show' ),
113 113 'pro_only' => true,
114 114 ),
115 115 'overlay' => array(
116 - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay.svg',
117 - 'text' => __( 'Overlay', 'post-carousel' ),
116 + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay.png',
117 + 'text' => __( 'Overlay', 'smart-post-show' ),
118 118 'pro_only' => true,
119 119 ),
120 120 'card' => array(
121 - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/card.svg',
122 - 'text' => __( 'Card', 'post-carousel' ),
121 + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/card.png',
122 + 'text' => __( 'Card', 'smart-post-show' ),
123 123 'pro_only' => true,
124 124 ),
125 125 'overlay-box' => array(
126 - 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay-box.svg',
127 - 'text' => __( 'Overlay Box', 'post-carousel' ),
126 + 'image' => SP_PC_URL . 'admin/views/sp-framework/assets/img/overlay-box.png',
127 + 'text' => __( 'Overlay Box', 'smart-post-show' ),
128 128 'pro_only' => true,
129 129 ),
130 130 ),
131 131 'default' => 'default',
@@ -132,10 +132,10 @@
132 132 ),
133 133 array(
134 134 'id' => 'post_border',
135 135 'type' => 'border',
136 - 'title' => __( 'Border', 'post-carousel' ),
137 - 'subtitle' => __( 'Set border for the item.', 'post-carousel' ),
136 + 'title' => __( 'Border', 'smart-post-show' ),
137 + 'subtitle' => __( 'Set border for the item.', 'smart-post-show' ),
138 138 'all' => true,
139 139 'default' => array(
140 140 'all' => '0',
141 141 'style' => 'solid',
@@ -144,10 +144,10 @@
144 144 ),
145 145 array(
146 146 'id' => 'post_border_radius_property',
147 147 'type' => 'spacing',
148 - 'title' => __( 'Border Radius', 'post-carousel' ),
149 - 'subtitle' => __( 'Set border radius for item.', 'post-carousel' ),
148 + 'title' => __( 'Border Radius', 'smart-post-show' ),
149 + 'subtitle' => __( 'Set border radius for item.', 'smart-post-show' ),
150 150 'all' => true,
151 151 'units' => array( 'px', '%' ),
152 152 'default' => array(
153 153 'all' => '0',
@@ -155,17 +155,17 @@
155 155 ),
156 156 array(
157 157 'id' => 'post_background_property',
158 158 'type' => 'color',
159 - 'title' => __( 'Background', 'post-carousel' ),
160 - 'subtitle' => __( 'Set background color for the item.', 'post-carousel' ),
159 + 'title' => __( 'Background', 'smart-post-show' ),
160 + 'subtitle' => __( 'Set background color for the item.', 'smart-post-show' ),
161 161 'default' => 'transparent',
162 162 ),
163 163 array(
164 164 'id' => 'post_inner_padding_property',
165 165 'type' => 'spacing',
166 - 'title' => __( 'Inner Padding', 'post-carousel' ),
167 - 'subtitle' => __( 'Set inner padding for item.', 'post-carousel' ),
166 + 'title' => __( 'Inner Padding', 'smart-post-show' ),
167 + 'subtitle' => __( 'Set inner padding for item.', 'smart-post-show' ),
168 168 'default' => array(
169 169 'top' => '0',
170 170 'right' => '0',
171 171 'bottom' => '0',
@@ -176,11 +176,11 @@
176 176 ),
177 177 array(
178 178 'id' => 'post_content_sorter',
179 179 'type' => 'sortable',
180 - 'title' => __( 'Content Fields', 'post-carousel' ),
181 - 'subtitle' => __( 'Item content fields which are draggable to change display order and it\'s settings.', 'post-carousel' ),
182 - 'desc' => __( 'To show Social Share and Custom Fields, <a href="https://smartpostshow.com/" target="_blank"><strong>Upgrade To Pro!</strong></a>', 'post-carousel' ),
180 + 'title' => __( 'Content Fields', 'smart-post-show' ),
181 + 'subtitle' => __( 'Item content fields which are draggable to change display order and it\'s settings.', 'smart-post-show' ),
182 + 'desc' => __( 'To show Social Share and Custom Fields, <a href="https://smartpostshow.com/" target="_blank"><strong>Upgrade To Pro!</strong></a>', 'smart-post-show' ),
183 183 'class' => 'post_content_sorter',
184 184 'fields' => array(
185 185 array(
186 186 'id' => 'pcp_post_thumb',
@@ -186,16 +186,16 @@
186 186 'id' => 'pcp_post_thumb',
187 187 'type' => 'accordion',
188 188 'accordions' => array(
189 189 array(
190 - 'title' => __( 'Thumbnail', 'post-carousel' ),
190 + 'title' => __( 'Thumbnail', 'smart-post-show' ),
191 191 'fields' => array(
192 192 array(
193 193 'id' => 'post_thumb_show',
194 194 'type' => 'switcher',
195 - 'title' => __( 'Thumbnail', 'post-carousel' ),
196 - 'text_on' => __( 'Show', 'post-carousel' ),
197 - 'text_off' => __( 'Hide', 'post-carousel' ),
195 + 'title' => __( 'Thumbnail', 'smart-post-show' ),
196 + 'text_on' => __( 'Show', 'smart-post-show' ),
197 + 'text_off' => __( 'Hide', 'smart-post-show' ),
198 198 'default' => true,
199 199 'text_width' => 80,
200 200 ),
201 201 array(
@@ -200,49 +200,12 @@
200 200 ),
201 201 array(
202 202 'id' => 'pcp_thumb_sizes',
203 203 'type' => 'image_sizes',
204 - 'title' => __( 'Size', 'post-carousel' ),
204 + 'title' => __( 'Size', 'smart-post-show' ),
205 205 'default' => 'full',
206 206 'dependency' => array( 'post_thumb_show', '==', 'true', true ),
207 207 ),
208 - array(
209 - 'id' => 'pcp_image_crop_size',
210 - 'type' => 'dimensions_advanced',
211 - 'title' => __( 'Custom Size (Pro)', 'post-carousel' ),
212 - 'chosen' => true,
213 - 'bottom' => false,
214 - 'left' => false,
215 - 'color' => false,
216 - 'top_icon' => '<i class="fa fa-arrows-h"></i>',
217 - 'right_icon' => '<i class="fa fa-arrows-v"></i>',
218 - 'top_placeholder' => 'width',
219 - 'right_placeholder' => 'height',
220 - 'styles' => array(
221 - 'Soft-crop',
222 - 'Hard-crop',
223 - ),
224 - 'default' => array(
225 - 'top' => '600',
226 - 'right' => '400',
227 - 'style' => 'Soft-crop',
228 - 'unit' => 'px',
229 - ),
230 - 'attributes' => array(
231 - 'min' => 0,
232 - ),
233 - 'dependency' => array( 'post_thumb_show|pcp_thumb_sizes', '==|==', 'true|custom' ),
234 - ),
235 - array(
236 - 'id' => 'load_2x_image',
237 - 'type' => 'switcher',
238 - 'title' => __( 'Load 2x Resolution Image in Retina Display (Pro)', 'post-carousel' ),
239 - 'text_on' => __( 'Enabled', 'post-carousel' ),
240 - 'text_off' => __( 'Disabled', 'post-carousel' ),
241 - 'text_width' => 94,
242 - 'default' => false,
243 - 'dependency' => array( 'post_thumb_show|pcp_thumb_sizes', '==|==', 'true|custom' ),
244 - ),
245 208 ),
246 209 ),
247 210 ),
248 211 ),
@@ -255,11 +218,11 @@
255 218 'fields' => array(
256 219 array(
257 220 'id' => 'show_post_title',
258 221 'type' => 'switcher',
259 - 'title' => __( 'Title', 'post-carousel' ),
260 - 'text_on' => __( 'Show', 'post-carousel' ),
261 - 'text_off' => __( 'Hide', 'post-carousel' ),
222 + 'title' => __( 'Title', 'smart-post-show' ),
223 + 'text_on' => __( 'Show', 'smart-post-show' ),
224 + 'text_off' => __( 'Hide', 'smart-post-show' ),
262 225 'default' => true,
263 226 'text_width' => 80,
264 227 ),
265 228 array(
@@ -264,18 +227,18 @@
264 227 ),
265 228 array(
266 229 'id' => 'post_title_tag',
267 230 'type' => 'select',
268 - 'title' => __( 'Title HTML Tag', 'post-carousel' ),
231 + 'title' => __( 'Title HTML Tag', 'smart-post-show' ),
269 232 'options' => array(
270 - 'h1' => __( 'h1', 'post-carousel' ),
271 - 'h2' => __( 'h2', 'post-carousel' ),
272 - 'h3' => __( 'h3', 'post-carousel' ),
273 - 'h4' => __( 'h4', 'post-carousel' ),
274 - 'h5' => __( 'h5', 'post-carousel' ),
275 - 'h6' => __( 'h6', 'post-carousel' ),
276 - 'p' => __( 'p', 'post-carousel' ),
277 - 'div' => __( 'div', 'post-carousel' ),
233 + 'h1' => __( 'h1', 'smart-post-show' ),
234 + 'h2' => __( 'h2', 'smart-post-show' ),
235 + 'h3' => __( 'h3', 'smart-post-show' ),
236 + 'h4' => __( 'h4', 'smart-post-show' ),
237 + 'h5' => __( 'h5', 'smart-post-show' ),
238 + 'h6' => __( 'h6', 'smart-post-show' ),
239 + 'p' => __( 'p', 'smart-post-show' ),
240 + 'div' => __( 'div', 'smart-post-show' ),
278 241 ),
279 242 'default' => 'h2',
280 243 'class' => 'chosen',
281 244 'dependency' => array( 'show_post_title', '==', 'true', true ),
@@ -288,16 +251,16 @@
288 251 'id' => 'pcp_post_meta',
289 252 'type' => 'accordion',
290 253 'accordions' => array(
291 254 array(
292 - 'title' => __( 'Meta Fields', 'post-carousel' ),
255 + 'title' => __( 'Meta Fields', 'smart-post-show' ),
293 256 'fields' => array(
294 257 array(
295 258 'id' => 'show_post_meta',
296 259 'type' => 'switcher',
297 - 'title' => __( 'Meta Fields', 'post-carousel' ),
298 - 'text_on' => __( 'Show', 'post-carousel' ),
299 - 'text_off' => __( 'Hide', 'post-carousel' ),
260 + 'title' => __( 'Meta Fields', 'smart-post-show' ),
261 + 'text_on' => __( 'Show', 'smart-post-show' ),
262 + 'text_off' => __( 'Hide', 'smart-post-show' ),
300 263 'default' => true,
301 264 'text_width' => 80,
302 265 ),
303 266 array(
@@ -303,169 +266,46 @@
303 266 array(
304 267 'id' => 'pcp_post_meta_group',
305 268 'class' => 'pcp_custom_group_design',
306 269 'type' => 'group',
307 - 'button_title' => __( 'Add New Meta', 'post-carousel' ),
270 + 'button_title' => __( 'Add New Meta', 'smart-post-show' ),
308 271 'dependency' => array( 'show_post_meta', '==', 'true' ),
309 272 'fields' => array(
310 273 array(
311 274 'id' => 'select_post_meta',
312 275 'type' => 'select',
313 - 'title' => __( 'Select Meta', 'post-carousel' ),
314 - 'placeholder' => __( 'Select a meta', 'post-carousel' ),
276 + 'title' => __( 'Select Meta', 'smart-post-show' ),
277 + 'placeholder' => __( 'Select a meta', 'smart-post-show' ),
315 278 'class' => 'pcp-meta-select',
316 279 'options' => array(
317 - 'author' => __( 'Author', 'post-carousel' ),
318 - 'date' => __( 'Date', 'post-carousel' ),
319 - 'comment_count' => __( 'Comment Count', 'post-carousel' ),
320 - 'taxonomy' => __( 'Taxonomy (Pro)', 'post-carousel' ),
321 - 'view_count' => __( 'View Count (Pro)', 'post-carousel' ),
322 - 'like' => __( 'Like (Pro)', 'post-carousel' ),
323 - 'reading_time' => __( 'Reading Time (Pro)', 'post-carousel' ),
280 + 'author' => __( 'Author', 'smart-post-show' ),
281 + 'date' => __( 'Date', 'smart-post-show' ),
282 + 'comment_count' => __( 'Comment Count', 'smart-post-show' ),
283 + 'taxonomy' => __( 'Taxonomy (Pro)', 'smart-post-show' ),
284 + 'view_count' => __( 'View Count (Pro)', 'smart-post-show' ),
285 + 'like' => __( 'Like (Pro)', 'smart-post-show' ),
286 + 'reading_time' => __( 'Reading Time (Pro)', 'smart-post-show' ),
324 287 ),
325 288 ),
326 289 array(
327 - 'id' => 'post_meta_author_avatar',
328 - 'type' => 'select',
329 - 'title' => __( 'Avatar', 'post-carousel' ),
330 - 'class' => 'post_meta_author_avatar',
331 - 'options' => array(
332 - 'show_name' => __( 'Show name', 'post-carousel' ),
333 - 'show_gravatar' => __( 'Show gravatar', 'post-carousel' ),
334 - 'name_with_gravatar' => __( 'Author name & gravatar', 'post-carousel' ),
335 - 'name_with_icon' => __( 'Author name with an icon', 'post-carousel' ),
336 -
337 - ),
338 - 'desc' => __( 'To show gravatar, you must <a href="https://wordpress.org/support/article/how-to-use-gravatars/" target="_blank" rel="noopener noreferrer nofollow"><em>enable it</em></a>.', 'post-carousel' ),
339 - 'default' => 'name_with_icon',
340 - 'dependency' => array( 'select_post_meta', '==', 'author' ),
341 - ),
342 - array(
343 - 'id' => 'post_meta_date_format',
344 - 'type' => 'select',
345 - 'title' => __( 'Date Format', 'post-carousel' ),
346 - 'class' => 'post_meta_date_format',
347 - 'options' => array(
348 - 'default' => __( 'Default', 'post-carousel' ),
349 - 'time_ago' => __( 'Time ago(human time)', 'post-carousel' ),
350 - 'custom' => __( 'Custom', 'post-carousel' ),
351 - ),
352 - 'default' => 'default',
353 - 'dependency' => array( 'select_post_meta', '==', 'date' ),
354 - ),
355 - array(
356 - 'id' => 'pcp_custom_meta_date_format',
357 - 'type' => 'text',
358 - 'title' => ' ',
359 - 'class' => 'pcp_custom_meta_date_format',
360 - 'placeholder' => __( 'F j, Y', 'post-carousel' ),
361 - 'default' => __( 'F j, Y', 'post-carousel' ),
362 - 'desc' => __( 'To define format, check <a href="https://wordpress.org/support/article/formatting-date-and-time/" target="_blank" rel="noopener noreferrer nofollow"><em>this doc</em></a>.', 'post-carousel' ),
363 - 'dependency' => array( 'select_post_meta|post_meta_date_format', '==|==', 'date|custom' ),
364 - ),
365 - array(
366 - 'id' => 'post_meta_taxonomy',
367 - 'type' => 'select',
368 - 'title' => __( 'Select Taxonomy', 'post-carousel' ),
369 - 'class' => 'post_meta_taxonomy',
370 - 'options' => 'taxonomy',
371 - 'query_args' => array(
372 - 'type' => 'any',
373 - ),
374 - 'attributes' => array(
375 - 'style' => 'width: 200px;',
376 - ),
377 - 'empty_message' => __( 'No taxonomies found.', 'post-carousel' ),
378 - 'dependency' => array( 'select_post_meta', '==', 'taxonomy' ),
379 - ),
380 - array(
381 - 'id' => 'pcp_meta_position',
382 - 'class' => 'pcp_meta_position',
383 - 'type' => 'button_set',
384 - 'title' => __( 'Position', 'post-carousel' ),
385 - 'options' => array(
386 - 'beside_meta' => __( 'Beside Other Meta', 'post-carousel' ),
387 - 'above_title' => __( 'Above Title', 'post-carousel' ),
388 - 'over_thumb' => __( 'Over Thumbnail', 'post-carousel' ),
389 -
390 - ),
391 - 'default' => 'beside_meta',
392 - 'dependency' => array( 'select_post_meta', '==', 'taxonomy' ),
393 - ),
394 - array(
395 - 'id' => 'pcp_meta_over_thump_position',
396 - 'type' => 'select',
397 - 'title' => __( 'Over Thumbnail Position', 'post-carousel' ),
398 - 'options' => array(
399 - 'top_left' => __( 'Top Left', 'post-carousel' ),
400 - 'top_right' => __( 'Top Right', 'post-carousel' ),
401 - 'bottom_left' => __( 'Bottom Left', 'post-carousel' ),
402 - 'bottom_right' => __( 'Bottom Right', 'post-carousel' ),
403 - ),
404 - 'default' => 'top_left',
405 - 'dependency' => array( 'select_post_meta|pcp_meta_position', '==|==', 'taxonomy|over_thumb' ),
406 - ),
407 - array(
408 - 'id' => 'pcp_meta_pill_color',
409 - 'type' => 'color_group',
410 - 'title' => __( 'Meta Color', 'post-carousel' ),
411 - 'options' => array(
412 - 'text' => __( 'Text', 'post-carousel' ),
413 - 'bg' => __( 'Background', 'post-carousel' ),
414 - ),
415 - 'default' => array(
416 - 'text' => '#fff',
417 - 'bg' => '#e53935',
418 - ),
419 - 'dependency' => array( 'select_post_meta|pcp_meta_position', '==|!=', 'taxonomy|beside_meta' ),
420 - ),
421 - array(
422 - 'id' => 'pcp_word_per_minute',
423 - 'type' => 'number',
424 - 'title' => __( 'Per Minute', 'post-carousel' ),
425 - 'class' => 'pcp_reading_time_meta',
426 - 'title_help' => __( 'Default 300 words, the average reading speed for adults.', 'post-carousel' ),
427 - 'sanitize' => 'pcp_sanitize_number_field',
428 - 'unit' => __( 'words', 'post-carousel' ),
429 - 'default' => '300',
430 - 'dependency' => array( 'select_post_meta', '==', 'reading_time' ),
431 - 'default' => 300,
432 - ),
433 - array(
434 290 'id' => 'select_meta_icon',
435 - 'class' => 'select_meta_icon',
436 291 'type' => 'icon',
437 - 'title' => __( 'Meta Icon', 'post-carousel' ),
292 + 'title' => __( 'Meta Icon', 'smart-post-show' ),
438 293 'default' => 'fa fa-folder-o',
439 - 'dependency' => array( 'pcp_meta_position|select_post_meta', '==|!=', 'beside_meta|like' ),
294 + 'dependency' => array( 'select_post_meta', '!=', '', true ),
295 +
440 296 ),
441 - array(
442 - 'id' => 'reading_time_postfix',
443 - 'type' => 'text',
444 - 'title' => __( 'Reading Time Postfix', 'post-carousel' ),
445 - 'class' => 'pcp_reading_time_postfix',
446 - 'title_help' => __( 'Text after time. Leave empty for nothing.', 'post-carousel' ),
447 - 'default' => ' Min Read',
448 - 'dependency' => array( 'select_post_meta', '==', 'reading_time' ),
449 - ),
297 +
450 298 ),
451 299 'default' => array(
452 300 array(
453 - 'select_post_meta' => 'author',
454 - 'post_meta_author_avatar' => 'name_with_icon',
301 + 'select_post_meta' => 'author',
455 302 'select_meta_icon' => 'fa fa-user',
456 - 'pcp_meta_position' => 'beside_meta',
457 303 ),
458 304 array(
459 305 'select_post_meta' => 'date',
460 306 'select_meta_icon' => 'fa fa-calendar',
461 - 'pcp_meta_position' => 'beside_meta',
462 307 ),
463 - array(
464 - 'select_post_meta' => 'comment_count',
465 - 'select_meta_icon' => 'fa fa-comments-o',
466 - 'pcp_meta_position' => 'beside_meta',
467 - ),
468 308 ),
469 309 ),
470 310 ),
471 311 ),
@@ -480,11 +320,11 @@
480 320 'fields' => array(
481 321 array(
482 322 'id' => 'show_post_content',
483 323 'type' => 'switcher',
484 - 'title' => __( 'Content', 'post-carousel' ),
485 - 'text_on' => __( 'Show', 'post-carousel' ),
486 - 'text_off' => __( 'Hide', 'post-carousel' ),
324 + 'title' => __( 'Content', 'smart-post-show' ),
325 + 'text_on' => __( 'Show', 'smart-post-show' ),
326 + 'text_off' => __( 'Hide', 'smart-post-show' ),
487 327 'default' => true,
488 328 'text_width' => 80,
489 329 ),
490 330 array(
@@ -490,13 +330,13 @@
490 330 array(
491 331 'id' => 'post_content_type',
492 332 'type' => 'select',
493 333 'class' => 'pcp-post-content-type',
494 - 'title' => __( 'Content Display Type', 'post-carousel' ),
334 + 'title' => __( 'Content Display Type', 'smart-post-show' ),
495 335 'options' => array(
496 - 'excerpt' => __( 'Excerpt', 'post-carousel' ),
497 - 'full_content' => __( 'Full Content', 'post-carousel' ),
498 - 'limit_content' => __( 'Content with Limit (Pro)', 'post-carousel' ),
336 + 'excerpt' => __( 'Excerpt', 'smart-post-show' ),
337 + 'full_content' => __( 'Full Content', 'smart-post-show' ),
338 + 'limit_content' => __( 'Content with Limit (Pro)', 'smart-post-show' ),
499 339 ),
500 340 'default' => 'excerpt',
501 341 'dependency' => array( 'show_post_content', '==', 'true', true ),
502 342 ),
@@ -504,11 +344,11 @@
504 344 // ReadMore settings.
505 345 array(
506 346 'id' => 'show_read_more',
507 347 'type' => 'switcher',
508 - 'title' => __( 'Read More', 'post-carousel' ),
509 - 'text_on' => __( 'Show', 'post-carousel' ),
510 - 'text_off' => __( 'Hide', 'post-carousel' ),
348 + 'title' => __( 'Read More', 'smart-post-show' ),
349 + 'text_on' => __( 'Show', 'smart-post-show' ),
350 + 'text_off' => __( 'Hide', 'smart-post-show' ),
511 351 'default' => true,
512 352 'text_width' => 80,
513 353 'dependency' => array( 'post_content_type', '!=', 'full_content', true ),
514 354 ),
@@ -514,9 +354,9 @@
514 354 ),
515 355 array(
516 356 'id' => 'pcp_read_label',
517 357 'type' => 'text',
518 - 'title' => __( 'Read More Label', 'post-carousel' ),
358 + 'title' => __( 'Read More Label', 'smart-post-show' ),
519 359 'default' => 'Read More',
520 360 'dependency' => array( 'post_content_type|show_read_more', '!=|==', 'full_content|true', true ),
521 361 ),
522 362 array(
@@ -521,16 +361,16 @@
521 361 ),
522 362 array(
523 363 'id' => 'readmore_color_button',
524 364 'type' => 'color_group',
525 - 'title' => __( 'Read More Color', 'post-carousel' ),
365 + 'title' => __( 'Read More Color', 'smart-post-show' ),
526 366 'options' => array(
527 - 'standard' => __( 'Text Color', 'post-carousel' ),
528 - 'hover' => __( 'Text Hover Color', 'post-carousel' ),
529 - 'bg' => __( 'Background', 'post-carousel' ),
530 - 'hover_bg' => __( 'Hover Background', 'post-carousel' ),
531 - 'border' => __( 'Border', 'post-carousel' ),
532 - 'hover_border' => __( 'Hover Border', 'post-carousel' ),
367 + 'standard' => __( 'Text Color', 'smart-post-show' ),
368 + 'hover' => __( 'Text Hover Color', 'smart-post-show' ),
369 + 'bg' => __( 'Background', 'smart-post-show' ),
370 + 'hover_bg' => __( 'Hover Background', 'smart-post-show' ),
371 + 'border' => __( 'Border', 'smart-post-show' ),
372 + 'hover_border' => __( 'Hover Border', 'smart-post-show' ),
533 373 ),
534 374 'default' => array(
535 375 'standard' => '#111',
536 376 'hover' => '#fff',
@@ -551,14 +391,14 @@
551 391 'type' => 'accordion',
552 392 'class' => 'pcp-pro-only',
553 393 'accordions' => array(
554 394 array(
555 - 'title' => __( 'Social Share (Pro)', 'post-carousel' ),
395 + 'title' => __( 'Social Share (Pro)', 'smart-post-show' ),
556 396 'fields' => array(
557 397 array(
558 398 'id' => 'social_position',
559 399 'type' => 'button_set',
560 - 'title' => __( 'Alignment', 'post-carousel' ),
400 + 'title' => __( 'Alignment', 'smart-post-show' ),
561 401 'options' => array(
562 402 'left' => '<i class="fa fa-align-left" title="Left"></i>',
563 403 'center' => '<i class="fa fa-align-center" title="Center"></i>',
564 404 'right' => '<i class="fa fa-align-right" title="Right"></i>',
@@ -575,18 +415,18 @@
575 415 'type' => 'accordion',
576 416 'class' => 'pcp-pro-only',
577 417 'accordions' => array(
578 418 array(
579 - 'title' => __( 'Custom Fields (Pro)', 'post-carousel' ),
419 + 'title' => __( 'Custom Fields (Pro)', 'smart-post-show' ),
580 420 'fields' => array(
581 421 // The Group Fields.
582 422 array(
583 - 'id' => 'pcp_custom_meta_icon',
584 - 'type' => 'icon',
585 - 'title' => 'Icon Before Name',
423 + 'id' => 'pcp_custom_meta_icon',
424 + 'type' => 'icon',
425 + 'title' => 'Icon Before Name',
586 426 'default' => 'fa fa-calendar-o',
587 427 ),
588 -
428 +
589 429 ), // End Fields array.
590 430 ),
591 431 ), // Accordion.
592 432 ), // Custom fields end.
@@ -594,13 +434,13 @@
594 434 ),
595 435 array(
596 436 'id' => 'show_post_pagination',
597 437 'type' => 'switcher',
598 - 'text_on' => __( 'Enabled', 'post-carousel' ),
599 - 'text_off' => __( 'Disabled', 'post-carousel' ),
438 + 'text_on' => __( 'Enabled', 'smart-post-show' ),
439 + 'text_off' => __( 'Disabled', 'smart-post-show' ),
600 440 'text_width' => 100,
601 - 'title' => __( 'Pagination', 'post-carousel' ),
602 - 'subtitle' => __( 'Enabled/Disabled item pagination.', 'post-carousel' ),
441 + 'title' => __( 'Pagination', 'smart-post-show' ),
442 + 'subtitle' => __( 'Enabled/Disabled item pagination.', 'smart-post-show' ),
603 443 'default' => true,
604 444 'dependency' => array( 'pcp_layout_preset', 'not-any', 'carousel_layout', 'true' ),
605 445 ),
606 446 array(
@@ -605,17 +445,17 @@
605 445 ),
606 446 array(
607 447 'id' => 'post_pagination_type',
608 448 'type' => 'radio',
609 - 'title' => __( 'Pagination Type', 'post-carousel' ),
610 - 'subtitle' => __( 'Choose a pagination type.', 'post-carousel' ),
611 - 'desc' => __( 'More amazing Ajax Pagination Settings are available in <a href="https://smartpostshow.com/" target="_blank"><strong>Pro</strong></a>!', 'post-carousel' ),
449 + 'title' => __( 'Pagination Type', 'smart-post-show' ),
450 + 'subtitle' => __( 'Choose a pagination type.', 'smart-post-show' ),
451 + 'desc' => __( 'More amazing Ajax Pagination Settings are available in <a href="https://smartpostshow.com/" target="_blank"><strong>Pro</strong></a>!', 'smart-post-show' ),
612 452 'class' => 'pcp-pagination-type',
613 453 'options' => array(
614 - 'no_ajax' => __( 'Normal Pagination', 'post-carousel' ),
615 - 'ajax_load_more' => __( 'Ajax Load More Button (Pro)', 'post-carousel' ),
616 - 'ajax_pagination' => __( 'Ajax Number Pagination (Pro)', 'post-carousel' ),
617 - 'infinite_scroll' => __( 'Ajax Infinite Scroll (Pro)', 'post-carousel' ),
454 + 'no_ajax' => __( 'Normal Pagination', 'smart-post-show' ),
455 + 'ajax_load_more' => __( 'Ajax Load More Button (Pro)', 'smart-post-show' ),
456 + 'ajax_pagination' => __( 'Ajax Number Pagination (Pro)', 'smart-post-show' ),
457 + 'infinite_scroll' => __( 'Ajax Infinite Scroll (Pro)', 'smart-post-show' ),
618 458 ),
619 459 'default' => 'no_ajax',
620 460 'dependency' => array( 'pcp_layout_preset|show_post_pagination', 'not-any|==', 'carousel_layout|true', true ),
621 461 // 'dependency' => array( 'pcp_layout_preset', 'not-any', 'grid_layout', 'true' ),
@@ -622,17 +462,17 @@
622 462 ),
623 463 array(
624 464 'id' => 'pcp_pagination_btn_color',
625 465 'type' => 'color_group',
626 - 'title' => __( 'Pagination Color', 'post-carousel' ),
627 - 'subtitle' => __( 'Set Pagination color', 'post-carousel' ),
466 + 'title' => __( 'Pagination Color', 'smart-post-show' ),
467 + 'subtitle' => __( 'Set Pagination color', 'smart-post-show' ),
628 468 'options' => array(
629 - 'text_color' => __( 'Text Color', 'post-carousel' ),
630 - 'text_acolor' => __( 'Text Active Color', 'post-carousel' ),
631 - 'border_color' => __( 'Border Color', 'post-carousel' ),
632 - 'border_acolor' => __( 'Border Active Color', 'post-carousel' ),
633 - 'background' => __( 'Background', 'post-carousel' ),
634 - 'active_background' => __( 'Active BG', 'post-carousel' ),
469 + 'text_color' => __( 'Text Color', 'smart-post-show' ),
470 + 'text_acolor' => __( 'Text Active Color', 'smart-post-show' ),
471 + 'border_color' => __( 'Border Color', 'smart-post-show' ),
472 + 'border_acolor' => __( 'Border Active Color', 'smart-post-show' ),
473 + 'background' => __( 'Background', 'smart-post-show' ),
474 + 'active_background' => __( 'Active BG', 'smart-post-show' ),
635 475 ),
636 476 'default' => array(
637 477 'text_color' => '#5e5e5e',
638 478 'text_acolor' => '#ffffff',
@@ -645,24 +485,21 @@
645 485 ),
646 486 array(
647 487 'id' => 'post_per_page',
648 488 'type' => 'spinner',
649 - 'title' => __( 'Items Per Page', 'post-carousel' ),
650 - 'subtitle' => __( 'Set number of items to show per page.', 'post-carousel' ),
651 - 'help' => __( 'This value should be lesser than that <strong> Limit </strong> from <strong>Filter Content </strong> tab.', 'post-carousel' ),
489 + 'title' => __( 'Items Per Page', 'smart-post-show' ),
490 + 'subtitle' => __( 'Set number of items to show per page.', 'smart-post-show' ),
491 + 'help' => __( 'This value should be lesser than that <strong> Limit </strong> from <strong>Filter Content </strong> tab.', 'smart-post-show' ),
652 492 'default' => 12,
653 493 'dependency' => array( 'pcp_layout_preset|show_post_pagination', '==|==', 'grid_layout|true' ),
654 494 ),
655 495
656 496 array(
657 - 'id' => 'show_preloader',
658 - 'type' => 'switcher',
659 - 'title' => __( 'Preloader', 'post-carousel' ),
660 - 'subtitle' => __( 'Items will be hidden until page load completed.', 'post-carousel' ),
661 - 'text_on' => __( 'Enabled', 'post-carousel' ),
662 - 'text_off' => __( 'Disabled', 'post-carousel' ),
663 - 'text_width' => 94,
664 - 'default' => false,
497 + 'id' => 'show_preloader',
498 + 'type' => 'switcher',
499 + 'title' => __( 'Preloader', 'smart-post-show' ),
500 + 'subtitle' => __( 'Items will be hidden until page load completed.', 'smart-post-show' ),
501 + 'default' => false,
665 502 ),
666 503 ), // End of fields array.
667 504 )
668 505 ); // Display settings section end.