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