PluginProbe ʕ •ᴥ•ʔ
The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid / 7.8.8
The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid v7.8.8
7.9.3 7.9.2 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.2.0 4.2.1 4.2.2 4.2.3 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 6.0.0 7.0.0 7.0.1 7.0.2 7.1.0 7.2.0 7.2.1 7.2.10 7.2.11 7.2.2 7.2.3 7.2.4 7.2.5 7.2.6 7.2.7 7.2.8 7.2.9 7.3.0 7.3.1 7.4.0 7.4.1 7.4.2 7.4.3 7.5.0 7.6.0 7.6.1 7.7.0 7.7.1 7.7.10 7.7.11 7.7.12 7.7.13 7.7.14 7.7.15 7.7.16 7.7.17 7.7.18 7.7.19 7.7.2 7.7.20 7.7.21 7.7.22 7.7.3 7.7.4 7.7.5 7.7.6 7.7.7 7.7.8 7.7.9 7.8.0 7.8.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.9.0 7.9.1
the-post-grid / app / Controllers / Blocks / BlockController / SettingsTabController.php
the-post-grid / app / Controllers / Blocks / BlockController Last commit date
ContentTabController.php 8 months ago SectionTitleSettingsStyle.php 8 months ago SettingsTabController.php 8 months ago StyleTabController.php 8 months ago TimelineContentTabController.php 8 months ago
SettingsTabController.php
401 lines
1 <?php
2
3 namespace RT\ThePostGrid\Controllers\Blocks\BlockController;
4
5 use RT\ThePostGrid\Helpers\Fns;
6
7 class SettingsTabController {
8
9 /**
10 * @return mixed|void
11 */
12 public static function get_controller( $prefix = '' ) {
13
14 $settings_attribute = [
15 'show_section_title' => [
16 'type' => 'string',
17 'default' => 'show',
18 ],
19
20 'show_title' => [
21 'type' => 'string',
22 'default' => 'show',
23 ],
24
25 'show_thumb' => [
26 'type' => 'string',
27 'default' => 'show',
28 ],
29
30 'show_excerpt' => [
31 'type' => 'string',
32 'default' => 'show',
33 ],
34
35 'show_meta' => [
36 'type' => 'string',
37 'default' => 'show',
38 ],
39
40 'show_date' => [
41 'type' => 'string',
42 'default' => 'show',
43 ],
44
45 'show_category' => [
46 'type' => 'string',
47 'default' => 'show',
48 ],
49
50 'show_author' => [
51 'type' => 'string',
52 'default' => 'show',
53 ],
54
55 'show_tags' => [
56 'type' => 'string',
57 'default' => '',
58 ],
59
60 'show_comment_count' => [
61 'type' => 'string',
62 'default' => '',
63 ],
64
65 'show_post_count' => [
66 'type' => 'string',
67 'default' => '',
68 ],
69
70 'show_read_more' => [
71 'type' => 'string',
72 'default' => 'show',
73 ],
74
75 'event_title' => [
76 'type' => 'string',
77 'default' => 'Event information:',
78 ],
79 'show_event_date' => [
80 'type' => 'string',
81 'default' => '',
82 ],
83
84 'start_date_label' => [
85 'type' => 'string',
86 'default' => '',
87 ],
88
89 'end_date_label' => [
90 'type' => 'string',
91 'default' => '',
92 ],
93
94 'event_date_format' => [
95 'type' => 'string',
96 'default' => 'F j, Y g:i a',
97 ],
98
99 'custom_event_date_format' => [
100 'type' => 'string',
101 'default' => 'Y-m-d g:i a',
102 ],
103
104 'show_social_share' => [
105 'type' => 'string',
106 'default' => '',
107 ],
108
109 'show_woocommerce_rating' => [
110 'type' => 'string',
111 'default' => '',
112 ],
113
114 // Section Title Settings
115
116 'section_title_style' => [
117 'type' => 'string',
118 'default' => 'style1',
119 ],
120
121 'section_title_source' => [
122 'type' => 'string',
123 'default' => 'custom_title',
124 ],
125
126 'section_title_text' => [
127 'type' => 'string',
128 'default' => 'Section Title',
129 ],
130
131 'title_prefix' => [
132 'type' => 'string',
133 'default' => '',
134 ],
135
136 'title_suffix' => [
137 'type' => 'string',
138 'default' => '',
139 ],
140
141 'section_title_tag' => [
142 'type' => 'string',
143 'default' => 'h2',
144 ],
145
146 'enable_external_link' => [
147 'type' => 'string',
148 'default' => false,
149 ],
150
151 'external_icon_size' => [
152 'type' => 'string',
153 'default' => '15',
154 ],
155
156 'section_external_text' => [
157 'type' => 'string',
158 'default' => 'See More',
159 ],
160
161 'section_external_url' => [
162 'type' => 'string',
163 'default' => '#',
164 ],
165
166 // Title Settings
167
168 'title_tag' => [
169 'type' => 'string',
170 'default' => 'h3',
171 ],
172
173 'title_visibility_style' => [
174 'type' => 'string',
175 'default' => 'default',
176 ],
177
178 'title_limit' => [
179 'type' => 'string',
180 'default' => '',
181 ],
182
183 'title_limit_type' => [
184 'type' => 'string',
185 'default' => 'word',
186 ],
187
188 'title_position' => [
189 'type' => 'string',
190 'default' => 'default',
191 ],
192
193 'title_position_hidden' => [
194 'type' => 'string',
195 'default' => 'default',
196 ],
197
198 'title_hover_underline' => [
199 'type' => 'string',
200 'default' => 'default',
201 ],
202
203 // Thumbnail Settings
204
205 'media_source' => [
206 'type' => 'string',
207 'default' => 'feature_image',
208 ],
209
210 'image_size' => [
211 'type' => 'string',
212 'default' => 'medium_large',
213 ],
214
215 'image_offset_size' => [
216 'type' => 'string',
217 'default' => 'medium_large',
218 ],
219
220 'img_crop_style' => [
221 'type' => 'string',
222 'default' => 'hard',
223 ],
224
225 'image_offset' => [
226 'type' => 'string',
227 'default' => 'medium_large',
228 ],
229 'list_image_side_width' => [
230 'type' => 'object',
231 'default' => (object) [
232 'lg' => '',
233 'md' => '',
234 'sm' => '',
235 ],
236 'style' => [
237 (object) [
238 'selector' => '{{RTTPG}} .rt-tpg-container .list-layout-wrapper [class*="rt-col"]:not(.offset-left) .rt-holder .tpg-el-image-wrap {flex: 0 0 {{list_image_side_width}};max-width:{{list_image_side_width}}; }',
239 ],
240 ],
241 ],
242
243 'image_height' => [
244 'type' => 'object',
245 'default' => (object) [
246 'lg' => '',
247 'md' => '',
248 'sm' => '',
249 ],
250 'style' => [
251 (object) [
252 'selector' => '{{RTTPG}} .tpg-el-main-wrapper .rt-content-loader > :not(.offset-right) .tpg-el-image-wrap,
253 {{RTTPG}} .tpg-el-main-wrapper .rt-content-loader > :not(.offset-right) .tpg-el-image-wrap img,
254 {{RTTPG}} .tpg-el-main-wrapper.slider-layout11-main .rt-grid-hover-item .rt-holder .rt-el-content-wrapper,
255 {{RTTPG}} .tpg-el-main-wrapper.slider-layout12-main .rt-grid-hover-item .rt-holder .rt-el-content-wrapper
256 {height: {{image_height}}; }',
257 ],
258 ],
259 ],
260
261 'offset_image_height' => [
262 'type' => 'object',
263 'default' => (object) [
264 'lg' => '',
265 'md' => '',
266 'sm' => '',
267 ],
268 'style' => [
269 (object) [
270 'selector' => '{{RTTPG}} .tpg-el-main-wrapper .rt-content-loader .offset-right .tpg-el-image-wrap,
271 {{RTTPG}} .tpg-el-main-wrapper .rt-content-loader .offset-right .tpg-el-image-wrap img {height: {{offset_image_height}}; }',
272 ],
273 ],
274 ],
275
276 'c_image_width' => [
277 'type' => 'string',
278 'default' => '',
279 ],
280
281 'c_image_height' => [
282 'type' => 'string',
283 'default' => '',
284 ],
285
286 'hover_animation' => [
287 'type' => 'string',
288 'default' => 'default',
289 ],
290
291 'is_thumb_lightbox' => [
292 'type' => 'string',
293 'default' => 'default',
294 ],
295
296 'is_default_img' => [
297 'type' => 'string',
298 'default' => '',
299 ],
300
301 'default_image' => [
302 'type' => 'object',
303 'default' => [],
304 ],
305
306 // Post Excerpt Settings
307
308 'excerpt_type' => [
309 'type' => 'string',
310 'default' => 'character',
311 ],
312
313 'excerpt_limit' => [
314 'type' => 'string',
315 'default' => '100',
316 ],
317
318 'excerpt_more_text' => [
319 'type' => 'string',
320 'default' => '...',
321 ],
322
323 // Post Meta Settings
324
325 'meta_position' => [
326 'type' => 'string',
327 'default' => 'default',
328 ],
329
330 'show_meta_icon' => [
331 'type' => 'string',
332 'default' => 'yes',
333 ],
334
335 'meta_separator' => [
336 'type' => 'string',
337 'default' => 'default',
338 ],
339 'date_archive_link' => [
340 'type' => 'string',
341 'default' => 'yes',
342 ],
343
344 'meta_ordering' => [
345 'type' => 'array',
346 'default' => [],
347 ],
348
349 // user meta
350 'author_prefix' => [
351 'type' => 'string',
352 'default' => 'By',
353 ],
354 'author_icon_visibility' => [
355 'type' => 'string',
356 'default' => 'default',
357 ],
358 'show_author_image' => [
359 'type' => 'string',
360 'default' => 'icon',
361 ],
362
363 // ACF Settings given below
364
365 'acf_data_lists' => [
366 'type' => 'object',
367 'default' => [],
368 ],
369
370 // Read More Settings
371
372 'readmore_btn_style' => [
373 'type' => 'string',
374 'default' => 'default-style',
375 ],
376
377 'read_more_label' => [
378 'type' => 'string',
379 'default' => 'Read More',
380 ],
381
382 'show_btn_icon' => [
383 'type' => 'string',
384 'default' => '',
385 ],
386
387 'readmore_style_tabs' => [
388 'type' => 'string',
389 'default' => 'normal',
390 ],
391
392 'readmore_btn_icon' => [
393 'type' => 'string',
394 'default' => Fns::change_icon( 'fas fa-angle-right', 'right-arrow' ),
395 ],
396 ];
397
398 return apply_filters( 'rttpg_guten_settings_attribute', $settings_attribute );
399 }
400 }
401