PluginProbe ʕ •ᴥ•ʔ
The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid / 7.2.7
The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid v7.2.7
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 2 years ago SectionTitleSettingsStyle.php 2 years ago SettingsTabController.php 2 years ago StyleTabController.php 2 years ago
SettingsTabController.php
369 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 'show_social_share' => [
76 'type' => 'string',
77 'default' => '',
78 ],
79
80 'show_woocommerce_rating' => [
81 'type' => 'string',
82 'default' => '',
83 ],
84
85 // Section Title Settings
86
87 'section_title_style' => [
88 'type' => 'string',
89 'default' => 'style1',
90 ],
91
92 'section_title_source' => [
93 'type' => 'string',
94 'default' => 'custom_title',
95 ],
96
97 'section_title_text' => [
98 'type' => 'string',
99 'default' => 'Section Title',
100 ],
101
102 'title_prefix' => [
103 'type' => 'string',
104 'default' => '',
105 ],
106
107 'title_suffix' => [
108 'type' => 'string',
109 'default' => '',
110 ],
111
112 'section_title_tag' => [
113 'type' => 'string',
114 'default' => 'h2',
115 ],
116
117 'enable_external_link' => [
118 'type' => 'string',
119 'default' => false,
120 ],
121
122 'external_icon_size' => [
123 'type' => 'string',
124 'default' => '15',
125 ],
126
127 'section_external_text' => [
128 'type' => 'string',
129 'default' => 'See More',
130 ],
131
132 'section_external_link' => [
133 'type' => 'string',
134 'default' => '#',
135 ],
136
137 // Title Settings
138
139 'title_tag' => [
140 'type' => 'string',
141 'default' => 'h3',
142 ],
143
144 'title_visibility_style' => [
145 'type' => 'string',
146 'default' => 'default',
147 ],
148
149 'title_limit' => [
150 'type' => 'string',
151 'default' => '',
152 ],
153
154 'title_limit_type' => [
155 'type' => 'string',
156 'default' => 'word',
157 ],
158
159 'title_position' => [
160 'type' => 'string',
161 'default' => 'default',
162 ],
163
164 'title_position_hidden' => [
165 'type' => 'string',
166 'default' => 'default',
167 ],
168
169 'title_hover_underline' => [
170 'type' => 'string',
171 'default' => 'default',
172 ],
173
174 // Thumbnail Settings
175
176 'media_source' => [
177 'type' => 'string',
178 'default' => 'feature_image',
179 ],
180
181 'image_size' => [
182 'type' => 'string',
183 'default' => 'medium_large',
184 ],
185
186 'image_offset_size' => [
187 'type' => 'string',
188 'default' => 'medium_large',
189 ],
190
191 'img_crop_style' => [
192 'type' => 'string',
193 'default' => 'hard',
194 ],
195
196 'image_offset' => [
197 'type' => 'string',
198 'default' => 'medium_large',
199 ],
200 'list_image_side_width' => [
201 'type' => 'object',
202 "default" => (object) [
203 'lg' => '',
204 'md' => '',
205 'sm' => '',
206 ],
207 'style' => [
208 (object) [
209 '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}}; }'
210 ]
211 ]
212 ],
213
214 'image_height' => [
215 'type' => 'object',
216 "default" => (object) [
217 'lg' => '',
218 'md' => '',
219 'sm' => '',
220 ],
221 'style' => [
222 (object) [
223 'selector' => '{{RTTPG}} .tpg-el-main-wrapper .rt-content-loader > :not(.offset-right) .tpg-el-image-wrap,
224 {{RTTPG}} .tpg-el-main-wrapper .rt-content-loader > :not(.offset-right) .tpg-el-image-wrap img,
225 {{RTTPG}} .tpg-el-main-wrapper.slider-layout11-main .rt-grid-hover-item .rt-holder .rt-el-content-wrapper,
226 {{RTTPG}} .tpg-el-main-wrapper.slider-layout12-main .rt-grid-hover-item .rt-holder .rt-el-content-wrapper
227 {height: {{image_height}}; }'
228 ]
229 ]
230 ],
231
232 'offset_image_height' => [
233 'type' => 'object',
234 "default" => (object) [
235 'lg' => '',
236 'md' => '',
237 'sm' => '',
238 ],
239 'style' => [
240 (object) [
241 'selector' => '{{RTTPG}} .tpg-el-main-wrapper .rt-content-loader .offset-right .tpg-el-image-wrap,
242 {{RTTPG}} .tpg-el-main-wrapper .rt-content-loader .offset-right .tpg-el-image-wrap img {height: {{offset_image_height}}; }'
243 ]
244 ]
245 ],
246
247 'c_image_width' => [
248 'type' => 'string',
249 'default' => '',
250 ],
251
252 'c_image_height' => [
253 'type' => 'string',
254 'default' => '',
255 ],
256
257 'hover_animation' => [
258 'type' => 'string',
259 'default' => 'default',
260 ],
261
262 'is_thumb_lightbox' => [
263 'type' => 'string',
264 'default' => 'default',
265 ],
266
267 'is_default_img' => [
268 'type' => 'string',
269 'default' => '',
270 ],
271
272 'default_image' => [
273 'type' => 'object',
274 'default' => [],
275 ],
276
277 // Post Excerpt Settings
278
279 'excerpt_type' => [
280 'type' => 'string',
281 'default' => 'character',
282 ],
283
284 'excerpt_limit' => [
285 'type' => 'string',
286 'default' => '100',
287 ],
288
289 'excerpt_more_text' => [
290 'type' => 'string',
291 'default' => '...',
292 ],
293
294 // Post Meta Settings
295
296 'meta_position' => [
297 'type' => 'string',
298 'default' => 'default',
299 ],
300
301 'show_meta_icon' => [
302 'type' => 'string',
303 'default' => 'yes',
304 ],
305
306 'meta_separator' => [
307 'type' => 'string',
308 'default' => 'default',
309 ],
310
311 'meta_ordering' => [
312 'type' => 'array',
313 'default' => [],
314 ],
315
316 // user meta
317 'author_prefix' => [
318 'type' => 'string',
319 'default' => 'By',
320 ],
321 'author_icon_visibility' => [
322 'type' => 'string',
323 'default' => 'default',
324 ],
325 'show_author_image' => [
326 'type' => 'string',
327 'default' => 'icon',
328 ],
329
330
331 //ACF Settings given below
332
333 'acf_data_lists' => [
334 'type' => 'object',
335 'default' => [],
336 ],
337
338 // Read More Settings
339
340
341 'readmore_btn_style' => [
342 'type' => 'string',
343 'default' => 'default-style',
344 ],
345
346 'read_more_label' => [
347 'type' => 'string',
348 'default' => 'Read More',
349 ],
350
351 'show_btn_icon' => [
352 'type' => 'string',
353 'default' => '',
354 ],
355
356 'readmore_style_tabs' => [
357 'type' => 'string',
358 'default' => 'normal',
359 ],
360
361 'readmore_btn_icon' => [
362 'type' => 'string',
363 'default' => Fns::change_icon( 'fas fa-angle-right', 'right-arrow' ),
364 ],
365 ];
366
367 return apply_filters( 'rttpg_guten_settings_attribute', $settings_attribute );
368 }
369 }