7
7
8
8
namespace Analog \Elementor ;
9
9
10
- use Analog \Options ;
11
10
use Analog \Plugin ;
12
11
use Elementor \Core \Base \Module ;
13
12
use Elementor \Controls_Manager ;
14
13
use Elementor \Controls_Stack ;
15
14
use Elementor \Core \Kits \Controls \Repeater as Global_Style_Repeater ;
15
+ use Elementor \Core \Kits \Documents \Tabs \Global_Typography ;
16
16
use Elementor \Element_Base ;
17
17
use Elementor \Group_Control_Border ;
18
18
use Elementor \Group_Control_Box_Shadow ;
@@ -154,6 +154,8 @@ public function get_name() {
154
154
/**
155
155
* Register Heading typography controls.
156
156
*
157
+ * @deprecated TODO: Remove in v2.0.9
158
+ *
157
159
* @param Controls_Stack $element Controls object.
158
160
* @param string $section_id Section ID.
159
161
*/
@@ -199,7 +201,9 @@ public function register_heading_typography( Controls_Stack $element, $section_i
199
201
/* translators: %s: Heading 1-6 type */
200
202
'label ' => sprintf ( __ ( 'Heading %s ' , 'ang ' ), $ i ),
201
203
'selector ' => "{$ selector } h {$ i }, {$ selector } .elementor-widget-heading h {$ i }.elementor-heading-title " ,
202
- 'scheme ' => \Elementor \Core \Schemes \Typography::TYPOGRAPHY_1 ,
204
+ 'global ' => [
205
+ 'default ' => Global_Typography::TYPOGRAPHY_PRIMARY ,
206
+ ],
203
207
)
204
208
);
205
209
}
@@ -210,6 +214,8 @@ public function register_heading_typography( Controls_Stack $element, $section_i
210
214
/**
211
215
* Register Body and Paragraph typography controls.
212
216
*
217
+ * @deprecated TODO: Remove in v2.0.9
218
+ *
213
219
* @param Controls_Stack $element Controls object.
214
220
* @param string $section_id Section ID.
215
221
*/
@@ -245,7 +251,9 @@ public function register_body_and_paragraph_typography( Controls_Stack $element,
245
251
'name ' => 'ang_body ' ,
246
252
'label ' => __ ( 'Body Typography ' , 'ang ' ),
247
253
'selector ' => '{{WRAPPER}} ' ,
248
- 'scheme ' => \Elementor \Core \Schemes \Typography::TYPOGRAPHY_3 ,
254
+ 'global ' => [
255
+ 'default ' => Global_Typography::TYPOGRAPHY_TEXT ,
256
+ ],
249
257
)
250
258
);
251
259
@@ -316,7 +324,9 @@ public function register_typography_sizes( Controls_Stack $element, $section_id
316
324
array (
317
325
'name ' => 'ang_size_ ' . $ setting [0 ],
318
326
'label ' => __ ( 'Heading ' , 'ang ' ) . ' ' . $ setting [1 ],
319
- 'scheme ' => \Elementor \Core \Schemes \Typography::TYPOGRAPHY_1 ,
327
+ 'global ' => [
328
+ 'default ' => Global_Typography::TYPOGRAPHY_PRIMARY ,
329
+ ],
320
330
'selector ' => $ selectors ,
321
331
'exclude ' => $ size_controls ,
322
332
)
@@ -355,7 +365,9 @@ public function register_typography_sizes( Controls_Stack $element, $section_id
355
365
array (
356
366
'name ' => 'ang_text_size_ ' . $ setting [0 ],
357
367
'label ' => __ ( 'Text ' , 'ang ' ) . ' ' . $ setting [1 ],
358
- 'scheme ' => \Elementor \Core \Schemes \Typography::TYPOGRAPHY_1 ,
368
+ 'global ' => [
369
+ 'default ' => Global_Typography::TYPOGRAPHY_PRIMARY ,
370
+ ],
359
371
'selector ' => "{{WRAPPER}} .elementor-widget-heading .elementor-heading-title.elementor-size- {$ setting [0 ]}:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) " ,
360
372
'exclude ' => $ size_controls ,
361
373
)
0 commit comments