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 / SectionTitleSettingsStyle.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
SectionTitleSettingsStyle.php
254 lines
1 <?php
2
3 namespace RT\ThePostGrid\Controllers\Blocks\BlockController;
4
5 class SectionTitleSettingsStyle {
6
7 /**
8 * @return mixed|void
9 */
10 public static function get_controller() {
11
12 $settings_attribute = [
13
14 'uniqueId' => [
15 'type' => 'string',
16 'default' => '',
17 ],
18
19 'show_section_title' => [
20 'type' => 'string',
21 'default' => 'show',
22 ],
23
24 // Section Title Settings.
25
26 'section_title_style' => [
27 'type' => 'string',
28 'default' => 'style1',
29 ],
30
31 'section_title_source' => [
32 'type' => 'string',
33 'default' => 'custom_title',
34 ],
35
36 'section_title_text' => [
37 'type' => 'string',
38 'default' => 'Section Title',
39 ],
40
41 'title_prefix' => [
42 'type' => 'string',
43 'default' => '',
44 ],
45
46 'title_suffix' => [
47 'type' => 'string',
48 'default' => '',
49 ],
50
51 'section_title_tag' => [
52 'type' => 'string',
53 'default' => 'h2',
54 ],
55
56 'enable_external_link' => [
57 'type' => 'string',
58 'default' => false,
59 ],
60
61 'section_external_text' => [
62 'type' => 'string',
63 'default' => 'See More',
64 ],
65
66 'section_external_url' => [
67 'type' => 'string',
68 'default' => '#',
69 ],
70
71 'section_external_url_target' => [
72 'type' => 'string',
73 'default' => '_self',
74 ],
75
76 // Section Title Style
77 'section_title_alignment' => [
78 'type' => 'string',
79 'default' => '',
80 ],
81
82 'section_title_margin' => [
83 'type' => 'object',
84 'default' => [
85 'lg' => [
86 'isLinked' => false,
87 'unit' => 'px',
88 'value' => '',
89 ],
90 ],
91 'style' => [
92 (object) [
93 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper{{section_title_margin}}',
94 ],
95 ],
96 ],
97
98 'section_title_radius' => [
99 'type' => 'object',
100 'default' => [
101 'lg' => [
102 'isLinked' => true,
103 'unit' => 'px',
104 'value' => '',
105 ],
106 ],
107 'style' => [
108 (object) [
109 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .tpg-widget-heading{{section_title_radius}}',
110 ],
111 ],
112 ],
113
114 'section_title_typography' => [
115 'type' => 'object',
116 'default' => (object) [
117 'openTypography' => 1,
118 'size' => (object) [
119 'lg' => '',
120 'unit' => 'px',
121 ],
122 'spacing' => (object) [
123 'lg' => '',
124 'unit' => 'px',
125 ],
126 'height' => (object) [
127 'lg' => '',
128 'unit' => 'px',
129 ],
130 'transform' => '',
131 'weight' => '',
132 ],
133 'style' => [
134 (object) [ 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .tpg-widget-heading' ],
135 ],
136 ],
137
138 'section_title_color' => [
139 'type' => 'string',
140 'default' => '',
141 'style' => [
142 (object) [
143 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .tpg-widget-heading {color: {{section_title_color}}; }',
144 ],
145 ],
146 ],
147
148 'section_title_bg_color' => [
149 'type' => 'string',
150 'default' => '',
151 'style' => [
152 (object) [
153 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading, {{RTTPG}} .tpg-widget-heading-wrapper.heading-style3 .tpg-widget-heading {background-color: {{section_title_bg_color}}; }
154 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading::after, {{RTTPG}} .tpg-widget-heading-wrapper.heading-style2 .tpg-widget-heading::before {border-color: {{section_title_bg_color}} transparent; }',
155 ],
156 ],
157 ],
158
159 'section_title_dot_color' => [
160 'type' => 'string',
161 'default' => '',
162 'style' => [
163 (object) [
164 'selector' => '
165 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading::before {background-color: {{section_title_dot_color}}}
166 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::before {background-color: {{section_title_dot_color}}}',
167 ],
168 ],
169 ],
170
171 'section_title_line_color' => [
172 'type' => 'string',
173 'default' => '',
174 'style' => [
175 (object) [
176 'selector' => '
177 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line {border-color: {{section_title_line_color}} }
178 {{RTTPG}}.section-title-style-style2 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide::before, {{RTTPG}}.section-title-style-style3 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide::before {border-bottom-color: {{section_title_line_color}}; }
179 {{RTTPG}}.section-title-style-style2 .tpg-header-wrapper:not(.carousel) .tpg-widget-heading-wrapper,{{RTTPG}}.section-title-style-style3 .tpg-header-wrapper:not(.carousel) .tpg-widget-heading-wrapper,{{RTTPG}}.section-title-style-style2 .tpg-header-wrapper.carousel, {{RTTPG}}.section-title-style-style3 .tpg-header-wrapper.carousel {border-bottom-color: {{section_title_line_color}}; }
180 {{RTTPG}}.section-title-style-style2 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide.selected, {{RTTPG}}.section-title-style-style3 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide.selected {color: {{section_title_line_color}}; }
181 {{RTTPG}}.section-title-style-style2 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:hover, {{RTTPG}}.section-title-style-style2 .tpg-header-wrapper.carousel .rt-filter-item-wrap.swiper-wrapper .swiper-slide:hover {color: {{section_title_line_color}}; }
182 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::after {background-color: {{section_title_line_color}} }
183 ',
184 ],
185 ],
186 ],
187
188 'section_title_line_width' => [
189 'type' => 'string',
190 'default' => '',
191 'style' => [
192 (object) [
193 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::before {width: {{section_title_line_width}}px; }
194 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::after {width: calc(100% - calc({{section_title_line_width}}px + 10px)) }
195 ',
196 ],
197 ],
198 ],
199
200 'section_title_line_spacing' => [
201 'type' => 'string',
202 'default' => '',
203 'style' => [
204 (object) [
205 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::before {bottom: {{section_title_line_spacing}}px; }
206 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::after {bottom: calc({{section_title_line_spacing}}px + 2px) }
207 ',
208 ],
209 ],
210 ],
211
212 'external_icon_size' => [
213 'type' => 'number',
214 'style' => [
215 (object) [
216 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .external-link { font-size: {{external_icon_size}}px;}',
217 ],
218 ],
219 ],
220
221 'external_icon_position' => [
222 'type' => 'number',
223 'style' => [
224 (object) [
225 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .external-link { top: {{external_icon_position}}px;}',
226 ],
227 ],
228 ],
229
230 'external_icon_color' => [
231 'type' => 'string',
232 'default' => '',
233 'style' => [
234 (object) [
235 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .external-link {color: {{external_icon_color}}; }',
236 ],
237 ],
238 ],
239
240 'external_icon_color_hover' => [
241 'type' => 'string',
242 'default' => '',
243 'style' => [
244 (object) [
245 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .external-link:hover {color: {{external_icon_color_hover}}; }',
246 ],
247 ],
248 ],
249 ];
250
251 return apply_filters( 'rttpg_guten_settings_attribute', $settings_attribute );
252 }
253 }
254