PluginProbe ʕ •ᴥ•ʔ
The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid / 7.7.0
The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid v7.7.0
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 2 years ago SectionTitleSettingsStyle.php 2 years ago SettingsTabController.php 2 years ago StyleTabController.php 2 years ago
SectionTitleSettingsStyle.php
249 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_link' => [
67 'type' => 'string',
68 'default' => '#',
69 ],
70
71 // Section Title Style
72 'section_title_alignment' => [
73 'type' => 'string',
74 'default' => '',
75 ],
76
77 'section_title_margin' => [
78 'type' => 'object',
79 'default' => [
80 'lg' => [
81 'isLinked' => false,
82 'unit' => 'px',
83 'value' => '',
84 ],
85 ],
86 'style' => [
87 (object) [
88 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper{{section_title_margin}}',
89 ],
90 ],
91 ],
92
93 'section_title_radius' => [
94 'type' => 'object',
95 'default' => [
96 'lg' => [
97 'isLinked' => true,
98 'unit' => 'px',
99 'value' => '',
100 ],
101 ],
102 'style' => [
103 (object) [
104 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .tpg-widget-heading{{section_title_radius}}',
105 ],
106 ],
107 ],
108
109 'section_title_typography' => [
110 'type' => 'object',
111 'default' => (object) [
112 'openTypography' => 1,
113 'size' => (object) [
114 'lg' => '',
115 'unit' => 'px',
116 ],
117 'spacing' => (object) [
118 'lg' => '',
119 'unit' => 'px',
120 ],
121 'height' => (object) [
122 'lg' => '',
123 'unit' => 'px',
124 ],
125 'transform' => '',
126 'weight' => '',
127 ],
128 'style' => [
129 (object) [ 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .tpg-widget-heading' ],
130 ],
131 ],
132
133 'section_title_color' => [
134 'type' => 'string',
135 'default' => '',
136 'style' => [
137 (object) [
138 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .tpg-widget-heading {color: {{section_title_color}}; }',
139 ],
140 ],
141 ],
142
143 'section_title_bg_color' => [
144 'type' => 'string',
145 'default' => '',
146 'style' => [
147 (object) [
148 '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}}; }
149 {{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; }',
150 ],
151 ],
152 ],
153
154 'section_title_dot_color' => [
155 'type' => 'string',
156 'default' => '',
157 'style' => [
158 (object) [
159 'selector' => '
160 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading::before {background-color: {{section_title_dot_color}}}
161 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::before {background-color: {{section_title_dot_color}}}',
162 ],
163 ],
164 ],
165
166 'section_title_line_color' => [
167 'type' => 'string',
168 'default' => '',
169 'style' => [
170 (object) [
171 'selector' => '
172 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style1 .tpg-widget-heading-line {border-color: {{section_title_line_color}} }
173 {{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}}; }
174 {{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}}; }
175 {{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}}; }
176 {{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}}; }
177 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::after {background-color: {{section_title_line_color}} }
178 ',
179 ],
180 ],
181 ],
182
183 'section_title_line_width' => [
184 'type' => 'string',
185 'default' => '',
186 'style' => [
187 (object) [
188 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::before {width: {{section_title_line_width}}px; }
189 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::after {width: calc(100% - calc({{section_title_line_width}}px + 10px)) }
190 ',
191 ],
192 ],
193 ],
194
195 'section_title_line_spacing' => [
196 'type' => 'string',
197 'default' => '',
198 'style' => [
199 (object) [
200 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::before {bottom: {{section_title_line_spacing}}px; }
201 {{RTTPG}} .tpg-widget-heading-wrapper.heading-style4::after {bottom: calc({{section_title_line_spacing}}px + 2px) }
202 ',
203 ],
204 ],
205 ],
206
207 'external_icon_size' => [
208 'type' => 'number',
209 'style' => [
210 (object) [
211 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .external-link { font-size: {{external_icon_size}}px;}',
212 ],
213 ],
214 ],
215
216 'external_icon_position' => [
217 'type' => 'number',
218 'style' => [
219 (object) [
220 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .external-link { top: {{external_icon_position}}px;}',
221 ],
222 ],
223 ],
224
225 'external_icon_color' => [
226 'type' => 'string',
227 'default' => '',
228 'style' => [
229 (object) [
230 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .external-link {color: {{external_icon_color}}; }',
231 ],
232 ],
233 ],
234
235 'external_icon_color_hover' => [
236 'type' => 'string',
237 'default' => '',
238 'style' => [
239 (object) [
240 'selector' => '{{RTTPG}} .tpg-widget-heading-wrapper .external-link:hover {color: {{external_icon_color_hover}}; }',
241 ],
242 ],
243 ],
244 ];
245
246 return apply_filters( 'rttpg_guten_settings_attribute', $settings_attribute );
247 }
248 }
249