Gutenberg Blocks – Ultimate Addons for Gutenberg - Version 1.11.1

Version Description

  • Fix: PHP Error - Conflict with Astra v1.7.0
Download this release

Release Info

Developer vrundakansara
Plugin Icon Gutenberg Blocks – Ultimate Addons for Gutenberg
Version 1.11.1
Comparing to
See all releases

Code changes from version 1.11.0 to 1.11.1

classes/class-uagb-block-helper.php CHANGED
@@ -1,4210 +1,4210 @@
1
- <?php
2
- /**
3
- * UAGB Block Helper.
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! class_exists( 'UAGB_Block_Helper' ) ) {
9
-
10
- /**
11
- * Class UAGB_Block_Helper.
12
- */
13
- class UAGB_Block_Helper {
14
-
15
-
16
- /**
17
- * Get Section Block CSS
18
- *
19
- * @since 0.0.1
20
- * @param array $attr The block attributes.
21
- * @param string $id The selector ID.
22
- * @return array The Widget List.
23
- */
24
- public static function get_section_css( $attr, $id ) { // @codingStandardsIgnoreStart
25
-
26
- global $content_width;
27
-
28
- $defaults = UAGB_Helper::$block_list['uagb/section']['attributes'];
29
-
30
- $attr = array_merge( $defaults, $attr );
31
-
32
- $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
33
-
34
- $style = array(
35
- 'padding-top' => $attr['topPadding'] . 'px',
36
- 'padding-bottom' => $attr['bottomPadding'] . 'px',
37
- 'padding-left' => $attr['leftPadding'] . 'px',
38
- 'padding-right' => $attr['rightPadding'] . 'px',
39
- 'border-radius' => $attr['borderRadius'] . "px"
40
- );
41
-
42
- $m_selectors = array();
43
- $t_selectors = array();
44
-
45
- if ( 'right' == $attr['align'] ) {
46
- $style['margin-right'] = $attr['rightMargin'] . 'px';
47
- $style['margin-left'] = 'auto';
48
- $style['margin-top'] = $attr['topMargin'] . 'px';
49
- $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
50
- } elseif ( 'left' == $attr['align'] ) {
51
- $style['margin-right'] = 'auto';
52
- $style['margin-left'] = $attr['leftMargin'] . 'px';
53
- $style['margin-top'] = $attr['topMargin'] . 'px';
54
- $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
55
- } elseif ( 'center' == $attr['align'] ) {
56
- $style['margin-right'] = 'auto';
57
- $style['margin-left'] = 'auto';
58
- $style['margin-top'] = $attr['topMargin'] . 'px';
59
- $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
60
- } else {
61
- $style['margin-top'] = $attr['topMargin'] . 'px';
62
- $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
63
- }
64
-
65
- if ( "none" != $attr['borderStyle'] ) {
66
- $style["border-style"] = $attr['borderStyle'];
67
- $style["border-width"] = $attr['borderWidth'] . "px";
68
- $style["border-color"] = $attr['borderColor'];
69
- }
70
-
71
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
72
-
73
- $section_width = '100%';
74
-
75
- if ( isset( $attr['contentWidth'] ) ) {
76
-
77
- if ( 'boxed' == $attr['contentWidth'] ) {
78
- if ( isset( $attr['width'] ) ) {
79
- $section_width = $attr['width'] . 'px';
80
- }
81
- }
82
- }
83
-
84
- if ( 'wide' != $attr['align'] && 'full' != $attr['align'] ) {
85
- $style['max-width'] = $section_width;
86
- }
87
-
88
- if ( 'image' === $bg_type ) {
89
-
90
- $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
91
- $style['background-position'] = $position;
92
- $style['background-attachment'] = $attr['backgroundAttachment'];
93
- $style['background-repeat'] = $attr['backgroundRepeat'];
94
- $style['background-size'] = $attr['backgroundSize'];
95
-
96
- }
97
-
98
- $inner_width = '100%';
99
-
100
- if ( isset( $attr['contentWidth'] ) ) {
101
- if ( 'boxed' != $attr['contentWidth'] ) {
102
- if ( isset( $attr['themeWidth'] ) && $attr['themeWidth'] == true ) {
103
- $inner_width = $content_width . 'px';
104
- } else {
105
- if ( isset( $attr['innerWidth'] ) ) {
106
- $inner_width = $attr['innerWidth'] . 'px';
107
- }
108
- }
109
- }
110
- }
111
-
112
- $selectors = array(
113
- '.uagb-section__wrap' => $style,
114
- ' > .uagb-section__video-wrap' => array(
115
- 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
116
- ),
117
- ' > .uagb-section__inner-wrap' => array(
118
- 'max-width' => $inner_width,
119
- ),
120
- );
121
-
122
- if ( 'video' == $bg_type ) {
123
- $selectors[' > .uagb-section__overlay'] = array(
124
- 'opacity' => 1,
125
- 'background-color' => $attr['backgroundVideoColor'],
126
- );
127
- } else if ( 'image' == $bg_type ) {
128
- $selectors[' > .uagb-section__overlay'] = array(
129
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
130
- 'background-color' => $attr['backgroundImageColor'],
131
- );
132
- } else if ( 'color' == $bg_type ) {
133
- $selectors[' > .uagb-section__overlay'] = array(
134
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
135
- 'background-color' => $attr['backgroundColor'],
136
- );
137
- } else if ( 'gradient' === $bg_type ) {
138
- $selectors[' > .uagb-section__overlay']['background-color'] = 'transparent';
139
- $selectors[' > .uagb-section__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
140
-
141
- if ( 'linear' === $attr['gradientType'] ) {
142
-
143
- $selectors[' > .uagb-section__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
144
- } else {
145
-
146
- $selectors[' > .uagb-section__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
147
- }
148
- }
149
-
150
- $selectors[' > .uagb-section__overlay']["border-radius"] = $attr['borderRadius'] . "px";
151
-
152
- $m_selectors = array(
153
- '.uagb-section__wrap' => array(
154
- 'padding-top' => $attr['topPaddingMobile'] . 'px',
155
- 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
156
- 'padding-left' => $attr['leftPaddingMobile'] . 'px',
157
- 'padding-right' => $attr['rightPaddingMobile'] . 'px',
158
- )
159
- );
160
-
161
- $t_selectors = array(
162
- '.uagb-section__wrap' => array(
163
- 'padding-top' => $attr['topPaddingTablet'] . 'px',
164
- 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
165
- 'padding-left' => $attr['leftPaddingTablet'] . 'px',
166
- 'padding-right' => $attr['rightPaddingTablet'] . 'px',
167
- )
168
- );
169
-
170
- if ( 'right' == $attr['align'] ) {
171
- $t_selectors['.uagb-section__wrap']['margin-right'] = $attr['rightMarginTablet'] . 'px';
172
- $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
173
- $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
174
-
175
- $m_selectors['.uagb-section__wrap']['margin-right'] = $attr['rightMarginMobile'] . 'px';
176
- $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
177
- $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
178
- } elseif ( 'left' == $attr['align'] ) {
179
- $t_selectors['.uagb-section__wrap']['margin-left'] = $attr['leftMarginTablet'] . 'px';
180
- $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
181
- $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
182
-
183
- $m_selectors['.uagb-section__wrap']['margin-left'] = $attr['leftMarginMobile'] . 'px';
184
- $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
185
- $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
186
- } else {
187
- $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
188
- $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
189
-
190
- $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
191
- $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
192
- }
193
-
194
- // @codingStandardsIgnoreEnd
195
-
196
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-section-' . $id );
197
-
198
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-section-' . $id, 'tablet' );
199
-
200
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-section-' . $id, 'mobile' );
201
-
202
- return $desktop . $tablet . $mobile;
203
- }
204
-
205
- /**
206
- * Get Columns Block CSS
207
- *
208
- * @since 1.8.0
209
- * @param array $attr The block attributes.
210
- * @param string $id The selector ID.
211
- * @return array The Widget List.
212
- */
213
- public static function get_columns_css( $attr, $id ) { // @codingStandardsIgnoreStart
214
-
215
- global $content_width;
216
-
217
- $defaults = UAGB_Helper::$block_list['uagb/columns']['attributes'];
218
-
219
- $attr = array_merge( $defaults, $attr );
220
-
221
- $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
222
-
223
- $m_selectors = array();
224
- $t_selectors = array();
225
-
226
- $style = array(
227
- 'padding-top' => $attr['topPadding'] . 'px',
228
- 'padding-bottom' => $attr['bottomPadding'] . 'px',
229
- 'padding-left' => $attr['leftPadding'] . 'px',
230
- 'padding-right' => $attr['rightPadding'] . 'px',
231
- 'margin-top' => $attr['topMargin'] . 'px',
232
- 'margin-bottom' => $attr['bottomMargin'] . 'px',
233
- 'border-radius' => $attr['borderRadius'] . "px",
234
- );
235
-
236
- if ( "none" != $attr['borderStyle'] ) {
237
- $style["border-style"] = $attr['borderStyle'];
238
- $style["border-width"] = $attr['borderWidth'] . "px";
239
- $style["border-color"] = $attr['borderColor'];
240
- }
241
-
242
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
243
-
244
- if ( 'image' === $bg_type ) {
245
-
246
- $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
247
- $style['background-position'] = $position;
248
- $style['background-attachment'] = $attr['backgroundAttachment'];
249
- $style['background-repeat'] = $attr['backgroundRepeat'];
250
- $style['background-size'] = $attr['backgroundSize'];
251
-
252
- }
253
-
254
- $inner_width = '100%';
255
-
256
- if ( isset( $attr['contentWidth'] ) ) {
257
- if ( 'theme' == $attr['contentWidth'] ) {
258
- $inner_width = $content_width . 'px';
259
- } else if ( 'custom' == $attr['contentWidth'] ) {
260
- $inner_width = $attr['width'] . 'px';
261
- }
262
- }
263
-
264
- $selectors = array(
265
- '.uagb-columns__wrap' => $style,
266
- ' .uagb-columns__video-wrap' => array(
267
- 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
268
- ),
269
- ' > .uagb-columns__inner-wrap' => array(
270
- 'max-width' => $inner_width,
271
- ),
272
- ' .uagb-column__inner-wrap' => array(
273
- 'padding' => $attr['columnGap'] . 'px'
274
- ),
275
- ' .uagb-columns__shape-top svg' => array(
276
- 'width' => "calc( " . $attr['topWidth'] . "% + 1.3px )",
277
- 'height' => $attr['topHeight'] . "px"
278
- ),
279
- ' .uagb-columns__shape-top .uagb-columns__shape-fill' => array(
280
- 'fill' => $attr['topColor'],
281
- 'opacity' => ( isset( $attr['topDividerOpacity'] ) && '' != $attr['topDividerOpacity'] ) ? ( ( $attr['topDividerOpacity'] ) / 100 ) : ""
282
- ),
283
- ' .uagb-columns__shape-bottom svg' => array(
284
- 'width' => "calc( " . $attr['bottomWidth'] . "% + 1.3px )",
285
- 'height' => $attr['bottomHeight'] . "px"
286
- ),
287
- ' .uagb-columns__shape-bottom .uagb-columns__shape-fill' => array(
288
- 'fill' => $attr['bottomColor'],
289
- 'opacity' => ( isset( $attr['bottomDividerOpacity'] ) && '' != $attr['bottomDividerOpacity'] ) ? ( ( $attr['bottomDividerOpacity'] ) / 100 ) : ""
290
- ),
291
- );
292
-
293
- if ( 'video' == $bg_type ) {
294
- $selectors[' > .uagb-columns__overlay'] = array(
295
- 'opacity' => 1,
296
- 'background-color' => $attr['backgroundVideoColor'],
297
- );
298
- } else if ( 'image' == $bg_type ) {
299
- $selectors[' > .uagb-columns__overlay'] = array(
300
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
301
- 'background-color' => $attr['backgroundImageColor'],
302
- );
303
- } else if ( 'color' == $bg_type ) {
304
- $selectors[' > .uagb-columns__overlay'] = array(
305
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
306
- 'background-color' => $attr['backgroundColor'],
307
- );
308
- } elseif ( 'gradient' === $bg_type ) {
309
- $selectors[' > .uagb-columns__overlay']['background-color'] = 'transparent';
310
- $selectors[' > .uagb-columns__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
311
-
312
- if ( 'linear' === $attr['gradientType'] ) {
313
-
314
- $selectors[' > .uagb-columns__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
315
- } else {
316
-
317
- $selectors[' > .uagb-columns__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
318
- }
319
- }
320
-
321
- $selectors[' > .uagb-columns__overlay']["border-radius"] = $attr['borderRadius'] . "px";
322
-
323
- $m_selectors = array(
324
- '.uagb-columns__wrap' => array(
325
- 'padding-top' => $attr['topPaddingMobile'] . 'px',
326
- 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
327
- 'padding-left' => $attr['leftPaddingMobile'] . 'px',
328
- 'padding-right' => $attr['rightPaddingMobile'] . 'px',
329
- 'margin-top' => $attr['topMarginMobile'] . 'px',
330
- 'margin-bottom' => $attr['bottomMarginMobile'] . 'px',
331
- )
332
- );
333
-
334
- $t_selectors = array(
335
- '.uagb-columns__wrap' => array(
336
- 'padding-top' => $attr['topPaddingTablet'] . 'px',
337
- 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
338
- 'padding-left' => $attr['leftPaddingTablet'] . 'px',
339
- 'padding-right' => $attr['rightPaddingTablet'] . 'px',
340
- 'margin-top' => $attr['topMarginTablet'] . 'px',
341
- 'margin-bottom' => $attr['bottomMarginTablet'] . 'px',
342
- )
343
- );
344
-
345
- // @codingStandardsIgnoreEnd
346
-
347
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-columns-' . $id );
348
-
349
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-columns-' . $id, 'tablet' );
350
-
351
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-columns-' . $id, 'mobile' );
352
-
353
- return $desktop . $tablet . $mobile;
354
- }
355
-
356
- /**
357
- * Get Single Column Block CSS
358
- *
359
- * @since 1.8.0
360
- * @param array $attr The block attributes.
361
- * @param string $id The selector ID.
362
- * @return array The Widget List.
363
- */
364
- public static function get_column_css( $attr, $id ) { // @codingStandardsIgnoreStart
365
-
366
- global $content_width;
367
-
368
- $defaults = UAGB_Helper::$block_list['uagb/column']['attributes'];
369
-
370
- $attr = array_merge( $defaults, $attr );
371
-
372
- $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
373
-
374
- $style = array(
375
- 'padding-top' => $attr['topPadding'] . 'px',
376
- 'padding-bottom' => $attr['bottomPadding'] . 'px',
377
- 'padding-left' => $attr['leftPadding'] . 'px',
378
- 'padding-right' => $attr['rightPadding'] . 'px',
379
- 'margin-top' => $attr['topMargin'] . 'px',
380
- 'margin-bottom' => $attr['bottomMargin'] . 'px',
381
- 'margin-left' => $attr['leftMargin'] . 'px',
382
- 'margin-right' => $attr['rightMargin'] . 'px',
383
- 'border-radius' => $attr['borderRadius'] . 'px',
384
- );
385
-
386
- $m_selectors = array();
387
- $t_selectors = array();
388
-
389
- if ( "none" != $attr['borderStyle'] ) {
390
- $style["border-style"] = $attr['borderStyle'];
391
- $style["border-width"] = $attr['borderWidth'] . "px";
392
- $style["border-color"] = $attr['borderColor'];
393
- }
394
-
395
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
396
-
397
- if ( 'image' === $bg_type ) {
398
-
399
- $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
400
- $style['background-position'] = $position;
401
- $style['background-attachment'] = $attr['backgroundAttachment'];
402
- $style['background-repeat'] = $attr['backgroundRepeat'];
403
- $style['background-size'] = $attr['backgroundSize'];
404
-
405
- }
406
-
407
- $selectors = array(
408
- '.uagb-column__wrap' => $style
409
- );
410
-
411
- if ( 'image' == $bg_type ) {
412
- $selectors[' > .uagb-column__overlay'] = array(
413
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
414
- 'background-color' => $attr['backgroundImageColor'],
415
- );
416
- } else if ( 'color' == $bg_type ) {
417
- $selectors[' > .uagb-column__overlay'] = array(
418
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
419
- 'background-color' => $attr['backgroundColor'],
420
- );
421
- } elseif ( 'gradient' === $bg_type ) {
422
- $selectors[' > .uagb-column__overlay']['background-color'] = 'transparent';
423
- $selectors[' > .uagb-column__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
424
-
425
- if ( 'linear' === $attr['gradientType'] ) {
426
-
427
- $selectors[' > .uagb-column__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
428
- } else {
429
-
430
- $selectors[' > .uagb-column__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
431
- }
432
- }
433
-
434
- if ( '' != $attr['colWidth'] && 0 != $attr['colWidth'] ) {
435
-
436
- $selectors[''] = array(
437
- "width" => $attr['colWidth'] . "%"
438
- );
439
- }
440
-
441
- $m_selectors = array(
442
- '.uagb-column__wrap' => array(
443
- 'padding-top' => $attr['topPaddingMobile'] . 'px',
444
- 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
445
- 'padding-left' => $attr['leftPaddingMobile'] . 'px',
446
- 'padding-right' => $attr['rightPaddingMobile'] . 'px',
447
- 'margin-top' => $attr['topMarginMobile'] . 'px',
448
- 'margin-bottom' => $attr['bottomMarginMobile'] . 'px',
449
- 'margin-left' => $attr['leftMarginMobile'] . 'px',
450
- 'margin-right' => $attr['rightMarginMobile'] . 'px',
451
- )
452
- );
453
-
454
- $t_selectors = array(
455
- '.uagb-column__wrap' => array(
456
- 'padding-top' => $attr['topPaddingTablet'] . 'px',
457
- 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
458
- 'padding-left' => $attr['leftPaddingTablet'] . 'px',
459
- 'padding-right' => $attr['rightPaddingTablet'] . 'px',
460
- 'margin-top' => $attr['topMarginTablet'] . 'px',
461
- 'margin-bottom' => $attr['bottomMarginTablet'] . 'px',
462
- 'margin-left' => $attr['leftMarginTablet'] . 'px',
463
- 'margin-right' => $attr['rightMarginTablet'] . 'px',
464
- )
465
- );
466
-
467
- if ( '' != $attr['colWidthTablet'] && 0 != $attr['colWidthTablet'] ) {
468
-
469
- $t_selectors[''] = array(
470
- "width" => $attr['colWidthTablet'] . "%"
471
- );
472
- }
473
-
474
- if ( '' != $attr['colWidthMobile'] && 0 != $attr['colWidthMobile'] ) {
475
-
476
- $m_selectors[''] = array(
477
- "width" => $attr['colWidthMobile'] . "%"
478
- );
479
- }
480
-
481
- // @codingStandardsIgnoreEnd
482
-
483
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-column-' . $id );
484
-
485
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-column-' . $id, 'tablet' );
486
-
487
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-column-' . $id, 'mobile' );
488
-
489
- return $desktop . $tablet . $mobile;
490
- }
491
-
492
- /**
493
- * Get Advanced Heading Block CSS
494
- *
495
- * @since 0.0.1
496
- * @param array $attr The block attributes.
497
- * @param string $id The selector ID.
498
- * @return array The Widget List.
499
- */
500
- public static function get_adv_heading_css( $attr, $id ) { // @codingStandardsIgnoreStart
501
-
502
- $defaults = UAGB_Helper::$block_list['uagb/advanced-heading']['attributes'];
503
-
504
- $attr = array_merge( $defaults, (array) $attr );
505
-
506
- $m_selectors = array();
507
- $t_selectors = array();
508
-
509
- $selectors = array(
510
- ' .uagb-heading-text' => array(
511
- 'text-align' => $attr['headingAlign'],
512
- 'font-family' => $attr['headFontFamily'],
513
- 'font-weight' => $attr['headFontWeight'],
514
- 'font-size' => $attr['headFontSize'] . $attr['headFontSizeType'],
515
- 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
516
- 'color' => $attr['headingColor'],
517
- 'margin-bottom' => $attr['headSpace'] . "px",
518
- ),
519
- ' .uagb-separator-wrap' => array(
520
- 'text-align' => $attr['headingAlign'],
521
- ),
522
- ' .uagb-desc-text' => array(
523
- 'text-align' => $attr['headingAlign'],
524
- 'font-family' => $attr['subHeadFontFamily'],
525
- 'font-weight' => $attr['subHeadFontWeight'],
526
- 'font-size' => $attr['subHeadFontSize'] . $attr['subHeadFontSizeType'],
527
- 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
528
- 'color' => $attr['subHeadingColor'],
529
- )
530
-
531
- );
532
-
533
- $m_selectors = array(
534
- ' .uagb-heading-text' => array(
535
- 'font-size' => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
536
- 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
537
- ),
538
- ' .uagb-desc-text' => array(
539
- 'font-size' => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
540
- 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
541
- )
542
-
543
- );
544
-
545
- $t_selectors = array(
546
- ' .uagb-heading-text' => array(
547
- 'font-size' => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
548
- 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
549
-
550
- ),
551
- ' .uagb-desc-text' => array(
552
- 'font-size' => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
553
- 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
554
- )
555
-
556
- );
557
-
558
- $seperatorStyle = isset( $attr['seperatorStyle'] ) ? $attr['seperatorStyle'] : '';
559
-
560
- if( 'none' !== $seperatorStyle ){
561
- $selectors[' .uagb-separator'] = array (
562
- 'border-top-style' => $attr['seperatorStyle'] ,
563
- 'border-top-width' => $attr['separatorHeight'] . "px",
564
- 'width' => $attr['separatorWidth'] . $attr['separatorWidthType'],
565
- 'border-color' => $attr['separatorColor'],
566
- 'margin-bottom' => $attr['separatorSpace'] . "px",
567
- );
568
-
569
- }
570
- // @codingStandardsIgnoreEnd
571
-
572
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-adv-heading-' . $id );
573
-
574
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-adv-heading-' . $id, 'tablet' );
575
-
576
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-adv-heading-' . $id, 'mobile' );
577
-
578
- return $desktop . $tablet . $mobile;
579
- }
580
-
581
- /**
582
- * Get Multi Buttons Block CSS
583
- *
584
- * @since 0.0.1
585
- * @param array $attr The block attributes.
586
- * @param string $id The selector ID.
587
- * @return array The Widget List.
588
- */
589
- public static function get_buttons_css( $attr, $id ) { // @codingStandardsIgnoreStart
590
-
591
- $defaults = UAGB_Helper::$block_list['uagb/buttons']['attributes'];
592
-
593
- $attr = array_merge( $defaults, (array) $attr );
594
-
595
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
596
-
597
- $m_selectors = array();
598
- $t_selectors = array();
599
-
600
- $selectors = array(
601
- ' .uagb-button__wrapper' => array(
602
- 'margin-left' => ( $attr['gap']/2 ) . 'px',
603
- 'margin-right' => ( $attr['gap']/2 ) . 'px'
604
- ),
605
- ' .uagb-button__wrapper:first-child' => array (
606
- 'margin-left' => 0
607
- ),
608
- ' .uagb-button__wrapper:last-child' => array (
609
- 'margin-right' => 0
610
- ),
611
- ' .uagb-buttons__wrap' => array (
612
- 'justify-content' => $alignment,
613
- '-webkit-box-pack'=> $alignment,
614
- '-ms-flex-pack' => $alignment,
615
- 'justify-content' => $alignment,
616
- '-webkit-box-align' => $alignment,
617
- '-ms-flex-align' => $alignment,
618
- 'align-items' => $alignment,
619
- )
620
- );
621
-
622
- foreach ( $attr['buttons'] as $key => $button ) {
623
-
624
- $button['size'] = ( isset( $button['size'] ) ) ? $button['size'] : '';
625
- $button['borderWidth'] = ( isset( $button['borderWidth'] ) ) ? $button['borderWidth'] : '';
626
- $button['borderStyle'] = ( isset( $button['borderStyle'] ) ) ? $button['borderStyle'] : '';
627
- $button['borderColor'] = ( isset( $button['borderColor'] ) ) ? $button['borderColor'] : '';
628
- $button['borderRadius'] = ( isset( $button['borderRadius'] ) ) ? $button['borderRadius'] : '';
629
- $button['background'] = ( isset( $button['background'] ) ) ? $button['background'] : '';
630
- $button['hBackground'] = ( isset( $button['hBackground'] ) ) ? $button['hBackground'] : '';
631
- $button['borderHColor'] = ( isset( $button['borderHColor'] ) ) ? $button['borderHColor'] : '';
632
- $button['vPadding'] = ( isset( $button['vPadding'] ) ) ? $button['vPadding'] : '';
633
- $button['hPadding'] = ( isset( $button['hPadding'] ) ) ? $button['hPadding'] : '';
634
- $button['color'] = ( isset( $button['color'] ) ) ? $button['color'] : '';
635
- $button['hColor'] = ( isset( $button['hColor'] ) ) ? $button['hColor'] : '';
636
- $button['sizeType'] = ( isset( $button['sizeType'] ) ) ? $button['sizeType'] : 'px';
637
- $button['sizeMobile'] = ( isset( $button['sizeMobile'] ) ) ? $button['sizeMobile'] : '';
638
- $button['sizeTablet'] = ( isset( $button['sizeTablet'] ) ) ? $button['sizeTablet'] : '';
639
- $button['lineHeight'] = ( isset( $button['lineHeight'] ) ) ? $button['lineHeight'] : '';
640
- $button['lineHeightType'] = ( isset( $button['lineHeightType'] ) ) ? $button['lineHeightType'] : '';
641
- $button['lineHeightMobile'] = ( isset( $button['lineHeightMobile'] ) ) ? $button['lineHeightMobile'] : '';
642
- $button['lineHeightTablet'] = ( isset( $button['lineHeightTablet'] ) ) ? $button['lineHeightTablet'] : '';
643
-
644
-
645
- if ( $attr['btn_count'] <= $key ) {
646
- break;
647
- }
648
-
649
- $selectors[' .uagb-buttons-repeater-' . $key] = array (
650
- 'font-size' => $button['size'] . $button['sizeType'],
651
- 'line-height' => $button['lineHeight'] . $button['lineHeightType'],
652
- 'font-family' => $attr['fontFamily'],
653
- 'font-weight' => $attr['fontWeight'],
654
- 'border-width' => $button['borderWidth'] . 'px',
655
- 'border-color' => $button['borderColor'],
656
- 'border-style' => $button['borderStyle'],
657
- 'border-radius' => $button['borderRadius'] . 'px',
658
- 'background' => $button['background']
659
- );
660
-
661
- $selectors[' .uagb-buttons-repeater-' . $key . ':hover'] = array (
662
- 'background' => $button['hBackground'],
663
- 'border-width' => $button['borderWidth'] . 'px',
664
- 'border-color' => $button['borderHColor'],
665
- 'border-style' => $button['borderStyle'],
666
- );
667
-
668
- $selectors[' .uagb-buttons-repeater-' . $key . ' a.uagb-button__link'] = array (
669
- 'padding' => $button['vPadding'] . 'px ' . $button['hPadding'] . 'px',
670
- 'color' => $button['color']
671
- );
672
-
673
- $selectors[' .uagb-buttons-repeater-' . $key . ':hover a.uagb-button__link'] = array (
674
- 'color' => $button['hColor']
675
- );
676
-
677
- $m_selectors[' .uagb-buttons-repeater-' . $key] = array (
678
- 'font-size' => $button['sizeMobile'] . $button['sizeType'],
679
- 'line-height' => $button['lineHeightMobile'] . $button['lineHeightType'],
680
- );
681
-
682
- $t_selectors[' .uagb-buttons-repeater-' . $key] = array (
683
- 'font-size' => $button['sizeTablet'] . $button['sizeType'],
684
- 'line-height' => $button['lineHeightTablet'] . $button['lineHeightType'],
685
- );
686
- }
687
-
688
- if ( "desktop" == $attr['stack'] ) {
689
-
690
- $selectors[" .uagb-button__wrapper"] = array (
691
- 'margin-left' => 0,
692
- 'margin-right' => 0,
693
- "margin-bottom" => $attr['gap'] . "px"
694
- );
695
-
696
- $selectors[" .uagb-buttons__wrap"] = array (
697
- "flex-direction" => "column"
698
- );
699
-
700
- $selectors[" .uagb-button__wrapper:last-child"] = array (
701
- "margin-bottom" => 0
702
- );
703
-
704
- } else if ( "tablet" == $attr['stack'] ) {
705
-
706
- $t_selectors[" .uagb-button__wrapper"] = array (
707
- 'margin-left' => 0,
708
- 'margin-right' => 0,
709
- "margin-bottom" => $attr['gap'] . "px"
710
- );
711
-
712
- $t_selectors[" .uagb-buttons__wrap"] = array (
713
- "flex-direction" => "column"
714
- );
715
-
716
- $t_selectors[" .uagb-button__wrapper:last-child"] = array (
717
- "margin-bottom" => 0
718
- );
719
-
720
- } else if ( "mobile" == $attr['stack'] ) {
721
-
722
- $m_selectors[" .uagb-button__wrapper"] = array (
723
- 'margin-left' => 0,
724
- 'margin-right' => 0,
725
- "margin-bottom" => $attr['gap'] . "px"
726
- );
727
-
728
- $m_selectors[" .uagb-buttons__wrap"] = array (
729
- "flex-direction" => "column"
730
- );
731
-
732
- $m_selectors[" .uagb-button__wrapper:last-child"] = array (
733
- "margin-bottom" => 0
734
- );
735
- }
736
-
737
- // @codingStandardsIgnoreEnd
738
-
739
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-buttons-' . $id );
740
-
741
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-buttons-' . $id, 'tablet' );
742
-
743
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-buttons-' . $id, 'mobile' );
744
-
745
- return $desktop . $tablet . $mobile;
746
- }
747
-
748
- /**
749
- * Get Info Box CSS
750
- *
751
- * @since 0.0.1
752
- * @param array $attr The block attributes.
753
- * @param string $id The selector ID.
754
- * @return array The Widget List.
755
- */
756
- public static function get_info_box_css( $attr, $id ) { // @codingStandardsIgnoreStart.
757
- $defaults = UAGB_Helper::$block_list['uagb/info-box']['attributes'];
758
-
759
- $attr = array_merge( $defaults, (array) $attr );
760
-
761
- $m_selectors = array();
762
- $t_selectors = array();
763
-
764
- $selectors = array(
765
- ' .uagb-ifb-icon' => array(
766
- 'height' => $attr['iconSize']. "px",
767
- 'width' => $attr['iconSize']. "px",
768
- 'line-height' => $attr['iconSize']. "px",
769
- ),
770
- ' .uagb-ifb-icon > span' => array(
771
- 'font-size' => $attr['iconSize']. "px",
772
- 'height' => $attr['iconSize']. "px",
773
- 'width' => $attr['iconSize']. "px",
774
- 'line-height' => $attr['iconSize']. "px",
775
- 'color' => $attr['iconColor'],
776
- ),
777
- ' .uagb-ifb-icon svg' => array(
778
- 'fill' => $attr['iconColor'],
779
- ),
780
- ' .uagb-ifb-icon:hover > span' => array(
781
- 'color' => $attr['iconHover'] ,
782
- ),
783
- ' .uagb-ifb-icon:hover svg' => array(
784
- 'fill' => $attr['iconHover'] ,
785
- ),
786
- ' .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap' => array(
787
- 'margin-left' => $attr['iconLeftMargin'].'px',
788
- 'margin-right' => $attr['iconRightMargin'].'px',
789
- 'margin-top' => $attr['iconTopMargin'].'px',
790
- 'margin-bottom' => $attr['iconBottomMargin'].'px',
791
- ),
792
- // Image.
793
- ' .uagb-ifb-image-content > img' => array(
794
- 'width'=> $attr['imageWidth'].'px',
795
- 'max-width'=> $attr['imageWidth'].'px',
796
- ),
797
- ' .uagb-infobox .uagb-ifb-image-content img' => array(
798
- 'border-radius' => $attr['iconimgBorderRadius'].'px',
799
- ),
800
- // CTA style .
801
- ' .uagb-infobox-cta-link' => array(
802
- 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
803
- 'font-family' => $attr['ctaFontFamily'],
804
- 'font-weight' => $attr['ctaFontWeight'],
805
- 'color' => $attr['ctaLinkColor'],
806
- ),
807
- ' .uagb-infobox-cta-link:hover' => array(
808
- 'color' => $attr['ctaLinkHoverColor'],
809
- ),
810
- ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
811
- 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
812
- 'height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
813
- 'width' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
814
- 'line-height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
815
- ),
816
- ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
817
- 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
818
- 'height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
819
- 'width' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
820
- 'line-height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
821
- ),
822
- ' .uagb-infobox-cta-link svg' => array(
823
- 'fill' => $attr['ctaLinkColor'],
824
- ),
825
- ' .uagb-infobox-cta-link:hover svg' => array(
826
- 'fill' => $attr['ctaLinkHoverColor'],
827
- ),
828
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link' => array(
829
- 'color' => $attr['ctaBtnLinkColor'],
830
- 'background-color' => $attr['ctaBgColor'],
831
- 'border-style' => $attr['ctaBorderStyle'],
832
- 'border-color' => $attr['ctaBorderColor'],
833
- 'border-radius' => $attr['ctaBorderRadius'] . "px",
834
- 'border-width' => $attr['ctaBorderWidth'] . "px",
835
- 'padding-top' => $attr['ctaBtnVertPadding'] . "px",
836
- 'padding-bottom' => $attr['ctaBtnVertPadding'] . "px",
837
- 'padding-left' => $attr['ctaBtnHrPadding'] . "px",
838
- 'padding-right' => $attr['ctaBtnHrPadding'] . "px",
839
-
840
- ),
841
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg' => array(
842
- 'fill' => $attr['ctaBtnLinkColor'],
843
- ),
844
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover' => array(
845
- 'color' => $attr['ctaLinkHoverColor'],
846
- 'background-color' => $attr['ctaBgHoverColor'],
847
- 'border-color' => $attr['ctaBorderhoverColor'],
848
- ),
849
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg' => array(
850
- 'fill' => $attr['ctaLinkHoverColor'],
851
- ),
852
- // Prefix Style.
853
- ' .uagb-ifb-title-prefix' => array(
854
- 'font-size' => $attr['prefixFontSize'].$attr['prefixFontSizeType'],
855
- 'font-family' => $attr['prefixFontFamily'],
856
- 'font-weight' => $attr['prefixFontWeight'],
857
- 'line-height' => $attr['prefixLineHeight'] . $attr['prefixLineHeightType'],
858
- 'color' => $attr['prefixColor'],
859
- 'margin-bottom' => $attr['prefixSpace'].'px',
860
- ),
861
- // Title Style.
862
- ' .uagb-ifb-title' => array(
863
- 'font-size' => $attr['headFontSize'].$attr['headFontSizeType'],
864
- 'font-family' => $attr['headFontFamily'],
865
- 'font-weight' => $attr['headFontWeight'],
866
- 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
867
- 'color' => $attr['headingColor'],
868
- 'margin-bottom' => $attr['headSpace'].'px',
869
- ),
870
- // Description Style.
871
- ' .uagb-ifb-desc' => array(
872
- 'font-size' => $attr['subHeadFontSize'].$attr['subHeadFontSizeType'],
873
- 'font-family' => $attr['subHeadFontFamily'],
874
- 'font-weight' => $attr['subHeadFontWeight'],
875
- 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
876
- 'color' => $attr['subHeadingColor'],
877
- 'margin-bottom' => $attr['subHeadSpace'].'px',
878
- ),
879
- // Seperator.
880
- ' .uagb-ifb-separator' => array(
881
- 'width' => $attr['seperatorWidth'].$attr['separatorWidthType'],
882
- 'border-top-width' => $attr['seperatorThickness'].'px',
883
- 'border-top-color' => $attr['seperatorColor'],
884
- 'border-top-style' => $attr['seperatorStyle'],
885
- ),
886
- ' .uagb-ifb-separator-parent' => array(
887
- 'margin-bottom' => $attr['seperatorSpace'].'px',
888
- ),
889
- // CTA icon space.
890
- ' .uagb-ifb-align-icon-after' => array(
891
- 'margin-left' => $attr['ctaIconSpace'].'px',
892
- ),
893
- ' .uagb-ifb-align-icon-before' => array(
894
- 'margin-right' => $attr['ctaIconSpace'].'px',
895
- ),
896
- );
897
-
898
- if( 'above-title' === $attr['iconimgPosition'] || 'below-title' === $attr['iconimgPosition'] ){
899
- $selectors[' .uagb-infobox__content-wrap'] = array(
900
- 'text-align' => $attr['headingAlign'],
901
- );
902
- }
903
-
904
- $m_selectors = array(
905
- ' .uagb-ifb-title-prefix' => array(
906
- 'font-size' => $attr['prefixFontSizeMobile'].$attr['prefixFontSizeType'],
907
- 'line-height' => $attr['prefixLineHeightMobile'] . $attr['prefixLineHeightType'],
908
- ),
909
- ' .uagb-ifb-title' => array(
910
- 'font-size' => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
911
- 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
912
- ),
913
- ' .uagb-ifb-desc' => array(
914
- 'font-size' => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
915
- 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
916
- ),
917
- ' .uagb-infobox-cta-link' => array(
918
- 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
919
- ),
920
- ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
921
- 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
922
- 'height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
923
- 'width' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
924
- 'line-height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
925
- ),
926
- ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
927
- 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
928
- 'height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
929
- 'width' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
930
- 'line-height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
931
- ),
932
- );
933
-
934
- $t_selectors = array(
935
- ' .uagb-ifb-title-prefix' => array(
936
- 'font-size' => $attr['prefixFontSizeTablet'].$attr['prefixFontSizeType'],
937
- ),
938
- ' .uagb-ifb-title' => array(
939
- 'font-size' => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
940
- ),
941
- ' .uagb-ifb-desc' => array(
942
- 'font-size' => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
943
- ),
944
- ' .uagb-infobox-cta-link' => array(
945
- 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
946
- ),
947
- ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
948
- 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
949
- 'height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
950
- 'width' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
951
- 'line-height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
952
- ),
953
- ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
954
- 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
955
- 'height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
956
- 'width' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
957
- 'line-height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
958
- ),
959
- );
960
-
961
- // @codingStandardsIgnoreEnd.
962
-
963
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-infobox-' . $id );
964
-
965
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-infobox-' . $id, 'tablet' );
966
-
967
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-infobox-' . $id, 'mobile' );
968
-
969
- return $desktop . $tablet . $mobile;
970
- }
971
-
972
- /**
973
- * Get CTA CSS
974
- *
975
- * @since 1.7.0
976
- * @param array $attr The block attributes.
977
- * @param string $id The selector ID.
978
- * @return array The Widget List.
979
- */
980
- public static function get_call_to_action_css( $attr, $id ) { // @codingStandardsIgnoreStart.
981
- $defaults = UAGB_Helper::$block_list['uagb/call-to-action']['attributes'];
982
-
983
- $attr = array_merge( $defaults, (array) $attr );
984
-
985
- $t_selectors = array();
986
- $m_selectors = array();
987
-
988
- $selectors = array(
989
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
990
- 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
991
- 'font-family' => $attr['ctaFontFamily'],
992
- 'font-weight' => $attr['ctaFontWeight'],
993
- 'color' => $attr['ctaBtnLinkColor'],
994
- ),
995
- ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-text ' => array(
996
- 'color' => $attr['ctaLinkHoverColor'],
997
- ),
998
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
999
- 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1000
- 'font-family' => $attr['ctaFontFamily'],
1001
- 'font-weight' => $attr['ctaFontWeight'],
1002
- 'color' => $attr['ctaBtnLinkColor'],
1003
- 'background-color' => $attr['ctaBgColor'],
1004
- 'border-style' => $attr['ctaBorderStyle'],
1005
- 'border-color' => $attr['ctaBorderColor'],
1006
- 'border-radius' => $attr['ctaBorderRadius']. "px",
1007
- 'border-width' => $attr['ctaBorderWidth']. "px",
1008
- 'padding-top' => $attr['ctaBtnVertPadding']. "px",
1009
- 'padding-bottom' => $attr['ctaBtnVertPadding']. "px",
1010
- 'padding-left' => $attr['ctaBtnHrPadding']. "px",
1011
- 'padding-right' => $attr['ctaBtnHrPadding']. "px",
1012
- ),
1013
- ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-button' => array(
1014
- 'color' => $attr['ctaLinkHoverColor'],
1015
- 'background-color' => $attr['ctaBgHoverColor'],
1016
- 'border-color' => $attr['ctaBorderhoverColor'],
1017
- ),
1018
- ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1019
- 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1020
- 'width' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1021
- 'height' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1022
- 'line-height' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1023
- ),
1024
- ' .uagb-cta__button-wrapper .uagb-cta__block-link svg' => array(
1025
- 'fill' => $attr['ctaBtnLinkColor'],
1026
- ),
1027
- ' .uagb-cta__button-wrapper:hover .uagb-cta__block-link svg' => array(
1028
- 'fill' => $attr['ctaLinkHoverColor'],
1029
- ),
1030
- ' .uagb-cta__title' => array(
1031
- 'font-size' => $attr['titleFontSize']. $attr['titleFontSizeType'],
1032
- 'font-family' => $attr['titleFontFamily'],
1033
- 'font-weight' => $attr['titleFontWeight'],
1034
- 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
1035
- 'color' => $attr['titleColor'],
1036
- 'margin-bottom' => $attr['titleSpace']. "px",
1037
- ),
1038
- ' .uagb-cta__desc' => array(
1039
- 'font-size' => $attr['descFontSize']. $attr['descFontSizeType'],
1040
- 'font-family' => $attr['descFontFamily'],
1041
- 'font-weight' => $attr['descFontWeight'],
1042
- 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
1043
- 'color' => $attr['descColor'],
1044
- 'margin-bottom' => $attr['descSpace']. "px",
1045
- ),
1046
- ' .uagb-cta__align-button-after' => array(
1047
- 'margin-left' => $attr['ctaIconSpace']. "px",
1048
- ),
1049
- ' .uagb-cta__align-button-before' => array(
1050
- 'margin-right' => $attr['ctaIconSpace']. "px",
1051
- ),
1052
- );
1053
-
1054
- $selectors[' .uagb-cta__content-wrap'] = array(
1055
- 'text-align' => $attr['textAlign'],
1056
- );
1057
-
1058
- if( 'left' === $attr['textAlign'] && "right" === $attr['ctaPosition'] ){
1059
- $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1060
- 'margin-left' => $attr['ctaLeftSpace']. "px",
1061
- 'margin-right' => '0px',
1062
- );
1063
- }
1064
-
1065
- if( 'right' === $attr['textAlign'] && 'right' === $attr['ctaPosition'] ){
1066
- $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1067
- 'margin-right' => $attr['ctaRightSpace']. "px",
1068
- 'margin-left' => '0px',
1069
- );
1070
- }
1071
-
1072
- if( $attr['ctaPosition'] === "right" && ( $attr['ctaType'] === 'text' || $attr['ctaType'] === 'button' ) ){
1073
- $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
1074
- "width" => $attr['contentWidth']."%",
1075
- );
1076
-
1077
- $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
1078
- "width" => (100 - $attr['contentWidth'] )."%",
1079
- );
1080
- }
1081
-
1082
- $t_selectors = array(
1083
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1084
- 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1085
- ),
1086
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1087
- 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1088
- ),
1089
- ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1090
- 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1091
- 'width' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1092
- 'height' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1093
- 'line-height' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1094
- ),
1095
- ' .uagb-cta__title' => array(
1096
- 'font-size' => $attr['titleFontSizeTablet']. $attr['titleFontSizeType'],
1097
- 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
1098
- ),
1099
- ' .uagb-cta__desc' => array(
1100
- 'font-size' => $attr['descFontSizeTablet']. $attr['descFontSizeType'],
1101
- 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
1102
- ),
1103
- );
1104
-
1105
- $m_selectors = array(
1106
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1107
- 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1108
- ),
1109
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1110
- 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1111
- ),
1112
- ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1113
- 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1114
- 'width' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1115
- 'height' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1116
- 'line-height' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1117
- ),
1118
- ' .uagb-cta__title' => array(
1119
- 'font-size' => $attr['titleFontSizeMobile']. $attr['titleFontSizeType'],
1120
- 'line-height' => $attr['titleLineHeightMobile']. $attr['titleLineHeightType'],
1121
- ),
1122
- ' .uagb-cta__desc' => array(
1123
- 'font-size' => $attr['descFontSizeMobile']. $attr['descFontSizeType'],
1124
- 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
1125
- ),
1126
- );
1127
-
1128
- // @codingStandardsIgnoreEnd.
1129
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cta-block-' . $id );
1130
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-cta-block-' . $id, 'tablet' );
1131
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-cta-block-' . $id, 'mobile' );
1132
-
1133
- return $desktop . $tablet . $mobile;
1134
- }
1135
-
1136
- /**
1137
- * Get Testimonial CSS
1138
- *
1139
- * @since 0.0.1
1140
- * @param array $attr The block attributes.
1141
- * @param string $id The selector ID.
1142
- * @return array The Widget List.
1143
- */
1144
- public static function get_testimonial_css( $attr, $id ) { // @codingStandardsIgnoreStart.
1145
-
1146
- $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
1147
-
1148
- $attr = array_merge( $defaults, (array) $attr );
1149
-
1150
- $img_align = 'center';
1151
- if( 'left' === $attr['headingAlign']){
1152
- $img_align = 'flex-start';
1153
- }else if( 'right' === $attr['headingAlign']){
1154
- $img_align = 'flex-end';
1155
- }
1156
-
1157
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
1158
-
1159
- $selectors = array(
1160
- ' .uagb-testimonial__wrap' => array(
1161
- 'padding-left' => ( ($attr['columnGap']) /2 ) . 'px',
1162
- 'padding-right' => ( ($attr['columnGap']) /2 ) . 'px',
1163
- 'margin-bottom' => $attr['rowGap'] . 'px',
1164
- ),
1165
- ' .uagb-testimonial__wrap .uagb-tm__image-content' => array(
1166
- 'padding-left' => $attr['imgHrPadding'] . 'px',
1167
- 'padding-right' => $attr['imgHrPadding'] . 'px',
1168
- 'padding-top' => $attr['imgVrPadding'] . 'px',
1169
- 'padding-bottom' => $attr['imgVrPadding'] . 'px',
1170
- ),
1171
- ' .uagb-tm__image img' => array(
1172
- 'width' => $attr['imageWidth'] . 'px',
1173
- 'max-width' => $attr['imageWidth'] . 'px',
1174
- ),
1175
- ' .uagb-tm__content' => array(
1176
- 'text-align' => $attr['headingAlign'],
1177
- 'padding' => $attr['contentPadding'] . 'px',
1178
- ),
1179
- ' .uagb-tm__author-name' => array(
1180
- 'color' => $attr['authorColor'],
1181
- 'font-size' => $attr['nameFontSize'] . $attr['nameFontSizeType'],
1182
- 'font-family' => $attr['nameFontFamily'],
1183
- 'font-weight' => $attr['nameFontWeight'],
1184
- 'line-height' => $attr['nameLineHeight'] . $attr['nameLineHeightType'],
1185
- 'margin-bottom' => $attr['nameSpace'] . 'px',
1186
- ),
1187
- ' .uagb-tm__company' => array(
1188
- 'color' => $attr['companyColor'],
1189
- 'font-size' => $attr['companyFontSize'] . $attr['companyFontSizeType'],
1190
- 'font-family' => $attr['companyFontFamily'],
1191
- 'font-weight' => $attr['companyFontWeight'],
1192
- 'line-height' => $attr['companyLineHeight'] . $attr['companyLineHeightType'],
1193
- ),
1194
- ' .uagb-tm__desc' => array(
1195
- 'color' => $attr['descColor'],
1196
- 'font-size' => $attr['descFontSize'] . $attr['descFontSizeType'],
1197
- 'font-family' => $attr['descFontFamily'],
1198
- 'font-weight' => $attr['descFontWeight'],
1199
- 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
1200
- 'margin-bottom' => $attr['descSpace'] . 'px',
1201
- ),
1202
- ' .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content' => array(
1203
- 'background-color' => $attr['backgroundColor'],
1204
- ),
1205
- ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content' => array(
1206
- 'background-image' => ( isset( $attr['backgroundImage']['url'] ) ) ? 'url("'.$attr['backgroundImage']['url'].'")' : null,
1207
- 'background-position'=> $position,
1208
- 'background-repeat'=> $attr['backgroundRepeat'],
1209
- 'background-size'=> $attr['backgroundSize'],
1210
- ),
1211
- ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay' => array(
1212
- 'background-color' => $attr['backgroundImageColor'],
1213
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? ( ( 100 - $attr['backgroundOpacity'] ) / 100 ) : '0.5',
1214
- ),
1215
- ' .uagb-testimonial__wrap .uagb-tm__content' => array(
1216
- 'border-color' => $attr['borderColor'],
1217
- 'border-style' => $attr['borderStyle'],
1218
- 'border-width' => $attr['borderWidth'] . 'px',
1219
- 'border-radius' => $attr['borderRadius'] . 'px',
1220
- ),
1221
- ' ul.slick-dots li button:before' => array(
1222
- 'color' => $attr['arrowColor'],
1223
- ),
1224
- ' ul.slick-dots li.slick-active button:before' => array(
1225
- 'color' => $attr['arrowColor'],
1226
- ),
1227
- ' .uagb-tm__image-position-top .uagb-tm__image-content' => array(
1228
- 'justify-content' => $img_align,
1229
- ),
1230
- );
1231
-
1232
- if( '1' === $attr['test_item_count'] || $attr['test_item_count'] === $attr['columns'] || 'dots' === $attr['arrowDots'] ){
1233
- $selectors['.uagb-slick-carousel'] = array(
1234
- 'padding' => '0px',
1235
- );
1236
- }
1237
-
1238
- $t_selectors = array(
1239
- ' .uagb-tm__author-name' => array(
1240
- 'font-size' => $attr['nameFontSizeTablet'] . $attr['nameFontSizeType'],
1241
- 'line-height' => $attr['nameLineHeightTablet'] . $attr['nameLineHeightType'],
1242
- ),
1243
- ' .uagb-tm__company' => array(
1244
- 'font-size' => $attr['companyFontSizeTablet'] . $attr['companyFontSizeType'],
1245
- 'line-height' => $attr['companyLineHeightTablet'] . $attr['companyLineHeightType'],
1246
- ),
1247
- ' .uagb-tm__desc' => array(
1248
- 'font-size' => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
1249
- 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
1250
- ),
1251
- );
1252
-
1253
- $m_selectors = array(
1254
- ' .uagb-tm__author-name' => array(
1255
- 'font-size' => $attr['nameFontSizeMobile'] . $attr['nameFontSizeType'],
1256
- 'line-height' => $attr['nameLineHeightMobile'] . $attr['nameLineHeightType'],
1257
- ),
1258
- ' .uagb-tm__company' => array(
1259
- 'font-size' => $attr['companyFontSizeMobile'] . $attr['companyFontSizeType'],
1260
- 'line-height' => $attr['companyLineHeightMobile'] . $attr['companyLineHeightType'],
1261
- ),
1262
- ' .uagb-tm__desc' => array(
1263
- 'font-size' => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
1264
- 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
1265
- ),
1266
- ' .uagb-tm__content' => array(
1267
- 'text-align' => 'center',
1268
- )
1269
- );
1270
-
1271
-
1272
- // @codingStandardsIgnoreEnd.
1273
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-testimonial-' . $id );
1274
-
1275
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-testimonial-' . $id, 'tablet' );
1276
-
1277
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-testimonial-' . $id, 'mobile' );
1278
-
1279
- return $desktop . $tablet . $mobile;
1280
- }
1281
-
1282
- /**
1283
- * Get Team Block CSS
1284
- *
1285
- * @since 0.0.1
1286
- * @param array $attr The block attributes.
1287
- * @param string $id The selector ID.
1288
- * @return array The Widget List.
1289
- */
1290
- public static function get_team_css( $attr, $id ) { // @codingStandardsIgnoreStart
1291
-
1292
- $defaults = UAGB_Helper::$block_list['uagb/team']['attributes'];
1293
-
1294
- $attr = array_merge( $defaults, (array) $attr );
1295
-
1296
- $m_selectors = array();
1297
- $t_selectors = array();
1298
-
1299
- $selectors = array(
1300
- " p.uagb-team__desc" => array(
1301
- "font-family" => $attr['descFontFamily'],
1302
- "font-weight" => $attr['descFontWeight'],
1303
- "font-size" => $attr['descFontSize'] . $attr['descFontSizeType'],
1304
- "line-height" => $attr['descLineHeight'] . $attr['descLineHeightType'],
1305
- "color" => $attr['descColor'],
1306
- "margin-bottom" => $attr['descSpace'] . "px",
1307
- ),
1308
- " .uagb-team__prefix" => array(
1309
- "font-family" => $attr['prefixFontFamily'],
1310
- "font-weight" => $attr['prefixFontWeight'],
1311
- "font-size" => $attr['prefixFontSize'] . $attr['prefixFontSizeType'],
1312
- "line-height" => $attr['prefixLineHeight'] . $attr['prefixLineHeightType'],
1313
- "color" => $attr['prefixColor'],
1314
- ),
1315
- " .uagb-team__desc-wrap" => array(
1316
- "margin-top" => $attr['prefixSpace'] . "px",
1317
- ),
1318
- " .uagb-team__social-icon a" => array(
1319
- "color" => $attr['socialColor'],
1320
- "font-size" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1321
- "width" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1322
- "height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1323
- "line-height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1324
- ),
1325
- " .uagb-team__social-icon svg" => array(
1326
- "fill" => $attr['socialColor'],
1327
- "width" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1328
- "height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1329
- ),
1330
- " .uagb-team__social-icon:hover a" => array(
1331
- "color" => $attr['socialHoverColor'],
1332
- ),
1333
- " .uagb-team__social-icon:hover svg" => array(
1334
- "fill" => $attr['socialHoverColor'],
1335
- ),
1336
- ".uagb-team__image-position-left .uagb-team__social-icon" => array(
1337
- "margin-right" => $attr['socialSpace'] . "px",
1338
- "margin-left" => "0",
1339
- ),
1340
- ".uagb-team__image-position-right .uagb-team__social-icon" => array(
1341
- "margin-left" => $attr['socialSpace'] . "px",
1342
- "margin-right" => "0",
1343
- ),
1344
- ".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon" => array(
1345
- "margin-right" => ( $attr['socialSpace'] / 2 ) . "px",
1346
- "margin-left" => ( $attr['socialSpace'] / 2 ) . "px",
1347
- ),
1348
- ".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon" => array(
1349
- "margin-right" => $attr['socialSpace'] . "px",
1350
- "margin-left" => "0",
1351
- ),
1352
- ".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon" => array(
1353
- "margin-left" => $attr['socialSpace'] . "px",
1354
- "margin-right" => "0",
1355
- ),
1356
- " .uagb-team__image-wrap" => array(
1357
- "margin-top" => $attr['imgTopMargin'] . "px",
1358
- "margin-bottom" => $attr['imgBottomMargin'] . "px",
1359
- "margin-left" => $attr['imgLeftMargin'] . "px",
1360
- "margin-right" => $attr['imgRightMargin'] . "px",
1361
- "width" => $attr['imgWidth'] . "px"
1362
- ),
1363
- );
1364
-
1365
- if( 'above' == $attr['imgPosition'] ) {
1366
- if ( 'center' == $attr['align'] ) {
1367
- $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1368
- $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1369
- } else if ( 'left' == $attr['align'] ) {
1370
- $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1371
- } else if ( 'right' == $attr['align'] ) {
1372
- $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1373
- }
1374
- }
1375
-
1376
- if ( "above" != $attr['imgPosition'] ) {
1377
- if ( "middle" == $attr['imgAlign'] ) {
1378
- $selectors[" .uagb-team__image-wrap"]["align-self"] = "center";
1379
- }
1380
- }
1381
-
1382
- $selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1383
- "font-family" => $attr['titleFontFamily'],
1384
- "font-weight" => $attr['titleFontWeight'],
1385
- "font-size" => $attr['titleFontSize'] . $attr['titleFontSizeType'],
1386
- "line-height" => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
1387
- "color" => $attr['titleColor'],
1388
- "margin-bottom" => $attr['titleSpace'] . "px",
1389
- );
1390
-
1391
- $m_selectors = array(
1392
- " p.uagb-team__desc" => array(
1393
- "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
1394
- ),
1395
- " .uagb-team__prefix" => array(
1396
- "font-size" => $attr['prefixFontSizeMobile'] . $attr['prefixFontSizeType'],
1397
- ),
1398
- " .uagb-team__social-icon a" => array(
1399
- "font-size" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1400
- "width" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1401
- "height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1402
- "line-height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1403
- ),
1404
- " .uagb-team__social-icon svg" => array(
1405
- "width" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1406
- "height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1407
- ),
1408
- );
1409
-
1410
- $t_selectors = array(
1411
- " p.uagb-team__desc" => array(
1412
- "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
1413
- ),
1414
- " .uagb-team__prefix" => array(
1415
- "font-size" => $attr['prefixFontSizeTablet'] . $attr['prefixFontSizeType'],
1416
- ),
1417
- " .uagb-team__social-icon a" => array(
1418
- "font-size" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1419
- "width" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1420
- "height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1421
- "line-height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1422
- ),
1423
- " .uagb-team__social-icon svg" => array(
1424
- "width" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1425
- "height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1426
- ),
1427
- );
1428
-
1429
- $m_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1430
- "font-size" => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
1431
- );
1432
-
1433
- $t_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1434
- "font-size" => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
1435
- );
1436
-
1437
- // @codingStandardsIgnoreEnd
1438
-
1439
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-team-' . $id );
1440
-
1441
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-team-' . $id, 'tablet' );
1442
-
1443
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-team-' . $id, 'mobile' );
1444
-
1445
- return $desktop . $tablet . $mobile;
1446
- }
1447
-
1448
- /**
1449
- * Get Social Share Block CSS
1450
- *
1451
- * @since 0.0.1
1452
- * @param array $attr The block attributes.
1453
- * @param string $id The selector ID.
1454
- * @return array The Widget List.
1455
- */
1456
- public static function get_social_share_css( $attr, $id ) { // @codingStandardsIgnoreStart
1457
-
1458
- $defaults = UAGB_Helper::$block_list['uagb/social-share']['attributes'];
1459
-
1460
- $attr = array_merge( $defaults, (array) $attr );
1461
-
1462
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1463
-
1464
- $m_selectors = array();
1465
- $t_selectors = array();
1466
-
1467
- $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper"] = array(
1468
- "margin-left" => 0,
1469
- "margin-right" => 0,
1470
- "margin-bottom" => $attr['gap'] . "px"
1471
- );
1472
-
1473
- $selectors[".uagb-social-share__layout-vertical .uagb-social-share__wrap"] = array(
1474
- "flex-direction" => "column"
1475
- );
1476
-
1477
- $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper:last-child"] = array(
1478
- "margin-bottom" => 0
1479
- );
1480
-
1481
- $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1482
- "margin-left" => ( $attr['gap']/2 ) . "px",
1483
- "margin-right" => ( $attr['gap']/2 ) . "px"
1484
- );
1485
-
1486
- $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:first-child"] = array(
1487
- "margin-left" => 0
1488
- );
1489
-
1490
- $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:last-child"] = array(
1491
- "margin-right" => 0
1492
- );
1493
-
1494
- $selectors[" .uagb-ss__wrapper"] = array(
1495
- "border-radius" => $attr['borderRadius'] . "px"
1496
- );
1497
-
1498
- $selectors[" .uagb-ss__source-wrap"] = array(
1499
- "width" => $attr['size'] . $attr['sizeType'],
1500
- );
1501
-
1502
- $selectors[" .uagb-ss__source-wrap svg"] = array(
1503
- "width" => $attr['size'] . $attr['sizeType'],
1504
- "height" => $attr['size'] . $attr['sizeType'],
1505
- );
1506
-
1507
- $selectors[" .uagb-ss__source-image"] = array(
1508
- "width" => $attr['size'] . $attr['sizeType']
1509
- );
1510
-
1511
- $selectors[" .uagb-ss__source-icon"] = array(
1512
- "width" => $attr['size'] . $attr['sizeType'],
1513
- "height" => $attr['size'] . $attr['sizeType'],
1514
- "font-size" => $attr['size'] . $attr['sizeType'],
1515
- "line-height" => $attr['size'] . $attr['sizeType']
1516
- );
1517
-
1518
-
1519
- $t_selectors[" .uagb-ss__source-wrap"] = array(
1520
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1521
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1522
- "line-height" => $attr['sizeTablet'] . $attr['sizeType']
1523
- );
1524
-
1525
- $t_selectors[" .uagb-ss__source-wrap svg"] = array(
1526
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1527
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1528
- );
1529
-
1530
- $t_selectors[" .uagb-ss__source-image"] = array(
1531
- "width" => $attr['sizeTablet'] . $attr['sizeType']
1532
- );
1533
-
1534
- $t_selectors[" .uagb-ss__source-icon"] = array(
1535
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1536
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1537
- "font-size" => $attr['sizeTablet'] . $attr['sizeType'],
1538
- "line-height" => $attr['sizeTablet'] . $attr['sizeType']
1539
- );
1540
- $t_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1541
- "margin-left" => 0,
1542
- "margin-right" => 0
1543
- );
1544
-
1545
-
1546
- $m_selectors[" .uagb-ss__source-wrap"] = array(
1547
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1548
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1549
- "line-height" => $attr['sizeMobile'] . $attr['sizeType']
1550
- );
1551
-
1552
- $m_selectors[" .uagb-ss__source-wrap svg"] = array(
1553
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1554
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1555
- );
1556
-
1557
- $m_selectors[" .uagb-ss__source-image"] = array(
1558
- "width" => $attr['sizeMobile'] . $attr['sizeType']
1559
- );
1560
-
1561
- $m_selectors[" .uagb-ss__source-icon"] = array(
1562
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1563
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1564
- "font-size" => $attr['sizeMobile'] . $attr['sizeType'],
1565
- "line-height" => $attr['sizeMobile'] . $attr['sizeType']
1566
- );
1567
- $m_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1568
- "margin-left" => 0,
1569
- "margin-right" => 0
1570
- );
1571
-
1572
-
1573
- foreach ( $attr['socials'] as $key => $social ) {
1574
-
1575
- $social['icon_color'] = ( isset( $social['icon_color'] ) ) ? $social['icon_color'] : '';
1576
- $social['icon_hover_color'] = ( isset( $social['icon_hover_color'] ) ) ? $social['icon_hover_color'] : '';
1577
-
1578
- if ( $attr['social_count'] <= $key ) {
1579
- break;
1580
- }
1581
-
1582
- $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1583
- "color" => $social['icon_color'],
1584
- "padding" => $attr['bgSize'] . $attr['bgSizeType']
1585
- );
1586
-
1587
- $m_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1588
- "padding" => $attr['bgSizeMobile'] . $attr['bgSizeType']
1589
- );
1590
-
1591
- $t_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1592
- "padding" => $attr['bgSizeTablet'] . $attr['bgSizeType']
1593
- );
1594
-
1595
- $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link svg"] = array (
1596
- "fill" => $social['icon_color'],
1597
- );
1598
-
1599
- $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link"] = array (
1600
- "color" => $social['icon_hover_color']
1601
- );
1602
-
1603
- $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link svg"] = array (
1604
- "fill" => $social['icon_hover_color']
1605
- );
1606
-
1607
- $selectors[" .uagb-ss-repeater-" . $key] = array (
1608
- "background" => $social['icon_bg_color']
1609
- );
1610
-
1611
- $selectors[" .uagb-ss-repeater-" . $key . ":hover"] = array (
1612
- "background" => $social['icon_bg_hover_color']
1613
- );
1614
- }
1615
-
1616
- $selectors[" .uagb-social-share__wrap"] = array(
1617
- "justify-content" => $alignment,
1618
- "-webkit-box-pack" => $alignment,
1619
- "-ms-flex-pack" => $alignment,
1620
- "justify-content" => $alignment,
1621
- "-webkit-box-align" => $alignment,
1622
- "-ms-flex-align" => $alignment,
1623
- "align-items" => $alignment,
1624
- );
1625
-
1626
- if ( 'horizontal' == $attr['social_layout'] ) {
1627
-
1628
- if ( "desktop" == $attr['stack'] ) {
1629
-
1630
- $selectors[" .uagb-ss__wrapper"] = array (
1631
- "margin-left" => 0,
1632
- "margin-right" => 0,
1633
- "margin-bottom" => $attr['gap'] . "px"
1634
- );
1635
-
1636
- $selectors[" .uagb-social-share__wrap"] = array (
1637
- "flex-direction" => "column"
1638
- );
1639
-
1640
- $selectors[" .uagb-ss__wrapper:last-child"] = array (
1641
- "margin-bottom" => 0
1642
- );
1643
-
1644
- } else if ( "tablet" == $attr['stack'] ) {
1645
-
1646
- $t_selectors[" .uagb-ss__wrapper"] = array (
1647
- "margin-left" => 0,
1648
- "margin-right" => 0,
1649
- "margin-bottom" => $attr['gap'] . "px"
1650
- );
1651
-
1652
- $t_selectors[" .uagb-social-share__wrap"] = array (
1653
- "flex-direction" => "column"
1654
- );
1655
-
1656
- $t_selectors[" .uagb-ss__wrapper:last-child"] = array (
1657
- "margin-bottom" => 0
1658
- );
1659
-
1660
- } else if ( "mobile" == $attr['stack'] ) {
1661
-
1662
- $m_selectors[" .uagb-ss__wrapper"] = array (
1663
- "margin-left" => 0,
1664
- "margin-right" => 0,
1665
- "margin-bottom" => $attr['gap'] . "px"
1666
- );
1667
-
1668
- $m_selectors[" .uagb-social-share__wrap"] = array (
1669
- "flex-direction" => "column"
1670
- );
1671
-
1672
- $m_selectors[" .uagb-ss__wrapper:last-child"] = array (
1673
- "margin-bottom" => 0
1674
- );
1675
- }
1676
- }
1677
-
1678
- // @codingStandardsIgnoreEnd
1679
-
1680
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-social-share-' . $id );
1681
-
1682
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-social-share-' . $id, 'tablet' );
1683
-
1684
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-social-share-' . $id, 'mobile' );
1685
-
1686
- return $desktop . $tablet . $mobile;
1687
- }
1688
-
1689
- /**
1690
- * Get Icon List Block CSS
1691
- *
1692
- * @since 0.0.1
1693
- * @param array $attr The block attributes.
1694
- * @param string $id The selector ID.
1695
- * @return array The Widget List.
1696
- */
1697
- public static function get_icon_list_css( $attr, $id ) { // @codingStandardsIgnoreStart
1698
-
1699
- $defaults = UAGB_Helper::$block_list['uagb/icon-list']['attributes'];
1700
-
1701
- $attr = array_merge( $defaults, (array) $attr );
1702
-
1703
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1704
-
1705
- $m_selectors = array();
1706
- $t_selectors = array();
1707
-
1708
- $selectors = array(
1709
- ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper" => array(
1710
- "margin-left" => 0,
1711
- "margin-right" => 0,
1712
- "margin-bottom" => $attr['gap'] . "px"
1713
- ),
1714
- ".uagb-icon-list__layout-vertical .uagb-icon-list__wrap" => array(
1715
- "flex-direction" => "column"
1716
- ),
1717
- ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper:last-child" => array(
1718
- "margin-bottom" => 0
1719
- ),
1720
- ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper" => array(
1721
- "margin-left" => ( $attr['gap']/2 ) . "px",
1722
- "margin-right" => ( $attr['gap']/2 ) . "px"
1723
- ),
1724
- ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:first-child" => array(
1725
- "margin-left" => 0
1726
- ),
1727
- ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:last-child" => array(
1728
- "margin-right" => 0
1729
- ),
1730
- // Desktop Icon Size CSS starts.
1731
- " .uagb-icon-list__source-image" => array(
1732
- "width" => $attr['size'] . $attr['sizeType']
1733
- ),
1734
- " .uagb-icon-list__source-icon" => array(
1735
- "width" => $attr['size'] . $attr['sizeType'],
1736
- "height" => $attr['size'] . $attr['sizeType'],
1737
- "font-size" => $attr['size'] . $attr['sizeType']
1738
- ),
1739
- " .uagb-icon-list__source-icon svg" => array(
1740
- "width" => $attr['size'] . $attr['sizeType'],
1741
- "height" => $attr['size'] . $attr['sizeType'],
1742
- ),
1743
- " .uagb-icon-list__source-icon:before"=> array(
1744
- "width" => $attr['size'] . $attr['sizeType'],
1745
- "height" => $attr['size'] . $attr['sizeType'],
1746
- "font-size" => $attr['size'] . $attr['sizeType']
1747
- ),
1748
- " .uagb-icon-list__label-wrap"=> array(
1749
- "text-align" => $attr['align']
1750
- ),
1751
-
1752
- " .uagb-icon-list__source-wrap"=> array(
1753
- "padding" => $attr['bgSize'] . "px",
1754
- "border-radius" => $attr['borderRadius'] . "px"
1755
- ),
1756
- " .uagb-icon-list__wrap"=> array(
1757
- "justify-content" => $alignment,
1758
- "-webkit-box-pack" => $alignment,
1759
- "-ms-flex-pack" => $alignment,
1760
- "justify-content" => $alignment,
1761
- "-webkit-box-align" => $alignment,
1762
- "-ms-flex-align" => $alignment,
1763
- "align-items" => $alignment,
1764
- )
1765
- );
1766
-
1767
- if ( 'right' == $attr['align'] ) {
1768
- $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1769
- "margin-left" => $attr['inner_gap'] . "px"
1770
- );
1771
- $selectors[" .uagb-icon-list__content-wrap"] = array(
1772
- "flex-direction" => "row-reverse"
1773
- );
1774
- } else {
1775
- $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1776
- "margin-right" => $attr['inner_gap'] . "px"
1777
- );
1778
- }
1779
- // Desktop Icon Size CSS ends.
1780
-
1781
- // Mobile Icon Size CSS starts.
1782
- $m_selectors = array(
1783
- " .uagb-icon-list__source-image" => array(
1784
- "width" => $attr['sizeMobile'] . $attr['sizeType']
1785
- ),
1786
- " .uagb-icon-list__source-icon" => array(
1787
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1788
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1789
- "font-size" => $attr['sizeMobile'] . $attr['sizeType']
1790
- ),
1791
- " .uagb-icon-list__source-icon svg" => array(
1792
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1793
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1794
- ),
1795
- " .uagb-icon-list__source-icon:before" => array(
1796
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1797
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1798
- "font-size" => $attr['sizeMobile'] . $attr['sizeType']
1799
- ),
1800
- );
1801
- // Mobile Icon Size CSS ends.
1802
-
1803
- // Tablet Icon Size CSS starts.
1804
- $t_selectors = array(
1805
- " .uagb-icon-list__source-image" => array(
1806
- "width" => $attr['sizeTablet'] . $attr['sizeType']
1807
- ),
1808
- " .uagb-icon-list__source-icon" => array(
1809
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1810
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1811
- "font-size" => $attr['sizeTablet'] . $attr['sizeType']
1812
- ),
1813
- " .uagb-icon-list__source-icon svg" => array(
1814
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1815
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1816
- ),
1817
- " .uagb-icon-list__source-icon:before" => array(
1818
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1819
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1820
- "font-size" => $attr['sizeTablet'] . $attr['sizeType']
1821
- ),
1822
- );
1823
- // Tablet Icon Size CSS ends.
1824
-
1825
- foreach ( $attr['icons'] as $key => $icon ) {
1826
-
1827
- $icon['icon_color'] = ( isset( $icon['icon_color'] ) ) ? $icon['icon_color'] : '';
1828
- $icon['icon_hover_color'] = ( isset( $icon['icon_hover_color'] ) ) ? $icon['icon_hover_color'] : '';
1829
- $icon['icon_bg_color'] = ( isset( $icon['icon_bg_color'] ) ) ? $icon['icon_bg_color'] : '';
1830
- $icon['icon_bg_hover_color'] = ( isset( $icon['icon_bg_hover_color'] ) ) ? $icon['icon_bg_hover_color'] : '';
1831
- $icon['label_color'] = ( isset( $icon['label_color'] ) ) ? $icon['label_color'] : '';
1832
- $icon['label_hover_color'] = ( isset( $icon['label_hover_color'] ) ) ? $icon['label_hover_color'] : '';
1833
-
1834
- if ( $attr['icon_count'] <= $key ) {
1835
- break;
1836
- }
1837
-
1838
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon"] = array (
1839
- "color" => $icon['icon_color']
1840
- );
1841
-
1842
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon svg"] = array (
1843
- "fill" => $icon['icon_color']
1844
- );
1845
-
1846
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon"] = array (
1847
- "color" => $icon['icon_hover_color']
1848
- );
1849
-
1850
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon svg"] = array (
1851
- "fill" => $icon['icon_hover_color']
1852
- );
1853
-
1854
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1855
- "color" => $icon['label_color'],
1856
- "font-size" => $attr['fontSize'] . $attr['fontSizeType'],
1857
- 'font-family' => $attr['fontFamily'],
1858
- 'font-weight' => $attr['fontWeight'],
1859
- 'line-height' => $attr['lineHeight'] . $attr['lineHeightType'],
1860
- );
1861
-
1862
- $m_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1863
- "font-size" => $attr['fontSizeMobile'] . $attr['fontSizeType'],
1864
- 'line-height' => $attr['lineHeightMobile'] . $attr['lineHeightType'],
1865
- );
1866
-
1867
- $t_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1868
- "font-size" => $attr['fontSizeTablet'] . $attr['fontSizeType'],
1869
- 'line-height' => $attr['lineHeightTablet'] . $attr['lineHeightType'],
1870
- );
1871
-
1872
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__label"] = array (
1873
- "color" => $icon['label_hover_color']
1874
- );
1875
-
1876
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-wrap"] = array(
1877
- "background" => $icon['icon_bg_color']
1878
- );
1879
-
1880
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-wrap"] = array(
1881
- "background" => $icon['icon_bg_hover_color']
1882
- );
1883
- }
1884
-
1885
- if ( 'horizontal' == $attr['icon_layout'] ) {
1886
-
1887
- if ( "tablet" == $attr['stack'] ) {
1888
-
1889
- $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
1890
- "margin-left" => 0,
1891
- "margin-right" => 0,
1892
- "margin-bottom" => $attr['gap'] . "px"
1893
- );
1894
-
1895
- $t_selectors[" .uagb-icon-list__wrap"] = array (
1896
- "flex-direction" => "column"
1897
- );
1898
-
1899
- $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
1900
- "margin-bottom" => 0
1901
- );
1902
-
1903
- } else if ( "mobile" == $attr['stack'] ) {
1904
-
1905
- $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
1906
- "margin-left" => 0,
1907
- "margin-right" => 0,
1908
- "margin-bottom" => $attr['gap'] . "px"
1909
- );
1910
-
1911
- $m_selectors[" .uagb-icon-list__wrap"] = array (
1912
- "flex-direction" => "column"
1913
- );
1914
-
1915
- $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
1916
- "margin-bottom" => 0
1917
- );
1918
- }
1919
- }
1920
-
1921
- // @codingStandardsIgnoreEnd
1922
-
1923
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-icon-list-' . $id );
1924
-
1925
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-icon-list-' . $id, 'tablet' );
1926
-
1927
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-icon-list-' . $id, 'mobile' );
1928
-
1929
- return $desktop . $tablet . $mobile;
1930
- }
1931
-
1932
- /**
1933
- * Get Content Timeline Block CSS
1934
- *
1935
- * @since 0.0.1
1936
- * @param array $attr The block attributes.
1937
- * @param string $id The selector ID.
1938
- * @return array The Widget List.
1939
- */
1940
- public static function get_content_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
1941
-
1942
- $defaults = UAGB_Helper::$block_list['uagb/content-timeline']['attributes'];
1943
-
1944
- $attr = array_merge( $defaults, (array) $attr );
1945
-
1946
- $selectors = array();
1947
- $t_selectors = array();
1948
- $m_selectors = array();
1949
-
1950
- $selectors = array(
1951
- " .uagb-timeline__heading" => array(
1952
- "text-align" => $attr['align'],
1953
- "color" => $attr['headingColor'],
1954
- "font-size" => $attr['headFontSize'] . $attr['headFontSizeType'],
1955
- 'font-family' => $attr['headFontFamily'],
1956
- 'font-weight' => $attr['headFontWeight'],
1957
- 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
1958
- ),
1959
- " .uagb-timeline__heading-text" => array(
1960
- "margin-bottom" => $attr['headSpace'] . "px"
1961
- ),
1962
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
1963
- 'color'=> $attr['iconFocus'],
1964
- ),
1965
- );
1966
-
1967
- $desktop_selectors = self::get_timeline_selectors( $attr );
1968
- $selectors = array_merge( $selectors, $desktop_selectors );
1969
-
1970
- $t_selectors = array(
1971
- " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
1972
- "font-size" => $attr['dateFontsizeTablet'] . $attr['dateFontsizeType'],
1973
- 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
1974
- ),
1975
- " .uagb-timeline__date-new" => array(
1976
- "font-size" => $attr['dateFontsizeTablet'] . $attr['dateFontsizeType'],
1977
- 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
1978
- ),
1979
- " .uagb-timeline__heading" => array(
1980
- "font-size" => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
1981
- 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
1982
- ),
1983
- " .uagb-timeline-desc-content" => array(
1984
- "font-size" => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
1985
- 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
1986
- ),
1987
- );
1988
-
1989
- $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
1990
- $t_selectors = array_merge( $t_selectors, $tablet_selectors );
1991
-
1992
- $m_selectors = array(
1993
- " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
1994
- "font-size" => $attr['dateFontsizeMobile'] . $attr['dateFontsizeType'],
1995
- 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
1996
- ),
1997
- " .uagb-timeline__date-new" => array(
1998
- "font-size" => $attr['dateFontsizeMobile'] . $attr['dateFontsizeType'],
1999
- 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
2000
- ),
2001
- " .uagb-timeline__heading" => array(
2002
- "font-size" => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
2003
- 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
2004
- ),
2005
- " .uagb-timeline-desc-content" => array(
2006
- "font-size" => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
2007
- 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
2008
- ),
2009
- );
2010
-
2011
- $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2012
-
2013
- $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2014
-
2015
- // @codingStandardsIgnoreEnd
2016
-
2017
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2018
-
2019
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-ctm-' . $id, 'tablet' );
2020
-
2021
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-ctm-' . $id, 'mobile' );
2022
-
2023
- return $desktop . $tablet . $mobile;
2024
- }
2025
-
2026
- /**
2027
- * Get Content Timeline Block CSS
2028
- *
2029
- * @since 0.0.1
2030
- * @param array $attr The block attributes.
2031
- * @param string $id The selector ID.
2032
- * @return array The Widget List.
2033
- */
2034
- public static function get_post_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
2035
-
2036
- $defaults = UAGB_Helper::$block_list['uagb/post-timeline']['attributes'];
2037
-
2038
- $attr = array_merge( $defaults, (array) $attr );
2039
- $t_selectors = array();
2040
-
2041
- $selectors = array(
2042
- " .uagb-timeline__heading" => array(
2043
- "text-align" => $attr['align'],
2044
- ),
2045
- " .uagb-timeline__author" => array(
2046
- "text-align" => $attr['align'],
2047
- "margin-bottom" => $attr['authorSpace'] . "px"
2048
- ),
2049
- " .uagb-timeline__link_parent" => array(
2050
- "text-align" => $attr['align'],
2051
- ),
2052
- " .uagb-timeline__image a" => array(
2053
- "text-align" => $attr['align'],
2054
- ),
2055
- " .uagb-timeline__author-link" => array(
2056
- "color" => $attr['authorColor'],
2057
- "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2058
- 'font-family' => $attr['authorFontFamily'],
2059
- 'font-weight' => $attr['authorFontWeight'],
2060
- 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2061
- ),
2062
- " .dashicons-admin-users" => array(
2063
- "color" => $attr['authorColor'],
2064
- "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2065
- 'font-weight' => $attr['authorFontWeight'],
2066
- 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2067
- ),
2068
- " .uagb-timeline__link" => array(
2069
- "color" => $attr['ctaColor'],
2070
- "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2071
- 'font-family' => $attr['ctaFontFamily'],
2072
- 'font-weight' => $attr['ctaFontWeight'],
2073
- 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2074
- "background-color" => $attr['ctaBackground'],
2075
- ),
2076
- " .uagb-timeline__heading a" => array(
2077
- "text-align" => $attr['align'],
2078
- "color" => $attr['headingColor'],
2079
- "font-size" => $attr['headFontSize'] . $attr['headFontSizeType'],
2080
- 'font-family' => $attr['headFontFamily'],
2081
- 'font-weight' => $attr['headFontWeight'],
2082
- 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
2083
- ),
2084
- " .uagb-timeline__heading-text" => array(
2085
- "margin-bottom" => $attr['headSpace'] . "px"
2086
- ),
2087
- " .uagb_timeline__cta-enable .uagb-timeline-desc-content" => array(
2088
- "margin-bottom" => $attr['contentSpace'] . "px",
2089
- ),
2090
- ' .uagb-content' => array(
2091
- 'padding'=> $attr['contentPadding'].'px',
2092
- ),
2093
- );
2094
-
2095
-
2096
-
2097
- $desktop_selectors = self::get_timeline_selectors( $attr );
2098
- $selectors = array_merge( $selectors, $desktop_selectors );
2099
-
2100
- $t_selectors = array(
2101
- " .uagb-timeline__author-link" => array(
2102
- "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2103
- 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2104
- ),
2105
- " .dashicons-admin-users" => array(
2106
- "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2107
- 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2108
- ),
2109
- " .uagb-timeline__link" => array(
2110
- "font-size" => $attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2111
- 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2112
- ),
2113
- " .uagb-timeline__heading a" => array(
2114
- "font-size" => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
2115
- 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
2116
- ),
2117
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2118
- "text-align" => 'left',
2119
- ),
2120
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2121
- "text-align" => 'left',
2122
- ),
2123
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a" => array(
2124
- 'text-align' => 'left',
2125
- ),
2126
- );
2127
-
2128
- $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
2129
- $t_selectors = array_merge( $t_selectors, $tablet_selectors );
2130
-
2131
- // Mobile responsive CSS.
2132
- $m_selectors = array(
2133
- " .uagb-timeline__author-link" => array(
2134
- "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2135
- 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2136
- ),
2137
- " .dashicons-admin-users" => array(
2138
- "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2139
- 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2140
- ),
2141
- " .uagb-timeline__link" => array(
2142
- "font-size" => $attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2143
- 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2144
- ),
2145
- " .uagb-timeline__heading a" => array(
2146
- "font-size" => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
2147
- 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
2148
- ),
2149
- " .uagb-timeline__heading" => array(
2150
- "text-align" => $attr['align'],
2151
- ),
2152
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2153
- "text-align" => 'left',
2154
- ),
2155
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2156
- "text-align" => 'left',
2157
- ),
2158
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a" => array(
2159
- 'text-align' => 'left',
2160
- ),
2161
- );
2162
-
2163
- $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2164
- $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2165
-
2166
- // @codingStandardsIgnoreEnd
2167
-
2168
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2169
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-ctm-' . $id, 'tablet' );
2170
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-ctm-' . $id, 'mobile' );
2171
-
2172
- return $desktop . $tablet . $mobile;
2173
- }
2174
-
2175
- /**
2176
- * Get Restaurant Menu Block CSS
2177
- *
2178
- * @since 1.0.2
2179
- * @param array $attr The block attributes.
2180
- * @param string $id The selector ID.
2181
- * @return array The Widget List.
2182
- */
2183
- public static function get_restaurant_menu_css( $attr, $id ) { // @codingStandardsIgnoreStart
2184
-
2185
- $defaults = UAGB_Helper::$block_list['uagb/restaurant-menu']['attributes'];
2186
-
2187
- $attr = array_merge( $defaults, (array) $attr );
2188
-
2189
- $m_selectors = array();
2190
- $t_selectors = array();
2191
-
2192
- $align = $attr['headingAlign'];
2193
- if( 'left' === $align ){
2194
- $align = 'flex-start';
2195
- }else if( 'right' === $align ){
2196
- $align = 'flex-end';
2197
- }
2198
-
2199
- $selectors = array(
2200
- " .uagb-rest_menu__wrap" => array(
2201
- 'padding-left' => ($attr['columnGap']/2) . "px",
2202
- 'padding-right' => ($attr['columnGap']/2). "px",
2203
- 'margin-bottom' => $attr['rowGap'] . "px"
2204
- ),
2205
- " .uagb-rest_menu__wrap .uagb-rm__image-content" => array(
2206
- 'padding-left' => $attr['imgHrPadding'] .'px',
2207
- 'padding-right' => $attr['imgHrPadding'] .'px',
2208
- 'padding-top' => $attr['imgVrPadding'] .'px',
2209
- 'padding-bottom' => $attr['imgVrPadding'] .'px',
2210
- ),
2211
- " .uagb-rm__image img" => array(
2212
- 'width'=> $attr['imageWidth'] .'px',
2213
- 'max-width'=> $attr['imageWidth'] .'px',
2214
- ),
2215
- " .uagb-rm__separator-parent" => array(
2216
- 'justify-content' => $align,
2217
- ),
2218
- " .uagb-rm__content" => array(
2219
- 'text-align' => $attr['headingAlign'] ,
2220
- 'padding-left' => $attr['contentHrPadding'] . 'px',
2221
- 'padding-right' => $attr['contentHrPadding'] . 'px',
2222
- 'padding-top' => $attr['contentVrPadding'] . 'px',
2223
- 'padding-bottom' => $attr['contentVrPadding'] . 'px',
2224
- ),
2225
- " .uagb-rm__title" => array(
2226
- 'font-size' => $attr['titleFontSize'] .$attr['titleFontSizeType'],
2227
- 'color' => $attr['titleColor'] ,
2228
- 'margin-bottom' => $attr['titleSpace'] .'px',
2229
- 'font-family' => $attr['titleFontFamily'],
2230
- 'font-weight' => $attr['titleFontWeight'],
2231
- 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2232
- ),
2233
- " .uagb-rm__price" => array(
2234
- 'font-size' => $attr['priceFontSize'].$attr['priceFontSizeType'],
2235
- 'font-family' => $attr['priceFontFamily'],
2236
- 'font-weight' => $attr['priceFontWeight'],
2237
- 'line-height' => $attr['priceLineHeight'] . $attr['priceLineHeightType'],
2238
- 'color' => $attr['priceColor'],
2239
- ),
2240
- " .uagb-rm__desc" => array(
2241
- 'font-size' => $attr['descFontSize'].$attr['descFontSizeType'],
2242
- 'font-family' => $attr['descFontFamily'],
2243
- 'font-weight' => $attr['descFontWeight'],
2244
- 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
2245
- 'color'=> $attr['descColor'],
2246
- 'margin-bottom'=> $attr['descSpace'].'px',
2247
- ),
2248
- );
2249
-
2250
- if ( $attr["seperatorStyle"] != "none" ) {
2251
- $selectors[" .uagb-rest_menu__wrap .uagb-rm__separator"] = array(
2252
- 'border-top-color'=> $attr['seperatorColor'],
2253
- 'border-top-style'=> $attr['seperatorStyle'],
2254
- 'border-top-width'=> $attr['seperatorThickness'] . "px",
2255
- 'width'=> $attr['seperatorWidth'] . "%",
2256
- );
2257
- }
2258
-
2259
- $selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)'] = array(
2260
- 'margin-left'=> 0,
2261
- 'clear'=> 'left',
2262
- );
2263
-
2264
- $t_selectors = array(
2265
- ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2266
- 'margin-left'=> 'unset',
2267
- 'clear'=> 'unset',
2268
- ),
2269
- ' .uagb-rest_menu__wrap.uagb-rm__tablet-column-'.$attr['tcolumns'].':nth-child('.$attr['tcolumns'].'n+1)' => array(
2270
- 'margin-left'=> '0%',
2271
- 'clear'=> 'left',
2272
- ),
2273
- " .uagb-rm__title" => array(
2274
- "font-size" => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2275
- 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2276
- ),
2277
- " .uagb-rm__desc" => array(
2278
- "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
2279
- 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
2280
- ),
2281
- " .uagb-rm__price" => array(
2282
- "font-size" => $attr['priceFontSizeTablet'] . $attr['priceFontSizeType'],
2283
- 'line-height' => $attr['priceLineHeightTablet'] . $attr['priceLineHeightType'],
2284
- )
2285
- );
2286
-
2287
- $m_selectors = array(
2288
- ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2289
- 'margin-left'=> 'unset',
2290
- 'clear'=> 'unset',
2291
- ),
2292
- ' .uagb-rest_menu__wrap.uagb-rm__mobile-column-'.$attr['mcolumns'].':nth-child('.$attr['mcolumns'].'n+1)' => array(
2293
- 'margin-left'=> '0%',
2294
- 'clear'=> 'left',
2295
- ),
2296
- " .uagb-rm__title" => array(
2297
- "font-size" => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2298
- 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2299
- ),
2300
- " .uagb-rm__desc" => array(
2301
- "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
2302
- 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
2303
- ),
2304
- " .uagb-rm__price" => array(
2305
- "font-size" => $attr['priceFontSizeMobile'] . $attr['priceFontSizeType'],
2306
- 'line-height' => $attr['priceLineHeightMobile'] . $attr['priceLineHeightType'],
2307
- )
2308
- );
2309
-
2310
- // @codingStandardsIgnoreEnd
2311
-
2312
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-rm-' . $id );
2313
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-rm-' . $id, 'tablet' );
2314
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-rm-' . $id, 'mobile' );
2315
-
2316
- return $desktop . $tablet . $mobile;
2317
- }
2318
-
2319
- /**
2320
- * Get Post Grid Block CSS
2321
- *
2322
- * @since 1.4.0
2323
- * @param array $attr The block attributes.
2324
- * @param string $id The selector ID.
2325
- * @return array The Widget List.
2326
- */
2327
- public static function get_post_grid_css( $attr, $id ) { // @codingStandardsIgnoreStart
2328
-
2329
- $defaults = UAGB_Helper::$block_list['uagb/post-grid']['attributes'];
2330
-
2331
- $attr = array_merge( $defaults, (array) $attr );
2332
-
2333
- $selectors = self::get_post_selectors( $attr );
2334
-
2335
- $m_selectors = self::get_post_mobile_selectors( $attr );
2336
-
2337
- $t_selectors = self::get_post_tablet_selectors( $attr );
2338
-
2339
- // @codingStandardsIgnoreEnd
2340
-
2341
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__grid-' . $id );
2342
-
2343
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__grid-' . $id, 'tablet' );
2344
-
2345
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__grid-' . $id, 'mobile' );
2346
-
2347
- return $desktop . $tablet . $mobile;
2348
- }
2349
-
2350
- /**
2351
- * Get Post Carousel Block CSS
2352
- *
2353
- * @since 1.4.0
2354
- * @param array $attr The block attributes.
2355
- * @param string $id The selector ID.
2356
- * @return array The Widget List.
2357
- */
2358
- public static function get_post_carousel_css( $attr, $id ) { // @codingStandardsIgnoreStart
2359
-
2360
- $defaults = UAGB_Helper::$block_list['uagb/post-carousel']['attributes'];
2361
-
2362
- $attr = array_merge( $defaults, (array) $attr );
2363
-
2364
- $selectors = self::get_post_selectors( $attr );
2365
-
2366
- $m_selectors = self::get_post_mobile_selectors( $attr );
2367
-
2368
- $t_selectors = self::get_post_tablet_selectors( $attr );
2369
-
2370
- $selectors[" .slick-arrow"] = array(
2371
- "border-color" => $attr['arrowColor']
2372
- );
2373
-
2374
- $selectors[" .slick-arrow span"] = array(
2375
- "color" => $attr['arrowColor'],
2376
- "font-size" => $attr['arrowSize'] . "px",
2377
- "width" => $attr['arrowSize'] . "px",
2378
- "height" => $attr['arrowSize'] . "px"
2379
- );
2380
-
2381
- $selectors[" .slick-arrow svg"] = array(
2382
- "fill" => $attr['arrowColor'],
2383
- "width" => $attr['arrowSize'] . "px",
2384
- "height" => $attr['arrowSize'] . "px"
2385
- );
2386
-
2387
- $selectors[" .slick-arrow"] = array(
2388
- "border-color" => $attr['arrowColor'],
2389
- "border-width" => $attr['arrowBorderSize'] . "px",
2390
- "border-radius" => $attr['arrowBorderRadius'] . "px"
2391
- );
2392
-
2393
- $selectors[".uagb-post-grid ul.slick-dots li.slick-active button:before"] = array(
2394
- "color" => $attr['arrowColor']
2395
- );
2396
-
2397
- $selectors[".uagb-slick-carousel ul.slick-dots li button:before"] = array(
2398
- "color" => $attr['arrowColor']
2399
- );
2400
-
2401
- if ( isset( $attr['arrowDots'] ) && 'dots' == $attr['arrowDots'] ) {
2402
-
2403
- $selectors[".uagb-slick-carousel"] = array(
2404
- "padding" => "0"
2405
- );
2406
- }
2407
-
2408
- // @codingStandardsIgnoreEnd
2409
-
2410
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__carousel-' . $id );
2411
-
2412
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__carousel-' . $id, 'tablet' );
2413
-
2414
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__carousel-' . $id, 'mobile' );
2415
-
2416
- return $desktop . $tablet . $mobile;
2417
- }
2418
-
2419
- /**
2420
- * Get Post Masonry Block CSS
2421
- *
2422
- * @since 1.4.0
2423
- * @param array $attr The block attributes.
2424
- * @param string $id The selector ID.
2425
- * @return array The Widget List.
2426
- */
2427
- public static function get_post_masonry_css( $attr, $id ) { // @codingStandardsIgnoreStart
2428
-
2429
- $defaults = UAGB_Helper::$block_list['uagb/post-masonry']['attributes'];
2430
-
2431
- $attr = array_merge( $defaults, (array) $attr );
2432
-
2433
- $selectors = self::get_post_selectors( $attr );
2434
-
2435
- $m_selectors = self::get_post_mobile_selectors( $attr );
2436
-
2437
- $t_selectors = self::get_post_tablet_selectors( $attr );
2438
-
2439
- // @codingStandardsIgnoreEnd
2440
-
2441
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__masonry-' . $id );
2442
-
2443
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__masonry-' . $id, 'tablet' );
2444
-
2445
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__masonry-' . $id, 'mobile' );
2446
-
2447
- return $desktop . $tablet . $mobile;
2448
- }
2449
-
2450
- /**
2451
- * Get Post Block Selectors CSS
2452
- *
2453
- * @param array $attr The block attributes.
2454
- * @since 1.4.0
2455
- */
2456
- public static function get_post_selectors( $attr ) { // @codingStandardsIgnoreStart
2457
- return array(
2458
- " .uagb-post__items" => array(
2459
- "margin-right" => ( -$attr['rowGap']/2 ) . "px",
2460
- "margin-left" => ( -$attr['rowGap']/2 ) . "px",
2461
- ),
2462
- " .uagb-post__items article" => array(
2463
- "padding-right" => ( $attr['rowGap']/2 ) . "px",
2464
- "padding-left" => ( $attr['rowGap']/2 ) . "px",
2465
- "margin-bottom" => ( $attr['columnGap'] ) . "px"
2466
- ),
2467
- " .uagb-post__inner-wrap" => array(
2468
- "background" => $attr['bgColor']
2469
- ),
2470
- " .uagb-post__text" => array(
2471
- "padding" => ( $attr['contentPadding'] ) . "px",
2472
- "text-align" => $attr['align']
2473
- ),
2474
- " .uagb-post__text .uagb-post__title" => array(
2475
- "color"=> $attr['titleColor'],
2476
- "font-size"=> $attr['titleFontSize'] . $attr['titleFontSizeType'],
2477
- 'font-family' => $attr['titleFontFamily'],
2478
- 'font-weight' => $attr['titleFontWeight'],
2479
- 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2480
- "margin-bottom"=> $attr['titleBottomSpace'] . "px"
2481
- ),
2482
- " .uagb-post__text .uagb-post__title a" => array(
2483
- "color" => $attr['titleColor'],
2484
- "font-size" => $attr['titleFontSize'] . $attr['titleFontSizeType'],
2485
- 'font-family' => $attr['titleFontFamily'],
2486
- 'font-weight' => $attr['titleFontWeight'],
2487
- 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2488
- ),
2489
- " .uagb-post__text .uagb-post-grid-byline" => array(
2490
- "color"=> $attr['metaColor'],
2491
- "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2492
- 'font-family' => $attr['metaFontFamily'],
2493
- 'font-weight' => $attr['metaFontWeight'],
2494
- 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2495
- "margin-bottom" => $attr['metaBottomSpace'] . "px"
2496
- ),
2497
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2498
- "color" => $attr['metaColor'],
2499
- "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2500
- 'font-family' => $attr['metaFontFamily'],
2501
- 'font-weight' => $attr['metaFontWeight'],
2502
- 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2503
- ),
2504
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2505
- "color" => $attr['metaColor'],
2506
- "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2507
- 'font-family' => $attr['metaFontFamily'],
2508
- 'font-weight' => $attr['metaFontWeight'],
2509
- 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2510
- ),
2511
- " .uagb-post__text .uagb-post__excerpt" => array(
2512
- "color" => $attr['excerptColor'],
2513
- "font-size" => $attr['excerptFontSize'] . $attr['excerptFontSizeType'],
2514
- 'font-family' => $attr['excerptFontFamily'],
2515
- 'font-weight' => $attr['excerptFontWeight'],
2516
- 'line-height' => $attr['excerptLineHeight'] . $attr['excerptLineHeightType'],
2517
- "margin-bottom" => $attr['excerptBottomSpace'] . "px"
2518
- ),
2519
- " .uagb-post__text .uagb-post__cta" => array(
2520
- "color" => $attr['ctaColor'],
2521
- "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2522
- 'font-family' => $attr['ctaFontFamily'],
2523
- 'font-weight' => $attr['ctaFontWeight'],
2524
- 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2525
- "background" => $attr['ctaBgColor'],
2526
- "border-color" => $attr['borderColor'],
2527
- "border-width" => $attr['borderWidth'] . "px",
2528
- "border-radius" => $attr['borderRadius'] . "px",
2529
- "border-style" => $attr['borderStyle'],
2530
- ),
2531
- " .uagb-post__text .uagb-post__cta:hover" => array(
2532
- "border-color"=> $attr['borderHColor']
2533
- ),
2534
- " .uagb-post__text .uagb-post__cta a" => array(
2535
- "color"=> $attr['ctaColor'],
2536
- "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2537
- 'font-family' => $attr['ctaFontFamily'],
2538
- 'font-weight' => $attr['ctaFontWeight'],
2539
- 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2540
- "padding" => ( $attr['btnVPadding'] ) . "px " . ( $attr['btnHPadding'] ) . "px",
2541
- ),
2542
- " .uagb-post__text .uagb-post__cta:hover" => array(
2543
- "color"=> $attr['ctaHColor'],
2544
- "background"=> $attr['ctaBgHColor']
2545
- ),
2546
- " .uagb-post__text .uagb-post__cta:hover a" => array(
2547
- "color"=> $attr['ctaHColor']
2548
- ),
2549
- " .uagb-post__image:before" => array(
2550
- "background-color" => $attr['bgOverlayColor'],
2551
- "opacity" => ( $attr['overlayOpacity'] / 100 )
2552
- ),
2553
- );
2554
- // @codingStandardsIgnoreEnd
2555
- }
2556
-
2557
- /**
2558
- * Get Post Block Selectors CSS for Mobile devices
2559
- *
2560
- * @param array $attr The block attributes.
2561
- * @since 1.6.1
2562
- */
2563
- public static function get_post_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
2564
-
2565
- return array(
2566
- " .uagb-post__text .uagb-post__title" => array(
2567
- "font-size" =>$attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2568
- 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2569
- ),
2570
- " .uagb-post__text .uagb-post__title a" => array(
2571
- "font-size" =>$attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2572
- 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2573
- ),
2574
- " .uagb-post__text .uagb-post-grid-byline" => array(
2575
- "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2576
- 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2577
- ),
2578
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2579
- "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2580
- 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2581
- ),
2582
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2583
- "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2584
- 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2585
- ),
2586
- " .uagb-post__text .uagb-post__excerpt" => array(
2587
- "font-size" =>$attr['excerptFontSizeMobile'] . $attr['excerptFontSizeType'],
2588
- 'line-height' => $attr['excerptLineHeightMobile'] . $attr['excerptLineHeightType'],
2589
- ),
2590
- " .uagb-post__text .uagb-post__cta" => array(
2591
- "font-size" =>$attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2592
- 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2593
- ),
2594
- " .uagb-post__text .uagb-post__cta a" => array(
2595
- "font-size" =>$attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2596
- 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2597
- ),
2598
- " .uagb-post__text" => array(
2599
- "padding" =>( $attr['contentPaddingMobile'] ) . "px",
2600
- ),
2601
- );
2602
- // @codingStandardsIgnoreEnd
2603
- }
2604
-
2605
- /**
2606
- * Get Post Block Selectors CSS for Tablet devices
2607
- *
2608
- * @param array $attr The block attributes.
2609
- * @since 1.8.2
2610
- */
2611
- public static function get_post_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
2612
- return array(
2613
- " .uagb-post__text .uagb-post__title" => array(
2614
- "font-size" =>$attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2615
- 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2616
- ),
2617
- " .uagb-post__text .uagb-post__title a" => array(
2618
- "font-size" =>$attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2619
- 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2620
- ),
2621
- " .uagb-post__text .uagb-post-grid-byline" => array(
2622
- "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2623
- 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2624
- ),
2625
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2626
- "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2627
- 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2628
- ),
2629
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2630
- "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2631
- 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2632
- ),
2633
- " .uagb-post__text .uagb-post__excerpt" => array(
2634
- "font-size" =>$attr['excerptFontSizeTablet'] . $attr['excerptFontSizeType'],
2635
- 'line-height' => $attr['excerptLineHeightTablet'] . $attr['excerptLineHeightType'],
2636
- ),
2637
- " .uagb-post__text .uagb-post__cta" => array(
2638
- "font-size" =>$attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2639
- 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2640
- ),
2641
- " .uagb-post__text .uagb-post__cta a" => array(
2642
- "font-size" =>$attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2643
- 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2644
- ),
2645
- );
2646
- // @codingStandardsIgnoreEnd
2647
- }
2648
-
2649
- /**
2650
- * Get Blockquote CSS
2651
- *
2652
- * @since 1.8.2
2653
- * @param array $attr The block attributes.
2654
- * @param string $id The selector ID.
2655
- * @return array The Widget List.
2656
- */
2657
- public static function get_blockquote_css( $attr, $id ) {
2658
- // @codingStandardsIgnoreStart
2659
-
2660
- $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
2661
-
2662
- $attr = array_merge( $defaults, (array) $attr );
2663
-
2664
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
2665
-
2666
- $content_align ="center";
2667
-
2668
- if( 'left' === $attr['align'] ){
2669
- $content_align =" flex-start";
2670
- }
2671
- if( 'right' === $attr['align'] ){
2672
- $content_align =" flex-end";
2673
- }
2674
-
2675
- $author_space = $attr['authorSpace'];
2676
-
2677
- if( 'center' !== $attr['align'] || $attr['skinStyle'] == "border" ){
2678
- $author_space = 0;
2679
- }
2680
-
2681
- //Set align to left for border style.
2682
- $text_align = $attr['align'];
2683
-
2684
- if( 'border' === $attr['skinStyle'] ){
2685
- $text_align = 'left';
2686
- }
2687
-
2688
- $selectors = array(
2689
- " .uagb-blockquote__content" => array(
2690
- "font-size" => $attr['descFontSize'] . $attr['descFontSizeType'],
2691
- 'font-family' => $attr['descFontFamily'],
2692
- 'font-weight' => $attr['descFontWeight'],
2693
- 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
2694
- "color" => $attr['descColor'],
2695
- "margin-bottom" => $attr['descSpace'] . "px",
2696
- "text-align" => $text_align,
2697
- ),
2698
- " cite.uagb-blockquote__author" => array(
2699
- "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2700
- 'font-family' => $attr['authorFontFamily'],
2701
- 'font-weight' => $attr['authorFontWeight'],
2702
- 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2703
- "color" => $attr['authorColor'],
2704
- "text-align" => $text_align,
2705
- ),
2706
- " .uagb-blockquote__skin-border blockquote.uagb-blockquote" => array(
2707
- "border-color" => $attr['borderColor'],
2708
- "border-left-style" => $attr['borderStyle'],
2709
- "border-left-width" => $attr['borderWidth'] . "px",
2710
- "padding-left" => $attr['borderGap'] . "px",
2711
- "padding-top" => $attr['verticalPadding'] . "px",
2712
- "padding-bottom" => $attr['verticalPadding'] . "px",
2713
- ),
2714
-
2715
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2716
- "background" => $attr['quoteBgColor'],
2717
- "border-radius" => $attr['quoteBorderRadius']."%",
2718
- "margin-top" => $attr['quoteTopMargin'] . "px",
2719
- "margin-bottom" => $attr['quoteBottomMargin'] . "px",
2720
- "margin-left" => $attr['quoteLeftMargin'] . "px",
2721
- "margin-right" => $attr['quoteRightMargin'] . "px",
2722
- "padding" => $attr['quotePadding'] . $attr['quotePaddingType'],
2723
- ),
2724
-
2725
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2726
- "width" => $attr['quoteSize'].$attr['quoteSizeType'],
2727
- "height" => $attr['quoteSize'].$attr['quoteSizeType'],
2728
- ),
2729
-
2730
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg" => array(
2731
- "fill" => $attr['quoteColor'],
2732
- ),
2733
-
2734
- " .uagb-blockquote__style-style_1 .uagb-blockquote" => array(
2735
- "text-align" => $attr['align'],
2736
- ),
2737
-
2738
- " .uagb-blockquote__author-wrap" => array(
2739
- "margin-bottom" => $author_space . "px",
2740
- ),
2741
- " .uagb-blockquote__author-image img" => array(
2742
- "width" => $attr['authorImageWidth']."px",
2743
- "height" => $attr['authorImageWidth']."px",
2744
- "border-radius" => $attr['authorImgBorderRadius']."%"
2745
- ),
2746
-
2747
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover svg" => array(
2748
- "fill" => $attr['quoteHoverColor'],
2749
- ),
2750
-
2751
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover" => array(
2752
- "background" => $attr['quoteBgHoverColor'],
2753
- ),
2754
-
2755
- " .uagb-blockquote__skin-border blockquote.uagb-blockquote:hover" => array(
2756
- "border-left-color" => $attr['borderHoverColor'],
2757
- ),
2758
- );
2759
-
2760
- if( $attr['enableTweet'] ){
2761
- $selectors[" a.uagb-blockquote__tweet-button"] = array(
2762
- "font-size" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2763
- 'font-family' => $attr['tweetBtnFontFamily'],
2764
- 'font-weight' => $attr['tweetBtnFontWeight'],
2765
- 'line-height' => $attr['tweetBtnLineHeight'] . $attr['tweetBtnLineHeightType'],
2766
- );
2767
-
2768
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"] = array(
2769
- "color" => $attr['tweetLinkColor'],
2770
- );
2771
-
2772
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"] = array(
2773
- "fill" => $attr['tweetLinkColor'],
2774
- );
2775
-
2776
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"] = array(
2777
- "color" => $attr['tweetBtnColor'],
2778
- "background-color" => $attr['tweetBtnBgColor'],
2779
- "padding-left" => $attr['tweetBtnHrPadding'] . "px",
2780
- "padding-right" => $attr['tweetBtnHrPadding'] . "px",
2781
- "padding-top" => $attr['tweetBtnVrPadding'] . "px",
2782
- "padding-bottom" => $attr['tweetBtnVrPadding'] . "px",
2783
- );
2784
-
2785
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"] = array(
2786
- "fill" => $attr['tweetBtnColor'],
2787
- );
2788
-
2789
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"] = array(
2790
- "color" => $attr['tweetBtnColor'],
2791
- "background-color" => $attr['tweetBtnBgColor'],
2792
- "padding-left" => $attr['tweetBtnHrPadding'] . "px",
2793
- "padding-right" => $attr['tweetBtnHrPadding'] . "px",
2794
- "padding-top" => $attr['tweetBtnVrPadding'] . "px",
2795
- "padding-bottom" => $attr['tweetBtnVrPadding'] . "px",
2796
- );
2797
-
2798
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"] = array(
2799
- "fill" => $attr['tweetBtnColor'],
2800
- );
2801
-
2802
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"] = array(
2803
- "border-right-color" => $attr['tweetBtnBgColor'],
2804
- );
2805
-
2806
- $selectors[" a.uagb-blockquote__tweet-button svg"] = array(
2807
- "width" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2808
- "height" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2809
- );
2810
-
2811
- $selectors[" .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"] = array(
2812
- "margin-right" => $attr['tweetIconSpacing'] . "px",
2813
- );
2814
-
2815
- // Hover CSS.
2816
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"] = array(
2817
- "color" => $attr['tweetBtnHoverColor'],
2818
- );
2819
-
2820
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"] = array(
2821
- "fill" => $attr['tweetBtnHoverColor'],
2822
- );
2823
-
2824
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"] = array(
2825
- "color" => $attr['tweetBtnHoverColor'],
2826
- "background-color" => $attr['tweetBtnBgHoverColor'],
2827
- );
2828
-
2829
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"] = array(
2830
- "fill" => $attr['tweetBtnHoverColor'],
2831
- );
2832
-
2833
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover"] = array(
2834
- "color" => $attr['tweetBtnHoverColor'],
2835
- "background-color" => $attr['tweetBtnBgHoverColor'],
2836
- );
2837
-
2838
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"] = array(
2839
- "fill" => $attr['tweetBtnHoverColor'],
2840
- );
2841
-
2842
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"] = array(
2843
- "border-right-color" => $attr['tweetBtnBgHoverColor'],
2844
- );
2845
- }
2846
-
2847
- $t_selectors = array(
2848
- " .uagb-blockquote__content" => array(
2849
- "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
2850
- 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
2851
- ),
2852
- " cite.uagb-blockquote__author" =>array(
2853
- "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2854
- 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2855
- ),
2856
- " a.uagb-blockquote__tweet-button" => array(
2857
- "font-size" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2858
- 'line-height' => $attr['tweetBtnLineHeightTablet'] . $attr['tweetBtnLineHeightType'],
2859
- ),
2860
- " a.uagb-blockquote__tweet-button svg" => array(
2861
- "width" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2862
- "height" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2863
- ),
2864
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2865
- "padding" => $attr['quotePaddingTablet'] . $attr['quotePaddingType'],
2866
- ),
2867
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2868
- "width" => $attr['quoteSizeTablet'].$attr['quoteSizeType'],
2869
- "height" => $attr['quoteSizeTablet'].$attr['quoteSizeType'],
2870
- ),
2871
- );
2872
-
2873
- $m_selectors = array(
2874
- " .uagb-blockquote__content" => array(
2875
- "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
2876
- 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
2877
- ),
2878
- " cite.uagb-blockquote__author" => array(
2879
- "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2880
- 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2881
- ),
2882
- " a.uagb-blockquote__tweet-button" => array(
2883
- "font-size" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2884
- 'line-height' => $attr['tweetBtnLineHeightMobile'] . $attr['tweetBtnLineHeightType'],
2885
- ),
2886
- " a.uagb-blockquote__tweet-button svg" => array(
2887
- "width" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2888
- "height" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2889
- ),
2890
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2891
- "padding" => $attr['quotePaddingMobile'] . $attr['quotePaddingType'],
2892
- ),
2893
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2894
- "width" => $attr['quoteSizeMobile'].$attr['quoteSizeType'],
2895
- "height" => $attr['quoteSizeMobile'].$attr['quoteSizeType'],
2896
- ),
2897
- );
2898
-
2899
- // @codingStandardsIgnoreEnd
2900
-
2901
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-blockquote-' . $id );
2902
-
2903
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-blockquote-' . $id, 'tablet' );
2904
-
2905
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-blockquote-' . $id, 'mobile' );
2906
-
2907
- return $desktop . $tablet . $mobile;
2908
- }
2909
-
2910
- /**
2911
- * Get Timeline Block Desktop Selectors CSS
2912
- *
2913
- * @param array $attr The block attributes.
2914
- * @since 1.8.2
2915
- */
2916
- public static function get_timeline_selectors( $attr ) { // @codingStandardsIgnoreStart
2917
- $selectors = array(
2918
- " .uagb-timeline__heading-text" => array(
2919
- "margin-bottom" => $attr['headSpace'] . "px"
2920
- ),
2921
- " .uagb-timeline-desc-content" => array(
2922
- "text-align" => $attr['align'],
2923
- "color" => $attr['subHeadingColor'],
2924
- "font-size" => $attr['subHeadFontSize'] . $attr['subHeadFontSizeType'],
2925
- 'font-family' => $attr['subHeadFontFamily'],
2926
- 'font-weight' => $attr['subHeadFontWeight'],
2927
- 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
2928
- ),
2929
- ' .uagb-timeline__events-new' => array(
2930
- 'text-align' => $attr['align']
2931
- ),
2932
- ' .uagb-timeline__date-inner' => array(
2933
- 'text-align' => $attr['align']
2934
- ),
2935
- ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
2936
- 'border-left-color' => $attr['backgroundColor']
2937
- ),
2938
- ' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
2939
- 'border-left-color' => $attr['backgroundColor']
2940
- ),
2941
- ' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
2942
- 'border-right-color' => $attr['backgroundColor']
2943
- ),
2944
- ' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
2945
- 'border-right-color' => $attr['backgroundColor']
2946
- ),
2947
- ' .uagb-timeline__line__inner' => array(
2948
- 'background-color' => $attr['separatorFillColor']
2949
- ),
2950
- ' .uagb-timeline__line' => array(
2951
- 'background-color' => $attr['separatorColor'],
2952
- 'width' => $attr['separatorwidth'].'px'
2953
- ),
2954
- ' .uagb-timeline__right-block .uagb-timeline__line' => array(
2955
- 'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2956
- ),
2957
- ' .uagb-timeline__left-block .uagb-timeline__line' => array(
2958
- 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2959
- ),
2960
- ' .uagb-timeline__center-block .uagb-timeline__line' => array(
2961
- 'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2962
- ),
2963
- ' .uagb-timeline__marker' => array(
2964
- 'background-color' => $attr['separatorBg'],
2965
- 'min-height' => $attr['connectorBgsize'].'px',
2966
- 'min-width' => $attr['connectorBgsize'].'px',
2967
- 'line-height' => $attr['connectorBgsize'].'px',
2968
- 'border' => $attr['borderwidth'].'px solid'.$attr['separatorBorder'],
2969
- ),
2970
- ' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow' => array(
2971
- 'height' => $attr['connectorBgsize'].'px',
2972
- ),
2973
- ' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow' => array(
2974
- 'height' => $attr['connectorBgsize'].'px',
2975
- ),
2976
- ' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow' => array(
2977
- 'height' => $attr['connectorBgsize'].'px',
2978
- ),
2979
- ' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow' => array(
2980
- 'height' => $attr['connectorBgsize'].'px',
2981
- ),
2982
- ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
2983
- 'margin-left' => $attr['horizontalSpace'].'px',
2984
- 'margin-right'=> $attr['horizontalSpace'].'px',
2985
- ),
2986
- ' .uagb-timeline__field:not(:last-child)' => array(
2987
- 'margin-bottom' => $attr['verticalSpace'].'px',
2988
- ),
2989
- ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
2990
- 'margin-bottom' => $attr['dateBottomspace'].'px',
2991
- 'color' => $attr['dateColor'],
2992
- 'font-size' => $attr['dateFontsize'].$attr['dateFontsizeType'],
2993
- 'font-family' => $attr['dateFontFamily'],
2994
- 'font-weight' => $attr['dateFontWeight'],
2995
- 'line-height' => $attr['dateLineHeight'] . $attr['dateLineHeightType'],
2996
- 'text-align' => $attr['align'],
2997
- ),
2998
- ' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
2999
- 'margin-left' => $attr['horizontalSpace'].'px',
3000
- ),
3001
- ' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3002
- 'margin-right' => $attr['horizontalSpace'].'px',
3003
- ),
3004
- ' .uagb-timeline__date-new' => array(
3005
- 'color' => $attr['dateColor'],
3006
- 'font-size' => $attr['dateFontsize'].$attr['dateFontsizeType'],
3007
- 'font-family' => $attr['dateFontFamily'],
3008
- 'font-weight' => $attr['dateFontWeight'],
3009
- 'line-height' => $attr['dateLineHeight'] . $attr['dateLineHeightType'],
3010
- ),
3011
- ' .uagb-timeline__events-inner-new' => array(
3012
- 'background-color' => $attr['backgroundColor'],
3013
- 'border-radius' => $attr['borderRadius'].'px',
3014
- 'padding'=> $attr['bgPadding'].'px',
3015
- ),
3016
- ' .uagb-timeline__main .uagb-timeline__icon-new' => array(
3017
- 'color' => $attr['iconColor'],
3018
- 'font-size' => $attr['iconSize'].'px',
3019
- 'width' => $attr['iconSize'].'px',
3020
- ),
3021
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg' => array(
3022
- 'fill'=> $attr['iconFocus'],
3023
- ),
3024
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
3025
- 'color'=> $attr['iconFocus'],
3026
- ),
3027
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon' => array(
3028
- 'background' => $attr['iconBgFocus'],
3029
- 'border-color'=> $attr['borderFocus'],
3030
- ),
3031
- ' .uagb-timeline__main .uagb-timeline__icon-new svg' => array(
3032
- 'fill'=> $attr['iconColor'],
3033
- ),
3034
- );
3035
-
3036
- return $selectors;
3037
- // @codingStandardsIgnoreEnd
3038
- }
3039
-
3040
- /**
3041
- * Get Timeline Block Tablet Selectors CSS.
3042
- *
3043
- * @param array $attr The block attributes.
3044
- * @since 1.8.2
3045
- */
3046
- public static function get_timeline_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
3047
- $tablet_selector = array(
3048
- " .uagb-timeline-desc-content" => array(
3049
- "font-size" => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
3050
- 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
3051
- ),
3052
- ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3053
- 'font-size' => $attr['dateFontsizeTablet'].$attr['dateFontsizeType'],
3054
- 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
3055
- ),
3056
- ' .uagb-timeline__date-new' => array(
3057
- 'font-size' => $attr['dateFontsizeTablet'].$attr['dateFontsizeType'],
3058
- 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
3059
- ),
3060
- ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3061
- 'margin-left' => 0,
3062
- 'margin-right' => 0,
3063
- ),
3064
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading" => array(
3065
- "text-align" => 'left',
3066
- ),
3067
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content" => array(
3068
- "text-align" => 'left',
3069
- ),
3070
- ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new' => array(
3071
- 'text-align' => 'left'
3072
- ),
3073
- ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner' => array(
3074
- 'text-align' => 'left'
3075
- ),
3076
- ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3077
- 'text-align'=> 'left',
3078
- ),
3079
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3080
- "border-right-color" => $attr['backgroundColor'],
3081
- ),
3082
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line" => array(
3083
- 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3084
- ),
3085
- );
3086
-
3087
- return $tablet_selector;
3088
- // @codingStandardsIgnoreEnd
3089
- }
3090
-
3091
- /**
3092
- * Get Timeline Block Mobile Selectors CSS.
3093
- *
3094
- * @param array $attr The block attributes.
3095
- * @since 1.8.2
3096
- */
3097
- public static function get_timeline_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
3098
- $m_selectors = array(
3099
- " .uagb-timeline-desc-content" => array(
3100
- "font-size" => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
3101
- 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
3102
- ),
3103
- ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3104
- 'font-size' => $attr['dateFontsizeMobile'].$attr['dateFontsizeType'],
3105
- 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
3106
- ),
3107
- ' .uagb-timeline__date-new' => array(
3108
- 'font-size' => $attr['dateFontsizeMobile'].$attr['dateFontsizeType'],
3109
- 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
3110
- ),
3111
- ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3112
- 'margin-left' => 0,
3113
- 'margin-right' => 0,
3114
- ),
3115
- ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
3116
- 'margin-left' => $attr['horizontalSpace'].'px',
3117
- ),
3118
- ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3119
- 'margin-left' => $attr['horizontalSpace'].'px',
3120
- ),
3121
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading" => array(
3122
- "text-align" => 'left',
3123
- ),
3124
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content" => array(
3125
- "text-align" => 'left',
3126
- ),
3127
- ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new' => array(
3128
- 'text-align' => 'left'
3129
- ),
3130
- ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner' => array(
3131
- 'text-align' => 'left'
3132
- ),
3133
- ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3134
- 'text-align'=> 'left',
3135
- ),
3136
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3137
- "border-right-color" => $attr['backgroundColor'],
3138
- ),
3139
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line" => array(
3140
- 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3141
- ),
3142
- );
3143
- return $m_selectors;
3144
- // @codingStandardsIgnoreEnd
3145
- }
3146
-
3147
- /**
3148
- * Get Contact Form 7 CSS
3149
- *
3150
- * @param array $attr The block attributes.
3151
- * @param string $id The selector ID.
3152
- * @since 1.10.0
3153
- */
3154
- public static function get_cf7_styler_css( $attr, $id ) {
3155
- $defaults = UAGB_Helper::$block_list['uagb/cf7-styler']['attributes'];
3156
-
3157
- $attr = array_merge( $defaults, (array) $attr );
3158
-
3159
- $selectors = array(
3160
- ' .wpcf7 .wpcf7-form' => array(
3161
- 'text-align' => $attr['align'],
3162
- ),
3163
- ' .wpcf7 form.wpcf7-form:not(input)' => array(
3164
- 'color' => $attr['fieldLabelColor'],
3165
- ),
3166
- ' .wpcf7 input:not([type=submit])' => array(
3167
- 'background-color' => $attr['fieldBgColor'],
3168
- 'color' => $attr['fieldInputColor'],
3169
- 'border-style' => $attr['fieldBorderStyle'],
3170
- 'border-color' => $attr['fieldBorderColor'],
3171
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3172
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3173
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3174
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3175
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3176
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3177
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3178
- 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3179
- 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3180
- 'font-family' => $attr['inputFontFamily'],
3181
- 'font-weight' => $attr['inputFontWeight'],
3182
- 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3183
- 'text-align' => $attr['align'],
3184
- ),
3185
- ' .wpcf7 select' => array(
3186
- 'background-color' => $attr['fieldBgColor'],
3187
- 'color' => $attr['fieldLabelColor'],
3188
- 'border-style' => $attr['fieldBorderStyle'],
3189
- 'border-color' => $attr['fieldBorderColor'],
3190
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3191
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3192
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3193
- 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3194
- 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3195
- 'font-family' => $attr['labelFontFamily'],
3196
- 'font-weight' => $attr['labelFontWeight'],
3197
- 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3198
- 'text-align' => $attr['align'],
3199
- ),
3200
- ' .wpcf7 select.wpcf7-form-control.wpcf7-select:not([multiple="multiple"])' => array(
3201
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3202
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3203
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3204
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3205
- ),
3206
- ' .wpcf7 select.wpcf7-select[multiple="multiple"] option' => array(
3207
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3208
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3209
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3210
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3211
- ),
3212
- ' .wpcf7 textarea' => array(
3213
- 'background-color' => $attr['fieldBgColor'],
3214
- 'color' => $attr['fieldInputColor'],
3215
- 'border-color' => $attr['fieldBorderColor'],
3216
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3217
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3218
- 'border-style' => $attr['fieldBorderStyle'],
3219
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3220
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3221
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3222
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3223
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3224
- 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3225
- 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3226
- 'font-family' => $attr['inputFontFamily'],
3227
- 'font-weight' => $attr['inputFontWeight'],
3228
- 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3229
- 'text-align' => $attr['align'],
3230
- ),
3231
- ' .wpcf7 textarea::placeholder' => array(
3232
- 'color' => $attr['fieldInputColor'],
3233
- 'text-align' => $attr['align'],
3234
- ),
3235
- ' .wpcf7 input::placeholder' => array(
3236
- 'color' => $attr['fieldInputColor'],
3237
- 'text-align' => $attr['align'],
3238
- ),
3239
- ' .wpcf7 form label' => array(
3240
- 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3241
- 'font-family' => $attr['labelFontFamily'],
3242
- 'font-weight' => $attr['labelFontWeight'],
3243
- 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3244
- ),
3245
- ' .wpcf7 form .wpcf7-list-item-label' => array(
3246
- 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3247
- 'font-family' => $attr['labelFontFamily'],
3248
- 'font-weight' => $attr['labelFontWeight'],
3249
- 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3250
- ),
3251
-
3252
- // Focus.
3253
- ' .wpcf7 form input:not([type=submit]):focus' => array(
3254
- 'border-color' => $attr['fieldBorderFocusColor'],
3255
- ),
3256
- ' .wpcf7 form select:focus' => array(
3257
- 'border-color' => $attr['fieldBorderFocusColor'],
3258
- ),
3259
- ' .wpcf7 textarea:focus' => array(
3260
- 'border-color' => $attr['fieldBorderFocusColor'],
3261
- ),
3262
-
3263
- // Submit button.
3264
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3265
- 'color' => $attr['buttonTextColor'],
3266
- 'background-color' => $attr['buttonBgColor'],
3267
- 'font-size' => $attr['buttonFontSize'] . $attr['buttonFontSizeType'],
3268
- 'font-family' => $attr['buttonFontFamily'],
3269
- 'font-weight' => $attr['buttonFontWeight'],
3270
- 'line-height' => $attr['buttonLineHeight'] . $attr['buttonLineHeightType'],
3271
- 'border-color' => $attr['buttonBorderColor'],
3272
- 'border-style' => $attr['buttonBorderStyle'],
3273
- 'border-width' => $attr['buttonBorderWidth'] . 'px',
3274
- 'border-radius' => $attr['buttonBorderRadius'] . $attr['buttonBorderRadiusType'],
3275
- 'padding-left' => $attr['buttonHrPadding'] . 'px',
3276
- 'padding-right' => $attr['buttonHrPadding'] . 'px',
3277
- 'padding-top' => $attr['buttonVrPadding'] . 'px',
3278
- 'padding-bottom' => $attr['buttonVrPadding'] . 'px',
3279
- ),
3280
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover' => array(
3281
- 'color' => $attr['buttonTextHoverColor'],
3282
- 'background-color' => $attr['buttonBgHoverColor'],
3283
- 'border-color' => $attr['buttonBorderHoverColor'],
3284
- ),
3285
-
3286
- // Check box Radio.
3287
- ' .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3288
- 'background-color' => $attr['fieldBgColor'],
3289
- 'color' => $attr['fieldInputColor'],
3290
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3291
- 'border-color' => $attr['fieldBorderFocusColor'],
3292
- ),
3293
- ' .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3294
- 'background-color' => $attr['fieldBgColor'],
3295
- 'color' => $attr['fieldInputColor'],
3296
- 'height' => $attr['fieldVrPadding'] . 'px',
3297
- 'width' => $attr['fieldVrPadding'] . 'px',
3298
- 'border-style' => $attr['fieldBorderStyle'],
3299
- 'border-color' => $attr['fieldBorderColor'],
3300
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3301
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3302
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3303
- ),
3304
- ' .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3305
- 'background-color' => $attr['fieldBgColor'],
3306
- 'color' => $attr['fieldInputColor'],
3307
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3308
- 'border-color' => $attr['fieldBorderFocusColor'],
3309
- ),
3310
- ' .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3311
- 'background-color' => $attr['fieldBgColor'],
3312
- 'color' => $attr['fieldInputColor'],
3313
- 'height' => $attr['fieldVrPadding'] . 'px',
3314
- 'width' => $attr['fieldVrPadding'] . 'px',
3315
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3316
- 'border-color' => $attr['fieldBorderColor'],
3317
- 'border-style' => $attr['fieldBorderStyle'],
3318
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3319
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3320
- ),
3321
- ' .wpcf7 .wpcf7-radio input[type="radio"] + span:before' => array(
3322
- 'background-color' => $attr['fieldBgColor'],
3323
- 'color' => $attr['fieldInputColor'],
3324
- 'height' => $attr['fieldVrPadding'] . 'px',
3325
- 'width' => $attr['fieldVrPadding'] . 'px',
3326
- 'border-style' => $attr['fieldBorderStyle'],
3327
- 'border-color' => $attr['fieldBorderColor'],
3328
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3329
- ),
3330
- ' .wpcf7 .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3331
- 'border-color' => $attr['fieldBorderFocusColor'],
3332
- ),
3333
-
3334
- // Underline border.
3335
- ' .uagb-cf7-styler__field-style-underline .wpcf7 input:not([type=submit])' => array(
3336
- 'border-style' => 'none',
3337
- 'border-bottom-color' => $attr['fieldBorderColor'],
3338
- 'border-bottom-style' => 'solid',
3339
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3340
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3341
- ),
3342
- ' .uagb-cf7-styler__field-style-underline textarea' => array(
3343
- 'border-style' => 'none',
3344
- 'border-bottom-color' => $attr['fieldBorderColor'],
3345
- 'border-bottom-style' => 'solid',
3346
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3347
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3348
- ),
3349
- ' .uagb-cf7-styler__field-style-underline select' => array(
3350
- 'border-style' => 'none',
3351
- 'border-bottom-color' => $attr['fieldBorderColor'],
3352
- 'border-bottom-style' => 'solid',
3353
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3354
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3355
- ),
3356
- ' .uagb-cf7-styler__field-style-underline textarea' => array(
3357
- 'border-style' => 'none',
3358
- 'border-bottom-color' => $attr['fieldBorderColor'],
3359
- 'border-bottom-style' => 'solid',
3360
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3361
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3362
- ),
3363
- ' .uagb-cf7-styler__field-style-underline .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3364
- 'border-style' => 'solid',
3365
- ),
3366
- ' .uagb-cf7-styler__field-style-underline .wpcf7 input[type="radio"] + span:before' => array(
3367
- 'border-style' => 'solid',
3368
- ),
3369
- ' .uagb-cf7-styler__field-style-underline .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3370
- 'border-style' => 'solid',
3371
- ),
3372
- ' .uagb-cf7-styler__field-style-box .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3373
- 'border-style' => $attr['fieldBorderStyle'],
3374
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3375
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3376
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3377
- ),
3378
- ' .uagb-cf7-styler__field-style-box .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3379
- 'border-style' => $attr['fieldBorderStyle'],
3380
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3381
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3382
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3383
- ),
3384
- ' .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3385
- 'background-color' => $attr['fieldInputColor'],
3386
- ),
3387
-
3388
- // Override check box.
3389
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3390
- 'background-color' => $attr['radioCheckBgColor'],
3391
- 'color' => $attr['radioCheckSelectColor'],
3392
- 'height' => $attr['radioCheckSize'] . 'px',
3393
- 'width' => $attr['radioCheckSize'] . 'px',
3394
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3395
- 'border-color' => $attr['radioCheckBorderColor'],
3396
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3397
- 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3398
- ),
3399
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3400
- 'border-color' => $attr['fieldBorderFocusColor'],
3401
- ),
3402
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3403
- 'background-color' => $attr['radioCheckBgColor'],
3404
- 'color' => $attr['radioCheckSelectColor'],
3405
- 'height' => $attr['radioCheckSize'] . 'px',
3406
- 'width' => $attr['radioCheckSize'] . 'px',
3407
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3408
- 'border-color' => $attr['radioCheckBorderColor'],
3409
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3410
- 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3411
- ),
3412
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3413
- 'border-color' => $attr['fieldBorderFocusColor'],
3414
- ),
3415
-
3416
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 input[type="radio"] + span:before' => array(
3417
- 'background-color' => $attr['radioCheckBgColor'],
3418
- 'color' => $attr['radioCheckSelectColor'],
3419
- 'height' => $attr['radioCheckSize'] . 'px',
3420
- 'width' => $attr['radioCheckSize'] . 'px',
3421
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3422
- 'border-color' => $attr['radioCheckBorderColor'],
3423
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3424
- ),
3425
- ' .uagb-cf7-styler__check-style-enabled .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3426
- 'background-color' => $attr['radioCheckSelectColor'],
3427
- ),
3428
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3429
- 'font-size' => $attr['radioCheckFontSize'] . $attr['radioCheckFontSizeType'],
3430
- 'font-family' => $attr['radioCheckFontFamily'],
3431
- 'font-weight' => $attr['radioCheckFontWeight'],
3432
- 'line-height' => $attr['radioCheckLineHeight'] . $attr['radioCheckLineHeightType'],
3433
- 'color' => $attr['radioCheckLableColor'],
3434
- ),
3435
- ' span.wpcf7-not-valid-tip' => array(
3436
- 'color' => $attr['validationMsgColor'],
3437
- 'font-size' => $attr['validationMsgFontSize'] . $attr['validationMsgFontSizeType'],
3438
- 'font-family' => $attr['validationMsgFontFamily'],
3439
- 'font-weight' => $attr['validationMsgFontWeight'],
3440
- 'line-height' => $attr['validationMsgLineHeight'] . $attr['validationMsgLineHeightType'],
3441
- ),
3442
- ' .uagb-cf7-styler__highlight-border input.wpcf7-form-control.wpcf7-not-valid' => array(
3443
- 'border-color' => $attr['highlightBorderColor'],
3444
- ),
3445
- ' .uagb-cf7-styler__highlight-border .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item-label:before' => array(
3446
- 'border-color' => $attr['highlightBorderColor'] . '!important',
3447
- ),
3448
- ' .uagb-cf7-styler__highlight-style-bottom_right .wpcf7-not-valid-tip' => array(
3449
- 'background-color' => $attr['validationMsgBgColor'],
3450
- ),
3451
- ' .wpcf7-response-output' => array(
3452
- 'border-width' => $attr['msgBorderSize'] . 'px',
3453
- 'border-radius' => $attr['msgBorderRadius'] . $attr['msgBorderRadiusType'],
3454
- 'font-size' => $attr['msgFontSize'] . $attr['msgFontSizeType'],
3455
- 'font-family' => $attr['msgFontFamily'],
3456
- 'font-weight' => $attr['msgFontWeight'],
3457
- 'line-height' => $attr['msgLineHeight'] . $attr['msgLineHeightType'],
3458
- 'padding-top' => $attr['msgVrPadding'] . 'px',
3459
- 'padding-bottom' => $attr['msgVrPadding'] . 'px',
3460
- 'padding-left' => $attr['msgHrPadding'] . 'px',
3461
- 'padding-right' => $attr['msgHrPadding'] . 'px',
3462
- ),
3463
- ' .wpcf7-response-output.wpcf7-validation-errors' => array(
3464
- 'background-color' => $attr['errorMsgBgColor'],
3465
- 'border-color' => $attr['errorMsgBorderColor'],
3466
- 'color' => $attr['errorMsgColor'],
3467
- ),
3468
- ' .wpcf7-response-output.wpcf7-validation- success' => array(
3469
- 'background-color' => $attr['successMsgBgColor'],
3470
- 'border-color' => $attr['successMsgBorderColor'],
3471
- 'color' => $attr['successMsgColor'],
3472
- ),
3473
-
3474
- );
3475
-
3476
- $t_selectors = array(
3477
- ' .wpcf7 form.wpcf7-form:not(input)' => array(
3478
- 'color' => $attr['fieldLabelColor'],
3479
- ),
3480
- ' .wpcf7 input:not([type=submit])' => array(
3481
- 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
3482
- 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
3483
- ),
3484
- ' .wpcf7 select' => array(
3485
- 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3486
- 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3487
- ),
3488
- ' .wpcf7 textarea' => array(
3489
- 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
3490
- 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
3491
- ),
3492
- ' .wpcf7 form label' => array(
3493
- 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3494
- 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3495
- ),
3496
-
3497
- ' .wpcf7 form .wpcf7-list-item-label' => array(
3498
- 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3499
- 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3500
- ),
3501
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3502
- 'font-size' => $attr['buttonFontSizeTablet'] . $attr['buttonFontSizeType'],
3503
- 'line-height' => $attr['buttonLineHeightTablet'] . $attr['buttonLineHeightType'],
3504
- ),
3505
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3506
- 'font-size' => $attr['radioCheckFontSizeTablet'] . $attr['radioCheckFontSizeType'],
3507
- 'line-height' => $attr['radioCheckLineHeightTablet'] . $attr['radioCheckLineHeightType'],
3508
- ),
3509
- ' span.wpcf7-not-valid-tip' => array(
3510
- 'font-size' => $attr['validationMsgFontSizeTablet'] . $attr['validationMsgFontSizeType'],
3511
- 'line-height' => $attr['validationMsgLineHeightTablet'] . $attr['validationMsgLineHeightType'],
3512
- ),
3513
- ' .wpcf7-response-output' => array(
3514
- 'font-size' => $attr['msgFontSizeTablet'] . $attr['msgFontSizeType'],
3515
- 'line-height' => $attr['msgLineHeightTablet'] . $attr['msgLineHeightType'],
3516
- ),
3517
- );
3518
-
3519
- $m_selectors = array(
3520
- ' .wpcf7 input:not([type=submit])' => array(
3521
- 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
3522
- 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
3523
- ),
3524
- ' .wpcf7 select' => array(
3525
- 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3526
- 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3527
- ),
3528
- ' .wpcf7 textarea' => array(
3529
- 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
3530
- 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
3531
- ),
3532
- ' .wpcf7 form label' => array(
3533
- 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3534
- 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3535
- ),
3536
-
3537
- ' .wpcf7 form .wpcf7-list-item-label' => array(
3538
- 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3539
- 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3540
- ),
3541
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3542
- 'font-size' => $attr['buttonFontSizeMobile'] . $attr['buttonFontSizeType'],
3543
- 'line-height' => $attr['buttonLineHeightMobile'] . $attr['buttonLineHeightType'],
3544
- ),
3545
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3546
- 'font-size' => $attr['radioCheckFontSizeMobile'] . $attr['radioCheckFontSizeType'],
3547
- 'line-height' => $attr['radioCheckLineHeightMobile'] . $attr['radioCheckLineHeightType'],
3548
- ),
3549
- ' span.wpcf7-not-valid-tip' => array(
3550
- 'font-size' => $attr['validationMsgFontSizeMobile'] . $attr['validationMsgFontSizeType'],
3551
- 'line-height' => $attr['validationMsgLineHeightMobile'] . $attr['validationMsgLineHeightType'],
3552
- ),
3553
- ' .wpcf7-response-output' => array(
3554
- 'font-size' => $attr['msgFontSizeMobile'] . $attr['msgFontSizeType'],
3555
- 'line-height' => $attr['msgLineHeightMobile'] . $attr['msgLineHeightType'],
3556
- ),
3557
- );
3558
-
3559
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cf7-styler-' . $id );
3560
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-cf7-styler-' . $id, 'tablet' );
3561
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-cf7-styler-' . $id, 'mobile' );
3562
-
3563
- return $desktop . $tablet . $mobile;
3564
- }
3565
-
3566
- /**
3567
- * Get Marketing Button Block CSS
3568
- *
3569
- * @since 1.11.0
3570
- * @param array $attr The block attributes.
3571
- * @param string $id The selector ID.
3572
- * @return array The Widget List.
3573
- */
3574
- public static function get_marketing_btn_css( $attr, $id ) { // @codingStandardsIgnoreStart
3575
-
3576
- $defaults = UAGB_Helper::$block_list['uagb/marketing-button']['attributes'];
3577
-
3578
- $attr = array_merge( $defaults, (array) $attr );
3579
-
3580
- $m_selectors = array();
3581
- $t_selectors = array();
3582
-
3583
- $icon_color = ( "" == $attr["iconColor"] ) ? $attr["titleColor"] : $attr["iconColor"];
3584
- $icon_hover_color = ( "" == $attr["iconHoverColor"] ) ? $attr["titleHoverColor"] : $attr["iconHoverColor"];
3585
-
3586
- $selectors = array(
3587
- " .uagb-marketing-btn__title-wrap" => array(
3588
- "margin-bottom" => $attr["titleSpace"] . "px"
3589
- ),
3590
- " .uagb-marketing-btn__title" => array(
3591
- "font-size" => $attr["titleFontSize"] . $attr["titleFontSizeType"],
3592
- "line-height" => $attr["titleLineHeight"] . $attr["titleLineHeightType"],
3593
- "font-family" => $attr["titleFontFamily"],
3594
- "font-weight" => $attr["titleFontWeight"],
3595
- "color" => $attr["titleColor"],
3596
- ),
3597
- " .uagb-marketing-btn__icon-wrap" => array(
3598
- "width" => $attr["iconFontSize"] . $attr["iconFontSizeType"],
3599
- "height" => $attr["iconFontSize"] . $attr["iconFontSizeType"],
3600
- ),
3601
- " .uagb-marketing-btn__icon-wrap svg" => array(
3602
- "fill" => $icon_color
3603
- ),
3604
- " .uagb-marketing-btn__prefix" => array(
3605
- "font-size" => $attr["prefixFontSize"] . $attr["prefixFontSizeType"],
3606
- "line-height" => $attr["prefixLineHeight"] . $attr["prefixLineHeightType"],
3607
- "font-family" => $attr["prefixFontFamily"],
3608
- "font-weight" => $attr["prefixFontWeight"],
3609
- "color" => $attr["prefixColor"],
3610
- ),
3611
- " .uagb-marketing-btn__link:hover .uagb-marketing-btn__title" => array(
3612
- "color" => $attr["titleHoverColor"],
3613
- ),
3614
- " .uagb-marketing-btn__link:hover .uagb-marketing-btn__prefix" => array(
3615
- "color" => $attr["prefixHoverColor"],
3616
- ),
3617
- " .uagb-marketing-btn__link:hover .uagb-marketing-btn__icon-wrap svg" => array(
3618
- "fill" => $icon_hover_color
3619
- ),
3620
- " .uagb-marketing-btn__link" => array(
3621
- "padding-left" => $attr["hPadding"] . "px",
3622
- "padding-right" => $attr["hPadding"] . "px",
3623
- "padding-top" => $attr["vPadding"] . "px",
3624
- "padding-bottom" => $attr["vPadding"] . "px",
3625
- "border-style" => $attr["borderStyle"],
3626
- "border-width" => $attr["borderWidth"] . "px",
3627
- "border-color" => $attr["borderColor"],
3628
- "border-radius" => $attr["borderRadius"] . "px",
3629
- ),
3630
- " .uagb-marketing-btn__link:hover" => array(
3631
- "border-color" => $attr["borderHoverColor"]
3632
- ),
3633
- );
3634
-
3635
- if ( "transparent" == $attr["backgroundType"] ) {
3636
-
3637
- $selectors[" .uagb-marketing-btn__link"]["background"] = "transparent";
3638
-
3639
- } else if ( "color" == $attr["backgroundType"] ) {
3640
-
3641
- $selectors[" .uagb-marketing-btn__link"]["background"] = UAGB_Helper::hex2rgba( $attr["backgroundColor"], $attr['backgroundOpacity'] );
3642
-
3643
- // Hover Background
3644
- $selectors[" .uagb-marketing-btn__link:hover"] = array(
3645
- "background" => UAGB_Helper::hex2rgba( $attr["backgroundHoverColor"], $attr['backgroundHoverOpacity'] ),
3646
- );
3647
-
3648
- } else if ( "gradient" == $attr["backgroundType"] ) {
3649
-
3650
- $selectors[' .uagb-marketing-btn__link']['background-color'] = 'transparent';
3651
-
3652
- if ( 'linear' === $attr['gradientType'] ) {
3653
-
3654
- $selectors[' .uagb-marketing-btn__link']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . UAGB_Helper::hex2rgba( $attr['gradientColor1'], $attr['backgroundOpacity'] ) . ' ' . $attr['gradientLocation1'] . '%, ' . UAGB_Helper::hex2rgba( $attr['gradientColor2'], $attr['backgroundOpacity'] ) . ' ' . $attr['gradientLocation2'] . '%)';
3655
- } else {
3656
-
3657
- $selectors[' .uagb-marketing-btn__link']['background-image'] = 'radial-gradient( at center center, ' . UAGB_Helper::hex2rgba( $attr['gradientColor1'], $attr['backgroundOpacity'] ) . ' ' . $attr['gradientLocation1'] . '%, ' . UAGB_Helper::hex2rgba( $attr['gradientColor2'], $attr['backgroundOpacity'] ) . ' ' . $attr['gradientLocation2'] . '%)';
3658
- }
3659
- }
3660
-
3661
- $margin_type = ( "after" == $attr["iconPosition"] ) ? "margin-left" : "margin-right";
3662
-
3663
- $selectors[" .uagb-marketing-btn__icon-wrap"][$margin_type] = $attr["iconSpace"] . "px";
3664
-
3665
- $m_selectors = array(
3666
- ' .uagb-marketing-btn__title' => array(
3667
- 'font-size' => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
3668
- 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
3669
- ),
3670
- ' .uagb-marketing-btn__prefix' => array(
3671
- 'font-size' => $attr['prefixFontSizeMobile'] . $attr['prefixFontSizeType'],
3672
- 'line-height' => $attr['prefixLineHeightMobile'] . $attr['prefixLineHeightType'],
3673
- ),
3674
- ' .uagb-marketing-btn__icon-wrap' => array(
3675
- "width" => $attr["iconFontSizeMobile"] . $attr["iconFontSizeType"],
3676
- "height" => $attr["iconFontSizeMobile"] . $attr["iconFontSizeType"],
3677
- ),
3678
-
3679
- );
3680
-
3681
- $t_selectors = array(
3682
- ' .uagb-marketing-btn__title' => array(
3683
- 'font-size' => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
3684
- 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
3685
- ),
3686
- ' .uagb-marketing-btn__prefix' => array(
3687
- 'font-size' => $attr['prefixFontSizeTablet'] . $attr['prefixFontSizeType'],
3688
- 'line-height' => $attr['prefixLineHeightTablet'] . $attr['prefixLineHeightType'],
3689
- ),
3690
- ' .uagb-marketing-btn__icon-wrap' => array(
3691
- "width" => $attr["iconFontSizeTablet"] . $attr["iconFontSizeType"],
3692
- "height" => $attr["iconFontSizeTablet"] . $attr["iconFontSizeType"],
3693
- ),
3694
-
3695
- );
3696
-
3697
- // @codingStandardsIgnoreEnd
3698
-
3699
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-marketing-btn-' . $id );
3700
-
3701
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-marketing-btn-' . $id, 'tablet' );
3702
-
3703
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-marketing-btn-' . $id, 'mobile' );
3704
-
3705
- return $desktop . $tablet . $mobile;
3706
- }
3707
-
3708
-
3709
- /**
3710
- * Get Testimonial Js
3711
- *
3712
- * @since 1.6.0
3713
- * @param array $attr The block attributes.
3714
- * @param string $id The selector ID.
3715
- */
3716
- public static function get_testimonial_js( $attr, $id ) { // @codingStandardsIgnoreStart.
3717
-
3718
- $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
3719
-
3720
- $attr = array_merge( $defaults, (array) $attr );
3721
-
3722
- $dots = ( "dots" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
3723
- $arrows = ( "arrows" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
3724
-
3725
- $slick_options = [
3726
- 'slidesToShow' => $attr['columns'],
3727
- 'slidesToScroll' => 1,
3728
- 'autoplaySpeed' => $attr['autoplaySpeed'],
3729
- 'autoplay' => $attr['autoplay'],
3730
- 'infinite' => $attr['infiniteLoop'],
3731
- 'pauseOnHover' => $attr['pauseOnHover'],
3732
- 'speed' => $attr['transitionSpeed'],
3733
- 'arrows' => $arrows,
3734
- 'dots' => $dots,
3735
- 'rtl' => false,
3736
- 'prevArrow' => '<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button" style="border-color: '.$attr["arrowColor"].';border-radius:'.$attr["arrowBorderRadius"].'px;border-width:'.$attr["arrowBorderSize"].'px"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512" height ="'.$attr["arrowSize"].'" width = "'.$attr["arrowSize"].'" fill ="'.$attr["arrowColor"].'" ><path d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"></path></svg></button>',
3737
- 'nextArrow' => '<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button" style="border-color: '.$attr["arrowColor"].';border-radius:'.$attr["arrowBorderRadius"].'px;border-width:'.$attr["arrowBorderSize"].'px"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512" height ="'.$attr["arrowSize"].'" width = "'.$attr["arrowSize"].'" fill ="'.$attr["arrowColor"].'" ><path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"></path></svg></button>',
3738
- 'responsive' => [
3739
- [
3740
- 'breakpoint' => 1024,
3741
- 'settings' => [
3742
- 'slidesToShow' => $attr['tcolumns'],
3743
- 'slidesToScroll' => 1,
3744
- ],
3745
- ],
3746
- [
3747
- 'breakpoint' => 767,
3748
- 'settings' => [
3749
- 'slidesToShow' => $attr['mcolumns'],
3750
- 'slidesToScroll' => 1,
3751
- ],
3752
- ]
3753
- ]
3754
- ];
3755
-
3756
- $settings = json_encode($slick_options);
3757
- $selector = '#uagb-testimonial-'. $id;
3758
- ?>
3759
- if( jQuery( ".wp-block-uagb-testimonial" ).length > 0 ){
3760
- return true
3761
- } else {
3762
- jQuery( "<?php echo $selector ?>" ).find( ".is-carousel" ).slick( <?php echo $settings ?> );
3763
- }
3764
- <?php
3765
- // @codingStandardsIgnoreEnd.
3766
- }
3767
-
3768
- /**
3769
- * Get Blockquote Js
3770
- *
3771
- * @since 1.8.2
3772
- * @param array $attr The block attributes.
3773
- * @param string $id The selector ID.
3774
- */
3775
- public static function get_blockquote_js( $attr, $id ) {
3776
- // @codingStandardsIgnoreStart.
3777
-
3778
- $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
3779
-
3780
- $attr = array_merge( $defaults, (array) $attr );
3781
-
3782
- $target = $attr['iconTargetUrl'];
3783
-
3784
- $url = " " ;
3785
-
3786
- if( $target == 'current' ){
3787
- global $wp;
3788
- $url = home_url(add_query_arg(array(),$wp->request));
3789
- }else{
3790
- $url = $attr['customUrl'];
3791
- }
3792
-
3793
- $via = isset( $attr['iconShareVia'] ) ? $attr['iconShareVia'] : '';
3794
-
3795
- $selector = '#uagb-blockquote-'. $id;
3796
-
3797
- ?>
3798
- jQuery( "<?php echo $selector ?>" ).find( ".uagb-blockquote__tweet-button" ).click(function(){
3799
- var content = jQuery("<?php echo $selector ?>").find(".uagb-blockquote__content").text();
3800
- var request_url = "https://twitter.com/share?url="+ encodeURIComponent("<?php echo $url ?>")+"&text="+content+"&via="+("<?php echo $via;?>");
3801
- window.open( request_url );
3802
- });
3803
- <?php
3804
-
3805
- // @codingStandardsIgnoreEnd.
3806
- }
3807
-
3808
- /**
3809
- * Get Social Share JS
3810
- *
3811
- * @since 1.8.1
3812
- * @param string $id The selector ID.
3813
- */
3814
- public static function get_social_share_js( $id ) {
3815
- $selector = '#uagb-social-share-' . $id;
3816
- ?>
3817
- jQuery( "<?php echo $selector; ?>" ).find( ".uagb-ss__link" ).click(function(){
3818
- var social_url = jQuery( this ).data( "href" );
3819
- var request_url = social_url + window.location.href ;
3820
- window.open( request_url );
3821
- });
3822
- <?php
3823
- }
3824
-
3825
- /**
3826
- * Adds Google fonts for Advanced Heading block.
3827
- *
3828
- * @since 1.9.1
3829
- * @param array $attr the blocks attr.
3830
- */
3831
- public static function blocks_advanced_heading_gfont( $attr ) {
3832
-
3833
- $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
3834
- $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
3835
- $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
3836
- $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
3837
-
3838
- $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
3839
- $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
3840
- $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
3841
- $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
3842
-
3843
- UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
3844
- UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
3845
- }
3846
-
3847
-
3848
- /**
3849
- * Adds Google fonts for CF7 Styler block.
3850
- *
3851
- * @since 1.10.0
3852
- * @param array $attr the blocks attr.
3853
- */
3854
- public static function blocks_cf7_styler_gfont( $attr ) {
3855
-
3856
- $label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
3857
- $label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
3858
- $label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
3859
- $label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
3860
-
3861
- $input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
3862
- $input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
3863
- $input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
3864
- $input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
3865
-
3866
- $radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
3867
- $radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
3868
- $radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
3869
- $radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
3870
-
3871
- $button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
3872
- $button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
3873
- $button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
3874
- $button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
3875
-
3876
- $msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
3877
- $msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
3878
- $msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
3879
- $msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
3880
-
3881
- $validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
3882
- $validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
3883
- $validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
3884
- $validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
3885
-
3886
- UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
3887
- UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
3888
-
3889
- UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
3890
- UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
3891
-
3892
- UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
3893
- UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
3894
- }
3895
-
3896
- /**
3897
- * Adds Google fonts for Marketing Button block.
3898
- *
3899
- * @since 1.11.0
3900
- * @param array $attr the blocks attr.
3901
- */
3902
- public static function blocks_marketing_btn_gfont( $attr ) {
3903
-
3904
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
3905
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
3906
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
3907
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
3908
-
3909
- $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
3910
- $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
3911
- $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
3912
- $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
3913
-
3914
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
3915
- UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
3916
- }
3917
-
3918
- /**
3919
- * Adds Google fonts for Blockquote.
3920
- *
3921
- * @since 1.9.1
3922
- * @param array $attr the blocks attr.
3923
- */
3924
- public static function blocks_blockquote_gfont( $attr ) {
3925
-
3926
- $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
3927
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
3928
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
3929
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
3930
-
3931
- $author_load_google_font = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
3932
- $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
3933
- $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
3934
- $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
3935
-
3936
- $tweet_btn_load_google_font = isset( $attr['tweetBtnLoadGoogleFonts'] ) ? $attr['tweetBtnLoadGoogleFonts'] : '';
3937
- $tweet_btn_font_family = isset( $attr['tweetBtnFontFamily'] ) ? $attr['tweetBtnFontFamily'] : '';
3938
- $tweet_btn_font_weight = isset( $attr['tweetBtnFontWeight'] ) ? $attr['tweetBtnFontWeight'] : '';
3939
- $tweet_btn_font_subset = isset( $attr['tweetBtnFontSubset'] ) ? $attr['tweetBtnFontSubset'] : '';
3940
-
3941
- UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
3942
- UAGB_Helper::blocks_google_font( $author_load_google_font, $author_font_family, $author_font_weight, $author_font_subset );
3943
- UAGB_Helper::blocks_google_font( $tweet_btn_load_google_font, $tweet_btn_font_family, $tweet_btn_font_weight, $tweet_btn_font_subset );
3944
- }
3945
-
3946
- /**
3947
- * Adds Google fonts for Testimonial block.
3948
- *
3949
- * @since 1.9.1
3950
- * @param array $attr the blocks attr.
3951
- */
3952
- public static function blocks_testimonial_gfont( $attr ) {
3953
- $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
3954
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
3955
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
3956
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
3957
-
3958
- $name_load_google_fonts = isset( $attr['nameLoadGoogleFonts'] ) ? $attr['nameLoadGoogleFonts'] : '';
3959
- $name_font_family = isset( $attr['nameFontFamily'] ) ? $attr['nameFontFamily'] : '';
3960
- $name_font_weight = isset( $attr['nameFontWeight'] ) ? $attr['nameFontWeight'] : '';
3961
- $name_font_subset = isset( $attr['nameFontSubset'] ) ? $attr['nameFontSubset'] : '';
3962
-
3963
- $company_load_google_fonts = isset( $attr['companyLoadGoogleFonts'] ) ? $attr['companyLoadGoogleFonts'] : '';
3964
- $company_font_family = isset( $attr['companyFontFamily'] ) ? $attr['companyFontFamily'] : '';
3965
- $company_font_weight = isset( $attr['companyFontWeight'] ) ? $attr['companyFontWeight'] : '';
3966
- $company_font_subset = isset( $attr['companyFontSubset'] ) ? $attr['companyFontSubset'] : '';
3967
-
3968
- UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
3969
- UAGB_Helper::blocks_google_font( $name_load_google_fonts, $name_font_family, $name_font_family, $name_font_subset );
3970
- UAGB_Helper::blocks_google_font( $company_load_google_fonts, $company_font_family, $company_font_family, $company_font_subset );
3971
- }
3972
-
3973
- /**
3974
- * Adds Google fonts for Advanced Heading block.
3975
- *
3976
- * @since 1.9.1
3977
- * @param array $attr the blocks attr.
3978
- */
3979
- public static function blocks_team_gfont( $attr ) {
3980
-
3981
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
3982
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
3983
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
3984
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
3985
-
3986
- $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
3987
- $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
3988
- $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
3989
- $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
3990
-
3991
- $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
3992
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
3993
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
3994
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
3995
-
3996
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
3997
- UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
3998
- UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
3999
- }
4000
-
4001
- /**
4002
- *
4003
- * Adds Google fonts for Restaurant Menu block.
4004
- *
4005
- * @since 1.9.1
4006
- * @param array $attr the blocks attr.
4007
- */
4008
- public static function blocks_restaurant_menu_gfont( $attr ) {
4009
- $title_load_google_fonts = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4010
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4011
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4012
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4013
-
4014
- $price_load_google_fonts = isset( $attr['priceLoadGoogleFonts'] ) ? $attr['priceLoadGoogleFonts'] : '';
4015
- $price_font_family = isset( $attr['priceFontFamily'] ) ? $attr['priceFontFamily'] : '';
4016
- $price_font_weight = isset( $attr['priceFontWeight'] ) ? $attr['priceFontWeight'] : '';
4017
- $price_font_subset = isset( $attr['priceFontSubset'] ) ? $attr['priceFontSubset'] : '';
4018
-
4019
- $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4020
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4021
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4022
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4023
-
4024
- UAGB_Helper::blocks_google_font( $title_load_google_fonts, $title_font_family, $title_font_weight, $title_font_subset );
4025
- UAGB_Helper::blocks_google_font( $price_load_google_fonts, $price_font_family, $price_font_weight, $price_font_subset );
4026
- UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
4027
- }
4028
-
4029
- /**
4030
- * Adds Google fonts for Content Timeline block.
4031
- *
4032
- * @since 1.9.1
4033
- * @param array $attr the blocks attr.
4034
- */
4035
- public static function blocks_content_timeline_gfont( $attr ) {
4036
- $head_load_google_fonts = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4037
- $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4038
- $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4039
- $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4040
-
4041
- $subheadload_google_fonts = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4042
- $subheadfont_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4043
- $subheadfont_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4044
- $subheadfont_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4045
-
4046
- $date_load_google_fonts = isset( $attr['dateLoadGoogleFonts'] ) ? $attr['dateLoadGoogleFonts'] : '';
4047
- $date_font_family = isset( $attr['dateFontFamily'] ) ? $attr['dateFontFamily'] : '';
4048
- $date_font_weight = isset( $attr['dateFontWeight'] ) ? $attr['dateFontWeight'] : '';
4049
- $date_font_subset = isset( $attr['dateFontSubset'] ) ? $attr['dateFontSubset'] : '';
4050
-
4051
- UAGB_Helper::blocks_google_font( $head_load_google_fonts, $head_font_family, $head_font_weight, $head_font_subset );
4052
- UAGB_Helper::blocks_google_font( $subheadload_google_fonts, $subheadfont_family, $subheadfont_weight, $subheadfont_subset );
4053
- UAGB_Helper::blocks_google_font( $date_load_google_fonts, $date_font_family, $date_font_weight, $date_font_subset );
4054
- }
4055
-
4056
- /**
4057
- * Adds Google fonts for Post Timeline block.
4058
- *
4059
- * @since 1.9.1
4060
- * @param array $attr the blocks attr.
4061
- */
4062
- public static function blocks_post_timeline_gfont( $attr ) {
4063
- self::blocks_content_timeline_gfont( $attr );
4064
-
4065
- $author_load_google_fonts = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
4066
- $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
4067
- $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
4068
- $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
4069
-
4070
- $cta_load_google_fonts = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4071
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4072
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4073
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4074
-
4075
- UAGB_Helper::blocks_google_font( $author_load_google_fonts, $author_font_family, $author_font_weight, $author_font_subset );
4076
- UAGB_Helper::blocks_google_font( $cta_load_google_fonts, $cta_font_family, $cta_font_weight, $cta_font_subset );
4077
- }
4078
-
4079
- /**
4080
- * Adds Google fonts for Mulit Button's block.
4081
- *
4082
- * @since 1.9.1
4083
- * @param array $attr the blocks attr.
4084
- */
4085
- public static function blocks_buttons_gfont( $attr ) {
4086
-
4087
- $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
4088
- $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
4089
- $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
4090
- $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
4091
-
4092
- UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
4093
- }
4094
-
4095
- /**
4096
- * Adds Google fonts for Icon List block
4097
- *
4098
- * @since 1.9.1
4099
- * @param array $attr the blocks attr.
4100
- */
4101
- public static function blocks_icon_list_gfont( $attr ) {
4102
-
4103
- $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
4104
- $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
4105
- $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
4106
- $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
4107
-
4108
- UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
4109
- }
4110
-
4111
- /**
4112
- * Adds Google fonts for Post block.
4113
- *
4114
- * @since 1.9.1
4115
- * @param array $attr the blocks attr.
4116
- */
4117
- public static function blocks_post_gfont( $attr ) {
4118
-
4119
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4120
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4121
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4122
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4123
-
4124
- $meta_load_google_font = isset( $attr['metaLoadGoogleFonts'] ) ? $attr['metaLoadGoogleFonts'] : '';
4125
- $meta_font_family = isset( $attr['metaFontFamily'] ) ? $attr['metaFontFamily'] : '';
4126
- $meta_font_weight = isset( $attr['metaFontWeight'] ) ? $attr['metaFontWeight'] : '';
4127
- $meta_font_subset = isset( $attr['metaFontSubset'] ) ? $attr['metaFontSubset'] : '';
4128
-
4129
- $excerpt_load_google_font = isset( $attr['excerptLoadGoogleFonts'] ) ? $attr['excerptLoadGoogleFonts'] : '';
4130
- $excerpt_font_family = isset( $attr['excerptFontFamily'] ) ? $attr['excerptFontFamily'] : '';
4131
- $excerpt_font_weight = isset( $attr['excerptFontWeight'] ) ? $attr['excerptFontWeight'] : '';
4132
- $excerpt_font_subset = isset( $attr['excerptFontSubset'] ) ? $attr['excerptFontSubset'] : '';
4133
-
4134
- $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4135
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4136
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4137
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4138
-
4139
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4140
-
4141
- UAGB_Helper::blocks_google_font( $meta_load_google_font, $meta_font_family, $meta_font_weight, $meta_font_subset );
4142
-
4143
- UAGB_Helper::blocks_google_font( $excerpt_load_google_font, $excerpt_font_family, $excerpt_font_weight, $excerpt_font_subset );
4144
-
4145
- UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4146
- }
4147
-
4148
- /**
4149
- * Adds Google fonts for Advanced Heading block.
4150
- *
4151
- * @since 1.9.1
4152
- * @param array $attr the blocks attr.
4153
- */
4154
- public static function blocks_info_box_gfont( $attr ) {
4155
-
4156
- $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4157
- $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4158
- $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4159
- $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4160
-
4161
- $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
4162
- $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
4163
- $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
4164
- $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
4165
-
4166
- $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4167
- $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4168
- $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4169
- $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4170
-
4171
- $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4172
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4173
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4174
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4175
-
4176
- UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4177
- UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
4178
- UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
4179
- UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
4180
- }
4181
-
4182
- /**
4183
- * Adds Google fonts for Call To Action block.
4184
- *
4185
- * @since 1.9.1
4186
- * @param array $attr the blocks attr.
4187
- */
4188
- public static function blocks_call_to_action_gfont( $attr ) {
4189
-
4190
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4191
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4192
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4193
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4194
-
4195
- $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4196
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4197
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4198
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4199
-
4200
- $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4201
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4202
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4203
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4204
-
4205
- UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4206
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4207
- UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
4208
- }
4209
- }
4210
- }
1
+ <?php
2
+ /**
3
+ * UAGB Block Helper.
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! class_exists( 'UAGB_Block_Helper' ) ) {
9
+
10
+ /**
11
+ * Class UAGB_Block_Helper.
12
+ */
13
+ class UAGB_Block_Helper {
14
+
15
+
16
+ /**
17
+ * Get Section Block CSS
18
+ *
19
+ * @since 0.0.1
20
+ * @param array $attr The block attributes.
21
+ * @param string $id The selector ID.
22
+ * @return array The Widget List.
23
+ */
24
+ public static function get_section_css( $attr, $id ) { // @codingStandardsIgnoreStart
25
+
26
+ global $content_width;
27
+
28
+ $defaults = UAGB_Helper::$block_list['uagb/section']['attributes'];
29
+
30
+ $attr = array_merge( $defaults, $attr );
31
+
32
+ $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
33
+
34
+ $style = array(
35
+ 'padding-top' => $attr['topPadding'] . 'px',
36
+ 'padding-bottom' => $attr['bottomPadding'] . 'px',
37
+ 'padding-left' => $attr['leftPadding'] . 'px',
38
+ 'padding-right' => $attr['rightPadding'] . 'px',
39
+ 'border-radius' => $attr['borderRadius'] . "px"
40
+ );
41
+
42
+ $m_selectors = array();
43
+ $t_selectors = array();
44
+
45
+ if ( 'right' == $attr['align'] ) {
46
+ $style['margin-right'] = $attr['rightMargin'] . 'px';
47
+ $style['margin-left'] = 'auto';
48
+ $style['margin-top'] = $attr['topMargin'] . 'px';
49
+ $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
50
+ } elseif ( 'left' == $attr['align'] ) {
51
+ $style['margin-right'] = 'auto';
52
+ $style['margin-left'] = $attr['leftMargin'] . 'px';
53
+ $style['margin-top'] = $attr['topMargin'] . 'px';
54
+ $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
55
+ } elseif ( 'center' == $attr['align'] ) {
56
+ $style['margin-right'] = 'auto';
57
+ $style['margin-left'] = 'auto';
58
+ $style['margin-top'] = $attr['topMargin'] . 'px';
59
+ $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
60
+ } else {
61
+ $style['margin-top'] = $attr['topMargin'] . 'px';
62
+ $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
63
+ }
64
+
65
+ if ( "none" != $attr['borderStyle'] ) {
66
+ $style["border-style"] = $attr['borderStyle'];
67
+ $style["border-width"] = $attr['borderWidth'] . "px";
68
+ $style["border-color"] = $attr['borderColor'];
69
+ }
70
+
71
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
72
+
73
+ $section_width = '100%';
74
+
75
+ if ( isset( $attr['contentWidth'] ) ) {
76
+
77
+ if ( 'boxed' == $attr['contentWidth'] ) {
78
+ if ( isset( $attr['width'] ) ) {
79
+ $section_width = $attr['width'] . 'px';
80
+ }
81
+ }
82
+ }
83
+
84
+ if ( 'wide' != $attr['align'] && 'full' != $attr['align'] ) {
85
+ $style['max-width'] = $section_width;
86
+ }
87
+
88
+ if ( 'image' === $bg_type ) {
89
+
90
+ $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
91
+ $style['background-position'] = $position;
92
+ $style['background-attachment'] = $attr['backgroundAttachment'];
93
+ $style['background-repeat'] = $attr['backgroundRepeat'];
94
+ $style['background-size'] = $attr['backgroundSize'];
95
+
96
+ }
97
+
98
+ $inner_width = '100%';
99
+
100
+ if ( isset( $attr['contentWidth'] ) ) {
101
+ if ( 'boxed' != $attr['contentWidth'] ) {
102
+ if ( isset( $attr['themeWidth'] ) && $attr['themeWidth'] == true ) {
103
+ $inner_width = $content_width . 'px';
104
+ } else {
105
+ if ( isset( $attr['innerWidth'] ) ) {
106
+ $inner_width = $attr['innerWidth'] . 'px';
107
+ }
108
+ }
109
+ }
110
+ }
111
+
112
+ $selectors = array(
113
+ '.uagb-section__wrap' => $style,
114
+ ' > .uagb-section__video-wrap' => array(
115
+ 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
116
+ ),
117
+ ' > .uagb-section__inner-wrap' => array(
118
+ 'max-width' => $inner_width,
119
+ ),
120
+ );
121
+
122
+ if ( 'video' == $bg_type ) {
123
+ $selectors[' > .uagb-section__overlay'] = array(
124
+ 'opacity' => 1,
125
+ 'background-color' => $attr['backgroundVideoColor'],
126
+ );
127
+ } else if ( 'image' == $bg_type ) {
128
+ $selectors[' > .uagb-section__overlay'] = array(
129
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
130
+ 'background-color' => $attr['backgroundImageColor'],
131
+ );
132
+ } else if ( 'color' == $bg_type ) {
133
+ $selectors[' > .uagb-section__overlay'] = array(
134
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
135
+ 'background-color' => $attr['backgroundColor'],
136
+ );
137
+ } else if ( 'gradient' === $bg_type ) {
138
+ $selectors[' > .uagb-section__overlay']['background-color'] = 'transparent';
139
+ $selectors[' > .uagb-section__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
140
+
141
+ if ( 'linear' === $attr['gradientType'] ) {
142
+
143
+ $selectors[' > .uagb-section__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
144
+ } else {
145
+
146
+ $selectors[' > .uagb-section__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
147
+ }
148
+ }
149
+
150
+ $selectors[' > .uagb-section__overlay']["border-radius"] = $attr['borderRadius'] . "px";
151
+
152
+ $m_selectors = array(
153
+ '.uagb-section__wrap' => array(
154
+ 'padding-top' => $attr['topPaddingMobile'] . 'px',
155
+ 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
156
+ 'padding-left' => $attr['leftPaddingMobile'] . 'px',
157
+ 'padding-right' => $attr['rightPaddingMobile'] . 'px',
158
+ )
159
+ );
160
+
161
+ $t_selectors = array(
162
+ '.uagb-section__wrap' => array(
163
+ 'padding-top' => $attr['topPaddingTablet'] . 'px',
164
+ 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
165
+ 'padding-left' => $attr['leftPaddingTablet'] . 'px',
166
+ 'padding-right' => $attr['rightPaddingTablet'] . 'px',
167
+ )
168
+ );
169
+
170
+ if ( 'right' == $attr['align'] ) {
171
+ $t_selectors['.uagb-section__wrap']['margin-right'] = $attr['rightMarginTablet'] . 'px';
172
+ $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
173
+ $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
174
+
175
+ $m_selectors['.uagb-section__wrap']['margin-right'] = $attr['rightMarginMobile'] . 'px';
176
+ $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
177
+ $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
178
+ } elseif ( 'left' == $attr['align'] ) {
179
+ $t_selectors['.uagb-section__wrap']['margin-left'] = $attr['leftMarginTablet'] . 'px';
180
+ $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
181
+ $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
182
+
183
+ $m_selectors['.uagb-section__wrap']['margin-left'] = $attr['leftMarginMobile'] . 'px';
184
+ $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
185
+ $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
186
+ } else {
187
+ $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
188
+ $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
189
+
190
+ $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
191
+ $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
192
+ }
193
+
194
+ // @codingStandardsIgnoreEnd
195
+
196
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-section-' . $id );
197
+
198
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-section-' . $id, 'tablet' );
199
+
200
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-section-' . $id, 'mobile' );
201
+
202
+ return $desktop . $tablet . $mobile;
203
+ }
204
+
205
+ /**
206
+ * Get Columns Block CSS
207
+ *
208
+ * @since 1.8.0
209
+ * @param array $attr The block attributes.
210
+ * @param string $id The selector ID.
211
+ * @return array The Widget List.
212
+ */
213
+ public static function get_columns_css( $attr, $id ) { // @codingStandardsIgnoreStart
214
+
215
+ global $content_width;
216
+
217
+ $defaults = UAGB_Helper::$block_list['uagb/columns']['attributes'];
218
+
219
+ $attr = array_merge( $defaults, $attr );
220
+
221
+ $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
222
+
223
+ $m_selectors = array();
224
+ $t_selectors = array();
225
+
226
+ $style = array(
227
+ 'padding-top' => $attr['topPadding'] . 'px',
228
+ 'padding-bottom' => $attr['bottomPadding'] . 'px',
229
+ 'padding-left' => $attr['leftPadding'] . 'px',
230
+ 'padding-right' => $attr['rightPadding'] . 'px',
231
+ 'margin-top' => $attr['topMargin'] . 'px',
232
+ 'margin-bottom' => $attr['bottomMargin'] . 'px',
233
+ 'border-radius' => $attr['borderRadius'] . "px",
234
+ );
235
+
236
+ if ( "none" != $attr['borderStyle'] ) {
237
+ $style["border-style"] = $attr['borderStyle'];
238
+ $style["border-width"] = $attr['borderWidth'] . "px";
239
+ $style["border-color"] = $attr['borderColor'];
240
+ }
241
+
242
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
243
+
244
+ if ( 'image' === $bg_type ) {
245
+
246
+ $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
247
+ $style['background-position'] = $position;
248
+ $style['background-attachment'] = $attr['backgroundAttachment'];
249
+ $style['background-repeat'] = $attr['backgroundRepeat'];
250
+ $style['background-size'] = $attr['backgroundSize'];
251
+
252
+ }
253
+
254
+ $inner_width = '100%';
255
+
256
+ if ( isset( $attr['contentWidth'] ) ) {
257
+ if ( 'theme' == $attr['contentWidth'] ) {
258
+ $inner_width = $content_width . 'px';
259
+ } else if ( 'custom' == $attr['contentWidth'] ) {
260
+ $inner_width = $attr['width'] . 'px';
261
+ }
262
+ }
263
+
264
+ $selectors = array(
265
+ '.uagb-columns__wrap' => $style,
266
+ ' .uagb-columns__video-wrap' => array(
267
+ 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
268
+ ),
269
+ ' > .uagb-columns__inner-wrap' => array(
270
+ 'max-width' => $inner_width,
271
+ ),
272
+ ' .uagb-column__inner-wrap' => array(
273
+ 'padding' => $attr['columnGap'] . 'px'
274
+ ),
275
+ ' .uagb-columns__shape-top svg' => array(
276
+ 'width' => "calc( " . $attr['topWidth'] . "% + 1.3px )",
277
+ 'height' => $attr['topHeight'] . "px"
278
+ ),
279
+ ' .uagb-columns__shape-top .uagb-columns__shape-fill' => array(
280
+ 'fill' => $attr['topColor'],
281
+ 'opacity' => ( isset( $attr['topDividerOpacity'] ) && '' != $attr['topDividerOpacity'] ) ? ( ( $attr['topDividerOpacity'] ) / 100 ) : ""
282
+ ),
283
+ ' .uagb-columns__shape-bottom svg' => array(
284
+ 'width' => "calc( " . $attr['bottomWidth'] . "% + 1.3px )",
285
+ 'height' => $attr['bottomHeight'] . "px"
286
+ ),
287
+ ' .uagb-columns__shape-bottom .uagb-columns__shape-fill' => array(
288
+ 'fill' => $attr['bottomColor'],
289
+ 'opacity' => ( isset( $attr['bottomDividerOpacity'] ) && '' != $attr['bottomDividerOpacity'] ) ? ( ( $attr['bottomDividerOpacity'] ) / 100 ) : ""
290
+ ),
291
+ );
292
+
293
+ if ( 'video' == $bg_type ) {
294
+ $selectors[' > .uagb-columns__overlay'] = array(
295
+ 'opacity' => 1,
296
+ 'background-color' => $attr['backgroundVideoColor'],
297
+ );
298
+ } else if ( 'image' == $bg_type ) {
299
+ $selectors[' > .uagb-columns__overlay'] = array(
300
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
301
+ 'background-color' => $attr['backgroundImageColor'],
302
+ );
303
+ } else if ( 'color' == $bg_type ) {
304
+ $selectors[' > .uagb-columns__overlay'] = array(
305
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
306
+ 'background-color' => $attr['backgroundColor'],
307
+ );
308
+ } elseif ( 'gradient' === $bg_type ) {
309
+ $selectors[' > .uagb-columns__overlay']['background-color'] = 'transparent';
310
+ $selectors[' > .uagb-columns__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
311
+
312
+ if ( 'linear' === $attr['gradientType'] ) {
313
+
314
+ $selectors[' > .uagb-columns__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
315
+ } else {
316
+
317
+ $selectors[' > .uagb-columns__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
318
+ }
319
+ }
320
+
321
+ $selectors[' > .uagb-columns__overlay']["border-radius"] = $attr['borderRadius'] . "px";
322
+
323
+ $m_selectors = array(
324
+ '.uagb-columns__wrap' => array(
325
+ 'padding-top' => $attr['topPaddingMobile'] . 'px',
326
+ 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
327
+ 'padding-left' => $attr['leftPaddingMobile'] . 'px',
328
+ 'padding-right' => $attr['rightPaddingMobile'] . 'px',
329
+ 'margin-top' => $attr['topMarginMobile'] . 'px',
330
+ 'margin-bottom' => $attr['bottomMarginMobile'] . 'px',
331
+ )
332
+ );
333
+
334
+ $t_selectors = array(
335
+ '.uagb-columns__wrap' => array(
336
+ 'padding-top' => $attr['topPaddingTablet'] . 'px',
337
+ 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
338
+ 'padding-left' => $attr['leftPaddingTablet'] . 'px',
339
+ 'padding-right' => $attr['rightPaddingTablet'] . 'px',
340
+ 'margin-top' => $attr['topMarginTablet'] . 'px',
341
+ 'margin-bottom' => $attr['bottomMarginTablet'] . 'px',
342
+ )
343
+ );
344
+
345
+ // @codingStandardsIgnoreEnd
346
+
347
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-columns-' . $id );
348
+
349
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-columns-' . $id, 'tablet' );
350
+
351
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-columns-' . $id, 'mobile' );
352
+
353
+ return $desktop . $tablet . $mobile;
354
+ }
355
+
356
+ /**
357
+ * Get Single Column Block CSS
358
+ *
359
+ * @since 1.8.0
360
+ * @param array $attr The block attributes.
361
+ * @param string $id The selector ID.
362
+ * @return array The Widget List.
363
+ */
364
+ public static function get_column_css( $attr, $id ) { // @codingStandardsIgnoreStart
365
+
366
+ global $content_width;
367
+
368
+ $defaults = UAGB_Helper::$block_list['uagb/column']['attributes'];
369
+
370
+ $attr = array_merge( $defaults, $attr );
371
+
372
+ $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
373
+
374
+ $style = array(
375
+ 'padding-top' => $attr['topPadding'] . 'px',
376
+ 'padding-bottom' => $attr['bottomPadding'] . 'px',
377
+ 'padding-left' => $attr['leftPadding'] . 'px',
378
+ 'padding-right' => $attr['rightPadding'] . 'px',
379
+ 'margin-top' => $attr['topMargin'] . 'px',
380
+ 'margin-bottom' => $attr['bottomMargin'] . 'px',
381
+ 'margin-left' => $attr['leftMargin'] . 'px',
382
+ 'margin-right' => $attr['rightMargin'] . 'px',
383
+ 'border-radius' => $attr['borderRadius'] . 'px',
384
+ );
385
+
386
+ $m_selectors = array();
387
+ $t_selectors = array();
388
+
389
+ if ( "none" != $attr['borderStyle'] ) {
390
+ $style["border-style"] = $attr['borderStyle'];
391
+ $style["border-width"] = $attr['borderWidth'] . "px";
392
+ $style["border-color"] = $attr['borderColor'];
393
+ }
394
+
395
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
396
+
397
+ if ( 'image' === $bg_type ) {
398
+
399
+ $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
400
+ $style['background-position'] = $position;
401
+ $style['background-attachment'] = $attr['backgroundAttachment'];
402
+ $style['background-repeat'] = $attr['backgroundRepeat'];
403
+ $style['background-size'] = $attr['backgroundSize'];
404
+
405
+ }
406
+
407
+ $selectors = array(
408
+ '.uagb-column__wrap' => $style
409
+ );
410
+
411
+ if ( 'image' == $bg_type ) {
412
+ $selectors[' > .uagb-column__overlay'] = array(
413
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
414
+ 'background-color' => $attr['backgroundImageColor'],
415
+ );
416
+ } else if ( 'color' == $bg_type ) {
417
+ $selectors[' > .uagb-column__overlay'] = array(
418
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
419
+ 'background-color' => $attr['backgroundColor'],
420
+ );
421
+ } elseif ( 'gradient' === $bg_type ) {
422
+ $selectors[' > .uagb-column__overlay']['background-color'] = 'transparent';
423
+ $selectors[' > .uagb-column__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
424
+
425
+ if ( 'linear' === $attr['gradientType'] ) {
426
+
427
+ $selectors[' > .uagb-column__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
428
+ } else {
429
+
430
+ $selectors[' > .uagb-column__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
431
+ }
432
+ }
433
+
434
+ if ( '' != $attr['colWidth'] && 0 != $attr['colWidth'] ) {
435
+
436
+ $selectors[''] = array(
437
+ "width" => $attr['colWidth'] . "%"
438
+ );
439
+ }
440
+
441
+ $m_selectors = array(
442
+ '.uagb-column__wrap' => array(
443
+ 'padding-top' => $attr['topPaddingMobile'] . 'px',
444
+ 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
445
+ 'padding-left' => $attr['leftPaddingMobile'] . 'px',
446
+ 'padding-right' => $attr['rightPaddingMobile'] . 'px',
447
+ 'margin-top' => $attr['topMarginMobile'] . 'px',
448
+ 'margin-bottom' => $attr['bottomMarginMobile'] . 'px',
449
+ 'margin-left' => $attr['leftMarginMobile'] . 'px',
450
+ 'margin-right' => $attr['rightMarginMobile'] . 'px',
451
+ )
452
+ );
453
+
454
+ $t_selectors = array(
455
+ '.uagb-column__wrap' => array(
456
+ 'padding-top' => $attr['topPaddingTablet'] . 'px',
457
+ 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
458
+ 'padding-left' => $attr['leftPaddingTablet'] . 'px',
459
+ 'padding-right' => $attr['rightPaddingTablet'] . 'px',
460
+ 'margin-top' => $attr['topMarginTablet'] . 'px',
461
+ 'margin-bottom' => $attr['bottomMarginTablet'] . 'px',
462
+ 'margin-left' => $attr['leftMarginTablet'] . 'px',
463
+ 'margin-right' => $attr['rightMarginTablet'] . 'px',
464
+ )
465
+ );
466
+
467
+ if ( '' != $attr['colWidthTablet'] && 0 != $attr['colWidthTablet'] ) {
468
+
469
+ $t_selectors[''] = array(
470
+ "width" => $attr['colWidthTablet'] . "%"
471
+ );
472
+ }
473
+
474
+ if ( '' != $attr['colWidthMobile'] && 0 != $attr['colWidthMobile'] ) {
475
+
476
+ $m_selectors[''] = array(
477
+ "width" => $attr['colWidthMobile'] . "%"
478
+ );
479
+ }
480
+
481
+ // @codingStandardsIgnoreEnd
482
+
483
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-column-' . $id );
484
+
485
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-column-' . $id, 'tablet' );
486
+
487
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-column-' . $id, 'mobile' );
488
+
489
+ return $desktop . $tablet . $mobile;
490
+ }
491
+
492
+ /**
493
+ * Get Advanced Heading Block CSS
494
+ *
495
+ * @since 0.0.1
496
+ * @param array $attr The block attributes.
497
+ * @param string $id The selector ID.
498
+ * @return array The Widget List.
499
+ */
500
+ public static function get_adv_heading_css( $attr, $id ) { // @codingStandardsIgnoreStart
501
+
502
+ $defaults = UAGB_Helper::$block_list['uagb/advanced-heading']['attributes'];
503
+
504
+ $attr = array_merge( $defaults, (array) $attr );
505
+
506
+ $m_selectors = array();
507
+ $t_selectors = array();
508
+
509
+ $selectors = array(
510
+ ' .uagb-heading-text' => array(
511
+ 'text-align' => $attr['headingAlign'],
512
+ 'font-family' => $attr['headFontFamily'],
513
+ 'font-weight' => $attr['headFontWeight'],
514
+ 'font-size' => $attr['headFontSize'] . $attr['headFontSizeType'],
515
+ 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
516
+ 'color' => $attr['headingColor'],
517
+ 'margin-bottom' => $attr['headSpace'] . "px",
518
+ ),
519
+ ' .uagb-separator-wrap' => array(
520
+ 'text-align' => $attr['headingAlign'],
521
+ ),
522
+ ' .uagb-desc-text' => array(
523
+ 'text-align' => $attr['headingAlign'],
524
+ 'font-family' => $attr['subHeadFontFamily'],
525
+ 'font-weight' => $attr['subHeadFontWeight'],
526
+ 'font-size' => $attr['subHeadFontSize'] . $attr['subHeadFontSizeType'],
527
+ 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
528
+ 'color' => $attr['subHeadingColor'],
529
+ )
530
+
531
+ );
532
+
533
+ $m_selectors = array(
534
+ ' .uagb-heading-text' => array(
535
+ 'font-size' => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
536
+ 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
537
+ ),
538
+ ' .uagb-desc-text' => array(
539
+ 'font-size' => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
540
+ 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
541
+ )
542
+
543
+ );
544
+
545
+ $t_selectors = array(
546
+ ' .uagb-heading-text' => array(
547
+ 'font-size' => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
548
+ 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
549
+
550
+ ),
551
+ ' .uagb-desc-text' => array(
552
+ 'font-size' => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
553
+ 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
554
+ )
555
+
556
+ );
557
+
558
+ $seperatorStyle = isset( $attr['seperatorStyle'] ) ? $attr['seperatorStyle'] : '';
559
+
560
+ if( 'none' !== $seperatorStyle ){
561
+ $selectors[' .uagb-separator'] = array (
562
+ 'border-top-style' => $attr['seperatorStyle'] ,
563
+ 'border-top-width' => $attr['separatorHeight'] . "px",
564
+ 'width' => $attr['separatorWidth'] . $attr['separatorWidthType'],
565
+ 'border-color' => $attr['separatorColor'],
566
+ 'margin-bottom' => $attr['separatorSpace'] . "px",
567
+ );
568
+
569
+ }
570
+ // @codingStandardsIgnoreEnd
571
+
572
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-adv-heading-' . $id );
573
+
574
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-adv-heading-' . $id, 'tablet' );
575
+
576
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-adv-heading-' . $id, 'mobile' );
577
+
578
+ return $desktop . $tablet . $mobile;
579
+ }
580
+
581
+ /**
582
+ * Get Multi Buttons Block CSS
583
+ *
584
+ * @since 0.0.1
585
+ * @param array $attr The block attributes.
586
+ * @param string $id The selector ID.
587
+ * @return array The Widget List.
588
+ */
589
+ public static function get_buttons_css( $attr, $id ) { // @codingStandardsIgnoreStart
590
+
591
+ $defaults = UAGB_Helper::$block_list['uagb/buttons']['attributes'];
592
+
593
+ $attr = array_merge( $defaults, (array) $attr );
594
+
595
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
596
+
597
+ $m_selectors = array();
598
+ $t_selectors = array();
599
+
600
+ $selectors = array(
601
+ ' .uagb-button__wrapper' => array(
602
+ 'margin-left' => ( $attr['gap']/2 ) . 'px',
603
+ 'margin-right' => ( $attr['gap']/2 ) . 'px'
604
+ ),
605
+ ' .uagb-button__wrapper:first-child' => array (
606
+ 'margin-left' => 0
607
+ ),
608
+ ' .uagb-button__wrapper:last-child' => array (
609
+ 'margin-right' => 0
610
+ ),
611
+ ' .uagb-buttons__wrap' => array (
612
+ 'justify-content' => $alignment,
613
+ '-webkit-box-pack'=> $alignment,
614
+ '-ms-flex-pack' => $alignment,
615
+ 'justify-content' => $alignment,
616
+ '-webkit-box-align' => $alignment,
617
+ '-ms-flex-align' => $alignment,
618
+ 'align-items' => $alignment,
619
+ )
620
+ );
621
+
622
+ foreach ( $attr['buttons'] as $key => $button ) {
623
+
624
+ $button['size'] = ( isset( $button['size'] ) ) ? $button['size'] : '';
625
+ $button['borderWidth'] = ( isset( $button['borderWidth'] ) ) ? $button['borderWidth'] : '';
626
+ $button['borderStyle'] = ( isset( $button['borderStyle'] ) ) ? $button['borderStyle'] : '';
627
+ $button['borderColor'] = ( isset( $button['borderColor'] ) ) ? $button['borderColor'] : '';
628
+ $button['borderRadius'] = ( isset( $button['borderRadius'] ) ) ? $button['borderRadius'] : '';
629
+ $button['background'] = ( isset( $button['background'] ) ) ? $button['background'] : '';
630
+ $button['hBackground'] = ( isset( $button['hBackground'] ) ) ? $button['hBackground'] : '';
631
+ $button['borderHColor'] = ( isset( $button['borderHColor'] ) ) ? $button['borderHColor'] : '';
632
+ $button['vPadding'] = ( isset( $button['vPadding'] ) ) ? $button['vPadding'] : '';
633
+ $button['hPadding'] = ( isset( $button['hPadding'] ) ) ? $button['hPadding'] : '';
634
+ $button['color'] = ( isset( $button['color'] ) ) ? $button['color'] : '';
635
+ $button['hColor'] = ( isset( $button['hColor'] ) ) ? $button['hColor'] : '';
636
+ $button['sizeType'] = ( isset( $button['sizeType'] ) ) ? $button['sizeType'] : 'px';
637
+ $button['sizeMobile'] = ( isset( $button['sizeMobile'] ) ) ? $button['sizeMobile'] : '';
638
+ $button['sizeTablet'] = ( isset( $button['sizeTablet'] ) ) ? $button['sizeTablet'] : '';
639
+ $button['lineHeight'] = ( isset( $button['lineHeight'] ) ) ? $button['lineHeight'] : '';
640
+ $button['lineHeightType'] = ( isset( $button['lineHeightType'] ) ) ? $button['lineHeightType'] : '';
641
+ $button['lineHeightMobile'] = ( isset( $button['lineHeightMobile'] ) ) ? $button['lineHeightMobile'] : '';
642
+ $button['lineHeightTablet'] = ( isset( $button['lineHeightTablet'] ) ) ? $button['lineHeightTablet'] : '';
643
+
644
+
645
+ if ( $attr['btn_count'] <= $key ) {
646
+ break;
647
+ }
648
+
649
+ $selectors[' .uagb-buttons-repeater-' . $key] = array (
650
+ 'font-size' => $button['size'] . $button['sizeType'],
651
+ 'line-height' => $button['lineHeight'] . $button['lineHeightType'],
652
+ 'font-family' => $attr['fontFamily'],
653
+ 'font-weight' => $attr['fontWeight'],
654
+ 'border-width' => $button['borderWidth'] . 'px',
655
+ 'border-color' => $button['borderColor'],
656
+ 'border-style' => $button['borderStyle'],
657
+ 'border-radius' => $button['borderRadius'] . 'px',
658
+ 'background' => $button['background']
659
+ );
660
+
661
+ $selectors[' .uagb-buttons-repeater-' . $key . ':hover'] = array (
662
+ 'background' => $button['hBackground'],
663
+ 'border-width' => $button['borderWidth'] . 'px',
664
+ 'border-color' => $button['borderHColor'],
665
+ 'border-style' => $button['borderStyle'],
666
+ );
667
+
668
+ $selectors[' .uagb-buttons-repeater-' . $key . ' a.uagb-button__link'] = array (
669
+ 'padding' => $button['vPadding'] . 'px ' . $button['hPadding'] . 'px',
670
+ 'color' => $button['color']
671
+ );
672
+
673
+ $selectors[' .uagb-buttons-repeater-' . $key . ':hover a.uagb-button__link'] = array (
674
+ 'color' => $button['hColor']
675
+ );
676
+
677
+ $m_selectors[' .uagb-buttons-repeater-' . $key] = array (
678
+ 'font-size' => $button['sizeMobile'] . $button['sizeType'],
679
+ 'line-height' => $button['lineHeightMobile'] . $button['lineHeightType'],
680
+ );
681
+
682
+ $t_selectors[' .uagb-buttons-repeater-' . $key] = array (
683
+ 'font-size' => $button['sizeTablet'] . $button['sizeType'],
684
+ 'line-height' => $button['lineHeightTablet'] . $button['lineHeightType'],
685
+ );
686
+ }
687
+
688
+ if ( "desktop" == $attr['stack'] ) {
689
+
690
+ $selectors[" .uagb-button__wrapper"] = array (
691
+ 'margin-left' => 0,
692
+ 'margin-right' => 0,
693
+ "margin-bottom" => $attr['gap'] . "px"
694
+ );
695
+
696
+ $selectors[" .uagb-buttons__wrap"] = array (
697
+ "flex-direction" => "column"
698
+ );
699
+
700
+ $selectors[" .uagb-button__wrapper:last-child"] = array (
701
+ "margin-bottom" => 0
702
+ );
703
+
704
+ } else if ( "tablet" == $attr['stack'] ) {
705
+
706
+ $t_selectors[" .uagb-button__wrapper"] = array (
707
+ 'margin-left' => 0,
708
+ 'margin-right' => 0,
709
+ "margin-bottom" => $attr['gap'] . "px"
710
+ );
711
+
712
+ $t_selectors[" .uagb-buttons__wrap"] = array (
713
+ "flex-direction" => "column"
714
+ );
715
+
716
+ $t_selectors[" .uagb-button__wrapper:last-child"] = array (
717
+ "margin-bottom" => 0
718
+ );
719
+
720
+ } else if ( "mobile" == $attr['stack'] ) {
721
+
722
+ $m_selectors[" .uagb-button__wrapper"] = array (
723
+ 'margin-left' => 0,
724
+ 'margin-right' => 0,
725
+ "margin-bottom" => $attr['gap'] . "px"
726
+ );
727
+
728
+ $m_selectors[" .uagb-buttons__wrap"] = array (
729
+ "flex-direction" => "column"
730
+ );
731
+
732
+ $m_selectors[" .uagb-button__wrapper:last-child"] = array (
733
+ "margin-bottom" => 0
734
+ );
735
+ }
736
+
737
+ // @codingStandardsIgnoreEnd
738
+
739
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-buttons-' . $id );
740
+
741
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-buttons-' . $id, 'tablet' );
742
+
743
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-buttons-' . $id, 'mobile' );
744
+
745
+ return $desktop . $tablet . $mobile;
746
+ }
747
+
748
+ /**
749
+ * Get Info Box CSS
750
+ *
751
+ * @since 0.0.1
752
+ * @param array $attr The block attributes.
753
+ * @param string $id The selector ID.
754
+ * @return array The Widget List.
755
+ */
756
+ public static function get_info_box_css( $attr, $id ) { // @codingStandardsIgnoreStart.
757
+ $defaults = UAGB_Helper::$block_list['uagb/info-box']['attributes'];
758
+
759
+ $attr = array_merge( $defaults, (array) $attr );
760
+
761
+ $m_selectors = array();
762
+ $t_selectors = array();
763
+
764
+ $selectors = array(
765
+ ' .uagb-ifb-icon' => array(
766
+ 'height' => $attr['iconSize']. "px",
767
+ 'width' => $attr['iconSize']. "px",
768
+ 'line-height' => $attr['iconSize']. "px",
769
+ ),
770
+ ' .uagb-ifb-icon > span' => array(
771
+ 'font-size' => $attr['iconSize']. "px",
772
+ 'height' => $attr['iconSize']. "px",
773
+ 'width' => $attr['iconSize']. "px",
774
+ 'line-height' => $attr['iconSize']. "px",
775
+ 'color' => $attr['iconColor'],
776
+ ),
777
+ ' .uagb-ifb-icon svg' => array(
778
+ 'fill' => $attr['iconColor'],
779
+ ),
780
+ ' .uagb-ifb-icon:hover > span' => array(
781
+ 'color' => $attr['iconHover'] ,
782
+ ),
783
+ ' .uagb-ifb-icon:hover svg' => array(
784
+ 'fill' => $attr['iconHover'] ,
785
+ ),
786
+ ' .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap' => array(
787
+ 'margin-left' => $attr['iconLeftMargin'].'px',
788
+ 'margin-right' => $attr['iconRightMargin'].'px',
789
+ 'margin-top' => $attr['iconTopMargin'].'px',
790
+ 'margin-bottom' => $attr['iconBottomMargin'].'px',
791
+ ),
792
+ // Image.
793
+ ' .uagb-ifb-image-content > img' => array(
794
+ 'width'=> $attr['imageWidth'].'px',
795
+ 'max-width'=> $attr['imageWidth'].'px',
796
+ ),
797
+ ' .uagb-infobox .uagb-ifb-image-content img' => array(
798
+ 'border-radius' => $attr['iconimgBorderRadius'].'px',
799
+ ),
800
+ // CTA style .
801
+ ' .uagb-infobox-cta-link' => array(
802
+ 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
803
+ 'font-family' => $attr['ctaFontFamily'],
804
+ 'font-weight' => $attr['ctaFontWeight'],
805
+ 'color' => $attr['ctaLinkColor'],
806
+ ),
807
+ ' .uagb-infobox-cta-link:hover' => array(
808
+ 'color' => $attr['ctaLinkHoverColor'],
809
+ ),
810
+ ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
811
+ 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
812
+ 'height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
813
+ 'width' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
814
+ 'line-height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
815
+ ),
816
+ ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
817
+ 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
818
+ 'height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
819
+ 'width' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
820
+ 'line-height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
821
+ ),
822
+ ' .uagb-infobox-cta-link svg' => array(
823
+ 'fill' => $attr['ctaLinkColor'],
824
+ ),
825
+ ' .uagb-infobox-cta-link:hover svg' => array(
826
+ 'fill' => $attr['ctaLinkHoverColor'],
827
+ ),
828
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link' => array(
829
+ 'color' => $attr['ctaBtnLinkColor'],
830
+ 'background-color' => $attr['ctaBgColor'],
831
+ 'border-style' => $attr['ctaBorderStyle'],
832
+ 'border-color' => $attr['ctaBorderColor'],
833
+ 'border-radius' => $attr['ctaBorderRadius'] . "px",
834
+ 'border-width' => $attr['ctaBorderWidth'] . "px",
835
+ 'padding-top' => $attr['ctaBtnVertPadding'] . "px",
836
+ 'padding-bottom' => $attr['ctaBtnVertPadding'] . "px",
837
+ 'padding-left' => $attr['ctaBtnHrPadding'] . "px",
838
+ 'padding-right' => $attr['ctaBtnHrPadding'] . "px",
839
+
840
+ ),
841
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg' => array(
842
+ 'fill' => $attr['ctaBtnLinkColor'],
843
+ ),
844
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover' => array(
845
+ 'color' => $attr['ctaLinkHoverColor'],
846
+ 'background-color' => $attr['ctaBgHoverColor'],
847
+ 'border-color' => $attr['ctaBorderhoverColor'],
848
+ ),
849
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg' => array(
850
+ 'fill' => $attr['ctaLinkHoverColor'],
851
+ ),
852
+ // Prefix Style.
853
+ ' .uagb-ifb-title-prefix' => array(
854
+ 'font-size' => $attr['prefixFontSize'].$attr['prefixFontSizeType'],
855
+ 'font-family' => $attr['prefixFontFamily'],
856
+ 'font-weight' => $attr['prefixFontWeight'],
857
+ 'line-height' => $attr['prefixLineHeight'] . $attr['prefixLineHeightType'],
858
+ 'color' => $attr['prefixColor'],
859
+ 'margin-bottom' => $attr['prefixSpace'].'px',
860
+ ),
861
+ // Title Style.
862
+ ' .uagb-ifb-title' => array(
863
+ 'font-size' => $attr['headFontSize'].$attr['headFontSizeType'],
864
+ 'font-family' => $attr['headFontFamily'],
865
+ 'font-weight' => $attr['headFontWeight'],
866
+ 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
867
+ 'color' => $attr['headingColor'],
868
+ 'margin-bottom' => $attr['headSpace'].'px',
869
+ ),
870
+ // Description Style.
871
+ ' .uagb-ifb-desc' => array(
872
+ 'font-size' => $attr['subHeadFontSize'].$attr['subHeadFontSizeType'],
873
+ 'font-family' => $attr['subHeadFontFamily'],
874
+ 'font-weight' => $attr['subHeadFontWeight'],
875
+ 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
876
+ 'color' => $attr['subHeadingColor'],
877
+ 'margin-bottom' => $attr['subHeadSpace'].'px',
878
+ ),
879
+ // Seperator.
880
+ ' .uagb-ifb-separator' => array(
881
+ 'width' => $attr['seperatorWidth'].$attr['separatorWidthType'],
882
+ 'border-top-width' => $attr['seperatorThickness'].'px',
883
+ 'border-top-color' => $attr['seperatorColor'],
884
+ 'border-top-style' => $attr['seperatorStyle'],
885
+ ),
886
+ ' .uagb-ifb-separator-parent' => array(
887
+ 'margin-bottom' => $attr['seperatorSpace'].'px',
888
+ ),
889
+ // CTA icon space.
890
+ ' .uagb-ifb-align-icon-after' => array(
891
+ 'margin-left' => $attr['ctaIconSpace'].'px',
892
+ ),
893
+ ' .uagb-ifb-align-icon-before' => array(
894
+ 'margin-right' => $attr['ctaIconSpace'].'px',
895
+ ),
896
+ );
897
+
898
+ if( 'above-title' === $attr['iconimgPosition'] || 'below-title' === $attr['iconimgPosition'] ){
899
+ $selectors[' .uagb-infobox__content-wrap'] = array(
900
+ 'text-align' => $attr['headingAlign'],
901
+ );
902
+ }
903
+
904
+ $m_selectors = array(
905
+ ' .uagb-ifb-title-prefix' => array(
906
+ 'font-size' => $attr['prefixFontSizeMobile'].$attr['prefixFontSizeType'],
907
+ 'line-height' => $attr['prefixLineHeightMobile'] . $attr['prefixLineHeightType'],
908
+ ),
909
+ ' .uagb-ifb-title' => array(
910
+ 'font-size' => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
911
+ 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
912
+ ),
913
+ ' .uagb-ifb-desc' => array(
914
+ 'font-size' => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
915
+ 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
916
+ ),
917
+ ' .uagb-infobox-cta-link' => array(
918
+ 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
919
+ ),
920
+ ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
921
+ 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
922
+ 'height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
923
+ 'width' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
924
+ 'line-height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
925
+ ),
926
+ ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
927
+ 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
928
+ 'height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
929
+ 'width' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
930
+ 'line-height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
931
+ ),
932
+ );
933
+
934
+ $t_selectors = array(
935
+ ' .uagb-ifb-title-prefix' => array(
936
+ 'font-size' => $attr['prefixFontSizeTablet'].$attr['prefixFontSizeType'],
937
+ ),
938
+ ' .uagb-ifb-title' => array(
939
+ 'font-size' => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
940
+ ),
941
+ ' .uagb-ifb-desc' => array(
942
+ 'font-size' => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
943
+ ),
944
+ ' .uagb-infobox-cta-link' => array(
945
+ 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
946
+ ),
947
+ ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
948
+ 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
949
+ 'height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
950
+ 'width' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
951
+ 'line-height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
952
+ ),
953
+ ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
954
+ 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
955
+ 'height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
956
+ 'width' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
957
+ 'line-height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
958
+ ),
959
+ );
960
+
961
+ // @codingStandardsIgnoreEnd.
962
+
963
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-infobox-' . $id );
964
+
965
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-infobox-' . $id, 'tablet' );
966
+
967
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-infobox-' . $id, 'mobile' );
968
+
969
+ return $desktop . $tablet . $mobile;
970
+ }
971
+
972
+ /**
973
+ * Get CTA CSS
974
+ *
975
+ * @since 1.7.0
976
+ * @param array $attr The block attributes.
977
+ * @param string $id The selector ID.
978
+ * @return array The Widget List.
979
+ */
980
+ public static function get_call_to_action_css( $attr, $id ) { // @codingStandardsIgnoreStart.
981
+ $defaults = UAGB_Helper::$block_list['uagb/call-to-action']['attributes'];
982
+
983
+ $attr = array_merge( $defaults, (array) $attr );
984
+
985
+ $t_selectors = array();
986
+ $m_selectors = array();
987
+
988
+ $selectors = array(
989
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
990
+ 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
991
+ 'font-family' => $attr['ctaFontFamily'],
992
+ 'font-weight' => $attr['ctaFontWeight'],
993
+ 'color' => $attr['ctaBtnLinkColor'],
994
+ ),
995
+ ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-text ' => array(
996
+ 'color' => $attr['ctaLinkHoverColor'],
997
+ ),
998
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
999
+ 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1000
+ 'font-family' => $attr['ctaFontFamily'],
1001
+ 'font-weight' => $attr['ctaFontWeight'],
1002
+ 'color' => $attr['ctaBtnLinkColor'],
1003
+ 'background-color' => $attr['ctaBgColor'],
1004
+ 'border-style' => $attr['ctaBorderStyle'],
1005
+ 'border-color' => $attr['ctaBorderColor'],
1006
+ 'border-radius' => $attr['ctaBorderRadius']. "px",
1007
+ 'border-width' => $attr['ctaBorderWidth']. "px",
1008
+ 'padding-top' => $attr['ctaBtnVertPadding']. "px",
1009
+ 'padding-bottom' => $attr['ctaBtnVertPadding']. "px",
1010
+ 'padding-left' => $attr['ctaBtnHrPadding']. "px",
1011
+ 'padding-right' => $attr['ctaBtnHrPadding']. "px",
1012
+ ),
1013
+ ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-button' => array(
1014
+ 'color' => $attr['ctaLinkHoverColor'],
1015
+ 'background-color' => $attr['ctaBgHoverColor'],
1016
+ 'border-color' => $attr['ctaBorderhoverColor'],
1017
+ ),
1018
+ ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1019
+ 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1020
+ 'width' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1021
+ 'height' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1022
+ 'line-height' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1023
+ ),
1024
+ ' .uagb-cta__button-wrapper .uagb-cta__block-link svg' => array(
1025
+ 'fill' => $attr['ctaBtnLinkColor'],
1026
+ ),
1027
+ ' .uagb-cta__button-wrapper:hover .uagb-cta__block-link svg' => array(
1028
+ 'fill' => $attr['ctaLinkHoverColor'],
1029
+ ),
1030
+ ' .uagb-cta__title' => array(
1031
+ 'font-size' => $attr['titleFontSize']. $attr['titleFontSizeType'],
1032
+ 'font-family' => $attr['titleFontFamily'],
1033
+ 'font-weight' => $attr['titleFontWeight'],
1034
+ 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
1035
+ 'color' => $attr['titleColor'],
1036
+ 'margin-bottom' => $attr['titleSpace']. "px",
1037
+ ),
1038
+ ' .uagb-cta__desc' => array(
1039
+ 'font-size' => $attr['descFontSize']. $attr['descFontSizeType'],
1040
+ 'font-family' => $attr['descFontFamily'],
1041
+ 'font-weight' => $attr['descFontWeight'],
1042
+ 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
1043
+ 'color' => $attr['descColor'],
1044
+ 'margin-bottom' => $attr['descSpace']. "px",
1045
+ ),
1046
+ ' .uagb-cta__align-button-after' => array(
1047
+ 'margin-left' => $attr['ctaIconSpace']. "px",
1048
+ ),
1049
+ ' .uagb-cta__align-button-before' => array(
1050
+ 'margin-right' => $attr['ctaIconSpace']. "px",
1051
+ ),
1052
+ );
1053
+
1054
+ $selectors[' .uagb-cta__content-wrap'] = array(
1055
+ 'text-align' => $attr['textAlign'],
1056
+ );
1057
+
1058
+ if( 'left' === $attr['textAlign'] && "right" === $attr['ctaPosition'] ){
1059
+ $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1060
+ 'margin-left' => $attr['ctaLeftSpace']. "px",
1061
+ 'margin-right' => '0px',
1062
+ );
1063
+ }
1064
+
1065
+ if( 'right' === $attr['textAlign'] && 'right' === $attr['ctaPosition'] ){
1066
+ $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1067
+ 'margin-right' => $attr['ctaRightSpace']. "px",
1068
+ 'margin-left' => '0px',
1069
+ );
1070
+ }
1071
+
1072
+ if( $attr['ctaPosition'] === "right" && ( $attr['ctaType'] === 'text' || $attr['ctaType'] === 'button' ) ){
1073
+ $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
1074
+ "width" => $attr['contentWidth']."%",
1075
+ );
1076
+
1077
+ $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
1078
+ "width" => (100 - $attr['contentWidth'] )."%",
1079
+ );
1080
+ }
1081
+
1082
+ $t_selectors = array(
1083
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1084
+ 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1085
+ ),
1086
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1087
+ 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1088
+ ),
1089
+ ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1090
+ 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1091
+ 'width' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1092
+ 'height' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1093
+ 'line-height' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1094
+ ),
1095
+ ' .uagb-cta__title' => array(
1096
+ 'font-size' => $attr['titleFontSizeTablet']. $attr['titleFontSizeType'],
1097
+ 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
1098
+ ),
1099
+ ' .uagb-cta__desc' => array(
1100
+ 'font-size' => $attr['descFontSizeTablet']. $attr['descFontSizeType'],
1101
+ 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
1102
+ ),
1103
+ );
1104
+
1105
+ $m_selectors = array(
1106
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1107
+ 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1108
+ ),
1109
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1110
+ 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1111
+ ),
1112
+ ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1113
+ 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1114
+ 'width' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1115
+ 'height' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1116
+ 'line-height' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1117
+ ),
1118
+ ' .uagb-cta__title' => array(
1119
+ 'font-size' => $attr['titleFontSizeMobile']. $attr['titleFontSizeType'],
1120
+ 'line-height' => $attr['titleLineHeightMobile']. $attr['titleLineHeightType'],
1121
+ ),
1122
+ ' .uagb-cta__desc' => array(
1123
+ 'font-size' => $attr['descFontSizeMobile']. $attr['descFontSizeType'],
1124
+ 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
1125
+ ),
1126
+ );
1127
+
1128
+ // @codingStandardsIgnoreEnd.
1129
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cta-block-' . $id );
1130
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-cta-block-' . $id, 'tablet' );
1131
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-cta-block-' . $id, 'mobile' );
1132
+
1133
+ return $desktop . $tablet . $mobile;
1134
+ }
1135
+
1136
+ /**
1137
+ * Get Testimonial CSS
1138
+ *
1139
+ * @since 0.0.1
1140
+ * @param array $attr The block attributes.
1141
+ * @param string $id The selector ID.
1142
+ * @return array The Widget List.
1143
+ */
1144
+ public static function get_testimonial_css( $attr, $id ) { // @codingStandardsIgnoreStart.
1145
+
1146
+ $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
1147
+
1148
+ $attr = array_merge( $defaults, (array) $attr );
1149
+
1150
+ $img_align = 'center';
1151
+ if( 'left' === $attr['headingAlign']){
1152
+ $img_align = 'flex-start';
1153
+ }else if( 'right' === $attr['headingAlign']){
1154
+ $img_align = 'flex-end';
1155
+ }
1156
+
1157
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
1158
+
1159
+ $selectors = array(
1160
+ ' .uagb-testimonial__wrap' => array(
1161
+ 'padding-left' => ( ($attr['columnGap']) /2 ) . 'px',
1162
+ 'padding-right' => ( ($attr['columnGap']) /2 ) . 'px',
1163
+ 'margin-bottom' => $attr['rowGap'] . 'px',
1164
+ ),
1165
+ ' .uagb-testimonial__wrap .uagb-tm__image-content' => array(
1166
+ 'padding-left' => $attr['imgHrPadding'] . 'px',
1167
+ 'padding-right' => $attr['imgHrPadding'] . 'px',
1168
+ 'padding-top' => $attr['imgVrPadding'] . 'px',
1169
+ 'padding-bottom' => $attr['imgVrPadding'] . 'px',
1170
+ ),
1171
+ ' .uagb-tm__image img' => array(
1172
+ 'width' => $attr['imageWidth'] . 'px',
1173
+ 'max-width' => $attr['imageWidth'] . 'px',
1174
+ ),
1175
+ ' .uagb-tm__content' => array(
1176
+ 'text-align' => $attr['headingAlign'],
1177
+ 'padding' => $attr['contentPadding'] . 'px',
1178
+ ),
1179
+ ' .uagb-tm__author-name' => array(
1180
+ 'color' => $attr['authorColor'],
1181
+ 'font-size' => $attr['nameFontSize'] . $attr['nameFontSizeType'],
1182
+ 'font-family' => $attr['nameFontFamily'],
1183
+ 'font-weight' => $attr['nameFontWeight'],
1184
+ 'line-height' => $attr['nameLineHeight'] . $attr['nameLineHeightType'],
1185
+ 'margin-bottom' => $attr['nameSpace'] . 'px',
1186
+ ),
1187
+ ' .uagb-tm__company' => array(
1188
+ 'color' => $attr['companyColor'],
1189
+ 'font-size' => $attr['companyFontSize'] . $attr['companyFontSizeType'],
1190
+ 'font-family' => $attr['companyFontFamily'],
1191
+ 'font-weight' => $attr['companyFontWeight'],
1192
+ 'line-height' => $attr['companyLineHeight'] . $attr['companyLineHeightType'],
1193
+ ),
1194
+ ' .uagb-tm__desc' => array(
1195
+ 'color' => $attr['descColor'],
1196
+ 'font-size' => $attr['descFontSize'] . $attr['descFontSizeType'],
1197
+ 'font-family' => $attr['descFontFamily'],
1198
+ 'font-weight' => $attr['descFontWeight'],
1199
+ 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
1200
+ 'margin-bottom' => $attr['descSpace'] . 'px',
1201
+ ),
1202
+ ' .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content' => array(
1203
+ 'background-color' => $attr['backgroundColor'],
1204
+ ),
1205
+ ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content' => array(
1206
+ 'background-image' => ( isset( $attr['backgroundImage']['url'] ) ) ? 'url("'.$attr['backgroundImage']['url'].'")' : null,
1207
+ 'background-position'=> $position,
1208
+ 'background-repeat'=> $attr['backgroundRepeat'],
1209
+ 'background-size'=> $attr['backgroundSize'],
1210
+ ),
1211
+ ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay' => array(
1212
+ 'background-color' => $attr['backgroundImageColor'],
1213
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? ( ( 100 - $attr['backgroundOpacity'] ) / 100 ) : '0.5',
1214
+ ),
1215
+ ' .uagb-testimonial__wrap .uagb-tm__content' => array(
1216
+ 'border-color' => $attr['borderColor'],
1217
+ 'border-style' => $attr['borderStyle'],
1218
+ 'border-width' => $attr['borderWidth'] . 'px',
1219
+ 'border-radius' => $attr['borderRadius'] . 'px',
1220
+ ),
1221
+ ' ul.slick-dots li button:before' => array(
1222
+ 'color' => $attr['arrowColor'],
1223
+ ),
1224
+ ' ul.slick-dots li.slick-active button:before' => array(
1225
+ 'color' => $attr['arrowColor'],
1226
+ ),
1227
+ ' .uagb-tm__image-position-top .uagb-tm__image-content' => array(
1228
+ 'justify-content' => $img_align,
1229
+ ),
1230
+ );
1231
+
1232
+ if( '1' === $attr['test_item_count'] || $attr['test_item_count'] === $attr['columns'] || 'dots' === $attr['arrowDots'] ){
1233
+ $selectors['.uagb-slick-carousel'] = array(
1234
+ 'padding' => '0px',
1235
+ );
1236
+ }
1237
+
1238
+ $t_selectors = array(
1239
+ ' .uagb-tm__author-name' => array(
1240
+ 'font-size' => $attr['nameFontSizeTablet'] . $attr['nameFontSizeType'],
1241
+ 'line-height' => $attr['nameLineHeightTablet'] . $attr['nameLineHeightType'],
1242
+ ),
1243
+ ' .uagb-tm__company' => array(
1244
+ 'font-size' => $attr['companyFontSizeTablet'] . $attr['companyFontSizeType'],
1245
+ 'line-height' => $attr['companyLineHeightTablet'] . $attr['companyLineHeightType'],
1246
+ ),
1247
+ ' .uagb-tm__desc' => array(
1248
+ 'font-size' => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
1249
+ 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
1250
+ ),
1251
+ );
1252
+
1253
+ $m_selectors = array(
1254
+ ' .uagb-tm__author-name' => array(
1255
+ 'font-size' => $attr['nameFontSizeMobile'] . $attr['nameFontSizeType'],
1256
+ 'line-height' => $attr['nameLineHeightMobile'] . $attr['nameLineHeightType'],
1257
+ ),
1258
+ ' .uagb-tm__company' => array(
1259
+ 'font-size' => $attr['companyFontSizeMobile'] . $attr['companyFontSizeType'],
1260
+ 'line-height' => $attr['companyLineHeightMobile'] . $attr['companyLineHeightType'],
1261
+ ),
1262
+ ' .uagb-tm__desc' => array(
1263
+ 'font-size' => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
1264
+ 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
1265
+ ),
1266
+ ' .uagb-tm__content' => array(
1267
+ 'text-align' => 'center',
1268
+ )
1269
+ );
1270
+
1271
+
1272
+ // @codingStandardsIgnoreEnd.
1273
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-testimonial-' . $id );
1274
+
1275
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-testimonial-' . $id, 'tablet' );
1276
+
1277
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-testimonial-' . $id, 'mobile' );
1278
+
1279
+ return $desktop . $tablet . $mobile;
1280
+ }
1281
+
1282
+ /**
1283
+ * Get Team Block CSS
1284
+ *
1285
+ * @since 0.0.1
1286
+ * @param array $attr The block attributes.
1287
+ * @param string $id The selector ID.
1288
+ * @return array The Widget List.
1289
+ */
1290
+ public static function get_team_css( $attr, $id ) { // @codingStandardsIgnoreStart
1291
+
1292
+ $defaults = UAGB_Helper::$block_list['uagb/team']['attributes'];
1293
+
1294
+ $attr = array_merge( $defaults, (array) $attr );
1295
+
1296
+ $m_selectors = array();
1297
+ $t_selectors = array();
1298
+
1299
+ $selectors = array(
1300
+ " p.uagb-team__desc" => array(
1301
+ "font-family" => $attr['descFontFamily'],
1302
+ "font-weight" => $attr['descFontWeight'],
1303
+ "font-size" => $attr['descFontSize'] . $attr['descFontSizeType'],
1304
+ "line-height" => $attr['descLineHeight'] . $attr['descLineHeightType'],
1305
+ "color" => $attr['descColor'],
1306
+ "margin-bottom" => $attr['descSpace'] . "px",
1307
+ ),
1308
+ " .uagb-team__prefix" => array(
1309
+ "font-family" => $attr['prefixFontFamily'],
1310
+ "font-weight" => $attr['prefixFontWeight'],
1311
+ "font-size" => $attr['prefixFontSize'] . $attr['prefixFontSizeType'],
1312
+ "line-height" => $attr['prefixLineHeight'] . $attr['prefixLineHeightType'],
1313
+ "color" => $attr['prefixColor'],
1314
+ ),
1315
+ " .uagb-team__desc-wrap" => array(
1316
+ "margin-top" => $attr['prefixSpace'] . "px",
1317
+ ),
1318
+ " .uagb-team__social-icon a" => array(
1319
+ "color" => $attr['socialColor'],
1320
+ "font-size" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1321
+ "width" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1322
+ "height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1323
+ "line-height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1324
+ ),
1325
+ " .uagb-team__social-icon svg" => array(
1326
+ "fill" => $attr['socialColor'],
1327
+ "width" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1328
+ "height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1329
+ ),
1330
+ " .uagb-team__social-icon:hover a" => array(
1331
+ "color" => $attr['socialHoverColor'],
1332
+ ),
1333
+ " .uagb-team__social-icon:hover svg" => array(
1334
+ "fill" => $attr['socialHoverColor'],
1335
+ ),
1336
+ ".uagb-team__image-position-left .uagb-team__social-icon" => array(
1337
+ "margin-right" => $attr['socialSpace'] . "px",
1338
+ "margin-left" => "0",
1339
+ ),
1340
+ ".uagb-team__image-position-right .uagb-team__social-icon" => array(
1341
+ "margin-left" => $attr['socialSpace'] . "px",
1342
+ "margin-right" => "0",
1343
+ ),
1344
+ ".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon" => array(
1345
+ "margin-right" => ( $attr['socialSpace'] / 2 ) . "px",
1346
+ "margin-left" => ( $attr['socialSpace'] / 2 ) . "px",
1347
+ ),
1348
+ ".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon" => array(
1349
+ "margin-right" => $attr['socialSpace'] . "px",
1350
+ "margin-left" => "0",
1351
+ ),
1352
+ ".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon" => array(
1353
+ "margin-left" => $attr['socialSpace'] . "px",
1354
+ "margin-right" => "0",
1355
+ ),
1356
+ " .uagb-team__image-wrap" => array(
1357
+ "margin-top" => $attr['imgTopMargin'] . "px",
1358
+ "margin-bottom" => $attr['imgBottomMargin'] . "px",
1359
+ "margin-left" => $attr['imgLeftMargin'] . "px",
1360
+ "margin-right" => $attr['imgRightMargin'] . "px",
1361
+ "width" => $attr['imgWidth'] . "px"
1362
+ ),
1363
+ );
1364
+
1365
+ if( 'above' == $attr['imgPosition'] ) {
1366
+ if ( 'center' == $attr['align'] ) {
1367
+ $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1368
+ $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1369
+ } else if ( 'left' == $attr['align'] ) {
1370
+ $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1371
+ } else if ( 'right' == $attr['align'] ) {
1372
+ $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1373
+ }
1374
+ }
1375
+
1376
+ if ( "above" != $attr['imgPosition'] ) {
1377
+ if ( "middle" == $attr['imgAlign'] ) {
1378
+ $selectors[" .uagb-team__image-wrap"]["align-self"] = "center";
1379
+ }
1380
+ }
1381
+
1382
+ $selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1383
+ "font-family" => $attr['titleFontFamily'],
1384
+ "font-weight" => $attr['titleFontWeight'],
1385
+ "font-size" => $attr['titleFontSize'] . $attr['titleFontSizeType'],
1386
+ "line-height" => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
1387
+ "color" => $attr['titleColor'],
1388
+ "margin-bottom" => $attr['titleSpace'] . "px",
1389
+ );
1390
+
1391
+ $m_selectors = array(
1392
+ " p.uagb-team__desc" => array(
1393
+ "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
1394
+ ),
1395
+ " .uagb-team__prefix" => array(
1396
+ "font-size" => $attr['prefixFontSizeMobile'] . $attr['prefixFontSizeType'],
1397
+ ),
1398
+ " .uagb-team__social-icon a" => array(
1399
+ "font-size" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1400
+ "width" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1401
+ "height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1402
+ "line-height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1403
+ ),
1404
+ " .uagb-team__social-icon svg" => array(
1405
+ "width" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1406
+ "height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1407
+ ),
1408
+ );
1409
+
1410
+ $t_selectors = array(
1411
+ " p.uagb-team__desc" => array(
1412
+ "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
1413
+ ),
1414
+ " .uagb-team__prefix" => array(
1415
+ "font-size" => $attr['prefixFontSizeTablet'] . $attr['prefixFontSizeType'],
1416
+ ),
1417
+ " .uagb-team__social-icon a" => array(
1418
+ "font-size" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1419
+ "width" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1420
+ "height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1421
+ "line-height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1422
+ ),
1423
+ " .uagb-team__social-icon svg" => array(
1424
+ "width" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1425
+ "height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1426
+ ),
1427
+ );
1428
+
1429
+ $m_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1430
+ "font-size" => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
1431
+ );
1432
+
1433
+ $t_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1434
+ "font-size" => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
1435
+ );
1436
+
1437
+ // @codingStandardsIgnoreEnd
1438
+
1439
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-team-' . $id );
1440
+
1441
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-team-' . $id, 'tablet' );
1442
+
1443
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-team-' . $id, 'mobile' );
1444
+
1445
+ return $desktop . $tablet . $mobile;
1446
+ }
1447
+
1448
+ /**
1449
+ * Get Social Share Block CSS
1450
+ *
1451
+ * @since 0.0.1
1452
+ * @param array $attr The block attributes.
1453
+ * @param string $id The selector ID.
1454
+ * @return array The Widget List.
1455
+ */
1456
+ public static function get_social_share_css( $attr, $id ) { // @codingStandardsIgnoreStart
1457
+
1458
+ $defaults = UAGB_Helper::$block_list['uagb/social-share']['attributes'];
1459
+
1460
+ $attr = array_merge( $defaults, (array) $attr );
1461
+
1462
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1463
+
1464
+ $m_selectors = array();
1465
+ $t_selectors = array();
1466
+
1467
+ $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper"] = array(
1468
+ "margin-left" => 0,
1469
+ "margin-right" => 0,
1470
+ "margin-bottom" => $attr['gap'] . "px"
1471
+ );
1472
+
1473
+ $selectors[".uagb-social-share__layout-vertical .uagb-social-share__wrap"] = array(
1474
+ "flex-direction" => "column"
1475
+ );
1476
+
1477
+ $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper:last-child"] = array(
1478
+ "margin-bottom" => 0
1479
+ );
1480
+
1481
+ $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1482
+ "margin-left" => ( $attr['gap']/2 ) . "px",
1483
+ "margin-right" => ( $attr['gap']/2 ) . "px"
1484
+ );
1485
+
1486
+ $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:first-child"] = array(
1487
+ "margin-left" => 0
1488
+ );
1489
+
1490
+ $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:last-child"] = array(
1491
+ "margin-right" => 0
1492
+ );
1493
+
1494
+ $selectors[" .uagb-ss__wrapper"] = array(
1495
+ "border-radius" => $attr['borderRadius'] . "px"
1496
+ );
1497
+
1498
+ $selectors[" .uagb-ss__source-wrap"] = array(
1499
+ "width" => $attr['size'] . $attr['sizeType'],
1500
+ );
1501
+
1502
+ $selectors[" .uagb-ss__source-wrap svg"] = array(
1503
+ "width" => $attr['size'] . $attr['sizeType'],
1504
+ "height" => $attr['size'] . $attr['sizeType'],
1505
+ );
1506
+
1507
+ $selectors[" .uagb-ss__source-image"] = array(
1508
+ "width" => $attr['size'] . $attr['sizeType']
1509
+ );
1510
+
1511
+ $selectors[" .uagb-ss__source-icon"] = array(
1512
+ "width" => $attr['size'] . $attr['sizeType'],
1513
+ "height" => $attr['size'] . $attr['sizeType'],
1514
+ "font-size" => $attr['size'] . $attr['sizeType'],
1515
+ "line-height" => $attr['size'] . $attr['sizeType']
1516
+ );
1517
+
1518
+
1519
+ $t_selectors[" .uagb-ss__source-wrap"] = array(
1520
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1521
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1522
+ "line-height" => $attr['sizeTablet'] . $attr['sizeType']
1523
+ );
1524
+
1525
+ $t_selectors[" .uagb-ss__source-wrap svg"] = array(
1526
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1527
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1528
+ );
1529
+
1530
+ $t_selectors[" .uagb-ss__source-image"] = array(
1531
+ "width" => $attr['sizeTablet'] . $attr['sizeType']
1532
+ );
1533
+
1534
+ $t_selectors[" .uagb-ss__source-icon"] = array(
1535
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1536
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1537
+ "font-size" => $attr['sizeTablet'] . $attr['sizeType'],
1538
+ "line-height" => $attr['sizeTablet'] . $attr['sizeType']
1539
+ );
1540
+ $t_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1541
+ "margin-left" => 0,
1542
+ "margin-right" => 0
1543
+ );
1544
+
1545
+
1546
+ $m_selectors[" .uagb-ss__source-wrap"] = array(
1547
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1548
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1549
+ "line-height" => $attr['sizeMobile'] . $attr['sizeType']
1550
+ );
1551
+
1552
+ $m_selectors[" .uagb-ss__source-wrap svg"] = array(
1553
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1554
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1555
+ );
1556
+
1557
+ $m_selectors[" .uagb-ss__source-image"] = array(
1558
+ "width" => $attr['sizeMobile'] . $attr['sizeType']
1559
+ );
1560
+
1561
+ $m_selectors[" .uagb-ss__source-icon"] = array(
1562
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1563
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1564
+ "font-size" => $attr['sizeMobile'] . $attr['sizeType'],
1565
+ "line-height" => $attr['sizeMobile'] . $attr['sizeType']
1566
+ );
1567
+ $m_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1568
+ "margin-left" => 0,
1569
+ "margin-right" => 0
1570
+ );
1571
+
1572
+
1573
+ foreach ( $attr['socials'] as $key => $social ) {
1574
+
1575
+ $social['icon_color'] = ( isset( $social['icon_color'] ) ) ? $social['icon_color'] : '';
1576
+ $social['icon_hover_color'] = ( isset( $social['icon_hover_color'] ) ) ? $social['icon_hover_color'] : '';
1577
+
1578
+ if ( $attr['social_count'] <= $key ) {
1579
+ break;
1580
+ }
1581
+
1582
+ $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1583
+ "color" => $social['icon_color'],
1584
+ "padding" => $attr['bgSize'] . $attr['bgSizeType']
1585
+ );
1586
+
1587
+ $m_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1588
+ "padding" => $attr['bgSizeMobile'] . $attr['bgSizeType']
1589
+ );
1590
+
1591
+ $t_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1592
+ "padding" => $attr['bgSizeTablet'] . $attr['bgSizeType']
1593
+ );
1594
+
1595
+ $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link svg"] = array (
1596
+ "fill" => $social['icon_color'],
1597
+ );
1598
+
1599
+ $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link"] = array (
1600
+ "color" => $social['icon_hover_color']
1601
+ );
1602
+
1603
+ $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link svg"] = array (
1604
+ "fill" => $social['icon_hover_color']
1605
+ );
1606
+
1607
+ $selectors[" .uagb-ss-repeater-" . $key] = array (
1608
+ "background" => $social['icon_bg_color']
1609
+ );
1610
+
1611
+ $selectors[" .uagb-ss-repeater-" . $key . ":hover"] = array (
1612
+ "background" => $social['icon_bg_hover_color']
1613
+ );
1614
+ }
1615
+
1616
+ $selectors[" .uagb-social-share__wrap"] = array(
1617
+ "justify-content" => $alignment,
1618
+ "-webkit-box-pack" => $alignment,
1619
+ "-ms-flex-pack" => $alignment,
1620
+ "justify-content" => $alignment,
1621
+ "-webkit-box-align" => $alignment,
1622
+ "-ms-flex-align" => $alignment,
1623
+ "align-items" => $alignment,
1624
+ );
1625
+
1626
+ if ( 'horizontal' == $attr['social_layout'] ) {
1627
+
1628
+ if ( "desktop" == $attr['stack'] ) {
1629
+
1630
+ $selectors[" .uagb-ss__wrapper"] = array (
1631
+ "margin-left" => 0,
1632
+ "margin-right" => 0,
1633
+ "margin-bottom" => $attr['gap'] . "px"
1634
+ );
1635
+
1636
+ $selectors[" .uagb-social-share__wrap"] = array (
1637
+ "flex-direction" => "column"
1638
+ );
1639
+
1640
+ $selectors[" .uagb-ss__wrapper:last-child"] = array (
1641
+ "margin-bottom" => 0
1642
+ );
1643
+
1644
+ } else if ( "tablet" == $attr['stack'] ) {
1645
+
1646
+ $t_selectors[" .uagb-ss__wrapper"] = array (
1647
+ "margin-left" => 0,
1648
+ "margin-right" => 0,
1649
+ "margin-bottom" => $attr['gap'] . "px"
1650
+ );
1651
+
1652
+ $t_selectors[" .uagb-social-share__wrap"] = array (
1653
+ "flex-direction" => "column"
1654
+ );
1655
+
1656
+ $t_selectors[" .uagb-ss__wrapper:last-child"] = array (
1657
+ "margin-bottom" => 0
1658
+ );
1659
+
1660
+ } else if ( "mobile" == $attr['stack'] ) {
1661
+
1662
+ $m_selectors[" .uagb-ss__wrapper"] = array (
1663
+ "margin-left" => 0,
1664
+ "margin-right" => 0,
1665
+ "margin-bottom" => $attr['gap'] . "px"
1666
+ );
1667
+
1668
+ $m_selectors[" .uagb-social-share__wrap"] = array (
1669
+ "flex-direction" => "column"
1670
+ );
1671
+
1672
+ $m_selectors[" .uagb-ss__wrapper:last-child"] = array (
1673
+ "margin-bottom" => 0
1674
+ );
1675
+ }
1676
+ }
1677
+
1678
+ // @codingStandardsIgnoreEnd
1679
+
1680
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-social-share-' . $id );
1681
+
1682
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-social-share-' . $id, 'tablet' );
1683
+
1684
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-social-share-' . $id, 'mobile' );
1685
+
1686
+ return $desktop . $tablet . $mobile;
1687
+ }
1688
+
1689
+ /**
1690
+ * Get Icon List Block CSS
1691
+ *
1692
+ * @since 0.0.1
1693
+ * @param array $attr The block attributes.
1694
+ * @param string $id The selector ID.
1695
+ * @return array The Widget List.
1696
+ */
1697
+ public static function get_icon_list_css( $attr, $id ) { // @codingStandardsIgnoreStart
1698
+
1699
+ $defaults = UAGB_Helper::$block_list['uagb/icon-list']['attributes'];
1700
+
1701
+ $attr = array_merge( $defaults, (array) $attr );
1702
+
1703
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1704
+
1705
+ $m_selectors = array();
1706
+ $t_selectors = array();
1707
+
1708
+ $selectors = array(
1709
+ ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper" => array(
1710
+ "margin-left" => 0,
1711
+ "margin-right" => 0,
1712
+ "margin-bottom" => $attr['gap'] . "px"
1713
+ ),
1714
+ ".uagb-icon-list__layout-vertical .uagb-icon-list__wrap" => array(
1715
+ "flex-direction" => "column"
1716
+ ),
1717
+ ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper:last-child" => array(
1718
+ "margin-bottom" => 0
1719
+ ),
1720
+ ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper" => array(
1721
+ "margin-left" => ( $attr['gap']/2 ) . "px",
1722
+ "margin-right" => ( $attr['gap']/2 ) . "px"
1723
+ ),
1724
+ ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:first-child" => array(
1725
+ "margin-left" => 0
1726
+ ),
1727
+ ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:last-child" => array(
1728
+ "margin-right" => 0
1729
+ ),
1730
+ // Desktop Icon Size CSS starts.
1731
+ " .uagb-icon-list__source-image" => array(
1732
+ "width" => $attr['size'] . $attr['sizeType']
1733
+ ),
1734
+ " .uagb-icon-list__source-icon" => array(
1735
+ "width" => $attr['size'] . $attr['sizeType'],
1736
+ "height" => $attr['size'] . $attr['sizeType'],
1737
+ "font-size" => $attr['size'] . $attr['sizeType']
1738
+ ),
1739
+ " .uagb-icon-list__source-icon svg" => array(
1740
+ "width" => $attr['size'] . $attr['sizeType'],
1741
+ "height" => $attr['size'] . $attr['sizeType'],
1742
+ ),
1743
+ " .uagb-icon-list__source-icon:before"=> array(
1744
+ "width" => $attr['size'] . $attr['sizeType'],
1745
+ "height" => $attr['size'] . $attr['sizeType'],
1746
+ "font-size" => $attr['size'] . $attr['sizeType']
1747
+ ),
1748
+ " .uagb-icon-list__label-wrap"=> array(
1749
+ "text-align" => $attr['align']
1750
+ ),
1751
+
1752
+ " .uagb-icon-list__source-wrap"=> array(
1753
+ "padding" => $attr['bgSize'] . "px",
1754
+ "border-radius" => $attr['borderRadius'] . "px"
1755
+ ),
1756
+ " .uagb-icon-list__wrap"=> array(
1757
+ "justify-content" => $alignment,
1758
+ "-webkit-box-pack" => $alignment,
1759
+ "-ms-flex-pack" => $alignment,
1760
+ "justify-content" => $alignment,
1761
+ "-webkit-box-align" => $alignment,
1762
+ "-ms-flex-align" => $alignment,
1763
+ "align-items" => $alignment,
1764
+ )
1765
+ );
1766
+
1767
+ if ( 'right' == $attr['align'] ) {
1768
+ $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1769
+ "margin-left" => $attr['inner_gap'] . "px"
1770
+ );
1771
+ $selectors[" .uagb-icon-list__content-wrap"] = array(
1772
+ "flex-direction" => "row-reverse"
1773
+ );
1774
+ } else {
1775
+ $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1776
+ "margin-right" => $attr['inner_gap'] . "px"
1777
+ );
1778
+ }
1779
+ // Desktop Icon Size CSS ends.
1780
+
1781
+ // Mobile Icon Size CSS starts.
1782
+ $m_selectors = array(
1783
+ " .uagb-icon-list__source-image" => array(
1784
+ "width" => $attr['sizeMobile'] . $attr['sizeType']
1785
+ ),
1786
+ " .uagb-icon-list__source-icon" => array(
1787
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1788
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1789
+ "font-size" => $attr['sizeMobile'] . $attr['sizeType']
1790
+ ),
1791
+ " .uagb-icon-list__source-icon svg" => array(
1792
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1793
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1794
+ ),
1795
+ " .uagb-icon-list__source-icon:before" => array(
1796
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1797
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1798
+ "font-size" => $attr['sizeMobile'] . $attr['sizeType']
1799
+ ),
1800
+ );
1801
+ // Mobile Icon Size CSS ends.
1802
+
1803
+ // Tablet Icon Size CSS starts.
1804
+ $t_selectors = array(
1805
+ " .uagb-icon-list__source-image" => array(
1806
+ "width" => $attr['sizeTablet'] . $attr['sizeType']
1807
+ ),
1808
+ " .uagb-icon-list__source-icon" => array(
1809
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1810
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1811
+ "font-size" => $attr['sizeTablet'] . $attr['sizeType']
1812
+ ),
1813
+ " .uagb-icon-list__source-icon svg" => array(
1814
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1815
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1816
+ ),
1817
+ " .uagb-icon-list__source-icon:before" => array(
1818
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1819
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1820
+ "font-size" => $attr['sizeTablet'] . $attr['sizeType']
1821
+ ),
1822
+ );
1823
+ // Tablet Icon Size CSS ends.
1824
+
1825
+ foreach ( $attr['icons'] as $key => $icon ) {
1826
+
1827
+ $icon['icon_color'] = ( isset( $icon['icon_color'] ) ) ? $icon['icon_color'] : '';
1828
+ $icon['icon_hover_color'] = ( isset( $icon['icon_hover_color'] ) ) ? $icon['icon_hover_color'] : '';
1829
+ $icon['icon_bg_color'] = ( isset( $icon['icon_bg_color'] ) ) ? $icon['icon_bg_color'] : '';
1830
+ $icon['icon_bg_hover_color'] = ( isset( $icon['icon_bg_hover_color'] ) ) ? $icon['icon_bg_hover_color'] : '';
1831
+ $icon['label_color'] = ( isset( $icon['label_color'] ) ) ? $icon['label_color'] : '';
1832
+ $icon['label_hover_color'] = ( isset( $icon['label_hover_color'] ) ) ? $icon['label_hover_color'] : '';
1833
+
1834
+ if ( $attr['icon_count'] <= $key ) {
1835
+ break;
1836
+ }
1837
+
1838
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon"] = array (
1839
+ "color" => $icon['icon_color']
1840
+ );
1841
+
1842
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon svg"] = array (
1843
+ "fill" => $icon['icon_color']
1844
+ );
1845
+
1846
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon"] = array (
1847
+ "color" => $icon['icon_hover_color']
1848
+ );
1849
+
1850
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon svg"] = array (
1851
+ "fill" => $icon['icon_hover_color']
1852
+ );
1853
+
1854
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1855
+ "color" => $icon['label_color'],
1856
+ "font-size" => $attr['fontSize'] . $attr['fontSizeType'],
1857
+ 'font-family' => $attr['fontFamily'],
1858
+ 'font-weight' => $attr['fontWeight'],
1859
+ 'line-height' => $attr['lineHeight'] . $attr['lineHeightType'],
1860
+ );
1861
+
1862
+ $m_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1863
+ "font-size" => $attr['fontSizeMobile'] . $attr['fontSizeType'],
1864
+ 'line-height' => $attr['lineHeightMobile'] . $attr['lineHeightType'],
1865
+ );
1866
+
1867
+ $t_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1868
+ "font-size" => $attr['fontSizeTablet'] . $attr['fontSizeType'],
1869
+ 'line-height' => $attr['lineHeightTablet'] . $attr['lineHeightType'],
1870
+ );
1871
+
1872
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__label"] = array (
1873
+ "color" => $icon['label_hover_color']
1874
+ );
1875
+
1876
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-wrap"] = array(
1877
+ "background" => $icon['icon_bg_color']
1878
+ );
1879
+
1880
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-wrap"] = array(
1881
+ "background" => $icon['icon_bg_hover_color']
1882
+ );
1883
+ }
1884
+
1885
+ if ( 'horizontal' == $attr['icon_layout'] ) {
1886
+
1887
+ if ( "tablet" == $attr['stack'] ) {
1888
+
1889
+ $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
1890
+ "margin-left" => 0,
1891
+ "margin-right" => 0,
1892
+ "margin-bottom" => $attr['gap'] . "px"
1893
+ );
1894
+
1895
+ $t_selectors[" .uagb-icon-list__wrap"] = array (
1896
+ "flex-direction" => "column"
1897
+ );
1898
+
1899
+ $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
1900
+ "margin-bottom" => 0
1901
+ );
1902
+
1903
+ } else if ( "mobile" == $attr['stack'] ) {
1904
+
1905
+ $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
1906
+ "margin-left" => 0,
1907
+ "margin-right" => 0,
1908
+ "margin-bottom" => $attr['gap'] . "px"
1909
+ );
1910
+
1911
+ $m_selectors[" .uagb-icon-list__wrap"] = array (
1912
+ "flex-direction" => "column"
1913
+ );
1914
+
1915
+ $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
1916
+ "margin-bottom" => 0
1917
+ );
1918
+ }
1919
+ }
1920
+
1921
+ // @codingStandardsIgnoreEnd
1922
+
1923
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-icon-list-' . $id );
1924
+
1925
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-icon-list-' . $id, 'tablet' );
1926
+
1927
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-icon-list-' . $id, 'mobile' );
1928
+
1929
+ return $desktop . $tablet . $mobile;
1930
+ }
1931
+
1932
+ /**
1933
+ * Get Content Timeline Block CSS
1934
+ *
1935
+ * @since 0.0.1
1936
+ * @param array $attr The block attributes.
1937
+ * @param string $id The selector ID.
1938
+ * @return array The Widget List.
1939
+ */
1940
+ public static function get_content_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
1941
+
1942
+ $defaults = UAGB_Helper::$block_list['uagb/content-timeline']['attributes'];
1943
+
1944
+ $attr = array_merge( $defaults, (array) $attr );
1945
+
1946
+ $selectors = array();
1947
+ $t_selectors = array();
1948
+ $m_selectors = array();
1949
+
1950
+ $selectors = array(
1951
+ " .uagb-timeline__heading" => array(
1952
+ "text-align" => $attr['align'],
1953
+ "color" => $attr['headingColor'],
1954
+ "font-size" => $attr['headFontSize'] . $attr['headFontSizeType'],
1955
+ 'font-family' => $attr['headFontFamily'],
1956
+ 'font-weight' => $attr['headFontWeight'],
1957
+ 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
1958
+ ),
1959
+ " .uagb-timeline__heading-text" => array(
1960
+ "margin-bottom" => $attr['headSpace'] . "px"
1961
+ ),
1962
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
1963
+ 'color'=> $attr['iconFocus'],
1964
+ ),
1965
+ );
1966
+
1967
+ $desktop_selectors = self::get_timeline_selectors( $attr );
1968
+ $selectors = array_merge( $selectors, $desktop_selectors );
1969
+
1970
+ $t_selectors = array(
1971
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
1972
+ "font-size" => $attr['dateFontsizeTablet'] . $attr['dateFontsizeType'],
1973
+ 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
1974
+ ),
1975
+ " .uagb-timeline__date-new" => array(
1976
+ "font-size" => $attr['dateFontsizeTablet'] . $attr['dateFontsizeType'],
1977
+ 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
1978
+ ),
1979
+ " .uagb-timeline__heading" => array(
1980
+ "font-size" => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
1981
+ 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
1982
+ ),
1983
+ " .uagb-timeline-desc-content" => array(
1984
+ "font-size" => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
1985
+ 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
1986
+ ),
1987
+ );
1988
+
1989
+ $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
1990
+ $t_selectors = array_merge( $t_selectors, $tablet_selectors );
1991
+
1992
+ $m_selectors = array(
1993
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
1994
+ "font-size" => $attr['dateFontsizeMobile'] . $attr['dateFontsizeType'],
1995
+ 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
1996
+ ),
1997
+ " .uagb-timeline__date-new" => array(
1998
+ "font-size" => $attr['dateFontsizeMobile'] . $attr['dateFontsizeType'],
1999
+ 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
2000
+ ),
2001
+ " .uagb-timeline__heading" => array(
2002
+ "font-size" => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
2003
+ 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
2004
+ ),
2005
+ " .uagb-timeline-desc-content" => array(
2006
+ "font-size" => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
2007
+ 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
2008
+ ),
2009
+ );
2010
+
2011
+ $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2012
+
2013
+ $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2014
+
2015
+ // @codingStandardsIgnoreEnd
2016
+
2017
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2018
+
2019
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-ctm-' . $id, 'tablet' );
2020
+
2021
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-ctm-' . $id, 'mobile' );
2022
+
2023
+ return $desktop . $tablet . $mobile;
2024
+ }
2025
+
2026
+ /**
2027
+ * Get Content Timeline Block CSS
2028
+ *
2029
+ * @since 0.0.1
2030
+ * @param array $attr The block attributes.
2031
+ * @param string $id The selector ID.
2032
+ * @return array The Widget List.
2033
+ */
2034
+ public static function get_post_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
2035
+
2036
+ $defaults = UAGB_Helper::$block_list['uagb/post-timeline']['attributes'];
2037
+
2038
+ $attr = array_merge( $defaults, (array) $attr );
2039
+ $t_selectors = array();
2040
+
2041
+ $selectors = array(
2042
+ " .uagb-timeline__heading" => array(
2043
+ "text-align" => $attr['align'],
2044
+ ),
2045
+ " .uagb-timeline__author" => array(
2046
+ "text-align" => $attr['align'],
2047
+ "margin-bottom" => $attr['authorSpace'] . "px"
2048
+ ),
2049
+ " .uagb-timeline__link_parent" => array(
2050
+ "text-align" => $attr['align'],
2051
+ ),
2052
+ " .uagb-timeline__image a" => array(
2053
+ "text-align" => $attr['align'],
2054
+ ),
2055
+ " .uagb-timeline__author-link" => array(
2056
+ "color" => $attr['authorColor'],
2057
+ "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2058
+ 'font-family' => $attr['authorFontFamily'],
2059
+ 'font-weight' => $attr['authorFontWeight'],
2060
+ 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2061
+ ),
2062
+ " .dashicons-admin-users" => array(
2063
+ "color" => $attr['authorColor'],
2064
+ "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2065
+ 'font-weight' => $attr['authorFontWeight'],
2066
+ 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2067
+ ),
2068
+ " .uagb-timeline__link" => array(
2069
+ "color" => $attr['ctaColor'],
2070
+ "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2071
+ 'font-family' => $attr['ctaFontFamily'],
2072
+ 'font-weight' => $attr['ctaFontWeight'],
2073
+ 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2074
+ "background-color" => $attr['ctaBackground'],
2075
+ ),
2076
+ " .uagb-timeline__heading a" => array(
2077
+ "text-align" => $attr['align'],
2078
+ "color" => $attr['headingColor'],
2079
+ "font-size" => $attr['headFontSize'] . $attr['headFontSizeType'],
2080
+ 'font-family' => $attr['headFontFamily'],
2081
+ 'font-weight' => $attr['headFontWeight'],
2082
+ 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
2083
+ ),
2084
+ " .uagb-timeline__heading-text" => array(
2085
+ "margin-bottom" => $attr['headSpace'] . "px"
2086
+ ),
2087
+ " .uagb_timeline__cta-enable .uagb-timeline-desc-content" => array(
2088
+ "margin-bottom" => $attr['contentSpace'] . "px",
2089
+ ),
2090
+ ' .uagb-content' => array(
2091
+ 'padding'=> $attr['contentPadding'].'px',
2092
+ ),
2093
+ );
2094
+
2095
+
2096
+
2097
+ $desktop_selectors = self::get_timeline_selectors( $attr );
2098
+ $selectors = array_merge( $selectors, $desktop_selectors );
2099
+
2100
+ $t_selectors = array(
2101
+ " .uagb-timeline__author-link" => array(
2102
+ "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2103
+ 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2104
+ ),
2105
+ " .dashicons-admin-users" => array(
2106
+ "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2107
+ 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2108
+ ),
2109
+ " .uagb-timeline__link" => array(
2110
+ "font-size" => $attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2111
+ 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2112
+ ),
2113
+ " .uagb-timeline__heading a" => array(
2114
+ "font-size" => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
2115
+ 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
2116
+ ),
2117
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2118
+ "text-align" => 'left',
2119
+ ),
2120
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2121
+ "text-align" => 'left',
2122
+ ),
2123
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a" => array(
2124
+ 'text-align' => 'left',
2125
+ ),
2126
+ );
2127
+
2128
+ $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
2129
+ $t_selectors = array_merge( $t_selectors, $tablet_selectors );
2130
+
2131
+ // Mobile responsive CSS.
2132
+ $m_selectors = array(
2133
+ " .uagb-timeline__author-link" => array(
2134
+ "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2135
+ 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2136
+ ),
2137
+ " .dashicons-admin-users" => array(
2138
+ "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2139
+ 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2140
+ ),
2141
+ " .uagb-timeline__link" => array(
2142
+ "font-size" => $attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2143
+ 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2144
+ ),
2145
+ " .uagb-timeline__heading a" => array(
2146
+ "font-size" => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
2147
+ 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
2148
+ ),
2149
+ " .uagb-timeline__heading" => array(
2150
+ "text-align" => $attr['align'],
2151
+ ),
2152
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2153
+ "text-align" => 'left',
2154
+ ),
2155
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2156
+ "text-align" => 'left',
2157
+ ),
2158
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a" => array(
2159
+ 'text-align' => 'left',
2160
+ ),
2161
+ );
2162
+
2163
+ $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2164
+ $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2165
+
2166
+ // @codingStandardsIgnoreEnd
2167
+
2168
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2169
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-ctm-' . $id, 'tablet' );
2170
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-ctm-' . $id, 'mobile' );
2171
+
2172
+ return $desktop . $tablet . $mobile;
2173
+ }
2174
+
2175
+ /**
2176
+ * Get Restaurant Menu Block CSS
2177
+ *
2178
+ * @since 1.0.2
2179
+ * @param array $attr The block attributes.
2180
+ * @param string $id The selector ID.
2181
+ * @return array The Widget List.
2182
+ */
2183
+ public static function get_restaurant_menu_css( $attr, $id ) { // @codingStandardsIgnoreStart
2184
+
2185
+ $defaults = UAGB_Helper::$block_list['uagb/restaurant-menu']['attributes'];
2186
+
2187
+ $attr = array_merge( $defaults, (array) $attr );
2188
+
2189
+ $m_selectors = array();
2190
+ $t_selectors = array();
2191
+
2192
+ $align = $attr['headingAlign'];
2193
+ if( 'left' === $align ){
2194
+ $align = 'flex-start';
2195
+ }else if( 'right' === $align ){
2196
+ $align = 'flex-end';
2197
+ }
2198
+
2199
+ $selectors = array(
2200
+ " .uagb-rest_menu__wrap" => array(
2201
+ 'padding-left' => ($attr['columnGap']/2) . "px",
2202
+ 'padding-right' => ($attr['columnGap']/2). "px",
2203
+ 'margin-bottom' => $attr['rowGap'] . "px"
2204
+ ),
2205
+ " .uagb-rest_menu__wrap .uagb-rm__image-content" => array(
2206
+ 'padding-left' => $attr['imgHrPadding'] .'px',
2207
+ 'padding-right' => $attr['imgHrPadding'] .'px',
2208
+ 'padding-top' => $attr['imgVrPadding'] .'px',
2209
+ 'padding-bottom' => $attr['imgVrPadding'] .'px',
2210
+ ),
2211
+ " .uagb-rm__image img" => array(
2212
+ 'width'=> $attr['imageWidth'] .'px',
2213
+ 'max-width'=> $attr['imageWidth'] .'px',
2214
+ ),
2215
+ " .uagb-rm__separator-parent" => array(
2216
+ 'justify-content' => $align,
2217
+ ),
2218
+ " .uagb-rm__content" => array(
2219
+ 'text-align' => $attr['headingAlign'] ,
2220
+ 'padding-left' => $attr['contentHrPadding'] . 'px',
2221
+ 'padding-right' => $attr['contentHrPadding'] . 'px',
2222
+ 'padding-top' => $attr['contentVrPadding'] . 'px',
2223
+ 'padding-bottom' => $attr['contentVrPadding'] . 'px',
2224
+ ),
2225
+ " .uagb-rm__title" => array(
2226
+ 'font-size' => $attr['titleFontSize'] .$attr['titleFontSizeType'],
2227
+ 'color' => $attr['titleColor'] ,
2228
+ 'margin-bottom' => $attr['titleSpace'] .'px',
2229
+ 'font-family' => $attr['titleFontFamily'],
2230
+ 'font-weight' => $attr['titleFontWeight'],
2231
+ 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2232
+ ),
2233
+ " .uagb-rm__price" => array(
2234
+ 'font-size' => $attr['priceFontSize'].$attr['priceFontSizeType'],
2235
+ 'font-family' => $attr['priceFontFamily'],
2236
+ 'font-weight' => $attr['priceFontWeight'],
2237
+ 'line-height' => $attr['priceLineHeight'] . $attr['priceLineHeightType'],
2238
+ 'color' => $attr['priceColor'],
2239
+ ),
2240
+ " .uagb-rm__desc" => array(
2241
+ 'font-size' => $attr['descFontSize'].$attr['descFontSizeType'],
2242
+ 'font-family' => $attr['descFontFamily'],
2243
+ 'font-weight' => $attr['descFontWeight'],
2244
+ 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
2245
+ 'color'=> $attr['descColor'],
2246
+ 'margin-bottom'=> $attr['descSpace'].'px',
2247
+ ),
2248
+ );
2249
+
2250
+ if ( $attr["seperatorStyle"] != "none" ) {
2251
+ $selectors[" .uagb-rest_menu__wrap .uagb-rm__separator"] = array(
2252
+ 'border-top-color'=> $attr['seperatorColor'],
2253
+ 'border-top-style'=> $attr['seperatorStyle'],
2254
+ 'border-top-width'=> $attr['seperatorThickness'] . "px",
2255
+ 'width'=> $attr['seperatorWidth'] . "%",
2256
+ );
2257
+ }
2258
+
2259
+ $selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)'] = array(
2260
+ 'margin-left'=> 0,
2261
+ 'clear'=> 'left',
2262
+ );
2263
+
2264
+ $t_selectors = array(
2265
+ ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2266
+ 'margin-left'=> 'unset',
2267
+ 'clear'=> 'unset',
2268
+ ),
2269
+ ' .uagb-rest_menu__wrap.uagb-rm__tablet-column-'.$attr['tcolumns'].':nth-child('.$attr['tcolumns'].'n+1)' => array(
2270
+ 'margin-left'=> '0%',
2271
+ 'clear'=> 'left',
2272
+ ),
2273
+ " .uagb-rm__title" => array(
2274
+ "font-size" => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2275
+ 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2276
+ ),
2277
+ " .uagb-rm__desc" => array(
2278
+ "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
2279
+ 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
2280
+ ),
2281
+ " .uagb-rm__price" => array(
2282
+ "font-size" => $attr['priceFontSizeTablet'] . $attr['priceFontSizeType'],
2283
+ 'line-height' => $attr['priceLineHeightTablet'] . $attr['priceLineHeightType'],
2284
+ )
2285
+ );
2286
+
2287
+ $m_selectors = array(
2288
+ ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2289
+ 'margin-left'=> 'unset',
2290
+ 'clear'=> 'unset',
2291
+ ),
2292
+ ' .uagb-rest_menu__wrap.uagb-rm__mobile-column-'.$attr['mcolumns'].':nth-child('.$attr['mcolumns'].'n+1)' => array(
2293
+ 'margin-left'=> '0%',
2294
+ 'clear'=> 'left',
2295
+ ),
2296
+ " .uagb-rm__title" => array(
2297
+ "font-size" => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2298
+ 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2299
+ ),
2300
+ " .uagb-rm__desc" => array(
2301
+ "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
2302
+ 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
2303
+ ),
2304
+ " .uagb-rm__price" => array(
2305
+ "font-size" => $attr['priceFontSizeMobile'] . $attr['priceFontSizeType'],
2306
+ 'line-height' => $attr['priceLineHeightMobile'] . $attr['priceLineHeightType'],
2307
+ )
2308
+ );
2309
+
2310
+ // @codingStandardsIgnoreEnd
2311
+
2312
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-rm-' . $id );
2313
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-rm-' . $id, 'tablet' );
2314
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-rm-' . $id, 'mobile' );
2315
+
2316
+ return $desktop . $tablet . $mobile;
2317
+ }
2318
+
2319
+ /**
2320
+ * Get Post Grid Block CSS
2321
+ *
2322
+ * @since 1.4.0
2323
+ * @param array $attr The block attributes.
2324
+ * @param string $id The selector ID.
2325
+ * @return array The Widget List.
2326
+ */
2327
+ public static function get_post_grid_css( $attr, $id ) { // @codingStandardsIgnoreStart
2328
+
2329
+ $defaults = UAGB_Helper::$block_list['uagb/post-grid']['attributes'];
2330
+
2331
+ $attr = array_merge( $defaults, (array) $attr );
2332
+
2333
+ $selectors = self::get_post_selectors( $attr );
2334
+
2335
+ $m_selectors = self::get_post_mobile_selectors( $attr );
2336
+
2337
+ $t_selectors = self::get_post_tablet_selectors( $attr );
2338
+
2339
+ // @codingStandardsIgnoreEnd
2340
+
2341
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__grid-' . $id );
2342
+
2343
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__grid-' . $id, 'tablet' );
2344
+
2345
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__grid-' . $id, 'mobile' );
2346
+
2347
+ return $desktop . $tablet . $mobile;
2348
+ }
2349
+
2350
+ /**
2351
+ * Get Post Carousel Block CSS
2352
+ *
2353
+ * @since 1.4.0
2354
+ * @param array $attr The block attributes.
2355
+ * @param string $id The selector ID.
2356
+ * @return array The Widget List.
2357
+ */
2358
+ public static function get_post_carousel_css( $attr, $id ) { // @codingStandardsIgnoreStart
2359
+
2360
+ $defaults = UAGB_Helper::$block_list['uagb/post-carousel']['attributes'];
2361
+
2362
+ $attr = array_merge( $defaults, (array) $attr );
2363
+
2364
+ $selectors = self::get_post_selectors( $attr );
2365
+
2366
+ $m_selectors = self::get_post_mobile_selectors( $attr );
2367
+
2368
+ $t_selectors = self::get_post_tablet_selectors( $attr );
2369
+
2370
+ $selectors[" .slick-arrow"] = array(
2371
+ "border-color" => $attr['arrowColor']
2372
+ );
2373
+
2374
+ $selectors[" .slick-arrow span"] = array(
2375
+ "color" => $attr['arrowColor'],
2376
+ "font-size" => $attr['arrowSize'] . "px",
2377
+ "width" => $attr['arrowSize'] . "px",
2378
+ "height" => $attr['arrowSize'] . "px"
2379
+ );
2380
+
2381
+ $selectors[" .slick-arrow svg"] = array(
2382
+ "fill" => $attr['arrowColor'],
2383
+ "width" => $attr['arrowSize'] . "px",
2384
+ "height" => $attr['arrowSize'] . "px"
2385
+ );
2386
+
2387
+ $selectors[" .slick-arrow"] = array(
2388
+ "border-color" => $attr['arrowColor'],
2389
+ "border-width" => $attr['arrowBorderSize'] . "px",
2390
+ "border-radius" => $attr['arrowBorderRadius'] . "px"
2391
+ );
2392
+
2393
+ $selectors[".uagb-post-grid ul.slick-dots li.slick-active button:before"] = array(
2394
+ "color" => $attr['arrowColor']
2395
+ );
2396
+
2397
+ $selectors[".uagb-slick-carousel ul.slick-dots li button:before"] = array(
2398
+ "color" => $attr['arrowColor']
2399
+ );
2400
+
2401
+ if ( isset( $attr['arrowDots'] ) && 'dots' == $attr['arrowDots'] ) {
2402
+
2403
+ $selectors[".uagb-slick-carousel"] = array(
2404
+ "padding" => "0"
2405
+ );
2406
+ }
2407
+
2408
+ // @codingStandardsIgnoreEnd
2409
+
2410
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__carousel-' . $id );
2411
+
2412
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__carousel-' . $id, 'tablet' );
2413
+
2414
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__carousel-' . $id, 'mobile' );
2415
+
2416
+ return $desktop . $tablet . $mobile;
2417
+ }
2418
+
2419
+ /**
2420
+ * Get Post Masonry Block CSS
2421
+ *
2422
+ * @since 1.4.0
2423
+ * @param array $attr The block attributes.
2424
+ * @param string $id The selector ID.
2425
+ * @return array The Widget List.
2426
+ */
2427
+ public static function get_post_masonry_css( $attr, $id ) { // @codingStandardsIgnoreStart
2428
+
2429
+ $defaults = UAGB_Helper::$block_list['uagb/post-masonry']['attributes'];
2430
+
2431
+ $attr = array_merge( $defaults, (array) $attr );
2432
+
2433
+ $selectors = self::get_post_selectors( $attr );
2434
+
2435
+ $m_selectors = self::get_post_mobile_selectors( $attr );
2436
+
2437
+ $t_selectors = self::get_post_tablet_selectors( $attr );
2438
+
2439
+ // @codingStandardsIgnoreEnd
2440
+
2441
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__masonry-' . $id );
2442
+
2443
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__masonry-' . $id, 'tablet' );
2444
+
2445
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__masonry-' . $id, 'mobile' );
2446
+
2447
+ return $desktop . $tablet . $mobile;
2448
+ }
2449
+
2450
+ /**
2451
+ * Get Post Block Selectors CSS
2452
+ *
2453
+ * @param array $attr The block attributes.
2454
+ * @since 1.4.0
2455
+ */
2456
+ public static function get_post_selectors( $attr ) { // @codingStandardsIgnoreStart
2457
+ return array(
2458
+ " .uagb-post__items" => array(
2459
+ "margin-right" => ( -$attr['rowGap']/2 ) . "px",
2460
+ "margin-left" => ( -$attr['rowGap']/2 ) . "px",
2461
+ ),
2462
+ " .uagb-post__items article" => array(
2463
+ "padding-right" => ( $attr['rowGap']/2 ) . "px",
2464
+ "padding-left" => ( $attr['rowGap']/2 ) . "px",
2465
+ "margin-bottom" => ( $attr['columnGap'] ) . "px"
2466
+ ),
2467
+ " .uagb-post__inner-wrap" => array(
2468
+ "background" => $attr['bgColor']
2469
+ ),
2470
+ " .uagb-post__text" => array(
2471
+ "padding" => ( $attr['contentPadding'] ) . "px",
2472
+ "text-align" => $attr['align']
2473
+ ),
2474
+ " .uagb-post__text .uagb-post__title" => array(
2475
+ "color"=> $attr['titleColor'],
2476
+ "font-size"=> $attr['titleFontSize'] . $attr['titleFontSizeType'],
2477
+ 'font-family' => $attr['titleFontFamily'],
2478
+ 'font-weight' => $attr['titleFontWeight'],
2479
+ 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2480
+ "margin-bottom"=> $attr['titleBottomSpace'] . "px"
2481
+ ),
2482
+ " .uagb-post__text .uagb-post__title a" => array(
2483
+ "color" => $attr['titleColor'],
2484
+ "font-size" => $attr['titleFontSize'] . $attr['titleFontSizeType'],
2485
+ 'font-family' => $attr['titleFontFamily'],
2486
+ 'font-weight' => $attr['titleFontWeight'],
2487
+ 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2488
+ ),
2489
+ " .uagb-post__text .uagb-post-grid-byline" => array(
2490
+ "color"=> $attr['metaColor'],
2491
+ "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2492
+ 'font-family' => $attr['metaFontFamily'],
2493
+ 'font-weight' => $attr['metaFontWeight'],
2494
+ 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2495
+ "margin-bottom" => $attr['metaBottomSpace'] . "px"
2496
+ ),
2497
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2498
+ "color" => $attr['metaColor'],
2499
+ "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2500
+ 'font-family' => $attr['metaFontFamily'],
2501
+ 'font-weight' => $attr['metaFontWeight'],
2502
+ 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2503
+ ),
2504
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2505
+ "color" => $attr['metaColor'],
2506
+ "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2507
+ 'font-family' => $attr['metaFontFamily'],
2508
+ 'font-weight' => $attr['metaFontWeight'],
2509
+ 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2510
+ ),
2511
+ " .uagb-post__text .uagb-post__excerpt" => array(
2512
+ "color" => $attr['excerptColor'],
2513
+ "font-size" => $attr['excerptFontSize'] . $attr['excerptFontSizeType'],
2514
+ 'font-family' => $attr['excerptFontFamily'],
2515
+ 'font-weight' => $attr['excerptFontWeight'],
2516
+ 'line-height' => $attr['excerptLineHeight'] . $attr['excerptLineHeightType'],
2517
+ "margin-bottom" => $attr['excerptBottomSpace'] . "px"
2518
+ ),
2519
+ " .uagb-post__text .uagb-post__cta" => array(
2520
+ "color" => $attr['ctaColor'],
2521
+ "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2522
+ 'font-family' => $attr['ctaFontFamily'],
2523
+ 'font-weight' => $attr['ctaFontWeight'],
2524
+ 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2525
+ "background" => $attr['ctaBgColor'],
2526
+ "border-color" => $attr['borderColor'],
2527
+ "border-width" => $attr['borderWidth'] . "px",
2528
+ "border-radius" => $attr['borderRadius'] . "px",
2529
+ "border-style" => $attr['borderStyle'],
2530
+ ),
2531
+ " .uagb-post__text .uagb-post__cta:hover" => array(
2532
+ "border-color"=> $attr['borderHColor']
2533
+ ),
2534
+ " .uagb-post__text .uagb-post__cta a" => array(
2535
+ "color"=> $attr['ctaColor'],
2536
+ "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2537
+ 'font-family' => $attr['ctaFontFamily'],
2538
+ 'font-weight' => $attr['ctaFontWeight'],
2539
+ 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2540
+ "padding" => ( $attr['btnVPadding'] ) . "px " . ( $attr['btnHPadding'] ) . "px",
2541
+ ),
2542
+ " .uagb-post__text .uagb-post__cta:hover" => array(
2543
+ "color"=> $attr['ctaHColor'],
2544
+ "background"=> $attr['ctaBgHColor']
2545
+ ),
2546
+ " .uagb-post__text .uagb-post__cta:hover a" => array(
2547
+ "color"=> $attr['ctaHColor']
2548
+ ),
2549
+ " .uagb-post__image:before" => array(
2550
+ "background-color" => $attr['bgOverlayColor'],
2551
+ "opacity" => ( $attr['overlayOpacity'] / 100 )
2552
+ ),
2553
+ );
2554
+ // @codingStandardsIgnoreEnd
2555
+ }
2556
+
2557
+ /**
2558
+ * Get Post Block Selectors CSS for Mobile devices
2559
+ *
2560
+ * @param array $attr The block attributes.
2561
+ * @since 1.6.1
2562
+ */
2563
+ public static function get_post_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
2564
+
2565
+ return array(
2566
+ " .uagb-post__text .uagb-post__title" => array(
2567
+ "font-size" =>$attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2568
+ 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2569
+ ),
2570
+ " .uagb-post__text .uagb-post__title a" => array(
2571
+ "font-size" =>$attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2572
+ 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2573
+ ),
2574
+ " .uagb-post__text .uagb-post-grid-byline" => array(
2575
+ "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2576
+ 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2577
+ ),
2578
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2579
+ "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2580
+ 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2581
+ ),
2582
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2583
+ "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2584
+ 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2585
+ ),
2586
+ " .uagb-post__text .uagb-post__excerpt" => array(
2587
+ "font-size" =>$attr['excerptFontSizeMobile'] . $attr['excerptFontSizeType'],
2588
+ 'line-height' => $attr['excerptLineHeightMobile'] . $attr['excerptLineHeightType'],
2589
+ ),
2590
+ " .uagb-post__text .uagb-post__cta" => array(
2591
+ "font-size" =>$attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2592
+ 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2593
+ ),
2594
+ " .uagb-post__text .uagb-post__cta a" => array(
2595
+ "font-size" =>$attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2596
+ 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2597
+ ),
2598
+ " .uagb-post__text" => array(
2599
+ "padding" =>( $attr['contentPaddingMobile'] ) . "px",
2600
+ ),
2601
+ );
2602
+ // @codingStandardsIgnoreEnd
2603
+ }
2604
+
2605
+ /**
2606
+ * Get Post Block Selectors CSS for Tablet devices
2607
+ *
2608
+ * @param array $attr The block attributes.
2609
+ * @since 1.8.2
2610
+ */
2611
+ public static function get_post_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
2612
+ return array(
2613
+ " .uagb-post__text .uagb-post__title" => array(
2614
+ "font-size" =>$attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2615
+ 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2616
+ ),
2617
+ " .uagb-post__text .uagb-post__title a" => array(
2618
+ "font-size" =>$attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2619
+ 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2620
+ ),
2621
+ " .uagb-post__text .uagb-post-grid-byline" => array(
2622
+ "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2623
+ 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2624
+ ),
2625
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2626
+ "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2627
+ 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2628
+ ),
2629
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2630
+ "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2631
+ 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2632
+ ),
2633
+ " .uagb-post__text .uagb-post__excerpt" => array(
2634
+ "font-size" =>$attr['excerptFontSizeTablet'] . $attr['excerptFontSizeType'],
2635
+ 'line-height' => $attr['excerptLineHeightTablet'] . $attr['excerptLineHeightType'],
2636
+ ),
2637
+ " .uagb-post__text .uagb-post__cta" => array(
2638
+ "font-size" =>$attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2639
+ 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2640
+ ),
2641
+ " .uagb-post__text .uagb-post__cta a" => array(
2642
+ "font-size" =>$attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2643
+ 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2644
+ ),
2645
+ );
2646
+ // @codingStandardsIgnoreEnd
2647
+ }
2648
+
2649
+ /**
2650
+ * Get Blockquote CSS
2651
+ *
2652
+ * @since 1.8.2
2653
+ * @param array $attr The block attributes.
2654
+ * @param string $id The selector ID.
2655
+ * @return array The Widget List.
2656
+ */
2657
+ public static function get_blockquote_css( $attr, $id ) {
2658
+ // @codingStandardsIgnoreStart
2659
+
2660
+ $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
2661
+
2662
+ $attr = array_merge( $defaults, (array) $attr );
2663
+
2664
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
2665
+
2666
+ $content_align ="center";
2667
+
2668
+ if( 'left' === $attr['align'] ){
2669
+ $content_align =" flex-start";
2670
+ }
2671
+ if( 'right' === $attr['align'] ){
2672
+ $content_align =" flex-end";
2673
+ }
2674
+
2675
+ $author_space = $attr['authorSpace'];
2676
+
2677
+ if( 'center' !== $attr['align'] || $attr['skinStyle'] == "border" ){
2678
+ $author_space = 0;
2679
+ }
2680
+
2681
+ //Set align to left for border style.
2682
+ $text_align = $attr['align'];
2683
+
2684
+ if( 'border' === $attr['skinStyle'] ){
2685
+ $text_align = 'left';
2686
+ }
2687
+
2688
+ $selectors = array(
2689
+ " .uagb-blockquote__content" => array(
2690
+ "font-size" => $attr['descFontSize'] . $attr['descFontSizeType'],
2691
+ 'font-family' => $attr['descFontFamily'],
2692
+ 'font-weight' => $attr['descFontWeight'],
2693
+ 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
2694
+ "color" => $attr['descColor'],
2695
+ "margin-bottom" => $attr['descSpace'] . "px",
2696
+ "text-align" => $text_align,
2697
+ ),
2698
+ " cite.uagb-blockquote__author" => array(
2699
+ "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2700
+ 'font-family' => $attr['authorFontFamily'],
2701
+ 'font-weight' => $attr['authorFontWeight'],
2702
+ 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2703
+ "color" => $attr['authorColor'],
2704
+ "text-align" => $text_align,
2705
+ ),
2706
+ " .uagb-blockquote__skin-border blockquote.uagb-blockquote" => array(
2707
+ "border-color" => $attr['borderColor'],
2708
+ "border-left-style" => $attr['borderStyle'],
2709
+ "border-left-width" => $attr['borderWidth'] . "px",
2710
+ "padding-left" => $attr['borderGap'] . "px",
2711
+ "padding-top" => $attr['verticalPadding'] . "px",
2712
+ "padding-bottom" => $attr['verticalPadding'] . "px",
2713
+ ),
2714
+
2715
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2716
+ "background" => $attr['quoteBgColor'],
2717
+ "border-radius" => $attr['quoteBorderRadius']."%",
2718
+ "margin-top" => $attr['quoteTopMargin'] . "px",
2719
+ "margin-bottom" => $attr['quoteBottomMargin'] . "px",
2720
+ "margin-left" => $attr['quoteLeftMargin'] . "px",
2721
+ "margin-right" => $attr['quoteRightMargin'] . "px",
2722
+ "padding" => $attr['quotePadding'] . $attr['quotePaddingType'],
2723
+ ),
2724
+
2725
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2726
+ "width" => $attr['quoteSize'].$attr['quoteSizeType'],
2727
+ "height" => $attr['quoteSize'].$attr['quoteSizeType'],
2728
+ ),
2729
+
2730
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg" => array(
2731
+ "fill" => $attr['quoteColor'],
2732
+ ),
2733
+
2734
+ " .uagb-blockquote__style-style_1 .uagb-blockquote" => array(
2735
+ "text-align" => $attr['align'],
2736
+ ),
2737
+
2738
+ " .uagb-blockquote__author-wrap" => array(
2739
+ "margin-bottom" => $author_space . "px",
2740
+ ),
2741
+ " .uagb-blockquote__author-image img" => array(
2742
+ "width" => $attr['authorImageWidth']."px",
2743
+ "height" => $attr['authorImageWidth']."px",
2744
+ "border-radius" => $attr['authorImgBorderRadius']."%"
2745
+ ),
2746
+
2747
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover svg" => array(
2748
+ "fill" => $attr['quoteHoverColor'],
2749
+ ),
2750
+
2751
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover" => array(
2752
+ "background" => $attr['quoteBgHoverColor'],
2753
+ ),
2754
+
2755
+ " .uagb-blockquote__skin-border blockquote.uagb-blockquote:hover" => array(
2756
+ "border-left-color" => $attr['borderHoverColor'],
2757
+ ),
2758
+ );
2759
+
2760
+ if( $attr['enableTweet'] ){
2761
+ $selectors[" a.uagb-blockquote__tweet-button"] = array(
2762
+ "font-size" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2763
+ 'font-family' => $attr['tweetBtnFontFamily'],
2764
+ 'font-weight' => $attr['tweetBtnFontWeight'],
2765
+ 'line-height' => $attr['tweetBtnLineHeight'] . $attr['tweetBtnLineHeightType'],
2766
+ );
2767
+
2768
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"] = array(
2769
+ "color" => $attr['tweetLinkColor'],
2770
+ );
2771
+
2772
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"] = array(
2773
+ "fill" => $attr['tweetLinkColor'],
2774
+ );
2775
+
2776
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"] = array(
2777
+ "color" => $attr['tweetBtnColor'],
2778
+ "background-color" => $attr['tweetBtnBgColor'],
2779
+ "padding-left" => $attr['tweetBtnHrPadding'] . "px",
2780
+ "padding-right" => $attr['tweetBtnHrPadding'] . "px",
2781
+ "padding-top" => $attr['tweetBtnVrPadding'] . "px",
2782
+ "padding-bottom" => $attr['tweetBtnVrPadding'] . "px",
2783
+ );
2784
+
2785
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"] = array(
2786
+ "fill" => $attr['tweetBtnColor'],
2787
+ );
2788
+
2789
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"] = array(
2790
+ "color" => $attr['tweetBtnColor'],
2791
+ "background-color" => $attr['tweetBtnBgColor'],
2792
+ "padding-left" => $attr['tweetBtnHrPadding'] . "px",
2793
+ "padding-right" => $attr['tweetBtnHrPadding'] . "px",
2794
+ "padding-top" => $attr['tweetBtnVrPadding'] . "px",
2795
+ "padding-bottom" => $attr['tweetBtnVrPadding'] . "px",
2796
+ );
2797
+
2798
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"] = array(
2799
+ "fill" => $attr['tweetBtnColor'],
2800
+ );
2801
+
2802
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"] = array(
2803
+ "border-right-color" => $attr['tweetBtnBgColor'],
2804
+ );
2805
+
2806
+ $selectors[" a.uagb-blockquote__tweet-button svg"] = array(
2807
+ "width" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2808
+ "height" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2809
+ );
2810
+
2811
+ $selectors[" .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"] = array(
2812
+ "margin-right" => $attr['tweetIconSpacing'] . "px",
2813
+ );
2814
+
2815
+ // Hover CSS.
2816
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"] = array(
2817
+ "color" => $attr['tweetBtnHoverColor'],
2818
+ );
2819
+
2820
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"] = array(
2821
+ "fill" => $attr['tweetBtnHoverColor'],
2822
+ );
2823
+
2824
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"] = array(
2825
+ "color" => $attr['tweetBtnHoverColor'],
2826
+ "background-color" => $attr['tweetBtnBgHoverColor'],
2827
+ );
2828
+
2829
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"] = array(
2830
+ "fill" => $attr['tweetBtnHoverColor'],
2831
+ );
2832
+
2833
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover"] = array(
2834
+ "color" => $attr['tweetBtnHoverColor'],
2835
+ "background-color" => $attr['tweetBtnBgHoverColor'],
2836
+ );
2837
+
2838
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"] = array(
2839
+ "fill" => $attr['tweetBtnHoverColor'],
2840
+ );
2841
+
2842
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"] = array(
2843
+ "border-right-color" => $attr['tweetBtnBgHoverColor'],
2844
+ );
2845
+ }
2846
+
2847
+ $t_selectors = array(
2848
+ " .uagb-blockquote__content" => array(
2849
+ "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
2850
+ 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
2851
+ ),
2852
+ " cite.uagb-blockquote__author" =>array(
2853
+ "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2854
+ 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2855
+ ),
2856
+ " a.uagb-blockquote__tweet-button" => array(
2857
+ "font-size" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2858
+ 'line-height' => $attr['tweetBtnLineHeightTablet'] . $attr['tweetBtnLineHeightType'],
2859
+ ),
2860
+ " a.uagb-blockquote__tweet-button svg" => array(
2861
+ "width" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2862
+ "height" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2863
+ ),
2864
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2865
+ "padding" => $attr['quotePaddingTablet'] . $attr['quotePaddingType'],
2866
+ ),
2867
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2868
+ "width" => $attr['quoteSizeTablet'].$attr['quoteSizeType'],
2869
+ "height" => $attr['quoteSizeTablet'].$attr['quoteSizeType'],
2870
+ ),
2871
+ );
2872
+
2873
+ $m_selectors = array(
2874
+ " .uagb-blockquote__content" => array(
2875
+ "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
2876
+ 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
2877
+ ),
2878
+ " cite.uagb-blockquote__author" => array(
2879
+ "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2880
+ 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2881
+ ),
2882
+ " a.uagb-blockquote__tweet-button" => array(
2883
+ "font-size" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2884
+ 'line-height' => $attr['tweetBtnLineHeightMobile'] . $attr['tweetBtnLineHeightType'],
2885
+ ),
2886
+ " a.uagb-blockquote__tweet-button svg" => array(
2887
+ "width" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2888
+ "height" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2889
+ ),
2890
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2891
+ "padding" => $attr['quotePaddingMobile'] . $attr['quotePaddingType'],
2892
+ ),
2893
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2894
+ "width" => $attr['quoteSizeMobile'].$attr['quoteSizeType'],
2895
+ "height" => $attr['quoteSizeMobile'].$attr['quoteSizeType'],
2896
+ ),
2897
+ );
2898
+
2899
+ // @codingStandardsIgnoreEnd
2900
+
2901
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-blockquote-' . $id );
2902
+
2903
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-blockquote-' . $id, 'tablet' );
2904
+
2905
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-blockquote-' . $id, 'mobile' );
2906
+
2907
+ return $desktop . $tablet . $mobile;
2908
+ }
2909
+
2910
+ /**
2911
+ * Get Timeline Block Desktop Selectors CSS
2912
+ *
2913
+ * @param array $attr The block attributes.
2914
+ * @since 1.8.2
2915
+ */
2916
+ public static function get_timeline_selectors( $attr ) { // @codingStandardsIgnoreStart
2917
+ $selectors = array(
2918
+ " .uagb-timeline__heading-text" => array(
2919
+ "margin-bottom" => $attr['headSpace'] . "px"
2920
+ ),
2921
+ " .uagb-timeline-desc-content" => array(
2922
+ "text-align" => $attr['align'],
2923
+ "color" => $attr['subHeadingColor'],
2924
+ "font-size" => $attr['subHeadFontSize'] . $attr['subHeadFontSizeType'],
2925
+ 'font-family' => $attr['subHeadFontFamily'],
2926
+ 'font-weight' => $attr['subHeadFontWeight'],
2927
+ 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
2928
+ ),
2929
+ ' .uagb-timeline__events-new' => array(
2930
+ 'text-align' => $attr['align']
2931
+ ),
2932
+ ' .uagb-timeline__date-inner' => array(
2933
+ 'text-align' => $attr['align']
2934
+ ),
2935
+ ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
2936
+ 'border-left-color' => $attr['backgroundColor']
2937
+ ),
2938
+ ' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
2939
+ 'border-left-color' => $attr['backgroundColor']
2940
+ ),
2941
+ ' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
2942
+ 'border-right-color' => $attr['backgroundColor']
2943
+ ),
2944
+ ' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
2945
+ 'border-right-color' => $attr['backgroundColor']
2946
+ ),
2947
+ ' .uagb-timeline__line__inner' => array(
2948
+ 'background-color' => $attr['separatorFillColor']
2949
+ ),
2950
+ ' .uagb-timeline__line' => array(
2951
+ 'background-color' => $attr['separatorColor'],
2952
+ 'width' => $attr['separatorwidth'].'px'
2953
+ ),
2954
+ ' .uagb-timeline__right-block .uagb-timeline__line' => array(
2955
+ 'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2956
+ ),
2957
+ ' .uagb-timeline__left-block .uagb-timeline__line' => array(
2958
+ 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2959
+ ),
2960
+ ' .uagb-timeline__center-block .uagb-timeline__line' => array(
2961
+ 'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2962
+ ),
2963
+ ' .uagb-timeline__marker' => array(
2964
+ 'background-color' => $attr['separatorBg'],
2965
+ 'min-height' => $attr['connectorBgsize'].'px',
2966
+ 'min-width' => $attr['connectorBgsize'].'px',
2967
+ 'line-height' => $attr['connectorBgsize'].'px',
2968
+ 'border' => $attr['borderwidth'].'px solid'.$attr['separatorBorder'],
2969
+ ),
2970
+ ' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow' => array(
2971
+ 'height' => $attr['connectorBgsize'].'px',
2972
+ ),
2973
+ ' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow' => array(
2974
+ 'height' => $attr['connectorBgsize'].'px',
2975
+ ),
2976
+ ' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow' => array(
2977
+ 'height' => $attr['connectorBgsize'].'px',
2978
+ ),
2979
+ ' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow' => array(
2980
+ 'height' => $attr['connectorBgsize'].'px',
2981
+ ),
2982
+ ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
2983
+ 'margin-left' => $attr['horizontalSpace'].'px',
2984
+ 'margin-right'=> $attr['horizontalSpace'].'px',
2985
+ ),
2986
+ ' .uagb-timeline__field:not(:last-child)' => array(
2987
+ 'margin-bottom' => $attr['verticalSpace'].'px',
2988
+ ),
2989
+ ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
2990
+ 'margin-bottom' => $attr['dateBottomspace'].'px',
2991
+ 'color' => $attr['dateColor'],
2992
+ 'font-size' => $attr['dateFontsize'].$attr['dateFontsizeType'],
2993
+ 'font-family' => $attr['dateFontFamily'],
2994
+ 'font-weight' => $attr['dateFontWeight'],
2995
+ 'line-height' => $attr['dateLineHeight'] . $attr['dateLineHeightType'],
2996
+ 'text-align' => $attr['align'],
2997
+ ),
2998
+ ' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
2999
+ 'margin-left' => $attr['horizontalSpace'].'px',
3000
+ ),
3001
+ ' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3002
+ 'margin-right' => $attr['horizontalSpace'].'px',
3003
+ ),
3004
+ ' .uagb-timeline__date-new' => array(
3005
+ 'color' => $attr['dateColor'],
3006
+ 'font-size' => $attr['dateFontsize'].$attr['dateFontsizeType'],
3007
+ 'font-family' => $attr['dateFontFamily'],
3008
+ 'font-weight' => $attr['dateFontWeight'],
3009
+ 'line-height' => $attr['dateLineHeight'] . $attr['dateLineHeightType'],
3010
+ ),
3011
+ ' .uagb-timeline__events-inner-new' => array(
3012
+ 'background-color' => $attr['backgroundColor'],
3013
+ 'border-radius' => $attr['borderRadius'].'px',
3014
+ 'padding'=> $attr['bgPadding'].'px',
3015
+ ),
3016
+ ' .uagb-timeline__main .uagb-timeline__icon-new' => array(
3017
+ 'color' => $attr['iconColor'],
3018
+ 'font-size' => $attr['iconSize'].'px',
3019
+ 'width' => $attr['iconSize'].'px',
3020
+ ),
3021
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg' => array(
3022
+ 'fill'=> $attr['iconFocus'],
3023
+ ),
3024
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
3025
+ 'color'=> $attr['iconFocus'],
3026
+ ),
3027
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon' => array(
3028
+ 'background' => $attr['iconBgFocus'],
3029
+ 'border-color'=> $attr['borderFocus'],
3030
+ ),
3031
+ ' .uagb-timeline__main .uagb-timeline__icon-new svg' => array(
3032
+ 'fill'=> $attr['iconColor'],
3033
+ ),
3034
+ );
3035
+
3036
+ return $selectors;
3037
+ // @codingStandardsIgnoreEnd
3038
+ }
3039
+
3040
+ /**
3041
+ * Get Timeline Block Tablet Selectors CSS.
3042
+ *
3043
+ * @param array $attr The block attributes.
3044
+ * @since 1.8.2
3045
+ */
3046
+ public static function get_timeline_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
3047
+ $tablet_selector = array(
3048
+ " .uagb-timeline-desc-content" => array(
3049
+ "font-size" => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
3050
+ 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
3051
+ ),
3052
+ ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3053
+ 'font-size' => $attr['dateFontsizeTablet'].$attr['dateFontsizeType'],
3054
+ 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
3055
+ ),
3056
+ ' .uagb-timeline__date-new' => array(
3057
+ 'font-size' => $attr['dateFontsizeTablet'].$attr['dateFontsizeType'],
3058
+ 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
3059
+ ),
3060
+ ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3061
+ 'margin-left' => 0,
3062
+ 'margin-right' => 0,
3063
+ ),
3064
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading" => array(
3065
+ "text-align" => 'left',
3066
+ ),
3067
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content" => array(
3068
+ "text-align" => 'left',
3069
+ ),
3070
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new' => array(
3071
+ 'text-align' => 'left'
3072
+ ),
3073
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner' => array(
3074
+ 'text-align' => 'left'
3075
+ ),
3076
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3077
+ 'text-align'=> 'left',
3078
+ ),
3079
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3080
+ "border-right-color" => $attr['backgroundColor'],
3081
+ ),
3082
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line" => array(
3083
+ 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3084
+ ),
3085
+ );
3086
+
3087
+ return $tablet_selector;
3088
+ // @codingStandardsIgnoreEnd
3089
+ }
3090
+
3091
+ /**
3092
+ * Get Timeline Block Mobile Selectors CSS.
3093
+ *
3094
+ * @param array $attr The block attributes.
3095
+ * @since 1.8.2
3096
+ */
3097
+ public static function get_timeline_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
3098
+ $m_selectors = array(
3099
+ " .uagb-timeline-desc-content" => array(
3100
+ "font-size" => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
3101
+ 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
3102
+ ),
3103
+ ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3104
+ 'font-size' => $attr['dateFontsizeMobile'].$attr['dateFontsizeType'],
3105
+ 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
3106
+ ),
3107
+ ' .uagb-timeline__date-new' => array(
3108
+ 'font-size' => $attr['dateFontsizeMobile'].$attr['dateFontsizeType'],
3109
+ 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
3110
+ ),
3111
+ ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3112
+ 'margin-left' => 0,
3113
+ 'margin-right' => 0,
3114
+ ),
3115
+ ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
3116
+ 'margin-left' => $attr['horizontalSpace'].'px',
3117
+ ),
3118
+ ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3119
+ 'margin-left' => $attr['horizontalSpace'].'px',
3120
+ ),
3121
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading" => array(
3122
+ "text-align" => 'left',
3123
+ ),
3124
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content" => array(
3125
+ "text-align" => 'left',
3126
+ ),
3127
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new' => array(
3128
+ 'text-align' => 'left'
3129
+ ),
3130
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner' => array(
3131
+ 'text-align' => 'left'
3132
+ ),
3133
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3134
+ 'text-align'=> 'left',
3135
+ ),
3136
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3137
+ "border-right-color" => $attr['backgroundColor'],
3138
+ ),
3139
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line" => array(
3140
+ 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3141
+ ),
3142
+ );
3143
+ return $m_selectors;
3144
+ // @codingStandardsIgnoreEnd
3145
+ }
3146
+
3147
+ /**
3148
+ * Get Contact Form 7 CSS
3149
+ *
3150
+ * @param array $attr The block attributes.
3151
+ * @param string $id The selector ID.
3152
+ * @since 1.10.0
3153
+ */
3154
+ public static function get_cf7_styler_css( $attr, $id ) {
3155
+ $defaults = UAGB_Helper::$block_list['uagb/cf7-styler']['attributes'];
3156
+
3157
+ $attr = array_merge( $defaults, (array) $attr );
3158
+
3159
+ $selectors = array(
3160
+ ' .wpcf7 .wpcf7-form' => array(
3161
+ 'text-align' => $attr['align'],
3162
+ ),
3163
+ ' .wpcf7 form.wpcf7-form:not(input)' => array(
3164
+ 'color' => $attr['fieldLabelColor'],
3165
+ ),
3166
+ ' .wpcf7 input:not([type=submit])' => array(
3167
+ 'background-color' => $attr['fieldBgColor'],
3168
+ 'color' => $attr['fieldInputColor'],
3169
+ 'border-style' => $attr['fieldBorderStyle'],
3170
+ 'border-color' => $attr['fieldBorderColor'],
3171
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3172
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3173
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3174
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3175
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3176
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3177
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3178
+ 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3179
+ 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3180
+ 'font-family' => $attr['inputFontFamily'],
3181
+ 'font-weight' => $attr['inputFontWeight'],
3182
+ 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3183
+ 'text-align' => $attr['align'],
3184
+ ),
3185
+ ' .wpcf7 select' => array(
3186
+ 'background-color' => $attr['fieldBgColor'],
3187
+ 'color' => $attr['fieldLabelColor'],
3188
+ 'border-style' => $attr['fieldBorderStyle'],
3189
+ 'border-color' => $attr['fieldBorderColor'],
3190
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3191
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3192
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3193
+ 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3194
+ 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3195
+ 'font-family' => $attr['labelFontFamily'],
3196
+ 'font-weight' => $attr['labelFontWeight'],
3197
+ 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3198
+ 'text-align' => $attr['align'],
3199
+ ),
3200
+ ' .wpcf7 select.wpcf7-form-control.wpcf7-select:not([multiple="multiple"])' => array(
3201
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3202
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3203
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3204
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3205
+ ),
3206
+ ' .wpcf7 select.wpcf7-select[multiple="multiple"] option' => array(
3207
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3208
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3209
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3210
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3211
+ ),
3212
+ ' .wpcf7 textarea' => array(
3213
+ 'background-color' => $attr['fieldBgColor'],
3214
+ 'color' => $attr['fieldInputColor'],
3215
+ 'border-color' => $attr['fieldBorderColor'],
3216
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3217
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3218
+ 'border-style' => $attr['fieldBorderStyle'],
3219
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3220
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3221
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3222
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3223
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3224
+ 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3225
+ 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3226
+ 'font-family' => $attr['inputFontFamily'],
3227
+ 'font-weight' => $attr['inputFontWeight'],
3228
+ 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3229
+ 'text-align' => $attr['align'],
3230
+ ),
3231
+ ' .wpcf7 textarea::placeholder' => array(
3232
+ 'color' => $attr['fieldInputColor'],
3233
+ 'text-align' => $attr['align'],
3234
+ ),
3235
+ ' .wpcf7 input::placeholder' => array(
3236
+ 'color' => $attr['fieldInputColor'],
3237
+ 'text-align' => $attr['align'],
3238
+ ),
3239
+ ' .wpcf7 form label' => array(
3240
+ 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3241
+ 'font-family' => $attr['labelFontFamily'],
3242
+ 'font-weight' => $attr['labelFontWeight'],
3243
+ 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3244
+ ),
3245
+ ' .wpcf7 form .wpcf7-list-item-label' => array(
3246
+ 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3247
+ 'font-family' => $attr['labelFontFamily'],
3248
+ 'font-weight' => $attr['labelFontWeight'],
3249
+ 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3250
+ ),
3251
+
3252
+ // Focus.
3253
+ ' .wpcf7 form input:not([type=submit]):focus' => array(
3254
+ 'border-color' => $attr['fieldBorderFocusColor'],
3255
+ ),
3256
+ ' .wpcf7 form select:focus' => array(
3257
+ 'border-color' => $attr['fieldBorderFocusColor'],
3258
+ ),
3259
+ ' .wpcf7 textarea:focus' => array(
3260
+ 'border-color' => $attr['fieldBorderFocusColor'],
3261
+ ),
3262
+
3263
+ // Submit button.
3264
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3265
+ 'color' => $attr['buttonTextColor'],
3266
+ 'background-color' => $attr['buttonBgColor'],
3267
+ 'font-size' => $attr['buttonFontSize'] . $attr['buttonFontSizeType'],
3268
+ 'font-family' => $attr['buttonFontFamily'],
3269
+ 'font-weight' => $attr['buttonFontWeight'],
3270
+ 'line-height' => $attr['buttonLineHeight'] . $attr['buttonLineHeightType'],
3271
+ 'border-color' => $attr['buttonBorderColor'],
3272
+ 'border-style' => $attr['buttonBorderStyle'],
3273
+ 'border-width' => $attr['buttonBorderWidth'] . 'px',
3274
+ 'border-radius' => $attr['buttonBorderRadius'] . $attr['buttonBorderRadiusType'],
3275
+ 'padding-left' => $attr['buttonHrPadding'] . 'px',
3276
+ 'padding-right' => $attr['buttonHrPadding'] . 'px',
3277
+ 'padding-top' => $attr['buttonVrPadding'] . 'px',
3278
+ 'padding-bottom' => $attr['buttonVrPadding'] . 'px',
3279
+ ),
3280
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover' => array(
3281
+ 'color' => $attr['buttonTextHoverColor'],
3282
+ 'background-color' => $attr['buttonBgHoverColor'],
3283
+ 'border-color' => $attr['buttonBorderHoverColor'],
3284
+ ),
3285
+
3286
+ // Check box Radio.
3287
+ ' .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3288
+ 'background-color' => $attr['fieldBgColor'],
3289
+ 'color' => $attr['fieldInputColor'],
3290
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3291
+ 'border-color' => $attr['fieldBorderFocusColor'],
3292
+ ),
3293
+ ' .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3294
+ 'background-color' => $attr['fieldBgColor'],
3295
+ 'color' => $attr['fieldInputColor'],
3296
+ 'height' => $attr['fieldVrPadding'] . 'px',
3297
+ 'width' => $attr['fieldVrPadding'] . 'px',
3298
+ 'border-style' => $attr['fieldBorderStyle'],
3299
+ 'border-color' => $attr['fieldBorderColor'],
3300
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3301
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3302
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3303
+ ),
3304
+ ' .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3305
+ 'background-color' => $attr['fieldBgColor'],
3306
+ 'color' => $attr['fieldInputColor'],
3307
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3308
+ 'border-color' => $attr['fieldBorderFocusColor'],
3309
+ ),
3310
+ ' .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3311
+ 'background-color' => $attr['fieldBgColor'],
3312
+ 'color' => $attr['fieldInputColor'],
3313
+ 'height' => $attr['fieldVrPadding'] . 'px',
3314
+ 'width' => $attr['fieldVrPadding'] . 'px',
3315
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3316
+ 'border-color' => $attr['fieldBorderColor'],
3317
+ 'border-style' => $attr['fieldBorderStyle'],
3318
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3319
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3320
+ ),
3321
+ ' .wpcf7 .wpcf7-radio input[type="radio"] + span:before' => array(
3322
+ 'background-color' => $attr['fieldBgColor'],
3323
+ 'color' => $attr['fieldInputColor'],
3324
+ 'height' => $attr['fieldVrPadding'] . 'px',
3325
+ 'width' => $attr['fieldVrPadding'] . 'px',
3326
+ 'border-style' => $attr['fieldBorderStyle'],
3327
+ 'border-color' => $attr['fieldBorderColor'],
3328
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3329
+ ),
3330
+ ' .wpcf7 .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3331
+ 'border-color' => $attr['fieldBorderFocusColor'],
3332
+ ),
3333
+
3334
+ // Underline border.
3335
+ ' .uagb-cf7-styler__field-style-underline .wpcf7 input:not([type=submit])' => array(
3336
+ 'border-style' => 'none',
3337
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3338
+ 'border-bottom-style' => 'solid',
3339
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3340
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3341
+ ),
3342
+ ' .uagb-cf7-styler__field-style-underline textarea' => array(
3343
+ 'border-style' => 'none',
3344
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3345
+ 'border-bottom-style' => 'solid',
3346
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3347
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3348
+ ),
3349
+ ' .uagb-cf7-styler__field-style-underline select' => array(
3350
+ 'border-style' => 'none',
3351
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3352
+ 'border-bottom-style' => 'solid',
3353
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3354
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3355
+ ),
3356
+ ' .uagb-cf7-styler__field-style-underline textarea' => array(
3357
+ 'border-style' => 'none',
3358
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3359
+ 'border-bottom-style' => 'solid',
3360
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3361
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3362
+ ),
3363
+ ' .uagb-cf7-styler__field-style-underline .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3364
+ 'border-style' => 'solid',
3365
+ ),
3366
+ ' .uagb-cf7-styler__field-style-underline .wpcf7 input[type="radio"] + span:before' => array(
3367
+ 'border-style' => 'solid',
3368
+ ),
3369
+ ' .uagb-cf7-styler__field-style-underline .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3370
+ 'border-style' => 'solid',
3371
+ ),
3372
+ ' .uagb-cf7-styler__field-style-box .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3373
+ 'border-style' => $attr['fieldBorderStyle'],
3374
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3375
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3376
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3377
+ ),
3378
+ ' .uagb-cf7-styler__field-style-box .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3379
+ 'border-style' => $attr['fieldBorderStyle'],
3380
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3381
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3382
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3383
+ ),
3384
+ ' .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3385
+ 'background-color' => $attr['fieldInputColor'],
3386
+ ),
3387
+
3388
+ // Override check box.
3389
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3390
+ 'background-color' => $attr['radioCheckBgColor'],
3391
+ 'color' => $attr['radioCheckSelectColor'],
3392
+ 'height' => $attr['radioCheckSize'] . 'px',
3393
+ 'width' => $attr['radioCheckSize'] . 'px',
3394
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3395
+ 'border-color' => $attr['radioCheckBorderColor'],
3396
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3397
+ 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3398
+ ),
3399
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3400
+ 'border-color' => $attr['fieldBorderFocusColor'],
3401
+ ),
3402
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3403
+ 'background-color' => $attr['radioCheckBgColor'],
3404
+ 'color' => $attr['radioCheckSelectColor'],
3405
+ 'height' => $attr['radioCheckSize'] . 'px',
3406
+ 'width' => $attr['radioCheckSize'] . 'px',
3407
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3408
+ 'border-color' => $attr['radioCheckBorderColor'],
3409
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3410
+ 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3411
+ ),
3412
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3413
+ 'border-color' => $attr['fieldBorderFocusColor'],
3414
+ ),
3415
+
3416
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 input[type="radio"] + span:before' => array(
3417
+ 'background-color' => $attr['radioCheckBgColor'],
3418
+ 'color' => $attr['radioCheckSelectColor'],
3419
+ 'height' => $attr['radioCheckSize'] . 'px',
3420
+ 'width' => $attr['radioCheckSize'] . 'px',
3421
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3422
+ 'border-color' => $attr['radioCheckBorderColor'],
3423
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3424
+ ),
3425
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3426
+ 'background-color' => $attr['radioCheckSelectColor'],
3427
+ ),
3428
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3429
+ 'font-size' => $attr['radioCheckFontSize'] . $attr['radioCheckFontSizeType'],
3430
+ 'font-family' => $attr['radioCheckFontFamily'],
3431
+ 'font-weight' => $attr['radioCheckFontWeight'],
3432
+ 'line-height' => $attr['radioCheckLineHeight'] . $attr['radioCheckLineHeightType'],
3433
+ 'color' => $attr['radioCheckLableColor'],
3434
+ ),
3435
+ ' span.wpcf7-not-valid-tip' => array(
3436
+ 'color' => $attr['validationMsgColor'],
3437
+ 'font-size' => $attr['validationMsgFontSize'] . $attr['validationMsgFontSizeType'],
3438
+ 'font-family' => $attr['validationMsgFontFamily'],
3439
+ 'font-weight' => $attr['validationMsgFontWeight'],
3440
+ 'line-height' => $attr['validationMsgLineHeight'] . $attr['validationMsgLineHeightType'],
3441
+ ),
3442
+ ' .uagb-cf7-styler__highlight-border input.wpcf7-form-control.wpcf7-not-valid' => array(
3443
+ 'border-color' => $attr['highlightBorderColor'],
3444
+ ),
3445
+ ' .uagb-cf7-styler__highlight-border .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item-label:before' => array(
3446
+ 'border-color' => $attr['highlightBorderColor'] . '!important',
3447
+ ),
3448
+ ' .uagb-cf7-styler__highlight-style-bottom_right .wpcf7-not-valid-tip' => array(
3449
+ 'background-color' => $attr['validationMsgBgColor'],
3450
+ ),
3451
+ ' .wpcf7-response-output' => array(
3452
+ 'border-width' => $attr['msgBorderSize'] . 'px',
3453
+ 'border-radius' => $attr['msgBorderRadius'] . $attr['msgBorderRadiusType'],
3454
+ 'font-size' => $attr['msgFontSize'] . $attr['msgFontSizeType'],
3455
+ 'font-family' => $attr['msgFontFamily'],
3456
+ 'font-weight' => $attr['msgFontWeight'],
3457
+ 'line-height' => $attr['msgLineHeight'] . $attr['msgLineHeightType'],
3458
+ 'padding-top' => $attr['msgVrPadding'] . 'px',
3459
+ 'padding-bottom' => $attr['msgVrPadding'] . 'px',
3460
+ 'padding-left' => $attr['msgHrPadding'] . 'px',
3461
+ 'padding-right' => $attr['msgHrPadding'] . 'px',
3462
+ ),
3463
+ ' .wpcf7-response-output.wpcf7-validation-errors' => array(
3464
+ 'background-color' => $attr['errorMsgBgColor'],
3465
+ 'border-color' => $attr['errorMsgBorderColor'],
3466
+ 'color' => $attr['errorMsgColor'],
3467
+ ),
3468
+ ' .wpcf7-response-output.wpcf7-validation- success' => array(
3469
+ 'background-color' => $attr['successMsgBgColor'],
3470
+ 'border-color' => $attr['successMsgBorderColor'],
3471
+ 'color' => $attr['successMsgColor'],
3472
+ ),
3473
+
3474
+ );
3475
+
3476
+ $t_selectors = array(
3477
+ ' .wpcf7 form.wpcf7-form:not(input)' => array(
3478
+ 'color' => $attr['fieldLabelColor'],
3479
+ ),
3480
+ ' .wpcf7 input:not([type=submit])' => array(
3481
+ 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
3482
+ 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
3483
+ ),
3484
+ ' .wpcf7 select' => array(
3485
+ 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3486
+ 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3487
+ ),
3488
+ ' .wpcf7 textarea' => array(
3489
+ 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
3490
+ 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
3491
+ ),
3492
+ ' .wpcf7 form label' => array(
3493
+ 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3494
+ 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3495
+ ),
3496
+
3497
+ ' .wpcf7 form .wpcf7-list-item-label' => array(
3498
+ 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3499
+ 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3500
+ ),
3501
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3502
+ 'font-size' => $attr['buttonFontSizeTablet'] . $attr['buttonFontSizeType'],
3503
+ 'line-height' => $attr['buttonLineHeightTablet'] . $attr['buttonLineHeightType'],
3504
+ ),
3505
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3506
+ 'font-size' => $attr['radioCheckFontSizeTablet'] . $attr['radioCheckFontSizeType'],
3507
+ 'line-height' => $attr['radioCheckLineHeightTablet'] . $attr['radioCheckLineHeightType'],
3508
+ ),
3509
+ ' span.wpcf7-not-valid-tip' => array(
3510
+ 'font-size' => $attr['validationMsgFontSizeTablet'] . $attr['validationMsgFontSizeType'],
3511
+ 'line-height' => $attr['validationMsgLineHeightTablet'] . $attr['validationMsgLineHeightType'],
3512
+ ),
3513
+ ' .wpcf7-response-output' => array(
3514
+ 'font-size' => $attr['msgFontSizeTablet'] . $attr['msgFontSizeType'],
3515
+ 'line-height' => $attr['msgLineHeightTablet'] . $attr['msgLineHeightType'],
3516
+ ),
3517
+ );
3518
+
3519
+ $m_selectors = array(
3520
+ ' .wpcf7 input:not([type=submit])' => array(
3521
+ 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
3522
+ 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
3523
+ ),
3524
+ ' .wpcf7 select' => array(
3525
+ 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3526
+ 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3527
+ ),
3528
+ ' .wpcf7 textarea' => array(
3529
+ 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
3530
+ 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
3531
+ ),
3532
+ ' .wpcf7 form label' => array(
3533
+ 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3534
+ 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3535
+ ),
3536
+
3537
+ ' .wpcf7 form .wpcf7-list-item-label' => array(
3538
+ 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3539
+ 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3540
+ ),
3541
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3542
+ 'font-size' => $attr['buttonFontSizeMobile'] . $attr['buttonFontSizeType'],
3543
+ 'line-height' => $attr['buttonLineHeightMobile'] . $attr['buttonLineHeightType'],
3544
+ ),
3545
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3546
+ 'font-size' => $attr['radioCheckFontSizeMobile'] . $attr['radioCheckFontSizeType'],
3547
+ 'line-height' => $attr['radioCheckLineHeightMobile'] . $attr['radioCheckLineHeightType'],
3548
+ ),
3549
+ ' span.wpcf7-not-valid-tip' => array(
3550
+ 'font-size' => $attr['validationMsgFontSizeMobile'] . $attr['validationMsgFontSizeType'],
3551
+ 'line-height' => $attr['validationMsgLineHeightMobile'] . $attr['validationMsgLineHeightType'],
3552
+ ),
3553
+ ' .wpcf7-response-output' => array(
3554
+ 'font-size' => $attr['msgFontSizeMobile'] . $attr['msgFontSizeType'],
3555
+ 'line-height' => $attr['msgLineHeightMobile'] . $attr['msgLineHeightType'],
3556
+ ),
3557
+ );
3558
+
3559
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cf7-styler-' . $id );
3560
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-cf7-styler-' . $id, 'tablet' );
3561
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-cf7-styler-' . $id, 'mobile' );
3562
+
3563
+ return $desktop . $tablet . $mobile;
3564
+ }
3565
+
3566
+ /**
3567
+ * Get Marketing Button Block CSS
3568
+ *
3569
+ * @since 1.11.0
3570
+ * @param array $attr The block attributes.
3571
+ * @param string $id The selector ID.
3572
+ * @return array The Widget List.
3573
+ */
3574
+ public static function get_marketing_btn_css( $attr, $id ) { // @codingStandardsIgnoreStart
3575
+
3576
+ $defaults = UAGB_Helper::$block_list['uagb/marketing-button']['attributes'];
3577
+
3578
+ $attr = array_merge( $defaults, (array) $attr );
3579
+
3580
+ $m_selectors = array();
3581
+ $t_selectors = array();
3582
+
3583
+ $icon_color = ( "" == $attr["iconColor"] ) ? $attr["titleColor"] : $attr["iconColor"];
3584
+ $icon_hover_color = ( "" == $attr["iconHoverColor"] ) ? $attr["titleHoverColor"] : $attr["iconHoverColor"];
3585
+
3586
+ $selectors = array(
3587
+ " .uagb-marketing-btn__title-wrap" => array(
3588
+ "margin-bottom" => $attr["titleSpace"] . "px"
3589
+ ),
3590
+ " .uagb-marketing-btn__title" => array(
3591
+ "font-size" => $attr["titleFontSize"] . $attr["titleFontSizeType"],
3592
+ "line-height" => $attr["titleLineHeight"] . $attr["titleLineHeightType"],
3593
+ "font-family" => $attr["titleFontFamily"],
3594
+ "font-weight" => $attr["titleFontWeight"],
3595
+ "color" => $attr["titleColor"],
3596
+ ),
3597
+ " .uagb-marketing-btn__icon-wrap" => array(
3598
+ "width" => $attr["iconFontSize"] . $attr["iconFontSizeType"],
3599
+ "height" => $attr["iconFontSize"] . $attr["iconFontSizeType"],
3600
+ ),
3601
+ " .uagb-marketing-btn__icon-wrap svg" => array(
3602
+ "fill" => $icon_color
3603
+ ),
3604
+ " .uagb-marketing-btn__prefix" => array(
3605
+ "font-size" => $attr["prefixFontSize"] . $attr["prefixFontSizeType"],
3606
+ "line-height" => $attr["prefixLineHeight"] . $attr["prefixLineHeightType"],
3607
+ "font-family" => $attr["prefixFontFamily"],
3608
+ "font-weight" => $attr["prefixFontWeight"],
3609
+ "color" => $attr["prefixColor"],
3610
+ ),
3611
+ " .uagb-marketing-btn__link:hover .uagb-marketing-btn__title" => array(
3612
+ "color" => $attr["titleHoverColor"],
3613
+ ),
3614
+ " .uagb-marketing-btn__link:hover .uagb-marketing-btn__prefix" => array(
3615
+ "color" => $attr["prefixHoverColor"],
3616
+ ),
3617
+ " .uagb-marketing-btn__link:hover .uagb-marketing-btn__icon-wrap svg" => array(
3618
+ "fill" => $icon_hover_color
3619
+ ),
3620
+ " .uagb-marketing-btn__link" => array(
3621
+ "padding-left" => $attr["hPadding"] . "px",
3622
+ "padding-right" => $attr["hPadding"] . "px",
3623
+ "padding-top" => $attr["vPadding"] . "px",
3624
+ "padding-bottom" => $attr["vPadding"] . "px",
3625
+ "border-style" => $attr["borderStyle"],
3626
+ "border-width" => $attr["borderWidth"] . "px",
3627
+ "border-color" => $attr["borderColor"],
3628
+ "border-radius" => $attr["borderRadius"] . "px",
3629
+ ),
3630
+ " .uagb-marketing-btn__link:hover" => array(
3631
+ "border-color" => $attr["borderHoverColor"]
3632
+ ),
3633
+ );
3634
+
3635
+ if ( "transparent" == $attr["backgroundType"] ) {
3636
+
3637
+ $selectors[" .uagb-marketing-btn__link"]["background"] = "transparent";
3638
+
3639
+ } else if ( "color" == $attr["backgroundType"] ) {
3640
+
3641
+ $selectors[" .uagb-marketing-btn__link"]["background"] = UAGB_Helper::hex2rgba( $attr["backgroundColor"], $attr['backgroundOpacity'] );
3642
+
3643
+ // Hover Background
3644
+ $selectors[" .uagb-marketing-btn__link:hover"] = array(
3645
+ "background" => UAGB_Helper::hex2rgba( $attr["backgroundHoverColor"], $attr['backgroundHoverOpacity'] ),
3646
+ );
3647
+
3648
+ } else if ( "gradient" == $attr["backgroundType"] ) {
3649
+
3650
+ $selectors[' .uagb-marketing-btn__link']['background-color'] = 'transparent';
3651
+
3652
+ if ( 'linear' === $attr['gradientType'] ) {
3653
+
3654
+ $selectors[' .uagb-marketing-btn__link']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . UAGB_Helper::hex2rgba( $attr['gradientColor1'], $attr['backgroundOpacity'] ) . ' ' . $attr['gradientLocation1'] . '%, ' . UAGB_Helper::hex2rgba( $attr['gradientColor2'], $attr['backgroundOpacity'] ) . ' ' . $attr['gradientLocation2'] . '%)';
3655
+ } else {
3656
+
3657
+ $selectors[' .uagb-marketing-btn__link']['background-image'] = 'radial-gradient( at center center, ' . UAGB_Helper::hex2rgba( $attr['gradientColor1'], $attr['backgroundOpacity'] ) . ' ' . $attr['gradientLocation1'] . '%, ' . UAGB_Helper::hex2rgba( $attr['gradientColor2'], $attr['backgroundOpacity'] ) . ' ' . $attr['gradientLocation2'] . '%)';
3658
+ }
3659
+ }
3660
+
3661
+ $margin_type = ( "after" == $attr["iconPosition"] ) ? "margin-left" : "margin-right";
3662
+
3663
+ $selectors[" .uagb-marketing-btn__icon-wrap"][$margin_type] = $attr["iconSpace"] . "px";
3664
+
3665
+ $m_selectors = array(
3666
+ ' .uagb-marketing-btn__title' => array(
3667
+ 'font-size' => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
3668
+ 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
3669
+ ),
3670
+ ' .uagb-marketing-btn__prefix' => array(
3671
+ 'font-size' => $attr['prefixFontSizeMobile'] . $attr['prefixFontSizeType'],
3672
+ 'line-height' => $attr['prefixLineHeightMobile'] . $attr['prefixLineHeightType'],
3673
+ ),
3674
+ ' .uagb-marketing-btn__icon-wrap' => array(
3675
+ "width" => $attr["iconFontSizeMobile"] . $attr["iconFontSizeType"],
3676
+ "height" => $attr["iconFontSizeMobile"] . $attr["iconFontSizeType"],
3677
+ ),
3678
+
3679
+ );
3680
+
3681
+ $t_selectors = array(
3682
+ ' .uagb-marketing-btn__title' => array(
3683
+ 'font-size' => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
3684
+ 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
3685
+ ),
3686
+ ' .uagb-marketing-btn__prefix' => array(
3687
+ 'font-size' => $attr['prefixFontSizeTablet'] . $attr['prefixFontSizeType'],
3688
+ 'line-height' => $attr['prefixLineHeightTablet'] . $attr['prefixLineHeightType'],
3689
+ ),
3690
+ ' .uagb-marketing-btn__icon-wrap' => array(
3691
+ "width" => $attr["iconFontSizeTablet"] . $attr["iconFontSizeType"],
3692
+ "height" => $attr["iconFontSizeTablet"] . $attr["iconFontSizeType"],
3693
+ ),
3694
+
3695
+ );
3696
+
3697
+ // @codingStandardsIgnoreEnd
3698
+
3699
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-marketing-btn-' . $id );
3700
+
3701
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-marketing-btn-' . $id, 'tablet' );
3702
+
3703
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-marketing-btn-' . $id, 'mobile' );
3704
+
3705
+ return $desktop . $tablet . $mobile;
3706
+ }
3707
+
3708
+
3709
+ /**
3710
+ * Get Testimonial Js
3711
+ *
3712
+ * @since 1.6.0
3713
+ * @param array $attr The block attributes.
3714
+ * @param string $id The selector ID.
3715
+ */
3716
+ public static function get_testimonial_js( $attr, $id ) { // @codingStandardsIgnoreStart.
3717
+
3718
+ $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
3719
+
3720
+ $attr = array_merge( $defaults, (array) $attr );
3721
+
3722
+ $dots = ( "dots" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
3723
+ $arrows = ( "arrows" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
3724
+
3725
+ $slick_options = [
3726
+ 'slidesToShow' => $attr['columns'],
3727
+ 'slidesToScroll' => 1,
3728
+ 'autoplaySpeed' => $attr['autoplaySpeed'],
3729
+ 'autoplay' => $attr['autoplay'],
3730
+ 'infinite' => $attr['infiniteLoop'],
3731
+ 'pauseOnHover' => $attr['pauseOnHover'],
3732
+ 'speed' => $attr['transitionSpeed'],
3733
+ 'arrows' => $arrows,
3734
+ 'dots' => $dots,
3735
+ 'rtl' => false,
3736
+ 'prevArrow' => '<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button" style="border-color: '.$attr["arrowColor"].';border-radius:'.$attr["arrowBorderRadius"].'px;border-width:'.$attr["arrowBorderSize"].'px"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512" height ="'.$attr["arrowSize"].'" width = "'.$attr["arrowSize"].'" fill ="'.$attr["arrowColor"].'" ><path d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"></path></svg></button>',
3737
+ 'nextArrow' => '<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button" style="border-color: '.$attr["arrowColor"].';border-radius:'.$attr["arrowBorderRadius"].'px;border-width:'.$attr["arrowBorderSize"].'px"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 512" height ="'.$attr["arrowSize"].'" width = "'.$attr["arrowSize"].'" fill ="'.$attr["arrowColor"].'" ><path d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"></path></svg></button>',
3738
+ 'responsive' => [
3739
+ [
3740
+ 'breakpoint' => 1024,
3741
+ 'settings' => [
3742
+ 'slidesToShow' => $attr['tcolumns'],
3743
+ 'slidesToScroll' => 1,
3744
+ ],
3745
+ ],
3746
+ [
3747
+ 'breakpoint' => 767,
3748
+ 'settings' => [
3749
+ 'slidesToShow' => $attr['mcolumns'],
3750
+ 'slidesToScroll' => 1,
3751
+ ],
3752
+ ]
3753
+ ]
3754
+ ];
3755
+
3756
+ $settings = json_encode($slick_options);
3757
+ $selector = '#uagb-testimonial-'. $id;
3758
+ ?>
3759
+ if( jQuery( ".wp-block-uagb-testimonial" ).length > 0 ){
3760
+ return true
3761
+ } else {
3762
+ jQuery( "<?php echo $selector ?>" ).find( ".is-carousel" ).slick( <?php echo $settings ?> );
3763
+ }
3764
+ <?php
3765
+ // @codingStandardsIgnoreEnd.
3766
+ }
3767
+
3768
+ /**
3769
+ * Get Blockquote Js
3770
+ *
3771
+ * @since 1.8.2
3772
+ * @param array $attr The block attributes.
3773
+ * @param string $id The selector ID.
3774
+ */
3775
+ public static function get_blockquote_js( $attr, $id ) {
3776
+ // @codingStandardsIgnoreStart.
3777
+
3778
+ $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
3779
+
3780
+ $attr = array_merge( $defaults, (array) $attr );
3781
+
3782
+ $target = $attr['iconTargetUrl'];
3783
+
3784
+ $url = " " ;
3785
+
3786
+ if( $target == 'current' ){
3787
+ global $wp;
3788
+ $url = home_url(add_query_arg(array(),$wp->request));
3789
+ }else{
3790
+ $url = $attr['customUrl'];
3791
+ }
3792
+
3793
+ $via = isset( $attr['iconShareVia'] ) ? $attr['iconShareVia'] : '';
3794
+
3795
+ $selector = '#uagb-blockquote-'. $id;
3796
+
3797
+ ?>
3798
+ jQuery( "<?php echo $selector ?>" ).find( ".uagb-blockquote__tweet-button" ).click(function(){
3799
+ var content = jQuery("<?php echo $selector ?>").find(".uagb-blockquote__content").text();
3800
+ var request_url = "https://twitter.com/share?url="+ encodeURIComponent("<?php echo $url ?>")+"&text="+content+"&via="+("<?php echo $via;?>");
3801
+ window.open( request_url );
3802
+ });
3803
+ <?php
3804
+
3805
+ // @codingStandardsIgnoreEnd.
3806
+ }
3807
+
3808
+ /**
3809
+ * Get Social Share JS
3810
+ *
3811
+ * @since 1.8.1
3812
+ * @param string $id The selector ID.
3813
+ */
3814
+ public static function get_social_share_js( $id ) {
3815
+ $selector = '#uagb-social-share-' . $id;
3816
+ ?>
3817
+ jQuery( "<?php echo $selector; ?>" ).find( ".uagb-ss__link" ).click(function(){
3818
+ var social_url = jQuery( this ).data( "href" );
3819
+ var request_url = social_url + window.location.href ;
3820
+ window.open( request_url );
3821
+ });
3822
+ <?php
3823
+ }
3824
+
3825
+ /**
3826
+ * Adds Google fonts for Advanced Heading block.
3827
+ *
3828
+ * @since 1.9.1
3829
+ * @param array $attr the blocks attr.
3830
+ */
3831
+ public static function blocks_advanced_heading_gfont( $attr ) {
3832
+
3833
+ $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
3834
+ $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
3835
+ $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
3836
+ $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
3837
+
3838
+ $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
3839
+ $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
3840
+ $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
3841
+ $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
3842
+
3843
+ UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
3844
+ UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
3845
+ }
3846
+
3847
+
3848
+ /**
3849
+ * Adds Google fonts for CF7 Styler block.
3850
+ *
3851
+ * @since 1.10.0
3852
+ * @param array $attr the blocks attr.
3853
+ */
3854
+ public static function blocks_cf7_styler_gfont( $attr ) {
3855
+
3856
+ $label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
3857
+ $label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
3858
+ $label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
3859
+ $label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
3860
+
3861
+ $input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
3862
+ $input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
3863
+ $input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
3864
+ $input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
3865
+
3866
+ $radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
3867
+ $radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
3868
+ $radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
3869
+ $radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
3870
+
3871
+ $button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
3872
+ $button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
3873
+ $button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
3874
+ $button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
3875
+
3876
+ $msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
3877
+ $msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
3878
+ $msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
3879
+ $msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
3880
+
3881
+ $validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
3882
+ $validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
3883
+ $validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
3884
+ $validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
3885
+
3886
+ UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
3887
+ UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
3888
+
3889
+ UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
3890
+ UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
3891
+
3892
+ UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
3893
+ UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
3894
+ }
3895
+
3896
+ /**
3897
+ * Adds Google fonts for Marketing Button block.
3898
+ *
3899
+ * @since 1.11.0
3900
+ * @param array $attr the blocks attr.
3901
+ */
3902
+ public static function blocks_marketing_btn_gfont( $attr ) {
3903
+
3904
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
3905
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
3906
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
3907
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
3908
+
3909
+ $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
3910
+ $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
3911
+ $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
3912
+ $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
3913
+
3914
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
3915
+ UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
3916
+ }
3917
+
3918
+ /**
3919
+ * Adds Google fonts for Blockquote.
3920
+ *
3921
+ * @since 1.9.1
3922
+ * @param array $attr the blocks attr.
3923
+ */
3924
+ public static function blocks_blockquote_gfont( $attr ) {
3925
+
3926
+ $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
3927
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
3928
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
3929
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
3930
+
3931
+ $author_load_google_font = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
3932
+ $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
3933
+ $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
3934
+ $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
3935
+
3936
+ $tweet_btn_load_google_font = isset( $attr['tweetBtnLoadGoogleFonts'] ) ? $attr['tweetBtnLoadGoogleFonts'] : '';
3937
+ $tweet_btn_font_family = isset( $attr['tweetBtnFontFamily'] ) ? $attr['tweetBtnFontFamily'] : '';
3938
+ $tweet_btn_font_weight = isset( $attr['tweetBtnFontWeight'] ) ? $attr['tweetBtnFontWeight'] : '';
3939
+ $tweet_btn_font_subset = isset( $attr['tweetBtnFontSubset'] ) ? $attr['tweetBtnFontSubset'] : '';
3940
+
3941
+ UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
3942
+ UAGB_Helper::blocks_google_font( $author_load_google_font, $author_font_family, $author_font_weight, $author_font_subset );
3943
+ UAGB_Helper::blocks_google_font( $tweet_btn_load_google_font, $tweet_btn_font_family, $tweet_btn_font_weight, $tweet_btn_font_subset );
3944
+ }
3945
+
3946
+ /**
3947
+ * Adds Google fonts for Testimonial block.
3948
+ *
3949
+ * @since 1.9.1
3950
+ * @param array $attr the blocks attr.
3951
+ */
3952
+ public static function blocks_testimonial_gfont( $attr ) {
3953
+ $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
3954
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
3955
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
3956
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
3957
+
3958
+ $name_load_google_fonts = isset( $attr['nameLoadGoogleFonts'] ) ? $attr['nameLoadGoogleFonts'] : '';
3959
+ $name_font_family = isset( $attr['nameFontFamily'] ) ? $attr['nameFontFamily'] : '';
3960
+ $name_font_weight = isset( $attr['nameFontWeight'] ) ? $attr['nameFontWeight'] : '';
3961
+ $name_font_subset = isset( $attr['nameFontSubset'] ) ? $attr['nameFontSubset'] : '';
3962
+
3963
+ $company_load_google_fonts = isset( $attr['companyLoadGoogleFonts'] ) ? $attr['companyLoadGoogleFonts'] : '';
3964
+ $company_font_family = isset( $attr['companyFontFamily'] ) ? $attr['companyFontFamily'] : '';
3965
+ $company_font_weight = isset( $attr['companyFontWeight'] ) ? $attr['companyFontWeight'] : '';
3966
+ $company_font_subset = isset( $attr['companyFontSubset'] ) ? $attr['companyFontSubset'] : '';
3967
+
3968
+ UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
3969
+ UAGB_Helper::blocks_google_font( $name_load_google_fonts, $name_font_family, $name_font_family, $name_font_subset );
3970
+ UAGB_Helper::blocks_google_font( $company_load_google_fonts, $company_font_family, $company_font_family, $company_font_subset );
3971
+ }
3972
+
3973
+ /**
3974
+ * Adds Google fonts for Advanced Heading block.
3975
+ *
3976
+ * @since 1.9.1
3977
+ * @param array $attr the blocks attr.
3978
+ */
3979
+ public static function blocks_team_gfont( $attr ) {
3980
+
3981
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
3982
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
3983
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
3984
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
3985
+
3986
+ $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
3987
+ $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
3988
+ $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
3989
+ $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
3990
+
3991
+ $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
3992
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
3993
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
3994
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
3995
+
3996
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
3997
+ UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
3998
+ UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
3999
+ }
4000
+
4001
+ /**
4002
+ *
4003
+ * Adds Google fonts for Restaurant Menu block.
4004
+ *
4005
+ * @since 1.9.1
4006
+ * @param array $attr the blocks attr.
4007
+ */
4008
+ public static function blocks_restaurant_menu_gfont( $attr ) {
4009
+ $title_load_google_fonts = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4010
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4011
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4012
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4013
+
4014
+ $price_load_google_fonts = isset( $attr['priceLoadGoogleFonts'] ) ? $attr['priceLoadGoogleFonts'] : '';
4015
+ $price_font_family = isset( $attr['priceFontFamily'] ) ? $attr['priceFontFamily'] : '';
4016
+ $price_font_weight = isset( $attr['priceFontWeight'] ) ? $attr['priceFontWeight'] : '';
4017
+ $price_font_subset = isset( $attr['priceFontSubset'] ) ? $attr['priceFontSubset'] : '';
4018
+
4019
+ $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4020
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4021
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4022
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4023
+
4024
+ UAGB_Helper::blocks_google_font( $title_load_google_fonts, $title_font_family, $title_font_weight, $title_font_subset );
4025
+ UAGB_Helper::blocks_google_font( $price_load_google_fonts, $price_font_family, $price_font_weight, $price_font_subset );
4026
+ UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
4027
+ }
4028
+
4029
+ /**
4030
+ * Adds Google fonts for Content Timeline block.
4031
+ *
4032
+ * @since 1.9.1
4033
+ * @param array $attr the blocks attr.
4034
+ */
4035
+ public static function blocks_content_timeline_gfont( $attr ) {
4036
+ $head_load_google_fonts = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4037
+ $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4038
+ $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4039
+ $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4040
+
4041
+ $subheadload_google_fonts = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4042
+ $subheadfont_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4043
+ $subheadfont_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4044
+ $subheadfont_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4045
+
4046
+ $date_load_google_fonts = isset( $attr['dateLoadGoogleFonts'] ) ? $attr['dateLoadGoogleFonts'] : '';
4047
+ $date_font_family = isset( $attr['dateFontFamily'] ) ? $attr['dateFontFamily'] : '';
4048
+ $date_font_weight = isset( $attr['dateFontWeight'] ) ? $attr['dateFontWeight'] : '';
4049
+ $date_font_subset = isset( $attr['dateFontSubset'] ) ? $attr['dateFontSubset'] : '';
4050
+
4051
+ UAGB_Helper::blocks_google_font( $head_load_google_fonts, $head_font_family, $head_font_weight, $head_font_subset );
4052
+ UAGB_Helper::blocks_google_font( $subheadload_google_fonts, $subheadfont_family, $subheadfont_weight, $subheadfont_subset );
4053
+ UAGB_Helper::blocks_google_font( $date_load_google_fonts, $date_font_family, $date_font_weight, $date_font_subset );
4054
+ }
4055
+
4056
+ /**
4057
+ * Adds Google fonts for Post Timeline block.
4058
+ *
4059
+ * @since 1.9.1
4060
+ * @param array $attr the blocks attr.
4061
+ */
4062
+ public static function blocks_post_timeline_gfont( $attr ) {
4063
+ self::blocks_content_timeline_gfont( $attr );
4064
+
4065
+ $author_load_google_fonts = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
4066
+ $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
4067
+ $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
4068
+ $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
4069
+
4070
+ $cta_load_google_fonts = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4071
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4072
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4073
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4074
+
4075
+ UAGB_Helper::blocks_google_font( $author_load_google_fonts, $author_font_family, $author_font_weight, $author_font_subset );
4076
+ UAGB_Helper::blocks_google_font( $cta_load_google_fonts, $cta_font_family, $cta_font_weight, $cta_font_subset );
4077
+ }
4078
+
4079
+ /**
4080
+ * Adds Google fonts for Mulit Button's block.
4081
+ *
4082
+ * @since 1.9.1
4083
+ * @param array $attr the blocks attr.
4084
+ */
4085
+ public static function blocks_buttons_gfont( $attr ) {
4086
+
4087
+ $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
4088
+ $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
4089
+ $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
4090
+ $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
4091
+
4092
+ UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
4093
+ }
4094
+
4095
+ /**
4096
+ * Adds Google fonts for Icon List block
4097
+ *
4098
+ * @since 1.9.1
4099
+ * @param array $attr the blocks attr.
4100
+ */
4101
+ public static function blocks_icon_list_gfont( $attr ) {
4102
+
4103
+ $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
4104
+ $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
4105
+ $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
4106
+ $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
4107
+
4108
+ UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
4109
+ }
4110
+
4111
+ /**
4112
+ * Adds Google fonts for Post block.
4113
+ *
4114
+ * @since 1.9.1
4115
+ * @param array $attr the blocks attr.
4116
+ */
4117
+ public static function blocks_post_gfont( $attr ) {
4118
+
4119
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4120
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4121
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4122
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4123
+
4124
+ $meta_load_google_font = isset( $attr['metaLoadGoogleFonts'] ) ? $attr['metaLoadGoogleFonts'] : '';
4125
+ $meta_font_family = isset( $attr['metaFontFamily'] ) ? $attr['metaFontFamily'] : '';
4126
+ $meta_font_weight = isset( $attr['metaFontWeight'] ) ? $attr['metaFontWeight'] : '';
4127
+ $meta_font_subset = isset( $attr['metaFontSubset'] ) ? $attr['metaFontSubset'] : '';
4128
+
4129
+ $excerpt_load_google_font = isset( $attr['excerptLoadGoogleFonts'] ) ? $attr['excerptLoadGoogleFonts'] : '';
4130
+ $excerpt_font_family = isset( $attr['excerptFontFamily'] ) ? $attr['excerptFontFamily'] : '';
4131
+ $excerpt_font_weight = isset( $attr['excerptFontWeight'] ) ? $attr['excerptFontWeight'] : '';
4132
+ $excerpt_font_subset = isset( $attr['excerptFontSubset'] ) ? $attr['excerptFontSubset'] : '';
4133
+
4134
+ $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4135
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4136
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4137
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4138
+
4139
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4140
+
4141
+ UAGB_Helper::blocks_google_font( $meta_load_google_font, $meta_font_family, $meta_font_weight, $meta_font_subset );
4142
+
4143
+ UAGB_Helper::blocks_google_font( $excerpt_load_google_font, $excerpt_font_family, $excerpt_font_weight, $excerpt_font_subset );
4144
+
4145
+ UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4146
+ }
4147
+
4148
+ /**
4149
+ * Adds Google fonts for Advanced Heading block.
4150
+ *
4151
+ * @since 1.9.1
4152
+ * @param array $attr the blocks attr.
4153
+ */
4154
+ public static function blocks_info_box_gfont( $attr ) {
4155
+
4156
+ $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4157
+ $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4158
+ $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4159
+ $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4160
+
4161
+ $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
4162
+ $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
4163
+ $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
4164
+ $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
4165
+
4166
+ $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4167
+ $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4168
+ $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4169
+ $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4170
+
4171
+ $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4172
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4173
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4174
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4175
+
4176
+ UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4177
+ UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
4178
+ UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
4179
+ UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
4180
+ }
4181
+
4182
+ /**
4183
+ * Adds Google fonts for Call To Action block.
4184
+ *
4185
+ * @since 1.9.1
4186
+ * @param array $attr the blocks attr.
4187
+ */
4188
+ public static function blocks_call_to_action_gfont( $attr ) {
4189
+
4190
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4191
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4192
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4193
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4194
+
4195
+ $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4196
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4197
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4198
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4199
+
4200
+ $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4201
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4202
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4203
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4204
+
4205
+ UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4206
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4207
+ UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
4208
+ }
4209
+ }
4210
+ }
classes/class-uagb-config.php CHANGED
@@ -1,1486 +1,1486 @@
1
- <?php
2
- /**
3
- * UAGB Config.
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! class_exists( 'UAGB_Config' ) ) {
9
-
10
- /**
11
- * Class UAGB_Config.
12
- */
13
- class UAGB_Config {
14
-
15
- /**
16
- * Block Attributes
17
- *
18
- * @var block_attributes
19
- */
20
- public static $block_attributes = null;
21
-
22
- /**
23
- * Get Widget List.
24
- *
25
- * @since 0.0.1
26
- *
27
- * @return array The Widget List.
28
- */
29
- public static function get_block_attributes() {
30
-
31
- if ( null === self::$block_attributes ) {
32
- self::$block_attributes = array(
33
- 'uagb/advanced-heading' => array(
34
- 'slug' => '',
35
- 'title' => __( 'Advanced Heading', 'ultimate-addons-for-gutenberg' ),
36
- 'description' => __( 'This block lets you add a combination of a heading and a sub-heading with a separator in between.', 'ultimate-addons-for-gutenberg' ),
37
- 'default' => true,
38
- 'attributes' => array(
39
- 'headingAlign' => 'center',
40
- 'headingColor' => '',
41
- 'subHeadingColor' => '',
42
- 'separatorColor' => '',
43
- 'seperatorStyle' => 'solid',
44
- 'separatorHeight' => '',
45
- 'separatorWidth' => '',
46
- 'separatorWidthType' => '%',
47
- 'headFontFamily' => '',
48
- 'headLoadGoogleFonts' => false,
49
- 'headFontWeight' => '',
50
- 'headFontSubset' => '',
51
- 'headFontSize' => '',
52
- 'headFontSizeType' => 'px',
53
- 'headFontSizeTablet' => '',
54
- 'headFontSizeMobile' => '',
55
- 'headLineHeight' => '',
56
- 'headLineHeightType' => 'em',
57
- 'headLineHeightTablet' => '',
58
- 'headLineHeightMobile' => '',
59
- 'subHeadFontFamily' => '',
60
- 'subHeadLoadGoogleFonts' => false,
61
- 'subHeadFontWeight' => '',
62
- 'subHeadFontSubset' => '',
63
- 'subHeadFontSize' => '',
64
- 'subHeadFontSizeType' => 'px',
65
- 'subHeadFontSizeTablet' => '',
66
- 'subHeadFontSizeMobile' => '',
67
- 'subHeadLineHeight' => '',
68
- 'subHeadLineHeightType' => 'em',
69
- 'subHeadLineHeightTablet' => '',
70
- 'subHeadLineHeightMobile' => '',
71
- 'headSpace' => 15,
72
- 'separatorSpace' => 15,
73
- ),
74
- ),
75
- 'uagb/columns' => array(
76
- 'slug' => '',
77
- 'title' => __( 'Advanced Columns', 'ultimate-addons-for-gutenberg' ),
78
- 'description' => __( 'This block gives you advanced options to insert a number of columns within a single row.', 'ultimate-addons-for-gutenberg' ),
79
- 'default' => true,
80
- 'attributes' => array(
81
- 'block_id' => '',
82
- 'columns' => '2',
83
- 'align' => '',
84
- 'vAlign' => '',
85
- 'stack' => 'mobile',
86
- 'topPadding' => '20',
87
- 'bottomPadding' => '20',
88
- 'leftPadding' => '20',
89
- 'rightPadding' => '20',
90
- 'topMargin' => '0',
91
- 'bottomMargin' => '0',
92
- 'topPaddingTablet' => '',
93
- 'bottomPaddingTablet' => '',
94
- 'leftPaddingTablet' => '',
95
- 'rightPaddingTablet' => '',
96
- 'topPaddingMobile' => '',
97
- 'bottomPaddingMobile' => '',
98
- 'leftPaddingMobile' => '',
99
- 'rightPaddingMobile' => '',
100
- 'topMarginMobile' => '',
101
- 'bottomMarginMobile' => '',
102
- 'topMarginTablet' => '',
103
- 'bottomMarginTablet' => '',
104
- 'contentWidth' => 'theme',
105
- 'width' => '900',
106
- 'tag' => 'section',
107
- 'backgroundType' => 'none',
108
- 'backgroundImage' => '',
109
- 'backgroundPosition' => 'center-center',
110
- 'backgroundSize' => 'cover',
111
- 'backgroundRepeat' => 'no-repeat',
112
- 'backgroundAttachment' => 'scroll',
113
- 'backgroundVideo' => '',
114
- 'backgroundColor' => '',
115
- 'gradientColor1' => '',
116
- 'gradientColor2' => '',
117
- 'gradientType' => 'linear',
118
- 'gradientLocation1' => '0',
119
- 'gradientLocation2' => '100',
120
- 'gradientAngle' => '0',
121
- 'backgroundOpacity' => '',
122
- 'backgroundVideoOpacity' => '50',
123
- 'backgroundVideoColor' => '',
124
- 'backgroundImageColor' => '',
125
- 'borderStyle' => 'none',
126
- 'borderWidth' => '1',
127
- 'borderRadius' => '',
128
- 'borderColor' => '',
129
- 'columnGap' => '10',
130
- 'bottomType' => 'none',
131
- 'bottomColor' => '#333',
132
- 'bottomHeight' => '',
133
- 'bottomWidth' => '',
134
- 'topType' => 'none',
135
- 'topColor' => '#333',
136
- 'topHeight' => '',
137
- 'topWidth' => '',
138
- 'bottomFlip' => '',
139
- 'topFlip' => '',
140
- ),
141
- ),
142
- 'uagb/column' => array(
143
- 'slug' => '',
144
- 'title' => __( 'Column', 'ultimate-addons-for-gutenberg' ),
145
- 'description' => __( 'This block is an immediate child of Advanced Columns.', 'ultimate-addons-for-gutenberg' ),
146
- 'default' => true,
147
- 'is_child' => true,
148
- 'attributes' => array(
149
- 'block_id' => '',
150
- 'topPadding' => '',
151
- 'bottomPadding' => '',
152
- 'leftPadding' => '',
153
- 'rightPadding' => '',
154
- 'topMargin' => '',
155
- 'bottomMargin' => '',
156
- 'leftMargin' => '',
157
- 'rightMargin' => '',
158
- 'topPaddingTablet' => '',
159
- 'bottomPaddingTablet' => '',
160
- 'leftPaddingTablet' => '',
161
- 'rightPaddingTablet' => '',
162
- 'topPaddingMobile' => '',
163
- 'bottomPaddingMobile' => '',
164
- 'leftPaddingMobile' => '',
165
- 'rightPaddingMobile' => '',
166
- 'topMarginMobile' => '',
167
- 'bottomMarginMobile' => '',
168
- 'leftMarginMobile' => '',
169
- 'rightMarginMobile' => '',
170
- 'topMarginTablet' => '',
171
- 'bottomMarginTablet' => '',
172
- 'leftMarginTablet' => '',
173
- 'rightMarginTablet' => '',
174
- 'colWidth' => '',
175
- 'colWidthTablet' => '',
176
- 'colWidthMobile' => '',
177
- 'backgroundType' => 'none',
178
- 'backgroundImage' => '',
179
- 'backgroundPosition' => 'center-center',
180
- 'backgroundSize' => 'cover',
181
- 'backgroundRepeat' => 'no-repeat',
182
- 'backgroundAttachment' => 'scroll',
183
- 'backgroundColor' => '',
184
- 'gradientColor1' => '',
185
- 'gradientColor2' => '',
186
- 'gradientType' => 'linear',
187
- 'gradientLocation1' => 0,
188
- 'gradientLocation2' => 100,
189
- 'gradientAngle' => 0,
190
- 'backgroundOpacity' => '',
191
- 'backgroundImageColor' => '',
192
- 'borderStyle' => 'none',
193
- 'borderWidth' => 1,
194
- 'borderRadius' => '',
195
- 'borderColor' => '',
196
- 'align' => 'center',
197
- 'alignMobile' => '',
198
- 'alignTablet' => '',
199
- ),
200
- ),
201
- 'uagb/blockquote' => array(
202
- 'slug' => '',
203
- 'title' => __( 'Blockquote', 'ultimate-addons-for-gutenberg' ),
204
- 'description' => __( 'This block allows you to display your Blockquote.', 'ultimate-addons-for-gutenberg' ),
205
- 'default' => true,
206
- 'attributes' => array(
207
- 'block_id ' => '',
208
- 'skinStyle' => 'border',
209
- 'align' => 'left',
210
- 'descColor' => '',
211
- 'descFontSize' => '',
212
- 'descFontSizeType' => 'px',
213
- 'descFontSizeTablet' => '',
214
- 'descFontSizeMobile' => '',
215
- 'descFontFamily' => '',
216
- 'descFontWeight' => '',
217
- 'descFontSubset' => '',
218
- 'descLineHeightType' => 'em
219
- ',
220
- 'descLineHeight' => '',
221
- 'descLineHeightTablet' => '',
222
- 'descLineHeightMobile' => '',
223
- 'descLoadGoogleFonts' => false,
224
- 'descSpace' => 20,
225
- 'authorColor' => '#888888',
226
- 'authorFontSize' => '',
227
- 'authorFontSizeType' => 'px',
228
- 'authorFontSizeTablet' => '',
229
- 'authorFontSizeMobile' => '',
230
- 'authorFontFamily' => '',
231
- 'authorFontWeight' => '',
232
- 'authorFontSubset' => '',
233
- 'authorLineHeightType' => 'em
234
- ',
235
- 'authorLineHeight' => '',
236
- 'authorLineHeightTablet' => '',
237
- 'authorLineHeightMobile' => '',
238
- 'authorLoadGoogleFonts' => false,
239
- 'authorSpace' => 10,
240
- 'authorImageWidth' => 40,
241
- 'authorImgBorderRadius' => 100,
242
- 'authorImgPosition' => 'right',
243
- 'stack' => 'tablet',
244
- 'enableTweet' => true,
245
- 'iconView' => 'icon_text',
246
- 'iconSkin' => 'link',
247
- 'tweetLinkColor' => '#1DA1F2',
248
- 'tweetBtnColor' => '#fff',
249
- 'tweetBtnBgColor' => '#1DA1F2',
250
- 'tweetBtnHoverColor' => '',
251
- 'tweetBtnBgHoverColor' => '#1DA1F2',
252
- 'tweetBtnFontSize' => 15,
253
- 'tweetBtnFontSizeType' => 'px',
254
- 'tweetBtnFontSizeTablet' => '',
255
- 'tweetBtnFontSizeMobile' => '',
256
- 'tweetBtnFontFamily' => '',
257
- 'tweetBtnFontWeight' => '',
258
- 'tweetBtnFontSubset' => '',
259
- 'tweetBtnLineHeightType' => 'em',
260
- 'tweetBtnLineHeight' => '',
261
- 'tweetBtnLineHeightTablet' => '',
262
- 'tweetBtnLineHeightMobile' => '',
263
- 'tweetBtnLoadGoogleFonts' => false,
264
- 'tweetBtnHrPadding' => 10,
265
- 'tweetBtnVrPadding' => 10,
266
- 'tweetIconSpacing' => 10,
267
- 'borderColor' => '#abb8c3',
268
- 'borderStyle' => 'solid',
269
- 'borderWidth' => 4,
270
- 'borderGap' => 15,
271
- 'verticalPadding' => '',
272
- 'quoteStyle' => 'style_1',
273
- 'quoteColor' => '#abb8c3',
274
- 'quoteSize' => 25,
275
- 'quoteSizeType' => 'px',
276
- 'quoteSizeTablet' => '',
277
- 'quoteSizeMobile' => '',
278
- 'quoteTopMargin' => '',
279
- 'quoteBottomMargin' => '',
280
- 'quoteLeftMargin' => '',
281
- 'quoteRightMargin' => 20,
282
- 'quoteBorderRadius' => 100,
283
- 'quoteBgColor' => '#333',
284
- 'quoteHoverColor' => '',
285
- 'quoteBgHoverColor' => '',
286
- 'borderHoverColor' => '',
287
- 'iconTargetUrl' => 'current',
288
- 'customUrl' => '',
289
- 'iconShareVia' => '',
290
- 'quotePadding' => 10,
291
- 'quotePaddingType' => 'px',
292
- 'quotePaddingTablet' => '',
293
- 'quotePaddingMobile' => '',
294
- ),
295
- ),
296
- 'uagb/call-to-action' => array(
297
- 'slug' => '',
298
- 'title' => __( 'Call To Action', 'ultimate-addons-for-gutenberg' ),
299
- 'description' => __( 'This block allows you to place an CTA along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
300
- 'default' => true,
301
- 'attributes' => array(
302
- 'textAlign' => 'left',
303
- 'titleColor' => '',
304
- 'descColor' => '',
305
- 'ctaPosition' => 'right',
306
- 'titleTag' => '',
307
- 'titleFontSize' => '',
308
- 'titleFontSizeType' => 'px',
309
- 'titleFontSizeMobile' => '',
310
- 'titleFontSizeTablet' => '',
311
- 'titleFontFamily' => '',
312
- 'titleFontWeight' => '',
313
- 'titleFontSubset' => '',
314
- 'titleLineHeightType' => 'em',
315
- 'titleLineHeight' => '',
316
- 'titleLineHeightTablet' => '',
317
- 'titleLineHeightMobile' => '',
318
- 'titleLoadGoogleFonts' => false,
319
- 'descFontSize' => '',
320
- 'descFontSizeType' => 'px',
321
- 'descFontSizeMobile' => '',
322
- 'descFontSizeTablet' => '',
323
- 'descFontFamily' => '',
324
- 'descFontWeight' => '',
325
- 'descFontSubset' => '',
326
- 'descLineHeightType' => 'em',
327
- 'descLineHeight' => '',
328
- 'descLineHeightTablet' => '',
329
- 'descLineHeightMobile' => '',
330
- 'descLoadGoogleFonts' => false,
331
- 'titleSpace' => 10,
332
- 'descSpace' => 10,
333
- 'buttonAlign' => 'top',
334
- 'ctaTarget' => false,
335
- 'ctaIconPosition' => 'after',
336
- 'ctaIconSpace' => 5,
337
- 'ctaType' => 'button',
338
- 'ctaLink' => '#',
339
- 'ctaFontSize' => '',
340
- 'ctaFontSizeType' => 'px',
341
- 'ctaFontSizeMobile' => '',
342
- 'ctaFontSizeTablet' => '',
343
- 'ctaFontFamily' => '',
344
- 'ctaFontWeight' => '',
345
- 'ctaFontSubset' => '',
346
- 'ctaLoadGoogleFonts' => false,
347
- 'ctaBtnLinkColor' => '#333',
348
- 'ctaBgColor' => 'transparent',
349
- 'ctaBgHoverColor' => 'transparent',
350
- 'ctaBorderColor' => '#333',
351
- 'ctaBorderhoverColor' => '',
352
- 'ctaBorderStyle' => 'solid',
353
- 'ctaBtnVertPadding' => 10,
354
- 'ctaBtnHrPadding' => 14,
355
- 'ctaBorderWidth' => 1,
356
- 'ctaBorderRadius' => 0,
357
- 'stack' => 'tablet',
358
- 'showTitle' => true,
359
- 'showDesc' => true,
360
- 'ctaLeftSpace' => 5,
361
- 'ctaRightSpace' => 5,
362
- 'contentWidth' => 70,
363
- 'ctaLinkHoverColor' => '',
364
- ),
365
- ),
366
-
367
- 'uagb/cf7-styler' => array(
368
- 'slug' => '',
369
- 'title' => __( 'Contact Form 7 Styler', 'ultimate-addons-for-gutenberg' ),
370
- 'description' => __( 'This block allows you to add and style your Contact Form 7 forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
371
- 'default' => true,
372
- 'attributes' => array(
373
- 'block_id' => '',
374
- 'align' => 'left',
375
- 'formId' => '0',
376
- 'fieldStyle' => 'box',
377
- 'fieldHrPadding' => 10,
378
- 'fieldVrPadding' => 10,
379
- 'fieldBgColor' => '#fafafa',
380
- 'fieldLabelColor' => '#333',
381
- 'fieldInputColor' => '#333',
382
- 'fieldBorderStyle' => 'solid',
383
- 'fieldBorderWidth' => 1,
384
- 'fieldBorderRadius' => 0,
385
- 'fieldBorderColor' => '#eeeeee',
386
- 'fieldBorderFocusColor' => '',
387
- 'buttonAlignment' => 'left',
388
- 'buttonVrPadding' => 10,
389
- 'buttonHrPadding' => 25,
390
- 'buttonTextColor' => '#333',
391
- 'buttonBgColor' => 'transparent',
392
- 'buttonTextHoverColor' => '',
393
- 'buttonBgHoverColor' => '',
394
- 'buttonBorderStyle' => 'solid',
395
- 'buttonBorderWidth' => 1,
396
- 'buttonBorderRadius' => 0,
397
- 'buttonBorderColor' => '#333',
398
- 'buttonBorderHoverColor' => '',
399
- 'fieldSpacing' => '',
400
- 'fieldLabelSpacing' => '',
401
- 'labelFontSize' => '',
402
- 'labelFontSizeType' => 'px',
403
- 'labelFontSizeTablet' => '',
404
- 'labelFontSizeMobile' => '',
405
- 'labelFontFamily' => '',
406
- 'labelFontWeight' => '',
407
- 'labelFontSubset' => '',
408
- 'labelLineHeightType' => 'px',
409
- 'labelLineHeight' => '',
410
- 'labelLineHeightTablet' => '',
411
- 'labelLineHeightMobile' => '',
412
- 'labelLoadGoogleFonts' => false,
413
- 'inputFontSize' => '',
414
- 'inputFontSizeType' => 'px',
415
- 'inputFontSizeTablet' => '',
416
- 'inputFontSizeMobile' => '',
417
- 'inputFontFamily' => '',
418
- 'inputFontWeight' => '',
419
- 'inputFontSubset' => '',
420
- 'inputLineHeightType' => 'px',
421
- 'inputLineHeight' => '',
422
- 'inputLineHeightTablet' => '',
423
- 'inputLineHeightMobile' => '',
424
- 'inputLoadGoogleFonts' => false,
425
- 'buttonFontSize' => '',
426
- 'buttonFontSizeType' => 'px',
427
- 'buttonFontSizeTablet' => '',
428
- 'buttonFontSizeMobile' => '',
429
- 'buttonFontFamily' => '',
430
- 'buttonFontWeight' => '',
431
- 'buttonFontSubset' => '',
432
- 'buttonLineHeightType' => 'px',
433
- 'buttonLineHeight' => '',
434
- 'buttonLineHeightTablet' => '',
435
- 'buttonLineHeightMobile' => '',
436
- 'buttonLoadGoogleFonts' => false,
437
- 'enableOveride' => true,
438
- 'radioCheckSize' => '',
439
- 'radioCheckBgColor' => '',
440
- 'radioCheckSelectColor' => '',
441
- 'radioCheckLableColor' => '',
442
- 'radioCheckBorderColor' => '#abb8c3',
443
- 'radioCheckBorderWidth' => '',
444
- 'radioCheckBorderRadius' => '',
445
- 'radioCheckFontSize' => '',
446
- 'radioCheckFontSizeType' => 'px',
447
- 'radioCheckFontSizeTablet' => '',
448
- 'radioCheckFontSizeMobile' => '',
449
- 'radioCheckFontFamily' => '',
450
- 'radioCheckFontWeight' => '',
451
- 'radioCheckFontSubset' => '',
452
- 'radioCheckLineHeightType' => 'px',
453
- 'radioCheckLineHeight' => '',
454
- 'radioCheckLineHeightTablet' => '',
455
- 'radioCheckLineHeightMobile' => '',
456
- 'radioCheckLoadGoogleFonts' => false,
457
- 'validationMsgPosition' => 'default',
458
- 'validationMsgColor' => '#ff0000',
459
- 'validationMsgBgColor' => '',
460
- 'enableHighlightBorder' => false,
461
- 'highlightBorderColor' => '#ff0000',
462
- 'validationMsgFontSize' => '',
463
- 'validationMsgFontSizeType' => 'px',
464
- 'validationMsgFontSizeTablet' => '',
465
- 'validationMsgFontSizeMobile' => '',
466
- 'validationMsgFontFamily' => '',
467
- 'validationMsgFontWeight' => '',
468
- 'validationMsgFontSubset' => '',
469
- 'validationMsgLineHeightType' => 'px',
470
- 'validationMsgLineHeight' => '',
471
- 'validationMsgLineHeightTablet' => '',
472
- 'validationMsgLineHeightMobile' => '',
473
- 'validationMsgLoadGoogleFonts' => false,
474
- 'successMsgColor' => '',
475
- 'successMsgBgColor' => '',
476
- 'successMsgBorderColor' => '',
477
- 'errorMsgColor' => '',
478
- 'errorMsgBgColor' => '',
479
- 'errorMsgBorderColor' => '',
480
- 'msgBorderSize' => '',
481
- 'msgBorderRadius' => '',
482
- 'msgVrPadding' => '',
483
- 'msgHrPadding' => '',
484
- 'msgFontSize' => '',
485
- 'msgFontSizeType' => 'px',
486
- 'msgFontSizeTablet' => '',
487
- 'msgFontSizeMobile' => '',
488
- 'msgFontFamily' => '',
489
- 'msgFontWeight' => '',
490
- 'msgFontSubset' => '',
491
- 'msgLineHeightType' => 'px',
492
- 'msgLineHeight' => '',
493
- 'msgLineHeightTablet' => '',
494
- 'msgLineHeightMobile' => '',
495
- 'msgLoadGoogleFonts' => false,
496
- 'radioCheckBorderRadiusType' => 'px',
497
- 'msgBorderRadiusType' => 'px',
498
- 'fieldBorderRadiusType' => 'px',
499
- 'buttonBorderRadiusType' => 'px',
500
- ),
501
- ),
502
- 'uagb/content-timeline' => array(
503
- 'slug' => '',
504
- 'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ),
505
- 'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ),
506
- 'default' => true,
507
- 'attributes' => array(
508
- 'align' => 'center',
509
- 'headingColor' => '',
510
- 'subHeadingColor' => '',
511
- 'separatorBg' => '#eee',
512
- 'backgroundColor' => '#eee',
513
- 'separatorColor' => '#eee',
514
- 'separatorFillColor' => '#61ce70',
515
- 'separatorBorder' => '#eee',
516
- 'borderFocus' => '#5cb85c',
517
- 'horizontalSpace' => 10,
518
- 'verticalSpace' => 15,
519
- 'headFontSizeType' => 'px',
520
- 'headFontSize' => '',
521
- 'headFontSizeTablet' => '',
522
- 'headFontSizeMobile' => '',
523
- 'headFontFamily' => '',
524
- 'headFontWeight' => '',
525
- 'headFontSubset' => '',
526
- 'headLineHeightType' => 'em',
527
- 'headLineHeight' => '',
528
- 'headLineHeightTablet' => '',
529
- 'headLineHeightMobile' => '',
530
- 'headLoadGoogleFonts' => false,
531
- 'timelinAlignment' => 'center',
532
- 'arrowlinAlignment' => 'center',
533
- 'subHeadFontSizeType' => 'px',
534
- 'subHeadFontSize' => '',
535
- 'subHeadFontSizeTablet' => '',
536
- 'subHeadFontSizeMobile' => '',
537
- 'subHeadFontFamily' => '',
538
- 'subHeadFontWeight' => '',
539
- 'subHeadFontSubset' => '',
540
- 'subHeadLineHeightType' => 'em',
541
- 'subHeadLineHeight' => '',
542
- 'subHeadLineHeightTablet' => '',
543
- 'subHeadLineHeightMobile' => '',
544
- 'subHeadLoadGoogleFonts' => false,
545
- 'headSpace' => 5,
546
- 'separatorwidth' => 3,
547
- 'borderwidth' => 0,
548
- 'iconColor' => '#333',
549
- 'iconFocus' => '#fff',
550
- 'iconBgFocus' => '#61ce70',
551
- 'dateColor' => '#333',
552
- 'dateFontsizeType' => 'px',
553
- 'dateFontsize' => '12',
554
- 'dateFontsizeTablet' => '',
555
- 'dateFontsizeMobile' => '',
556
- 'dateFontFamily' => '',
557
- 'dateFontWeight' => '',
558
- 'dateFontSubset' => '',
559
- 'dateLineHeightType' => 'em',
560
- 'dateLineHeight' => '',
561
- 'dateLineHeightTablet' => '',
562
- 'dateLineHeightMobile' => '',
563
- 'dateLoadGoogleFonts' => false,
564
- 'connectorBgsize' => 35,
565
- 'dateBottomspace' => 5,
566
- 'borderRadius' => 2,
567
- 'bgPadding' => 20,
568
- 'iconSize' => 12,
569
- 'stack' => 'tablet',
570
- ),
571
- ),
572
- 'uagb/google-map' => array(
573
- 'slug' => '',
574
- 'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ),
575
- 'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ),
576
- 'default' => true,
577
- 'attributes' => array(
578
- 'block_id' => '',
579
- 'height' => '300',
580
- ),
581
- ),
582
- 'uagb/icon-list' => array(
583
- 'slug' => '',
584
- 'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ),
585
- 'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ),
586
- 'default' => true,
587
- 'attributes' => array(
588
- 'align' => 'left',
589
- 'icon_count' => '1',
590
- 'icons' => array(
591
- array(
592
- 'label' => __( 'Label #1', 'ultimate-addons-for-gutenberg' ),
593
- 'image_icon' => 'icon',
594
- 'icon' => 'fab fa-facebook',
595
- 'image' => '',
596
- 'icon_color' => '#3a3a3a',
597
- 'icon_hover_color' => '#3a3a3a',
598
- 'icon_bg_color' => '',
599
- 'icon_bg_hover_color' => '',
600
- 'label_color' => '',
601
- 'label_hover_color' => '',
602
- 'link' => '#',
603
- 'target' => false,
604
- ),
605
- ),
606
- 'gap' => '10',
607
- 'inner_gap' => '15',
608
- 'size' => '40',
609
- 'sizeType' => 'px',
610
- 'sizeMobile' => '',
611
- 'sizeTablet' => '',
612
- 'bgSize' => '0',
613
- 'borderRadius' => '0',
614
- 'fontSize' => '',
615
- 'fontSizeType' => 'px',
616
- 'fontSizeMobile' => '',
617
- 'fontSizeTablet' => '',
618
- 'lineHeight' => '',
619
- 'lineHeightType' => 'em',
620
- 'lineHeightMobile' => '',
621
- 'lineHeightTablet' => '',
622
- 'fontFamily' => '',
623
- 'fontWeight' => '',
624
- 'fontSubset' => '',
625
- 'loadGoogleFonts' => false,
626
- 'icon_layout' => 'vertical',
627
- 'stack' => 'none',
628
- ),
629
- ),
630
- 'uagb/info-box' => array(
631
- 'slug' => '',
632
- 'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ),
633
- 'description' => __( 'This block allows you to place an image or icon along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
634
- 'default' => true,
635
- 'attributes' => array(
636
- 'headingAlign' => 'center',
637
- 'headingColor' => '',
638
- 'subHeadingColor' => '',
639
- 'prefixColor' => '',
640
- 'prefixFontSize' => '',
641
- 'prefixFontSizeType' => 'px',
642
- 'prefixFontSizeTablet' => '',
643
- 'prefixFontSizeMobile' => '',
644
- 'prefixFontFamily' => '',
645
- 'prefixFontWeight' => '',
646
- 'prefixFontSubset' => '',
647
- 'prefixLineHeightType' => 'em',
648
- 'prefixLineHeight' => '',
649
- 'prefixLineHeightTablet' => '',
650
- 'prefixLineHeightMobile' => '',
651
- 'prefixLoadGoogleFonts' => false,
652
- 'headFontSize' => '',
653
- 'headFontSizeType' => 'px',
654
- 'headFontSizeTablet' => '',
655
- 'headFontSizeMobile' => '',
656
- 'headFontFamily' => '',
657
- 'headFontWeight' => '',
658
- 'headFontSubset' => '',
659
- 'headLineHeightType' => 'em',
660
- 'headLineHeight' => '',
661
- 'headLineHeightTablet' => '',
662
- 'headLineHeightMobile' => '',
663
- 'headLoadGoogleFonts' => false,
664
- 'subHeadFontSize' => '',
665
- 'subHeadFontSizeType' => 'px',
666
- 'subHeadFontSizeTablet' => '',
667
- 'subHeadFontSizeMobile' => '',
668
- 'subHeadFontFamily' => '',
669
- 'subHeadFontWeight' => '',
670
- 'subHeadFontSubset' => '',
671
- 'subHeadLineHeightType' => 'em',
672
- 'subHeadLineHeight' => '',
673
- 'subHeadLineHeightTablet' => '',
674
- 'subHeadLineHeightMobile' => '',
675
- 'subHeadLoadGoogleFonts' => false,
676
- 'separatorWidth' => '',
677
- 'separatorHeight' => '',
678
- 'separatorWidthType' => '%',
679
- 'headSpace' => '10',
680
- 'separatorSpace' => '10',
681
- 'subHeadSpace' => '10',
682
- 'icon' => '',
683
- 'iconColor' => '#333',
684
- 'iconSize' => '40',
685
- 'iconimgPosition' => 'above-title',
686
- 'block_id' => '',
687
- 'iconHover' => '',
688
- 'iconimgBorderRadius' => '0',
689
- 'seperatorStyle' => 'solid',
690
- 'seperatorWidth' => '30',
691
- 'seperatorColor' => '#333',
692
- 'seperatorThickness' => '2',
693
- 'ctaLinkColor' => '#333',
694
- 'ctaFontSize' => '',
695
- 'ctaFontSizeType' => 'px',
696
- 'ctaFontSizeMobile' => '',
697
- 'ctaFontSizeTablet' => '',
698
- 'ctaFontFamily' => '',
699
- 'ctaFontWeight' => '',
700
- 'ctaFontSubset' => '',
701
- 'ctaLoadGoogleFonts' => false,
702
- 'ctaBtnLinkColor' => '#333',
703
- 'ctaBgColor' => 'transparent',
704
- 'ctaBtnVertPadding' => '10',
705
- 'ctaBtnHrPadding' => '14',
706
- 'ctaBorderStyle' => 'solid',
707
- 'ctaBorderColor' => '#333',
708
- 'ctaBorderWidth' => '1',
709
- 'ctaBorderRadius' => '0',
710
- 'prefixSpace' => '5',
711
- 'iconLeftMargin' => '5',
712
- 'iconRightMargin' => '10',
713
- 'iconTopMargin' => '5',
714
- 'iconBottomMargin' => '5',
715
- 'imageSize' => 'thumbnail',
716
- 'imageWidth' => '120',
717
- 'seperatorSpace' => '15',
718
- 'ctaLinkHoverColor' => '',
719
- 'ctaBgHoverColor' => '',
720
- 'ctaBorderhoverColor' => '',
721
- 'ctaIconSpace' => '5',
722
- ),
723
- ),
724
- 'uagb/marketing-button' => array(
725
- 'slug' => '',
726
- 'title' => __( 'Marketing Button', 'ultimate-addons-for-gutenberg' ),
727
- 'description' => __( 'This block allows you to place a Marketing Button with small description.', 'ultimate-addons-for-gutenberg' ),
728
- 'default' => true,
729
- 'attributes' => array(
730
- 'block_id' => '',
731
- 'align' => 'center',
732
- 'textAlign' => 'center',
733
- 'link' => '#',
734
- 'linkTarget' => false,
735
- 'titleSpace' => 0,
736
- 'borderStyle' => 'solid',
737
- 'borderWidth' => 1,
738
- 'borderRadius' => '',
739
- 'borderColor' => '#333',
740
- 'borderHoverColor' => '',
741
- 'vPadding' => 8,
742
- 'hPadding' => 20,
743
- 'backgroundType' => 'color',
744
- 'backgroundColor' => '#eeeeee',
745
- 'backgroundHoverColor' => '',
746
- 'gradientColor1' => '',
747
- 'gradientColor2' => '',
748
- 'gradientType' => 'linear',
749
- 'gradientLocation1' => 0,
750
- 'gradientLocation2' => 100,
751
- 'gradientAngle' => 0,
752
- 'backgroundOpacity' => '',
753
- 'backgroundHoverOpacity' => '',
754
- 'titleColor' => '#333',
755
- 'titleHoverColor' => '',
756
- 'iconColor' => '#333',
757
- 'iconHoverColor' => '',
758
- 'iconPosition' => 'before',
759
- 'prefixColor' => '#333',
760
- 'prefixHoverColor' => '',
761
- 'iconSpace' => 10,
762
- 'titleLoadGoogleFonts' => false,
763
- 'titleFontFamily' => 'Default',
764
- 'titleFontWeight' => '',
765
- 'titleFontSubset' => '',
766
- 'titleFontSize' => 20,
767
- 'titleFontSizeType' => 'px',
768
- 'titleFontSizeTablet' => 20,
769
- 'titleFontSizeMobile' => 20,
770
- 'titleLineHeightType' => 'em',
771
- 'titleLineHeight' => '',
772
- 'titleLineHeightTablet' => '',
773
- 'titleLineHeightMobile' => '',
774
- 'prefixLoadGoogleFonts' => false,
775
- 'prefixFontFamily' => 'Default',
776
- 'prefixFontWeight' => '',
777
- 'prefixFontSubset' => '',
778
- 'prefixFontSize' => 14,
779
- 'prefixFontSizeType' => 'px',
780
- 'prefixFontSizeTablet' => 14,
781
- 'prefixFontSizeMobile' => 14,
782
- 'prefixLineHeightType' => 'em',
783
- 'prefixLineHeight' => '',
784
- 'prefixLineHeightTablet' => '',
785
- 'prefixLineHeightMobile' => '',
786
- 'iconFontSize' => 20,
787
- 'iconFontSizeType' => 'px',
788
- 'iconFontSizeTablet' => 20,
789
- 'iconFontSizeMobile' => 20,
790
- ),
791
- ),
792
- 'uagb/buttons' => array(
793
- 'slug' => '',
794
- 'title' => __( 'Multi Buttons', 'ultimate-addons-for-gutenberg' ),
795
- 'description' => __( 'This block allows you to add multiple buttons with a single block.', 'ultimate-addons-for-gutenberg' ),
796
- 'default' => true,
797
- 'attributes' => array(
798
- 'block_id' => '',
799
- 'align' => 'center',
800
- 'btn_count' => '2',
801
- 'buttons' => UAGB_Helper::get_button_defaults(),
802
- 'gap' => 10,
803
- 'stack' => 'none',
804
- 'fontFamily' => '',
805
- 'fontWeight' => '',
806
- 'loadGoogleFonts' => false,
807
- 'fontSubset' => '',
808
- ),
809
- ),
810
- 'uagb/post-carousel' => array(
811
- 'slug' => '',
812
- 'title' => __( 'Post Carousel', 'ultimate-addons-for-gutenberg' ),
813
- 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a carousel layout.', 'ultimate-addons-for-gutenberg' ),
814
- 'default' => true,
815
- 'attributes' => array(
816
- 'align' => 'left',
817
- 'rowGap' => '20',
818
- 'columnGap' => '20',
819
- 'bgColor' => '#e4e4e4',
820
- 'titleColor' => '#3b3b3b',
821
- 'titleTag' => 'h3',
822
- 'titleFontSize' => '',
823
- 'titleFontSizeType' => 'px',
824
- 'titleFontSizeMobile' => '',
825
- 'titleFontSizeTablet' => '',
826
- 'titleFontFamily' => '',
827
- 'titleFontWeight' => '',
828
- 'titleFontSubset' => '',
829
- 'titleLineHeightType' => 'em',
830
- 'titleLineHeight' => '',
831
- 'titleLineHeightTablet' => '',
832
- 'titleLineHeightMobile' => '',
833
- 'titleLoadGoogleFonts' => false,
834
- 'metaFontSize' => '',
835
- 'metaFontSizeType' => 'px',
836
- 'metaFontSizeMobile' => '',
837
- 'metaFontSizeTablet' => '',
838
- 'metaFontFamily' => '',
839
- 'metaFontWeight' => '',
840
- 'metaFontSubset' => '',
841
- 'metaLineHeightType' => 'em',
842
- 'metaLineHeight' => '',
843
- 'metaLineHeightTablet' => '',
844
- 'metaLineHeightMobile' => '',
845
- 'metaLoadGoogleFonts' => false,
846
- 'excerptFontSize' => '',
847
- 'excerptFontSizeType' => 'px',
848
- 'excerptFontSizeMobile' => '',
849
- 'excerptFontSizeTablet' => '',
850
- 'excerptFontFamily' => '',
851
- 'excerptFontWeight' => '',
852
- 'excerptFontSubset' => '',
853
- 'excerptLineHeightType' => 'em',
854
- 'excerptLineHeight' => '',
855
- 'excerptLineHeightTablet' => '',
856
- 'excerptLineHeightMobile' => '',
857
- 'excerptLoadGoogleFonts' => false,
858
- 'ctaFontSize' => '',
859
- 'ctaFontSizeType' => 'px',
860
- 'ctaFontSizeTablet' => '',
861
- 'ctaFontSizeMobile' => '',
862
- 'ctaFontFamily' => '',
863
- 'ctaFontWeight' => '',
864
- 'ctaFontSubset' => '',
865
- 'ctaLineHeightType' => 'em',
866
- 'ctaLineHeight' => '',
867
- 'ctaLineHeightTablet' => '',
868
- 'ctaLineHeightMobile' => '',
869
- 'ctaLoadGoogleFonts' => false,
870
- 'metaColor' => '#777777',
871
- 'excerptColor' => '',
872
- 'ctaColor' => '#ffffff',
873
- 'ctaBgColor' => '#333333',
874
- 'ctaHColor' => '',
875
- 'ctaBgHColor' => '',
876
- 'contentPadding' => '20',
877
- 'contentPaddingMobile' => '',
878
- 'btnVPadding' => '5',
879
- 'btnHPadding' => '10',
880
- 'titleBottomSpace' => '15',
881
- 'metaBottomSpace' => '15',
882
- 'excerptBottomSpace' => '25',
883
- 'arrowSize' => '20',
884
- 'arrowColor' => '#aaaaaa',
885
- 'arrowDots' => '',
886
- 'arrowBorderSize' => '1',
887
- 'arrowBorderRadius' => '0',
888
- 'overlayOpacity' => '50',
889
- 'bgOverlayColor' => '#ffffff',
890
- 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
891
- 'borderWidth' => '1',
892
- 'borderStyle' => 'none',
893
- 'borderColor' => '',
894
- 'borderHColor' => '',
895
- 'borderRadius' => '0',
896
- ),
897
- ),
898
- 'uagb/post-grid' => array(
899
- 'slug' => '',
900
- 'title' => __( 'Post Grid', 'ultimate-addons-for-gutenberg' ),
901
- 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a grid layout.', 'ultimate-addons-for-gutenberg' ),
902
- 'default' => true,
903
- 'attributes' => array(
904
- 'align' => 'left',
905
- 'rowGap' => '20',
906
- 'columnGap' => '20',
907
- 'bgColor' => '#e4e4e4',
908
- 'titleColor' => '#3b3b3b',
909
- 'titleTag' => 'h3',
910
- 'titleFontSize' => '',
911
- 'titleFontSizeType' => 'px',
912
- 'titleFontSizeMobile' => '',
913
- 'titleFontSizeTablet' => '',
914
- 'titleFontFamily' => '',
915
- 'titleFontWeight' => '',
916
- 'titleFontSubset' => '',
917
- 'titleLineHeightType' => 'em',
918
- 'titleLineHeight' => '',
919
- 'titleLineHeightTablet' => '',
920
- 'titleLineHeightMobile' => '',
921
- 'titleLoadGoogleFonts' => false,
922
- 'metaFontSize' => '',
923
- 'metaFontSizeType' => 'px',
924
- 'metaFontSizeMobile' => '',
925
- 'metaFontSizeTablet' => '',
926
- 'metaFontFamily' => '',
927
- 'metaFontWeight' => '',
928
- 'metaFontSubset' => '',
929
- 'metaLineHeightType' => 'em',
930
- 'metaLineHeight' => '',
931
- 'metaLineHeightTablet' => '',
932
- 'metaLineHeightMobile' => '',
933
- 'metaLoadGoogleFonts' => false,
934
- 'excerptFontSize' => '',
935
- 'excerptFontSizeType' => 'px',
936
- 'excerptFontSizeMobile' => '',
937
- 'excerptFontSizeTablet' => '',
938
- 'excerptFontFamily' => '',
939
- 'excerptFontWeight' => '',
940
- 'excerptFontSubset' => '',
941
- 'excerptLineHeightType' => 'em',
942
- 'excerptLineHeight' => '',
943
- 'excerptLineHeightTablet' => '',
944
- 'excerptLineHeightMobile' => '',
945
- 'excerptLoadGoogleFonts' => false,
946
- 'ctaFontSize' => '',
947
- 'ctaFontSizeType' => 'px',
948
- 'ctaFontSizeTablet' => '',
949
- 'ctaFontSizeMobile' => '',
950
- 'ctaFontFamily' => '',
951
- 'ctaFontWeight' => '',
952
- 'ctaFontSubset' => '',
953
- 'ctaLineHeightType' => 'em',
954
- 'ctaLineHeight' => '',
955
- 'ctaLineHeightTablet' => '',
956
- 'ctaLineHeightMobile' => '',
957
- 'ctaLoadGoogleFonts' => false,
958
- 'metaColor' => '#777777',
959
- 'excerptColor' => '',
960
- 'ctaColor' => '#ffffff',
961
- 'ctaBgColor' => '#333333',
962
- 'ctaHColor' => '',
963
- 'ctaBgHColor' => '',
964
- 'contentPadding' => '20',
965
- 'contentPaddingMobile' => '',
966
- 'btnVPadding' => '5',
967
- 'btnHPadding' => '10',
968
- 'titleBottomSpace' => '15',
969
- 'metaBottomSpace' => '15',
970
- 'excerptBottomSpace' => '25',
971
- 'overlayOpacity' => '50',
972
- 'bgOverlayColor' => '#ffffff',
973
- 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
974
- 'borderWidth' => '1',
975
- 'borderStyle' => 'none',
976
- 'borderColor' => '',
977
- 'borderHColor' => '',
978
- 'borderRadius' => '0',
979
- ),
980
- ),
981
- 'uagb/post-masonry' => array(
982
- 'slug' => '',
983
- 'title' => __( 'Post Masonry', 'ultimate-addons-for-gutenberg' ),
984
- 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a masonry layout.', 'ultimate-addons-for-gutenberg' ),
985
- 'default' => true,
986
- 'attributes' => array(
987
- 'align' => 'left',
988
- 'rowGap' => '20',
989
- 'columnGap' => '20',
990
- 'bgColor' => '#e4e4e4',
991
- 'titleColor' => '#3b3b3b',
992
- 'titleTag' => 'h3',
993
- 'titleFontSize' => '',
994
- 'titleFontSizeType' => 'px',
995
- 'titleFontSizeMobile' => '',
996
- 'titleFontSizeTablet' => '',
997
- 'titleFontFamily' => '',
998
- 'titleFontWeight' => '',
999
- 'titleFontSubset' => '',
1000
- 'titleLineHeightType' => 'em',
1001
- 'titleLineHeight' => '',
1002
- 'titleLineHeightTablet' => '',
1003
- 'titleLineHeightMobile' => '',
1004
- 'titleLoadGoogleFonts' => false,
1005
- 'metaFontSize' => '',
1006
- 'metaFontSizeType' => 'px',
1007
- 'metaFontSizeMobile' => '',
1008
- 'metaFontSizeTablet' => '',
1009
- 'metaFontFamily' => '',
1010
- 'metaFontWeight' => '',
1011
- 'metaFontSubset' => '',
1012
- 'metaLineHeightType' => 'em',
1013
- 'metaLineHeight' => '',
1014
- 'metaLineHeightTablet' => '',
1015
- 'metaLineHeightMobile' => '',
1016
- 'metaLoadGoogleFonts' => false,
1017
- 'excerptFontSize' => '',
1018
- 'excerptFontSizeType' => 'px',
1019
- 'excerptFontSizeMobile' => '',
1020
- 'excerptFontSizeTablet' => '',
1021
- 'excerptFontFamily' => '',
1022
- 'excerptFontWeight' => '',
1023
- 'excerptFontSubset' => '',
1024
- 'excerptLineHeightType' => 'em',
1025
- 'excerptLineHeight' => '',
1026
- 'excerptLineHeightTablet' => '',
1027
- 'excerptLineHeightMobile' => '',
1028
- 'excerptLoadGoogleFonts' => false,
1029
- 'ctaFontSize' => '',
1030
- 'ctaFontSizeType' => 'px',
1031
- 'ctaFontSizeTablet' => '',
1032
- 'ctaFontSizeMobile' => '',
1033
- 'ctaFontFamily' => '',
1034
- 'ctaFontWeight' => '',
1035
- 'ctaFontSubset' => '',
1036
- 'ctaLineHeightType' => 'em',
1037
- 'ctaLineHeight' => '',
1038
- 'ctaLineHeightTablet' => '',
1039
- 'ctaLineHeightMobile' => '',
1040
- 'ctaLoadGoogleFonts' => false,
1041
- 'metaColor' => '#777777',
1042
- 'excerptColor' => '',
1043
- 'ctaColor' => '#ffffff',
1044
- 'ctaBgColor' => '#333333',
1045
- 'ctaHColor' => '',
1046
- 'ctaBgHColor' => '',
1047
- 'contentPadding' => '20',
1048
- 'contentPaddingMobile' => '',
1049
- 'btnVPadding' => '5',
1050
- 'btnHPadding' => '10',
1051
- 'titleBottomSpace' => '15',
1052
- 'metaBottomSpace' => '15',
1053
- 'excerptBottomSpace' => '25',
1054
- 'overlayOpacity' => '50',
1055
- 'bgOverlayColor' => '#ffffff',
1056
- 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1057
- 'borderWidth' => '1',
1058
- 'borderStyle' => 'none',
1059
- 'borderColor' => '',
1060
- 'borderHColor' => '',
1061
- 'borderRadius' => '0',
1062
- ),
1063
- ),
1064
- 'uagb/post-timeline' => array(
1065
- 'slug' => '',
1066
- 'title' => __( 'Post Timeline', 'ultimate-addons-for-gutenberg' ),
1067
- 'description' => __( 'The Timeline block lets you create beautiful timelines of Posts on your website.', 'ultimate-addons-for-gutenberg' ),
1068
- 'default' => true,
1069
- 'attributes' => array(
1070
- 'align' => 'center',
1071
- 'headingColor' => '',
1072
- 'subHeadingColor' => '',
1073
- 'separatorBg' => '#eee',
1074
- 'backgroundColor' => '#eee',
1075
- 'separatorColor' => '#eee',
1076
- 'separatorFillColor' => '#61ce70',
1077
- 'separatorBorder' => '#eee',
1078
- 'borderFocus' => '#5cb85c',
1079
- 'horizontalSpace' => 10,
1080
- 'verticalSpace' => 15,
1081
- 'headFontSizeType' => 'px',
1082
- 'headFontSize' => '',
1083
- 'headFontSizeTablet' => '',
1084
- 'headFontSizeMobile' => '',
1085
- 'headFontFamily' => '',
1086
- 'headFontWeight' => '',
1087
- 'headFontSubset' => '',
1088
- 'headLineHeightType' => 'em',
1089
- 'headLineHeight' => '',
1090
- 'headLineHeightTablet' => '',
1091
- 'headLineHeightMobile' => '',
1092
- 'headLoadGoogleFonts' => false,
1093
- 'timelinAlignment' => 'center',
1094
- 'arrowlinAlignment' => 'center',
1095
- 'subHeadFontSizeType' => 'px',
1096
- 'subHeadFontSize' => '',
1097
- 'subHeadFontSizeTablet' => '',
1098
- 'subHeadFontSizeMobile' => '',
1099
- 'subHeadFontFamily' => '',
1100
- 'subHeadFontWeight' => '',
1101
- 'subHeadFontSubset' => '',
1102
- 'subHeadLineHeightType' => 'em',
1103
- 'subHeadLineHeight' => '',
1104
- 'subHeadLineHeightTablet' => '',
1105
- 'subHeadLineHeightMobile' => '',
1106
- 'subHeadLoadGoogleFonts' => false,
1107
- 'headSpace' => 5,
1108
- 'contentSpace' => 5,
1109
- 'authorSpace' => 5,
1110
- 'separatorwidth' => 3,
1111
- 'borderwidth' => 0,
1112
- 'iconColor' => '#333',
1113
- 'iconFocus' => '#fff',
1114
- 'iconBgFocus' => '#61ce70',
1115
- 'dateColor' => '#333',
1116
- 'dateFontsizeType' => 'px',
1117
- 'dateFontsize' => 12,
1118
- 'dateFontsizeTablet' => '',
1119
- 'dateFontsizeMobile' => '',
1120
- 'dateFontFamily' => '',
1121
- 'dateFontWeight' => '',
1122
- 'dateFontSubset' => '',
1123
- 'dateLineHeightType' => 'em',
1124
- 'dateLineHeight' => '',
1125
- 'dateLineHeightTablet' => '',
1126
- 'dateLineHeightMobile' => '',
1127
- 'dateLoadGoogleFonts' => false,
1128
- 'connectorBgsize' => 35,
1129
- 'dateBottomspace' => 5,
1130
- 'borderRadius' => 2,
1131
- 'bgPadding' => 20,
1132
- 'contentPadding' => 10,
1133
- 'iconSize' => 12,
1134
- 'stack' => 'tablet',
1135
- 'ctaColor' => '#fff',
1136
- 'authorColor' => '#333',
1137
- 'ctaFontSizeType' => 'px',
1138
- 'ctaFontSize' => '',
1139
- 'ctaFontSizeTablet' => '',
1140
- 'ctaFontSizeMobile' => '',
1141
- 'ctaFontFamily' => '',
1142
- 'ctaFontWeight' => '',
1143
- 'ctaFontSubset' => '',
1144
- 'ctaLineHeightType' => 'em',
1145
- 'ctaLineHeight' => '',
1146
- 'ctaLineHeightTablet' => '',
1147
- 'ctaLineHeightMobile' => '',
1148
- 'ctaLoadGoogleFonts' => false,
1149
- 'authorFontSizeType' => 'px',
1150
- 'authorFontSize' => 11,
1151
- 'authorFontSizeTablet' => '',
1152
- 'authorFontSizeMobile' => '',
1153
- 'authorFontFamily' => '',
1154
- 'authorFontWeight' => '',
1155
- 'authorFontSubset' => '',
1156
- 'authorLineHeightType' => 'em',
1157
- 'authorLineHeight' => '',
1158
- 'authorLineHeightTablet' => '',
1159
- 'authorLineHeightMobile' => '',
1160
- 'authorLoadGoogleFonts' => false,
1161
- 'ctaBackground' => '#333',
1162
- ),
1163
- ),
1164
- 'uagb/restaurant-menu' => array(
1165
- 'slug' => '',
1166
- 'title' => __( 'Price List', 'ultimate-addons-for-gutenberg' ),
1167
- 'description' => __( 'This block allows you to add attractive Price List.', 'ultimate-addons-for-gutenberg' ),
1168
- 'default' => true,
1169
- 'attributes' => array(
1170
- 'block_id' => '',
1171
- 'headingAlign' => 'left',
1172
- 'descColor' => '#333',
1173
- 'priceColor' => '#888888',
1174
- 'titleColor' => '#333',
1175
- 'imagePosition' => 'top',
1176
- 'imageAlignment' => 'top',
1177
- 'titleFontSize' => '',
1178
- 'titleFontSizeType' => 'px',
1179
- 'titleFontSizeMobile' => '',
1180
- 'titleFontSizeTablet' => '',
1181
- 'titleFontFamily' => '',
1182
- 'titleFontWeight' => '',
1183
- 'titleFontSubset' => '',
1184
- 'titleLineHeightType' => 'em',
1185
- 'titleLineHeight' => '',
1186
- 'titleLineHeightTablet' => '',
1187
- 'titleLineHeightMobile' => '',
1188
- 'titleLoadGoogleFonts' => false,
1189
- 'priceFontSize' => '',
1190
- 'priceFontSizeType' => 'px',
1191
- 'priceFontSizeMobile' => '',
1192
- 'priceFontSizeTablet' => '',
1193
- 'priceFontFamily' => '',
1194
- 'priceFontWeight' => '',
1195
- 'priceFontSubset' => '',
1196
- 'priceLineHeightType' => 'em',
1197
- 'priceLineHeight' => '',
1198
- 'priceLineHeightTablet' => '',
1199
- 'priceLineHeightMobile' => '',
1200
- 'priceLoadGoogleFonts' => false,
1201
- 'descFontSize' => '',
1202
- 'descFontSizeType' => 'px',
1203
- 'descFontSizeMobile' => '',
1204
- 'descFontSizeTablet' => '',
1205
- 'descFontFamily' => '',
1206
- 'descFontWeight' => '',
1207
- 'descFontSubset' => '',
1208
- 'descLineHeightType' => 'em',
1209
- 'descLineHeight' => '',
1210
- 'descLineHeightTablet' => '',
1211
- 'descLineHeightMobile' => '',
1212
- 'descLoadGoogleFonts' => false,
1213
- 'priceSpace' => 5,
1214
- 'descSpace' => 15,
1215
- 'titleSpace' => 10,
1216
- 'imgVrPadding' => 0,
1217
- 'imgHrPadding' => 0,
1218
- 'imgTopPadding' => 0,
1219
- 'imgBottomPadding' => 0,
1220
- 'iconImage' => '',
1221
- 'imageSize' => 'medium',
1222
- 'imageWidth' => '',
1223
- 'columns' => 2,
1224
- 'tcolumns' => 2,
1225
- 'mcolumns' => 1,
1226
- 'rowGap' => 10,
1227
- 'columnGap' => 10,
1228
- 'contentHrPadding' => 5,
1229
- 'contentVrPadding' => 5,
1230
- 'seperatorStyle' => 'dashed',
1231
- 'seperatorWidth' => '100',
1232
- 'seperatorThickness' => '1',
1233
- 'seperatorColor' => '#b2b4b5',
1234
- ),
1235
- ),
1236
- 'uagb/section' => array(
1237
- 'slug' => '',
1238
- 'title' => __( 'Section', 'ultimate-addons-for-gutenberg' ),
1239
- 'description' => __( 'This block is an outer wrap section that allows you to add other blocks within it.', 'ultimate-addons-for-gutenberg' ),
1240
- 'default' => true,
1241
- 'attributes' => array(
1242
- 'topPadding' => '20',
1243
- 'bottomPadding' => '20',
1244
- 'leftPadding' => '20',
1245
- 'rightPadding' => '20',
1246
- 'topMargin' => '0',
1247
- 'bottomMargin' => '0',
1248
- 'leftMargin' => '0',
1249
- 'rightMargin' => '0',
1250
- 'topPaddingTablet' => '',
1251
- 'bottomPaddingTablet' => '',
1252
- 'leftPaddingTablet' => '',
1253
- 'rightPaddingTablet' => '',
1254
- 'topPaddingMobile' => '',
1255
- 'bottomPaddingMobile' => '',
1256
- 'leftPaddingMobile' => '',
1257
- 'rightPaddingMobile' => '',
1258
- 'topMarginMobile' => '',
1259
- 'bottomMarginMobile' => '',
1260
- 'leftMarginMobile' => '',
1261
- 'rightMarginMobile' => '',
1262
- 'topMarginTablet' => '',
1263
- 'bottomMarginTablet' => '',
1264
- 'leftMarginTablet' => '',
1265
- 'rightMarginTablet' => '',
1266
- 'contentWidth' => 'boxed',
1267
- 'width' => '900',
1268
- 'innerWidth' => '1140',
1269
- 'tag' => 'section',
1270
- 'backgroundType' => 'none',
1271
- 'gradientColor1' => '',
1272
- 'gradientColor2' => '',
1273
- 'backgroundVideoColor' => '',
1274
- 'backgroundPosition' => 'center-center',
1275
- 'backgroundSize' => 'cover',
1276
- 'backgroundRepeat' => 'no-repeat',
1277
- 'backgroundAttachment' => 'scroll',
1278
- 'gradientType' => 'linear',
1279
- 'gradientLocation1' => '0',
1280
- 'gradientLocation2' => '100',
1281
- 'gradientAngle' => '0',
1282
- 'backgroundColor' => '',
1283
- 'backgroundOpacity' => '',
1284
- 'backgroundVideoOpacity' => '50',
1285
- 'backgroundImageColor' => '',
1286
- 'align' => 'center',
1287
- 'borderStyle' => 'none',
1288
- 'borderWidth' => '1',
1289
- 'borderRadius' => '',
1290
- 'borderColor' => '',
1291
- 'themeWidth' => false,
1292
- ),
1293
- ),
1294
- 'uagb/social-share' => array(
1295
- 'slug' => '',
1296
- 'title' => __( 'Social Share', 'ultimate-addons-for-gutenberg' ),
1297
- 'description' => __( 'This block allows you to let users share your content across various social networking sites.', 'ultimate-addons-for-gutenberg' ),
1298
- 'default' => true,
1299
- 'attributes' => array(
1300
- 'align' => 'center',
1301
- 'social_count' => '1',
1302
- 'socials' => array(
1303
- array(
1304
- 'type' => 'facebook',
1305
- 'image_icon' => 'icon',
1306
- 'icon' => 'fab fa-facebook',
1307
- 'image' => '',
1308
- 'icon_color' => '#3a3a3a',
1309
- 'icon_hover_color' => '#3a3a3a',
1310
- 'icon_bg_color' => '',
1311
- 'icon_bg_hover_color' => '',
1312
- ),
1313
- ),
1314
- 'gap' => '10',
1315
- 'size' => '40',
1316
- 'sizeType' => 'px',
1317
- 'sizeMobile' => '',
1318
- 'sizeTablet' => '',
1319
- 'bgSize' => '0',
1320
- 'bgSizeType' => 'px',
1321
- 'bgSizeMobile' => '',
1322
- 'bgSizeTablet' => '',
1323
- 'borderRadius' => '0',
1324
- 'social_layout' => 'horizontal',
1325
- 'stack' => 'none',
1326
- ),
1327
- ),
1328
- 'uagb/team' => array(
1329
- 'slug' => '',
1330
- 'title' => __( 'Team', 'ultimate-addons-for-gutenberg' ),
1331
- 'description' => __( 'This block allows you to display your team. Add their picture, name, what they do and links to their social profiles.', 'ultimate-addons-for-gutenberg' ),
1332
- 'default' => true,
1333
- 'attributes' => array(
1334
- 'block_id' => '',
1335
- 'align' => 'center',
1336
- 'tag' => 'h3',
1337
- 'titleColor' => '',
1338
- 'prefixColor' => '#888888',
1339
- 'descColor' => '',
1340
- 'socialColor' => '#333',
1341
- 'socialHoverColor' => '',
1342
- 'titleFontFamily' => '',
1343
- 'titleLoadGoogleFonts' => false,
1344
- 'titleFontWeight' => '',
1345
- 'titleFontSubset' => '',
1346
- 'titleFontSize' => 15,
1347
- 'titleFontSizeType' => 'px',
1348
- 'titleFontSizeTablet' => '',
1349
- 'titleFontSizeMobile' => '',
1350
- 'titleLineHeight' => '',
1351
- 'titleLineHeightType' => 'em',
1352
- 'titleLineHeightTablet' => '',
1353
- 'titleLineHeightMobile' => '',
1354
- 'prefixFontFamily' => '',
1355
- 'prefixLoadGoogleFonts' => false,
1356
- 'prefixFontWeight' => '',
1357
- 'prefixFontSubset' => '',
1358
- 'prefixFontSize' => 15,
1359
- 'prefixFontSizeType' => 'px',
1360
- 'prefixFontSizeTablet' => '',
1361
- 'prefixFontSizeMobile' => '',
1362
- 'prefixLineHeight' => '',
1363
- 'prefixLineHeightType' => 'em',
1364
- 'prefixLineHeightTablet' => '',
1365
- 'prefixLineHeightMobile' => '',
1366
- 'descFontFamily' => '',
1367
- 'descLoadGoogleFonts' => false,
1368
- 'descFontWeight' => '',
1369
- 'descFontSubset' => '',
1370
- 'descFontSize' => 15,
1371
- 'descFontSizeType' => 'px',
1372
- 'descFontSizeTablet' => '',
1373
- 'descFontSizeMobile' => '',
1374
- 'descLineHeight' => '',
1375
- 'descLineHeightType' => 'em',
1376
- 'descLineHeightTablet' => '',
1377
- 'descLineHeightMobile' => '',
1378
- 'socialFontSize' => 20,
1379
- 'socialFontSizeType' => 'px',
1380
- 'socialFontSizeMobile' => '',
1381
- 'socialFontSizeTablet' => '',
1382
- 'image' => '',
1383
- 'imgStyle' => 'normal',
1384
- 'imgPosition' => 'above',
1385
- 'imgAlign' => 'top',
1386
- 'imgSiz' => 'thumbnail',
1387
- 'imgWidth' => 120,
1388
- 'titleSpace' => '',
1389
- 'prefixSpace' => '',
1390
- 'descSpace' => 10,
1391
- 'imgLeftMargin' => 20,
1392
- 'imgRightMargin' => 20,
1393
- 'imgTopMargin' => 15,
1394
- 'imgBottomMargin' => 15,
1395
- 'socialSpace' => 20,
1396
- 'headingTag' => 'h3',
1397
- ),
1398
- ),
1399
- 'uagb/testimonial' => array(
1400
- 'slug' => '',
1401
- 'title' => __( 'Testimonial', 'ultimate-addons-for-gutenberg' ),
1402
- 'description' => __( 'This block helps your display some amazing client feedback within your website.', 'ultimate-addons-for-gutenberg' ),
1403
- 'default' => true,
1404
- 'attributes' => array(
1405
- 'headingAlign' => 'center',
1406
- 'companyColor' => '#888888',
1407
- 'descColor' => '#333',
1408
- 'authorColor' => '#333',
1409
- 'nameFontSizeType' => 'px',
1410
- 'nameFontSize' => '',
1411
- 'nameFontSizeTablet' => '',
1412
- 'nameFontSizeMobile' => '',
1413
- 'nameFontFamily' => '',
1414
- 'nameFontWeight' => '',
1415
- 'nameFontSubset' => '',
1416
- 'nameLineHeightType' => 'em',
1417
- 'nameLineHeight' => '',
1418
- 'nameLineHeightTablet' => '',
1419
- 'nameLineHeightMobile' => '',
1420
- 'nameLoadGoogleFonts' => false,
1421
- 'companyFontSizeType' => 'px',
1422
- 'companyFontSize' => '',
1423
- 'companyFontSizeTablet' => '',
1424
- 'companyFontSizeMobile' => '',
1425
- 'companyFontFamily' => '',
1426
- 'companyFontWeight' => '',
1427
- 'companyFontSubset' => '',
1428
- 'companyLineHeightType' => 'em',
1429
- 'companyLineHeight' => '',
1430
- 'companyLineHeightTablet' => '',
1431
- 'companyLineHeightMobile' => '',
1432
- 'companyLoadGoogleFonts' => false,
1433
- 'descFontSizeType' => 'px',
1434
- 'descFontSize' => '',
1435
- 'descFontSizeTablet' => '',
1436
- 'descFontSizeMobile' => '',
1437
- 'descFontFamily' => '',
1438
- 'descFontWeight' => '',
1439
- 'descFontSubset' => '',
1440
- 'descLineHeightType' => 'em',
1441
- 'descLineHeight' => '',
1442
- 'descLineHeightTablet' => '',
1443
- 'descLineHeightMobile' => '',
1444
- 'descLoadGoogleFonts' => false,
1445
- 'descSpace' => 15,
1446
- 'block_id' => '',
1447
- 'nameSpace' => 5,
1448
- 'imgVrPadding' => 10,
1449
- 'imgHrPadding' => 10,
1450
- 'imageWidth' => 60,
1451
- 'rowGap' => 10,
1452
- 'columnGap' => 10,
1453
- 'contentPadding' => 5,
1454
- 'backgroundColor' => '',
1455
- 'backgroundImage' => '',
1456
- 'backgroundPosition' => 'center-center',
1457
- 'backgroundSize' => 'cover',
1458
- 'backgroundRepeat' => 'no-repeat',
1459
- 'backgroundImageColor' => '',
1460
- 'backgroundOpacity' => 0,
1461
- 'borderStyle' => 'none',
1462
- 'borderWidth' => 1,
1463
- 'borderRadius' => 0,
1464
- 'borderColor' => '#333',
1465
- 'arrowColor' => '#333',
1466
- 'arrowDots' => 'arrowDots',
1467
- 'arrowBorderSize' => 1,
1468
- 'arrowBorderRadius' => 0,
1469
- 'columns' => 1,
1470
- 'autoplaySpeed' => 2000,
1471
- 'autoplay' => true,
1472
- 'infiniteLoop' => true,
1473
- 'pauseOnHover' => true,
1474
- 'transitionSpeed' => 500,
1475
- 'tcolumns' => 1,
1476
- 'mcolumns' => 1,
1477
- 'arrowSize' => 20,
1478
- 'test_item_count' => 3,
1479
- ),
1480
- ),
1481
- );
1482
- }
1483
- return self::$block_attributes;
1484
- }
1485
- }
1486
- }
1
+ <?php
2
+ /**
3
+ * UAGB Config.
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! class_exists( 'UAGB_Config' ) ) {
9
+
10
+ /**
11
+ * Class UAGB_Config.
12
+ */
13
+ class UAGB_Config {
14
+
15
+ /**
16
+ * Block Attributes
17
+ *
18
+ * @var block_attributes
19
+ */
20
+ public static $block_attributes = null;
21
+
22
+ /**
23
+ * Get Widget List.
24
+ *
25
+ * @since 0.0.1
26
+ *
27
+ * @return array The Widget List.
28
+ */
29
+ public static function get_block_attributes() {
30
+
31
+ if ( null === self::$block_attributes ) {
32
+ self::$block_attributes = array(
33
+ 'uagb/advanced-heading' => array(
34
+ 'slug' => '',
35
+ 'title' => __( 'Advanced Heading', 'ultimate-addons-for-gutenberg' ),
36
+ 'description' => __( 'This block lets you add a combination of a heading and a sub-heading with a separator in between.', 'ultimate-addons-for-gutenberg' ),
37
+ 'default' => true,
38
+ 'attributes' => array(
39
+ 'headingAlign' => 'center',
40
+ 'headingColor' => '',
41
+ 'subHeadingColor' => '',
42
+ 'separatorColor' => '',
43
+ 'seperatorStyle' => 'solid',
44
+ 'separatorHeight' => '',
45
+ 'separatorWidth' => '',
46
+ 'separatorWidthType' => '%',
47
+ 'headFontFamily' => '',
48
+ 'headLoadGoogleFonts' => false,
49
+ 'headFontWeight' => '',
50
+ 'headFontSubset' => '',
51
+ 'headFontSize' => '',
52
+ 'headFontSizeType' => 'px',
53
+ 'headFontSizeTablet' => '',
54
+ 'headFontSizeMobile' => '',
55
+ 'headLineHeight' => '',
56
+ 'headLineHeightType' => 'em',
57
+ 'headLineHeightTablet' => '',
58
+ 'headLineHeightMobile' => '',
59
+ 'subHeadFontFamily' => '',
60
+ 'subHeadLoadGoogleFonts' => false,
61
+ 'subHeadFontWeight' => '',
62
+ 'subHeadFontSubset' => '',
63
+ 'subHeadFontSize' => '',
64
+ 'subHeadFontSizeType' => 'px',
65
+ 'subHeadFontSizeTablet' => '',
66
+ 'subHeadFontSizeMobile' => '',
67
+ 'subHeadLineHeight' => '',
68
+ 'subHeadLineHeightType' => 'em',
69
+ 'subHeadLineHeightTablet' => '',
70
+ 'subHeadLineHeightMobile' => '',
71
+ 'headSpace' => 15,
72
+ 'separatorSpace' => 15,
73
+ ),
74
+ ),
75
+ 'uagb/columns' => array(
76
+ 'slug' => '',
77
+ 'title' => __( 'Advanced Columns', 'ultimate-addons-for-gutenberg' ),
78
+ 'description' => __( 'This block gives you advanced options to insert a number of columns within a single row.', 'ultimate-addons-for-gutenberg' ),
79
+ 'default' => true,
80
+ 'attributes' => array(
81
+ 'block_id' => '',
82
+ 'columns' => '2',
83
+ 'align' => '',
84
+ 'vAlign' => '',
85
+ 'stack' => 'mobile',
86
+ 'topPadding' => '20',
87
+ 'bottomPadding' => '20',
88
+ 'leftPadding' => '20',
89
+ 'rightPadding' => '20',
90
+ 'topMargin' => '0',
91
+ 'bottomMargin' => '0',
92
+ 'topPaddingTablet' => '',
93
+ 'bottomPaddingTablet' => '',
94
+ 'leftPaddingTablet' => '',
95
+ 'rightPaddingTablet' => '',
96
+ 'topPaddingMobile' => '',
97
+ 'bottomPaddingMobile' => '',
98
+ 'leftPaddingMobile' => '',
99
+ 'rightPaddingMobile' => '',
100
+ 'topMarginMobile' => '',
101
+ 'bottomMarginMobile' => '',
102
+ 'topMarginTablet' => '',
103
+ 'bottomMarginTablet' => '',
104
+ 'contentWidth' => 'theme',
105
+ 'width' => '900',
106
+ 'tag' => 'section',
107
+ 'backgroundType' => 'none',
108
+ 'backgroundImage' => '',
109
+ 'backgroundPosition' => 'center-center',
110
+ 'backgroundSize' => 'cover',
111
+ 'backgroundRepeat' => 'no-repeat',
112
+ 'backgroundAttachment' => 'scroll',
113
+ 'backgroundVideo' => '',
114
+ 'backgroundColor' => '',
115
+ 'gradientColor1' => '',
116
+ 'gradientColor2' => '',
117
+ 'gradientType' => 'linear',
118
+ 'gradientLocation1' => '0',
119
+ 'gradientLocation2' => '100',
120
+ 'gradientAngle' => '0',
121
+ 'backgroundOpacity' => '',
122
+ 'backgroundVideoOpacity' => '50',
123
+ 'backgroundVideoColor' => '',
124
+ 'backgroundImageColor' => '',
125
+ 'borderStyle' => 'none',
126
+ 'borderWidth' => '1',
127
+ 'borderRadius' => '',
128
+ 'borderColor' => '',
129
+ 'columnGap' => '10',
130
+ 'bottomType' => 'none',
131
+ 'bottomColor' => '#333',
132
+ 'bottomHeight' => '',
133
+ 'bottomWidth' => '',
134
+ 'topType' => 'none',
135
+ 'topColor' => '#333',
136
+ 'topHeight' => '',
137
+ 'topWidth' => '',
138
+ 'bottomFlip' => '',
139
+ 'topFlip' => '',
140
+ ),
141
+ ),
142
+ 'uagb/column' => array(
143
+ 'slug' => '',
144
+ 'title' => __( 'Column', 'ultimate-addons-for-gutenberg' ),
145
+ 'description' => __( 'This block is an immediate child of Advanced Columns.', 'ultimate-addons-for-gutenberg' ),
146
+ 'default' => true,
147
+ 'is_child' => true,
148
+ 'attributes' => array(
149
+ 'block_id' => '',
150
+ 'topPadding' => '',
151
+ 'bottomPadding' => '',
152
+ 'leftPadding' => '',
153
+ 'rightPadding' => '',
154
+ 'topMargin' => '',
155
+ 'bottomMargin' => '',
156
+ 'leftMargin' => '',
157
+ 'rightMargin' => '',
158
+ 'topPaddingTablet' => '',
159
+ 'bottomPaddingTablet' => '',
160
+ 'leftPaddingTablet' => '',
161
+ 'rightPaddingTablet' => '',
162
+ 'topPaddingMobile' => '',
163
+ 'bottomPaddingMobile' => '',
164
+ 'leftPaddingMobile' => '',
165
+ 'rightPaddingMobile' => '',
166
+ 'topMarginMobile' => '',
167
+ 'bottomMarginMobile' => '',
168
+ 'leftMarginMobile' => '',
169
+ 'rightMarginMobile' => '',
170
+ 'topMarginTablet' => '',
171
+ 'bottomMarginTablet' => '',
172
+ 'leftMarginTablet' => '',
173
+ 'rightMarginTablet' => '',
174
+ 'colWidth' => '',
175
+ 'colWidthTablet' => '',
176
+ 'colWidthMobile' => '',
177
+ 'backgroundType' => 'none',
178
+ 'backgroundImage' => '',
179
+ 'backgroundPosition' => 'center-center',
180
+ 'backgroundSize' => 'cover',
181
+ 'backgroundRepeat' => 'no-repeat',
182
+ 'backgroundAttachment' => 'scroll',
183
+ 'backgroundColor' => '',
184
+ 'gradientColor1' => '',
185
+ 'gradientColor2' => '',
186
+ 'gradientType' => 'linear',
187
+ 'gradientLocation1' => 0,
188
+ 'gradientLocation2' => 100,
189
+ 'gradientAngle' => 0,
190
+ 'backgroundOpacity' => '',
191
+ 'backgroundImageColor' => '',
192
+ 'borderStyle' => 'none',
193
+ 'borderWidth' => 1,
194
+ 'borderRadius' => '',
195
+ 'borderColor' => '',
196
+ 'align' => 'center',
197
+ 'alignMobile' => '',
198
+ 'alignTablet' => '',
199
+ ),
200
+ ),
201
+ 'uagb/blockquote' => array(
202
+ 'slug' => '',
203
+ 'title' => __( 'Blockquote', 'ultimate-addons-for-gutenberg' ),
204
+ 'description' => __( 'This block allows you to display your Blockquote.', 'ultimate-addons-for-gutenberg' ),
205
+ 'default' => true,
206
+ 'attributes' => array(
207
+ 'block_id ' => '',
208
+ 'skinStyle' => 'border',
209
+ 'align' => 'left',
210
+ 'descColor' => '',
211
+ 'descFontSize' => '',
212
+ 'descFontSizeType' => 'px',
213
+ 'descFontSizeTablet' => '',
214
+ 'descFontSizeMobile' => '',
215
+ 'descFontFamily' => '',
216
+ 'descFontWeight' => '',
217
+ 'descFontSubset' => '',
218
+ 'descLineHeightType' => 'em
219
+ ',
220
+ 'descLineHeight' => '',
221
+ 'descLineHeightTablet' => '',
222
+ 'descLineHeightMobile' => '',
223
+ 'descLoadGoogleFonts' => false,
224
+ 'descSpace' => 20,
225
+ 'authorColor' => '#888888',
226
+ 'authorFontSize' => '',
227
+ 'authorFontSizeType' => 'px',
228
+ 'authorFontSizeTablet' => '',
229
+ 'authorFontSizeMobile' => '',
230
+ 'authorFontFamily' => '',
231
+ 'authorFontWeight' => '',
232
+ 'authorFontSubset' => '',
233
+ 'authorLineHeightType' => 'em
234
+ ',
235
+ 'authorLineHeight' => '',
236
+ 'authorLineHeightTablet' => '',
237
+ 'authorLineHeightMobile' => '',
238
+ 'authorLoadGoogleFonts' => false,
239
+ 'authorSpace' => 10,
240
+ 'authorImageWidth' => 40,
241
+ 'authorImgBorderRadius' => 100,
242
+ 'authorImgPosition' => 'right',
243
+ 'stack' => 'tablet',
244
+ 'enableTweet' => true,
245
+ 'iconView' => 'icon_text',
246
+ 'iconSkin' => 'link',
247
+ 'tweetLinkColor' => '#1DA1F2',
248
+ 'tweetBtnColor' => '#fff',
249
+ 'tweetBtnBgColor' => '#1DA1F2',
250
+ 'tweetBtnHoverColor' => '',
251
+ 'tweetBtnBgHoverColor' => '#1DA1F2',
252
+ 'tweetBtnFontSize' => 15,
253
+ 'tweetBtnFontSizeType' => 'px',
254
+ 'tweetBtnFontSizeTablet' => '',
255
+ 'tweetBtnFontSizeMobile' => '',
256
+ 'tweetBtnFontFamily' => '',
257
+ 'tweetBtnFontWeight' => '',
258
+ 'tweetBtnFontSubset' => '',
259
+ 'tweetBtnLineHeightType' => 'em',
260
+ 'tweetBtnLineHeight' => '',
261
+ 'tweetBtnLineHeightTablet' => '',
262
+ 'tweetBtnLineHeightMobile' => '',
263
+ 'tweetBtnLoadGoogleFonts' => false,
264
+ 'tweetBtnHrPadding' => 10,
265
+ 'tweetBtnVrPadding' => 10,
266
+ 'tweetIconSpacing' => 10,
267
+ 'borderColor' => '#abb8c3',
268
+ 'borderStyle' => 'solid',
269
+ 'borderWidth' => 4,
270
+ 'borderGap' => 15,
271
+ 'verticalPadding' => '',
272
+ 'quoteStyle' => 'style_1',
273
+ 'quoteColor' => '#abb8c3',
274
+ 'quoteSize' => 25,
275
+ 'quoteSizeType' => 'px',
276
+ 'quoteSizeTablet' => '',
277
+ 'quoteSizeMobile' => '',
278
+ 'quoteTopMargin' => '',
279
+ 'quoteBottomMargin' => '',
280
+ 'quoteLeftMargin' => '',
281
+ 'quoteRightMargin' => 20,
282
+ 'quoteBorderRadius' => 100,
283
+ 'quoteBgColor' => '#333',
284
+ 'quoteHoverColor' => '',
285
+ 'quoteBgHoverColor' => '',
286
+ 'borderHoverColor' => '',
287
+ 'iconTargetUrl' => 'current',
288
+ 'customUrl' => '',
289
+ 'iconShareVia' => '',
290
+ 'quotePadding' => 10,
291
+ 'quotePaddingType' => 'px',
292
+ 'quotePaddingTablet' => '',
293
+ 'quotePaddingMobile' => '',
294
+ ),
295
+ ),
296
+ 'uagb/call-to-action' => array(
297
+ 'slug' => '',
298
+ 'title' => __( 'Call To Action', 'ultimate-addons-for-gutenberg' ),
299
+ 'description' => __( 'This block allows you to place an CTA along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
300
+ 'default' => true,
301
+ 'attributes' => array(
302
+ 'textAlign' => 'left',
303
+ 'titleColor' => '',
304
+ 'descColor' => '',
305
+ 'ctaPosition' => 'right',
306
+ 'titleTag' => '',
307
+ 'titleFontSize' => '',
308
+ 'titleFontSizeType' => 'px',
309
+ 'titleFontSizeMobile' => '',
310
+ 'titleFontSizeTablet' => '',
311
+ 'titleFontFamily' => '',
312
+ 'titleFontWeight' => '',
313
+ 'titleFontSubset' => '',
314
+ 'titleLineHeightType' => 'em',
315
+ 'titleLineHeight' => '',
316
+ 'titleLineHeightTablet' => '',
317
+ 'titleLineHeightMobile' => '',
318
+ 'titleLoadGoogleFonts' => false,
319
+ 'descFontSize' => '',
320
+ 'descFontSizeType' => 'px',
321
+ 'descFontSizeMobile' => '',
322
+ 'descFontSizeTablet' => '',
323
+ 'descFontFamily' => '',
324
+ 'descFontWeight' => '',
325
+ 'descFontSubset' => '',
326
+ 'descLineHeightType' => 'em',
327
+ 'descLineHeight' => '',
328
+ 'descLineHeightTablet' => '',
329
+ 'descLineHeightMobile' => '',
330
+ 'descLoadGoogleFonts' => false,
331
+ 'titleSpace' => 10,
332
+ 'descSpace' => 10,
333
+ 'buttonAlign' => 'top',
334
+ 'ctaTarget' => false,
335
+ 'ctaIconPosition' => 'after',
336
+ 'ctaIconSpace' => 5,
337
+ 'ctaType' => 'button',
338
+ 'ctaLink' => '#',
339
+ 'ctaFontSize' => '',
340
+ 'ctaFontSizeType' => 'px',
341
+ 'ctaFontSizeMobile' => '',
342
+ 'ctaFontSizeTablet' => '',
343
+ 'ctaFontFamily' => '',
344
+ 'ctaFontWeight' => '',
345
+ 'ctaFontSubset' => '',
346
+ 'ctaLoadGoogleFonts' => false,
347
+ 'ctaBtnLinkColor' => '#333',
348
+ 'ctaBgColor' => 'transparent',
349
+ 'ctaBgHoverColor' => 'transparent',
350
+ 'ctaBorderColor' => '#333',
351
+ 'ctaBorderhoverColor' => '',
352
+ 'ctaBorderStyle' => 'solid',
353
+ 'ctaBtnVertPadding' => 10,
354
+ 'ctaBtnHrPadding' => 14,
355
+ 'ctaBorderWidth' => 1,
356
+ 'ctaBorderRadius' => 0,
357
+ 'stack' => 'tablet',
358
+ 'showTitle' => true,
359
+ 'showDesc' => true,
360
+ 'ctaLeftSpace' => 5,
361
+ 'ctaRightSpace' => 5,
362
+ 'contentWidth' => 70,
363
+ 'ctaLinkHoverColor' => '',
364
+ ),
365
+ ),
366
+
367
+ 'uagb/cf7-styler' => array(
368
+ 'slug' => '',
369
+ 'title' => __( 'Contact Form 7 Styler', 'ultimate-addons-for-gutenberg' ),
370
+ 'description' => __( 'This block allows you to add and style your Contact Form 7 forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
371
+ 'default' => true,
372
+ 'attributes' => array(
373
+ 'block_id' => '',
374
+ 'align' => 'left',
375
+ 'formId' => '0',
376
+ 'fieldStyle' => 'box',
377
+ 'fieldHrPadding' => 10,
378
+ 'fieldVrPadding' => 10,
379
+ 'fieldBgColor' => '#fafafa',
380
+ 'fieldLabelColor' => '#333',
381
+ 'fieldInputColor' => '#333',
382
+ 'fieldBorderStyle' => 'solid',
383
+ 'fieldBorderWidth' => 1,
384
+ 'fieldBorderRadius' => 0,
385
+ 'fieldBorderColor' => '#eeeeee',
386
+ 'fieldBorderFocusColor' => '',
387
+ 'buttonAlignment' => 'left',
388
+ 'buttonVrPadding' => 10,
389
+ 'buttonHrPadding' => 25,
390
+ 'buttonTextColor' => '#333',
391
+ 'buttonBgColor' => 'transparent',
392
+ 'buttonTextHoverColor' => '',
393
+ 'buttonBgHoverColor' => '',
394
+ 'buttonBorderStyle' => 'solid',
395
+ 'buttonBorderWidth' => 1,
396
+ 'buttonBorderRadius' => 0,
397
+ 'buttonBorderColor' => '#333',
398
+ 'buttonBorderHoverColor' => '',
399
+ 'fieldSpacing' => '',
400
+ 'fieldLabelSpacing' => '',
401
+ 'labelFontSize' => '',
402
+ 'labelFontSizeType' => 'px',
403
+ 'labelFontSizeTablet' => '',
404
+ 'labelFontSizeMobile' => '',
405
+ 'labelFontFamily' => '',
406
+ 'labelFontWeight' => '',
407
+ 'labelFontSubset' => '',
408
+ 'labelLineHeightType' => 'px',
409
+ 'labelLineHeight' => '',
410
+ 'labelLineHeightTablet' => '',
411
+ 'labelLineHeightMobile' => '',
412
+ 'labelLoadGoogleFonts' => false,
413
+ 'inputFontSize' => '',
414
+ 'inputFontSizeType' => 'px',
415
+ 'inputFontSizeTablet' => '',
416
+ 'inputFontSizeMobile' => '',
417
+ 'inputFontFamily' => '',
418
+ 'inputFontWeight' => '',
419
+ 'inputFontSubset' => '',
420
+ 'inputLineHeightType' => 'px',
421
+ 'inputLineHeight' => '',
422
+ 'inputLineHeightTablet' => '',
423
+ 'inputLineHeightMobile' => '',
424
+ 'inputLoadGoogleFonts' => false,
425
+ 'buttonFontSize' => '',
426
+ 'buttonFontSizeType' => 'px',
427
+ 'buttonFontSizeTablet' => '',
428
+ 'buttonFontSizeMobile' => '',
429
+ 'buttonFontFamily' => '',
430
+ 'buttonFontWeight' => '',
431
+ 'buttonFontSubset' => '',
432
+ 'buttonLineHeightType' => 'px',
433
+ 'buttonLineHeight' => '',
434
+ 'buttonLineHeightTablet' => '',
435
+ 'buttonLineHeightMobile' => '',
436
+ 'buttonLoadGoogleFonts' => false,
437
+ 'enableOveride' => true,
438
+ 'radioCheckSize' => '',
439
+ 'radioCheckBgColor' => '',
440
+ 'radioCheckSelectColor' => '',
441
+ 'radioCheckLableColor' => '',
442
+ 'radioCheckBorderColor' => '#abb8c3',
443
+ 'radioCheckBorderWidth' => '',
444
+ 'radioCheckBorderRadius' => '',
445
+ 'radioCheckFontSize' => '',
446
+ 'radioCheckFontSizeType' => 'px',
447
+ 'radioCheckFontSizeTablet' => '',
448
+ 'radioCheckFontSizeMobile' => '',
449
+ 'radioCheckFontFamily' => '',
450
+ 'radioCheckFontWeight' => '',
451
+ 'radioCheckFontSubset' => '',
452
+ 'radioCheckLineHeightType' => 'px',
453
+ 'radioCheckLineHeight' => '',
454
+ 'radioCheckLineHeightTablet' => '',
455
+ 'radioCheckLineHeightMobile' => '',
456
+ 'radioCheckLoadGoogleFonts' => false,
457
+ 'validationMsgPosition' => 'default',
458
+ 'validationMsgColor' => '#ff0000',
459
+ 'validationMsgBgColor' => '',
460
+ 'enableHighlightBorder' => false,
461
+ 'highlightBorderColor' => '#ff0000',
462
+ 'validationMsgFontSize' => '',
463
+ 'validationMsgFontSizeType' => 'px',
464
+ 'validationMsgFontSizeTablet' => '',
465
+ 'validationMsgFontSizeMobile' => '',
466
+ 'validationMsgFontFamily' => '',
467
+ 'validationMsgFontWeight' => '',
468
+ 'validationMsgFontSubset' => '',
469
+ 'validationMsgLineHeightType' => 'px',
470
+ 'validationMsgLineHeight' => '',
471
+ 'validationMsgLineHeightTablet' => '',
472
+ 'validationMsgLineHeightMobile' => '',
473
+ 'validationMsgLoadGoogleFonts' => false,
474
+ 'successMsgColor' => '',
475
+ 'successMsgBgColor' => '',
476
+ 'successMsgBorderColor' => '',
477
+ 'errorMsgColor' => '',
478
+ 'errorMsgBgColor' => '',
479
+ 'errorMsgBorderColor' => '',
480
+ 'msgBorderSize' => '',
481
+ 'msgBorderRadius' => '',
482
+ 'msgVrPadding' => '',
483
+ 'msgHrPadding' => '',
484
+ 'msgFontSize' => '',
485
+ 'msgFontSizeType' => 'px',
486
+ 'msgFontSizeTablet' => '',
487
+ 'msgFontSizeMobile' => '',
488
+ 'msgFontFamily' => '',
489
+ 'msgFontWeight' => '',
490
+ 'msgFontSubset' => '',
491
+ 'msgLineHeightType' => 'px',
492
+ 'msgLineHeight' => '',
493
+ 'msgLineHeightTablet' => '',
494
+ 'msgLineHeightMobile' => '',
495
+ 'msgLoadGoogleFonts' => false,
496
+ 'radioCheckBorderRadiusType' => 'px',
497
+ 'msgBorderRadiusType' => 'px',
498
+ 'fieldBorderRadiusType' => 'px',
499
+ 'buttonBorderRadiusType' => 'px',
500
+ ),
501
+ ),
502
+ 'uagb/content-timeline' => array(
503
+ 'slug' => '',
504
+ 'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ),
505
+ 'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ),
506
+ 'default' => true,
507
+ 'attributes' => array(
508
+ 'align' => 'center',
509
+ 'headingColor' => '',
510
+ 'subHeadingColor' => '',
511
+ 'separatorBg' => '#eee',
512
+ 'backgroundColor' => '#eee',
513
+ 'separatorColor' => '#eee',
514
+ 'separatorFillColor' => '#61ce70',
515
+ 'separatorBorder' => '#eee',
516
+ 'borderFocus' => '#5cb85c',
517
+ 'horizontalSpace' => 10,
518
+ 'verticalSpace' => 15,
519
+ 'headFontSizeType' => 'px',
520
+ 'headFontSize' => '',
521
+ 'headFontSizeTablet' => '',
522
+ 'headFontSizeMobile' => '',
523
+ 'headFontFamily' => '',
524
+ 'headFontWeight' => '',
525
+ 'headFontSubset' => '',
526
+ 'headLineHeightType' => 'em',
527
+ 'headLineHeight' => '',
528
+ 'headLineHeightTablet' => '',
529
+ 'headLineHeightMobile' => '',
530
+ 'headLoadGoogleFonts' => false,
531
+ 'timelinAlignment' => 'center',
532
+ 'arrowlinAlignment' => 'center',
533
+ 'subHeadFontSizeType' => 'px',
534
+ 'subHeadFontSize' => '',
535
+ 'subHeadFontSizeTablet' => '',
536
+ 'subHeadFontSizeMobile' => '',
537
+ 'subHeadFontFamily' => '',
538
+ 'subHeadFontWeight' => '',
539
+ 'subHeadFontSubset' => '',
540
+ 'subHeadLineHeightType' => 'em',
541
+ 'subHeadLineHeight' => '',
542
+ 'subHeadLineHeightTablet' => '',
543
+ 'subHeadLineHeightMobile' => '',
544
+ 'subHeadLoadGoogleFonts' => false,
545
+ 'headSpace' => 5,
546
+ 'separatorwidth' => 3,
547
+ 'borderwidth' => 0,
548
+ 'iconColor' => '#333',
549
+ 'iconFocus' => '#fff',
550
+ 'iconBgFocus' => '#61ce70',
551
+ 'dateColor' => '#333',
552
+ 'dateFontsizeType' => 'px',
553
+ 'dateFontsize' => '12',
554
+ 'dateFontsizeTablet' => '',
555
+ 'dateFontsizeMobile' => '',
556
+ 'dateFontFamily' => '',
557
+ 'dateFontWeight' => '',
558
+ 'dateFontSubset' => '',
559
+ 'dateLineHeightType' => 'em',
560
+ 'dateLineHeight' => '',
561
+ 'dateLineHeightTablet' => '',
562
+ 'dateLineHeightMobile' => '',
563
+ 'dateLoadGoogleFonts' => false,
564
+ 'connectorBgsize' => 35,
565
+ 'dateBottomspace' => 5,
566
+ 'borderRadius' => 2,
567
+ 'bgPadding' => 20,
568
+ 'iconSize' => 12,
569
+ 'stack' => 'tablet',
570
+ ),
571
+ ),
572
+ 'uagb/google-map' => array(
573
+ 'slug' => '',
574
+ 'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ),
575
+ 'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ),
576
+ 'default' => true,
577
+ 'attributes' => array(
578
+ 'block_id' => '',
579
+ 'height' => '300',
580
+ ),
581
+ ),
582
+ 'uagb/icon-list' => array(
583
+ 'slug' => '',
584
+ 'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ),
585
+ 'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ),
586
+ 'default' => true,
587
+ 'attributes' => array(
588
+ 'align' => 'left',
589
+ 'icon_count' => '1',
590
+ 'icons' => array(
591
+ array(
592
+ 'label' => __( 'Label #1', 'ultimate-addons-for-gutenberg' ),
593
+ 'image_icon' => 'icon',
594
+ 'icon' => 'fab fa-facebook',
595
+ 'image' => '',
596
+ 'icon_color' => '#3a3a3a',
597
+ 'icon_hover_color' => '#3a3a3a',
598
+ 'icon_bg_color' => '',
599
+ 'icon_bg_hover_color' => '',
600
+ 'label_color' => '',
601
+ 'label_hover_color' => '',
602
+ 'link' => '#',
603
+ 'target' => false,
604
+ ),
605
+ ),
606
+ 'gap' => '10',
607
+ 'inner_gap' => '15',
608
+ 'size' => '40',
609
+ 'sizeType' => 'px',
610
+ 'sizeMobile' => '',
611
+ 'sizeTablet' => '',
612
+ 'bgSize' => '0',
613
+ 'borderRadius' => '0',
614
+ 'fontSize' => '',
615
+ 'fontSizeType' => 'px',
616
+ 'fontSizeMobile' => '',
617
+ 'fontSizeTablet' => '',
618
+ 'lineHeight' => '',
619
+ 'lineHeightType' => 'em',
620
+ 'lineHeightMobile' => '',
621
+ 'lineHeightTablet' => '',
622
+ 'fontFamily' => '',
623
+ 'fontWeight' => '',
624
+ 'fontSubset' => '',
625
+ 'loadGoogleFonts' => false,
626
+ 'icon_layout' => 'vertical',
627
+ 'stack' => 'none',
628
+ ),
629
+ ),
630
+ 'uagb/info-box' => array(
631
+ 'slug' => '',
632
+ 'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ),
633
+ 'description' => __( 'This block allows you to place an image or icon along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
634
+ 'default' => true,
635
+ 'attributes' => array(
636
+ 'headingAlign' => 'center',
637
+ 'headingColor' => '',
638
+ 'subHeadingColor' => '',
639
+ 'prefixColor' => '',
640
+ 'prefixFontSize' => '',
641
+ 'prefixFontSizeType' => 'px',
642
+ 'prefixFontSizeTablet' => '',
643
+ 'prefixFontSizeMobile' => '',
644
+ 'prefixFontFamily' => '',
645
+ 'prefixFontWeight' => '',
646
+ 'prefixFontSubset' => '',
647
+ 'prefixLineHeightType' => 'em',
648
+ 'prefixLineHeight' => '',
649
+ 'prefixLineHeightTablet' => '',
650
+ 'prefixLineHeightMobile' => '',
651
+ 'prefixLoadGoogleFonts' => false,
652
+ 'headFontSize' => '',
653
+ 'headFontSizeType' => 'px',
654
+ 'headFontSizeTablet' => '',
655
+ 'headFontSizeMobile' => '',
656
+ 'headFontFamily' => '',
657
+ 'headFontWeight' => '',
658
+ 'headFontSubset' => '',
659
+ 'headLineHeightType' => 'em',
660
+ 'headLineHeight' => '',
661
+ 'headLineHeightTablet' => '',
662
+ 'headLineHeightMobile' => '',
663
+ 'headLoadGoogleFonts' => false,
664
+ 'subHeadFontSize' => '',
665
+ 'subHeadFontSizeType' => 'px',
666
+ 'subHeadFontSizeTablet' => '',
667
+ 'subHeadFontSizeMobile' => '',
668
+ 'subHeadFontFamily' => '',
669
+ 'subHeadFontWeight' => '',
670
+ 'subHeadFontSubset' => '',
671
+ 'subHeadLineHeightType' => 'em',
672
+ 'subHeadLineHeight' => '',
673
+ 'subHeadLineHeightTablet' => '',
674
+ 'subHeadLineHeightMobile' => '',
675
+ 'subHeadLoadGoogleFonts' => false,
676
+ 'separatorWidth' => '',
677
+ 'separatorHeight' => '',
678
+ 'separatorWidthType' => '%',
679
+ 'headSpace' => '10',
680
+ 'separatorSpace' => '10',
681
+ 'subHeadSpace' => '10',
682
+ 'icon' => '',
683
+ 'iconColor' => '#333',
684
+ 'iconSize' => '40',
685
+ 'iconimgPosition' => 'above-title',
686
+ 'block_id' => '',
687
+ 'iconHover' => '',
688
+ 'iconimgBorderRadius' => '0',
689
+ 'seperatorStyle' => 'solid',
690
+ 'seperatorWidth' => '30',
691
+ 'seperatorColor' => '#333',
692
+ 'seperatorThickness' => '2',
693
+ 'ctaLinkColor' => '#333',
694
+ 'ctaFontSize' => '',
695
+ 'ctaFontSizeType' => 'px',
696
+ 'ctaFontSizeMobile' => '',
697
+ 'ctaFontSizeTablet' => '',
698
+ 'ctaFontFamily' => '',
699
+ 'ctaFontWeight' => '',
700
+ 'ctaFontSubset' => '',
701
+ 'ctaLoadGoogleFonts' => false,
702
+ 'ctaBtnLinkColor' => '#333',
703
+ 'ctaBgColor' => 'transparent',
704
+ 'ctaBtnVertPadding' => '10',
705
+ 'ctaBtnHrPadding' => '14',
706
+ 'ctaBorderStyle' => 'solid',
707
+ 'ctaBorderColor' => '#333',
708
+ 'ctaBorderWidth' => '1',
709
+ 'ctaBorderRadius' => '0',
710
+ 'prefixSpace' => '5',
711
+ 'iconLeftMargin' => '5',
712
+ 'iconRightMargin' => '10',
713
+ 'iconTopMargin' => '5',
714
+ 'iconBottomMargin' => '5',
715
+ 'imageSize' => 'thumbnail',
716
+ 'imageWidth' => '120',
717
+ 'seperatorSpace' => '15',
718
+ 'ctaLinkHoverColor' => '',
719
+ 'ctaBgHoverColor' => '',
720
+ 'ctaBorderhoverColor' => '',
721
+ 'ctaIconSpace' => '5',
722
+ ),
723
+ ),
724
+ 'uagb/marketing-button' => array(
725
+ 'slug' => '',
726
+ 'title' => __( 'Marketing Button', 'ultimate-addons-for-gutenberg' ),
727
+ 'description' => __( 'This block allows you to place a Marketing Button with small description.', 'ultimate-addons-for-gutenberg' ),
728
+ 'default' => true,
729
+ 'attributes' => array(
730
+ 'block_id' => '',
731
+ 'align' => 'center',
732
+ 'textAlign' => 'center',
733
+ 'link' => '#',
734
+ 'linkTarget' => false,
735
+ 'titleSpace' => 0,
736
+ 'borderStyle' => 'solid',
737
+ 'borderWidth' => 1,
738
+ 'borderRadius' => '',
739
+ 'borderColor' => '#333',
740
+ 'borderHoverColor' => '',
741
+ 'vPadding' => 8,
742
+ 'hPadding' => 20,
743
+ 'backgroundType' => 'color',
744
+ 'backgroundColor' => '#eeeeee',
745
+ 'backgroundHoverColor' => '',
746
+ 'gradientColor1' => '',
747
+ 'gradientColor2' => '',
748
+ 'gradientType' => 'linear',
749
+ 'gradientLocation1' => 0,
750
+ 'gradientLocation2' => 100,
751
+ 'gradientAngle' => 0,
752
+ 'backgroundOpacity' => '',
753
+ 'backgroundHoverOpacity' => '',
754
+ 'titleColor' => '#333',
755
+ 'titleHoverColor' => '',
756
+ 'iconColor' => '#333',
757
+ 'iconHoverColor' => '',
758
+ 'iconPosition' => 'before',
759
+ 'prefixColor' => '#333',
760
+ 'prefixHoverColor' => '',
761
+ 'iconSpace' => 10,
762
+ 'titleLoadGoogleFonts' => false,
763
+ 'titleFontFamily' => 'Default',
764
+ 'titleFontWeight' => '',
765
+ 'titleFontSubset' => '',
766
+ 'titleFontSize' => 20,
767
+ 'titleFontSizeType' => 'px',
768
+ 'titleFontSizeTablet' => 20,
769
+ 'titleFontSizeMobile' => 20,
770
+ 'titleLineHeightType' => 'em',
771
+ 'titleLineHeight' => '',
772
+ 'titleLineHeightTablet' => '',
773
+ 'titleLineHeightMobile' => '',
774
+ 'prefixLoadGoogleFonts' => false,
775
+ 'prefixFontFamily' => 'Default',
776
+ 'prefixFontWeight' => '',
777
+ 'prefixFontSubset' => '',
778
+ 'prefixFontSize' => 14,
779
+ 'prefixFontSizeType' => 'px',
780
+ 'prefixFontSizeTablet' => 14,
781
+ 'prefixFontSizeMobile' => 14,
782
+ 'prefixLineHeightType' => 'em',
783
+ 'prefixLineHeight' => '',
784
+ 'prefixLineHeightTablet' => '',
785
+ 'prefixLineHeightMobile' => '',
786
+ 'iconFontSize' => 20,
787
+ 'iconFontSizeType' => 'px',
788
+ 'iconFontSizeTablet' => 20,
789
+ 'iconFontSizeMobile' => 20,
790
+ ),
791
+ ),
792
+ 'uagb/buttons' => array(
793
+ 'slug' => '',
794
+ 'title' => __( 'Multi Buttons', 'ultimate-addons-for-gutenberg' ),
795
+ 'description' => __( 'This block allows you to add multiple buttons with a single block.', 'ultimate-addons-for-gutenberg' ),
796
+ 'default' => true,
797
+ 'attributes' => array(
798
+ 'block_id' => '',
799
+ 'align' => 'center',
800
+ 'btn_count' => '2',
801
+ 'buttons' => UAGB_Helper::get_button_defaults(),
802
+ 'gap' => 10,
803
+ 'stack' => 'none',
804
+ 'fontFamily' => '',
805
+ 'fontWeight' => '',
806
+ 'loadGoogleFonts' => false,
807
+ 'fontSubset' => '',
808
+ ),
809
+ ),
810
+ 'uagb/post-carousel' => array(
811
+ 'slug' => '',
812
+ 'title' => __( 'Post Carousel', 'ultimate-addons-for-gutenberg' ),
813
+ 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a carousel layout.', 'ultimate-addons-for-gutenberg' ),
814
+ 'default' => true,
815
+ 'attributes' => array(
816
+ 'align' => 'left',
817
+ 'rowGap' => '20',
818
+ 'columnGap' => '20',
819
+ 'bgColor' => '#e4e4e4',
820
+ 'titleColor' => '#3b3b3b',
821
+ 'titleTag' => 'h3',
822
+ 'titleFontSize' => '',
823
+ 'titleFontSizeType' => 'px',
824
+ 'titleFontSizeMobile' => '',
825
+ 'titleFontSizeTablet' => '',
826
+ 'titleFontFamily' => '',
827
+ 'titleFontWeight' => '',
828
+ 'titleFontSubset' => '',
829
+ 'titleLineHeightType' => 'em',
830
+ 'titleLineHeight' => '',
831
+ 'titleLineHeightTablet' => '',
832
+ 'titleLineHeightMobile' => '',
833
+ 'titleLoadGoogleFonts' => false,
834
+ 'metaFontSize' => '',
835
+ 'metaFontSizeType' => 'px',
836
+ 'metaFontSizeMobile' => '',
837
+ 'metaFontSizeTablet' => '',
838
+ 'metaFontFamily' => '',
839
+ 'metaFontWeight' => '',
840
+ 'metaFontSubset' => '',
841
+ 'metaLineHeightType' => 'em',
842
+ 'metaLineHeight' => '',
843
+ 'metaLineHeightTablet' => '',
844
+ 'metaLineHeightMobile' => '',
845
+ 'metaLoadGoogleFonts' => false,
846
+ 'excerptFontSize' => '',
847
+ 'excerptFontSizeType' => 'px',
848
+ 'excerptFontSizeMobile' => '',
849
+ 'excerptFontSizeTablet' => '',
850
+ 'excerptFontFamily' => '',
851
+ 'excerptFontWeight' => '',
852
+ 'excerptFontSubset' => '',
853
+ 'excerptLineHeightType' => 'em',
854
+ 'excerptLineHeight' => '',
855
+ 'excerptLineHeightTablet' => '',
856
+ 'excerptLineHeightMobile' => '',
857
+ 'excerptLoadGoogleFonts' => false,
858
+ 'ctaFontSize' => '',
859
+ 'ctaFontSizeType' => 'px',
860
+ 'ctaFontSizeTablet' => '',
861
+ 'ctaFontSizeMobile' => '',
862
+ 'ctaFontFamily' => '',
863
+ 'ctaFontWeight' => '',
864
+ 'ctaFontSubset' => '',
865
+ 'ctaLineHeightType' => 'em',
866
+ 'ctaLineHeight' => '',
867
+ 'ctaLineHeightTablet' => '',
868
+ 'ctaLineHeightMobile' => '',
869
+ 'ctaLoadGoogleFonts' => false,
870
+ 'metaColor' => '#777777',
871
+ 'excerptColor' => '',
872
+ 'ctaColor' => '#ffffff',
873
+ 'ctaBgColor' => '#333333',
874
+ 'ctaHColor' => '',
875
+ 'ctaBgHColor' => '',
876
+ 'contentPadding' => '20',
877
+ 'contentPaddingMobile' => '',
878
+ 'btnVPadding' => '5',
879
+ 'btnHPadding' => '10',
880
+ 'titleBottomSpace' => '15',
881
+ 'metaBottomSpace' => '15',
882
+ 'excerptBottomSpace' => '25',
883
+ 'arrowSize' => '20',
884
+ 'arrowColor' => '#aaaaaa',
885
+ 'arrowDots' => '',
886
+ 'arrowBorderSize' => '1',
887
+ 'arrowBorderRadius' => '0',
888
+ 'overlayOpacity' => '50',
889
+ 'bgOverlayColor' => '#ffffff',
890
+ 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
891
+ 'borderWidth' => '1',
892
+ 'borderStyle' => 'none',
893
+ 'borderColor' => '',
894
+ 'borderHColor' => '',
895
+ 'borderRadius' => '0',
896
+ ),
897
+ ),
898
+ 'uagb/post-grid' => array(
899
+ 'slug' => '',
900
+ 'title' => __( 'Post Grid', 'ultimate-addons-for-gutenberg' ),
901
+ 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a grid layout.', 'ultimate-addons-for-gutenberg' ),
902
+ 'default' => true,
903
+ 'attributes' => array(
904
+ 'align' => 'left',
905
+ 'rowGap' => '20',
906
+ 'columnGap' => '20',
907
+ 'bgColor' => '#e4e4e4',
908
+ 'titleColor' => '#3b3b3b',
909
+ 'titleTag' => 'h3',
910
+ 'titleFontSize' => '',
911
+ 'titleFontSizeType' => 'px',
912
+ 'titleFontSizeMobile' => '',
913
+ 'titleFontSizeTablet' => '',
914
+ 'titleFontFamily' => '',
915
+ 'titleFontWeight' => '',
916
+ 'titleFontSubset' => '',
917
+ 'titleLineHeightType' => 'em',
918
+ 'titleLineHeight' => '',
919
+ 'titleLineHeightTablet' => '',
920
+ 'titleLineHeightMobile' => '',
921
+ 'titleLoadGoogleFonts' => false,
922
+ 'metaFontSize' => '',
923
+ 'metaFontSizeType' => 'px',
924
+ 'metaFontSizeMobile' => '',
925
+ 'metaFontSizeTablet' => '',
926
+ 'metaFontFamily' => '',
927
+ 'metaFontWeight' => '',
928
+ 'metaFontSubset' => '',
929
+ 'metaLineHeightType' => 'em',
930
+ 'metaLineHeight' => '',
931
+ 'metaLineHeightTablet' => '',
932
+ 'metaLineHeightMobile' => '',
933
+ 'metaLoadGoogleFonts' => false,
934
+ 'excerptFontSize' => '',
935
+ 'excerptFontSizeType' => 'px',
936
+ 'excerptFontSizeMobile' => '',
937
+ 'excerptFontSizeTablet' => '',
938
+ 'excerptFontFamily' => '',
939
+ 'excerptFontWeight' => '',
940
+ 'excerptFontSubset' => '',
941
+ 'excerptLineHeightType' => 'em',
942
+ 'excerptLineHeight' => '',
943
+ 'excerptLineHeightTablet' => '',
944
+ 'excerptLineHeightMobile' => '',
945
+ 'excerptLoadGoogleFonts' => false,
946
+ 'ctaFontSize' => '',
947
+ 'ctaFontSizeType' => 'px',
948
+ 'ctaFontSizeTablet' => '',
949
+ 'ctaFontSizeMobile' => '',
950
+ 'ctaFontFamily' => '',
951
+ 'ctaFontWeight' => '',
952
+ 'ctaFontSubset' => '',
953
+ 'ctaLineHeightType' => 'em',
954
+ 'ctaLineHeight' => '',
955
+ 'ctaLineHeightTablet' => '',
956
+ 'ctaLineHeightMobile' => '',
957
+ 'ctaLoadGoogleFonts' => false,
958
+ 'metaColor' => '#777777',
959
+ 'excerptColor' => '',
960
+ 'ctaColor' => '#ffffff',
961
+ 'ctaBgColor' => '#333333',
962
+ 'ctaHColor' => '',
963
+ 'ctaBgHColor' => '',
964
+ 'contentPadding' => '20',
965
+ 'contentPaddingMobile' => '',
966
+ 'btnVPadding' => '5',
967
+ 'btnHPadding' => '10',
968
+ 'titleBottomSpace' => '15',
969
+ 'metaBottomSpace' => '15',
970
+ 'excerptBottomSpace' => '25',
971
+ 'overlayOpacity' => '50',
972
+ 'bgOverlayColor' => '#ffffff',
973
+ 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
974
+ 'borderWidth' => '1',
975
+ 'borderStyle' => 'none',
976
+ 'borderColor' => '',
977
+ 'borderHColor' => '',
978
+ 'borderRadius' => '0',
979
+ ),
980
+ ),
981
+ 'uagb/post-masonry' => array(
982
+ 'slug' => '',
983
+ 'title' => __( 'Post Masonry', 'ultimate-addons-for-gutenberg' ),
984
+ 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a masonry layout.', 'ultimate-addons-for-gutenberg' ),
985
+ 'default' => true,
986
+ 'attributes' => array(
987
+ 'align' => 'left',
988
+ 'rowGap' => '20',
989
+ 'columnGap' => '20',
990
+ 'bgColor' => '#e4e4e4',
991
+ 'titleColor' => '#3b3b3b',
992
+ 'titleTag' => 'h3',
993
+ 'titleFontSize' => '',
994
+ 'titleFontSizeType' => 'px',
995
+ 'titleFontSizeMobile' => '',
996
+ 'titleFontSizeTablet' => '',
997
+ 'titleFontFamily' => '',
998
+ 'titleFontWeight' => '',
999
+ 'titleFontSubset' => '',
1000
+ 'titleLineHeightType' => 'em',
1001
+ 'titleLineHeight' => '',
1002
+ 'titleLineHeightTablet' => '',
1003
+ 'titleLineHeightMobile' => '',
1004
+ 'titleLoadGoogleFonts' => false,
1005
+ 'metaFontSize' => '',
1006
+ 'metaFontSizeType' => 'px',
1007
+ 'metaFontSizeMobile' => '',
1008
+ 'metaFontSizeTablet' => '',
1009
+ 'metaFontFamily' => '',
1010
+ 'metaFontWeight' => '',
1011
+ 'metaFontSubset' => '',
1012
+ 'metaLineHeightType' => 'em',
1013
+ 'metaLineHeight' => '',
1014
+ 'metaLineHeightTablet' => '',
1015
+ 'metaLineHeightMobile' => '',
1016
+ 'metaLoadGoogleFonts' => false,
1017
+ 'excerptFontSize' => '',
1018
+ 'excerptFontSizeType' => 'px',
1019
+ 'excerptFontSizeMobile' => '',
1020
+ 'excerptFontSizeTablet' => '',
1021
+ 'excerptFontFamily' => '',
1022
+ 'excerptFontWeight' => '',
1023
+ 'excerptFontSubset' => '',
1024
+ 'excerptLineHeightType' => 'em',
1025
+ 'excerptLineHeight' => '',
1026
+ 'excerptLineHeightTablet' => '',
1027
+ 'excerptLineHeightMobile' => '',
1028
+ 'excerptLoadGoogleFonts' => false,
1029
+ 'ctaFontSize' => '',
1030
+ 'ctaFontSizeType' => 'px',
1031
+ 'ctaFontSizeTablet' => '',
1032
+ 'ctaFontSizeMobile' => '',
1033
+ 'ctaFontFamily' => '',
1034
+ 'ctaFontWeight' => '',
1035
+ 'ctaFontSubset' => '',
1036
+ 'ctaLineHeightType' => 'em',
1037
+ 'ctaLineHeight' => '',
1038
+ 'ctaLineHeightTablet' => '',
1039
+ 'ctaLineHeightMobile' => '',
1040
+ 'ctaLoadGoogleFonts' => false,
1041
+ 'metaColor' => '#777777',
1042
+ 'excerptColor' => '',
1043
+ 'ctaColor' => '#ffffff',
1044
+ 'ctaBgColor' => '#333333',
1045
+ 'ctaHColor' => '',
1046
+ 'ctaBgHColor' => '',
1047
+ 'contentPadding' => '20',
1048
+ 'contentPaddingMobile' => '',
1049
+ 'btnVPadding' => '5',
1050
+ 'btnHPadding' => '10',
1051
+ 'titleBottomSpace' => '15',
1052
+ 'metaBottomSpace' => '15',
1053
+ 'excerptBottomSpace' => '25',
1054
+ 'overlayOpacity' => '50',
1055
+ 'bgOverlayColor' => '#ffffff',
1056
+ 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1057
+ 'borderWidth' => '1',
1058
+ 'borderStyle' => 'none',
1059
+ 'borderColor' => '',
1060
+ 'borderHColor' => '',
1061
+ 'borderRadius' => '0',
1062
+ ),
1063
+ ),
1064
+ 'uagb/post-timeline' => array(
1065
+ 'slug' => '',
1066
+ 'title' => __( 'Post Timeline', 'ultimate-addons-for-gutenberg' ),
1067
+ 'description' => __( 'The Timeline block lets you create beautiful timelines of Posts on your website.', 'ultimate-addons-for-gutenberg' ),
1068
+ 'default' => true,
1069
+ 'attributes' => array(
1070
+ 'align' => 'center',
1071
+ 'headingColor' => '',
1072
+ 'subHeadingColor' => '',
1073
+ 'separatorBg' => '#eee',
1074
+ 'backgroundColor' => '#eee',
1075
+ 'separatorColor' => '#eee',
1076
+ 'separatorFillColor' => '#61ce70',
1077
+ 'separatorBorder' => '#eee',
1078
+ 'borderFocus' => '#5cb85c',
1079
+ 'horizontalSpace' => 10,
1080
+ 'verticalSpace' => 15,
1081
+ 'headFontSizeType' => 'px',
1082
+ 'headFontSize' => '',
1083
+ 'headFontSizeTablet' => '',
1084
+ 'headFontSizeMobile' => '',
1085
+ 'headFontFamily' => '',
1086
+ 'headFontWeight' => '',
1087
+ 'headFontSubset' => '',
1088
+ 'headLineHeightType' => 'em',
1089
+ 'headLineHeight' => '',
1090
+ 'headLineHeightTablet' => '',
1091
+ 'headLineHeightMobile' => '',
1092
+ 'headLoadGoogleFonts' => false,
1093
+ 'timelinAlignment' => 'center',
1094
+ 'arrowlinAlignment' => 'center',
1095
+ 'subHeadFontSizeType' => 'px',
1096
+ 'subHeadFontSize' => '',
1097
+ 'subHeadFontSizeTablet' => '',
1098
+ 'subHeadFontSizeMobile' => '',
1099
+ 'subHeadFontFamily' => '',
1100
+ 'subHeadFontWeight' => '',
1101
+ 'subHeadFontSubset' => '',
1102
+ 'subHeadLineHeightType' => 'em',
1103
+ 'subHeadLineHeight' => '',
1104
+ 'subHeadLineHeightTablet' => '',
1105
+ 'subHeadLineHeightMobile' => '',
1106
+ 'subHeadLoadGoogleFonts' => false,
1107
+ 'headSpace' => 5,
1108
+ 'contentSpace' => 5,
1109
+ 'authorSpace' => 5,
1110
+ 'separatorwidth' => 3,
1111
+ 'borderwidth' => 0,
1112
+ 'iconColor' => '#333',
1113
+ 'iconFocus' => '#fff',
1114
+ 'iconBgFocus' => '#61ce70',
1115
+ 'dateColor' => '#333',
1116
+ 'dateFontsizeType' => 'px',
1117
+ 'dateFontsize' => 12,
1118
+ 'dateFontsizeTablet' => '',
1119
+ 'dateFontsizeMobile' => '',
1120
+ 'dateFontFamily' => '',
1121
+ 'dateFontWeight' => '',
1122
+ 'dateFontSubset' => '',
1123
+ 'dateLineHeightType' => 'em',
1124
+ 'dateLineHeight' => '',
1125
+ 'dateLineHeightTablet' => '',
1126
+ 'dateLineHeightMobile' => '',
1127
+ 'dateLoadGoogleFonts' => false,
1128
+ 'connectorBgsize' => 35,
1129
+ 'dateBottomspace' => 5,
1130
+ 'borderRadius' => 2,
1131
+ 'bgPadding' => 20,
1132
+ 'contentPadding' => 10,
1133
+ 'iconSize' => 12,
1134
+ 'stack' => 'tablet',
1135
+ 'ctaColor' => '#fff',
1136
+ 'authorColor' => '#333',
1137
+ 'ctaFontSizeType' => 'px',
1138
+ 'ctaFontSize' => '',
1139
+ 'ctaFontSizeTablet' => '',
1140
+ 'ctaFontSizeMobile' => '',
1141
+ 'ctaFontFamily' => '',
1142
+ 'ctaFontWeight' => '',
1143
+ 'ctaFontSubset' => '',
1144
+ 'ctaLineHeightType' => 'em',
1145
+ 'ctaLineHeight' => '',
1146
+ 'ctaLineHeightTablet' => '',
1147
+ 'ctaLineHeightMobile' => '',
1148
+ 'ctaLoadGoogleFonts' => false,
1149
+ 'authorFontSizeType' => 'px',
1150
+ 'authorFontSize' => 11,
1151
+ 'authorFontSizeTablet' => '',
1152
+ 'authorFontSizeMobile' => '',
1153
+ 'authorFontFamily' => '',
1154
+ 'authorFontWeight' => '',
1155
+ 'authorFontSubset' => '',
1156
+ 'authorLineHeightType' => 'em',
1157
+ 'authorLineHeight' => '',
1158
+ 'authorLineHeightTablet' => '',
1159
+ 'authorLineHeightMobile' => '',
1160
+ 'authorLoadGoogleFonts' => false,
1161
+ 'ctaBackground' => '#333',
1162
+ ),
1163
+ ),
1164
+ 'uagb/restaurant-menu' => array(
1165
+ 'slug' => '',
1166
+ 'title' => __( 'Price List', 'ultimate-addons-for-gutenberg' ),
1167
+ 'description' => __( 'This block allows you to add attractive Price List.', 'ultimate-addons-for-gutenberg' ),
1168
+ 'default' => true,
1169
+ 'attributes' => array(
1170
+ 'block_id' => '',
1171
+ 'headingAlign' => 'left',
1172
+ 'descColor' => '#333',
1173
+ 'priceColor' => '#888888',
1174
+ 'titleColor' => '#333',
1175
+ 'imagePosition' => 'top',
1176
+ 'imageAlignment' => 'top',
1177
+ 'titleFontSize' => '',
1178
+ 'titleFontSizeType' => 'px',
1179
+ 'titleFontSizeMobile' => '',
1180
+ 'titleFontSizeTablet' => '',
1181
+ 'titleFontFamily' => '',
1182
+ 'titleFontWeight' => '',
1183
+ 'titleFontSubset' => '',
1184
+ 'titleLineHeightType' => 'em',
1185
+ 'titleLineHeight' => '',
1186
+ 'titleLineHeightTablet' => '',
1187
+ 'titleLineHeightMobile' => '',
1188
+ 'titleLoadGoogleFonts' => false,
1189
+ 'priceFontSize' => '',
1190
+ 'priceFontSizeType' => 'px',
1191
+ 'priceFontSizeMobile' => '',
1192
+ 'priceFontSizeTablet' => '',
1193
+ 'priceFontFamily' => '',
1194
+ 'priceFontWeight' => '',
1195
+ 'priceFontSubset' => '',
1196
+ 'priceLineHeightType' => 'em',
1197
+ 'priceLineHeight' => '',
1198
+ 'priceLineHeightTablet' => '',
1199
+ 'priceLineHeightMobile' => '',
1200
+ 'priceLoadGoogleFonts' => false,
1201
+ 'descFontSize' => '',
1202
+ 'descFontSizeType' => 'px',
1203
+ 'descFontSizeMobile' => '',
1204
+ 'descFontSizeTablet' => '',
1205
+ 'descFontFamily' => '',
1206
+ 'descFontWeight' => '',
1207
+ 'descFontSubset' => '',
1208
+ 'descLineHeightType' => 'em',
1209
+ 'descLineHeight' => '',
1210
+ 'descLineHeightTablet' => '',
1211
+ 'descLineHeightMobile' => '',
1212
+ 'descLoadGoogleFonts' => false,
1213
+ 'priceSpace' => 5,
1214
+ 'descSpace' => 15,
1215
+ 'titleSpace' => 10,
1216
+ 'imgVrPadding' => 0,
1217
+ 'imgHrPadding' => 0,
1218
+ 'imgTopPadding' => 0,
1219
+ 'imgBottomPadding' => 0,
1220
+ 'iconImage' => '',
1221
+ 'imageSize' => 'medium',
1222
+ 'imageWidth' => '',
1223
+ 'columns' => 2,
1224
+ 'tcolumns' => 2,
1225
+ 'mcolumns' => 1,
1226
+ 'rowGap' => 10,
1227
+ 'columnGap' => 10,
1228
+ 'contentHrPadding' => 5,
1229
+ 'contentVrPadding' => 5,
1230
+ 'seperatorStyle' => 'dashed',
1231
+ 'seperatorWidth' => '100',
1232
+ 'seperatorThickness' => '1',
1233
+ 'seperatorColor' => '#b2b4b5',
1234
+ ),
1235
+ ),
1236
+ 'uagb/section' => array(
1237
+ 'slug' => '',
1238
+ 'title' => __( 'Section', 'ultimate-addons-for-gutenberg' ),
1239
+ 'description' => __( 'This block is an outer wrap section that allows you to add other blocks within it.', 'ultimate-addons-for-gutenberg' ),
1240
+ 'default' => true,
1241
+ 'attributes' => array(
1242
+ 'topPadding' => '20',
1243
+ 'bottomPadding' => '20',
1244
+ 'leftPadding' => '20',
1245
+ 'rightPadding' => '20',
1246
+ 'topMargin' => '0',
1247
+ 'bottomMargin' => '0',
1248
+ 'leftMargin' => '0',
1249
+ 'rightMargin' => '0',
1250
+ 'topPaddingTablet' => '',
1251
+ 'bottomPaddingTablet' => '',
1252
+ 'leftPaddingTablet' => '',
1253
+ 'rightPaddingTablet' => '',
1254
+ 'topPaddingMobile' => '',
1255
+ 'bottomPaddingMobile' => '',
1256
+ 'leftPaddingMobile' => '',
1257
+ 'rightPaddingMobile' => '',
1258
+ 'topMarginMobile' => '',
1259
+ 'bottomMarginMobile' => '',
1260
+ 'leftMarginMobile' => '',
1261
+ 'rightMarginMobile' => '',
1262
+ 'topMarginTablet' => '',
1263
+ 'bottomMarginTablet' => '',
1264
+ 'leftMarginTablet' => '',
1265
+ 'rightMarginTablet' => '',
1266
+ 'contentWidth' => 'boxed',
1267
+ 'width' => '900',
1268
+ 'innerWidth' => '1140',
1269
+ 'tag' => 'section',
1270
+ 'backgroundType' => 'none',
1271
+ 'gradientColor1' => '',
1272
+ 'gradientColor2' => '',
1273
+ 'backgroundVideoColor' => '',
1274
+ 'backgroundPosition' => 'center-center',
1275
+ 'backgroundSize' => 'cover',
1276
+ 'backgroundRepeat' => 'no-repeat',
1277
+ 'backgroundAttachment' => 'scroll',
1278
+ 'gradientType' => 'linear',
1279
+ 'gradientLocation1' => '0',
1280
+ 'gradientLocation2' => '100',
1281
+ 'gradientAngle' => '0',
1282
+ 'backgroundColor' => '',
1283
+ 'backgroundOpacity' => '',
1284
+ 'backgroundVideoOpacity' => '50',
1285
+ 'backgroundImageColor' => '',
1286
+ 'align' => 'center',
1287
+ 'borderStyle' => 'none',
1288
+ 'borderWidth' => '1',
1289
+ 'borderRadius' => '',
1290
+ 'borderColor' => '',
1291
+ 'themeWidth' => false,
1292
+ ),
1293
+ ),
1294
+ 'uagb/social-share' => array(
1295
+ 'slug' => '',
1296
+ 'title' => __( 'Social Share', 'ultimate-addons-for-gutenberg' ),
1297
+ 'description' => __( 'This block allows you to let users share your content across various social networking sites.', 'ultimate-addons-for-gutenberg' ),
1298
+ 'default' => true,
1299
+ 'attributes' => array(
1300
+ 'align' => 'center',
1301
+ 'social_count' => '1',
1302
+ 'socials' => array(
1303
+ array(
1304
+ 'type' => 'facebook',
1305
+ 'image_icon' => 'icon',
1306
+ 'icon' => 'fab fa-facebook',
1307
+ 'image' => '',
1308
+ 'icon_color' => '#3a3a3a',
1309
+ 'icon_hover_color' => '#3a3a3a',
1310
+ 'icon_bg_color' => '',
1311
+ 'icon_bg_hover_color' => '',
1312
+ ),
1313
+ ),
1314
+ 'gap' => '10',
1315
+ 'size' => '40',
1316
+ 'sizeType' => 'px',
1317
+ 'sizeMobile' => '',
1318
+ 'sizeTablet' => '',
1319
+ 'bgSize' => '0',
1320
+ 'bgSizeType' => 'px',
1321
+ 'bgSizeMobile' => '',
1322
+ 'bgSizeTablet' => '',
1323
+ 'borderRadius' => '0',
1324
+ 'social_layout' => 'horizontal',
1325
+ 'stack' => 'none',
1326
+ ),
1327
+ ),
1328
+ 'uagb/team' => array(
1329
+ 'slug' => '',
1330
+ 'title' => __( 'Team', 'ultimate-addons-for-gutenberg' ),
1331
+ 'description' => __( 'This block allows you to display your team. Add their picture, name, what they do and links to their social profiles.', 'ultimate-addons-for-gutenberg' ),
1332
+ 'default' => true,
1333
+ 'attributes' => array(
1334
+ 'block_id' => '',
1335
+ 'align' => 'center',
1336
+ 'tag' => 'h3',
1337
+ 'titleColor' => '',
1338
+ 'prefixColor' => '#888888',
1339
+ 'descColor' => '',
1340
+ 'socialColor' => '#333',
1341
+ 'socialHoverColor' => '',
1342
+ 'titleFontFamily' => '',
1343
+ 'titleLoadGoogleFonts' => false,
1344
+ 'titleFontWeight' => '',
1345
+ 'titleFontSubset' => '',
1346
+ 'titleFontSize' => 15,
1347
+ 'titleFontSizeType' => 'px',
1348
+ 'titleFontSizeTablet' => '',
1349
+ 'titleFontSizeMobile' => '',
1350
+ 'titleLineHeight' => '',
1351
+ 'titleLineHeightType' => 'em',
1352
+ 'titleLineHeightTablet' => '',
1353
+ 'titleLineHeightMobile' => '',
1354
+ 'prefixFontFamily' => '',
1355
+ 'prefixLoadGoogleFonts' => false,
1356
+ 'prefixFontWeight' => '',
1357
+ 'prefixFontSubset' => '',
1358
+ 'prefixFontSize' => 15,
1359
+ 'prefixFontSizeType' => 'px',
1360
+ 'prefixFontSizeTablet' => '',
1361
+ 'prefixFontSizeMobile' => '',
1362
+ 'prefixLineHeight' => '',
1363
+ 'prefixLineHeightType' => 'em',
1364
+ 'prefixLineHeightTablet' => '',
1365
+ 'prefixLineHeightMobile' => '',
1366
+ 'descFontFamily' => '',
1367
+ 'descLoadGoogleFonts' => false,
1368
+ 'descFontWeight' => '',
1369
+ 'descFontSubset' => '',
1370
+ 'descFontSize' => 15,
1371
+ 'descFontSizeType' => 'px',
1372
+ 'descFontSizeTablet' => '',
1373
+ 'descFontSizeMobile' => '',
1374
+ 'descLineHeight' => '',
1375
+ 'descLineHeightType' => 'em',
1376
+ 'descLineHeightTablet' => '',
1377
+ 'descLineHeightMobile' => '',
1378
+ 'socialFontSize' => 20,
1379
+ 'socialFontSizeType' => 'px',
1380
+ 'socialFontSizeMobile' => '',
1381
+ 'socialFontSizeTablet' => '',
1382
+ 'image' => '',
1383
+ 'imgStyle' => 'normal',
1384
+ 'imgPosition' => 'above',
1385
+ 'imgAlign' => 'top',
1386
+ 'imgSiz' => 'thumbnail',
1387
+ 'imgWidth' => 120,
1388
+ 'titleSpace' => '',
1389
+ 'prefixSpace' => '',
1390
+ 'descSpace' => 10,
1391
+ 'imgLeftMargin' => 20,
1392
+ 'imgRightMargin' => 20,
1393
+ 'imgTopMargin' => 15,
1394
+ 'imgBottomMargin' => 15,
1395
+ 'socialSpace' => 20,
1396
+ 'headingTag' => 'h3',
1397
+ ),
1398
+ ),
1399
+ 'uagb/testimonial' => array(
1400
+ 'slug' => '',
1401
+ 'title' => __( 'Testimonial', 'ultimate-addons-for-gutenberg' ),
1402
+ 'description' => __( 'This block helps your display some amazing client feedback within your website.', 'ultimate-addons-for-gutenberg' ),
1403
+ 'default' => true,
1404
+ 'attributes' => array(
1405
+ 'headingAlign' => 'center',
1406
+ 'companyColor' => '#888888',
1407
+ 'descColor' => '#333',
1408
+ 'authorColor' => '#333',
1409
+ 'nameFontSizeType' => 'px',
1410
+ 'nameFontSize' => '',
1411
+ 'nameFontSizeTablet' => '',
1412
+ 'nameFontSizeMobile' => '',
1413
+ 'nameFontFamily' => '',
1414
+ 'nameFontWeight' => '',
1415
+ 'nameFontSubset' => '',
1416
+ 'nameLineHeightType' => 'em',
1417
+ 'nameLineHeight' => '',
1418
+ 'nameLineHeightTablet' => '',
1419
+ 'nameLineHeightMobile' => '',
1420
+ 'nameLoadGoogleFonts' => false,
1421
+ 'companyFontSizeType' => 'px',
1422
+ 'companyFontSize' => '',
1423
+ 'companyFontSizeTablet' => '',
1424
+ 'companyFontSizeMobile' => '',
1425
+ 'companyFontFamily' => '',
1426
+ 'companyFontWeight' => '',
1427
+ 'companyFontSubset' => '',
1428
+ 'companyLineHeightType' => 'em',
1429
+ 'companyLineHeight' => '',
1430
+ 'companyLineHeightTablet' => '',
1431
+ 'companyLineHeightMobile' => '',
1432
+ 'companyLoadGoogleFonts' => false,
1433
+ 'descFontSizeType' => 'px',
1434
+ 'descFontSize' => '',
1435
+ 'descFontSizeTablet' => '',
1436
+ 'descFontSizeMobile' => '',
1437
+ 'descFontFamily' => '',
1438
+ 'descFontWeight' => '',
1439
+ 'descFontSubset' => '',
1440
+ 'descLineHeightType' => 'em',
1441
+ 'descLineHeight' => '',
1442
+ 'descLineHeightTablet' => '',
1443
+ 'descLineHeightMobile' => '',
1444
+ 'descLoadGoogleFonts' => false,
1445
+ 'descSpace' => 15,
1446
+ 'block_id' => '',
1447
+ 'nameSpace' => 5,
1448
+ 'imgVrPadding' => 10,
1449
+ 'imgHrPadding' => 10,
1450
+ 'imageWidth' => 60,
1451
+ 'rowGap' => 10,
1452
+ 'columnGap' => 10,
1453
+ 'contentPadding' => 5,
1454
+ 'backgroundColor' => '',
1455
+ 'backgroundImage' => '',
1456
+ 'backgroundPosition' => 'center-center',
1457
+ 'backgroundSize' => 'cover',
1458
+ 'backgroundRepeat' => 'no-repeat',
1459
+ 'backgroundImageColor' => '',
1460
+ 'backgroundOpacity' => 0,
1461
+ 'borderStyle' => 'none',
1462
+ 'borderWidth' => 1,
1463
+ 'borderRadius' => 0,
1464
+ 'borderColor' => '#333',
1465
+ 'arrowColor' => '#333',
1466
+ 'arrowDots' => 'arrowDots',
1467
+ 'arrowBorderSize' => 1,
1468
+ 'arrowBorderRadius' => 0,
1469
+ 'columns' => 1,
1470
+ 'autoplaySpeed' => 2000,
1471
+ 'autoplay' => true,
1472
+ 'infiniteLoop' => true,
1473
+ 'pauseOnHover' => true,
1474
+ 'transitionSpeed' => 500,
1475
+ 'tcolumns' => 1,
1476
+ 'mcolumns' => 1,
1477
+ 'arrowSize' => 20,
1478
+ 'test_item_count' => 3,
1479
+ ),
1480
+ ),
1481
+ );
1482
+ }
1483
+ return self::$block_attributes;
1484
+ }
1485
+ }
1486
+ }
classes/class-uagb-helper.php CHANGED
@@ -1,1026 +1,1026 @@
1
- <?php
2
- /**
3
- * UAGB Helper.
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! class_exists( 'UAGB_Helper' ) ) {
9
-
10
- /**
11
- * Class UAGB_Helper.
12
- */
13
- final class UAGB_Helper {
14
-
15
- /**
16
- * Member Variable
17
- *
18
- * @since 0.0.1
19
- * @var instance
20
- */
21
- private static $instance;
22
-
23
- /**
24
- * Member Variable
25
- *
26
- * @since 0.0.1
27
- * @var instance
28
- */
29
- public static $block_list;
30
-
31
- /**
32
- * Store Json variable
33
- *
34
- * @since 1.8.1
35
- * @var instance
36
- */
37
- public static $icon_json;
38
-
39
- /**
40
- * Page Blocks Variable
41
- *
42
- * @since 1.6.0
43
- * @var instance
44
- */
45
- public static $page_blocks;
46
-
47
- /**
48
- * Google fonts to enqueue
49
- *
50
- * @var array
51
- */
52
- public static $gfonts = array();
53
-
54
- /**
55
- * Initiator
56
- *
57
- * @since 0.0.1
58
- */
59
- public static function get_instance() {
60
- if ( ! isset( self::$instance ) ) {
61
- self::$instance = new self;
62
- }
63
- return self::$instance;
64
- }
65
-
66
- /**
67
- * Constructor
68
- */
69
- public function __construct() {
70
-
71
- require( UAGB_DIR . 'classes/class-uagb-config.php' );
72
- require( UAGB_DIR . 'classes/class-uagb-block-helper.php' );
73
-
74
- self::$block_list = UAGB_Config::get_block_attributes();
75
-
76
- add_action( 'wp_head', array( $this, 'generate_stylesheet' ), 80 );
77
- add_action( 'wp_head', array( $this, 'frontend_gfonts' ), 120 );
78
- add_action( 'wp_footer', array( $this, 'generate_script' ), 1000 );
79
- }
80
-
81
- /**
82
- * Load the front end Google Fonts
83
- */
84
- public function frontend_gfonts() {
85
- if ( empty( self::$gfonts ) ) {
86
- return;
87
- }
88
- $show_google_fonts = apply_filters( 'uagb_blocks_show_google_fonts', true );
89
- if ( ! $show_google_fonts ) {
90
- return;
91
- }
92
- $link = '';
93
- $subsets = array();
94
- foreach ( self::$gfonts as $key => $gfont_values ) {
95
- if ( ! empty( $link ) ) {
96
- $link .= '%7C'; // Append a new font to the string.
97
- }
98
- $link .= $gfont_values['fontfamily'];
99
- if ( ! empty( $gfont_values['fontvariants'] ) ) {
100
- $link .= ':';
101
- $link .= implode( ',', $gfont_values['fontvariants'] );
102
- }
103
- if ( ! empty( $gfont_values['fontsubsets'] ) ) {
104
- foreach ( $gfont_values['fontsubsets'] as $subset ) {
105
- if ( ! in_array( $subset, $subsets ) ) {
106
- array_push( $subsets, $subset );
107
- }
108
- }
109
- }
110
- }
111
- if ( ! empty( $subsets ) ) {
112
- $link .= '&amp;subset=' . implode( ',', $subsets );
113
- }
114
- echo '<link href="//fonts.googleapis.com/css?family=' . esc_attr( str_replace( '|', '%7C', $link ) ) . '" rel="stylesheet">';
115
- }
116
-
117
-
118
- /**
119
- * Parse CSS into correct CSS syntax.
120
- *
121
- * @param array $selectors The block selectors.
122
- * @param string $id The selector ID.
123
- * @since 0.0.1
124
- */
125
- public static function generate_css( $selectors, $id ) {
126
-
127
- $styling_css = '';
128
-
129
- if ( empty( $selectors ) ) {
130
- return;
131
- }
132
-
133
- foreach ( $selectors as $key => $value ) {
134
- $styling_css .= $id;
135
-
136
- $styling_css .= $key . ' { ';
137
- $css = '';
138
-
139
- foreach ( $value as $j => $val ) {
140
- $css .= $j . ': ' . $val . ';';
141
- }
142
-
143
- $styling_css .= $css . ' } ';
144
- }
145
-
146
- return $styling_css;
147
- }
148
-
149
- /**
150
- * Parse CSS into correct CSS syntax.
151
- *
152
- * @param array $selectors The block selectors.
153
- * @param string $id The selector ID.
154
- * @param string $type Media Query type mobile/tablet.
155
- * @since 0.0.1
156
- */
157
- public static function generate_responsive_css( $selectors, $id, $type ) {
158
-
159
- $breakpoint = ( 'mobile' == $type ) ? UAGB_MOBILE_BREAKPOINT : UAGB_TABLET_BREAKPOINT;
160
-
161
- $css = '@media only screen and (max-width: ' . $breakpoint . 'px) { ';
162
- $css .= self::generate_css( $selectors, $id );
163
- $css .= ' } ';
164
-
165
- return $css;
166
- }
167
-
168
- /**
169
- * Generates CSS recurrsively.
170
- *
171
- * @param object $block The block object.
172
- * @since 0.0.1
173
- */
174
- public function get_block_css( $block ) {
175
-
176
- // @codingStandardsIgnoreStart
177
-
178
- $block = ( array ) $block;
179
-
180
- $name = $block['blockName'];
181
- $css = '';
182
-
183
- if( ! isset( $name ) ) {
184
- return;
185
- }
186
-
187
- if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
188
- $blockattr = $block['attrs'];
189
- if ( isset( $blockattr['block_id'] ) ) {
190
- $block_id = $blockattr['block_id'];
191
- }
192
- }
193
-
194
- switch ( $name ) {
195
- case 'uagb/section':
196
- $css .= UAGB_Block_Helper::get_section_css( $blockattr, $block_id );
197
- break;
198
-
199
- case 'uagb/advanced-heading':
200
- $css .= UAGB_Block_Helper::get_adv_heading_css( $blockattr, $block_id );
201
- UAGB_Block_Helper::blocks_advanced_heading_gfont( $blockattr );
202
- break;
203
-
204
- case 'uagb/info-box':
205
- $css .= UAGB_Block_Helper::get_info_box_css( $blockattr, $block_id );
206
- UAGB_Block_Helper::blocks_info_box_gfont( $blockattr );
207
- break;
208
-
209
- case 'uagb/buttons':
210
- $css .= UAGB_Block_Helper::get_buttons_css( $blockattr, $block_id );
211
- UAGB_Block_Helper::blocks_buttons_gfont( $blockattr );
212
- break;
213
-
214
- case 'uagb/blockquote':
215
- $css .= UAGB_Block_Helper::get_blockquote_css( $blockattr, $block_id );
216
- UAGB_Block_Helper::blocks_blockquote_gfont( $blockattr );
217
- break;
218
-
219
- case 'uagb/testimonial':
220
- $css .= UAGB_Block_Helper::get_testimonial_css( $blockattr, $block_id );
221
- UAGB_Block_Helper::blocks_testimonial_gfont( $blockattr );
222
- break;
223
-
224
- case 'uagb/team':
225
- $css .= UAGB_Block_Helper::get_team_css( $blockattr, $block_id );
226
- UAGB_Block_Helper::blocks_team_gfont( $blockattr );
227
- break;
228
-
229
- case 'uagb/social-share':
230
- $css .= UAGB_Block_Helper::get_social_share_css( $blockattr, $block_id );
231
- break;
232
-
233
- case 'uagb/content-timeline':
234
- $css .= UAGB_Block_Helper::get_content_timeline_css( $blockattr, $block_id );
235
- UAGB_Block_Helper::blocks_content_timeline_gfont( $blockattr );
236
- break;
237
-
238
- case 'uagb/restaurant-menu':
239
- $css .= UAGB_Block_Helper::get_restaurant_menu_css( $blockattr, $block_id );
240
- UAGB_Block_Helper::blocks_restaurant_menu_gfont( $blockattr );
241
- break;
242
-
243
- case 'uagb/call-to-action':
244
- $css .= UAGB_Block_Helper::get_call_to_action_css( $blockattr, $block_id );
245
- UAGB_Block_Helper::blocks_call_to_action_gfont( $blockattr );
246
- break;
247
-
248
- case 'uagb/post-timeline':
249
- $css .= UAGB_Block_Helper::get_post_timeline_css( $blockattr, $block_id );
250
- UAGB_Block_Helper::blocks_post_timeline_gfont( $blockattr );
251
- break;
252
-
253
- case 'uagb/icon-list':
254
- $css .= UAGB_Block_Helper::get_icon_list_css( $blockattr, $block_id );
255
- UAGB_Block_Helper::blocks_icon_list_gfont( $blockattr );
256
- break;
257
-
258
- case 'uagb/post-grid':
259
- $css .= UAGB_Block_Helper::get_post_grid_css( $blockattr, $block_id );
260
- UAGB_Block_Helper::blocks_post_gfont( $blockattr );
261
- break;
262
-
263
- case 'uagb/post-carousel':
264
- $css .= UAGB_Block_Helper::get_post_carousel_css( $blockattr, $block_id );
265
- UAGB_Block_Helper::blocks_post_gfont( $blockattr );
266
- break;
267
-
268
- case 'uagb/post-masonry':
269
- $css .= UAGB_Block_Helper::get_post_masonry_css( $blockattr, $block_id );
270
- UAGB_Block_Helper::blocks_post_gfont( $blockattr );
271
- break;
272
-
273
- case 'uagb/columns':
274
- $css .= UAGB_Block_Helper::get_columns_css( $blockattr, $block_id );
275
- break;
276
-
277
- case 'uagb/column':
278
- $css .= UAGB_Block_Helper::get_column_css( $blockattr, $block_id );
279
- break;
280
-
281
- case 'uagb/cf7-styler':
282
- $css .= UAGB_Block_Helper::get_cf7_styler_css( $blockattr, $block_id );
283
- UAGB_Block_Helper::blocks_cf7_styler_gfont( $blockattr );
284
- break;
285
-
286
- case 'uagb/marketing-button':
287
- $css .= UAGB_Block_Helper::get_marketing_btn_css( $blockattr, $block_id );
288
- UAGB_Block_Helper::blocks_marketing_btn_gfont( $blockattr );
289
- break;
290
-
291
- default:
292
- // Nothing to do here.
293
- break;
294
- }
295
-
296
- if ( isset( $block['innerBlocks'] ) ) {
297
- foreach ( $block['innerBlocks'] as $j => $inner_block ) {
298
- if ( 'core/block' == $inner_block['blockName'] ) {
299
- $id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
300
-
301
- if ( $id ) {
302
- $content = get_post_field( 'post_content', $id );
303
-
304
- $reusable_blocks = $this->parse( $content );
305
-
306
- $this->get_stylesheet( $reusable_blocks );
307
- }
308
- } else {
309
- // Get CSS for the Block.
310
- $css .= $this->get_block_css( $inner_block );
311
- }
312
- }
313
- }
314
-
315
- echo $css;
316
-
317
- // @codingStandardsIgnoreEnd
318
- }
319
-
320
- /**
321
- * Adds Google fonts all blocks.
322
- *
323
- * @param array $load_google_font the blocks attr.
324
- * @param array $font_family the blocks attr.
325
- * @param array $font_weight the blocks attr.
326
- * @param array $font_subset the blocks attr.
327
- */
328
- public static function blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset ) {
329
-
330
- if ( true == $load_google_font ) {
331
- if ( ! array_key_exists( $font_family, self::$gfonts ) ) {
332
- $add_font = array(
333
- 'fontfamily' => $font_family,
334
- 'fontvariants' => ( isset( $font_weight ) && ! empty( $font_weight ) ? array( $font_weight ) : array() ),
335
- 'fontsubsets' => ( isset( $font_subset ) && ! empty( $font_subset ) ? array( $font_subset ) : array() ),
336
- );
337
- self::$gfonts[ $font_family ] = $add_font;
338
- } else {
339
- if ( isset( $font_weight ) && ! empty( $font_weight ) ) {
340
- if ( ! in_array( $font_weight, self::$gfonts[ $font_family ]['fontvariants'], true ) ) {
341
- array_push( self::$gfonts[ $font_family ]['fontvariants'], $font_weight );
342
- }
343
- }
344
- if ( isset( $font_subset ) && ! empty( $font_subset ) ) {
345
- if ( ! in_array( $font_subset, self::$gfonts[ $font_family ]['fontsubsets'], true ) ) {
346
- array_push( self::$gfonts[ $font_family ]['fontsubsets'], $font_subset );
347
- }
348
- }
349
- }
350
- }
351
- }
352
-
353
- /**
354
- * Generates Js recurrsively.
355
- *
356
- * @param object $block The block object.
357
- * @since 1.6.0
358
- */
359
- public function get_block_js( $block ) {
360
-
361
- // @codingStandardsIgnoreStart
362
-
363
- $block = ( array ) $block;
364
-
365
- $name = $block['blockName'];
366
- $js = '';
367
-
368
- if( ! isset( $name ) ) {
369
- return;
370
- }
371
-
372
- if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
373
- $blockattr = $block['attrs'];
374
- if ( isset( $blockattr['block_id'] ) ) {
375
- $block_id = $blockattr['block_id'];
376
- }
377
- }
378
-
379
- switch ( $name ) {
380
-
381
- case 'uagb/testimonial':
382
- $js .= UAGB_Block_Helper::get_testimonial_js( $blockattr, $block_id );
383
- break;
384
-
385
- case 'uagb/blockquote':
386
- $js .= UAGB_Block_Helper::get_blockquote_js( $blockattr, $block_id );
387
- break;
388
-
389
- case 'uagb/social-share':
390
- $js .= UAGB_Block_Helper::get_social_share_js( $block_id );
391
- break;
392
-
393
- default:
394
- // Nothing to do here.
395
- break;
396
- }
397
-
398
- if ( isset( $block['innerBlocks'] ) ) {
399
-
400
- foreach ( $block['innerBlocks'] as $j => $inner_block ) {
401
-
402
- if ( 'core/block' == $inner_block['blockName'] ) {
403
- $id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
404
-
405
- if ( $id ) {
406
- $content = get_post_field( 'post_content', $id );
407
-
408
- $reusable_blocks = $this->parse( $content );
409
-
410
- $this->get_scripts( $reusable_blocks );
411
- }
412
- } else {
413
- // Get JS for the Block.
414
- $js .= $this->get_block_js( $inner_block );
415
- }
416
- }
417
- }
418
-
419
- echo $js;
420
-
421
- // @codingStandardsIgnoreEnd
422
- }
423
-
424
- /**
425
- * Generates stylesheet and appends in head tag.
426
- *
427
- * @since 0.0.1
428
- */
429
- public function generate_stylesheet() {
430
-
431
- $this_post = array();
432
-
433
- if ( is_single() || is_page() || is_404() ) {
434
- global $post;
435
- $this_post = $post;
436
- $this->_generate_stylesheet( $this_post );
437
- if ( ! is_object( $post ) ) {
438
- return;
439
- }
440
- } elseif ( is_archive() || is_home() || is_search() ) {
441
- global $wp_query;
442
-
443
- if ( $wp_query->have_posts() ) {
444
- while ( $wp_query->have_posts() ) {
445
- $wp_query->the_post();
446
- global $post;
447
- $this_post = $post;
448
- $this->_generate_stylesheet( $this_post );
449
- }
450
- }
451
- }
452
- }
453
-
454
- /**
455
- * Generates stylesheet in loop.
456
- *
457
- * @param object $this_post Current Post Object.
458
- * @since 1.7.0
459
- */
460
- public function _generate_stylesheet( $this_post ) {
461
-
462
- if ( has_blocks( get_the_ID() ) ) {
463
- $blocks = $this->parse( $this_post->post_content );
464
- self::$page_blocks = $blocks;
465
-
466
- if ( ! is_array( $blocks ) || empty( $blocks ) ) {
467
- return;
468
- }
469
-
470
- ob_start();
471
- ?>
472
- <style type="text/css" media="all" id="uagb-style-frontend"><?php $this->get_stylesheet( $blocks ); ?></style>
473
- <?php
474
- }
475
- }
476
-
477
- /**
478
- * Generates scripts and appends in footer tag.
479
- *
480
- * @since 1.5.0
481
- */
482
- public function generate_script() {
483
-
484
- $blocks = self::$page_blocks;
485
-
486
- if ( ! is_array( $blocks ) || empty( $blocks ) ) {
487
- return;
488
- }
489
-
490
- ob_start();
491
- ?>
492
- <script type="text/javascript" id="uagb-script-frontend">
493
- ( function( $ ) {
494
- <?php $this->get_scripts( $blocks ); ?>
495
- })(jQuery)
496
- </script>
497
- <?php
498
- }
499
-
500
- /**
501
- * Parse Guten Block.
502
- *
503
- * @param string $content the content string.
504
- * @since 1.1.0
505
- */
506
- public function parse( $content ) {
507
-
508
- global $wp_version;
509
-
510
- return ( version_compare( $wp_version, '5', '>=' ) ) ? parse_blocks( $content ) : gutenberg_parse_blocks( $content );
511
- }
512
-
513
- /**
514
- * Generates stylesheet for reusable blocks.
515
- *
516
- * @param array $blocks Blocks array.
517
- * @since 1.1.0
518
- */
519
- public function get_stylesheet( $blocks ) {
520
-
521
- foreach ( $blocks as $i => $block ) {
522
- if ( is_array( $block ) ) {
523
- if ( 'core/block' == $block['blockName'] ) {
524
- $id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
525
-
526
- if ( $id ) {
527
- $content = get_post_field( 'post_content', $id );
528
-
529
- $reusable_blocks = $this->parse( $content );
530
-
531
- $this->get_stylesheet( $reusable_blocks );
532
- }
533
- } else {
534
- // Get CSS for the Block.
535
- $this->get_block_css( $block );
536
- }
537
- }
538
- }
539
- }
540
-
541
-
542
- /**
543
- * Generates scripts for reusable blocks.
544
- *
545
- * @param array $blocks Blocks array.
546
- * @since 1.6.0
547
- */
548
- public function get_scripts( $blocks ) {
549
-
550
- foreach ( $blocks as $i => $block ) {
551
- if ( is_array( $block ) ) {
552
- if ( 'core/block' == $block['blockName'] ) {
553
- $id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
554
-
555
- if ( $id ) {
556
- $content = get_post_field( 'post_content', $id );
557
-
558
- $reusable_blocks = $this->parse( $content );
559
-
560
- $this->get_scripts( $reusable_blocks );
561
- }
562
- } else {
563
- // Get JS for the Block.
564
- $this->get_block_js( $block );
565
- }
566
- }
567
- }
568
- }
569
-
570
- /**
571
- * Get Buttons default array.
572
- *
573
- * @since 0.0.1
574
- */
575
- public static function get_button_defaults() {
576
-
577
- $default = array();
578
-
579
- for ( $i = 1; $i <= 2; $i++ ) {
580
- array_push(
581
- $default,
582
- array(
583
- 'size' => '',
584
- 'vPadding' => 10,
585
- 'hPadding' => 14,
586
- 'borderWidth' => 1,
587
- 'borderRadius' => 2,
588
- 'borderStyle' => 'solid',
589
- 'borderColor' => '#333',
590
- 'borderHColor' => '#333',
591
- 'color' => '#333',
592
- 'background' => '',
593
- 'hColor' => '#333',
594
- 'hBackground' => '',
595
- 'sizeType' => 'px',
596
- 'sizeMobile' => '',
597
- 'sizeTablet' => '',
598
- 'lineHeightType' => 'em',
599
- 'lineHeight' => '',
600
- 'lineHeightMobile' => '',
601
- 'lineHeightTablet' => '',
602
- )
603
- );
604
- }
605
-
606
- return $default;
607
- }
608
-
609
- /**
610
- * Returns an option from the database for
611
- * the admin settings page.
612
- *
613
- * @param string $key The option key.
614
- * @param mixed $default Option default value if option is not available.
615
- * @param boolean $network_override Whether to allow the network admin setting to be overridden on subsites.
616
- * @return string Return the option value
617
- */
618
- public static function get_admin_settings_option( $key, $default = false, $network_override = false ) {
619
-
620
- // Get the site-wide option if we're in the network admin.
621
- if ( $network_override && is_multisite() ) {
622
- $value = get_site_option( $key, $default );
623
- } else {
624
- $value = get_option( $key, $default );
625
- }
626
-
627
- return $value;
628
- }
629
-
630
- /**
631
- * Updates an option from the admin settings page.
632
- *
633
- * @param string $key The option key.
634
- * @param mixed $value The value to update.
635
- * @param bool $network Whether to allow the network admin setting to be overridden on subsites.
636
- * @return mixed
637
- */
638
- public static function update_admin_settings_option( $key, $value, $network = false ) {
639
-
640
- // Update the site-wide option since we're in the network admin.
641
- if ( $network && is_multisite() ) {
642
- update_site_option( $key, $value );
643
- } else {
644
- update_option( $key, $value );
645
- }
646
- }
647
-
648
- /**
649
- * Is Knowledgebase.
650
- *
651
- * @return string
652
- * @since 0.0.1
653
- */
654
- public static function knowledgebase_data() {
655
-
656
- $knowledgebase = array(
657
- 'enable_knowledgebase' => true,
658
- 'knowledgebase_url' => 'https://www.ultimategutenberg.com/docs/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard',
659
- );
660
-
661
- return $knowledgebase;
662
- }
663
-
664
- /**
665
- * Is Knowledgebase.
666
- *
667
- * @return string
668
- * @since 0.0.1
669
- */
670
- public static function support_data() {
671
-
672
- $support = array(
673
- 'enable_support' => true,
674
- 'support_url' => 'https://www.ultimategutenberg.com/support/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard',
675
- );
676
-
677
- return $support;
678
- }
679
-
680
- /**
681
- * Provide Widget settings.
682
- *
683
- * @return array()
684
- * @since 0.0.1
685
- */
686
- public static function get_block_options() {
687
-
688
- $blocks = self::$block_list;
689
- $saved_blocks = self::get_admin_settings_option( '_uagb_blocks' );
690
- if ( is_array( $blocks ) ) {
691
- foreach ( $blocks as $slug => $data ) {
692
- $_slug = str_replace( 'uagb/', '', $slug );
693
-
694
- if ( isset( $saved_blocks[ $_slug ] ) ) {
695
- if ( 'disabled' === $saved_blocks[ $_slug ] ) {
696
- $blocks[ $slug ]['is_activate'] = false;
697
- } else {
698
- $blocks[ $slug ]['is_activate'] = true;
699
- }
700
- } else {
701
- $blocks[ $slug ]['is_activate'] = ( isset( $data['default'] ) ) ? $data['default'] : false;
702
- }
703
- }
704
- }
705
-
706
- self::$block_list = $blocks;
707
-
708
- return apply_filters( 'uagb_enabled_blocks', self::$block_list );
709
- }
710
-
711
- /**
712
- * Get Json Data.
713
- *
714
- * @since 1.8.1
715
- * @return Array
716
- */
717
- public static function backend_load_font_awesome_icons() {
718
-
719
- $json_file = UAGB_DIR . 'dist/blocks/uagb-controls/UAGBIcon.json';
720
- if ( ! file_exists( $json_file ) ) {
721
- return array();
722
- }
723
-
724
- // Function has already run.
725
- if ( null !== self::$icon_json ) {
726
- return self::$icon_json;
727
- }
728
-
729
- $str = file_get_contents( $json_file );
730
- self::$icon_json = json_decode( $str, true );
731
- return self::$icon_json;
732
- }
733
-
734
- /**
735
- * Generate SVG.
736
- *
737
- * @since 1.8.1
738
- * @param array $icon Decoded fontawesome json file data.
739
- * @return string
740
- */
741
- public static function render_svg_html( $icon ) {
742
- $icon = str_replace( 'far', '', $icon );
743
- $icon = str_replace( 'fas', '', $icon );
744
- $icon = str_replace( 'fab', '', $icon );
745
- $icon = str_replace( 'fa-', '', $icon );
746
- $icon = str_replace( 'fa', '', $icon );
747
- $icon = sanitize_text_field( esc_attr( $icon ) );
748
-
749
- $json = UAGB_Helper::backend_load_font_awesome_icons();
750
- $path = isset( $json[ $icon ]['svg']['brands'] ) ? $json[ $icon ]['svg']['brands']['path'] : $json[ $icon ]['svg']['solid']['path'];
751
- $view = isset( $json[ $icon ]['svg']['brands'] ) ? $json[ $icon ]['svg']['brands']['viewBox'] : $json[ $icon ]['svg']['solid']['viewBox'];
752
- if ( $view ) {
753
- $view = implode( ' ', $view );
754
- }
755
- $htm = '<svg xmlns="http://www.w3.org/2000/svg" viewBox= "' . $view . '"><path d="' . $path . '"></path></svg>';
756
- return $htm;
757
- }
758
-
759
- /**
760
- * Returns Query.
761
- *
762
- * @param array $attributes The block attributes.
763
- * @param string $block_type The Block Type.
764
- * @since 1.8.2
765
- */
766
- public static function get_query( $attributes, $block_type ) {
767
-
768
- // Block type is grid/masonry/carousel/timeline.
769
- $query_args = array(
770
- 'posts_per_page' => ( isset( $attributes['postsToShow'] ) ) ? $attributes['postsToShow'] : 6,
771
- 'post_status' => 'publish',
772
- 'post_type' => ( isset( $attributes['postType'] ) ) ? $attributes['postType'] : 'post',
773
- 'order' => ( isset( $attributes['order'] ) ) ? $attributes['order'] : 'desc',
774
- 'orderby' => ( isset( $attributes['orderBy'] ) ) ? $attributes['orderBy'] : 'date',
775
- 'ignore_sticky_posts' => 1,
776
- );
777
-
778
- if ( isset( $attributes['categories'] ) && '' != $attributes['categories'] ) {
779
-
780
- $query_args['tax_query'][] = array(
781
- 'taxonomy' => ( isset( $attributes['taxonomyType'] ) ) ? $attributes['taxonomyType'] : 'category',
782
- 'field' => 'id',
783
- 'terms' => $attributes['categories'],
784
- 'operator' => 'IN',
785
- );
786
- }
787
-
788
- $query_args = apply_filters( "uagb_post_query_args_{$block_type}", $query_args );
789
-
790
- return new WP_Query( $query_args );
791
- }
792
-
793
- /**
794
- * Get size information for all currently-registered image sizes.
795
- *
796
- * @global $_wp_additional_image_sizes
797
- * @uses get_intermediate_image_sizes()
798
- * @link https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
799
- * @since 1.9.0
800
- * @return array $sizes Data for all currently-registered image sizes.
801
- */
802
- public static function get_image_sizes() {
803
-
804
- global $_wp_additional_image_sizes;
805
-
806
- $sizes = get_intermediate_image_sizes();
807
- $image_sizes = array();
808
-
809
- $image_sizes[] = array(
810
- 'value' => 'full',
811
- 'label' => esc_html__( 'Full', 'ultimate-addons-for-gutenberg' ),
812
- );
813
-
814
- foreach ( $sizes as $size ) {
815
- if ( in_array( $size, array( 'thumbnail', 'medium', 'medium_large', 'large' ) ) ) {
816
- $image_sizes[] = array(
817
- 'value' => $size,
818
- 'label' => ucwords( trim( str_replace( array( '-', '_' ), array( ' ', ' ' ), $size ) ) ),
819
- );
820
- } else {
821
- $image_sizes[] = array(
822
- 'value' => $size,
823
- 'label' => sprintf(
824
- '%1$s (%2$sx%3$s)',
825
- ucwords( trim( str_replace( array( '-', '_' ), array( ' ', ' ' ), $size ) ) ),
826
- $_wp_additional_image_sizes[ $size ]['width'],
827
- $_wp_additional_image_sizes[ $size ]['height']
828
- ),
829
- );
830
- }
831
- }
832
-
833
- $image_sizes = apply_filters( 'uagb_post_featured_image_sizes', $image_sizes );
834
-
835
- return $image_sizes;
836
- }
837
-
838
- /**
839
- * Get Post Types.
840
- *
841
- * @since 1.11.0
842
- * @access public
843
- */
844
- public static function get_post_types() {
845
-
846
- $post_types = get_post_types(
847
- array(
848
- 'public' => true,
849
- 'show_in_rest' => true,
850
- ),
851
- 'objects'
852
- );
853
-
854
- $options = array();
855
-
856
- foreach ( $post_types as $post_type ) {
857
-
858
- if ( 'product' == $post_type->name ) {
859
- continue;
860
- }
861
-
862
- $options[] = array(
863
- 'value' => $post_type->name,
864
- 'label' => $post_type->label,
865
- );
866
- }
867
-
868
- return apply_filters( 'uagb_loop_post_types', $options );
869
- }
870
-
871
- /**
872
- * Get all taxonomies.
873
- *
874
- * @since 1.11.0
875
- * @access public
876
- */
877
- public static function get_related_taxonomy() {
878
-
879
- $post_types = self::get_post_types();
880
-
881
- $return_array = array();
882
-
883
- foreach ( $post_types as $key => $value ) {
884
-
885
- $post_type = $value['value'];
886
-
887
- $taxonomies = get_object_taxonomies( $post_type, 'objects' );
888
- $data = array();
889
-
890
- foreach ( $taxonomies as $tax_slug => $tax ) {
891
-
892
- if ( ! $tax->public || ! $tax->show_ui ) {
893
- continue;
894
- }
895
-
896
- $data[ $tax_slug ] = $tax;
897
-
898
- $terms = get_terms( $tax_slug );
899
-
900
- $related_tax = array();
901
-
902
- if ( ! empty( $terms ) ) {
903
-
904
- foreach ( $terms as $t_index => $t_obj ) {
905
-
906
- $related_tax[] = array(
907
- 'id' => $t_obj->term_id,
908
- 'name' => $t_obj->name,
909
- );
910
- }
911
-
912
- $return_array[ $post_type ]['terms'][ $tax_slug ] = $related_tax;
913
- }
914
- }
915
-
916
- $return_array[ $post_type ]['taxonomy'] = $data;
917
- }
918
-
919
- return apply_filters( 'uagb_post_loop_taxonomies', $return_array );
920
- }
921
-
922
- /**
923
- * Get flag if more than 5 pages are build using UAG.
924
- *
925
- * @since 1.10.0
926
- * @return boolean true/false Flag if more than 5 pages are build using UAG.
927
- */
928
- public static function show_rating_notice() {
929
-
930
- $posts_created_with_uag = get_option( 'posts-created-with-uagb' );
931
-
932
- if ( false === $posts_created_with_uag ) {
933
-
934
- $query_args = array(
935
- 'posts_per_page' => -1,
936
- 'post_status' => 'publish',
937
- 'post_type' => 'any',
938
- );
939
-
940
- $query = new WP_Query( $query_args );
941
-
942
- $uag_post_count = 0;
943
-
944
- if ( isset( $query->post_count ) && $query->post_count > 0 ) {
945
- foreach ( $query->posts as $key => $post ) {
946
- if ( $uag_post_count >= 5 ) {
947
- break;
948
- }
949
-
950
- if ( false !== strpos( $post->post_content, '<!-- wp:uagb/' ) ) {
951
- $uag_post_count++;
952
- }
953
- }
954
- }
955
-
956
- if ( $uag_post_count >= 5 ) {
957
- update_option( 'posts-created-with-uagb', $uag_post_count );
958
-
959
- $posts_created_with_uag = $uag_post_count;
960
- }
961
- }
962
-
963
- return ( $posts_created_with_uag >= 5 );
964
- }
965
-
966
- /**
967
- * Get - RGBA Color
968
- *
969
- * Get HEX color and return RGBA. Default return RGB color.
970
- *
971
- * @param var $color Gets the color value.
972
- * @param var $opacity Gets the opacity value.
973
- * @param array $is_array Gets an array of the value.
974
- * @since 1.11.0
975
- */
976
- static public function hex2rgba( $color, $opacity = false, $is_array = false ) {
977
-
978
- $default = $color;
979
-
980
- // Return default if no color provided.
981
- if ( empty( $color ) ) {
982
- return $default;
983
- }
984
-
985
- // Sanitize $color if "#" is provided.
986
- if ( '#' == $color[0] ) {
987
- $color = substr( $color, 1 );
988
- }
989
-
990
- // Check if color has 6 or 3 characters and get values.
991
- if ( strlen( $color ) == 6 ) {
992
- $hex = array( $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] );
993
- } elseif ( strlen( $color ) == 3 ) {
994
- $hex = array( $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] );
995
- } else {
996
- return $default;
997
- }
998
-
999
- // Convert hexadec to rgb.
1000
- $rgb = array_map( 'hexdec', $hex );
1001
-
1002
- // Check if opacity is set(rgba or rgb).
1003
- if ( false !== $opacity && '' !== $opacity ) {
1004
- if ( abs( $opacity ) > 1 ) {
1005
- $opacity = $opacity / 100;
1006
- }
1007
- $output = 'rgba(' . implode( ',', $rgb ) . ',' . $opacity . ')';
1008
- } else {
1009
- $output = 'rgb(' . implode( ',', $rgb ) . ')';
1010
- }
1011
-
1012
- if ( $is_array ) {
1013
- return $rgb;
1014
- } else {
1015
- // Return rgb(a) color string.
1016
- return $output;
1017
- }
1018
- }
1019
- }
1020
-
1021
- /**
1022
- * Prepare if class 'UAGB_Helper' exist.
1023
- * Kicking this off by calling 'get_instance()' method
1024
- */
1025
- UAGB_Helper::get_instance();
1026
- }
1
+ <?php
2
+ /**
3
+ * UAGB Helper.
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! class_exists( 'UAGB_Helper' ) ) {
9
+
10
+ /**
11
+ * Class UAGB_Helper.
12
+ */
13
+ final class UAGB_Helper {
14
+
15
+ /**
16
+ * Member Variable
17
+ *
18
+ * @since 0.0.1
19
+ * @var instance
20
+ */
21
+ private static $instance;
22
+
23
+ /**
24
+ * Member Variable
25
+ *
26
+ * @since 0.0.1
27
+ * @var instance
28
+ */
29
+ public static $block_list;
30
+
31
+ /**
32
+ * Store Json variable
33
+ *
34
+ * @since 1.8.1
35
+ * @var instance
36
+ */
37
+ public static $icon_json;
38
+
39
+ /**
40
+ * Page Blocks Variable
41
+ *
42
+ * @since 1.6.0
43
+ * @var instance
44
+ */
45
+ public static $page_blocks;
46
+
47
+ /**
48
+ * Google fonts to enqueue
49
+ *
50
+ * @var array
51
+ */
52
+ public static $gfonts = array();
53
+
54
+ /**
55
+ * Initiator
56
+ *
57
+ * @since 0.0.1
58
+ */
59
+ public static function get_instance() {
60
+ if ( ! isset( self::$instance ) ) {
61
+ self::$instance = new self;
62
+ }
63
+ return self::$instance;
64
+ }
65
+
66
+ /**
67
+ * Constructor
68
+ */
69
+ public function __construct() {
70
+
71
+ require( UAGB_DIR . 'classes/class-uagb-config.php' );
72
+ require( UAGB_DIR . 'classes/class-uagb-block-helper.php' );
73
+
74
+ self::$block_list = UAGB_Config::get_block_attributes();
75
+
76
+ add_action( 'wp_head', array( $this, 'generate_stylesheet' ), 80 );
77
+ add_action( 'wp_head', array( $this, 'frontend_gfonts' ), 120 );
78
+ add_action( 'wp_footer', array( $this, 'generate_script' ), 1000 );
79
+ }
80
+
81
+ /**
82
+ * Load the front end Google Fonts
83
+ */
84
+ public function frontend_gfonts() {
85
+ if ( empty( self::$gfonts ) ) {
86
+ return;
87
+ }
88
+ $show_google_fonts = apply_filters( 'uagb_blocks_show_google_fonts', true );
89
+ if ( ! $show_google_fonts ) {
90
+ return;
91
+ }
92
+ $link = '';
93
+ $subsets = array();
94
+ foreach ( self::$gfonts as $key => $gfont_values ) {
95
+ if ( ! empty( $link ) ) {
96
+ $link .= '%7C'; // Append a new font to the string.
97
+ }
98
+ $link .= $gfont_values['fontfamily'];
99
+ if ( ! empty( $gfont_values['fontvariants'] ) ) {
100
+ $link .= ':';
101
+ $link .= implode( ',', $gfont_values['fontvariants'] );
102
+ }
103
+ if ( ! empty( $gfont_values['fontsubsets'] ) ) {
104
+ foreach ( $gfont_values['fontsubsets'] as $subset ) {
105
+ if ( ! in_array( $subset, $subsets ) ) {
106
+ array_push( $subsets, $subset );
107
+ }
108
+ }
109
+ }
110
+ }
111
+ if ( ! empty( $subsets ) ) {
112
+ $link .= '&amp;subset=' . implode( ',', $subsets );
113
+ }
114
+ echo '<link href="//fonts.googleapis.com/css?family=' . esc_attr( str_replace( '|', '%7C', $link ) ) . '" rel="stylesheet">';
115
+ }
116
+
117
+
118
+ /**
119
+ * Parse CSS into correct CSS syntax.
120
+ *
121
+ * @param array $selectors The block selectors.
122
+ * @param string $id The selector ID.
123
+ * @since 0.0.1
124
+ */
125
+ public static function generate_css( $selectors, $id ) {
126
+
127
+ $styling_css = '';
128
+
129
+ if ( empty( $selectors ) ) {
130
+ return;
131
+ }
132
+
133
+ foreach ( $selectors as $key => $value ) {
134
+ $styling_css .= $id;
135
+
136
+ $styling_css .= $key . ' { ';
137
+ $css = '';
138
+
139
+ foreach ( $value as $j => $val ) {
140
+ $css .= $j . ': ' . $val . ';';
141
+ }
142
+
143
+ $styling_css .= $css . ' } ';
144
+ }
145
+
146
+ return $styling_css;
147
+ }
148
+
149
+ /**
150
+ * Parse CSS into correct CSS syntax.
151
+ *
152
+ * @param array $selectors The block selectors.
153
+ * @param string $id The selector ID.
154
+ * @param string $type Media Query type mobile/tablet.
155
+ * @since 0.0.1
156
+ */
157
+ public static function generate_responsive_css( $selectors, $id, $type ) {
158
+
159
+ $breakpoint = ( 'mobile' == $type ) ? UAGB_MOBILE_BREAKPOINT : UAGB_TABLET_BREAKPOINT;
160
+
161
+ $css = '@media only screen and (max-width: ' . $breakpoint . 'px) { ';
162
+ $css .= self::generate_css( $selectors, $id );
163
+ $css .= ' } ';
164
+
165
+ return $css;
166
+ }
167
+
168
+ /**
169
+ * Generates CSS recurrsively.
170
+ *
171
+ * @param object $block The block object.
172
+ * @since 0.0.1
173
+ */
174
+ public function get_block_css( $block ) {
175
+
176
+ // @codingStandardsIgnoreStart
177
+
178
+ $block = ( array ) $block;
179
+
180
+ $name = $block['blockName'];
181
+ $css = '';
182
+
183
+ if( ! isset( $name ) ) {
184
+ return;
185
+ }
186
+
187
+ if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
188
+ $blockattr = $block['attrs'];
189
+ if ( isset( $blockattr['block_id'] ) ) {
190
+ $block_id = $blockattr['block_id'];
191
+ }
192
+ }
193
+
194
+ switch ( $name ) {
195
+ case 'uagb/section':
196
+ $css .= UAGB_Block_Helper::get_section_css( $blockattr, $block_id );
197
+ break;
198
+
199
+ case 'uagb/advanced-heading':
200
+ $css .= UAGB_Block_Helper::get_adv_heading_css( $blockattr, $block_id );
201
+ UAGB_Block_Helper::blocks_advanced_heading_gfont( $blockattr );
202
+ break;
203
+
204
+ case 'uagb/info-box':
205
+ $css .= UAGB_Block_Helper::get_info_box_css( $blockattr, $block_id );
206
+ UAGB_Block_Helper::blocks_info_box_gfont( $blockattr );
207
+ break;
208
+
209
+ case 'uagb/buttons':
210
+ $css .= UAGB_Block_Helper::get_buttons_css( $blockattr, $block_id );
211
+ UAGB_Block_Helper::blocks_buttons_gfont( $blockattr );
212
+ break;
213
+
214
+ case 'uagb/blockquote':
215
+ $css .= UAGB_Block_Helper::get_blockquote_css( $blockattr, $block_id );
216
+ UAGB_Block_Helper::blocks_blockquote_gfont( $blockattr );
217
+ break;
218
+
219
+ case 'uagb/testimonial':
220
+ $css .= UAGB_Block_Helper::get_testimonial_css( $blockattr, $block_id );
221
+ UAGB_Block_Helper::blocks_testimonial_gfont( $blockattr );
222
+ break;
223
+
224
+ case 'uagb/team':
225
+ $css .= UAGB_Block_Helper::get_team_css( $blockattr, $block_id );
226
+ UAGB_Block_Helper::blocks_team_gfont( $blockattr );
227
+ break;
228
+
229
+ case 'uagb/social-share':
230
+ $css .= UAGB_Block_Helper::get_social_share_css( $blockattr, $block_id );
231
+ break;
232
+
233
+ case 'uagb/content-timeline':
234
+ $css .= UAGB_Block_Helper::get_content_timeline_css( $blockattr, $block_id );
235
+ UAGB_Block_Helper::blocks_content_timeline_gfont( $blockattr );
236
+ break;
237
+
238
+ case 'uagb/restaurant-menu':
239
+ $css .= UAGB_Block_Helper::get_restaurant_menu_css( $blockattr, $block_id );
240
+ UAGB_Block_Helper::blocks_restaurant_menu_gfont( $blockattr );
241
+ break;
242
+
243
+ case 'uagb/call-to-action':
244
+ $css .= UAGB_Block_Helper::get_call_to_action_css( $blockattr, $block_id );
245
+ UAGB_Block_Helper::blocks_call_to_action_gfont( $blockattr );
246
+ break;
247
+
248
+ case 'uagb/post-timeline':
249
+ $css .= UAGB_Block_Helper::get_post_timeline_css( $blockattr, $block_id );
250
+ UAGB_Block_Helper::blocks_post_timeline_gfont( $blockattr );
251
+ break;
252
+
253
+ case 'uagb/icon-list':
254
+ $css .= UAGB_Block_Helper::get_icon_list_css( $blockattr, $block_id );
255
+ UAGB_Block_Helper::blocks_icon_list_gfont( $blockattr );
256
+ break;
257
+
258
+ case 'uagb/post-grid':
259
+ $css .= UAGB_Block_Helper::get_post_grid_css( $blockattr, $block_id );
260
+ UAGB_Block_Helper::blocks_post_gfont( $blockattr );
261
+ break;
262
+
263
+ case 'uagb/post-carousel':
264
+ $css .= UAGB_Block_Helper::get_post_carousel_css( $blockattr, $block_id );
265
+ UAGB_Block_Helper::blocks_post_gfont( $blockattr );
266
+ break;
267
+
268
+ case 'uagb/post-masonry':
269
+ $css .= UAGB_Block_Helper::get_post_masonry_css( $blockattr, $block_id );
270
+ UAGB_Block_Helper::blocks_post_gfont( $blockattr );
271
+ break;
272
+
273
+ case 'uagb/columns':
274
+ $css .= UAGB_Block_Helper::get_columns_css( $blockattr, $block_id );
275
+ break;
276
+
277
+ case 'uagb/column':
278
+ $css .= UAGB_Block_Helper::get_column_css( $blockattr, $block_id );
279
+ break;
280
+
281
+ case 'uagb/cf7-styler':
282
+ $css .= UAGB_Block_Helper::get_cf7_styler_css( $blockattr, $block_id );
283
+ UAGB_Block_Helper::blocks_cf7_styler_gfont( $blockattr );
284
+ break;
285
+
286
+ case 'uagb/marketing-button':
287
+ $css .= UAGB_Block_Helper::get_marketing_btn_css( $blockattr, $block_id );
288
+ UAGB_Block_Helper::blocks_marketing_btn_gfont( $blockattr );
289
+ break;
290
+
291
+ default:
292
+ // Nothing to do here.
293
+ break;
294
+ }
295
+
296
+ if ( isset( $block['innerBlocks'] ) ) {
297
+ foreach ( $block['innerBlocks'] as $j => $inner_block ) {
298
+ if ( 'core/block' == $inner_block['blockName'] ) {
299
+ $id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
300
+
301
+ if ( $id ) {
302
+ $content = get_post_field( 'post_content', $id );
303
+
304
+ $reusable_blocks = $this->parse( $content );
305
+
306
+ $this->get_stylesheet( $reusable_blocks );
307
+ }
308
+ } else {
309
+ // Get CSS for the Block.
310
+ $css .= $this->get_block_css( $inner_block );
311
+ }
312
+ }
313
+ }
314
+
315
+ echo $css;
316
+
317
+ // @codingStandardsIgnoreEnd
318
+ }
319
+
320
+ /**
321
+ * Adds Google fonts all blocks.
322
+ *
323
+ * @param array $load_google_font the blocks attr.
324
+ * @param array $font_family the blocks attr.
325
+ * @param array $font_weight the blocks attr.
326
+ * @param array $font_subset the blocks attr.
327
+ */
328
+ public static function blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset ) {
329
+
330
+ if ( true == $load_google_font ) {
331
+ if ( ! array_key_exists( $font_family, self::$gfonts ) ) {
332
+ $add_font = array(
333
+ 'fontfamily' => $font_family,
334
+ 'fontvariants' => ( isset( $font_weight ) && ! empty( $font_weight ) ? array( $font_weight ) : array() ),
335
+ 'fontsubsets' => ( isset( $font_subset ) && ! empty( $font_subset ) ? array( $font_subset ) : array() ),
336
+ );
337
+ self::$gfonts[ $font_family ] = $add_font;
338
+ } else {
339
+ if ( isset( $font_weight ) && ! empty( $font_weight ) ) {
340
+ if ( ! in_array( $font_weight, self::$gfonts[ $font_family ]['fontvariants'], true ) ) {
341
+ array_push( self::$gfonts[ $font_family ]['fontvariants'], $font_weight );
342
+ }
343
+ }
344
+ if ( isset( $font_subset ) && ! empty( $font_subset ) ) {
345
+ if ( ! in_array( $font_subset, self::$gfonts[ $font_family ]['fontsubsets'], true ) ) {
346
+ array_push( self::$gfonts[ $font_family ]['fontsubsets'], $font_subset );
347
+ }
348
+ }
349
+ }
350
+ }
351
+ }
352
+
353
+ /**
354
+ * Generates Js recurrsively.
355
+ *
356
+ * @param object $block The block object.
357
+ * @since 1.6.0
358
+ */
359
+ public function get_block_js( $block ) {
360
+
361
+ // @codingStandardsIgnoreStart
362
+
363
+ $block = ( array ) $block;
364
+
365
+ $name = $block['blockName'];
366
+ $js = '';
367
+
368
+ if( ! isset( $name ) ) {
369
+ return;
370
+ }
371
+
372
+ if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
373
+ $blockattr = $block['attrs'];
374
+ if ( isset( $blockattr['block_id'] ) ) {
375
+ $block_id = $blockattr['block_id'];
376
+ }
377
+ }
378
+
379
+ switch ( $name ) {
380
+
381
+ case 'uagb/testimonial':
382
+ $js .= UAGB_Block_Helper::get_testimonial_js( $blockattr, $block_id );
383
+ break;
384
+
385
+ case 'uagb/blockquote':
386
+ $js .= UAGB_Block_Helper::get_blockquote_js( $blockattr, $block_id );
387
+ break;
388
+
389
+ case 'uagb/social-share':
390
+ $js .= UAGB_Block_Helper::get_social_share_js( $block_id );
391
+ break;
392
+
393
+ default:
394
+ // Nothing to do here.
395
+ break;
396
+ }
397
+
398
+ if ( isset( $block['innerBlocks'] ) ) {
399
+
400
+ foreach ( $block['innerBlocks'] as $j => $inner_block ) {
401
+
402
+ if ( 'core/block' == $inner_block['blockName'] ) {
403
+ $id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
404
+
405
+ if ( $id ) {
406
+ $content = get_post_field( 'post_content', $id );
407
+
408
+ $reusable_blocks = $this->parse( $content );
409
+
410
+ $this->get_scripts( $reusable_blocks );
411
+ }
412
+ } else {
413
+ // Get JS for the Block.
414
+ $js .= $this->get_block_js( $inner_block );
415
+ }
416
+ }
417
+ }
418
+
419
+ echo $js;
420
+
421
+ // @codingStandardsIgnoreEnd
422
+ }
423
+
424
+ /**
425
+ * Generates stylesheet and appends in head tag.
426
+ *
427
+ * @since 0.0.1
428
+ */
429
+ public function generate_stylesheet() {
430
+
431
+ $this_post = array();
432
+
433
+ if ( is_single() || is_page() || is_404() ) {
434
+ global $post;
435
+ $this_post = $post;
436
+ $this->_generate_stylesheet( $this_post );
437
+ if ( ! is_object( $post ) ) {
438
+ return;
439
+ }
440
+ } elseif ( is_archive() || is_home() || is_search() ) {
441
+ global $wp_query;
442
+
443
+ if ( $wp_query->have_posts() ) {
444
+ while ( $wp_query->have_posts() ) {
445
+ $wp_query->the_post();
446
+ global $post;
447
+ $this_post = $post;
448
+ $this->_generate_stylesheet( $this_post );
449
+ }
450
+ }
451
+ }
452
+ }
453
+
454
+ /**
455
+ * Generates stylesheet in loop.
456
+ *
457
+ * @param object $this_post Current Post Object.
458
+ * @since 1.7.0
459
+ */
460
+ public function _generate_stylesheet( $this_post ) {
461
+
462
+ if ( has_blocks( get_the_ID() ) ) {
463
+ $blocks = $this->parse( $this_post->post_content );
464
+ self::$page_blocks = $blocks;
465
+
466
+ if ( ! is_array( $blocks ) || empty( $blocks ) ) {
467
+ return;
468
+ }
469
+
470
+ ob_start();
471
+ ?>
472
+ <style type="text/css" media="all" id="uagb-style-frontend"><?php $this->get_stylesheet( $blocks ); ?></style>
473
+ <?php
474
+ }
475
+ }
476
+
477
+ /**
478
+ * Generates scripts and appends in footer tag.
479
+ *
480
+ * @since 1.5.0
481
+ */
482
+ public function generate_script() {
483
+
484
+ $blocks = self::$page_blocks;
485
+
486
+ if ( ! is_array( $blocks ) || empty( $blocks ) ) {
487
+ return;
488
+ }
489
+
490
+ ob_start();
491
+ ?>
492
+ <script type="text/javascript" id="uagb-script-frontend">
493
+ ( function( $ ) {
494
+ <?php $this->get_scripts( $blocks ); ?>
495
+ })(jQuery)
496
+ </script>
497
+ <?php
498
+ }
499
+
500
+ /**
501
+ * Parse Guten Block.
502
+ *
503
+ * @param string $content the content string.
504
+ * @since 1.1.0
505
+ */
506
+ public function parse( $content ) {
507
+
508
+ global $wp_version;
509
+
510
+ return ( version_compare( $wp_version, '5', '>=' ) ) ? parse_blocks( $content ) : gutenberg_parse_blocks( $content );
511
+ }
512
+
513
+ /**
514
+ * Generates stylesheet for reusable blocks.
515
+ *
516
+ * @param array $blocks Blocks array.
517
+ * @since 1.1.0
518
+ */
519
+ public function get_stylesheet( $blocks ) {
520
+
521
+ foreach ( $blocks as $i => $block ) {
522
+ if ( is_array( $block ) ) {
523
+ if ( 'core/block' == $block['blockName'] ) {
524
+ $id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
525
+
526
+ if ( $id ) {
527
+ $content = get_post_field( 'post_content', $id );
528
+
529
+ $reusable_blocks = $this->parse( $content );
530
+
531
+ $this->get_stylesheet( $reusable_blocks );
532
+ }
533
+ } else {
534
+ // Get CSS for the Block.
535
+ $this->get_block_css( $block );
536
+ }
537
+ }
538
+ }
539
+ }
540
+
541
+
542
+ /**
543
+ * Generates scripts for reusable blocks.
544
+ *
545
+ * @param array $blocks Blocks array.
546
+ * @since 1.6.0
547
+ */
548
+ public function get_scripts( $blocks ) {
549
+
550
+ foreach ( $blocks as $i => $block ) {
551
+ if ( is_array( $block ) ) {
552
+ if ( 'core/block' == $block['blockName'] ) {
553
+ $id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
554
+
555
+ if ( $id ) {
556
+ $content = get_post_field( 'post_content', $id );
557
+
558
+ $reusable_blocks = $this->parse( $content );
559
+
560
+ $this->get_scripts( $reusable_blocks );
561
+ }
562
+ } else {
563
+ // Get JS for the Block.
564
+ $this->get_block_js( $block );
565
+ }
566
+ }
567
+ }
568
+ }
569
+
570
+ /**
571
+ * Get Buttons default array.
572
+ *
573
+ * @since 0.0.1
574
+ */
575
+ public static function get_button_defaults() {
576
+
577
+ $default = array();
578
+
579
+ for ( $i = 1; $i <= 2; $i++ ) {
580
+ array_push(
581
+ $default,
582
+ array(
583
+ 'size' => '',
584
+ 'vPadding' => 10,
585
+ 'hPadding' => 14,
586
+ 'borderWidth' => 1,
587
+ 'borderRadius' => 2,
588
+ 'borderStyle' => 'solid',
589
+ 'borderColor' => '#333',
590
+ 'borderHColor' => '#333',
591
+ 'color' => '#333',
592
+ 'background' => '',
593
+ 'hColor' => '#333',
594
+ 'hBackground' => '',
595
+ 'sizeType' => 'px',
596
+ 'sizeMobile' => '',
597
+ 'sizeTablet' => '',
598
+ 'lineHeightType' => 'em',
599
+ 'lineHeight' => '',
600
+ 'lineHeightMobile' => '',
601
+ 'lineHeightTablet' => '',
602
+ )
603
+ );
604
+ }
605
+
606
+ return $default;
607
+ }
608
+
609
+ /**
610
+ * Returns an option from the database for
611
+ * the admin settings page.
612
+ *
613
+ * @param string $key The option key.
614
+ * @param mixed $default Option default value if option is not available.
615
+ * @param boolean $network_override Whether to allow the network admin setting to be overridden on subsites.
616
+ * @return string Return the option value
617
+ */
618
+ public static function get_admin_settings_option( $key, $default = false, $network_override = false ) {
619
+
620
+ // Get the site-wide option if we're in the network admin.
621
+ if ( $network_override && is_multisite() ) {
622
+ $value = get_site_option( $key, $default );
623
+ } else {
624
+ $value = get_option( $key, $default );
625
+ }
626
+
627
+ return $value;
628
+ }
629
+
630
+ /**
631
+ * Updates an option from the admin settings page.
632
+ *
633
+ * @param string $key The option key.
634
+ * @param mixed $value The value to update.
635
+ * @param bool $network Whether to allow the network admin setting to be overridden on subsites.
636
+ * @return mixed
637
+ */
638
+ public static function update_admin_settings_option( $key, $value, $network = false ) {
639
+
640
+ // Update the site-wide option since we're in the network admin.
641
+ if ( $network && is_multisite() ) {
642
+ update_site_option( $key, $value );
643
+ } else {
644
+ update_option( $key, $value );
645
+ }
646
+ }
647
+
648
+ /**
649
+ * Is Knowledgebase.
650
+ *
651
+ * @return string
652
+ * @since 0.0.1
653
+ */
654
+ public static function knowledgebase_data() {
655
+
656
+ $knowledgebase = array(
657
+ 'enable_knowledgebase' => true,
658
+ 'knowledgebase_url' => 'https://www.ultimategutenberg.com/docs/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard',
659
+ );
660
+
661
+ return $knowledgebase;
662
+ }
663
+
664
+ /**
665
+ * Is Knowledgebase.
666
+ *
667
+ * @return string
668
+ * @since 0.0.1
669
+ */
670
+ public static function support_data() {
671
+
672
+ $support = array(
673
+ 'enable_support' => true,
674
+ 'support_url' => 'https://www.ultimategutenberg.com/support/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard',
675
+ );
676
+
677
+ return $support;
678
+ }
679
+
680
+ /**
681
+ * Provide Widget settings.
682
+ *
683
+ * @return array()
684
+ * @since 0.0.1
685
+ */
686
+ public static function get_block_options() {
687
+
688
+ $blocks = self::$block_list;
689
+ $saved_blocks = self::get_admin_settings_option( '_uagb_blocks' );
690
+ if ( is_array( $blocks ) ) {
691
+ foreach ( $blocks as $slug => $data ) {
692
+ $_slug = str_replace( 'uagb/', '', $slug );
693
+
694
+ if ( isset( $saved_blocks[ $_slug ] ) ) {
695
+ if ( 'disabled' === $saved_blocks[ $_slug ] ) {
696
+ $blocks[ $slug ]['is_activate'] = false;
697
+ } else {
698
+ $blocks[ $slug ]['is_activate'] = true;
699
+ }
700
+ } else {
701
+ $blocks[ $slug ]['is_activate'] = ( isset( $data['default'] ) ) ? $data['default'] : false;
702
+ }
703
+ }
704
+ }
705
+
706
+ self::$block_list = $blocks;
707
+
708
+ return apply_filters( 'uagb_enabled_blocks', self::$block_list );
709
+ }
710
+
711
+ /**
712
+ * Get Json Data.
713
+ *
714
+ * @since 1.8.1
715
+ * @return Array
716
+ */
717
+ public static function backend_load_font_awesome_icons() {
718
+
719
+ $json_file = UAGB_DIR . 'dist/blocks/uagb-controls/UAGBIcon.json';
720
+ if ( ! file_exists( $json_file ) ) {
721
+ return array();
722
+ }
723
+
724
+ // Function has already run.
725
+ if ( null !== self::$icon_json ) {
726
+ return self::$icon_json;
727
+ }
728
+
729
+ $str = file_get_contents( $json_file );
730
+ self::$icon_json = json_decode( $str, true );
731
+ return self::$icon_json;
732
+ }
733
+
734
+ /**
735
+ * Generate SVG.
736
+ *
737
+ * @since 1.8.1
738
+ * @param array $icon Decoded fontawesome json file data.
739
+ * @return string
740
+ */
741
+ public static function render_svg_html( $icon ) {
742
+ $icon = str_replace( 'far', '', $icon );
743
+ $icon = str_replace( 'fas', '', $icon );
744
+ $icon = str_replace( 'fab', '', $icon );
745
+ $icon = str_replace( 'fa-', '', $icon );
746
+ $icon = str_replace( 'fa', '', $icon );
747
+ $icon = sanitize_text_field( esc_attr( $icon ) );
748
+
749
+ $json = UAGB_Helper::backend_load_font_awesome_icons();
750
+ $path = isset( $json[ $icon ]['svg']['brands'] ) ? $json[ $icon ]['svg']['brands']['path'] : $json[ $icon ]['svg']['solid']['path'];
751
+ $view = isset( $json[ $icon ]['svg']['brands'] ) ? $json[ $icon ]['svg']['brands']['viewBox'] : $json[ $icon ]['svg']['solid']['viewBox'];
752
+ if ( $view ) {
753
+ $view = implode( ' ', $view );
754
+ }
755
+ $htm = '<svg xmlns="http://www.w3.org/2000/svg" viewBox= "' . $view . '"><path d="' . $path . '"></path></svg>';
756
+ return $htm;
757
+ }
758
+
759
+ /**
760
+ * Returns Query.
761
+ *
762
+ * @param array $attributes The block attributes.
763
+ * @param string $block_type The Block Type.
764
+ * @since 1.8.2
765
+ */
766
+ public static function get_query( $attributes, $block_type ) {
767
+
768
+ // Block type is grid/masonry/carousel/timeline.
769
+ $query_args = array(
770
+ 'posts_per_page' => ( isset( $attributes['postsToShow'] ) ) ? $attributes['postsToShow'] : 6,
771
+ 'post_status' => 'publish',
772
+ 'post_type' => ( isset( $attributes['postType'] ) ) ? $attributes['postType'] : 'post',
773
+ 'order' => ( isset( $attributes['order'] ) ) ? $attributes['order'] : 'desc',
774
+ 'orderby' => ( isset( $attributes['orderBy'] ) ) ? $attributes['orderBy'] : 'date',
775
+ 'ignore_sticky_posts' => 1,
776
+ );
777
+
778
+ if ( isset( $attributes['categories'] ) && '' != $attributes['categories'] ) {
779
+
780
+ $query_args['tax_query'][] = array(
781
+ 'taxonomy' => ( isset( $attributes['taxonomyType'] ) ) ? $attributes['taxonomyType'] : 'category',
782
+ 'field' => 'id',
783
+ 'terms' => $attributes['categories'],
784
+ 'operator' => 'IN',
785
+ );
786
+ }
787
+
788
+ $query_args = apply_filters( "uagb_post_query_args_{$block_type}", $query_args );
789
+
790
+ return new WP_Query( $query_args );
791
+ }
792
+
793
+ /**
794
+ * Get size information for all currently-registered image sizes.
795
+ *
796
+ * @global $_wp_additional_image_sizes
797
+ * @uses get_intermediate_image_sizes()
798
+ * @link https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
799
+ * @since 1.9.0
800
+ * @return array $sizes Data for all currently-registered image sizes.
801
+ */
802
+ public static function get_image_sizes() {
803
+
804
+ global $_wp_additional_image_sizes;
805
+
806
+ $sizes = get_intermediate_image_sizes();
807
+ $image_sizes = array();
808
+
809
+ $image_sizes[] = array(
810
+ 'value' => 'full',
811
+ 'label' => esc_html__( 'Full', 'ultimate-addons-for-gutenberg' ),
812
+ );
813
+
814
+ foreach ( $sizes as $size ) {
815
+ if ( in_array( $size, array( 'thumbnail', 'medium', 'medium_large', 'large' ) ) ) {
816
+ $image_sizes[] = array(
817
+ 'value' => $size,
818
+ 'label' => ucwords( trim( str_replace( array( '-', '_' ), array( ' ', ' ' ), $size ) ) ),
819
+ );
820
+ } else {
821
+ $image_sizes[] = array(
822
+ 'value' => $size,
823
+ 'label' => sprintf(
824
+ '%1$s (%2$sx%3$s)',
825
+ ucwords( trim( str_replace( array( '-', '_' ), array( ' ', ' ' ), $size ) ) ),
826
+ $_wp_additional_image_sizes[ $size ]['width'],
827
+ $_wp_additional_image_sizes[ $size ]['height']
828
+ ),
829
+ );
830
+ }
831
+ }
832
+
833
+ $image_sizes = apply_filters( 'uagb_post_featured_image_sizes', $image_sizes );
834
+
835
+ return $image_sizes;
836
+ }
837
+
838
+ /**
839
+ * Get Post Types.
840
+ *
841
+ * @since 1.11.0
842
+ * @access public
843
+ */
844
+ public static function get_post_types() {
845
+
846
+ $post_types = get_post_types(
847
+ array(
848
+ 'public' => true,
849
+ 'show_in_rest' => true,
850
+ ),
851
+ 'objects'
852
+ );
853
+
854
+ $options = array();
855
+
856
+ foreach ( $post_types as $post_type ) {
857
+
858
+ if ( 'product' == $post_type->name ) {
859
+ continue;
860
+ }
861
+
862
+ $options[] = array(
863
+ 'value' => $post_type->name,
864
+ 'label' => $post_type->label,
865
+ );
866
+ }
867
+
868
+ return apply_filters( 'uagb_loop_post_types', $options );
869
+ }
870
+
871
+ /**
872
+ * Get all taxonomies.
873
+ *
874
+ * @since 1.11.0
875
+ * @access public
876
+ */
877
+ public static function get_related_taxonomy() {
878
+
879
+ $post_types = self::get_post_types();
880
+
881
+ $return_array = array();
882
+
883
+ foreach ( $post_types as $key => $value ) {
884
+
885
+ $post_type = $value['value'];
886
+
887
+ $taxonomies = get_object_taxonomies( $post_type, 'objects' );
888
+ $data = array();
889
+
890
+ foreach ( $taxonomies as $tax_slug => $tax ) {
891
+
892
+ if ( ! $tax->public || ! $tax->show_ui ) {
893
+ continue;
894
+ }
895
+
896
+ $data[ $tax_slug ] = $tax;
897
+
898
+ $terms = get_terms( $tax_slug );
899
+
900
+ $related_tax = array();
901
+
902
+ if ( ! empty( $terms ) ) {
903
+
904
+ foreach ( $terms as $t_index => $t_obj ) {
905
+
906
+ $related_tax[] = array(
907
+ 'id' => $t_obj->term_id,
908
+ 'name' => $t_obj->name,
909
+ );
910
+ }
911
+
912
+ $return_array[ $post_type ]['terms'][ $tax_slug ] = $related_tax;
913
+ }
914
+ }
915
+
916
+ $return_array[ $post_type ]['taxonomy'] = $data;
917
+ }
918
+
919
+ return apply_filters( 'uagb_post_loop_taxonomies', $return_array );
920
+ }
921
+
922
+ /**
923
+ * Get flag if more than 5 pages are build using UAG.
924
+ *
925
+ * @since 1.10.0
926
+ * @return boolean true/false Flag if more than 5 pages are build using UAG.
927
+ */
928
+ public static function show_rating_notice() {
929
+
930
+ $posts_created_with_uag = get_option( 'posts-created-with-uagb' );
931
+
932
+ if ( false === $posts_created_with_uag ) {
933
+
934
+ $query_args = array(
935
+ 'posts_per_page' => -1,
936
+ 'post_status' => 'publish',
937
+ 'post_type' => 'any',
938
+ );
939
+
940
+ $query = new WP_Query( $query_args );
941
+
942
+ $uag_post_count = 0;
943
+
944
+ if ( isset( $query->post_count ) && $query->post_count > 0 ) {
945
+ foreach ( $query->posts as $key => $post ) {
946
+ if ( $uag_post_count >= 5 ) {
947
+ break;
948
+ }
949
+
950
+ if ( false !== strpos( $post->post_content, '<!-- wp:uagb/' ) ) {
951
+ $uag_post_count++;
952
+ }
953
+ }
954
+ }
955
+
956
+ if ( $uag_post_count >= 5 ) {
957
+ update_option( 'posts-created-with-uagb', $uag_post_count );
958
+
959
+ $posts_created_with_uag = $uag_post_count;
960
+ }
961
+ }
962
+
963
+ return ( $posts_created_with_uag >= 5 );
964
+ }
965
+
966
+ /**
967
+ * Get - RGBA Color
968
+ *
969
+ * Get HEX color and return RGBA. Default return RGB color.
970
+ *
971
+ * @param var $color Gets the color value.
972
+ * @param var $opacity Gets the opacity value.
973
+ * @param array $is_array Gets an array of the value.
974
+ * @since 1.11.0
975
+ */
976
+ static public function hex2rgba( $color, $opacity = false, $is_array = false ) {
977
+
978
+ $default = $color;
979
+
980
+ // Return default if no color provided.
981
+ if ( empty( $color ) ) {
982
+ return $default;
983
+ }
984
+
985
+ // Sanitize $color if "#" is provided.
986
+ if ( '#' == $color[0] ) {
987
+ $color = substr( $color, 1 );
988
+ }
989
+
990
+ // Check if color has 6 or 3 characters and get values.
991
+ if ( strlen( $color ) == 6 ) {
992
+ $hex = array( $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] );
993
+ } elseif ( strlen( $color ) == 3 ) {
994
+ $hex = array( $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] );
995
+ } else {
996
+ return $default;
997
+ }
998
+
999
+ // Convert hexadec to rgb.
1000
+ $rgb = array_map( 'hexdec', $hex );
1001
+
1002
+ // Check if opacity is set(rgba or rgb).
1003
+ if ( false !== $opacity && '' !== $opacity ) {
1004
+ if ( abs( $opacity ) > 1 ) {
1005
+ $opacity = $opacity / 100;
1006
+ }
1007
+ $output = 'rgba(' . implode( ',', $rgb ) . ',' . $opacity . ')';
1008
+ } else {
1009
+ $output = 'rgb(' . implode( ',', $rgb ) . ')';
1010
+ }
1011
+
1012
+ if ( $is_array ) {
1013
+ return $rgb;
1014
+ } else {
1015
+ // Return rgb(a) color string.
1016
+ return $output;
1017
+ }
1018
+ }
1019
+ }
1020
+
1021
+ /**
1022
+ * Prepare if class 'UAGB_Helper' exist.
1023
+ * Kicking this off by calling 'get_instance()' method
1024
+ */
1025
+ UAGB_Helper::get_instance();
1026
+ }
classes/class-uagb-init-blocks.php CHANGED
@@ -1,279 +1,279 @@
1
- <?php
2
- /**
3
- * UAGB Blocks Initializer
4
- *
5
- * Enqueue CSS/JS of all the blocks.
6
- *
7
- * @since 1.0.0
8
- * @package UAGB
9
- */
10
-
11
- if ( ! defined( 'ABSPATH' ) ) {
12
- exit; // Exit if accessed directly.
13
- }
14
-
15
- /**
16
- * UAGB_Init_Blocks.
17
- *
18
- * @package UAGB
19
- */
20
- class UAGB_Init_Blocks {
21
-
22
- /**
23
- * Member Variable
24
- *
25
- * @var instance
26
- */
27
- private static $instance;
28
-
29
- /**
30
- * Initiator
31
- */
32
- public static function get_instance() {
33
- if ( ! isset( self::$instance ) ) {
34
- self::$instance = new self;
35
- }
36
- return self::$instance;
37
- }
38
-
39
- /**
40
- * Constructor
41
- */
42
- public function __construct() {
43
-
44
- // Hook: Frontend assets.
45
- add_action( 'enqueue_block_assets', array( $this, 'block_assets' ) );
46
-
47
- // Hook: Editor assets.
48
- add_action( 'enqueue_block_editor_assets', array( $this, 'editor_assets' ) );
49
-
50
- add_filter( 'block_categories', array( $this, 'register_block_category' ), 10, 2 );
51
- }
52
-
53
- /**
54
- * Gutenberg block category for UAGB.
55
- *
56
- * @param array $categories Block categories.
57
- * @param object $post Post object.
58
- * @since 1.0.0
59
- */
60
- function register_block_category( $categories, $post ) {
61
- return array_merge(
62
- $categories,
63
- array(
64
- array(
65
- 'slug' => 'uagb',
66
- 'title' => __( 'Ultimate Addons Blocks', 'ultimate-addons-for-gutenberg' ),
67
- ),
68
- )
69
- );
70
- }
71
-
72
- /**
73
- * Enqueue Gutenberg block assets for both frontend + backend.
74
- *
75
- * @since 1.0.0
76
- */
77
- function block_assets() {
78
- // Styles.
79
- wp_enqueue_style(
80
- 'uagb-block-css', // Handle.
81
- UAGB_URL . 'dist/blocks.style.build.css', // Block style CSS.
82
- UAGB_VER
83
- );
84
-
85
- // Scripts.
86
- wp_enqueue_script(
87
- 'uagb-masonry', // Handle.
88
- UAGB_URL . 'assets/js/isotope.min.js',
89
- array( 'jquery' ), // Dependencies, defined above.
90
- UAGB_VER,
91
- false // Enqueue the script in the footer.
92
- );
93
-
94
- wp_enqueue_script(
95
- 'uagb-imagesloaded', // Handle.
96
- UAGB_URL . 'assets/js/imagesloaded.min.js',
97
- array( 'jquery' ), // Dependencies, defined above.
98
- UAGB_VER,
99
- false // Enqueue the script in the footer.
100
- );
101
-
102
- $value = true;
103
-
104
- if ( did_action( 'elementor/loaded' ) ) {
105
- $value = false;
106
- }
107
-
108
- $enable_font_awesome = apply_filters( 'uagb_font_awesome_enable', $value );
109
-
110
- if ( $enable_font_awesome ) {
111
- $font_awesome = apply_filters( 'uagb_font_awesome_url', 'https://use.fontawesome.com/releases/v5.6.0/css/all.css' );
112
- // Font Awesome.
113
- wp_enqueue_style(
114
- 'uagb-fontawesome-css', // Handle.
115
- $font_awesome, // Block style CSS.
116
- UAGB_VER
117
- );
118
- }
119
-
120
- // Scripts.
121
- wp_enqueue_script(
122
- 'uagb-slick-js', // Handle.
123
- UAGB_URL . 'assets/js/slick.min.js',
124
- array( 'jquery' ), // Dependencies, defined above.
125
- UAGB_VER,
126
- false // Enqueue the script in the footer.
127
- );
128
-
129
- // Styles.
130
- wp_enqueue_style(
131
- 'uagb-slick-css', // Handle.
132
- UAGB_URL . 'assets/css/slick.css', // Block style CSS.
133
- UAGB_VER
134
- );
135
-
136
- // Timeline js.
137
- wp_enqueue_script(
138
- 'uagb-timeline-js', // Handle.
139
- UAGB_URL . 'assets/js/timeline.js',
140
- array( 'jquery' ),
141
- UAGB_VER,
142
- true // Enqueue the script in the footer.
143
- );
144
-
145
- if ( ! wp_script_is( 'jquery', 'enqueued' ) ) {
146
- wp_enqueue_script( 'jquery' );
147
- }
148
-
149
- if ( ! wp_script_is( 'contact-form-7', 'enqueued' ) ) {
150
- wp_enqueue_script( 'contact-form-7' );
151
- }
152
-
153
- if ( ! wp_script_is( ' wpcf7-admin', 'enqueued' ) ) {
154
- wp_enqueue_script( ' wpcf7-admin' );
155
- }
156
- } // End function editor_assets().
157
-
158
- /**
159
- * Enqueue Gutenberg block assets for backend editor.
160
- *
161
- * @since 1.0.0
162
- */
163
- function editor_assets() {
164
- // Scripts.
165
- wp_enqueue_script(
166
- 'uagb-block-editor-js', // Handle.
167
- UAGB_URL . 'dist/blocks.build.js',
168
- array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor', 'wp-api-fetch' ), // Dependencies, defined above.
169
- UAGB_VER,
170
- true // Enqueue the script in the footer.
171
- );
172
-
173
- // Styles.
174
- wp_enqueue_style(
175
- 'uagb-block-editor-css', // Handle.
176
- UAGB_URL . 'dist/blocks.editor.build.css', // Block editor CSS.
177
- array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
178
- UAGB_VER
179
- );
180
-
181
- // Common Editor style.
182
- wp_enqueue_style(
183
- 'uagb-block-common-editor-css', // Handle.
184
- UAGB_URL . 'dist/blocks.commoneditorstyle.build.css', // Block editor CSS.
185
- array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
186
- UAGB_VER
187
- );
188
-
189
- wp_enqueue_script( 'uagb-deactivate-block-js', UAGB_URL . 'dist/blocks-deactivate.js', array( 'wp-blocks' ), UAGB_VER, true );
190
-
191
- $blocks = array();
192
- $saved_blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks' );
193
-
194
- if ( is_array( $saved_blocks ) ) {
195
- foreach ( $saved_blocks as $slug => $data ) {
196
- $_slug = 'uagb/' . $slug;
197
- $current_block = UAGB_Config::$block_attributes[ $_slug ];
198
-
199
- if ( isset( $current_block['is_child'] ) && $current_block['is_child'] ) {
200
- continue;
201
- }
202
-
203
- if ( isset( $saved_blocks[ $slug ] ) ) {
204
- if ( 'disabled' === $saved_blocks[ $slug ] ) {
205
- array_push( $blocks, $_slug );
206
- }
207
- }
208
- }
209
- }
210
-
211
- wp_localize_script(
212
- 'uagb-deactivate-block-js',
213
- 'uagb_deactivate_blocks',
214
- array(
215
- 'deactivated_blocks' => $blocks,
216
- )
217
- );
218
-
219
- wp_localize_script(
220
- 'uagb-block-editor-js',
221
- 'uagb_blocks_info',
222
- array(
223
- 'blocks' => UAGB_Config::get_block_attributes(),
224
- 'category' => 'uagb',
225
- 'ajax_url' => admin_url( 'admin-ajax.php' ),
226
- 'cf7_forms' => $this->get_cf7_forms(),
227
- 'tablet_breakpoint' => UAGB_TABLET_BREAKPOINT,
228
- 'mobile_breakpoint' => UAGB_MOBILE_BREAKPOINT,
229
- 'image_sizes' => UAGB_Helper::get_image_sizes(),
230
- 'post_types' => UAGB_Helper::get_post_types(),
231
- 'all_taxonomy' => UAGB_Helper::get_related_taxonomy(),
232
- )
233
- );
234
- } // End function editor_assets().
235
-
236
-
237
- /**
238
- * Function to integrate CF7 Forms.
239
- *
240
- * @since 1.10.0
241
- */
242
- public function get_cf7_forms() {
243
-
244
- $field_options = array();
245
-
246
- if ( class_exists( 'WPCF7_ContactForm' ) ) {
247
- $args = array(
248
- 'post_type' => 'wpcf7_contact_form',
249
- 'posts_per_page' => -1,
250
- );
251
- $forms = get_posts( $args );
252
- $field_options[0] = array(
253
- 'value' => -1,
254
- 'label' => __( 'Select Form', 'ultimate-addons-for-gutenberg' ),
255
- );
256
- if ( $forms ) {
257
- foreach ( $forms as $form ) {
258
- $field_options[] = array(
259
- 'value' => $form->ID,
260
- 'label' => $form->post_title,
261
- );
262
- }
263
- }
264
- }
265
-
266
- if ( empty( $field_options ) ) {
267
- $field_options = array(
268
- '-1' => __( 'You have not added any Contact Form 7 yet.', 'ultimate-addons-for-gutenberg' ),
269
- );
270
- }
271
- return $field_options;
272
- }
273
- }
274
-
275
- /**
276
- * Prepare if class 'UAGB_Init_Blocks' exist.
277
- * Kicking this off by calling 'get_instance()' method
278
- */
279
- UAGB_Init_Blocks::get_instance();
1
+ <?php
2
+ /**
3
+ * UAGB Blocks Initializer
4
+ *
5
+ * Enqueue CSS/JS of all the blocks.
6
+ *
7
+ * @since 1.0.0
8
+ * @package UAGB
9
+ */
10
+
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+ exit; // Exit if accessed directly.
13
+ }
14
+
15
+ /**
16
+ * UAGB_Init_Blocks.
17
+ *
18
+ * @package UAGB
19
+ */
20
+ class UAGB_Init_Blocks {
21
+
22
+ /**
23
+ * Member Variable
24
+ *
25
+ * @var instance
26
+ */
27
+ private static $instance;
28
+
29
+ /**
30
+ * Initiator
31
+ */
32
+ public static function get_instance() {
33
+ if ( ! isset( self::$instance ) ) {
34
+ self::$instance = new self;
35
+ }
36
+ return self::$instance;
37
+ }
38
+
39
+ /**
40
+ * Constructor
41
+ */
42
+ public function __construct() {
43
+
44
+ // Hook: Frontend assets.
45
+ add_action( 'enqueue_block_assets', array( $this, 'block_assets' ) );
46
+
47
+ // Hook: Editor assets.
48
+ add_action( 'enqueue_block_editor_assets', array( $this, 'editor_assets' ) );
49
+
50
+ add_filter( 'block_categories', array( $this, 'register_block_category' ), 10, 2 );
51
+ }
52
+
53
+ /**
54
+ * Gutenberg block category for UAGB.
55
+ *
56
+ * @param array $categories Block categories.
57
+ * @param object $post Post object.
58
+ * @since 1.0.0
59
+ */
60
+ function register_block_category( $categories, $post ) {
61
+ return array_merge(
62
+ $categories,
63
+ array(
64
+ array(
65
+ 'slug' => 'uagb',
66
+ 'title' => __( 'Ultimate Addons Blocks', 'ultimate-addons-for-gutenberg' ),
67
+ ),
68
+ )
69
+ );
70
+ }
71
+
72
+ /**
73
+ * Enqueue Gutenberg block assets for both frontend + backend.
74
+ *
75
+ * @since 1.0.0
76
+ */
77
+ function block_assets() {
78
+ // Styles.
79
+ wp_enqueue_style(
80
+ 'uagb-block-css', // Handle.
81
+ UAGB_URL . 'dist/blocks.style.build.css', // Block style CSS.
82
+ UAGB_VER
83
+ );
84
+
85
+ // Scripts.
86
+ wp_enqueue_script(
87
+ 'uagb-masonry', // Handle.
88
+ UAGB_URL . 'assets/js/isotope.min.js',
89
+ array( 'jquery' ), // Dependencies, defined above.
90
+ UAGB_VER,
91
+ false // Enqueue the script in the footer.
92
+ );
93
+
94
+ wp_enqueue_script(
95
+ 'uagb-imagesloaded', // Handle.
96
+ UAGB_URL . 'assets/js/imagesloaded.min.js',
97
+ array( 'jquery' ), // Dependencies, defined above.
98
+ UAGB_VER,
99
+ false // Enqueue the script in the footer.
100
+ );
101
+
102
+ $value = true;
103
+
104
+ if ( did_action( 'elementor/loaded' ) ) {
105
+ $value = false;
106
+ }
107
+
108
+ $enable_font_awesome = apply_filters( 'uagb_font_awesome_enable', $value );
109
+
110
+ if ( $enable_font_awesome ) {
111
+ $font_awesome = apply_filters( 'uagb_font_awesome_url', 'https://use.fontawesome.com/releases/v5.6.0/css/all.css' );
112
+ // Font Awesome.
113
+ wp_enqueue_style(
114
+ 'uagb-fontawesome-css', // Handle.
115
+ $font_awesome, // Block style CSS.
116
+ UAGB_VER
117
+ );
118
+ }
119
+
120
+ // Scripts.
121
+ wp_enqueue_script(
122
+ 'uagb-slick-js', // Handle.
123
+ UAGB_URL . 'assets/js/slick.min.js',
124
+ array( 'jquery' ), // Dependencies, defined above.
125
+ UAGB_VER,
126
+ false // Enqueue the script in the footer.
127
+ );
128
+
129
+ // Styles.
130
+ wp_enqueue_style(
131
+ 'uagb-slick-css', // Handle.
132
+ UAGB_URL . 'assets/css/slick.css', // Block style CSS.
133
+ UAGB_VER
134
+ );
135
+
136
+ // Timeline js.
137
+ wp_enqueue_script(
138
+ 'uagb-timeline-js', // Handle.
139
+ UAGB_URL . 'assets/js/timeline.js',
140
+ array( 'jquery' ),
141
+ UAGB_VER,
142
+ true // Enqueue the script in the footer.
143
+ );
144
+
145
+ if ( ! wp_script_is( 'jquery', 'enqueued' ) ) {
146
+ wp_enqueue_script( 'jquery' );
147
+ }
148
+
149
+ if ( ! wp_script_is( 'contact-form-7', 'enqueued' ) ) {
150
+ wp_enqueue_script( 'contact-form-7' );
151
+ }
152
+
153
+ if ( ! wp_script_is( ' wpcf7-admin', 'enqueued' ) ) {
154
+ wp_enqueue_script( ' wpcf7-admin' );
155
+ }
156
+ } // End function editor_assets().
157
+
158
+ /**
159
+ * Enqueue Gutenberg block assets for backend editor.
160
+ *
161
+ * @since 1.0.0
162
+ */
163
+ function editor_assets() {
164
+ // Scripts.
165
+ wp_enqueue_script(
166
+ 'uagb-block-editor-js', // Handle.
167
+ UAGB_URL . 'dist/blocks.build.js',
168
+ array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor', 'wp-api-fetch' ), // Dependencies, defined above.
169
+ UAGB_VER,
170
+ true // Enqueue the script in the footer.
171
+ );
172
+
173
+ // Styles.
174
+ wp_enqueue_style(
175
+ 'uagb-block-editor-css', // Handle.
176
+ UAGB_URL . 'dist/blocks.editor.build.css', // Block editor CSS.
177
+ array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
178
+ UAGB_VER
179
+ );
180
+
181
+ // Common Editor style.
182
+ wp_enqueue_style(
183
+ 'uagb-block-common-editor-css', // Handle.
184
+ UAGB_URL . 'dist/blocks.commoneditorstyle.build.css', // Block editor CSS.
185
+ array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
186
+ UAGB_VER
187
+ );
188
+
189
+ wp_enqueue_script( 'uagb-deactivate-block-js', UAGB_URL . 'dist/blocks-deactivate.js', array( 'wp-blocks' ), UAGB_VER, true );
190
+
191
+ $blocks = array();
192
+ $saved_blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks' );
193
+
194
+ if ( is_array( $saved_blocks ) ) {
195
+ foreach ( $saved_blocks as $slug => $data ) {
196
+ $_slug = 'uagb/' . $slug;
197
+ $current_block = UAGB_Config::$block_attributes[ $_slug ];
198
+
199
+ if ( isset( $current_block['is_child'] ) && $current_block['is_child'] ) {
200
+ continue;
201
+ }
202
+
203
+ if ( isset( $saved_blocks[ $slug ] ) ) {
204
+ if ( 'disabled' === $saved_blocks[ $slug ] ) {
205
+ array_push( $blocks, $_slug );
206
+ }
207
+ }
208
+ }
209
+ }
210
+
211
+ wp_localize_script(
212
+ 'uagb-deactivate-block-js',
213
+ 'uagb_deactivate_blocks',
214
+ array(
215
+ 'deactivated_blocks' => $blocks,
216
+ )
217
+ );
218
+
219
+ wp_localize_script(
220
+ 'uagb-block-editor-js',
221
+ 'uagb_blocks_info',
222
+ array(
223
+ 'blocks' => UAGB_Config::get_block_attributes(),
224
+ 'category' => 'uagb',
225
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
226
+ 'cf7_forms' => $this->get_cf7_forms(),
227
+ 'tablet_breakpoint' => UAGB_TABLET_BREAKPOINT,
228
+ 'mobile_breakpoint' => UAGB_MOBILE_BREAKPOINT,
229
+ 'image_sizes' => UAGB_Helper::get_image_sizes(),
230
+ 'post_types' => UAGB_Helper::get_post_types(),
231
+ 'all_taxonomy' => UAGB_Helper::get_related_taxonomy(),
232
+ )
233
+ );
234
+ } // End function editor_assets().
235
+
236
+
237
+ /**
238
+ * Function to integrate CF7 Forms.
239
+ *
240
+ * @since 1.10.0
241
+ */
242
+ public function get_cf7_forms() {
243
+
244
+ $field_options = array();
245
+
246
+ if ( class_exists( 'WPCF7_ContactForm' ) ) {
247
+ $args = array(
248
+ 'post_type' => 'wpcf7_contact_form',
249
+ 'posts_per_page' => -1,
250
+ );
251
+ $forms = get_posts( $args );
252
+ $field_options[0] = array(
253
+ 'value' => -1,
254
+ 'label' => __( 'Select Form', 'ultimate-addons-for-gutenberg' ),
255
+ );
256
+ if ( $forms ) {
257
+ foreach ( $forms as $form ) {
258
+ $field_options[] = array(
259
+ 'value' => $form->ID,
260
+ 'label' => $form->post_title,
261
+ );
262
+ }
263
+ }
264
+ }
265
+
266
+ if ( empty( $field_options ) ) {
267
+ $field_options = array(
268
+ '-1' => __( 'You have not added any Contact Form 7 yet.', 'ultimate-addons-for-gutenberg' ),
269
+ );
270
+ }
271
+ return $field_options;
272
+ }
273
+ }
274
+
275
+ /**
276
+ * Prepare if class 'UAGB_Init_Blocks' exist.
277
+ * Kicking this off by calling 'get_instance()' method
278
+ */
279
+ UAGB_Init_Blocks::get_instance();
classes/class-uagb-loader.php CHANGED
@@ -73,7 +73,7 @@ if ( ! class_exists( 'UAGB_Loader' ) ) {
73
  define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
74
  define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
75
  define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
76
- define( 'UAGB_VER', '1.11.0' );
77
  define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
78
  define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
79
  define( 'UAGB_SLUG', 'uag' );
73
  define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
74
  define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
75
  define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
76
+ define( 'UAGB_VER', '1.11.1' );
77
  define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
78
  define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
79
  define( 'UAGB_SLUG', 'uag' );
dist/blocks.editor.build.css CHANGED
@@ -1,16 +1,16 @@
1
- .uagb-post-grid h2 a{text-decoration:none}.uagb-post-grid a{pointer-events:none;cursor:default}.block-editor-page #wpwrap .edit-post-visual-editor .slick-dots button{color:transparent}.block-editor-page #wpwrap .edit-post-visual-editor .uagb-post__image-position-background .uagb-post__image img{position:absolute;width:auto;height:auto;min-width:100%;max-width:none;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);min-height:100%}
2
- .uagb-section__wrap:before{content:'';position:absolute;border:1px dashed #03ddff;top:-1px;right:-1px;bottom:-1px;left:-1px;z-index:0}.uagb-section__edit-active.uagb-section__wrap:before{border-color:#035cff}.editor-bg-image-control .components-button,.editor-bg-video-control .components-button{vertical-align:middle}.editor-bg-image-control .components-button:last-child,.editor-bg-video-control .components-button:last-child{margin-left:10px}
3
- .uagb-buttons__outer-wrap .uagb-button__wrapper div{display:-ms-inline-flexbox;display:inline-flex}.editor-url-input input[type=text]{width:100%}
4
- .uagb-ifb-separator{display:inline-block;width:30%;margin:0}.uagb-infobox__content-wrap.uagb-infobox-icon-above-title{text-align:center}.block-editor-page #wpwrap .edit-post-visual-editor a.uagb-infobox-link-wrap{color:inherit}.block-editor-page #wpwrap .editor-rich-text .uagb-ifb-title-prefix{margin-bottom:5px}.block-editor-page #wpwrap .editor-rich-text .uagb-ifb-title{margin-bottom:10px}.block-editor-page #wpwrap .uagb-ifb-separator-parent{margin-bottom:10px}.block-editor-page #wpwrap .editor-rich-text .uagb-ifb-desc{margin-bottom:10px}
5
- .gutenberg-editor-page #wpwrap .uagb-testomonial__outer-wrap ul.slick-dots{margin:0 auto}#wpwrap .edit-post-visual-editor button.slick-arrow{line-height:1em}.uagb-tm__desc,.editor-block-list__layout .uagb-tm__desc.editor-rich-text__tinymce{margin-bottom:15px}.uagb-tm__author-name,.editor-block-list__layout .uagb-tm__author-name.editor-rich-text__tinymce{margin-bottom:5px;font-size:30px;line-height:1em}#wpwrap .edit-post-visual-editor ul.slick-dots{margin:0}
6
- .block-editor-page #wpwrap .edit-post-visual-editor ul.uagb-team__social-list{list-style:none;display:-ms-flexbox;display:flex;margin:0;padding:0}.block-editor-page #wpwrap .edit-post-visual-editor .uagb-team__social-icon a{color:#333}.wp-block-uagb-team .components-button:focus:enabled,.wp-block-uagb-team .components-button{background:transparent;border:none;-webkit-box-shadow:none;box-shadow:none}.editor-rich-text p.uagb-team__desc.editor-rich-text__tinymce{margin-bottom:10px}
7
- #wpwrap .edit-post-visual-editor a.uagb-ss__link{color:#3a3a3a}
8
- #wpwrap .edit-post-visual-editor a.uagb-icon-list__link{color:#3a3a3a}#wpwrap .uagb-icon-list__outer-wrap .uagb-icon-list__label-wrap{cursor:text}
9
- .uagb-rm__desc,.editor-block-list__layout .uagb-rm__desc.editor-rich-text__tinymce{margin-bottom:15px}.block-editor-page #wpwrap .uagb-rm__separator-parent{margin-bottom:10px}
10
- #wpwrap .edit-post-visual-editor .uagb-timeline__widget a{text-decoration:none;color:inherit}#wpwrap .edit-post-visual-editor .uagb-timeline__heading a,.gutenberg-editor-page #wpwrap .edit-post-visual-editor a{font-size:inherit;color:inherit;margin:0}#wpwrap .edit-post-visual-editor .uagb-timeline__heading{margin:0}#wpwrap .edit-post-visual-editor .uagb-timeline-wrapper a{pointer-events:none}
11
- .uagb-cta__content-wrap.uagb-cta__icon-position-above-title{text-align:center}.block-editor-page #wpwrap .edit-post-visual-editor a.uagb-cta__block-link-wrap{color:inherit}.block-editor-page #wpwrap .editor-rich-text .uagb-cta__title{margin-bottom:10px}.block-editor-page #wpwrap .uagb-cta-separator-parent{margin-bottom:10px}.block-editor-page #wpwrap .editor-rich-text .uagb-cta__desc{margin-bottom:10px}.block-editor-page #wpwrap .uagb-cta__block-link i{font-style:normal}.wp-block-uagb-call-to-action.uagb-cta__outer-wrap a.uagb-cta__link-to-all{z-index:0}
12
- .wp-block[data-type="uagb/column"]:before{content:'';position:absolute;border:1px dashed #A3AEB6;top:0;right:0;bottom:0;left:0;z-index:0;width:100%;height:100%}.is-selected.wp-block[data-type="uagb/column"]:before{border-color:#59646C}.editor-bg-image-control .components-button,.editor-bg-video-control .components-button{vertical-align:middle}.editor-bg-image-control .components-button:last-child,.editor-bg-video-control .components-button:last-child{margin-left:10px}.wp-block[data-type="uagb/column"] .editor-block-list__block-edit{height:100%}.wp-block[data-type="uagb/column"] .editor-block-list__block-edit{height:100%}.uagb-column__inner-wrap .editor-block-list__block{margin-left:0;margin-right:0;width:100%}.block-editor-page #wpwrap .wp-block .wp-block-uagb-column .uagb-column__inner-wrap{width:100%;padding:30px}.edit-post-visual-editor .uagb-column__inner-wrap .editor-block-list__block>.editor-block-mover{left:-30px}@media (max-width: 449px){.block-editor-page #wpwrap .uagb-columns__inner-wrap .editor-block-list__block{background-attachment:scroll !important}}
13
- .uagb-columns__wrap:before{content:'';position:absolute;border:1px dashed #03ddff;top:0;right:0;bottom:0;left:0;z-index:1}.uagb-columns__edit-active.uagb-columns__wrap:before{border-color:#035cff}.editor-bg-image-control .components-button,.editor-bg-video-control .components-button{vertical-align:middle}.editor-bg-image-control .components-button:last-child,.editor-bg-video-control .components-button:last-child{margin-left:10px}.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.uagb-columns__inner-wrap>.editor-inner-blocks,.uagb-columns__inner-wrap>.editor-block-list__layout{width:100%}.uagb-columns__columns-1 .editor-block-list__block[data-type="uagb/column"]{width:100%}.uagb-columns__columns-2 .editor-block-list__block[data-type="uagb/column"]{width:50%}.uagb-columns__columns-3 .editor-block-list__block[data-type="uagb/column"]{width:33.33%}.uagb-columns__columns-4 .editor-block-list__block[data-type="uagb/column"]{width:25%}.uagb-columns__columns-5 .editor-block-list__block[data-type="uagb/column"]{width:20%}.uagb-columns__columns-6 .editor-block-list__block[data-type="uagb/column"]{width:16.66%}.wp-block-uagb-columns .editor-block-list__layout{margin-left:0;margin-right:0}.wp-block-uagb-columns .editor-block-list__layout .editor-block-list__block{max-width:none !important}.editor-block-list__block[data-type="uagb/columns"]{clear:both}.editor-block-list__block[data-align=center][data-type="uagb/columns"]{text-align:inherit}.editor-block-list__block[data-type="uagb/column"]>.editor-block-contextual-toolbar{top:38px;-webkit-transform:translateY(-38px);-ms-transform:translateY(-38px);transform:translateY(-38px);margin-left:-29px;margin-right:-29px}.editor-block-list__block[data-type="uagb/column"]>.editor-block-list__insertion-point{top:0;margin-top:0}.editor-block-list__block[data-align="full"] .wp-block-uagb-columns>.editor-inner-blocks>.editor-block-list__layout:first-child{margin-left:30px}.editor-block-list__block[data-align="full"] .wp-block-uagb-columns>.editor-inner-blocks>.editor-block-list__layout:last-child{margin-right:30px}.wp-block-uagb-columns.uagb-columns__valign-middle{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.wp-block-uagb-columns.uagb-columns__valign-middle>.uagb-columns__inner-wrap{width:100%}.wp-block-uagb-columns.uagb-columns__valign-bottom{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end}.wp-block-uagb-columns.uagb-columns__valign-bottom>.uagb-columns__inner-wrap{width:100%}.editor-block-list__layout .editor-block-list__block[data-type="uagb/column"]>.editor-block-list__block-edit>div:not(.editor-block-contextual-toolbar){width:100%}.editor-block-list__layout .editor-block-list__block[data-type="uagb/column"]>.editor-block-list__block-edit>.editor-block-contextual-toolbar{position:absolute;top:0;-webkit-transform:translateY(-39px);-ms-transform:translateY(-39px);transform:translateY(-39px)}.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]>.editor-block-list__block-edit:before{bottom:0;top:0}.editor-block-list__block[data-align="full"] .wp-block-uagb-columns{padding-left:15px;padding-right:15px}.wp-block-uagb-columns{display:block;position:relative}.wp-block-uagb-columns>.uagb-columns__inner-wrap{z-index:10;position:relative;margin:0 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;margin-left:0;margin-right:0}.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:none;margin-top:0;margin-bottom:0}.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"] .editor-block-list__block-edit{-ms-flex-preferred-size:100%;flex-basis:100%}.wp-block-uagb-columns.uagb-columns__valign-middle>.uagb-columns__inner-wrap{-ms-flex-pack:center;justify-content:center}.wp-block-uagb-columns.uagb-columns__valign-bottom>.uagb-columns__inner-wrap{-ms-flex-pack:end;justify-content:flex-end}.wp-block-uagb-columns.uagb-columns__valign-middle>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]>.editor-block-list__block-edit{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.wp-block-uagb-columns.uagb-columns__valign-bottom>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]>.editor-block-list__block-edit{-ms-flex-align:end;align-items:flex-end;display:-ms-flexbox;display:flex}.wp-block-uagb-column{width:100%}.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]>.editor-block-list__block-edit{margin-left:-23px;margin-right:-23px}@media (max-width: 976px){.uagb-columns__reverse-tablet.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout{-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 767px){.uagb-columns__reverse-mobile.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout{-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 600px){.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout{-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]{-ms-flex:none !important;flex:none !important;width:100%;margin-right:0}}.editor-block-list__block[data-type="uagb/columns"]>.editor-block-list__block-edit:before{pointer-events:inherit}.editor-block-list__block[data-type="uagb/columns"]>.editor-block-list__insertion-point{height:16px}.editor-block-list__block[data-type="uagb/columns"]>.editor-block-list__insertion-point .editor-block-list__insertion-point-inserter{height:16px}
14
- .wp-block-uagb-cf7-styler .wpcf7 form{position:relative}.wp-block-uagb-cf7-styler .wpcf7 form>div,.wp-block-uagb-cf7-styler .wpcf7 form>p{margin-bottom:1.2em}.wp-block-uagb-cf7-styler .wpcf7 .wpcf7-form-control-wrap{width:100%;display:block}.wp-block-uagb-cf7-styler .wpcf7 input:not([type=submit]):focus,.wp-block-uagb-cf7-styler .wpcf7 select:focus,.wp-block-uagb-cf7-styler .wpcf7 textarea:focus{background:#fff;border-color:#eaeaea;outline:0;-webkit-box-shadow:none;box-shadow:none}.wp-block-uagb-cf7-styler .wpcf7 input:not([type=submit]),.wp-block-uagb-cf7-styler .wpcf7 select,.wp-block-uagb-cf7-styler .wpcf7 textarea{width:100%;padding:.75em}.wp-block-uagb-cf7-styler .wpcf7 input[type=file]{color:#666;height:auto;border-width:1px;border-style:solid;border-color:#eaeaea;border-radius:2px;background:#fafafa;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .2s linear;-o-transition:all .2s linear;transition:all .2s linear}.wp-block-uagb-cf7-styler .wpcf7 input[type=checkbox],.wp-block-uagb-cf7-styler .wpcf7 input[type=radio]{background:#e9eef2;color:#555;clear:none;cursor:pointer;line-height:0;height:1.2em;margin:-3px 4px 0 0;outline:0;padding:0;border-radius:.2em;text-align:center;vertical-align:middle;width:1.4em;min-width:1.4em;-webkit-transition:all .2s linear;-o-transition:all .2s linear;transition:all .2s linear;display:none}.wp-block-uagb-cf7-styler .wpcf7 .wpcf7-validation-errors{border-color:red}.wp-block-uagb-cf7-styler div.wpcf7{margin:0;padding:0}.wp-block-uagb-cf7-styler div.wpcf7 .screen-reader-response{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;margin:0;padding:0;border:0}.wp-block-uagb-cf7-styler div.wpcf7-response-output{margin:2em 0.5em 1em;padding:0.2em 1em;border:2px solid #ff0000}.wp-block-uagb-cf7-styler div.wpcf7-mail-sent-ok{border:2px solid #398f14}.wp-block-uagb-cf7-styler div.wpcf7-mail-sent-ng,.wp-block-uagb-cf7-styler div.wpcf7-aborted{border:2px solid #ff0000}.wp-block-uagb-cf7-styler div.wpcf7-spam-blocked{border:2px solid #ffa500}.wp-block-uagb-cf7-styler div.wpcf7-validation-errors,.wp-block-uagb-cf7-styler div.wpcf7-acceptance-missing{border:2px solid #f7e700}.wp-block-uagb-cf7-styler .wpcf7-form-control-wrap{position:relative}.wp-block-uagb-cf7-styler span.wpcf7-not-valid-tip{color:#f00;font-size:1em;font-weight:normal;display:block}.wp-block-uagb-cf7-styler .use-floating-validation-tip span.wpcf7-not-valid-tip{position:absolute;top:20%;left:20%;z-index:100;border:1px solid #ff0000;background:#fff;padding:.2em .8em}.wp-block-uagb-cf7-styler span.wpcf7-list-item{display:inline-block;margin:0 1em 0 0}.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::before,.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::after{content:" "}.wp-block-uagb-cf7-styler .wpcf7-display-none{display:none}.wp-block-uagb-cf7-styler div.wpcf7 .ajax-loader{visibility:hidden;display:inline-block;background-image:url("../../images/ajax-loader.gif");width:16px;height:16px;border:none;padding:0;margin:0 0 0 4px;vertical-align:middle}.wp-block-uagb-cf7-styler div.wpcf7 .ajax-loader.is-active{visibility:visible}.wp-block-uagb-cf7-styler div.wpcf7 div.ajax-error{display:none}.wp-block-uagb-cf7-styler div.wpcf7 .placeheld{color:#888}.wp-block-uagb-cf7-styler div.wpcf7 input[type="file"]{cursor:pointer}.wp-block-uagb-cf7-styler div.wpcf7 input[type="file"]:disabled{cursor:default}.wp-block-uagb-cf7-styler div.wpcf7 .wpcf7-submit:disabled{cursor:not-allowed}.block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-cf7-styler .button,.block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-cf7-styler button,.block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-cf7-styler input,.block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-cf7-styler select,.block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-cf7-styler textarea{font-size:100%;color:inherit}
15
- #wpwrap .edit-post-visual-editor .uagb-blockquote__skin-quotation blockquote.uagb-blockquote{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;quotes:none;border-left:0 none;border-right:0 none;border-top:0 none;border-bottom:0 none;font-style:normal}#wpwrap .edit-post-visual-editor blockquote.uagb-blockquote{margin:0;padding:0}#wpwrap .edit-post-visual-editor .uagb-blockquote__skin-border blockquote{padding-left:10px}#wpwrap .edit-post-visual-editor .uagb-blockquote__content,#wpwrap .edit-post-visual-editor cite.uagb-blockquote__author,#wpwrap .edit-post-visual-editor .uagb-blockquote__author{font-style:normal}#wpwrap .edit-post-visual-editor .uagb-blockquote a{color:#1DA1F2;-webkit-box-shadow:none;box-shadow:none;text-decoration:none}#wpwrap .edit-post-visual-editor .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button,#wpwrap .edit-post-visual-editor .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button{color:#fff}#wpwrap .edit-post-visual-editor .uagb-blockquote__align-center a.uagb-blockquote__tweet-button{margin:0 auto}
16
- .editor-rich-text p.uagb-marketing-btn__prefix{margin:0 !important}
1
+ .uagb-post-grid h2 a{text-decoration:none}.uagb-post-grid a{pointer-events:none;cursor:default}.block-editor-page #wpwrap .edit-post-visual-editor .slick-dots button{color:transparent}.block-editor-page #wpwrap .edit-post-visual-editor .uagb-post__image-position-background .uagb-post__image img{position:absolute;width:auto;height:auto;min-width:100%;max-width:none;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);min-height:100%}
2
+ .uagb-section__wrap:before{content:'';position:absolute;border:1px dashed #03ddff;top:-1px;right:-1px;bottom:-1px;left:-1px;z-index:0}.uagb-section__edit-active.uagb-section__wrap:before{border-color:#035cff}.editor-bg-image-control .components-button,.editor-bg-video-control .components-button{vertical-align:middle}.editor-bg-image-control .components-button:last-child,.editor-bg-video-control .components-button:last-child{margin-left:10px}
3
+ .uagb-buttons__outer-wrap .uagb-button__wrapper div{display:-ms-inline-flexbox;display:inline-flex}.editor-url-input input[type=text]{width:100%}
4
+ .uagb-ifb-separator{display:inline-block;width:30%;margin:0}.uagb-infobox__content-wrap.uagb-infobox-icon-above-title{text-align:center}.block-editor-page #wpwrap .edit-post-visual-editor a.uagb-infobox-link-wrap{color:inherit}.block-editor-page #wpwrap .editor-rich-text .uagb-ifb-title-prefix{margin-bottom:5px}.block-editor-page #wpwrap .editor-rich-text .uagb-ifb-title{margin-bottom:10px}.block-editor-page #wpwrap .uagb-ifb-separator-parent{margin-bottom:10px}.block-editor-page #wpwrap .editor-rich-text .uagb-ifb-desc{margin-bottom:10px}
5
+ .gutenberg-editor-page #wpwrap .uagb-testomonial__outer-wrap ul.slick-dots{margin:0 auto}#wpwrap .edit-post-visual-editor button.slick-arrow{line-height:1em}.uagb-tm__desc,.editor-block-list__layout .uagb-tm__desc.editor-rich-text__tinymce{margin-bottom:15px}.uagb-tm__author-name,.editor-block-list__layout .uagb-tm__author-name.editor-rich-text__tinymce{margin-bottom:5px;font-size:30px;line-height:1em}#wpwrap .edit-post-visual-editor ul.slick-dots{margin:0}
6
+ .block-editor-page #wpwrap .edit-post-visual-editor ul.uagb-team__social-list{list-style:none;display:-ms-flexbox;display:flex;margin:0;padding:0}.block-editor-page #wpwrap .edit-post-visual-editor .uagb-team__social-icon a{color:#333}.wp-block-uagb-team .components-button:focus:enabled,.wp-block-uagb-team .components-button{background:transparent;border:none;-webkit-box-shadow:none;box-shadow:none}.editor-rich-text p.uagb-team__desc.editor-rich-text__tinymce{margin-bottom:10px}
7
+ #wpwrap .edit-post-visual-editor a.uagb-ss__link{color:#3a3a3a}
8
+ #wpwrap .edit-post-visual-editor a.uagb-icon-list__link{color:#3a3a3a}#wpwrap .uagb-icon-list__outer-wrap .uagb-icon-list__label-wrap{cursor:text}
9
+ .uagb-rm__desc,.editor-block-list__layout .uagb-rm__desc.editor-rich-text__tinymce{margin-bottom:15px}.block-editor-page #wpwrap .uagb-rm__separator-parent{margin-bottom:10px}
10
+ #wpwrap .edit-post-visual-editor .uagb-timeline__widget a{text-decoration:none;color:inherit}#wpwrap .edit-post-visual-editor .uagb-timeline__heading a,.gutenberg-editor-page #wpwrap .edit-post-visual-editor a{font-size:inherit;color:inherit;margin:0}#wpwrap .edit-post-visual-editor .uagb-timeline__heading{margin:0}#wpwrap .edit-post-visual-editor .uagb-timeline-wrapper a{pointer-events:none}
11
+ .uagb-cta__content-wrap.uagb-cta__icon-position-above-title{text-align:center}.block-editor-page #wpwrap .edit-post-visual-editor a.uagb-cta__block-link-wrap{color:inherit}.block-editor-page #wpwrap .editor-rich-text .uagb-cta__title{margin-bottom:10px}.block-editor-page #wpwrap .uagb-cta-separator-parent{margin-bottom:10px}.block-editor-page #wpwrap .editor-rich-text .uagb-cta__desc{margin-bottom:10px}.block-editor-page #wpwrap .uagb-cta__block-link i{font-style:normal}.wp-block-uagb-call-to-action.uagb-cta__outer-wrap a.uagb-cta__link-to-all{z-index:0}
12
+ .wp-block[data-type="uagb/column"]:before{content:'';position:absolute;border:1px dashed #A3AEB6;top:0;right:0;bottom:0;left:0;z-index:0;width:100%;height:100%}.is-selected.wp-block[data-type="uagb/column"]:before{border-color:#59646C}.editor-bg-image-control .components-button,.editor-bg-video-control .components-button{vertical-align:middle}.editor-bg-image-control .components-button:last-child,.editor-bg-video-control .components-button:last-child{margin-left:10px}.wp-block[data-type="uagb/column"] .editor-block-list__block-edit{height:100%}.wp-block[data-type="uagb/column"] .editor-block-list__block-edit{height:100%}.uagb-column__inner-wrap .editor-block-list__block{margin-left:0;margin-right:0;width:100%}.block-editor-page #wpwrap .wp-block .wp-block-uagb-column .uagb-column__inner-wrap{width:100%;padding:30px}.edit-post-visual-editor .uagb-column__inner-wrap .editor-block-list__block>.editor-block-mover{left:-30px}@media (max-width: 449px){.block-editor-page #wpwrap .uagb-columns__inner-wrap .editor-block-list__block{background-attachment:scroll !important}}
13
+ .uagb-columns__wrap:before{content:'';position:absolute;border:1px dashed #03ddff;top:0;right:0;bottom:0;left:0;z-index:1}.uagb-columns__edit-active.uagb-columns__wrap:before{border-color:#035cff}.editor-bg-image-control .components-button,.editor-bg-video-control .components-button{vertical-align:middle}.editor-bg-image-control .components-button:last-child,.editor-bg-video-control .components-button:last-child{margin-left:10px}.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.uagb-columns__inner-wrap>.editor-inner-blocks,.uagb-columns__inner-wrap>.editor-block-list__layout{width:100%}.uagb-columns__columns-1 .editor-block-list__block[data-type="uagb/column"]{width:100%}.uagb-columns__columns-2 .editor-block-list__block[data-type="uagb/column"]{width:50%}.uagb-columns__columns-3 .editor-block-list__block[data-type="uagb/column"]{width:33.33%}.uagb-columns__columns-4 .editor-block-list__block[data-type="uagb/column"]{width:25%}.uagb-columns__columns-5 .editor-block-list__block[data-type="uagb/column"]{width:20%}.uagb-columns__columns-6 .editor-block-list__block[data-type="uagb/column"]{width:16.66%}.wp-block-uagb-columns .editor-block-list__layout{margin-left:0;margin-right:0}.wp-block-uagb-columns .editor-block-list__layout .editor-block-list__block{max-width:none !important}.editor-block-list__block[data-type="uagb/columns"]{clear:both}.editor-block-list__block[data-align=center][data-type="uagb/columns"]{text-align:inherit}.editor-block-list__block[data-type="uagb/column"]>.editor-block-contextual-toolbar{top:38px;-webkit-transform:translateY(-38px);-ms-transform:translateY(-38px);transform:translateY(-38px);margin-left:-29px;margin-right:-29px}.editor-block-list__block[data-type="uagb/column"]>.editor-block-list__insertion-point{top:0;margin-top:0}.editor-block-list__block[data-align="full"] .wp-block-uagb-columns>.editor-inner-blocks>.editor-block-list__layout:first-child{margin-left:30px}.editor-block-list__block[data-align="full"] .wp-block-uagb-columns>.editor-inner-blocks>.editor-block-list__layout:last-child{margin-right:30px}.wp-block-uagb-columns.uagb-columns__valign-middle{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.wp-block-uagb-columns.uagb-columns__valign-middle>.uagb-columns__inner-wrap{width:100%}.wp-block-uagb-columns.uagb-columns__valign-bottom{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:end;justify-content:flex-end}.wp-block-uagb-columns.uagb-columns__valign-bottom>.uagb-columns__inner-wrap{width:100%}.editor-block-list__layout .editor-block-list__block[data-type="uagb/column"]>.editor-block-list__block-edit>div:not(.editor-block-contextual-toolbar){width:100%}.editor-block-list__layout .editor-block-list__block[data-type="uagb/column"]>.editor-block-list__block-edit>.editor-block-contextual-toolbar{position:absolute;top:0;-webkit-transform:translateY(-39px);-ms-transform:translateY(-39px);transform:translateY(-39px)}.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]>.editor-block-list__block-edit:before{bottom:0;top:0}.editor-block-list__block[data-align="full"] .wp-block-uagb-columns{padding-left:15px;padding-right:15px}.wp-block-uagb-columns{display:block;position:relative}.wp-block-uagb-columns>.uagb-columns__inner-wrap{z-index:10;position:relative;margin:0 auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;margin-left:0;margin-right:0}.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:none;margin-top:0;margin-bottom:0}.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"] .editor-block-list__block-edit{-ms-flex-preferred-size:100%;flex-basis:100%}.wp-block-uagb-columns.uagb-columns__valign-middle>.uagb-columns__inner-wrap{-ms-flex-pack:center;justify-content:center}.wp-block-uagb-columns.uagb-columns__valign-bottom>.uagb-columns__inner-wrap{-ms-flex-pack:end;justify-content:flex-end}.wp-block-uagb-columns.uagb-columns__valign-middle>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]>.editor-block-list__block-edit{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.wp-block-uagb-columns.uagb-columns__valign-bottom>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]>.editor-block-list__block-edit{-ms-flex-align:end;align-items:flex-end;display:-ms-flexbox;display:flex}.wp-block-uagb-column{width:100%}.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]>.editor-block-list__block-edit{margin-left:-23px;margin-right:-23px}@media (max-width: 976px){.uagb-columns__reverse-tablet.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout{-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 767px){.uagb-columns__reverse-mobile.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout{-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 600px){.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout{-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-columns>.uagb-columns__inner-wrap>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]{-ms-flex:none !important;flex:none !important;width:100%;margin-right:0}}.editor-block-list__block[data-type="uagb/columns"]>.editor-block-list__block-edit:before{pointer-events:inherit}.editor-block-list__block[data-type="uagb/columns"]>.editor-block-list__insertion-point{height:16px}.editor-block-list__block[data-type="uagb/columns"]>.editor-block-list__insertion-point .editor-block-list__insertion-point-inserter{height:16px}
14
+ .wp-block-uagb-cf7-styler .wpcf7 form{position:relative}.wp-block-uagb-cf7-styler .wpcf7 form>div,.wp-block-uagb-cf7-styler .wpcf7 form>p{margin-bottom:1.2em}.wp-block-uagb-cf7-styler .wpcf7 .wpcf7-form-control-wrap{width:100%;display:block}.wp-block-uagb-cf7-styler .wpcf7 input:not([type=submit]):focus,.wp-block-uagb-cf7-styler .wpcf7 select:focus,.wp-block-uagb-cf7-styler .wpcf7 textarea:focus{background:#fff;border-color:#eaeaea;outline:0;-webkit-box-shadow:none;box-shadow:none}.wp-block-uagb-cf7-styler .wpcf7 input:not([type=submit]),.wp-block-uagb-cf7-styler .wpcf7 select,.wp-block-uagb-cf7-styler .wpcf7 textarea{width:100%;padding:.75em}.wp-block-uagb-cf7-styler .wpcf7 input[type=file]{color:#666;height:auto;border-width:1px;border-style:solid;border-color:#eaeaea;border-radius:2px;background:#fafafa;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .2s linear;-o-transition:all .2s linear;transition:all .2s linear}.wp-block-uagb-cf7-styler .wpcf7 input[type=checkbox],.wp-block-uagb-cf7-styler .wpcf7 input[type=radio]{background:#e9eef2;color:#555;clear:none;cursor:pointer;line-height:0;height:1.2em;margin:-3px 4px 0 0;outline:0;padding:0;border-radius:.2em;text-align:center;vertical-align:middle;width:1.4em;min-width:1.4em;-webkit-transition:all .2s linear;-o-transition:all .2s linear;transition:all .2s linear;display:none}.wp-block-uagb-cf7-styler .wpcf7 .wpcf7-validation-errors{border-color:red}.wp-block-uagb-cf7-styler div.wpcf7{margin:0;padding:0}.wp-block-uagb-cf7-styler div.wpcf7 .screen-reader-response{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;margin:0;padding:0;border:0}.wp-block-uagb-cf7-styler div.wpcf7-response-output{margin:2em 0.5em 1em;padding:0.2em 1em;border:2px solid #ff0000}.wp-block-uagb-cf7-styler div.wpcf7-mail-sent-ok{border:2px solid #398f14}.wp-block-uagb-cf7-styler div.wpcf7-mail-sent-ng,.wp-block-uagb-cf7-styler div.wpcf7-aborted{border:2px solid #ff0000}.wp-block-uagb-cf7-styler div.wpcf7-spam-blocked{border:2px solid #ffa500}.wp-block-uagb-cf7-styler div.wpcf7-validation-errors,.wp-block-uagb-cf7-styler div.wpcf7-acceptance-missing{border:2px solid #f7e700}.wp-block-uagb-cf7-styler .wpcf7-form-control-wrap{position:relative}.wp-block-uagb-cf7-styler span.wpcf7-not-valid-tip{color:#f00;font-size:1em;font-weight:normal;display:block}.wp-block-uagb-cf7-styler .use-floating-validation-tip span.wpcf7-not-valid-tip{position:absolute;top:20%;left:20%;z-index:100;border:1px solid #ff0000;background:#fff;padding:.2em .8em}.wp-block-uagb-cf7-styler span.wpcf7-list-item{display:inline-block;margin:0 1em 0 0}.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::before,.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::after{content:" "}.wp-block-uagb-cf7-styler .wpcf7-display-none{display:none}.wp-block-uagb-cf7-styler div.wpcf7 .ajax-loader{visibility:hidden;display:inline-block;background-image:url("../../images/ajax-loader.gif");width:16px;height:16px;border:none;padding:0;margin:0 0 0 4px;vertical-align:middle}.wp-block-uagb-cf7-styler div.wpcf7 .ajax-loader.is-active{visibility:visible}.wp-block-uagb-cf7-styler div.wpcf7 div.ajax-error{display:none}.wp-block-uagb-cf7-styler div.wpcf7 .placeheld{color:#888}.wp-block-uagb-cf7-styler div.wpcf7 input[type="file"]{cursor:pointer}.wp-block-uagb-cf7-styler div.wpcf7 input[type="file"]:disabled{cursor:default}.wp-block-uagb-cf7-styler div.wpcf7 .wpcf7-submit:disabled{cursor:not-allowed}.block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-cf7-styler .button,.block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-cf7-styler button,.block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-cf7-styler input,.block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-cf7-styler select,.block-editor-page #wpwrap .edit-post-visual-editor .wp-block-uagb-cf7-styler textarea{font-size:100%;color:inherit}
15
+ #wpwrap .edit-post-visual-editor .uagb-blockquote__skin-quotation blockquote.uagb-blockquote{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;quotes:none;border-left:0 none;border-right:0 none;border-top:0 none;border-bottom:0 none;font-style:normal}#wpwrap .edit-post-visual-editor blockquote.uagb-blockquote{margin:0;padding:0}#wpwrap .edit-post-visual-editor .uagb-blockquote__skin-border blockquote{padding-left:10px}#wpwrap .edit-post-visual-editor .uagb-blockquote__content,#wpwrap .edit-post-visual-editor cite.uagb-blockquote__author,#wpwrap .edit-post-visual-editor .uagb-blockquote__author{font-style:normal}#wpwrap .edit-post-visual-editor .uagb-blockquote a{color:#1DA1F2;-webkit-box-shadow:none;box-shadow:none;text-decoration:none}#wpwrap .edit-post-visual-editor .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button,#wpwrap .edit-post-visual-editor .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button{color:#fff}#wpwrap .edit-post-visual-editor .uagb-blockquote__align-center a.uagb-blockquote__tweet-button{margin:0 auto}
16
+ .editor-rich-text p.uagb-marketing-btn__prefix{margin:0 !important}
dist/blocks.style.build.css CHANGED
@@ -1,18 +1,18 @@
1
- .wp-block-uagb-advanced-heading{padding:0;margin:0 auto}.wp-block-uagb-advanced-heading .uagb-heading-text{margin:0;text-align:center}.wp-block-uagb-advanced-heading .uagb-separator-wrap{font-size:0;text-align:center}.wp-block-uagb-advanced-heading .uagb-separator{border-top-style:solid;display:inline-block;border-top-width:2px;width:5%;margin:0px 0px 10px 0px}.wp-block-uagb-advanced-heading .uagb-desc-text{margin:0;text-align:center}
2
- .uagb-post-grid{margin:0;position:relative}.uagb-post-grid .is-grid article{float:left;display:inline-block}.uagb-post-grid .uagb-post__items{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.uagb-post-grid .is-grid.uagb-post__equal-height .uagb-post__inner-wrap{height:100%}.uagb-post-grid .is-masonry .uagb-post__inner-wrap{height:100%}.uagb-post-grid .uagb-post__inner-wrap>p{display:none}.uagb-post-grid .uagb-post__author span,.uagb-post-grid .uagb-post__comment span,.uagb-post-grid .uagb-post__date span{font-size:inherit;line-height:inherit;width:inherit;height:inherit;margin-right:4px}.uagb-post-grid .uagb-post__columns-8 article{width:12.5%}.uagb-post-grid .uagb-post__columns-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-5 article{width:20%}.uagb-post-grid .uagb-post__columns-4 article{width:25%}.uagb-post-grid .uagb-post__columns-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-2 article{width:50%}.uagb-post-grid .uagb-post__columns-1 article{width:100%}@media only screen and (max-width: 600px){.uagb-post-grid div[class*="columns"].is-grid{grid-template-columns:1fr}}.uagb-post-grid .uagb-post__image img{display:block;width:100%}.uagb-post-grid .uagb-post__text{text-align:left}.uagb-post-grid .uagb-post__title{margin-top:0;margin-bottom:15px;word-break:break-word}.uagb-post-grid .uagb-post__title a{color:inherit;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:.3s ease;-o-transition:.3s ease;transition:.3s ease;text-decoration:none}.uagb-post-grid .uagb-post__title a:hover{text-decoration:none}.uagb-post-grid .uagb-post__title a:focus{text-decoration:none}.uagb-post-grid .uagb-post__title a:active{text-decoration:none}.uagb-post-grid .uagb-post-grid-byline{text-transform:uppercase;font-size:11px;letter-spacing:1px;margin-bottom:15px}.uagb-post-grid .uagb-post__text .uagb-post-grid-byline>*{margin-right:10px}.uagb-post-grid .uagb-post-grid-byline a,.uagb-post-grid .uagb-post-grid-byline a:focus,.uagb-post-grid .uagb-post-grid-byline a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__title a,.uagb-post-grid .uagb-post__title a:focus,.uagb-post-grid .uagb-post__title a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__author,.uagb-post-grid .uagb-post__date{display:inline-block;word-break:break-all}.uagb-post-grid .uagb-post__author:not(:last-child):after,.uagb-post-grid .uagb-post__date:not(:last-child):after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.uagb-post-grid .uagb-post__comment{display:inline-block}.uagb-post-grid .uagb-post__author a{-webkit-box-shadow:none;box-shadow:none}.uagb-post-grid .uagb-post__author a:hover{color:inherit;-webkit-box-shadow:0 -1px 0 inset;box-shadow:0 -1px 0 inset}.uagb-post-grid .uagb-post__excerpt{margin-bottom:25px;word-break:break-word}.uagb-post-grid .uagb-post__text p{margin:0 0 15px 0}.uagb-post-grid .uagb-post__text p:last-of-type{margin-bottom:0}.uagb-post-grid .uagb-post__cta{border:none;display:inline-block}.uagb-post-grid .uagb-post__link{display:inline-block;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:.3s ease;-o-transition:.3s ease;transition:.3s ease;font-weight:bold;color:inherit;text-decoration:none;padding:5px 10px}.uagb-post-grid .uagb-post__excerpt div+p{margin-top:15px}.uagb-post-grid .uagb-post__excerpt p{color:inherit}.uagb-post-grid .uagb-post__link-complete-box{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}.uagb-post__image-position-background .uagb-post__text{opacity:1;position:relative;z-index:10;overflow:hidden;width:100%}.uagb-post__image-position-background .uagb-post__inner-wrap{position:relative;width:100%}.uagb-post__image-position-background .uagb-post__image img{position:absolute;width:auto;height:auto;min-width:100%;max-width:none;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);min-height:100%}.uagb-post__image-position-background .uagb-post__image{background-size:cover;background-repeat:no-repeat;background-position:center;overflow:hidden;text-align:center;position:relative}.uagb-post__image-position-background .uagb-post__image{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2}.uagb-post__image-position-background .uagb-post__image::before{content:'';position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:rgba(255,255,255,0.5)}.uagb-post-grid[data-equal-height="yes"] .uagb-post__inner-wrap{display:inline-block;height:100%}.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:-45px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:-45px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:-45px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:-45px;right:auto}.uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:25px;z-index:1}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:auto;right:25px}.uagb-post__arrow-inside.uagb-post-grid .slick-next{right:25px}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-next{left:25px;right:auto}.uagb-post-grid .is-grid article,.uagb-post-grid .is-masonry article,.uagb-post-grid .is-carousel article{-webkit-box-sizing:border-box;box-sizing:border-box}@media (max-width: 976px){.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:15px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:15px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:15px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:15px;right:auto}.uagb-post-grid .uagb-post__columns-tablet-1 article{width:100%}.uagb-post-grid .uagb-post__columns-tablet-2 article{width:50%}.uagb-post-grid .uagb-post__columns-tablet-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-tablet-4 article{width:25%}.uagb-post-grid .uagb-post__columns-tablet-5 article{width:20%}.uagb-post-grid .uagb-post__columns-tablet-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}@media (max-width: 767px){.uagb-post-grid .uagb-post__columns-mobile-1 article{width:100%}.uagb-post-grid .uagb-post__columns-mobile-2 article{width:50%}.uagb-post-grid .uagb-post__columns-mobile-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-mobile-4 article{width:25%}.uagb-post-grid .uagb-post__columns-mobile-5 article{width:20%}.uagb-post-grid .uagb-post__columns-mobile-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}.entry .entry-content .uagb-post-grid a{text-decoration:none}
3
- .uagb-section__wrap{position:relative}.uagb-section__wrap .uagb-section__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2}.uagb-section__wrap .uagb-section__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-section__wrap .uagb-section__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-section__wrap .uagb-section__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}@media only screen and (max-width: 449px){.uagb-section__wrap.uagb-section__background-image{background-attachment:scroll !important}}
4
- .uagb-buttons__outer-wrap .uagb-buttons__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.uagb-buttons__outer-wrap .uagb-button__active,.uagb-buttons__outer-wrap .uagb-button__active:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8)}.uagb-buttons__outer-wrap a.uagb-button__link:focus,.uagb-buttons__outer-wrap .uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-buttons__outer-wrap .uagb-button__wrapper{padding:0;border:1px solid #333;border-radius:2px;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex}.uagb-buttons__outer-wrap .uagb-button__wrapper:first-child{margin-left:0}.uagb-buttons__outer-wrap .uagb-button__wrapper:last-child{margin-right:0}.uagb-buttons__outer-wrap .uagb-button__wrapper a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-button__link{padding:10px 14px;width:100%;color:#333;text-decoration:none;font-family:inherit;line-height:inherit;font-weight:inherit}.uagb-buttons__outer-wrap .uagb-button__wrapper a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper:hover a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper:hover .uagb-button__link{text-decoration:none}
5
- .uagb-ifb-icon-wrap,.uagb-ifb-icon-wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-ifb-icon-wrap .uagb-ifb-icon,.uagb-ifb-content{display:inline-block}.uagb-ifb-icon svg{width:inherit;height:inherit;vertical-align:middle}.infobox-icon-above-title .uagb-ifb-left-right-wrap{text-align:center}a.uagb-infobox-cta-link span{font-size:inherit}.uagb-ifb-cta.uagb-infobox-cta-link-style:empty{display:none}a.uagb-infobox-cta-link,.entry .entry-content a.uagb-infobox-cta-link,a.uagb-infobox-link-wrap,.entry .entry-content a.uagb-infobox-link-wrap{text-decoration:none}a.uagb-infobox-cta-link:hover,.entry .entry-content a.uagb-infobox-cta-link:hover,a.uagb-infobox-link-wrap:hover,.entry .entry-content a.uagb-infobox-link-wrap:hover .entry .entry-content a.uagb-infobox-cta-link:hover{color:inherit}.uagb-infobox-icon-left-title.uagb-infobox-image-valign-middle .uagb-ifb-title-wrap,.uagb-infobox-icon-right-title.uagb-infobox-image-valign-middle .uagb-ifb-title-wrap,.uagb-infobox-image-valign-middle .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-image-valign-middle .uagb-ifb-content,.uagb-infobox-icon-right.uagb-infobox-image-valign-middle .uagb-ifb-content{-ms-flex-item-align:center;align-self:center}.uagb-infobox-left{text-align:left;-ms-flex-pack:start;justify-content:flex-start}.uagb-infobox-center{text-align:center;-ms-flex-pack:center;justify-content:center}.uagb-infobox-right{text-align:right;-ms-flex-pack:end;justify-content:flex-end}.uagb-ifb-left-right-wrap{width:100%;word-break:break-word}.uagb-infobox-icon-above-title .uagb-ifb-left-right-wrap,.uagb-infobox-icon-below-title .uagb-ifb-left-right-wrap{display:block;min-width:100%;width:100%}.uagb-infobox-icon-left-title .uagb-ifb-icon-wrap,.uagb-infobox-icon-left .uagb-ifb-icon-wrap{margin-right:10px}.uagb-infobox-icon-right-title .uagb-ifb-icon-wrap,.uagb-infobox-icon-right .uagb-ifb-icon-wrap{margin-left:10px}.uagb-infobox-icon-left .uagb-ifb-left-right-wrap,.uagb-infobox-icon-right .uagb-ifb-left-right-wrap,.uagb-infobox-icon-left-title .uagb-ifb-left-title-image,.uagb-infobox-icon-right-title .uagb-ifb-right-title-image{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-infobox-icon-right .uagb-ifb-left-right-wrap,.uagb-infobox-icon-right-title .uagb-ifb-right-title-image{-ms-flex-pack:end;justify-content:flex-end}.uagb-ifb-icon-wrap .uagb-ifb-icon span{font-style:initial;height:auto;width:auto}.uagb-ifb-imgicon-wrap .uagb-ifb-image-content{display:inline-block;line-height:0;position:relative;max-width:100%}.uagb-ifb-imgicon-wrap .uagb-ifb-image-content img{display:inline;height:auto !important;max-width:100%;width:auto;-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:inherit}.uagb-ifb-imgicon-wrap .uagb-image-crop-circle img{border-radius:100%}.uagb-ifb-imgicon-wrap .uagb-image-crop-square img{border-radius:0}.uagb-infobox-module-link{position:absolute;width:100%;height:100%;left:0;top:0;bottom:0;right:0;z-index:4}.uagb-edit-mode .uagb-infobox-module-link{z-index:2}.uagb-infobox-link-icon-after{margin-left:5px;margin-right:0}.uagb-infobox-link-icon-before{margin-left:0;margin-right:5px}.uagb-infobox-link-icon{-webkit-transition:all 200ms linear;-o-transition:all 200ms linear;transition:all 200ms linear}.uagb-infobox{position:relative}.uagb-ifb-separator{width:30%;border-top-width:2px;border-top-color:#333;border-top-style:solid;display:inline-block;margin:0}.uagb-ifb-separator-parent{line-height:0em;margin-left:0;margin-right:0;margin-bottom:10px}.uagb-ifb-cta-button{display:inline-block;line-height:1;background-color:#818a91;color:#fff;text-align:center}.uagb-ifb-cta a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-ifb-title-wrap .uagb-ifb-title,.uagb-ifb-title-wrap .uagb-ifb-title-prefix{padding:0;margin:0;display:block}.uagb-infobox__content-wrap.uagb-infobox{position:relative}.uagb-ifb-icon span{font-size:40px;height:40px;color:#333;width:40px}.uagb-ifb-icon svg{fill:#333}.uagb-ifb-content{width:100%}.uagb-infobox__content-wrap.uagb-infobox,.uagb-ifb-content,.uagb-ifb-title-wrap,.uagb-ifb-title-prefix *,svg.dashicon.dashicons-upload{z-index:1}.uagb-ifb-left-right-wrap,button.components-button{z-index:1}.uagb-infobox-cta-link{cursor:pointer}a.uagb-infobox-link-wrap{color:inherit}.uagb-ifb-content p:empty{display:none}.uagb-infobox .uagb-ifb-icon,.uagb-infobox .uagb-ifb-image-content img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-ifb-align-icon-after{margin-left:5px}.uagb-ifb-align-icon-before{margin-right:5px}span.uagb-ifb-button-icon.uagb-ifb-align-icon-after{float:right}.uagb-ifb-button-icon{height:15px;width:15px;font-size:15px;vertical-align:middle}.uagb-ifb-text-icon{height:15px;width:15px;font-size:15px;line-height:15px;vertical-align:middle;display:inline-block}.uagb-ifb-button-icon svg,.uagb-ifb-text-icon svg{height:inherit;width:inherit;display:inline-block}.block-editor-page #wpwrap .uagb-infobox-cta-link svg,.uagb-infobox-cta-link svg{font-style:normal}@media only screen and (max-width: 976px){.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{padding:0;margin-bottom:20px}.uagb-infobox-stacked-tablet.uagb-reverse-order-tablet .uagb-ifb-left-right-wrap{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-content,.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{display:block;width:100%;text-align:center}.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{margin-left:0px;margin-right:0px}.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap{display:inline-block}.uagb-infobox-icon-left-title.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap{margin-right:0px}.uagb-infobox-icon-right-title.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-right.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap{margin-left:0px}.uagb-infobox-icon-left-title .uagb-ifb-separator-parent{margin:10px 0}}@media screen and (max-width: 767px){.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{padding:0;margin-bottom:20px}.uagb-infobox-stacked-mobile.uagb-reverse-order-mobile .uagb-ifb-left-right-wrap{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-content,.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{display:block;width:100%;text-align:center}.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{margin-left:0px;margin-right:0px}.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap{display:inline-block}.uagb-infobox-icon-left-title.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap{margin-right:0px}.uagb-infobox-icon-right-title.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-right.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap{margin-left:0px}.uagb-infobox-icon-left-title .uagb-ifb-separator-parent{margin:10px 0}}
6
- .uagb-testimonial__wrap{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}.uagb-testimonial__wrap,.uagb-testimonial__wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-icon-wrap .uagb-icon{display:inline-block}.uagb-tm__image{position:relative}.uagb-tm__imgicon-style-circle .uagb-tm__image img{border-radius:100%;-webkit-border-radius:100%}.uagb-tm__imgicon-style-square .uagb-tm__image img{border-radius:0%;-webkit-border-radius:0%}.uagb-tm__image img,.slick-slide .uagb-tm__image img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-tm__author-name,.uagb-tm__company{display:inline-block}.uagb-tm__content{overflow:hidden;text-align:center;word-break:break-word;padding:15px;border-radius:inherit;position:relative}.uagb-tm__image-position-left .uagb-tm__content,.uagb-tm__image-position-right .uagb-tm__content{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-tm__meta-inner{display:inline-block}.uagb-tm__image-position-bottom .uagb-tm__image-content,.uagb-tm__image-position-bottom .uagb-testimonial-details{display:table-cell;vertical-align:middle}.uagb-tm__meta{width:100%;line-height:1}.uagb-tm__image-position-bottom .uagb-tm__image-content{padding-right:10px}.uagb-tm__author-name,.uagb-tm__company{display:block}.uagb-tm__image-aligned-middle .uagb-tm__image-content{-ms-flex-item-align:center;align-self:center}.uagb-tm__desc{margin-bottom:15px}.uagb-tm__author-name{margin-bottom:5px;font-size:30px;line-height:1em}.uagb-tm__company{font-size:15px;font-style:italic;line-height:1em;color:#888888}.is-carousel .uagb-testomonial__outer-wrap{padding-left:10px;padding-right:10px}.uagb-tm__overlay{height:100%;width:100%;top:0;left:0;position:absolute;background:transparent}.uagb-tm__text-wrap{position:relative}.uagb-tm__items{visibility:hidden}.uagb-tm__items.slick-initialized{visibility:visible}.uagb-tm__image-position-top .uagb-tm__image-content{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}@media (max-width: 976px){.uagb-tm__image-position-bottom.uagb-tm-stacked-tablet .uagb-tm__image-content,.uagb-tm__image-position-bottom.uagb-tm-stacked-tablet .uagb-testimonial-details{display:block;vertical-align:middle}.uagb-tm__image-position-left.uagb-tm-stacked-tablet .uagb-tm__content,.uagb-tm__image-position-right.uagb-tm-stacked-tablet .uagb-tm__content{display:block;-js-display:block;display:block}.uagb-tm__image-position-right.uagb-tm-stacked-tablet.uagb-tm-reverse-order-tablet .uagb-tm__content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-tm__image-aligned-top.uagb-tm-stacked-tablet .uagb-tm__image-content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-item-align:center;align-self:center}}@media (max-width: 768px){.uagb-tm__image-position-bottom.uagb-tm-stacked-mobile .uagb-tm__image-content,.uagb-tm__image-position-bottom.uagb-tm-stacked-mobile .uagb-testimonial-details{display:block;vertical-align:middle}.uagb-tm__image-position-left.uagb-tm-stacked-mobile .uagb-tm__content,.uagb-tm__image-position-right.uagb-tm-stacked-mobile .uagb-tm__content{display:block;-js-display:block;display:block}.uagb-tm__image-position-right.uagb-tm-stacked-mobile.uagb-tm-reverse-order-mobile .uagb-tm__content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-tm__image-aligned-top.uagb-tm-stacked-mobile .uagb-tm__image-content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-item-align:center;align-self:center}}.uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{right:-45px}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{left:-45px;right:auto}.uagb-tm__arrow-inside.uagb-slick-carousel .slick-prev{left:25px;z-index:1}[dir="rtl"] .uagb-tm__arrow-inside.uagb-slick-carousel .slick-prev{left:auto;right:25px}.uagb-tm__arrow-inside.uagb-slick-carousel .slick-next{right:25px}[dir="rtl"] .uagb-tm__arrow-inside.uagb-slick-carousel .slick-next{left:25px;right:auto}@media (max-width: 976px){.uagb-tm__arrow-outside.uagb-slick-carousel .slick-prev{left:15px;z-index:1}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-prev{left:auto;right:15px}.uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{right:15px}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{left:15px;right:auto}}
7
- .uagb-team__outer-wrap .uagb-team__prefix{font-size:15px;font-style:italic;color:#888}.uagb-team__outer-wrap .uagb-team__image-wrap img{display:inline;height:auto !important;max-width:100%;width:inherit;-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:inherit}.uagb-team__outer-wrap .uagb-team__image-wrap.uagb-team__image-crop-circle img{border-radius:100%}.uagb-team__outer-wrap .uagb-team__image-wrap.uagb-team__image-crop-square img{border-radius:0}.uagb-team__outer-wrap .uagb-team__social-icon-wrap ul{list-style:none;display:-ms-flexbox;display:flex}.uagb-team__outer-wrap .uagb-team__social-icon a span,.uagb-team__outer-wrap .uagb-team__social-icon a span:before{color:inherit;font-size:inherit;height:inherit;width:inherit}.uagb-team__outer-wrap .uagb-team__social-icon a{font-size:20px;width:20px;height:20px;color:#333;display:block}.uagb-team__outer-wrap .uagb-team__social-icon{margin-right:20px;margin-left:0}.uagb-team__outer-wrap .uagb-team__social-list{margin:0;padding:0}.uagb-team__image-position-above.uagb-team__align-center{text-align:center}.uagb-team__image-position-above.uagb-team__align-left{text-align:left}.uagb-team__image-position-above.uagb-team__align-right{text-align:right}.uagb-team__image-position-left .uagb-team__wrap,.uagb-team__image-position-right .uagb-team__wrap{-js-display:flex;display:-ms-flexbox;display:flex}.uagb-team__image-position-left .uagb-team__content{text-align:left}.uagb-team__image-position-right .uagb-team__content{text-align:right}.uagb-team__image-position-left .uagb-team__social-icon-wrap ul{-ms-flex-pack:start;justify-content:flex-start;margin:0;padding:0}.uagb-team__image-position-right .uagb-team__social-icon-wrap ul{-ms-flex-pack:end;justify-content:flex-end;margin:0;padding:0}.uagb-team__image-position-left li{margin-right:5px}.uagb-team__image-position-right li{margin-left:5px}.uagb-team__image-position-above .uagb-team__social-icon-wrap{display:inline-block}.uagb-team__image-position-above.uagb-team__align-center .uagb-team__content{text-align:center}.uagb-team__image-position-above.uagb-team__align-left .uagb-team__content{text-align:left}.uagb-team__image-position-above.uagb-team__align-right .uagb-team__content{text-align:right}@media only screen and (max-width: 976px){.uagb-team__stack-tablet,.uagb-team__stack-tablet .uagb-team__content{text-align:center}.uagb-team__stack-tablet .uagb-team__wrap{display:inline-block}.uagb-team__stack-tablet .uagb-team__image-wrap{margin-left:auto !important;margin-right:auto !important}.uagb-team__stack-tablet .uagb-team__social-icon-wrap ul{-ms-flex-pack:center;justify-content:center}}@media screen and (max-width: 767px){.uagb-team__stack-mobile,.uagb-team__stack-mobile .uagb-team__content{text-align:center}.uagb-team__stack-mobile .uagb-team__wrap{display:inline-block}.uagb-team__stack-mobile .uagb-team__image-wrap{margin-left:auto !important;margin-right:auto !important}.uagb-team__stack-mobile .uagb-team__social-icon-wrap ul{-ms-flex-pack:center;justify-content:center}}
8
- .uagb-social-share__outer-wrap .uagb-social-share__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.uagb-social-share__outer-wrap a.uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none}.uagb-social-share__outer-wrap .uagb-ss__wrapper{padding:0;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex;text-align:center}.uagb-social-share__outer-wrap .uagb-ss__source-wrap{display:inline-block}.uagb-social-share__outer-wrap .uagb-ss__link{color:#3a3a3a;display:inline-table;line-height:0;cursor:pointer}.uagb-social-share__outer-wrap .uagb-ss__source-icon{font-size:40px;width:40px;height:40px}.uagb-social-share__outer-wrap .uagb-ss__source-image{width:40px}.uagb-social-share__outer-wrap .uagb-ss__wrapper:first-child{margin-left:0}.uagb-social-share__outer-wrap .uagb-ss__wrapper:last-child{margin-right:0}
9
- .uagb-google-map__wrap{display:-ms-flexbox;display:flex}.uagb-google-map__wrap .uagb-google-map__iframe{width:100%;-webkit-box-shadow:none;box-shadow:none;border:none;padding:0;margin:0}
10
- .uagb-icon-list__outer-wrap .uagb-icon-list__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:flex-start;align-items:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start}.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:focus,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:active,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:visited{text-decoration:none}.uagb-icon-list__outer-wrap a.uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper>p{display:none}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper{padding:0;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex;text-align:center}.uagb-icon-list__outer-wrap .uagb-icon-list__content-wrap,.uagb-icon-list__outer-wrap .uagb-icon-list__source-wrap{width:inherit;display:inline-block}.uagb-icon-list__outer-wrap .uagb-icon-list__source-wrap{display:inherit;-ms-flex-align:center;align-items:center}.uagb-icon-list__outer-wrap .uagb-icon-list__content-wrap{color:#3a3a3a;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon,.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon:before{font-size:40px;width:40px;height:40px}.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon svg{display:block}.uagb-icon-list__outer-wrap .uagb-icon-list__source-image{width:40px}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper:first-child{margin-left:0}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper:last-child{margin-right:0}.uagb-icon-list__outer-wrap .uagb-icon-list__wrap>p{display:none}.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper[href="javascript:void(0);"]{pointer-events:none;cursor:text}.uagb-icon-list__outer-wrap:not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap{margin-right:15px}.uagb-icon-list__outer-wrap.uagb-icon-list__icon-at-top .uagb-icon-list__source-wrap{-ms-flex-item-align:flex-start;align-self:flex-start;margin-top:5px}
11
- .uagb-rest_menu__wrap{position:relative;padding-left:5px;padding-right:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.uagb-rest_menu__wrap,.uagb-rest_menu__wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-rm__image img,.slick-slide .uagb-rm__image img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-rm__title,.uagb-rm__price{display:inline-block}.uagb-rm__desc{margin-bottom:15px;font-style:italic}.uagb-rm__content{overflow:hidden;text-align:left;word-break:break-word;padding:15px;border-radius:inherit;position:relative;padding:5px}.uagb-rm__image-position-left .uagb-rm__content,.uagb-rm__image-position-right .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-rm-details{display:table;width:100%}.uagb-rm__title-wrap,.uagb-rm__price-wrap{display:table-cell}.uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:85%}.uagb-rm__price-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:15%}.uagb-rm__title,.uagb-rm__price{display:block}.uagb-rm__align-center .uagb-rm-details,.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%}.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:center;align-self:center}.uagb-rm__image{overflow:hidden}.uagb-rm__title{margin-bottom:5px;font-size:20px}.uagb-rm__price{font-style:italic;text-align:right}.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm-details,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%;text-align:center}.uagb-rm__align-center .uagb-rm__price{text-align:center}.uagb-rm__align-right .uagb-rm-details{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-rm__align-right .uagb-rm__price{text-align:left}.uagb-rm__align-left .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm-details{display:-ms-flexbox;display:flex;-ms-flex-direction:unset;flex-direction:unset;text-align:left}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__image-content{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm-details{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;text-align:right}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__image-content{text-align:right}.uagb-rest_menu__outer-wrap{position:relative}.uagb-rm__overlay{height:100%;width:100%;top:0;left:0;position:absolute;background:transparent}.uagb-tm-parent{padding:30px}.uagb-rm__text-wrap{position:relative;display:block;width:100%}.uagb-rest_menu__wrap{position:relative}.uagb-rest_menu__outer-wrap:after{content:"";display:block;clear:both}.uagb-rest_menu__wrap.uagb-rm__desk-column-3{display:block;width:33%;float:left;width:calc(100% / 3);padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-2{display:block;width:49%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-1{display:block;width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__separator-parent{line-height:0em;margin-left:0;margin-right:0;margin-bottom:10px;-js-display:flex;display:-moz-flexbox;display:-ms-flexbox;display:flex}.uagb-rm__separator{width:100%;border-top-width:1px;border-top-color:#b2b4b5;border-top-style:inherit}.uagb-rm__image-position-left .uagb-rm__image{margin-right:10px}.uagb-rm__image-position-right .uagb-rm__image{margin-left:10px}@media (max-width: 976px){.uagb-rm__image-position-left.uagb-rm-stacked-tablet .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-tablet .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm-reverse-order-tablet .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:-moz-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-rest_menu__wrap.uagb-rm__tablet-column-3{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__tablet-column-2{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__tablet-column-1{width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:end;align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:start;align-self:flex-start}}@media (max-width: 767px){.uagb-rm__image-position-left.uagb-rm-stacked-mobile .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-mobile .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm-reverse-order-mobile .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:-moz-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-rest_menu__wrap.uagb-rm__mobile-column-3{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-2{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-1{width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:end;align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:start;align-self:flex-start}}
12
- .uagb-timeline__widget{position:relative;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.uagb-timeline__widget a{text-decoration:none;color:inherit}.uagb-timeline__heading a{font-size:inherit;color:inherit;margin-bottom:inherit}.uagb-timeline__image a{display:block;position:relative;max-width:100%}.uagb-timeline__image img{display:inline-block;-webkit-box-sizing:content-box;-mz-box-sizing:content-box;box-sizing:content-box}.uagb-timeline__author{text-transform:uppercase}.uagb-timeline__main{position:relative}.uagb-content{word-break:break-word}a.uagb-timeline__link{padding:5px 10px;display:inline-block}h1.uagb-timeline__heading,h2.uagb-timeline__heading,h3.uagb-timeline__heading,h4.uagb-timeline__heading,h5.uagb-timeline__heading,h6.uagb-timeline__heading{margin-bottom:0px}.uagb-timeline__inner-date-new p{margin-bottom:0}.uagb-timeline__date-inner .uagb-timeline__inner-date-new p{margin-bottom:0px}.uagb-timeline__line{background-color:#eeeeee}.uagb-timeline__line__inner{background-color:#5cb85c;width:100%}.uagb-timeline__main .uagb-timeline__icon-new{line-height:1em;display:inline-block;vertical-align:middle;font-style:normal}.uagb-timeline__center-block .uagb-timeline__date-hide{display:none}.uagb-timeline__field:not(:last-child){margin-bottom:20px}.uagb-timeline__center-block .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__right-block .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:inherit}.uagb-timeline__center-block .uagb-timeline__date-new{display:block}.uagb-timeline__right-block .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{top:0;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__right-block .uagb-timeline__marker,.uagb-timeline__right-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__right-block .uagb-timeline__day-new{margin-right:14px}.uagb-timeline__right-block .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__right-block .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__left-block .uagb-timeline__marker,.uagb-timeline__left-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__left-block .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__left-block .uagb-timeline__day-new{margin-left:14px}.uagb-timeline__left-block .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__left-block .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{top:0;width:10px;height:40px;position:absolute}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__marker{background-color:#eeeeee;border-radius:999px;position:relative;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.uagb-timeline__main .uagb-timeline__days .uagb-timeline__field-wrap:hover .uagb-timeline__marker{-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.uagb-timeline__center-block .uagb-timeline__marker{-ms-flex-order:1;order:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block .uagb-timeline__day-new,.uagb-timeline__center-block .uagb-timeline__date-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:100%;position:relative}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:2;order:2;padding-left:0;padding-right:12px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:2;order:2;padding-right:0;padding-left:12px}.uagb-timeline__events-inner-new{padding:40px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__right-block .uagb-timeline__date-new{margin-left:10px}.uagb-timeline__right-block .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow{right:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow{left:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__arrow-center .uagb-timeline__widget{-ms-flex-align:center;align-items:center}.uagb-timeline__arrow-bottom .uagb-timeline__widget{-ms-flex-align:end;align-items:flex-end}.uagb-timeline__arrow-center .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-center .uagb-timeline__right .uagb-timeline__arrow{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__arrow-bottom .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-bottom .uagb-timeline__right .uagb-timeline__arrow{top:100%;-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.uagb-timeline__day-right .uagb-timeline__events-inner{text-align:right}.uagb-timeline__day-left .uagb-timeline__events-inner{text-align:left}.uagb-timeline__arrow-top .uagb-timeline__date-new .uagb-timeline__date-new,.uagb-timeline__arrow-bottom .uagb-timeline__date-new .uagb-timeline__date-new{padding-top:8px;padding-bottom:8px}.uagb-timeline__events-inner-new,.uagb-timeline__arrow{-webkit-transition:background .2s ease-in-out;-o-transition:background .2s ease-in-out;transition:background .2s ease-in-out}.uagb-timeline__arrow:after{-webkit-transition:border-color .2s ease-in-out;-o-transition:border-color .2s ease-in-out;transition:border-color .2s ease-in-out}.uagb-timeline__date-new{-webkit-transition:color .2s ease-in-out;-o-transition:color .2s ease-in-out;transition:color .2s ease-in-out}.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__main .uagb-timeline__year{-js-display:flex;display:-ms-flexbox;display:flex;position:relative}.uagb-timeline__main .uagb-timeline__year span{display:inline-block;padding-bottom:6px}.uagb-timeline__day-left .uagb-timeline__arrow:after{content:'';left:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__day-left .uagb-timeline__arrow:after{right:0}.uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__icon{width:100px;height:100px;border-radius:50%;text-align:center;line-height:100px;vertical-align:middle;position:relative;z-index:1}.uagb-timeline__main .uagb-timeline__date .uagb-timeline__inner-date-new{white-space:nowrap;margin:0px}.uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-timeline__right-block .uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block .uagb-timeline__line{left:50%;right:auto}.uagb-timeline__main .in-view i.uagb-timeline__in-view-icon{-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-in-out;-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;-o-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out}.uagb-timeline__left-block .uagb-timeline__days{text-align:left}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block .uagb-timeline__days{text-align:center}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__days{text-align:right}.uagb-timeline__outer-wrap span.dashicons-admin-users.dashicons{display:inline;vertical-align:baseline;margin-right:4px}@media screen and (max-width: 1023px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}@media screen and (max-width: 767px){.uagb-timeline-responsive-none .uagb-timeline__events-inner-new{padding:15px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__day-left .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}.uagb-timeline__line__inner{background-color:#61ce70;width:100%}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.rtl .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.rtl .uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__day-right .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__day-left .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__line{width:3px}.uagb-timeline__main .uagb-timeline__icon-new{font-size:16px}.uagb-timeline__marker{min-height:3em;min-width:3em;line-height:3em}.uagb-timeline__arrow{height:3em}.uagb-timeline__left-block .uagb-timeline__line{left:calc(3em / 2)}.uagb-timeline__right-block .uagb-timeline__line{right:calc(3em / 2)}.rtl .uagb-timeline__left-block .uagb-timeline__line{right:calc(3em / 2);left:auto}.rtl .uagb-timeline__right-block .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline-desc-content p{font-size:inherit}.uagb-timeline__main p:empty{display:none}@media (max-width: 976px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}}@media (max-width: 767px){.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:calc(3em / 2);left:auto}}
13
- .uagb-cta__outer-wrap{position:relative}.uagb-cta__outer-wrap .uagb-cta__content{display:inline-block}.uagb-cta__outer-wrap a.uagb-cta__block-link span{font-size:inherit;vertical-align:middle;display:inline-block;float:left}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__link-wrapper{width:30%}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__content{width:70%}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:right}.uagb-cta__outer-wrap .uagb-cta__link-wrapper.uagb-cta__block-link-style:empty{display:none}.uagb-cta__outer-wrap a.uagb-cta__block-link,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link,.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link-wrap{text-decoration:none}.uagb-cta__outer-wrap a.uagb-cta__block-link:hover,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link:hover,.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap:hover,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link-wrap:hover .entry .entry-content a.uagb-cta__block-link:hover{color:inherit}.uagb-cta__outer-wrap .uagb-cta__content-right{text-align:right;-ms-flex-pack:end;justify-content:flex-end}.uagb-cta__outer-wrap .uagb-cta__left-right-wrap{width:100%;word-break:break-word}.uagb-cta__outer-wrap .uagb-cta__icon-position-below-title .uagb-cta__left-right-wrap{display:block;min-width:100%;width:100%}.uagb-cta__outer-wrap .uagb-cta__icon-position-left .uagb-cta__left-right-wrap,.uagb-cta__outer-wrap .uagb-cta__icon-position-right .uagb-cta__left-right-wrap{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-cta__outer-wrap .uagb-cta__icon-position-right .uagb-cta__left-right-wrap{-ms-flex-pack:end;justify-content:flex-end}.uagb-cta__outer-wrap .uagb-cta__block-link-icon-after{margin-left:5px;margin-right:0}.uagb-cta__outer-wrap .uagb-cta__block-link-icon-before{margin-left:0;margin-right:5px}.uagb-cta__outer-wrap .uagb-cta__block-link-icon,.uagb-cta__outer-wrap .uagb-cta__block svg{-webkit-transition:all 200ms linear;-o-transition:all 200ms linear;transition:all 200ms linear}.uagb-cta__outer-wrap .uagb-cta__block{position:relative}.uagb-cta__outer-wrap .uagb-cta-typeof-button{display:inline-block;line-height:1;background-color:transparent;color:#333;text-align:center}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-link-wrapper,.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link,.uagb-cta__outer-wrap .uagb-cta__content-right.uagb-cta__button-valign-middle .uagb-cta__left-right-wrap{display:-ms-flexbox;-js-display:flex;display:flex;-ms-flex-align:center;align-items:center}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-link-wrapper,.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link{-ms-flex-pack:center;justify-content:center}.uagb-cta__outer-wrap .uagb-cta__link-wrapper a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-cta__outer-wrap .uagb-cta__title-wrap .uagb-cta__title{padding:0;margin:0;display:block}.uagb-cta__outer-wrap .uagb-cta__block,.uagb-cta__outer-wrap .uagb-cta__content{z-index:1}.uagb-cta__outer-wrap .uagb-cta__left-right-wrap{z-index:1}.uagb-cta__outer-wrap .uagb-cta__block-link{cursor:pointer}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link{display:inline-block;float:right;padding:10px 14px}.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap{color:inherit}.uagb-cta__outer-wrap .uagb-cta__content p:empty{display:none}.uagb-cta__outer-wrap .uagb-cta__button-type-none .uagb-cta__content{width:100%}.uagb-cta__outer-wrap .uagb-cta-with-svg{height:14px;width:14px;line-height:14px;display:inline-block;vertical-align:middle}.uagb-cta__outer-wrap .uagb-cta__block svg{display:block;height:inherit;width:inherit}.uagb-cta__outer-wrap .uagb-cta__align-button-after{margin-left:5px}.uagb-cta__outer-wrap .uagb-cta__align-button-before{margin-right:5px}.uagb-cta__outer-wrap .uagb-cta__block-link i{font-style:normal}.uagb-cta__outer-wrap a.uagb-cta__link-to-all{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}@media only screen and (max-width: 976px){.uagb-cta__content-stacked-tablet .uagb-cta__left-right-wrap{-ms-flex-direction:column;flex-direction:column;text-align:center}.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:none;margin:0 auto}.uagb-cta__content-stacked-tablet .uagb-cta__left-right-wrap .uagb-cta__content{margin-left:0;margin-right:0}.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content,.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper{width:100% !important}}@media screen and (max-width: 767px){.uagb-cta__content-stacked-mobile .uagb-cta__left-right-wrap{-ms-flex-direction:column;flex-direction:column;text-align:center}.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:none;margin:0 auto}.uagb-cta__content-stacked-mobile .uagb-cta__left-right-wrap .uagb-cta__content{margin-left:0;margin-right:0}.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content,.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper{width:100% !important}}
14
- .uagb-column__wrap{position:relative;overflow:hidden}.uagb-column__wrap .uagb-column__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2;-ms-flex:1;flex:1}.uagb-column__wrap.uagb-column__align-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__wrap.uagb-column__align-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}.uagb-column__wrap .uagb-column__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-column__wrap .uagb-column__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-column__wrap .uagb-column__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.wp-block-uagb-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;padding-left:0;padding-right:0;margin-left:-14px;margin-right:-14px;min-width:0;word-break:break-word;overflow-wrap:break-word;-ms-flex-preferred-size:100%;flex-basis:100%}@media (max-width: 976px){.uagb-column__align-tablet-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__align-tablet-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}}@media (max-width: 767px){.uagb-column__align-mobile-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__align-mobile-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}}@media (max-width: 449px){.uagb-columns__wrap.uagb-columns__background-image{background-attachment:scroll !important}}
15
- .uagb-columns__wrap{position:relative}.uagb-columns__wrap .uagb-columns__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2}.uagb-columns__wrap .uagb-columns__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-columns__wrap .uagb-columns__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-columns__wrap .uagb-columns__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.uagb-columns__wrap .uagb-column__wrap{display:-ms-flexbox;display:flex}.uagb-columns__wrap .uagb-columns__shape{overflow:hidden;position:absolute;left:0;width:100%;line-height:0;direction:ltr;z-index:1}.uagb-columns__wrap .uagb-columns__shape-top{top:-3px}.uagb-columns__wrap .uagb-columns__shape-bottom{bottom:-3px}.uagb-columns__wrap .uagb-columns__shape[data-negative="false"].uagb-columns__shape-bottom{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape[data-negative="true"].uagb-columns__shape-top{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape.uagb-columns__shape-flip svg{-webkit-transform:translateX(-50%) rotateY(180deg);transform:translateX(-50%) rotateY(180deg)}.uagb-columns__wrap .uagb-columns__shape svg{display:block;width:calc(100% + 1.3px);position:relative;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-columns__wrap .uagb-columns__shape .uagb-columns__shape-fill{fill:#333;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}.uagb-columns__valign-middle .uagb-column__wrap{-ms-flex-align:center;align-items:center}.uagb-columns__valign-top .uagb-column__wrap{-ms-flex-align:flex-start;align-items:flex-start}.uagb-columns__valign-bottom .uagb-column__wrap{-ms-flex-align:flex-end;align-items:flex-end}.uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.uagb-columns__columns-1>.uagb-column__wrap{width:100%}.uagb-columns__columns-2>.uagb-column__wrap{width:50%}.uagb-columns__columns-3>.uagb-column__wrap{width:33.33%}.uagb-columns__columns-4>.uagb-column__wrap{width:25%}.uagb-columns__columns-5>.uagb-column__wrap{width:20%}.uagb-columns__columns-6>.uagb-column__wrap{width:16.66%}.uagb-columns__gap-nogap>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:0}.uagb-columns__gap-default>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:10px}.uagb-columns__gap-narrow>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:5px}.uagb-columns__gap-extended>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:15px}.uagb-columns__gap-wide>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:20px}.uagb-columns__gap-wider>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:30px}@media (max-width: 976px){.uagb-columns__stack-tablet .uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-tablet .uagb-columns__inner-wrap{display:block}.uagb-columns__reverse-tablet .uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 767px){.uagb-columns__stack-mobile .uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-mobile .uagb-columns__inner-wrap{display:block}.uagb-columns__reverse-mobile .uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 449px){.uagb-columns__wrap .uagb-column__wrap.uagb-column__background-image{background-attachment:scroll !important}}
16
- .wp-block-uagb-cf7-styler .wpcf7 *,.wp-block-uagb-cf7-styler .wpcf7 :after,.wp-block-uagb-cf7-styler .wpcf7 :before{-webkit-box-sizing:border-box;box-sizing:border-box}.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::before,.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::after{content:" "}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{content:'';display:inline-block;vertical-align:middle;margin-right:10px;text-align:center;height:15px;width:15px;border-style:solid;border-color:#eaeaea;border-width:1px 1px 1px 1px}.wp-block-uagb-cf7-styler span.wpcf7-list-item{display:inline-block;margin:0 1em 0 0}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]:checked+span:before{content:"\2714";line-height:1.2}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{-webkit-box-sizing:content-box;box-sizing:content-box}.wp-block-uagb-cf7-styler input[type=checkbox]:checked+span:before{font-size:calc(12px / 1.2)}.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{border-radius:100%}.wp-block-uagb-cf7-styler .uagb-cf7-styler__field-style-box .wpcf7-radio input[type="radio"]:checked+span:before,.wp-block-uagb-cf7-styler .uagb-cf7-styler__field-style-underline .wpcf7-radio input[type="radio"]:checked+span:before{background-color:#545454;-webkit-box-shadow:inset 0px 0px 0px 4px #fafafa;box-shadow:inset 0px 0px 0px 4px #fafafa}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-justify input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-left input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-right input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-center input.wpcf7-form-control.wpcf7-submit{display:-ms-flexbox;-js-display:flex;display:flex;width:auto;line-height:1em;background:transparent;border-color:#333;border-width:1px;padding:10px 25px}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-right input.wpcf7-form-control.wpcf7-submit{margin-left:auto;margin-right:0}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-left input.wpcf7-form-control.wpcf7-submit{margin-right:auto;margin-left:0}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-center input.wpcf7-form-control.wpcf7-submit{margin-right:auto;margin-left:auto}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-justify input.wpcf7-form-control.wpcf7-submit{-ms-flex-pack:center;justify-content:center;width:100%}.wp-block-uagb-cf7-styler .wpcf7 input[type=checkbox],.wp-block-uagb-cf7-styler .wpcf7 input[type=radio]{display:none}.wp-block-uagb-cf7-styler .wpcf7 select{height:auto;padding:10px}.wp-block-uagb-cf7-styler select.wpcf7-form-control.wpcf7-select[multiple="multiple"]{padding:0}.wp-block-uagb-cf7-styler .wpcf7 select option{padding:10px}.wp-block-uagb-cf7-styler .uagb-cf7-styler__highlight-style-bottom_right span.wpcf7-not-valid-tip{display:inline-block;right:0;top:100%;padding:.1em .8em;border-radius:2px;color:#ffffff;background-color:rgba(255,0,0,0.6);padding:5px 10px;font-size:15px;float:right;margin-top:5px}.wp-block-uagb-cf7-styler .wpcf7 input[type="number"]{height:auto}@media (min-width: 769px){.wp-block-uagb-cf7-styler .uagb-cf7_styler-col{-js-display:flex;display:-ms-flexbox;display:flex}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col label,.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span{-ms-flex-positive:1;flex-grow:1}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col br{display:none}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span.uagb-cf7_styler-col-1{padding-left:0;padding-right:15px}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span.uagb-cf7_styler-col-3{padding-left:15px;padding-right:0}}
17
- .wp-block-uagb-blockquote{padding:0;margin:0 auto}.wp-block-uagb-blockquote .uagb-blockquote__content,.wp-block-uagb-blockquote cite.uagb-blockquote__author{font-style:normal;display:block}.wp-block-uagb-blockquote cite.uagb-blockquote__author,.wp-block-uagb-blockquote .uagb-blockquote__author{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation blockquote.uagb-blockquote{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;quotes:none;border-left:0 none;border-right:0 none;border-top:0 none;border-bottom:0 none;font-style:normal}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap{position:relative;display:inline-block;padding:0px;z-index:1;background:#333;padding:10px;border-radius:100%;margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon{height:25px;width:25px;display:inline-block;float:left}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg{height:inherit;width:inherit;display:inherit}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation.uagb-blockquote__style-style_2 .uagb-blockquote__icon-wrap{display:inline-block;float:left}.wp-block-uagb-blockquote blockquote.uagb-blockquote{margin:0;padding:0}.wp-block-uagb-blockquote .uagb-blockquote__wrap,.wp-block-uagb-blockquote .uagb-blockquote__wrap *{-webkit-box-sizing:border-box;box-sizing:border-box}.wp-block-uagb-blockquote .uagb-blockquote__style-style_2 .uagb-blockquote__icon-wrap{display:inline-block;float:left;text-align:left}.wp-block-uagb-blockquote .uagb-blockquote__separator-parent{display:-ms-flexbox;-js-display:flex;display:flex;-ms-flex-pack:start;justify-content:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote footer{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.wp-block-uagb-blockquote .uagb-blockquote a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.wp-block-uagb-blockquote .uagb-blockquote a.uagb-blockquote__tweet-button{display:-ms-flexbox;display:flex;-webkit-transition:0.2s;-o-transition:0.2s;transition:0.2s;-ms-flex-item-align:end;align-self:flex-end;line-height:1;position:relative;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0;color:#1DA1F2;background-color:transparent;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button svg{height:15px;width:15px;margin-right:5px;fill:#fff;vertical-align:middle;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button svg{font-style:normal}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon a.uagb-blockquote__tweet-button svg{margin-right:0}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon_text svg{margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon a.uagb-blockquote__tweet-button{padding:8px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote .uagb-blockquote__tweet-text a.uagb-blockquote__tweet-button{padding:10px 14px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button{padding:10px 0}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button{background-color:#1DA1F2;border-radius:100em;color:#fff}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{content:'';border:solid 0.5em transparent;border-right-color:#1DA1F2;position:absolute;left:-0.8em;top:50%;-webkit-transform:translateY(-50%) scale(1, 0.65);-ms-transform:translateY(-50%) scale(1, 0.65);transform:translateY(-50%) scale(1, 0.65);-webkit-transition:0.2s;-o-transition:0.2s;transition:0.2s}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:auto;right:-0.8em;-webkit-transform:translateY(-50%) scale(1, 0.65) rotate(180deg);-ms-transform:translateY(-50%) scale(1, 0.65) rotate(180deg);transform:translateY(-50%) scale(1, 0.65) rotate(180deg)}.wp-block-uagb-blockquote .uagb-blockquote__align-center.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet.uagb-blockquote__align-center .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__align-center .uagb-blockquote footer{display:block;text-align:center}.wp-block-uagb-blockquote .uagb-blockquote__align-center a.uagb-blockquote__tweet-button{display:block;text-align:center;margin:0 auto;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet.uagb-blockquote__align-right .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote footer{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wp-block-uagb-blockquote .uagb-blockquote__author-image{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__author-image img{width:50px;height:50px;border-radius:100%;margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-left .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{justify-content:flex-end;-webkit-box-pack:flex-end;-ms-flex-pack:flex-end;-webkit-justify-content:flex-end;-moz-box-pack:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{justify-content:flex-start;-webkit-box-pack:flex-start;-ms-flex-pack:flex-start;-webkit-justify-content:flex-start;-moz-box-pack:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote__author-wrap{justify-content:unset;-webkit-box-pack:unset;-ms-flex-pack:unset;-webkit-justify-content:unset;-moz-box-pack:unset}.wp-block-uagb-blockquote .uagb-blockquote__align-center .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-center.uagb-blockquote__with-tweet .uagb-blockquote__author-wrap{justify-content:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;-moz-box-pack:center}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .uagb-blockquote__author,.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .editor-rich-text{width:inherit}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{width:auto}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap .editor-rich-text{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{text-align:right}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img{margin-left:10px;margin-right:0}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{-ms-flex-direction:column;flex-direction:column}@media only screen and (max-width: 976px){.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left{-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left .uagb-blockquote__author-image img{margin-left:0;margin-right:0;margin-bottom:10px}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__with-tweet .uagb-blockquote footer{-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right.uagb-blockquote__with-tweet .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet a.uagb-blockquote__tweet-button{margin-top:10px}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__stack-img-tablet .uagb-blockquote__author-image{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-left.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}}@media screen and (max-width: 767px){.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left{-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left .uagb-blockquote__author-image img{margin-left:0;margin-right:0;margin-bottom:10px}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__with-tweet .uagb-blockquote footer{-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right.uagb-blockquote__with-tweet .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile a.uagb-blockquote__tweet-button{margin-top:10px}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__stack-img-mobile .uagb-blockquote__author-image{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-mobile .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-left.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}}
18
- .wp-block-uagb-marketing-button .uagb-marketing-btn__wrap>p,.wp-block-uagb-marketing-button p:empty{display:none}.wp-block-uagb-marketing-button h6.uagb-marketing-btn__title,.wp-block-uagb-marketing-button p.uagb-marketing-btn__prefix{margin:0}.wp-block-uagb-marketing-button .uagb-marketing-btn__wrap{display:-ms-flexbox;display:flex}.wp-block-uagb-marketing-button .uagb-marketing-btn__link{z-index:1}.wp-block-uagb-marketing-button .uagb-marketing-btn__link{display:inline-block;position:relative;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.wp-block-uagb-marketing-button .uagb-marketing-btn__icon-wrap{width:20px;height:20px;display:-ms-flexbox;display:flex;z-index:1}.wp-block-uagb-marketing-button .uagb-marketing-btn__icon-wrap svg{width:inherit;height:inherit}.wp-block-uagb-marketing-button .uagb-marketing-btn__title-wrap{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-center .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-center .uagb-marketing-btn__title-wrap{-ms-flex-pack:center;justify-content:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-left .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-left .uagb-marketing-btn__title-wrap{-ms-flex-pack:start;justify-content:flex-start}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-right .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__title-wrap{-ms-flex-pack:end;justify-content:flex-end}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-full .uagb-marketing-btn__link{width:100%}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-center .uagb-marketing-btn__prefix-wrap{text-align:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-left .uagb-marketing-btn__prefix-wrap{text-align:left}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__prefix-wrap{text-align:right}.wp-block-uagb-marketing-button.uagb-marketing-btn__icon-after .uagb-marketing-btn__title-wrap{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.entry-content .wp-block-uagb-marketing-button .uagb-marketing-btn__link{text-decoration:none}
1
+ .wp-block-uagb-advanced-heading{padding:0;margin:0 auto}.wp-block-uagb-advanced-heading .uagb-heading-text{margin:0;text-align:center}.wp-block-uagb-advanced-heading .uagb-separator-wrap{font-size:0;text-align:center}.wp-block-uagb-advanced-heading .uagb-separator{border-top-style:solid;display:inline-block;border-top-width:2px;width:5%;margin:0px 0px 10px 0px}.wp-block-uagb-advanced-heading .uagb-desc-text{margin:0;text-align:center}
2
+ .uagb-post-grid{margin:0;position:relative}.uagb-post-grid .is-grid article{float:left;display:inline-block}.uagb-post-grid .uagb-post__items{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.uagb-post-grid .is-grid.uagb-post__equal-height .uagb-post__inner-wrap{height:100%}.uagb-post-grid .is-masonry .uagb-post__inner-wrap{height:100%}.uagb-post-grid .uagb-post__inner-wrap>p{display:none}.uagb-post-grid .uagb-post__author span,.uagb-post-grid .uagb-post__comment span,.uagb-post-grid .uagb-post__date span{font-size:inherit;line-height:inherit;width:inherit;height:inherit;margin-right:4px}.uagb-post-grid .uagb-post__columns-8 article{width:12.5%}.uagb-post-grid .uagb-post__columns-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-5 article{width:20%}.uagb-post-grid .uagb-post__columns-4 article{width:25%}.uagb-post-grid .uagb-post__columns-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-2 article{width:50%}.uagb-post-grid .uagb-post__columns-1 article{width:100%}@media only screen and (max-width: 600px){.uagb-post-grid div[class*="columns"].is-grid{grid-template-columns:1fr}}.uagb-post-grid .uagb-post__image img{display:block;width:100%}.uagb-post-grid .uagb-post__text{text-align:left}.uagb-post-grid .uagb-post__title{margin-top:0;margin-bottom:15px;word-break:break-word}.uagb-post-grid .uagb-post__title a{color:inherit;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:.3s ease;-o-transition:.3s ease;transition:.3s ease;text-decoration:none}.uagb-post-grid .uagb-post__title a:hover{text-decoration:none}.uagb-post-grid .uagb-post__title a:focus{text-decoration:none}.uagb-post-grid .uagb-post__title a:active{text-decoration:none}.uagb-post-grid .uagb-post-grid-byline{text-transform:uppercase;font-size:11px;letter-spacing:1px;margin-bottom:15px}.uagb-post-grid .uagb-post__text .uagb-post-grid-byline>*{margin-right:10px}.uagb-post-grid .uagb-post-grid-byline a,.uagb-post-grid .uagb-post-grid-byline a:focus,.uagb-post-grid .uagb-post-grid-byline a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__title a,.uagb-post-grid .uagb-post__title a:focus,.uagb-post-grid .uagb-post__title a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__author,.uagb-post-grid .uagb-post__date{display:inline-block;word-break:break-all}.uagb-post-grid .uagb-post__author:not(:last-child):after,.uagb-post-grid .uagb-post__date:not(:last-child):after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.uagb-post-grid .uagb-post__comment{display:inline-block}.uagb-post-grid .uagb-post__author a{-webkit-box-shadow:none;box-shadow:none}.uagb-post-grid .uagb-post__author a:hover{color:inherit;-webkit-box-shadow:0 -1px 0 inset;box-shadow:0 -1px 0 inset}.uagb-post-grid .uagb-post__excerpt{margin-bottom:25px;word-break:break-word}.uagb-post-grid .uagb-post__text p{margin:0 0 15px 0}.uagb-post-grid .uagb-post__text p:last-of-type{margin-bottom:0}.uagb-post-grid .uagb-post__cta{border:none;display:inline-block}.uagb-post-grid .uagb-post__link{display:inline-block;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:.3s ease;-o-transition:.3s ease;transition:.3s ease;font-weight:bold;color:inherit;text-decoration:none;padding:5px 10px}.uagb-post-grid .uagb-post__excerpt div+p{margin-top:15px}.uagb-post-grid .uagb-post__excerpt p{color:inherit}.uagb-post-grid .uagb-post__link-complete-box{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}.uagb-post__image-position-background .uagb-post__text{opacity:1;position:relative;z-index:10;overflow:hidden;width:100%}.uagb-post__image-position-background .uagb-post__inner-wrap{position:relative;width:100%}.uagb-post__image-position-background .uagb-post__image img{position:absolute;width:auto;height:auto;min-width:100%;max-width:none;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);min-height:100%}.uagb-post__image-position-background .uagb-post__image{background-size:cover;background-repeat:no-repeat;background-position:center;overflow:hidden;text-align:center;position:relative}.uagb-post__image-position-background .uagb-post__image{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2}.uagb-post__image-position-background .uagb-post__image::before{content:'';position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:rgba(255,255,255,0.5)}.uagb-post-grid[data-equal-height="yes"] .uagb-post__inner-wrap{display:inline-block;height:100%}.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:-45px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:-45px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:-45px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:-45px;right:auto}.uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:25px;z-index:1}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:auto;right:25px}.uagb-post__arrow-inside.uagb-post-grid .slick-next{right:25px}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-next{left:25px;right:auto}.uagb-post-grid .is-grid article,.uagb-post-grid .is-masonry article,.uagb-post-grid .is-carousel article{-webkit-box-sizing:border-box;box-sizing:border-box}@media (max-width: 976px){.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:15px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:15px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:15px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:15px;right:auto}.uagb-post-grid .uagb-post__columns-tablet-1 article{width:100%}.uagb-post-grid .uagb-post__columns-tablet-2 article{width:50%}.uagb-post-grid .uagb-post__columns-tablet-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-tablet-4 article{width:25%}.uagb-post-grid .uagb-post__columns-tablet-5 article{width:20%}.uagb-post-grid .uagb-post__columns-tablet-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}@media (max-width: 767px){.uagb-post-grid .uagb-post__columns-mobile-1 article{width:100%}.uagb-post-grid .uagb-post__columns-mobile-2 article{width:50%}.uagb-post-grid .uagb-post__columns-mobile-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-mobile-4 article{width:25%}.uagb-post-grid .uagb-post__columns-mobile-5 article{width:20%}.uagb-post-grid .uagb-post__columns-mobile-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}.entry .entry-content .uagb-post-grid a{text-decoration:none}
3
+ .uagb-section__wrap{position:relative}.uagb-section__wrap .uagb-section__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2}.uagb-section__wrap .uagb-section__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-section__wrap .uagb-section__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-section__wrap .uagb-section__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}@media only screen and (max-width: 449px){.uagb-section__wrap.uagb-section__background-image{background-attachment:scroll !important}}
4
+ .uagb-buttons__outer-wrap .uagb-buttons__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.uagb-buttons__outer-wrap .uagb-button__active,.uagb-buttons__outer-wrap .uagb-button__active:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8)}.uagb-buttons__outer-wrap a.uagb-button__link:focus,.uagb-buttons__outer-wrap .uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-buttons__outer-wrap .uagb-button__wrapper{padding:0;border:1px solid #333;border-radius:2px;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex}.uagb-buttons__outer-wrap .uagb-button__wrapper:first-child{margin-left:0}.uagb-buttons__outer-wrap .uagb-button__wrapper:last-child{margin-right:0}.uagb-buttons__outer-wrap .uagb-button__wrapper a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-button__link{padding:10px 14px;width:100%;color:#333;text-decoration:none;font-family:inherit;line-height:inherit;font-weight:inherit}.uagb-buttons__outer-wrap .uagb-button__wrapper a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper:hover a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper:hover .uagb-button__link{text-decoration:none}
5
+ .uagb-ifb-icon-wrap,.uagb-ifb-icon-wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-ifb-icon-wrap .uagb-ifb-icon,.uagb-ifb-content{display:inline-block}.uagb-ifb-icon svg{width:inherit;height:inherit;vertical-align:middle}.infobox-icon-above-title .uagb-ifb-left-right-wrap{text-align:center}a.uagb-infobox-cta-link span{font-size:inherit}.uagb-ifb-cta.uagb-infobox-cta-link-style:empty{display:none}a.uagb-infobox-cta-link,.entry .entry-content a.uagb-infobox-cta-link,a.uagb-infobox-link-wrap,.entry .entry-content a.uagb-infobox-link-wrap{text-decoration:none}a.uagb-infobox-cta-link:hover,.entry .entry-content a.uagb-infobox-cta-link:hover,a.uagb-infobox-link-wrap:hover,.entry .entry-content a.uagb-infobox-link-wrap:hover .entry .entry-content a.uagb-infobox-cta-link:hover{color:inherit}.uagb-infobox-icon-left-title.uagb-infobox-image-valign-middle .uagb-ifb-title-wrap,.uagb-infobox-icon-right-title.uagb-infobox-image-valign-middle .uagb-ifb-title-wrap,.uagb-infobox-image-valign-middle .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-image-valign-middle .uagb-ifb-content,.uagb-infobox-icon-right.uagb-infobox-image-valign-middle .uagb-ifb-content{-ms-flex-item-align:center;align-self:center}.uagb-infobox-left{text-align:left;-ms-flex-pack:start;justify-content:flex-start}.uagb-infobox-center{text-align:center;-ms-flex-pack:center;justify-content:center}.uagb-infobox-right{text-align:right;-ms-flex-pack:end;justify-content:flex-end}.uagb-ifb-left-right-wrap{width:100%;word-break:break-word}.uagb-infobox-icon-above-title .uagb-ifb-left-right-wrap,.uagb-infobox-icon-below-title .uagb-ifb-left-right-wrap{display:block;min-width:100%;width:100%}.uagb-infobox-icon-left-title .uagb-ifb-icon-wrap,.uagb-infobox-icon-left .uagb-ifb-icon-wrap{margin-right:10px}.uagb-infobox-icon-right-title .uagb-ifb-icon-wrap,.uagb-infobox-icon-right .uagb-ifb-icon-wrap{margin-left:10px}.uagb-infobox-icon-left .uagb-ifb-left-right-wrap,.uagb-infobox-icon-right .uagb-ifb-left-right-wrap,.uagb-infobox-icon-left-title .uagb-ifb-left-title-image,.uagb-infobox-icon-right-title .uagb-ifb-right-title-image{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-infobox-icon-right .uagb-ifb-left-right-wrap,.uagb-infobox-icon-right-title .uagb-ifb-right-title-image{-ms-flex-pack:end;justify-content:flex-end}.uagb-ifb-icon-wrap .uagb-ifb-icon span{font-style:initial;height:auto;width:auto}.uagb-ifb-imgicon-wrap .uagb-ifb-image-content{display:inline-block;line-height:0;position:relative;max-width:100%}.uagb-ifb-imgicon-wrap .uagb-ifb-image-content img{display:inline;height:auto !important;max-width:100%;width:auto;-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:inherit}.uagb-ifb-imgicon-wrap .uagb-image-crop-circle img{border-radius:100%}.uagb-ifb-imgicon-wrap .uagb-image-crop-square img{border-radius:0}.uagb-infobox-module-link{position:absolute;width:100%;height:100%;left:0;top:0;bottom:0;right:0;z-index:4}.uagb-edit-mode .uagb-infobox-module-link{z-index:2}.uagb-infobox-link-icon-after{margin-left:5px;margin-right:0}.uagb-infobox-link-icon-before{margin-left:0;margin-right:5px}.uagb-infobox-link-icon{-webkit-transition:all 200ms linear;-o-transition:all 200ms linear;transition:all 200ms linear}.uagb-infobox{position:relative}.uagb-ifb-separator{width:30%;border-top-width:2px;border-top-color:#333;border-top-style:solid;display:inline-block;margin:0}.uagb-ifb-separator-parent{line-height:0em;margin-left:0;margin-right:0;margin-bottom:10px}.uagb-ifb-cta-button{display:inline-block;line-height:1;background-color:#818a91;color:#fff;text-align:center}.uagb-ifb-cta a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-ifb-title-wrap .uagb-ifb-title,.uagb-ifb-title-wrap .uagb-ifb-title-prefix{padding:0;margin:0;display:block}.uagb-infobox__content-wrap.uagb-infobox{position:relative}.uagb-ifb-icon span{font-size:40px;height:40px;color:#333;width:40px}.uagb-ifb-icon svg{fill:#333}.uagb-ifb-content{width:100%}.uagb-infobox__content-wrap.uagb-infobox,.uagb-ifb-content,.uagb-ifb-title-wrap,.uagb-ifb-title-prefix *,svg.dashicon.dashicons-upload{z-index:1}.uagb-ifb-left-right-wrap,button.components-button{z-index:1}.uagb-infobox-cta-link{cursor:pointer}a.uagb-infobox-link-wrap{color:inherit}.uagb-ifb-content p:empty{display:none}.uagb-infobox .uagb-ifb-icon,.uagb-infobox .uagb-ifb-image-content img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-ifb-align-icon-after{margin-left:5px}.uagb-ifb-align-icon-before{margin-right:5px}span.uagb-ifb-button-icon.uagb-ifb-align-icon-after{float:right}.uagb-ifb-button-icon{height:15px;width:15px;font-size:15px;vertical-align:middle}.uagb-ifb-text-icon{height:15px;width:15px;font-size:15px;line-height:15px;vertical-align:middle;display:inline-block}.uagb-ifb-button-icon svg,.uagb-ifb-text-icon svg{height:inherit;width:inherit;display:inline-block}.block-editor-page #wpwrap .uagb-infobox-cta-link svg,.uagb-infobox-cta-link svg{font-style:normal}@media only screen and (max-width: 976px){.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{padding:0;margin-bottom:20px}.uagb-infobox-stacked-tablet.uagb-reverse-order-tablet .uagb-ifb-left-right-wrap{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-content,.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{display:block;width:100%;text-align:center}.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{margin-left:0px;margin-right:0px}.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap{display:inline-block}.uagb-infobox-icon-left-title.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap{margin-right:0px}.uagb-infobox-icon-right-title.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-right.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap{margin-left:0px}.uagb-infobox-icon-left-title .uagb-ifb-separator-parent{margin:10px 0}}@media screen and (max-width: 767px){.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{padding:0;margin-bottom:20px}.uagb-infobox-stacked-mobile.uagb-reverse-order-mobile .uagb-ifb-left-right-wrap{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-content,.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{display:block;width:100%;text-align:center}.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{margin-left:0px;margin-right:0px}.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap{display:inline-block}.uagb-infobox-icon-left-title.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap{margin-right:0px}.uagb-infobox-icon-right-title.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-right.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap{margin-left:0px}.uagb-infobox-icon-left-title .uagb-ifb-separator-parent{margin:10px 0}}
6
+ .uagb-testimonial__wrap{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}.uagb-testimonial__wrap,.uagb-testimonial__wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-icon-wrap .uagb-icon{display:inline-block}.uagb-tm__image{position:relative}.uagb-tm__imgicon-style-circle .uagb-tm__image img{border-radius:100%;-webkit-border-radius:100%}.uagb-tm__imgicon-style-square .uagb-tm__image img{border-radius:0%;-webkit-border-radius:0%}.uagb-tm__image img,.slick-slide .uagb-tm__image img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-tm__author-name,.uagb-tm__company{display:inline-block}.uagb-tm__content{overflow:hidden;text-align:center;word-break:break-word;padding:15px;border-radius:inherit;position:relative}.uagb-tm__image-position-left .uagb-tm__content,.uagb-tm__image-position-right .uagb-tm__content{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-tm__meta-inner{display:inline-block}.uagb-tm__image-position-bottom .uagb-tm__image-content,.uagb-tm__image-position-bottom .uagb-testimonial-details{display:table-cell;vertical-align:middle}.uagb-tm__meta{width:100%;line-height:1}.uagb-tm__image-position-bottom .uagb-tm__image-content{padding-right:10px}.uagb-tm__author-name,.uagb-tm__company{display:block}.uagb-tm__image-aligned-middle .uagb-tm__image-content{-ms-flex-item-align:center;align-self:center}.uagb-tm__desc{margin-bottom:15px}.uagb-tm__author-name{margin-bottom:5px;font-size:30px;line-height:1em}.uagb-tm__company{font-size:15px;font-style:italic;line-height:1em;color:#888888}.is-carousel .uagb-testomonial__outer-wrap{padding-left:10px;padding-right:10px}.uagb-tm__overlay{height:100%;width:100%;top:0;left:0;position:absolute;background:transparent}.uagb-tm__text-wrap{position:relative}.uagb-tm__items{visibility:hidden}.uagb-tm__items.slick-initialized{visibility:visible}.uagb-tm__image-position-top .uagb-tm__image-content{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}@media (max-width: 976px){.uagb-tm__image-position-bottom.uagb-tm-stacked-tablet .uagb-tm__image-content,.uagb-tm__image-position-bottom.uagb-tm-stacked-tablet .uagb-testimonial-details{display:block;vertical-align:middle}.uagb-tm__image-position-left.uagb-tm-stacked-tablet .uagb-tm__content,.uagb-tm__image-position-right.uagb-tm-stacked-tablet .uagb-tm__content{display:block;-js-display:block;display:block}.uagb-tm__image-position-right.uagb-tm-stacked-tablet.uagb-tm-reverse-order-tablet .uagb-tm__content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-tm__image-aligned-top.uagb-tm-stacked-tablet .uagb-tm__image-content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-item-align:center;align-self:center}}@media (max-width: 768px){.uagb-tm__image-position-bottom.uagb-tm-stacked-mobile .uagb-tm__image-content,.uagb-tm__image-position-bottom.uagb-tm-stacked-mobile .uagb-testimonial-details{display:block;vertical-align:middle}.uagb-tm__image-position-left.uagb-tm-stacked-mobile .uagb-tm__content,.uagb-tm__image-position-right.uagb-tm-stacked-mobile .uagb-tm__content{display:block;-js-display:block;display:block}.uagb-tm__image-position-right.uagb-tm-stacked-mobile.uagb-tm-reverse-order-mobile .uagb-tm__content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-tm__image-aligned-top.uagb-tm-stacked-mobile .uagb-tm__image-content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-item-align:center;align-self:center}}.uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{right:-45px}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{left:-45px;right:auto}.uagb-tm__arrow-inside.uagb-slick-carousel .slick-prev{left:25px;z-index:1}[dir="rtl"] .uagb-tm__arrow-inside.uagb-slick-carousel .slick-prev{left:auto;right:25px}.uagb-tm__arrow-inside.uagb-slick-carousel .slick-next{right:25px}[dir="rtl"] .uagb-tm__arrow-inside.uagb-slick-carousel .slick-next{left:25px;right:auto}@media (max-width: 976px){.uagb-tm__arrow-outside.uagb-slick-carousel .slick-prev{left:15px;z-index:1}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-prev{left:auto;right:15px}.uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{right:15px}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{left:15px;right:auto}}
7
+ .uagb-team__outer-wrap .uagb-team__prefix{font-size:15px;font-style:italic;color:#888}.uagb-team__outer-wrap .uagb-team__image-wrap img{display:inline;height:auto !important;max-width:100%;width:inherit;-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:inherit}.uagb-team__outer-wrap .uagb-team__image-wrap.uagb-team__image-crop-circle img{border-radius:100%}.uagb-team__outer-wrap .uagb-team__image-wrap.uagb-team__image-crop-square img{border-radius:0}.uagb-team__outer-wrap .uagb-team__social-icon-wrap ul{list-style:none;display:-ms-flexbox;display:flex}.uagb-team__outer-wrap .uagb-team__social-icon a span,.uagb-team__outer-wrap .uagb-team__social-icon a span:before{color:inherit;font-size:inherit;height:inherit;width:inherit}.uagb-team__outer-wrap .uagb-team__social-icon a{font-size:20px;width:20px;height:20px;color:#333;display:block}.uagb-team__outer-wrap .uagb-team__social-icon{margin-right:20px;margin-left:0}.uagb-team__outer-wrap .uagb-team__social-list{margin:0;padding:0}.uagb-team__image-position-above.uagb-team__align-center{text-align:center}.uagb-team__image-position-above.uagb-team__align-left{text-align:left}.uagb-team__image-position-above.uagb-team__align-right{text-align:right}.uagb-team__image-position-left .uagb-team__wrap,.uagb-team__image-position-right .uagb-team__wrap{-js-display:flex;display:-ms-flexbox;display:flex}.uagb-team__image-position-left .uagb-team__content{text-align:left}.uagb-team__image-position-right .uagb-team__content{text-align:right}.uagb-team__image-position-left .uagb-team__social-icon-wrap ul{-ms-flex-pack:start;justify-content:flex-start;margin:0;padding:0}.uagb-team__image-position-right .uagb-team__social-icon-wrap ul{-ms-flex-pack:end;justify-content:flex-end;margin:0;padding:0}.uagb-team__image-position-left li{margin-right:5px}.uagb-team__image-position-right li{margin-left:5px}.uagb-team__image-position-above .uagb-team__social-icon-wrap{display:inline-block}.uagb-team__image-position-above.uagb-team__align-center .uagb-team__content{text-align:center}.uagb-team__image-position-above.uagb-team__align-left .uagb-team__content{text-align:left}.uagb-team__image-position-above.uagb-team__align-right .uagb-team__content{text-align:right}@media only screen and (max-width: 976px){.uagb-team__stack-tablet,.uagb-team__stack-tablet .uagb-team__content{text-align:center}.uagb-team__stack-tablet .uagb-team__wrap{display:inline-block}.uagb-team__stack-tablet .uagb-team__image-wrap{margin-left:auto !important;margin-right:auto !important}.uagb-team__stack-tablet .uagb-team__social-icon-wrap ul{-ms-flex-pack:center;justify-content:center}}@media screen and (max-width: 767px){.uagb-team__stack-mobile,.uagb-team__stack-mobile .uagb-team__content{text-align:center}.uagb-team__stack-mobile .uagb-team__wrap{display:inline-block}.uagb-team__stack-mobile .uagb-team__image-wrap{margin-left:auto !important;margin-right:auto !important}.uagb-team__stack-mobile .uagb-team__social-icon-wrap ul{-ms-flex-pack:center;justify-content:center}}
8
+ .uagb-social-share__outer-wrap .uagb-social-share__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.uagb-social-share__outer-wrap a.uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none}.uagb-social-share__outer-wrap .uagb-ss__wrapper{padding:0;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex;text-align:center}.uagb-social-share__outer-wrap .uagb-ss__source-wrap{display:inline-block}.uagb-social-share__outer-wrap .uagb-ss__link{color:#3a3a3a;display:inline-table;line-height:0;cursor:pointer}.uagb-social-share__outer-wrap .uagb-ss__source-icon{font-size:40px;width:40px;height:40px}.uagb-social-share__outer-wrap .uagb-ss__source-image{width:40px}.uagb-social-share__outer-wrap .uagb-ss__wrapper:first-child{margin-left:0}.uagb-social-share__outer-wrap .uagb-ss__wrapper:last-child{margin-right:0}
9
+ .uagb-google-map__wrap{display:-ms-flexbox;display:flex}.uagb-google-map__wrap .uagb-google-map__iframe{width:100%;-webkit-box-shadow:none;box-shadow:none;border:none;padding:0;margin:0}
10
+ .uagb-icon-list__outer-wrap .uagb-icon-list__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:flex-start;align-items:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start}.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:focus,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:active,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:visited{text-decoration:none}.uagb-icon-list__outer-wrap a.uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper>p{display:none}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper{padding:0;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex;text-align:center}.uagb-icon-list__outer-wrap .uagb-icon-list__content-wrap,.uagb-icon-list__outer-wrap .uagb-icon-list__source-wrap{width:inherit;display:inline-block}.uagb-icon-list__outer-wrap .uagb-icon-list__source-wrap{display:inherit;-ms-flex-align:center;align-items:center}.uagb-icon-list__outer-wrap .uagb-icon-list__content-wrap{color:#3a3a3a;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon,.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon:before{font-size:40px;width:40px;height:40px}.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon svg{display:block}.uagb-icon-list__outer-wrap .uagb-icon-list__source-image{width:40px}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper:first-child{margin-left:0}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper:last-child{margin-right:0}.uagb-icon-list__outer-wrap .uagb-icon-list__wrap>p{display:none}.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper[href="javascript:void(0);"]{pointer-events:none;cursor:text}.uagb-icon-list__outer-wrap:not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap{margin-right:15px}.uagb-icon-list__outer-wrap.uagb-icon-list__icon-at-top .uagb-icon-list__source-wrap{-ms-flex-item-align:flex-start;align-self:flex-start;margin-top:5px}
11
+ .uagb-rest_menu__wrap{position:relative;padding-left:5px;padding-right:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.uagb-rest_menu__wrap,.uagb-rest_menu__wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-rm__image img,.slick-slide .uagb-rm__image img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-rm__title,.uagb-rm__price{display:inline-block}.uagb-rm__desc{margin-bottom:15px;font-style:italic}.uagb-rm__content{overflow:hidden;text-align:left;word-break:break-word;padding:15px;border-radius:inherit;position:relative;padding:5px}.uagb-rm__image-position-left .uagb-rm__content,.uagb-rm__image-position-right .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-rm-details{display:table;width:100%}.uagb-rm__title-wrap,.uagb-rm__price-wrap{display:table-cell}.uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:85%}.uagb-rm__price-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:15%}.uagb-rm__title,.uagb-rm__price{display:block}.uagb-rm__align-center .uagb-rm-details,.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%}.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:center;align-self:center}.uagb-rm__image{overflow:hidden}.uagb-rm__title{margin-bottom:5px;font-size:20px}.uagb-rm__price{font-style:italic;text-align:right}.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm-details,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%;text-align:center}.uagb-rm__align-center .uagb-rm__price{text-align:center}.uagb-rm__align-right .uagb-rm-details{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-rm__align-right .uagb-rm__price{text-align:left}.uagb-rm__align-left .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm-details{display:-ms-flexbox;display:flex;-ms-flex-direction:unset;flex-direction:unset;text-align:left}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__image-content{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm-details{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;text-align:right}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__image-content{text-align:right}.uagb-rest_menu__outer-wrap{position:relative}.uagb-rm__overlay{height:100%;width:100%;top:0;left:0;position:absolute;background:transparent}.uagb-tm-parent{padding:30px}.uagb-rm__text-wrap{position:relative;display:block;width:100%}.uagb-rest_menu__wrap{position:relative}.uagb-rest_menu__outer-wrap:after{content:"";display:block;clear:both}.uagb-rest_menu__wrap.uagb-rm__desk-column-3{display:block;width:33%;float:left;width:calc(100% / 3);padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-2{display:block;width:49%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-1{display:block;width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__separator-parent{line-height:0em;margin-left:0;margin-right:0;margin-bottom:10px;-js-display:flex;display:-moz-flexbox;display:-ms-flexbox;display:flex}.uagb-rm__separator{width:100%;border-top-width:1px;border-top-color:#b2b4b5;border-top-style:inherit}.uagb-rm__image-position-left .uagb-rm__image{margin-right:10px}.uagb-rm__image-position-right .uagb-rm__image{margin-left:10px}@media (max-width: 976px){.uagb-rm__image-position-left.uagb-rm-stacked-tablet .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-tablet .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm-reverse-order-tablet .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:-moz-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-rest_menu__wrap.uagb-rm__tablet-column-3{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__tablet-column-2{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__tablet-column-1{width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:end;align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:start;align-self:flex-start}}@media (max-width: 767px){.uagb-rm__image-position-left.uagb-rm-stacked-mobile .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-mobile .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm-reverse-order-mobile .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:-moz-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-rest_menu__wrap.uagb-rm__mobile-column-3{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-2{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-1{width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:end;align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:start;align-self:flex-start}}
12
+ .uagb-timeline__widget{position:relative;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.uagb-timeline__widget a{text-decoration:none;color:inherit}.uagb-timeline__heading a{font-size:inherit;color:inherit;margin-bottom:inherit}.uagb-timeline__image a{display:block;position:relative;max-width:100%}.uagb-timeline__image img{display:inline-block;-webkit-box-sizing:content-box;-mz-box-sizing:content-box;box-sizing:content-box}.uagb-timeline__author{text-transform:uppercase}.uagb-timeline__main{position:relative}.uagb-content{word-break:break-word}a.uagb-timeline__link{padding:5px 10px;display:inline-block}h1.uagb-timeline__heading,h2.uagb-timeline__heading,h3.uagb-timeline__heading,h4.uagb-timeline__heading,h5.uagb-timeline__heading,h6.uagb-timeline__heading{margin-bottom:0px}.uagb-timeline__inner-date-new p{margin-bottom:0}.uagb-timeline__date-inner .uagb-timeline__inner-date-new p{margin-bottom:0px}.uagb-timeline__line{background-color:#eeeeee}.uagb-timeline__line__inner{background-color:#5cb85c;width:100%}.uagb-timeline__main .uagb-timeline__icon-new{line-height:1em;display:inline-block;vertical-align:middle;font-style:normal}.uagb-timeline__center-block .uagb-timeline__date-hide{display:none}.uagb-timeline__field:not(:last-child){margin-bottom:20px}.uagb-timeline__center-block .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__right-block .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:inherit}.uagb-timeline__center-block .uagb-timeline__date-new{display:block}.uagb-timeline__right-block .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{top:0;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__right-block .uagb-timeline__marker,.uagb-timeline__right-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__right-block .uagb-timeline__day-new{margin-right:14px}.uagb-timeline__right-block .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__right-block .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__left-block .uagb-timeline__marker,.uagb-timeline__left-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__left-block .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__left-block .uagb-timeline__day-new{margin-left:14px}.uagb-timeline__left-block .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__left-block .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{top:0;width:10px;height:40px;position:absolute}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__marker{background-color:#eeeeee;border-radius:999px;position:relative;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.uagb-timeline__main .uagb-timeline__days .uagb-timeline__field-wrap:hover .uagb-timeline__marker{-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.uagb-timeline__center-block .uagb-timeline__marker{-ms-flex-order:1;order:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block .uagb-timeline__day-new,.uagb-timeline__center-block .uagb-timeline__date-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:100%;position:relative}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:2;order:2;padding-left:0;padding-right:12px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:2;order:2;padding-right:0;padding-left:12px}.uagb-timeline__events-inner-new{padding:40px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__right-block .uagb-timeline__date-new{margin-left:10px}.uagb-timeline__right-block .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow{right:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow{left:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__arrow-center .uagb-timeline__widget{-ms-flex-align:center;align-items:center}.uagb-timeline__arrow-bottom .uagb-timeline__widget{-ms-flex-align:end;align-items:flex-end}.uagb-timeline__arrow-center .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-center .uagb-timeline__right .uagb-timeline__arrow{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__arrow-bottom .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-bottom .uagb-timeline__right .uagb-timeline__arrow{top:100%;-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.uagb-timeline__day-right .uagb-timeline__events-inner{text-align:right}.uagb-timeline__day-left .uagb-timeline__events-inner{text-align:left}.uagb-timeline__arrow-top .uagb-timeline__date-new .uagb-timeline__date-new,.uagb-timeline__arrow-bottom .uagb-timeline__date-new .uagb-timeline__date-new{padding-top:8px;padding-bottom:8px}.uagb-timeline__events-inner-new,.uagb-timeline__arrow{-webkit-transition:background .2s ease-in-out;-o-transition:background .2s ease-in-out;transition:background .2s ease-in-out}.uagb-timeline__arrow:after{-webkit-transition:border-color .2s ease-in-out;-o-transition:border-color .2s ease-in-out;transition:border-color .2s ease-in-out}.uagb-timeline__date-new{-webkit-transition:color .2s ease-in-out;-o-transition:color .2s ease-in-out;transition:color .2s ease-in-out}.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__main .uagb-timeline__year{-js-display:flex;display:-ms-flexbox;display:flex;position:relative}.uagb-timeline__main .uagb-timeline__year span{display:inline-block;padding-bottom:6px}.uagb-timeline__day-left .uagb-timeline__arrow:after{content:'';left:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__day-left .uagb-timeline__arrow:after{right:0}.uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__icon{width:100px;height:100px;border-radius:50%;text-align:center;line-height:100px;vertical-align:middle;position:relative;z-index:1}.uagb-timeline__main .uagb-timeline__date .uagb-timeline__inner-date-new{white-space:nowrap;margin:0px}.uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-timeline__right-block .uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block .uagb-timeline__line{left:50%;right:auto}.uagb-timeline__main .in-view i.uagb-timeline__in-view-icon{-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-in-out;-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;-o-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out}.uagb-timeline__left-block .uagb-timeline__days{text-align:left}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block .uagb-timeline__days{text-align:center}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__days{text-align:right}.uagb-timeline__outer-wrap span.dashicons-admin-users.dashicons{display:inline;vertical-align:baseline;margin-right:4px}@media screen and (max-width: 1023px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}@media screen and (max-width: 767px){.uagb-timeline-responsive-none .uagb-timeline__events-inner-new{padding:15px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__day-left .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}.uagb-timeline__line__inner{background-color:#61ce70;width:100%}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.rtl .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.rtl .uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__day-right .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__day-left .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__line{width:3px}.uagb-timeline__main .uagb-timeline__icon-new{font-size:16px}.uagb-timeline__marker{min-height:3em;min-width:3em;line-height:3em}.uagb-timeline__arrow{height:3em}.uagb-timeline__left-block .uagb-timeline__line{left:calc(3em / 2)}.uagb-timeline__right-block .uagb-timeline__line{right:calc(3em / 2)}.rtl .uagb-timeline__left-block .uagb-timeline__line{right:calc(3em / 2);left:auto}.rtl .uagb-timeline__right-block .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline-desc-content p{font-size:inherit}.uagb-timeline__main p:empty{display:none}@media (max-width: 976px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}}@media (max-width: 767px){.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:calc(3em / 2);left:auto}}
13
+ .uagb-cta__outer-wrap{position:relative}.uagb-cta__outer-wrap .uagb-cta__content{display:inline-block}.uagb-cta__outer-wrap a.uagb-cta__block-link span{font-size:inherit;vertical-align:middle;display:inline-block;float:left}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__link-wrapper{width:30%}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__content{width:70%}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:right}.uagb-cta__outer-wrap .uagb-cta__link-wrapper.uagb-cta__block-link-style:empty{display:none}.uagb-cta__outer-wrap a.uagb-cta__block-link,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link,.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link-wrap{text-decoration:none}.uagb-cta__outer-wrap a.uagb-cta__block-link:hover,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link:hover,.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap:hover,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link-wrap:hover .entry .entry-content a.uagb-cta__block-link:hover{color:inherit}.uagb-cta__outer-wrap .uagb-cta__content-right{text-align:right;-ms-flex-pack:end;justify-content:flex-end}.uagb-cta__outer-wrap .uagb-cta__left-right-wrap{width:100%;word-break:break-word}.uagb-cta__outer-wrap .uagb-cta__icon-position-below-title .uagb-cta__left-right-wrap{display:block;min-width:100%;width:100%}.uagb-cta__outer-wrap .uagb-cta__icon-position-left .uagb-cta__left-right-wrap,.uagb-cta__outer-wrap .uagb-cta__icon-position-right .uagb-cta__left-right-wrap{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-cta__outer-wrap .uagb-cta__icon-position-right .uagb-cta__left-right-wrap{-ms-flex-pack:end;justify-content:flex-end}.uagb-cta__outer-wrap .uagb-cta__block-link-icon-after{margin-left:5px;margin-right:0}.uagb-cta__outer-wrap .uagb-cta__block-link-icon-before{margin-left:0;margin-right:5px}.uagb-cta__outer-wrap .uagb-cta__block-link-icon,.uagb-cta__outer-wrap .uagb-cta__block svg{-webkit-transition:all 200ms linear;-o-transition:all 200ms linear;transition:all 200ms linear}.uagb-cta__outer-wrap .uagb-cta__block{position:relative}.uagb-cta__outer-wrap .uagb-cta-typeof-button{display:inline-block;line-height:1;background-color:transparent;color:#333;text-align:center}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-link-wrapper,.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link,.uagb-cta__outer-wrap .uagb-cta__content-right.uagb-cta__button-valign-middle .uagb-cta__left-right-wrap{display:-ms-flexbox;-js-display:flex;display:flex;-ms-flex-align:center;align-items:center}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-link-wrapper,.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link{-ms-flex-pack:center;justify-content:center}.uagb-cta__outer-wrap .uagb-cta__link-wrapper a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-cta__outer-wrap .uagb-cta__title-wrap .uagb-cta__title{padding:0;margin:0;display:block}.uagb-cta__outer-wrap .uagb-cta__block,.uagb-cta__outer-wrap .uagb-cta__content{z-index:1}.uagb-cta__outer-wrap .uagb-cta__left-right-wrap{z-index:1}.uagb-cta__outer-wrap .uagb-cta__block-link{cursor:pointer}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link{display:inline-block;float:right;padding:10px 14px}.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap{color:inherit}.uagb-cta__outer-wrap .uagb-cta__content p:empty{display:none}.uagb-cta__outer-wrap .uagb-cta__button-type-none .uagb-cta__content{width:100%}.uagb-cta__outer-wrap .uagb-cta-with-svg{height:14px;width:14px;line-height:14px;display:inline-block;vertical-align:middle}.uagb-cta__outer-wrap .uagb-cta__block svg{display:block;height:inherit;width:inherit}.uagb-cta__outer-wrap .uagb-cta__align-button-after{margin-left:5px}.uagb-cta__outer-wrap .uagb-cta__align-button-before{margin-right:5px}.uagb-cta__outer-wrap .uagb-cta__block-link i{font-style:normal}.uagb-cta__outer-wrap a.uagb-cta__link-to-all{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}@media only screen and (max-width: 976px){.uagb-cta__content-stacked-tablet .uagb-cta__left-right-wrap{-ms-flex-direction:column;flex-direction:column;text-align:center}.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:none;margin:0 auto}.uagb-cta__content-stacked-tablet .uagb-cta__left-right-wrap .uagb-cta__content{margin-left:0;margin-right:0}.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content,.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper{width:100% !important}}@media screen and (max-width: 767px){.uagb-cta__content-stacked-mobile .uagb-cta__left-right-wrap{-ms-flex-direction:column;flex-direction:column;text-align:center}.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:none;margin:0 auto}.uagb-cta__content-stacked-mobile .uagb-cta__left-right-wrap .uagb-cta__content{margin-left:0;margin-right:0}.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content,.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper{width:100% !important}}
14
+ .uagb-column__wrap{position:relative;overflow:hidden}.uagb-column__wrap .uagb-column__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2;-ms-flex:1;flex:1}.uagb-column__wrap.uagb-column__align-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__wrap.uagb-column__align-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}.uagb-column__wrap .uagb-column__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-column__wrap .uagb-column__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-column__wrap .uagb-column__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.wp-block-uagb-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;padding-left:0;padding-right:0;margin-left:-14px;margin-right:-14px;min-width:0;word-break:break-word;overflow-wrap:break-word;-ms-flex-preferred-size:100%;flex-basis:100%}@media (max-width: 976px){.uagb-column__align-tablet-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__align-tablet-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}}@media (max-width: 767px){.uagb-column__align-mobile-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__align-mobile-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}}@media (max-width: 449px){.uagb-columns__wrap.uagb-columns__background-image{background-attachment:scroll !important}}
15
+ .uagb-columns__wrap{position:relative}.uagb-columns__wrap .uagb-columns__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2}.uagb-columns__wrap .uagb-columns__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-columns__wrap .uagb-columns__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-columns__wrap .uagb-columns__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.uagb-columns__wrap .uagb-column__wrap{display:-ms-flexbox;display:flex}.uagb-columns__wrap .uagb-columns__shape{overflow:hidden;position:absolute;left:0;width:100%;line-height:0;direction:ltr;z-index:1}.uagb-columns__wrap .uagb-columns__shape-top{top:-3px}.uagb-columns__wrap .uagb-columns__shape-bottom{bottom:-3px}.uagb-columns__wrap .uagb-columns__shape[data-negative="false"].uagb-columns__shape-bottom{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape[data-negative="true"].uagb-columns__shape-top{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape.uagb-columns__shape-flip svg{-webkit-transform:translateX(-50%) rotateY(180deg);transform:translateX(-50%) rotateY(180deg)}.uagb-columns__wrap .uagb-columns__shape svg{display:block;width:calc(100% + 1.3px);position:relative;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-columns__wrap .uagb-columns__shape .uagb-columns__shape-fill{fill:#333;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}.uagb-columns__valign-middle .uagb-column__wrap{-ms-flex-align:center;align-items:center}.uagb-columns__valign-top .uagb-column__wrap{-ms-flex-align:flex-start;align-items:flex-start}.uagb-columns__valign-bottom .uagb-column__wrap{-ms-flex-align:flex-end;align-items:flex-end}.uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.uagb-columns__columns-1>.uagb-column__wrap{width:100%}.uagb-columns__columns-2>.uagb-column__wrap{width:50%}.uagb-columns__columns-3>.uagb-column__wrap{width:33.33%}.uagb-columns__columns-4>.uagb-column__wrap{width:25%}.uagb-columns__columns-5>.uagb-column__wrap{width:20%}.uagb-columns__columns-6>.uagb-column__wrap{width:16.66%}.uagb-columns__gap-nogap>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:0}.uagb-columns__gap-default>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:10px}.uagb-columns__gap-narrow>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:5px}.uagb-columns__gap-extended>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:15px}.uagb-columns__gap-wide>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:20px}.uagb-columns__gap-wider>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:30px}@media (max-width: 976px){.uagb-columns__stack-tablet .uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-tablet .uagb-columns__inner-wrap{display:block}.uagb-columns__reverse-tablet .uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 767px){.uagb-columns__stack-mobile .uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-mobile .uagb-columns__inner-wrap{display:block}.uagb-columns__reverse-mobile .uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 449px){.uagb-columns__wrap .uagb-column__wrap.uagb-column__background-image{background-attachment:scroll !important}}
16
+ .wp-block-uagb-cf7-styler .wpcf7 *,.wp-block-uagb-cf7-styler .wpcf7 :after,.wp-block-uagb-cf7-styler .wpcf7 :before{-webkit-box-sizing:border-box;box-sizing:border-box}.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::before,.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::after{content:" "}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{content:'';display:inline-block;vertical-align:middle;margin-right:10px;text-align:center;height:15px;width:15px;border-style:solid;border-color:#eaeaea;border-width:1px 1px 1px 1px}.wp-block-uagb-cf7-styler span.wpcf7-list-item{display:inline-block;margin:0 1em 0 0}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]:checked+span:before{content:"\2714";line-height:1.2}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{-webkit-box-sizing:content-box;box-sizing:content-box}.wp-block-uagb-cf7-styler input[type=checkbox]:checked+span:before{font-size:calc(12px / 1.2)}.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{border-radius:100%}.wp-block-uagb-cf7-styler .uagb-cf7-styler__field-style-box .wpcf7-radio input[type="radio"]:checked+span:before,.wp-block-uagb-cf7-styler .uagb-cf7-styler__field-style-underline .wpcf7-radio input[type="radio"]:checked+span:before{background-color:#545454;-webkit-box-shadow:inset 0px 0px 0px 4px #fafafa;box-shadow:inset 0px 0px 0px 4px #fafafa}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-justify input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-left input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-right input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-center input.wpcf7-form-control.wpcf7-submit{display:-ms-flexbox;-js-display:flex;display:flex;width:auto;line-height:1em;background:transparent;border-color:#333;border-width:1px;padding:10px 25px}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-right input.wpcf7-form-control.wpcf7-submit{margin-left:auto;margin-right:0}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-left input.wpcf7-form-control.wpcf7-submit{margin-right:auto;margin-left:0}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-center input.wpcf7-form-control.wpcf7-submit{margin-right:auto;margin-left:auto}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-justify input.wpcf7-form-control.wpcf7-submit{-ms-flex-pack:center;justify-content:center;width:100%}.wp-block-uagb-cf7-styler .wpcf7 input[type=checkbox],.wp-block-uagb-cf7-styler .wpcf7 input[type=radio]{display:none}.wp-block-uagb-cf7-styler .wpcf7 select{height:auto;padding:10px}.wp-block-uagb-cf7-styler select.wpcf7-form-control.wpcf7-select[multiple="multiple"]{padding:0}.wp-block-uagb-cf7-styler .wpcf7 select option{padding:10px}.wp-block-uagb-cf7-styler .uagb-cf7-styler__highlight-style-bottom_right span.wpcf7-not-valid-tip{display:inline-block;right:0;top:100%;padding:.1em .8em;border-radius:2px;color:#ffffff;background-color:rgba(255,0,0,0.6);padding:5px 10px;font-size:15px;float:right;margin-top:5px}.wp-block-uagb-cf7-styler .wpcf7 input[type="number"]{height:auto}@media (min-width: 769px){.wp-block-uagb-cf7-styler .uagb-cf7_styler-col{-js-display:flex;display:-ms-flexbox;display:flex}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col label,.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span{-ms-flex-positive:1;flex-grow:1}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col br{display:none}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span.uagb-cf7_styler-col-1{padding-left:0;padding-right:15px}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span.uagb-cf7_styler-col-3{padding-left:15px;padding-right:0}}
17
+ .wp-block-uagb-blockquote{padding:0;margin:0 auto}.wp-block-uagb-blockquote .uagb-blockquote__content,.wp-block-uagb-blockquote cite.uagb-blockquote__author{font-style:normal;display:block}.wp-block-uagb-blockquote cite.uagb-blockquote__author,.wp-block-uagb-blockquote .uagb-blockquote__author{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation blockquote.uagb-blockquote{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;quotes:none;border-left:0 none;border-right:0 none;border-top:0 none;border-bottom:0 none;font-style:normal}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap{position:relative;display:inline-block;padding:0px;z-index:1;background:#333;padding:10px;border-radius:100%;margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon{height:25px;width:25px;display:inline-block;float:left}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg{height:inherit;width:inherit;display:inherit}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation.uagb-blockquote__style-style_2 .uagb-blockquote__icon-wrap{display:inline-block;float:left}.wp-block-uagb-blockquote blockquote.uagb-blockquote{margin:0;padding:0}.wp-block-uagb-blockquote .uagb-blockquote__wrap,.wp-block-uagb-blockquote .uagb-blockquote__wrap *{-webkit-box-sizing:border-box;box-sizing:border-box}.wp-block-uagb-blockquote .uagb-blockquote__style-style_2 .uagb-blockquote__icon-wrap{display:inline-block;float:left;text-align:left}.wp-block-uagb-blockquote .uagb-blockquote__separator-parent{display:-ms-flexbox;-js-display:flex;display:flex;-ms-flex-pack:start;justify-content:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote footer{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.wp-block-uagb-blockquote .uagb-blockquote a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.wp-block-uagb-blockquote .uagb-blockquote a.uagb-blockquote__tweet-button{display:-ms-flexbox;display:flex;-webkit-transition:0.2s;-o-transition:0.2s;transition:0.2s;-ms-flex-item-align:end;align-self:flex-end;line-height:1;position:relative;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0;color:#1DA1F2;background-color:transparent;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button svg{height:15px;width:15px;margin-right:5px;fill:#fff;vertical-align:middle;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button svg{font-style:normal}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon a.uagb-blockquote__tweet-button svg{margin-right:0}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon_text svg{margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon a.uagb-blockquote__tweet-button{padding:8px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote .uagb-blockquote__tweet-text a.uagb-blockquote__tweet-button{padding:10px 14px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button{padding:10px 0}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button{background-color:#1DA1F2;border-radius:100em;color:#fff}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{content:'';border:solid 0.5em transparent;border-right-color:#1DA1F2;position:absolute;left:-0.8em;top:50%;-webkit-transform:translateY(-50%) scale(1, 0.65);-ms-transform:translateY(-50%) scale(1, 0.65);transform:translateY(-50%) scale(1, 0.65);-webkit-transition:0.2s;-o-transition:0.2s;transition:0.2s}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:auto;right:-0.8em;-webkit-transform:translateY(-50%) scale(1, 0.65) rotate(180deg);-ms-transform:translateY(-50%) scale(1, 0.65) rotate(180deg);transform:translateY(-50%) scale(1, 0.65) rotate(180deg)}.wp-block-uagb-blockquote .uagb-blockquote__align-center.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet.uagb-blockquote__align-center .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__align-center .uagb-blockquote footer{display:block;text-align:center}.wp-block-uagb-blockquote .uagb-blockquote__align-center a.uagb-blockquote__tweet-button{display:block;text-align:center;margin:0 auto;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet.uagb-blockquote__align-right .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote footer{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wp-block-uagb-blockquote .uagb-blockquote__author-image{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__author-image img{width:50px;height:50px;border-radius:100%;margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-left .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{justify-content:flex-end;-webkit-box-pack:flex-end;-ms-flex-pack:flex-end;-webkit-justify-content:flex-end;-moz-box-pack:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{justify-content:flex-start;-webkit-box-pack:flex-start;-ms-flex-pack:flex-start;-webkit-justify-content:flex-start;-moz-box-pack:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote__author-wrap{justify-content:unset;-webkit-box-pack:unset;-ms-flex-pack:unset;-webkit-justify-content:unset;-moz-box-pack:unset}.wp-block-uagb-blockquote .uagb-blockquote__align-center .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-center.uagb-blockquote__with-tweet .uagb-blockquote__author-wrap{justify-content:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;-moz-box-pack:center}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .uagb-blockquote__author,.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .editor-rich-text{width:inherit}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{width:auto}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap .editor-rich-text{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{text-align:right}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img{margin-left:10px;margin-right:0}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{-ms-flex-direction:column;flex-direction:column}@media only screen and (max-width: 976px){.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left{-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left .uagb-blockquote__author-image img{margin-left:0;margin-right:0;margin-bottom:10px}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__with-tweet .uagb-blockquote footer{-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right.uagb-blockquote__with-tweet .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet a.uagb-blockquote__tweet-button{margin-top:10px}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__stack-img-tablet .uagb-blockquote__author-image{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-left.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}}@media screen and (max-width: 767px){.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left{-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left .uagb-blockquote__author-image img{margin-left:0;margin-right:0;margin-bottom:10px}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__with-tweet .uagb-blockquote footer{-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right.uagb-blockquote__with-tweet .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile a.uagb-blockquote__tweet-button{margin-top:10px}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__stack-img-mobile .uagb-blockquote__author-image{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-mobile .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-left.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}}
18
+ .wp-block-uagb-marketing-button .uagb-marketing-btn__wrap>p,.wp-block-uagb-marketing-button p:empty{display:none}.wp-block-uagb-marketing-button h6.uagb-marketing-btn__title,.wp-block-uagb-marketing-button p.uagb-marketing-btn__prefix{margin:0}.wp-block-uagb-marketing-button .uagb-marketing-btn__wrap{display:-ms-flexbox;display:flex}.wp-block-uagb-marketing-button .uagb-marketing-btn__link{z-index:1}.wp-block-uagb-marketing-button .uagb-marketing-btn__link{display:inline-block;position:relative;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.wp-block-uagb-marketing-button .uagb-marketing-btn__icon-wrap{width:20px;height:20px;display:-ms-flexbox;display:flex;z-index:1}.wp-block-uagb-marketing-button .uagb-marketing-btn__icon-wrap svg{width:inherit;height:inherit}.wp-block-uagb-marketing-button .uagb-marketing-btn__title-wrap{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-center .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-center .uagb-marketing-btn__title-wrap{-ms-flex-pack:center;justify-content:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-left .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-left .uagb-marketing-btn__title-wrap{-ms-flex-pack:start;justify-content:flex-start}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-right .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__title-wrap{-ms-flex-pack:end;justify-content:flex-end}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-full .uagb-marketing-btn__link{width:100%}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-center .uagb-marketing-btn__prefix-wrap{text-align:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-left .uagb-marketing-btn__prefix-wrap{text-align:left}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__prefix-wrap{text-align:right}.wp-block-uagb-marketing-button.uagb-marketing-btn__icon-after .uagb-marketing-btn__title-wrap{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.entry-content .wp-block-uagb-marketing-button .uagb-marketing-btn__link{text-decoration:none}
dist/blocks/post-timeline/index.php CHANGED
@@ -1,795 +1,795 @@
1
- <?php
2
- /**
3
- * Server-side rendering for the Timeline.
4
- *
5
- * @since 1.3.0.
6
- * @package UAGB Block.
7
- */
8
-
9
- /**
10
- * Function Name: uagb_post_timeline_callback.
11
- *
12
- * @param array $attributes attributes.
13
- * @return html HTML.
14
- */
15
- function uagb_post_timeline_callback( $attributes ) {
16
-
17
- $attributes['post_type'] = 'timeline';
18
-
19
- $recent_posts = UAGB_Helper::get_query( $attributes, 'timeline' );
20
- $post_tm_class = uagb_tm_get_classes( $attributes );
21
- $block_id = 'uagb-ctm-' . $attributes['block_id'];
22
-
23
- if ( $attributes['displayPostLink'] ) {
24
- $post_tm_class .= ' uagb_timeline__cta-enable';
25
- }
26
-
27
- ob_start();
28
- ?>
29
- <div class = "uagb-timeline__outer-wrap" id = "<?php echo $block_id; ?>" >
30
- <div class = "uagb-timeline__content-wrap <?php echo $post_tm_class; ?>" >
31
- <div class = "uagb-timeline-wrapper">
32
- <div class = "uagb-timeline__main">
33
- <?php
34
- if ( empty( $recent_posts ) ) {
35
- _e( 'No posts found', 'ultimate-addons-for-gutenberg' );
36
- } else {
37
- echo uagb_tm_get_post_content( $attributes, $recent_posts );
38
- }
39
- ?>
40
- <div class = "uagb-timeline__line" >
41
- <div class = "uagb-timeline__line__inner"></div>
42
- </div>
43
- </div>
44
- </div>
45
- </div>
46
- </div>
47
- <?php
48
- return ob_get_clean();
49
- }
50
-
51
- /**
52
- * Registers the `timeline` block on server.
53
- */
54
- function uagb_register_post_timeline() {
55
- // Check if the register function exists.
56
- if ( ! function_exists( 'register_block_type' ) ) {
57
- return;
58
- }
59
-
60
- register_block_type(
61
- 'uagb/post-timeline',
62
- array(
63
- 'attributes' => array(
64
- 'align' => array(
65
- 'type' => 'string',
66
- 'default' => 'center',
67
- ),
68
- 'headingColor' => array(
69
- 'type' => 'string',
70
- 'default' => '#333',
71
- ),
72
- 'subHeadingColor' => array(
73
- 'type' => 'string',
74
- 'default' => '#333',
75
- ),
76
- 'separatorBg' => array(
77
- 'type' => 'string',
78
- 'default' => '#eee',
79
- ),
80
- 'backgroundColor' => array(
81
- 'type' => 'string',
82
- 'default' => '#eee',
83
- ),
84
- 'separatorColor' => array(
85
- 'type' => 'string',
86
- 'default' => '#eee',
87
- ),
88
- 'separatorFillColor' => array(
89
- 'type' => 'string',
90
- 'default' => '#61ce70',
91
- ),
92
- 'separatorBorder' => array(
93
- 'type' => 'string',
94
- 'default' => '#eee',
95
- ),
96
- 'borderFocus' => array(
97
- 'type' => 'string',
98
- 'default' => '#5cb85c',
99
- ),
100
- 'headingTag' => array(
101
- 'type' => 'string',
102
- 'default' => 'h3',
103
- ),
104
- 'horizontalSpace' => array(
105
- 'type' => 'number',
106
- 'default' => 10,
107
- ),
108
- 'verticalSpace' => array(
109
- 'type' => 'number',
110
- 'default' => 15,
111
- ),
112
- 'timelinAlignment' => array(
113
- 'type' => 'string',
114
- 'default' => 'center',
115
- ),
116
- 'arrowlinAlignment' => array(
117
- 'type' => 'string',
118
- 'default' => 'center',
119
- ),
120
- 'subHeadFontSizeType' => array(
121
- 'type' => 'string',
122
- 'default' => 'px',
123
- ),
124
- 'subHeadFontSize' => array(
125
- 'type' => 'number',
126
- ),
127
- 'subHeadFontSizeTablet' => array(
128
- 'type' => 'number',
129
- ),
130
- 'subHeadFontSizeMobile' => array(
131
- 'type' => 'number',
132
- ),
133
- 'subHeadFontFamily' => array(
134
- 'type' => 'string',
135
- 'default' => '',
136
- ),
137
- 'subHeadFontWeight' => array(
138
- 'type' => 'string',
139
- ),
140
- 'subHeadFontSubset' => array(
141
- 'type' => 'string',
142
- ),
143
- 'subHeadLineHeightType' => array(
144
- 'type' => 'string',
145
- 'default' => 'em',
146
- ),
147
- 'subHeadLineHeight' => array(
148
- 'type' => 'number',
149
- ),
150
- 'subHeadLineHeightTablet' => array(
151
- 'type' => 'number',
152
- ),
153
- 'subHeadLineHeightMobile' => array(
154
- 'type' => 'number',
155
- ),
156
- 'subHeadLoadGoogleFonts' => array(
157
- 'type' => 'boolean',
158
- 'default' => false,
159
- ),
160
- 'headSpace' => array(
161
- 'type' => 'number',
162
- 'default' => 5,
163
- ),
164
- 'authorSpace' => array(
165
- 'type' => 'number',
166
- 'default' => 5,
167
- ),
168
- 'contentSpace' => array(
169
- 'type' => 'number',
170
- 'default' => 15,
171
- ),
172
- 'separatorwidth' => array(
173
- 'type' => 'number',
174
- 'default' => 3,
175
- ),
176
- 'borderwidth' => array(
177
- 'type' => 'number',
178
- 'default' => 0,
179
- ),
180
- 'iconColor' => array(
181
- 'type' => 'string',
182
- 'default' => '#333',
183
- ),
184
- 'iconFocus' => array(
185
- 'type' => 'string',
186
- 'default' => '#fff',
187
- ),
188
- 'iconBgFocus' => array(
189
- 'type' => 'string',
190
- 'default' => '#61ce70',
191
- ),
192
- 'authorColor' => array(
193
- 'type' => 'string',
194
- 'default' => '#333',
195
- ),
196
- 'authorFontSizeType' => array(
197
- 'type' => 'string',
198
- 'default' => 'px',
199
- ),
200
- 'authorFontSize' => array(
201
- 'type' => 'number',
202
- 'default' => 11,
203
- ),
204
- 'authorFontSizeTablet' => array(
205
- 'type' => 'number',
206
- ),
207
- 'authorFontSizeMobile' => array(
208
- 'type' => 'number',
209
- ),
210
- 'authorFontFamily' => array(
211
- 'type' => 'string',
212
- 'default' => '',
213
- ),
214
- 'authorFontWeight' => array(
215
- 'type' => 'string',
216
- ),
217
- 'authorFontSubset' => array(
218
- 'type' => 'string',
219
- ),
220
- 'authorLineHeightType' => array(
221
- 'type' => 'string',
222
- 'default' => 'em',
223
- ),
224
- 'authorLineHeight' => array(
225
- 'type' => 'number',
226
- ),
227
- 'authorLineHeightTablet' => array(
228
- 'type' => 'number',
229
- ),
230
- 'authorLineHeightMobile' => array(
231
- 'type' => 'number',
232
- ),
233
- 'authorLoadGoogleFonts' => array(
234
- 'type' => 'boolean',
235
- 'default' => false,
236
- ),
237
- 'ctaFontSizeType' => array(
238
- 'type' => 'string',
239
- 'default' => 'px',
240
- ),
241
- 'ctaFontSize' => array(
242
- 'type' => 'number',
243
- 'default' => '',
244
- ),
245
- 'ctaFontSizeTablet' => array(
246
- 'type' => 'number',
247
- ),
248
- 'ctaFontSizeMobile' => array(
249
- 'type' => 'number',
250
- ),
251
- 'ctaFontFamily' => array(
252
- 'type' => 'string',
253
- 'default' => '',
254
- ),
255
- 'ctaFontWeight' => array(
256
- 'type' => 'string',
257
- ),
258
- 'ctaFontSubset' => array(
259
- 'type' => 'string',
260
- ),
261
- 'ctaLineHeightType' => array(
262
- 'type' => 'string',
263
- 'default' => 'em',
264
- ),
265
- 'ctaLineHeight' => array(
266
- 'type' => 'number',
267
- ),
268
- 'ctaLineHeightTablet' => array(
269
- 'type' => 'number',
270
- ),
271
- 'ctaLineHeightMobile' => array(
272
- 'type' => 'number',
273
- ),
274
- 'ctaLoadGoogleFonts' => array(
275
- 'type' => 'boolean',
276
- 'default' => false,
277
- ),
278
- 'dateColor' => array(
279
- 'type' => 'string',
280
- 'default' => '#333',
281
- ),
282
- 'dateFontsizeType' => array(
283
- 'type' => 'string',
284
- 'default' => 'px',
285
- ),
286
- 'dateFontsize' => array(
287
- 'type' => 'number',
288
- 'default' => 12,
289
- ),
290
- 'dateFontsizeTablet' => array(
291
- 'type' => 'number',
292
- ),
293
- 'dateFontsizeMobile' => array(
294
- 'type' => 'number',
295
- ),
296
- 'dateFontFamily' => array(
297
- 'type' => 'string',
298
- 'default' => '',
299
- ),
300
- 'dateFontWeight' => array(
301
- 'type' => 'string',
302
- ),
303
- 'dateFontSubset' => array(
304
- 'type' => 'string',
305
- ),
306
- 'dateLineHeightType' => array(
307
- 'type' => 'string',
308
- 'default' => 'em',
309
- ),
310
- 'dateLineHeight' => array(
311
- 'type' => 'number',
312
- ),
313
- 'dateLineHeightTablet' => array(
314
- 'type' => 'number',
315
- ),
316
- 'dateLineHeightMobile' => array(
317
- 'type' => 'number',
318
- ),
319
- 'dateLoadGoogleFonts' => array(
320
- 'type' => 'boolean',
321
- 'default' => false,
322
- ),
323
- 'connectorBgsize' => array(
324
- 'type' => 'number',
325
- 'default' => 35,
326
- ),
327
- 'dateBottomspace' => array(
328
- 'type' => 'number',
329
- 'default' => 5,
330
- ),
331
- 'headFontSizeType' => array(
332
- 'type' => 'string',
333
- 'default' => 'px',
334
- ),
335
- 'headFontSize' => array(
336
- 'type' => 'number',
337
- ),
338
- 'headFontSizeTablet' => array(
339
- 'type' => 'number',
340
- ),
341
- 'headFontSizeMobile' => array(
342
- 'type' => 'number',
343
- ),
344
- 'headFontFamily' => array(
345
- 'type' => 'string',
346
- 'default' => '',
347
- ),
348
- 'headFontWeight' => array(
349
- 'type' => 'string',
350
- ),
351
- 'headFontSubset' => array(
352
- 'type' => 'string',
353
- ),
354
- 'headLineHeightType' => array(
355
- 'type' => 'string',
356
- 'default' => 'em',
357
- ),
358
- 'headLineHeight' => array(
359
- 'type' => 'number',
360
- ),
361
- 'headLineHeightTablet' => array(
362
- 'type' => 'number',
363
- ),
364
- 'headLineHeightMobile' => array(
365
- 'type' => 'number',
366
- ),
367
- 'headLoadGoogleFonts' => array(
368
- 'type' => 'boolean',
369
- 'default' => false,
370
- ),
371
- 'categories' => array(
372
- 'type' => 'string',
373
- ),
374
- 'postType' => array(
375
- 'type' => 'string',
376
- 'default' => 'post',
377
- ),
378
- 'taxonomyType' => array(
379
- 'type' => 'string',
380
- 'default' => 'category',
381
- ),
382
- 'postsToShow' => array(
383
- 'type' => 'number',
384
- 'default' => 6,
385
- ),
386
- 'displayPostDate' => array(
387
- 'type' => 'boolean',
388
- 'default' => true,
389
- ),
390
- 'displayPostExcerpt' => array(
391
- 'type' => 'boolean',
392
- 'default' => true,
393
- ),
394
- 'displayPostAuthor' => array(
395
- 'type' => 'boolean',
396
- 'default' => true,
397
- ),
398
- 'displayPostImage' => array(
399
- 'type' => 'boolean',
400
- 'default' => true,
401
- ),
402
- 'displayPostLink' => array(
403
- 'type' => 'boolean',
404
- 'default' => true,
405
- ),
406
- 'exerptLength' => array(
407
- 'type' => 'number',
408
- 'default' => 15,
409
- ),
410
- 'postLayout' => array(
411
- 'type' => 'string',
412
- 'default' => 'grid',
413
- ),
414
- 'columns' => array(
415
- 'type' => 'number',
416
- 'default' => 2,
417
- ),
418
- 'width' => array(
419
- 'type' => 'string',
420
- 'default' => 'wide',
421
- ),
422
- 'order' => array(
423
- 'type' => 'string',
424
- 'default' => 'desc',
425
- ),
426
- 'orderBy' => array(
427
- 'type' => 'string',
428
- 'default' => 'date',
429
- ),
430
- 'imageSize' => array(
431
- 'type' => 'string',
432
- 'default' => 'large',
433
- ),
434
- 'readMoreText' => array(
435
- 'type' => 'string',
436
- 'default' => 'Read More',
437
- ),
438
- 'block_id' => array(
439
- 'type' => 'string',
440
- 'default' => 'not_set',
441
- ),
442
- 'icon' => array(
443
- 'type' => 'string',
444
- 'default' => 'fab fa fa-calendar-alt',
445
- ),
446
- 'borderRadius' => array(
447
- 'type' => 'number',
448
- 'default' => 2,
449
- ),
450
- 'bgPadding' => array(
451
- 'type' => 'number',
452
- 'default' => 20,
453
- ),
454
- 'contentPadding' => array(
455
- 'type' => 'number',
456
- 'default' => 10,
457
- ),
458
- 'iconSize' => array(
459
- 'type' => 'number',
460
- 'default' => 15,
461
- ),
462
- 'ctaColor' => array(
463
- 'type' => 'string',
464
- 'default' => '#fff',
465
- ),
466
- 'ctaBackground' => array(
467
- 'type' => 'string',
468
- 'default' => '#333',
469
- ),
470
- 'stack' => array(
471
- 'type' => 'string',
472
- 'default' => 'tablet',
473
- ),
474
- 'linkTarget' => array(
475
- 'type' => 'boolean',
476
- 'default' => false,
477
- ),
478
- ),
479
- 'render_callback' => 'uagb_post_timeline_callback',
480
- )
481
- );
482
- }
483
-
484
- add_action( 'init', 'uagb_register_post_timeline' );
485
-
486
- /**
487
- * Function Name: uagb_tm_get_icon.
488
- *
489
- * @param array $attributes attribute array.
490
- * @return string [description].
491
- */
492
- function uagb_tm_get_icon( $attributes ) {
493
-
494
- $icon = $attributes['icon'];
495
- $htm = UAGB_Helper::render_svg_html( $icon );
496
- $icon_class = 'uagb-timeline__icon-new uagb-timeline__out-view-icon ';
497
- $output = '';
498
- $output .= sprintf( '<div class = "uagb-timeline__marker uagb-timeline__out-view-icon" >' );
499
- $output .= sprintf( '<span class = "%1$s" >', esc_attr( $icon_class ) );
500
- $output .= $htm;
501
- $output .= sprintf( '</span>' );
502
- $output .= sprintf( '</div>' ); // End of icon div.
503
-
504
- return $output;
505
- }
506
-
507
- /**
508
- * Function Name: uagb_tm_get_image.
509
- *
510
- * @param array $attributes attribute array.
511
- */
512
- function uagb_tm_get_image( $attributes ) {
513
-
514
- if ( ! get_the_post_thumbnail_url() ) {
515
- return;
516
- }
517
-
518
- $target = ( isset( $attributes['linkTarget'] ) && ( true == $attributes['linkTarget'] ) ) ? '_blank' : '_self';
519
- do_action( "uagb_single_post_before_featured_image_{$attributes['post_type']}", get_the_ID(), $attributes );
520
- ?>
521
- <div class='uagb-timeline__image'>
522
- <a href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="noopener noreferrer"><?php echo wp_get_attachment_image( get_post_thumbnail_id(), $attributes['imageSize'] ); ?>
523
- </a>
524
- </div>
525
- <?php
526
- do_action( "uagb_single_post_after_featured_image_{$attributes['post_type']}", get_the_ID(), $attributes );
527
- }
528
-
529
- /**
530
- * Function Name: uagb_tm_get_date.
531
- *
532
- * @param array $attributes attribute array.
533
- * @param string $classname attribute string.
534
- */
535
- function uagb_tm_get_date( $attributes, $classname ) {
536
-
537
- global $post;
538
- $post_id = $post->ID;
539
-
540
- $output = '';
541
- if ( isset( $attributes['displayPostDate'] ) && $attributes['displayPostDate'] ) {
542
- $output .= sprintf(
543
- '<div datetime="%1$s" class="%2$s">%3$s</div>',
544
- esc_attr( get_the_date( 'c', $post_id ) ),
545
- $classname,
546
- esc_html( get_the_date( '', $post_id ) )
547
- );
548
- }
549
-
550
- echo $output;
551
- }
552
-
553
- /**
554
- * Function Name: uagb_tm_get_title.
555
- *
556
- * @param array $attributes attribute array.
557
- */
558
- function uagb_tm_get_title( $attributes ) {
559
-
560
- $target = ( isset( $attributes['linkTarget'] ) && ( true == $attributes['linkTarget'] ) ) ? '_blank' : '_self';
561
-
562
- $tag = $attributes['headingTag'];
563
- global $post;
564
- ?>
565
- <div class = "uagb-timeline__heading-text" >
566
- <?php do_action( "uagb_single_post_before_title_{$attributes['post_type']}", get_the_ID(), $attributes ); ?>
567
- <<?php echo $tag; ?> class="uagb-timeline__heading" >
568
- <a href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="noopener noreferrer"><?php ( '' !== get_the_title( $post->ID ) ) ? the_title() : _e( 'Untitled', 'ultimate-addons-for-gutenberg' ); ?></a>
569
- </<?php echo $tag; ?>>
570
- <?php do_action( "uagb_single_post_after_title_{$attributes['post_type']}", get_the_ID(), $attributes ); ?>
571
- </div>
572
- <?php
573
- }
574
-
575
- /**
576
- * Function Name: uagb_tm_get_cta.
577
- *
578
- * @param array $attributes attribute array.
579
- */
580
- function uagb_tm_get_cta( $attributes ) {
581
-
582
- if ( ! $attributes['displayPostLink'] ) {
583
- return;
584
- }
585
- $target = ( isset( $attributes['linkTarget'] ) && ( true == $attributes['linkTarget'] ) ) ? '_blank' : '_self';
586
- do_action( "uagb_single_post_before_cta_{$attributes['post_type']}", get_the_ID(), $attributes );
587
- ?>
588
- <div class="uagb-timeline__link_parent">
589
- <a class="uagb-timeline__link" href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel=" noopener noreferrer"><?php echo esc_html( $attributes['readMoreText'] ); ?></a>
590
- </div>
591
- <?php
592
- do_action( "uagb_single_post_after_cta_{$attributes['post_type']}", get_the_ID(), $attributes );
593
- }
594
-
595
- /**
596
- * Function uagb_tm_get_author.
597
- *
598
- * @param array $attributes attribute.
599
- * @param array $author attribute.
600
- */
601
- function uagb_tm_get_author( $attributes, $author ) {
602
-
603
- $output = '';
604
- do_action( "uagb_single_post_before_meta_{$attributes['post_type']}", get_the_ID(), $attributes );
605
- if ( isset( $attributes['displayPostAuthor'] ) && $attributes['displayPostAuthor'] ) {
606
- $output .= sprintf(
607
- '<div class="uagb-timeline__author"><span class="dashicons-admin-users dashicons"></span><a class="uagb-timeline__author-link" href="%2$s">%1$s</a></div>',
608
- esc_html( get_the_author_meta( 'display_name', $author ) ),
609
- esc_html( get_author_posts_url( $author ) )
610
- );
611
- }
612
- echo $output;
613
- do_action( "uagb_single_post_after_meta_{$attributes['post_type']}", get_the_ID(), $attributes );
614
- }
615
-
616
- /**
617
- * Function uagb_tm_get_excerpt.
618
- *
619
- * @param array $attributes attribute.
620
- */
621
- function uagb_tm_get_excerpt( $attributes ) {
622
-
623
- if ( ! $attributes['displayPostExcerpt'] ) {
624
- return;
625
- }
626
-
627
- $excerpt = wp_trim_words( get_the_excerpt(), $attributes['exerptLength'] );
628
- if ( ! $excerpt ) {
629
- $excerpt = null;
630
- }
631
-
632
- $excerpt = apply_filters( "uagb_single_post_excerpt_{$attributes['post_type']}", $excerpt, get_the_ID(), $attributes );
633
- do_action( "uagb_single_post_before_excerpt_{$attributes['post_type']}", get_the_ID(), $attributes );
634
- ?>
635
- <div class="uagb-timeline-desc-content">
636
- <?php echo $excerpt; ?>
637
- </div>
638
- <?php
639
- do_action( "uagb_single_post_after_excerpt_{$attributes['post_type']}", get_the_ID(), $attributes );
640
- }
641
-
642
- /**
643
- * Function Name: uagb_tm_get_classes .
644
- *
645
- * @param array $attributes array of setting.
646
- * @return string class name.
647
- */
648
- function uagb_tm_get_classes( $attributes ) {
649
-
650
- // Arrow position.
651
- $arrow_align_class = 'uagb-timeline__arrow-top' . ' ';
652
- if ( 'center' === $attributes['arrowlinAlignment'] ) {
653
- $arrow_align_class = 'uagb-timeline__arrow-center' . ' ';
654
- } elseif ( 'bottom' === $attributes['arrowlinAlignment'] ) {
655
- $arrow_align_class = 'uagb-timeline__arrow-bottom' . ' ';
656
- }
657
-
658
- // Alignmnet.
659
- $align_class = 'uagb-timeline__center-block ' . ' ';
660
-
661
- if ( 'left' === $attributes['timelinAlignment'] ) {
662
- $align_class = 'uagb-timeline__left-block' . ' ';
663
- } elseif ( 'right' === $attributes['timelinAlignment'] ) {
664
- $align_class = 'uagb-timeline__right-block' . ' ';
665
- }
666
-
667
- $align_class .= $arrow_align_class . '';
668
- $align_class .= 'uagb-timeline__responsive-' . $attributes['stack'] . ' uagb-timeline';
669
-
670
- return $align_class;
671
- }
672
-
673
- /**
674
- * Function Name: uagb_tm_get_align_classes description.
675
- *
676
- * @param array $attributes attribute array.
677
- * @param string $index_val post index.
678
- * @return string output HTML/String.
679
- */
680
- function uagb_tm_get_align_classes( $attributes, $index_val ) {
681
-
682
- $align_class = '';
683
- if ( 'left' === $attributes['timelinAlignment'] ) {
684
- $align_class = 'uagb-timeline__widget uagb-timeline__left';
685
- } elseif ( 'right' === $attributes['timelinAlignment'] ) {
686
- $align_class = 'uagb-timeline__widget uagb-timeline__right';
687
- } elseif ( 'center' == $attributes['timelinAlignment'] ) {
688
- if ( '0' == $index_val % 2 ) {
689
- $align_class = 'uagb-timeline__widget uagb-timeline__right';
690
- } else {
691
- $align_class = 'uagb-timeline__widget uagb-timeline__left';
692
- }
693
- }
694
-
695
- return $align_class;
696
- }
697
-
698
- /**
699
- * Function Name: uagb_tm_get_day_align_classes description.
700
- *
701
- * @param array $attributes attribute array.
702
- * @param string $index_val post index.
703
- * @return string output HTML/String.
704
- */
705
- function uagb_tm_get_day_align_classes( $attributes, $index_val ) {
706
-
707
- $day_align_class = '';
708
-
709
- if ( 'left' === $attributes['timelinAlignment'] ) {
710
- $day_align_class = 'uagb-timeline__day-new uagb-timeline__day-left';
711
- } elseif ( 'right' === $attributes['timelinAlignment'] ) {
712
- $day_align_class = 'uagb-timeline__day-new uagb-timeline__day-right';
713
- } elseif ( 'center' === $attributes['timelinAlignment'] ) {
714
- if ( '0' == $index_val % 2 ) {
715
- $day_align_class = 'uagb-timeline__day-new uagb-timeline__day-right';
716
- } else {
717
- $day_align_class = 'uagb-timeline__day-new uagb-timeline__day-left';
718
- }
719
- }
720
-
721
- return $day_align_class;
722
- }
723
-
724
- /**
725
- * Function Name: uagb_tm_get_post_content.
726
- *
727
- * @param array $attributes attribute array.
728
- * @param array $recent_posts post array.
729
- */
730
- function uagb_tm_get_post_content( $attributes, $recent_posts ) {
731
-
732
- $timelin_alignment = $attributes['timelinAlignment'];
733
- $arrowlin_alignment = $attributes['arrowlinAlignment'];
734
- $display_post_date = $attributes['displayPostDate'];
735
- $posts_to_show = $attributes['postsToShow'];
736
- $align = $attributes['align'];
737
-
738
- $content_align_class = uagb_tm_get_align_classes( $attributes, 0 ); // Get classname for layout alignment.
739
- $day_align_class = uagb_tm_get_day_align_classes( $attributes, 0 ); // Get classname for day alignment.
740
- $display_inner_date = false;
741
- ob_start();
742
- ?>
743
- <div class = "uagb-timeline__days">
744
- <?php
745
- $index = 0;
746
- while ( $recent_posts->have_posts() ) {
747
- $recent_posts->the_post();
748
- global $post;
749
-
750
- if ( 'center' === $timelin_alignment ) {
751
- $display_inner_date = true;
752
- $content_align_class = uagb_tm_get_align_classes( $attributes, $index );
753
- $day_align_class = uagb_tm_get_day_align_classes( $attributes, $index );
754
- }
755
-
756
- ?>
757
- <article class = "uagb-timeline__field uagb-timeline__field-wrap" key= "<?php echo $index; ?>">
758
- <div class = "<?php echo $content_align_class; ?>">
759
- <?php echo uagb_tm_get_icon( $attributes ); ?>
760
- <div class = "<?php echo $day_align_class; ?>" >
761
- <div class = "uagb-timeline__events-new">
762
- <div class ="uagb-timeline__events-inner-new">
763
- <div class = "uagb-timeline__date-hide uagb-timeline__date-inner" >
764
- <?php echo uagb_tm_get_date( $attributes, 'uagb-timeline__inner-date-new' ); ?>
765
- </div>
766
- <?php echo uagb_tm_get_image( $attributes ); ?>
767
-
768
- <div class = "uagb-content" >
769
- <?php
770
- uagb_tm_get_title( $attributes );
771
- uagb_tm_get_author( $attributes, $post->post_author );
772
- uagb_tm_get_excerpt( $attributes );
773
- uagb_tm_get_cta( $attributes );
774
- ?>
775
- <div class = "uagb-timeline__arrow"></div>
776
- </div>
777
- </div>
778
- </div>
779
- </div>
780
- <?php if ( $display_inner_date ) { ?>
781
- <div class = "uagb-timeline__date-new" >
782
- <?php echo uagb_tm_get_date( $attributes, 'uagb-timeline__date-new' ); ?>
783
- </div>
784
- <?php } ?>
785
- </div>
786
- </article>
787
- <?php
788
- $index++;
789
- }
790
- wp_reset_postdata();
791
- ?>
792
- </div>
793
- <?php
794
- return ob_get_clean();
795
- }
1
+ <?php
2
+ /**
3
+ * Server-side rendering for the Timeline.
4
+ *
5
+ * @since 1.3.0.
6
+ * @package UAGB Block.
7
+ */
8
+
9
+ /**
10
+ * Function Name: uagb_post_timeline_callback.
11
+ *
12
+ * @param array $attributes attributes.
13
+ * @return html HTML.
14
+ */
15
+ function uagb_post_timeline_callback( $attributes ) {
16
+
17
+ $attributes['post_type'] = 'timeline';
18
+
19
+ $recent_posts = UAGB_Helper::get_query( $attributes, 'timeline' );
20
+ $post_tm_class = uagb_tm_get_classes( $attributes );
21
+ $block_id = 'uagb-ctm-' . $attributes['block_id'];
22
+
23
+ if ( $attributes['displayPostLink'] ) {
24
+ $post_tm_class .= ' uagb_timeline__cta-enable';
25
+ }
26
+
27
+ ob_start();
28
+ ?>
29
+ <div class = "uagb-timeline__outer-wrap" id = "<?php echo $block_id; ?>" >
30
+ <div class = "uagb-timeline__content-wrap <?php echo $post_tm_class; ?>" >
31
+ <div class = "uagb-timeline-wrapper">
32
+ <div class = "uagb-timeline__main">
33
+ <?php
34
+ if ( empty( $recent_posts ) ) {
35
+ _e( 'No posts found', 'ultimate-addons-for-gutenberg' );
36
+ } else {
37
+ echo uagb_tm_get_post_content( $attributes, $recent_posts );
38
+ }
39
+ ?>
40
+ <div class = "uagb-timeline__line" >
41
+ <div class = "uagb-timeline__line__inner"></div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <?php
48
+ return ob_get_clean();
49
+ }
50
+
51
+ /**
52
+ * Registers the `timeline` block on server.
53
+ */
54
+ function uagb_register_post_timeline() {
55
+ // Check if the register function exists.
56
+ if ( ! function_exists( 'register_block_type' ) ) {
57
+ return;
58
+ }
59
+
60
+ register_block_type(
61
+ 'uagb/post-timeline',
62
+ array(
63
+ 'attributes' => array(
64
+ 'align' => array(
65
+ 'type' => 'string',
66
+ 'default' => 'center',
67
+ ),
68
+ 'headingColor' => array(
69
+ 'type' => 'string',
70
+ 'default' => '#333',
71
+ ),
72
+ 'subHeadingColor' => array(
73
+ 'type' => 'string',
74
+ 'default' => '#333',
75
+ ),
76
+ 'separatorBg' => array(
77
+ 'type' => 'string',
78
+ 'default' => '#eee',
79
+ ),
80
+ 'backgroundColor' => array(
81
+ 'type' => 'string',
82
+ 'default' => '#eee',
83
+ ),
84
+ 'separatorColor' => array(
85
+ 'type' => 'string',
86
+ 'default' => '#eee',
87
+ ),
88
+ 'separatorFillColor' => array(
89
+ 'type' => 'string',
90
+ 'default' => '#61ce70',
91
+ ),
92
+ 'separatorBorder' => array(
93
+ 'type' => 'string',
94
+ 'default' => '#eee',
95
+ ),
96
+ 'borderFocus' => array(
97
+ 'type' => 'string',
98
+ 'default' => '#5cb85c',
99
+ ),
100
+ 'headingTag' => array(
101
+ 'type' => 'string',
102
+ 'default' => 'h3',
103
+ ),
104
+ 'horizontalSpace' => array(
105
+ 'type' => 'number',
106
+ 'default' => 10,
107
+ ),
108
+ 'verticalSpace' => array(
109
+ 'type' => 'number',
110
+ 'default' => 15,
111
+ ),
112
+ 'timelinAlignment' => array(
113
+ 'type' => 'string',
114
+ 'default' => 'center',
115
+ ),
116
+ 'arrowlinAlignment' => array(
117
+ 'type' => 'string',
118
+ 'default' => 'center',
119
+ ),
120
+ 'subHeadFontSizeType' => array(
121
+ 'type' => 'string',
122
+ 'default' => 'px',
123
+ ),
124
+ 'subHeadFontSize' => array(
125
+ 'type' => 'number',
126
+ ),
127
+ 'subHeadFontSizeTablet' => array(
128
+ 'type' => 'number',
129
+ ),
130
+ 'subHeadFontSizeMobile' => array(
131
+ 'type' => 'number',
132
+ ),
133
+ 'subHeadFontFamily' => array(
134
+ 'type' => 'string',
135
+ 'default' => '',
136
+ ),
137
+ 'subHeadFontWeight' => array(
138
+ 'type' => 'string',
139
+ ),
140
+ 'subHeadFontSubset' => array(
141
+ 'type' => 'string',
142
+ ),
143
+ 'subHeadLineHeightType' => array(
144
+ 'type' => 'string',
145
+ 'default' => 'em',
146
+ ),
147
+ 'subHeadLineHeight' => array(
148
+ 'type' => 'number',
149
+ ),
150
+ 'subHeadLineHeightTablet' => array(
151
+ 'type' => 'number',
152
+ ),
153
+ 'subHeadLineHeightMobile' => array(
154
+ 'type' => 'number',
155
+ ),
156
+ 'subHeadLoadGoogleFonts' => array(
157
+ 'type' => 'boolean',
158
+ 'default' => false,
159
+ ),
160
+ 'headSpace' => array(
161
+ 'type' => 'number',
162
+ 'default' => 5,
163
+ ),
164
+ 'authorSpace' => array(
165
+ 'type' => 'number',
166
+ 'default' => 5,
167
+ ),
168
+ 'contentSpace' => array(
169
+ 'type' => 'number',
170
+ 'default' => 15,
171
+ ),
172
+ 'separatorwidth' => array(
173
+ 'type' => 'number',
174
+ 'default' => 3,
175
+ ),
176
+ 'borderwidth' => array(
177
+ 'type' => 'number',
178
+ 'default' => 0,
179
+ ),
180
+ 'iconColor' => array(
181
+ 'type' => 'string',
182
+ 'default' => '#333',
183
+ ),
184
+ 'iconFocus' => array(
185
+ 'type' => 'string',
186
+ 'default' => '#fff',
187
+ ),
188
+ 'iconBgFocus' => array(
189
+ 'type' => 'string',
190
+ 'default' => '#61ce70',
191
+ ),
192
+ 'authorColor' => array(
193
+ 'type' => 'string',
194
+ 'default' => '#333',
195
+ ),
196
+ 'authorFontSizeType' => array(
197
+ 'type' => 'string',
198
+ 'default' => 'px',
199
+ ),
200
+ 'authorFontSize' => array(
201
+ 'type' => 'number',
202
+ 'default' => 11,
203
+ ),
204
+ 'authorFontSizeTablet' => array(
205
+ 'type' => 'number',
206
+ ),
207
+ 'authorFontSizeMobile' => array(
208
+ 'type' => 'number',
209
+ ),
210
+ 'authorFontFamily' => array(
211
+ 'type' => 'string',
212
+ 'default' => '',
213
+ ),
214
+ 'authorFontWeight' => array(
215
+ 'type' => 'string',
216
+ ),
217
+ 'authorFontSubset' => array(
218
+ 'type' => 'string',
219
+ ),
220
+ 'authorLineHeightType' => array(
221
+ 'type' => 'string',
222
+ 'default' => 'em',
223
+ ),
224
+ 'authorLineHeight' => array(
225
+ 'type' => 'number',
226
+ ),
227
+ 'authorLineHeightTablet' => array(
228
+ 'type' => 'number',
229
+ ),
230
+ 'authorLineHeightMobile' => array(
231
+ 'type' => 'number',
232
+ ),
233
+ 'authorLoadGoogleFonts' => array(
234
+ 'type' => 'boolean',
235
+ 'default' => false,
236
+ ),
237
+ 'ctaFontSizeType' => array(
238
+ 'type' => 'string',
239
+ 'default' => 'px',
240
+ ),
241
+ 'ctaFontSize' => array(
242
+ 'type' => 'number',
243
+ 'default' => '',
244
+ ),
245
+ 'ctaFontSizeTablet' => array(
246
+ 'type' => 'number',
247
+ ),
248
+ 'ctaFontSizeMobile' => array(
249
+ 'type' => 'number',
250
+ ),
251
+ 'ctaFontFamily' => array(
252
+ 'type' => 'string',
253
+ 'default' => '',
254
+ ),
255
+ 'ctaFontWeight' => array(
256
+ 'type' => 'string',
257
+ ),
258
+ 'ctaFontSubset' => array(
259
+ 'type' => 'string',
260
+ ),
261
+ 'ctaLineHeightType' => array(
262
+ 'type' => 'string',
263
+ 'default' => 'em',
264
+ ),
265
+ 'ctaLineHeight' => array(
266
+ 'type' => 'number',
267
+ ),
268
+ 'ctaLineHeightTablet' => array(
269
+ 'type' => 'number',
270
+ ),
271
+ 'ctaLineHeightMobile' => array(
272
+ 'type' => 'number',
273
+ ),
274
+ 'ctaLoadGoogleFonts' => array(
275
+ 'type' => 'boolean',
276
+ 'default' => false,
277
+ ),
278
+ 'dateColor' => array(
279
+ 'type' => 'string',
280
+ 'default' => '#333',
281
+ ),
282
+ 'dateFontsizeType' => array(
283
+ 'type' => 'string',
284
+ 'default' => 'px',
285
+ ),
286
+ 'dateFontsize' => array(
287
+ 'type' => 'number',
288
+ 'default' => 12,
289
+ ),
290
+ 'dateFontsizeTablet' => array(
291
+ 'type' => 'number',
292
+ ),
293
+ 'dateFontsizeMobile' => array(
294
+ 'type' => 'number',
295
+ ),
296
+ 'dateFontFamily' => array(
297
+ 'type' => 'string',
298
+ 'default' => '',
299
+ ),
300
+ 'dateFontWeight' => array(
301
+ 'type' => 'string',
302
+ ),
303
+ 'dateFontSubset' => array(
304
+ 'type' => 'string',
305
+ ),
306
+ 'dateLineHeightType' => array(
307
+ 'type' => 'string',
308
+ 'default' => 'em',
309
+ ),
310
+ 'dateLineHeight' => array(
311
+ 'type' => 'number',
312
+ ),
313
+ 'dateLineHeightTablet' => array(
314
+ 'type' => 'number',
315
+ ),
316
+ 'dateLineHeightMobile' => array(
317
+ 'type' => 'number',
318
+ ),
319
+ 'dateLoadGoogleFonts' => array(
320
+ 'type' => 'boolean',
321
+ 'default' => false,
322
+ ),
323
+ 'connectorBgsize' => array(
324
+ 'type' => 'number',
325
+ 'default' => 35,
326
+ ),
327
+ 'dateBottomspace' => array(
328
+ 'type' => 'number',
329
+ 'default' => 5,
330
+ ),
331
+ 'headFontSizeType' => array(
332
+ 'type' => 'string',
333
+ 'default' => 'px',
334
+ ),
335
+ 'headFontSize' => array(
336
+ 'type' => 'number',
337
+ ),
338
+ 'headFontSizeTablet' => array(
339
+ 'type' => 'number',
340
+ ),
341
+ 'headFontSizeMobile' => array(
342
+ 'type' => 'number',
343
+ ),
344
+ 'headFontFamily' => array(
345
+ 'type' => 'string',
346
+ 'default' => '',
347
+ ),
348
+ 'headFontWeight' => array(
349
+ 'type' => 'string',
350
+ ),
351
+ 'headFontSubset' => array(
352
+ 'type' => 'string',
353
+ ),
354
+ 'headLineHeightType' => array(
355
+ 'type' => 'string',
356
+ 'default' => 'em',
357
+ ),
358
+ 'headLineHeight' => array(
359
+ 'type' => 'number',
360
+ ),
361
+ 'headLineHeightTablet' => array(
362
+ 'type' => 'number',
363
+ ),
364
+ 'headLineHeightMobile' => array(
365
+ 'type' => 'number',
366
+ ),
367
+ 'headLoadGoogleFonts' => array(
368
+ 'type' => 'boolean',
369
+ 'default' => false,
370
+ ),
371
+ 'categories' => array(
372
+ 'type' => 'string',
373
+ ),
374
+ 'postType' => array(
375
+ 'type' => 'string',
376
+ 'default' => 'post',
377
+ ),
378
+ 'taxonomyType' => array(
379
+ 'type' => 'string',
380
+ 'default' => 'category',
381
+ ),
382
+ 'postsToShow' => array(
383
+ 'type' => 'number',
384
+ 'default' => 6,
385
+ ),
386
+ 'displayPostDate' => array(
387
+ 'type' => 'boolean',
388
+ 'default' => true,
389
+ ),
390
+ 'displayPostExcerpt' => array(
391
+ 'type' => 'boolean',
392
+ 'default' => true,
393
+ ),
394
+ 'displayPostAuthor' => array(
395
+ 'type' => 'boolean',
396
+ 'default' => true,
397
+ ),
398
+ 'displayPostImage' => array(
399
+ 'type' => 'boolean',
400
+ 'default' => true,
401
+ ),
402
+ 'displayPostLink' => array(
403
+ 'type' => 'boolean',
404
+ 'default' => true,
405
+ ),
406
+ 'exerptLength' => array(
407
+ 'type' => 'number',
408
+ 'default' => 15,
409
+ ),
410
+ 'postLayout' => array(
411
+ 'type' => 'string',
412
+ 'default' => 'grid',
413
+ ),
414
+ 'columns' => array(
415
+ 'type' => 'number',
416
+ 'default' => 2,
417
+ ),
418
+ 'width' => array(
419
+ 'type' => 'string',
420
+ 'default' => 'wide',
421
+ ),
422
+ 'order' => array(
423
+ 'type' => 'string',
424
+ 'default' => 'desc',
425
+ ),
426
+ 'orderBy' => array(
427
+ 'type' => 'string',
428
+ 'default' => 'date',
429
+ ),
430
+ 'imageSize' => array(
431
+ 'type' => 'string',
432
+ 'default' => 'large',
433
+ ),
434
+ 'readMoreText' => array(
435
+ 'type' => 'string',
436
+ 'default' => 'Read More',
437
+ ),
438
+ 'block_id' => array(
439
+ 'type' => 'string',
440
+ 'default' => 'not_set',
441
+ ),
442
+ 'icon' => array(
443
+ 'type' => 'string',
444
+ 'default' => 'fab fa fa-calendar-alt',
445
+ ),
446
+ 'borderRadius' => array(
447
+ 'type' => 'number',
448
+ 'default' => 2,
449
+ ),
450
+ 'bgPadding' => array(
451
+ 'type' => 'number',
452
+ 'default' => 20,
453
+ ),
454
+ 'contentPadding' => array(
455
+ 'type' => 'number',
456
+ 'default' => 10,
457
+ ),
458
+ 'iconSize' => array(
459
+ 'type' => 'number',
460
+ 'default' => 15,
461
+ ),
462
+ 'ctaColor' => array(
463
+ 'type' => 'string',
464
+ 'default' => '#fff',
465
+ ),
466
+ 'ctaBackground' => array(
467
+ 'type' => 'string',
468
+ 'default' => '#333',
469
+ ),
470
+ 'stack' => array(
471
+ 'type' => 'string',
472
+ 'default' => 'tablet',
473
+ ),
474
+ 'linkTarget' => array(
475
+ 'type' => 'boolean',
476
+ 'default' => false,
477
+ ),
478
+ ),
479
+ 'render_callback' => 'uagb_post_timeline_callback',
480
+ )
481
+ );
482
+ }
483
+
484
+ add_action( 'init', 'uagb_register_post_timeline' );
485
+
486
+ /**
487
+ * Function Name: uagb_tm_get_icon.
488
+ *
489
+ * @param array $attributes attribute array.
490
+ * @return string [description].
491
+ */
492
+ function uagb_tm_get_icon( $attributes ) {
493
+
494
+ $icon = $attributes['icon'];
495
+ $htm = UAGB_Helper::render_svg_html( $icon );
496
+ $icon_class = 'uagb-timeline__icon-new uagb-timeline__out-view-icon ';
497
+ $output = '';
498
+ $output .= sprintf( '<div class = "uagb-timeline__marker uagb-timeline__out-view-icon" >' );
499
+ $output .= sprintf( '<span class = "%1$s" >', esc_attr( $icon_class ) );
500
+ $output .= $htm;
501
+ $output .= sprintf( '</span>' );
502
+ $output .= sprintf( '</div>' ); // End of icon div.
503
+
504
+ return $output;
505
+ }
506
+
507
+ /**
508
+ * Function Name: uagb_tm_get_image.
509
+ *
510
+ * @param array $attributes attribute array.
511
+ */
512
+ function uagb_tm_get_image( $attributes ) {
513
+
514
+ if ( ! get_the_post_thumbnail_url() ) {
515
+ return;
516
+ }
517
+
518
+ $target = ( isset( $attributes['linkTarget'] ) && ( true == $attributes['linkTarget'] ) ) ? '_blank' : '_self';
519
+ do_action( "uagb_single_post_before_featured_image_{$attributes['post_type']}", get_the_ID(), $attributes );
520
+ ?>
521
+ <div class='uagb-timeline__image'>
522
+ <a href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="noopener noreferrer"><?php echo wp_get_attachment_image( get_post_thumbnail_id(), $attributes['imageSize'] ); ?>
523
+ </a>
524
+ </div>
525
+ <?php
526
+ do_action( "uagb_single_post_after_featured_image_{$attributes['post_type']}", get_the_ID(), $attributes );
527
+ }
528
+
529
+ /**
530
+ * Function Name: uagb_tm_get_date.
531
+ *
532
+ * @param array $attributes attribute array.
533
+ * @param string $classname attribute string.
534
+ */
535
+ function uagb_tm_get_date( $attributes, $classname ) {
536
+
537
+ global $post;
538
+ $post_id = $post->ID;
539
+
540
+ $output = '';
541
+ if ( isset( $attributes['displayPostDate'] ) && $attributes['displayPostDate'] ) {
542
+ $output .= sprintf(
543
+ '<div datetime="%1$s" class="%2$s">%3$s</div>',
544
+ esc_attr( get_the_date( 'c', $post_id ) ),
545
+ $classname,
546
+ esc_html( get_the_date( '', $post_id ) )
547
+ );
548
+ }
549
+
550
+ echo $output;
551
+ }
552
+
553
+ /**
554
+ * Function Name: uagb_tm_get_title.
555
+ *
556
+ * @param array $attributes attribute array.
557
+ */
558
+ function uagb_tm_get_title( $attributes ) {
559
+
560
+ $target = ( isset( $attributes['linkTarget'] ) && ( true == $attributes['linkTarget'] ) ) ? '_blank' : '_self';
561
+
562
+ $tag = $attributes['headingTag'];
563
+ global $post;
564
+ ?>
565
+ <div class = "uagb-timeline__heading-text" >
566
+ <?php do_action( "uagb_single_post_before_title_{$attributes['post_type']}", get_the_ID(), $attributes ); ?>
567
+ <<?php echo $tag; ?> class="uagb-timeline__heading" >
568
+ <a href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="noopener noreferrer"><?php ( '' !== get_the_title( $post->ID ) ) ? the_title() : _e( 'Untitled', 'ultimate-addons-for-gutenberg' ); ?></a>
569
+ </<?php echo $tag; ?>>
570
+ <?php do_action( "uagb_single_post_after_title_{$attributes['post_type']}", get_the_ID(), $attributes ); ?>
571
+ </div>
572
+ <?php
573
+ }
574
+
575
+ /**
576
+ * Function Name: uagb_tm_get_cta.
577
+ *
578
+ * @param array $attributes attribute array.
579
+ */
580
+ function uagb_tm_get_cta( $attributes ) {
581
+
582
+ if ( ! $attributes['displayPostLink'] ) {
583
+ return;
584
+ }
585
+ $target = ( isset( $attributes['linkTarget'] ) && ( true == $attributes['linkTarget'] ) ) ? '_blank' : '_self';
586
+ do_action( "uagb_single_post_before_cta_{$attributes['post_type']}", get_the_ID(), $attributes );
587
+ ?>
588
+ <div class="uagb-timeline__link_parent">
589
+ <a class="uagb-timeline__link" href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel=" noopener noreferrer"><?php echo esc_html( $attributes['readMoreText'] ); ?></a>
590
+ </div>
591
+ <?php
592
+ do_action( "uagb_single_post_after_cta_{$attributes['post_type']}", get_the_ID(), $attributes );
593
+ }
594
+
595
+ /**
596
+ * Function uagb_tm_get_author.
597
+ *
598
+ * @param array $attributes attribute.
599
+ * @param array $author attribute.
600
+ */
601
+ function uagb_tm_get_author( $attributes, $author ) {
602
+
603
+ $output = '';
604
+ do_action( "uagb_single_post_before_meta_{$attributes['post_type']}", get_the_ID(), $attributes );
605
+ if ( isset( $attributes['displayPostAuthor'] ) && $attributes['displayPostAuthor'] ) {
606
+ $output .= sprintf(
607
+ '<div class="uagb-timeline__author"><span class="dashicons-admin-users dashicons"></span><a class="uagb-timeline__author-link" href="%2$s">%1$s</a></div>',
608
+ esc_html( get_the_author_meta( 'display_name', $author ) ),
609
+ esc_html( get_author_posts_url( $author ) )
610
+ );
611
+ }
612
+ echo $output;
613
+ do_action( "uagb_single_post_after_meta_{$attributes['post_type']}", get_the_ID(), $attributes );
614
+ }
615
+
616
+ /**
617
+ * Function uagb_tm_get_excerpt.
618
+ *
619
+ * @param array $attributes attribute.
620
+ */
621
+ function uagb_tm_get_excerpt( $attributes ) {
622
+
623
+ if ( ! $attributes['displayPostExcerpt'] ) {
624
+ return;
625
+ }
626
+
627
+ $excerpt = wp_trim_words( get_the_excerpt(), $attributes['exerptLength'] );
628
+ if ( ! $excerpt ) {
629
+ $excerpt = null;
630
+ }
631
+
632
+ $excerpt = apply_filters( "uagb_single_post_excerpt_{$attributes['post_type']}", $excerpt, get_the_ID(), $attributes );
633
+ do_action( "uagb_single_post_before_excerpt_{$attributes['post_type']}", get_the_ID(), $attributes );
634
+ ?>
635
+ <div class="uagb-timeline-desc-content">
636
+ <?php echo $excerpt; ?>
637
+ </div>
638
+ <?php
639
+ do_action( "uagb_single_post_after_excerpt_{$attributes['post_type']}", get_the_ID(), $attributes );
640
+ }
641
+
642
+ /**
643
+ * Function Name: uagb_tm_get_classes .
644
+ *
645
+ * @param array $attributes array of setting.
646
+ * @return string class name.
647
+ */
648
+ function uagb_tm_get_classes( $attributes ) {
649
+
650
+ // Arrow position.
651
+ $arrow_align_class = 'uagb-timeline__arrow-top' . ' ';
652
+ if ( 'center' === $attributes['arrowlinAlignment'] ) {
653
+ $arrow_align_class = 'uagb-timeline__arrow-center' . ' ';
654
+ } elseif ( 'bottom' === $attributes['arrowlinAlignment'] ) {
655
+ $arrow_align_class = 'uagb-timeline__arrow-bottom' . ' ';
656
+ }
657
+
658
+ // Alignmnet.
659
+ $align_class = 'uagb-timeline__center-block ' . ' ';
660
+
661
+ if ( 'left' === $attributes['timelinAlignment'] ) {
662
+ $align_class = 'uagb-timeline__left-block' . ' ';
663
+ } elseif ( 'right' === $attributes['timelinAlignment'] ) {
664
+ $align_class = 'uagb-timeline__right-block' . ' ';
665
+ }
666
+
667
+ $align_class .= $arrow_align_class . '';
668
+ $align_class .= 'uagb-timeline__responsive-' . $attributes['stack'] . ' uagb-timeline';
669
+
670
+ return $align_class;
671
+ }
672
+
673
+ /**
674
+ * Function Name: uagb_tm_get_align_classes description.
675
+ *
676
+ * @param array $attributes attribute array.
677
+ * @param string $index_val post index.
678
+ * @return string output HTML/String.
679
+ */
680
+ function uagb_tm_get_align_classes( $attributes, $index_val ) {
681
+
682
+ $align_class = '';
683
+ if ( 'left' === $attributes['timelinAlignment'] ) {
684
+ $align_class = 'uagb-timeline__widget uagb-timeline__left';
685
+ } elseif ( 'right' === $attributes['timelinAlignment'] ) {
686
+ $align_class = 'uagb-timeline__widget uagb-timeline__right';
687
+ } elseif ( 'center' == $attributes['timelinAlignment'] ) {
688
+ if ( '0' == $index_val % 2 ) {
689
+ $align_class = 'uagb-timeline__widget uagb-timeline__right';
690
+ } else {
691
+ $align_class = 'uagb-timeline__widget uagb-timeline__left';
692
+ }
693
+ }
694
+
695
+ return $align_class;
696
+ }
697
+
698
+ /**
699
+ * Function Name: uagb_tm_get_day_align_classes description.
700
+ *
701
+ * @param array $attributes attribute array.
702
+ * @param string $index_val post index.
703
+ * @return string output HTML/String.
704
+ */
705
+ function uagb_tm_get_day_align_classes( $attributes, $index_val ) {
706
+
707
+ $day_align_class = '';
708
+
709
+ if ( 'left' === $attributes['timelinAlignment'] ) {
710
+ $day_align_class = 'uagb-timeline__day-new uagb-timeline__day-left';
711
+ } elseif ( 'right' === $attributes['timelinAlignment'] ) {
712
+ $day_align_class = 'uagb-timeline__day-new uagb-timeline__day-right';
713
+ } elseif ( 'center' === $attributes['timelinAlignment'] ) {
714
+ if ( '0' == $index_val % 2 ) {
715
+ $day_align_class = 'uagb-timeline__day-new uagb-timeline__day-right';
716
+ } else {
717
+ $day_align_class = 'uagb-timeline__day-new uagb-timeline__day-left';
718
+ }
719
+ }
720
+
721
+ return $day_align_class;
722
+ }
723
+
724
+ /**
725
+ * Function Name: uagb_tm_get_post_content.
726
+ *
727
+ * @param array $attributes attribute array.
728
+ * @param array $recent_posts post array.
729
+ */
730
+ function uagb_tm_get_post_content( $attributes, $recent_posts ) {
731
+
732
+ $timelin_alignment = $attributes['timelinAlignment'];
733
+ $arrowlin_alignment = $attributes['arrowlinAlignment'];
734
+ $display_post_date = $attributes['displayPostDate'];
735
+ $posts_to_show = $attributes['postsToShow'];
736
+ $align = $attributes['align'];
737
+
738
+ $content_align_class = uagb_tm_get_align_classes( $attributes, 0 ); // Get classname for layout alignment.
739
+ $day_align_class = uagb_tm_get_day_align_classes( $attributes, 0 ); // Get classname for day alignment.
740
+ $display_inner_date = false;
741
+ ob_start();
742
+ ?>
743
+ <div class = "uagb-timeline__days">
744
+ <?php
745
+ $index = 0;
746
+ while ( $recent_posts->have_posts() ) {
747
+ $recent_posts->the_post();
748
+ global $post;
749
+
750
+ if ( 'center' === $timelin_alignment ) {
751
+ $display_inner_date = true;
752
+ $content_align_class = uagb_tm_get_align_classes( $attributes, $index );
753
+ $day_align_class = uagb_tm_get_day_align_classes( $attributes, $index );
754
+ }
755
+
756
+ ?>
757
+ <article class = "uagb-timeline__field uagb-timeline__field-wrap" key= "<?php echo $index; ?>">
758
+ <div class = "<?php echo $content_align_class; ?>">
759
+ <?php echo uagb_tm_get_icon( $attributes ); ?>
760
+ <div class = "<?php echo $day_align_class; ?>" >
761
+ <div class = "uagb-timeline__events-new">
762
+ <div class ="uagb-timeline__events-inner-new">
763
+ <div class = "uagb-timeline__date-hide uagb-timeline__date-inner" >
764
+ <?php echo uagb_tm_get_date( $attributes, 'uagb-timeline__inner-date-new' ); ?>
765
+ </div>
766
+ <?php echo uagb_tm_get_image( $attributes ); ?>
767
+
768
+ <div class = "uagb-content" >
769
+ <?php
770
+ uagb_tm_get_title( $attributes );
771
+ uagb_tm_get_author( $attributes, $post->post_author );
772
+ uagb_tm_get_excerpt( $attributes );
773
+ uagb_tm_get_cta( $attributes );
774
+ ?>
775
+ <div class = "uagb-timeline__arrow"></div>
776
+ </div>
777
+ </div>
778
+ </div>
779
+ </div>
780
+ <?php if ( $display_inner_date ) { ?>
781
+ <div class = "uagb-timeline__date-new" >
782
+ <?php echo uagb_tm_get_date( $attributes, 'uagb-timeline__date-new' ); ?>
783
+ </div>
784
+ <?php } ?>
785
+ </div>
786
+ </article>
787
+ <?php
788
+ $index++;
789
+ }
790
+ wp_reset_postdata();
791
+ ?>
792
+ </div>
793
+ <?php
794
+ return ob_get_clean();
795
+ }
dist/blocks/post/index.php CHANGED
@@ -1,1651 +1,1651 @@
1
- <?php
2
- /**
3
- * Server-side rendering for the post block.
4
- *
5
- * @since 0.0.1
6
- * @package UAGB
7
- */
8
-
9
- global $uagb_post_settings;
10
-
11
- /**
12
- * Renders the post carousel block on server.
13
- *
14
- * @param array $attributes Array of block attributes.
15
- *
16
- * @since 0.0.1
17
- */
18
- function uagb_post_carousel_callback( $attributes ) {
19
-
20
- $query = UAGB_Helper::get_query( $attributes, 'carousel' );
21
- global $uagb_post_settings;
22
-
23
- $uagb_post_settings['carousel'][ $attributes['block_id'] ] = $attributes;
24
-
25
- ob_start();
26
-
27
- uagb_get_post_html( $attributes, $query, 'carousel' );
28
- // Output the post markup.
29
- return ob_get_clean();
30
- }
31
-
32
- /**
33
- * Renders the post grid block on server.
34
- *
35
- * @param array $attributes Array of block attributes.
36
- *
37
- * @since 0.0.1
38
- */
39
- function uagb_post_grid_callback( $attributes ) {
40
-
41
- $query = UAGB_Helper::get_query( $attributes, 'grid' );
42
- global $uagb_post_settings;
43
-
44
- $uagb_post_settings['grid'][ $attributes['block_id'] ] = $attributes;
45
-
46
- ob_start();
47
-
48
- uagb_get_post_html( $attributes, $query, 'grid' );
49
- // Output the post markup.
50
- return ob_get_clean();
51
- }
52
-
53
- /**
54
- * Renders the post masonry block on server.
55
- *
56
- * @param array $attributes Array of block attributes.
57
- *
58
- * @since 0.0.1
59
- */
60
- function uagb_post_masonry_callback( $attributes ) {
61
-
62
- $query = UAGB_Helper::get_query( $attributes, 'masonry' );
63
- global $uagb_post_settings;
64
-
65
- $uagb_post_settings['masonry'][ $attributes['block_id'] ] = $attributes;
66
-
67
- ob_start();
68
- uagb_get_post_html( $attributes, $query, 'masonry' );
69
-
70
- // Output the post markup.
71
- return ob_get_clean();
72
- }
73
-
74
- add_action( 'wp_footer', 'uagb_post_block_add_script', 1000 );
75
-
76
- /**
77
- * Renders the post masonry related script.
78
- *
79
- * @since 0.0.1
80
- */
81
- function uagb_post_block_add_script() {
82
- global $uagb_post_settings;
83
-
84
- if ( isset( $uagb_post_settings['masonry'] ) && ! empty( $uagb_post_settings['masonry'] ) ) {
85
- foreach ( $uagb_post_settings['masonry'] as $key => $value ) {
86
- ?>
87
- <script type="text/javascript" id="uagb-post-masonry-script-<?php echo $key; ?>">
88
- ( function( $ ) {
89
-
90
- var $scope = $( '#uagb-post__masonry-<?php echo $key; ?>' );
91
- $scope.imagesLoaded( function() {
92
- $scope.find( '.is-masonry' ).isotope();
93
- });
94
-
95
- $( window ).resize( function() {
96
- $scope.find( '.is-masonry' ).isotope();
97
- } );
98
- } )( jQuery );
99
- </script>
100
- <?php
101
- }
102
- }
103
-
104
- if ( isset( $uagb_post_settings['carousel'] ) && ! empty( $uagb_post_settings['carousel'] ) ) {
105
- foreach ( $uagb_post_settings['carousel'] as $key => $value ) {
106
- $dots = ( 'dots' == $value['arrowDots'] || 'arrows_dots' == $value['arrowDots'] ) ? true : false;
107
- $arrows = ( 'arrows' == $value['arrowDots'] || 'arrows_dots' == $value['arrowDots'] ) ? true : false;
108
- ?>
109
- <script type="text/javascript" id="uagb-post-carousel-script-<?php echo $key; ?>">
110
- ( function( $ ) {
111
- var cols = parseInt( '<?php echo $value['columns']; ?>' );
112
- var scope = $( '#uagb-post__carousel-<?php echo $key; ?>' ).find( '.is-carousel' );
113
-
114
- if ( cols >= scope.children().length ) {
115
- return;
116
- }
117
-
118
- var slider_options = {
119
- 'slidesToShow' : cols,
120
- 'slidesToScroll' : 1,
121
- 'autoplaySpeed' : <?php echo $value['autoplaySpeed']; ?>,
122
- 'autoplay' : Boolean( '<?php echo $value['autoplay']; ?>' ),
123
- 'infinite' : Boolean( '<?php echo $value['infiniteLoop']; ?>' ),
124
- 'pauseOnHover' : Boolean( '<?php echo $value['pauseOnHover']; ?>' ),
125
- 'speed' : <?php echo $value['transitionSpeed']; ?>,
126
- 'arrows' : Boolean( '<?php echo $arrows; ?>' ),
127
- 'dots' : Boolean( '<?php echo $dots; ?>' ),
128
- 'rtl' : false,
129
- 'prevArrow' : '<button type=\"button\" data-role=\"none\" class=\"slick-prev\" aria-label=\"Previous\" tabindex=\"0\" role=\"button\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 256 512\"><path d=\"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z\"></path></svg><\/button>',
130
- 'nextArrow' : '<button type=\"button\" data-role=\"none\" class=\"slick-next\" aria-label=\"Next\" tabindex=\"0\" role=\"button\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 256 512\"><path d=\"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z\"></path></svg><\/button>',
131
- 'responsive' : [
132
- {
133
- 'breakpoint' : 1024,
134
- 'settings' : {
135
- 'slidesToShow' : 2,
136
- 'slidesToScroll' : 1,
137
- }
138
- },
139
- {
140
- 'breakpoint' : 767,
141
- 'settings' : {
142
- 'slidesToShow' : 1,
143
- 'slidesToScroll' : 1,
144
- }
145
- }
146
- ]
147
- };
148
-
149
- scope.slick( slider_options );
150
-
151
- } )( jQuery );
152
- </script>
153
- <?php
154
- }
155
- }
156
- }
157
-
158
- /**
159
- * Renders the post grid block on server.
160
- *
161
- * @param array $attributes Array of block attributes.
162
- *
163
- * @param object $query WP_Query object.
164
- * @param string $layout post grid/masonry/carousel layout.
165
- * @since 0.0.1
166
- */
167
- function uagb_get_post_html( $attributes, $query, $layout ) {
168
-
169
- $attributes['post_type'] = $layout;
170
-
171
- $wrap = array(
172
- 'uagb-post__items uagb-post__columns-' . $attributes['columns'],
173
- 'is-' . $layout,
174
- 'uagb-post__columns-tablet-' . $attributes['tcolumns'],
175
- 'uagb-post__columns-mobile-' . $attributes['mcolumns'],
176
- );
177
-
178
- $outerwrap = array(
179
- 'uagb-post-grid',
180
- ( isset( $attributes['className'] ) ) ? $attributes['className'] : '',
181
- 'uagb-post__image-position-' . $attributes['imgPosition'],
182
- );
183
-
184
- $block_id = 'uagb-post__' . $layout . '-' . $attributes['block_id'];
185
-
186
- switch ( $layout ) {
187
- case 'masonry':
188
- break;
189
-
190
- case 'grid':
191
- if ( $attributes['equalHeight'] ) {
192
- array_push( $wrap, 'uagb-post__equal-height' );
193
- }
194
- break;
195
-
196
- case 'carousel':
197
- array_push( $outerwrap, 'uagb-post__arrow-outside' );
198
- if ( $query->post_count > $attributes['columns'] ) {
199
- array_push( $outerwrap, 'uagb-slick-carousel' );
200
- }
201
- break;
202
-
203
- default:
204
- // Nothing to do here.
205
- break;
206
- }
207
- ?>
208
- <div id="<?php echo $block_id; ?>" class="<?php echo implode( ' ', $outerwrap ); ?>">
209
-
210
- <div class="<?php echo implode( ' ', $wrap ); ?>">
211
-
212
- <?php
213
- while ( $query->have_posts() ) {
214
- $query->the_post();
215
- include 'single.php';
216
- }
217
- wp_reset_postdata();
218
- ?>
219
- </div>
220
- </div>
221
- <?php
222
- }
223
-
224
- /**
225
- * Registers the `core/latest-posts` block on server.
226
- *
227
- * @since 0.0.1
228
- */
229
- function uagb_register_blocks() {
230
- // Check if the register function exists.
231
- if ( ! function_exists( 'register_block_type' ) ) {
232
- return;
233
- }
234
-
235
- register_block_type(
236
- 'uagb/post-grid',
237
- array(
238
- 'attributes' => array(
239
- 'block_id' => array(
240
- 'type' => 'string',
241
- 'default' => 'not_set',
242
- ),
243
- 'categories' => array(
244
- 'type' => 'string',
245
- ),
246
- 'postType' => array(
247
- 'type' => 'string',
248
- 'default' => 'post',
249
- ),
250
- 'taxonomyType' => array(
251
- 'type' => 'string',
252
- 'default' => 'category',
253
- ),
254
- 'postsToShow' => array(
255
- 'type' => 'number',
256
- 'default' => 6,
257
- ),
258
- 'displayPostDate' => array(
259
- 'type' => 'boolean',
260
- 'default' => true,
261
- ),
262
- 'displayPostExcerpt' => array(
263
- 'type' => 'boolean',
264
- 'default' => true,
265
- ),
266
- 'excerptLength' => array(
267
- 'type' => 'number',
268
- 'default' => 25,
269
- ),
270
- 'displayPostAuthor' => array(
271
- 'type' => 'boolean',
272
- 'default' => true,
273
- ),
274
- 'displayPostComment' => array(
275
- 'type' => 'boolean',
276
- 'default' => true,
277
- ),
278
- 'displayPostImage' => array(
279
- 'type' => 'boolean',
280
- 'default' => true,
281
- ),
282
- 'imgSize' => array(
283
- 'type' => 'string',
284
- 'default' => 'large',
285
- ),
286
- 'imgPosition' => array(
287
- 'type' => 'string',
288
- 'default' => 'top',
289
- ),
290
- 'linkBox' => array(
291
- 'type' => 'boolean',
292
- ),
293
- 'bgOverlayColor' => array(
294
- 'type' => 'string',
295
- 'default' => '#ffffff',
296
- ),
297
- 'overlayOpacity' => array(
298
- 'type' => 'number',
299
- 'default' => '50',
300
- ),
301
- 'displayPostLink' => array(
302
- 'type' => 'boolean',
303
- 'default' => true,
304
- ),
305
- 'newTab' => array(
306
- 'type' => 'boolean',
307
- 'default' => false,
308
- ),
309
- 'ctaText' => array(
310
- 'type' => 'string',
311
- 'default' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
312
- ),
313
- 'borderWidth' => array(
314
- 'type' => 'number',
315
- 'default' => 1,
316
- ),
317
- 'btnHPadding' => array(
318
- 'type' => 'number',
319
- 'default' => 10,
320
- ),
321
- 'btnVPadding' => array(
322
- 'type' => 'number',
323
- 'default' => 5,
324
- ),
325
- 'borderStyle' => array(
326
- 'type' => 'string',
327
- 'default' => 'none',
328
- ),
329
- 'borderColor' => array(
330
- 'type' => 'string',
331
- 'default' => '#3b3b3b',
332
- ),
333
- 'borderHColor' => array(
334
- 'type' => 'string',
335
- ),
336
- 'borderRadius' => array(
337
- 'type' => 'number',
338
- 'default' => 0,
339
- ),
340
- 'columns' => array(
341
- 'type' => 'number',
342
- 'default' => 3,
343
- ),
344
- 'tcolumns' => array(
345
- 'type' => 'number',
346
- 'default' => 2,
347
- ),
348
- 'mcolumns' => array(
349
- 'type' => 'number',
350
- 'default' => 1,
351
- ),
352
- 'align' => array(
353
- 'type' => 'string',
354
- 'default' => 'left',
355
- ),
356
- 'width' => array(
357
- 'type' => 'string',
358
- 'default' => 'wide',
359
- ),
360
- 'order' => array(
361
- 'type' => 'string',
362
- 'default' => 'desc',
363
- ),
364
- 'orderBy' => array(
365
- 'type' => 'string',
366
- 'default' => 'date',
367
- ),
368
- 'rowGap' => array(
369
- 'type' => 'number',
370
- 'default' => 20,
371
- ),
372
- 'columnGap' => array(
373
- 'type' => 'number',
374
- 'default' => 20,
375
- ),
376
- 'bgColor' => array(
377
- 'type' => 'string',
378
- 'default' => '#e4e4e4',
379
- ),
380
- 'titleColor' => array(
381
- 'type' => 'string',
382
- 'default' => '#3b3b3b',
383
- ),
384
- 'titleTag' => array(
385
- 'type' => 'string',
386
- 'default' => 'h3',
387
- ),
388
- 'titleFontSize' => array(
389
- 'type' => 'number',
390
- 'default' => '',
391
- ),
392
- 'titleFontSizeType' => array(
393
- 'type' => 'string',
394
- 'default' => 'px',
395
- ),
396
- 'titleFontSizeMobile' => array(
397
- 'type' => 'number',
398
- ),
399
- 'titleFontSizeTablet' => array(
400
- 'type' => 'number',
401
- ),
402
- 'titleFontFamily' => array(
403
- 'type' => 'string',
404
- 'default' => '',
405
- ),
406
- 'titleFontWeight' => array(
407
- 'type' => 'string',
408
- ),
409
- 'titleFontSubset' => array(
410
- 'type' => 'string',
411
- ),
412
- 'titleLineHeightType' => array(
413
- 'type' => 'string',
414
- 'default' => 'em',
415
- ),
416
- 'titleLineHeight' => array(
417
- 'type' => 'number',
418
- ),
419
- 'titleLineHeightTablet' => array(
420
- 'type' => 'number',
421
- ),
422
- 'titleLineHeightMobile' => array(
423
- 'type' => 'number',
424
- ),
425
- 'titleLoadGoogleFonts' => array(
426
- 'type' => 'boolean',
427
- 'default' => false,
428
- ),
429
-
430
- 'metaFontSize' => array(
431
- 'type' => 'number',
432
- 'default' => '',
433
- ),
434
- 'metaFontSizeType' => array(
435
- 'type' => 'string',
436
- 'default' => 'px',
437
- ),
438
- 'metaFontSizeMobile' => array(
439
- 'type' => 'number',
440
- ),
441
- 'metaFontSizeTablet' => array(
442
- 'type' => 'number',
443
- ),
444
- 'metaFontFamily' => array(
445
- 'type' => 'string',
446
- 'default' => '',
447
- ),
448
- 'metaFontWeight' => array(
449
- 'type' => 'string',
450
- ),
451
- 'metaFontSubset' => array(
452
- 'type' => 'string',
453
- ),
454
- 'metaLineHeightType' => array(
455
- 'type' => 'string',
456
- 'default' => 'em',
457
- ),
458
- 'metaLineHeight' => array(
459
- 'type' => 'number',
460
- ),
461
- 'metaLineHeightTablet' => array(
462
- 'type' => 'number',
463
- ),
464
- 'metaLineHeightMobile' => array(
465
- 'type' => 'number',
466
- ),
467
- 'metaLoadGoogleFonts' => array(
468
- 'type' => 'boolean',
469
- 'default' => false,
470
- ),
471
-
472
- 'excerptFontSize' => array(
473
- 'type' => 'number',
474
- 'default' => '',
475
- ),
476
- 'excerptFontSizeType' => array(
477
- 'type' => 'string',
478
- 'default' => 'px',
479
- ),
480
- 'excerptFontSizeMobile' => array(
481
- 'type' => 'number',
482
- ),
483
- 'excerptFontSizeTablet' => array(
484
- 'type' => 'number',
485
- ),
486
- 'excerptFontFamily' => array(
487
- 'type' => 'string',
488
- 'default' => '',
489
- ),
490
- 'excerptFontWeight' => array(
491
- 'type' => 'string',
492
- ),
493
- 'excerptFontSubset' => array(
494
- 'type' => 'string',
495
- ),
496
- 'excerptLineHeightType' => array(
497
- 'type' => 'string',
498
- 'default' => 'em',
499
- ),
500
- 'excerptLineHeight' => array(
501
- 'type' => 'number',
502
- ),
503
- 'excerptLineHeightTablet' => array(
504
- 'type' => 'number',
505
- ),
506
- 'excerptLineHeightMobile' => array(
507
- 'type' => 'number',
508
- ),
509
- 'excerptLoadGoogleFonts' => array(
510
- 'type' => 'boolean',
511
- 'default' => false,
512
- ),
513
-
514
- 'ctaFontSize' => array(
515
- 'type' => 'number',
516
- 'default' => '',
517
- ),
518
- 'ctaFontSizeType' => array(
519
- 'type' => 'string',
520
- 'default' => 'px',
521
- ),
522
- 'ctaFontSizeMobile' => array(
523
- 'type' => 'number',
524
- ),
525
- 'ctaFontSizeTablet' => array(
526
- 'type' => 'number',
527
- ),
528
- 'ctaFontFamily' => array(
529
- 'type' => 'string',
530
- 'default' => '',
531
- ),
532
- 'ctaFontWeight' => array(
533
- 'type' => 'string',
534
- ),
535
- 'ctaFontSubset' => array(
536
- 'type' => 'string',
537
- ),
538
- 'ctaLineHeightType' => array(
539
- 'type' => 'string',
540
- 'default' => 'em',
541
- ),
542
- 'ctaLineHeight' => array(
543
- 'type' => 'number',
544
- ),
545
- 'ctaLineHeightTablet' => array(
546
- 'type' => 'number',
547
- ),
548
- 'ctaLineHeightMobile' => array(
549
- 'type' => 'number',
550
- ),
551
- 'ctaLoadGoogleFonts' => array(
552
- 'type' => 'boolean',
553
- 'default' => false,
554
- ),
555
- 'metaColor' => array(
556
- 'type' => 'string',
557
- 'default' => '#777777',
558
- ),
559
- 'excerptColor' => array(
560
- 'type' => 'string',
561
- 'default' => '',
562
- ),
563
- 'ctaColor' => array(
564
- 'type' => 'string',
565
- 'default' => '#ffffff',
566
- ),
567
- 'ctaBgColor' => array(
568
- 'type' => 'string',
569
- 'default' => '#333333',
570
- ),
571
- 'ctaHColor' => array(
572
- 'type' => 'string',
573
- ),
574
- 'ctaBgHColor' => array(
575
- 'type' => 'string',
576
- ),
577
- 'contentPadding' => array(
578
- 'type' => 'number',
579
- 'default' => 20,
580
- ),
581
- 'contentPaddingMobile' => array(
582
- 'type' => 'number',
583
- ),
584
- 'titleBottomSpace' => array(
585
- 'type' => 'number',
586
- 'default' => 15,
587
- ),
588
- 'metaBottomSpace' => array(
589
- 'type' => 'number',
590
- 'default' => 15,
591
- ),
592
- 'excerptBottomSpace' => array(
593
- 'type' => 'number',
594
- 'default' => 25,
595
- ),
596
- 'equalHeight' => array(
597
- 'type' => 'boolean',
598
- 'default' => true,
599
- ),
600
- ),
601
- 'render_callback' => 'uagb_post_grid_callback',
602
- )
603
- );
604
-
605
- register_block_type(
606
- 'uagb/post-carousel',
607
- array(
608
- 'attributes' => array(
609
- 'block_id' => array(
610
- 'type' => 'string',
611
- 'default' => 'not_set',
612
- ),
613
- 'categories' => array(
614
- 'type' => 'string',
615
- ),
616
- 'postType' => array(
617
- 'type' => 'string',
618
- 'default' => 'post',
619
- ),
620
- 'taxonomyType' => array(
621
- 'type' => 'string',
622
- 'default' => 'category',
623
- ),
624
- 'postsToShow' => array(
625
- 'type' => 'number',
626
- 'default' => 6,
627
- ),
628
- 'displayPostDate' => array(
629
- 'type' => 'boolean',
630
- 'default' => true,
631
- ),
632
- 'displayPostExcerpt' => array(
633
- 'type' => 'boolean',
634
- 'default' => true,
635
- ),
636
- 'excerptLength' => array(
637
- 'type' => 'number',
638
- 'default' => 25,
639
- ),
640
- 'displayPostAuthor' => array(
641
- 'type' => 'boolean',
642
- 'default' => true,
643
- ),
644
- 'displayPostComment' => array(
645
- 'type' => 'boolean',
646
- 'default' => true,
647
- ),
648
- 'displayPostImage' => array(
649
- 'type' => 'boolean',
650
- 'default' => true,
651
- ),
652
- 'imgSize' => array(
653
- 'type' => 'string',
654
- 'default' => 'large',
655
- ),
656
- 'imgPosition' => array(
657
- 'type' => 'string',
658
- 'default' => 'top',
659
- ),
660
- 'linkBox' => array(
661
- 'type' => 'boolean',
662
- ),
663
- 'bgOverlayColor' => array(
664
- 'type' => 'string',
665
- 'default' => '#ffffff',
666
- ),
667
- 'overlayOpacity' => array(
668
- 'type' => 'number',
669
- 'default' => '50',
670
- ),
671
- 'displayPostLink' => array(
672
- 'type' => 'boolean',
673
- 'default' => true,
674
- ),
675
- 'newTab' => array(
676
- 'type' => 'boolean',
677
- 'default' => false,
678
- ),
679
- 'ctaText' => array(
680
- 'type' => 'string',
681
- 'default' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
682
- ),
683
- 'borderWidth' => array(
684
- 'type' => 'number',
685
- 'default' => 1,
686
- ),
687
- 'btnHPadding' => array(
688
- 'type' => 'number',
689
- 'default' => 10,
690
- ),
691
- 'btnVPadding' => array(
692
- 'type' => 'number',
693
- 'default' => 5,
694
- ),
695
- 'borderStyle' => array(
696
- 'type' => 'string',
697
- 'default' => 'none',
698
- ),
699
- 'borderColor' => array(
700
- 'type' => 'string',
701
- 'default' => '#3b3b3b',
702
- ),
703
- 'borderHColor' => array(
704
- 'type' => 'string',
705
- ),
706
- 'borderRadius' => array(
707
- 'type' => 'number',
708
- 'default' => 0,
709
- ),
710
- 'columns' => array(
711
- 'type' => 'number',
712
- 'default' => 3,
713
- ),
714
- 'tcolumns' => array(
715
- 'type' => 'number',
716
- 'default' => 2,
717
- ),
718
- 'mcolumns' => array(
719
- 'type' => 'number',
720
- 'default' => 1,
721
- ),
722
- 'align' => array(
723
- 'type' => 'string',
724
- 'default' => 'left',
725
- ),
726
- 'width' => array(
727
- 'type' => 'string',
728
- 'default' => 'wide',
729
- ),
730
- 'order' => array(
731
- 'type' => 'string',
732
- 'default' => 'desc',
733
- ),
734
- 'orderBy' => array(
735
- 'type' => 'string',
736
- 'default' => 'date',
737
- ),
738
- 'rowGap' => array(
739
- 'type' => 'number',
740
- 'default' => 20,
741
- ),
742
- 'columnGap' => array(
743
- 'type' => 'number',
744
- 'default' => 20,
745
- ),
746
- 'bgColor' => array(
747
- 'type' => 'string',
748
- 'default' => '#e4e4e4',
749
- ),
750
- 'titleColor' => array(
751
- 'type' => 'string',
752
- 'default' => '#3b3b3b',
753
- ),
754
- 'titleTag' => array(
755
- 'type' => 'string',
756
- 'default' => 'h3',
757
- ),
758
- 'titleFontSize' => array(
759
- 'type' => 'number',
760
- 'default' => '',
761
- ),
762
- 'titleFontSizeType' => array(
763
- 'type' => 'string',
764
- 'default' => 'px',
765
- ),
766
- 'titleFontSizeMobile' => array(
767
- 'type' => 'number',
768
- ),
769
- 'titleFontSizeTablet' => array(
770
- 'type' => 'number',
771
- ),
772
- 'titleFontFamily' => array(
773
- 'type' => 'string',
774
- 'default' => '',
775
- ),
776
- 'titleFontWeight' => array(
777
- 'type' => 'string',
778
- ),
779
- 'titleFontSubset' => array(
780
- 'type' => 'string',
781
- ),
782
- 'titleLineHeightType' => array(
783
- 'type' => 'string',
784
- 'default' => 'em',
785
- ),
786
- 'titleLineHeight' => array(
787
- 'type' => 'number',
788
- ),
789
- 'titleLineHeightTablet' => array(
790
- 'type' => 'number',
791
- ),
792
- 'titleLineHeightMobile' => array(
793
- 'type' => 'number',
794
- ),
795
- 'titleLoadGoogleFonts' => array(
796
- 'type' => 'boolean',
797
- 'default' => false,
798
- ),
799
- 'metaFontSize' => array(
800
- 'type' => 'number',
801
- 'default' => '',
802
- ),
803
- 'metaFontSizeType' => array(
804
- 'type' => 'string',
805
- 'default' => 'px',
806
- ),
807
- 'metaFontSizeMobile' => array(
808
- 'type' => 'number',
809
- ),
810
- 'metaFontSizeTablet' => array(
811
- 'type' => 'number',
812
- ),
813
- 'metaFontFamily' => array(
814
- 'type' => 'string',
815
- 'default' => '',
816
- ),
817
- 'metaFontWeight' => array(
818
- 'type' => 'string',
819
- ),
820
- 'metaFontSubset' => array(
821
- 'type' => 'string',
822
- ),
823
- 'metaLineHeightType' => array(
824
- 'type' => 'string',
825
- 'default' => 'em',
826
- ),
827
- 'metaLineHeight' => array(
828
- 'type' => 'number',
829
- ),
830
- 'metaLineHeightTablet' => array(
831
- 'type' => 'number',
832
- ),
833
- 'metaLineHeightMobile' => array(
834
- 'type' => 'number',
835
- ),
836
- 'metaLoadGoogleFonts' => array(
837
- 'type' => 'boolean',
838
- 'default' => false,
839
- ),
840
- 'excerptFontSize' => array(
841
- 'type' => 'number',
842
- 'default' => '',
843
- ),
844
- 'excerptFontSizeType' => array(
845
- 'type' => 'string',
846
- 'default' => 'px',
847
- ),
848
- 'excerptFontSizeMobile' => array(
849
- 'type' => 'number',
850
- ),
851
- 'excerptFontSizeTablet' => array(
852
- 'type' => 'number',
853
- ),
854
- 'excerptFontFamily' => array(
855
- 'type' => 'string',
856
- 'default' => '',
857
- ),
858
- 'excerptFontWeight' => array(
859
- 'type' => 'string',
860
- ),
861
- 'excerptFontSubset' => array(
862
- 'type' => 'string',
863
- ),
864
- 'excerptLineHeightType' => array(
865
- 'type' => 'string',
866
- 'default' => 'em',
867
- ),
868
- 'excerptLineHeight' => array(
869
- 'type' => 'number',
870
- ),
871
- 'excerptLineHeightTablet' => array(
872
- 'type' => 'number',
873
- ),
874
- 'excerptLineHeightMobile' => array(
875
- 'type' => 'number',
876
- ),
877
- 'excerptLoadGoogleFonts' => array(
878
- 'type' => 'boolean',
879
- 'default' => false,
880
- ),
881
- 'ctaFontSize' => array(
882
- 'type' => 'number',
883
- 'default' => '',
884
- ),
885
- 'ctaFontSizeType' => array(
886
- 'type' => 'string',
887
- 'default' => 'px',
888
- ),
889
- 'ctaFontSizeMobile' => array(
890
- 'type' => 'number',
891
- ),
892
- 'ctaFontSizeTablet' => array(
893
- 'type' => 'number',
894
- ),
895
- 'ctaFontFamily' => array(
896
- 'type' => 'string',
897
- 'default' => '',
898
- ),
899
- 'ctaFontWeight' => array(
900
- 'type' => 'string',
901
- ),
902
- 'ctaFontSubset' => array(
903
- 'type' => 'string',
904
- ),
905
- 'ctaLineHeightType' => array(
906
- 'type' => 'string',
907
- 'default' => 'em',
908
- ),
909
- 'ctaLineHeight' => array(
910
- 'type' => 'number',
911
- ),
912
- 'ctaLineHeightTablet' => array(
913
- 'type' => 'number',
914
- ),
915
- 'ctaLineHeightMobile' => array(
916
- 'type' => 'number',
917
- ),
918
- 'ctaLoadGoogleFonts' => array(
919
- 'type' => 'boolean',
920
- 'default' => false,
921
- ),
922
- 'metaColor' => array(
923
- 'type' => 'string',
924
- 'default' => '#777777',
925
- ),
926
- 'excerptColor' => array(
927
- 'type' => 'string',
928
- 'default' => '',
929
- ),
930
- 'ctaColor' => array(
931
- 'type' => 'string',
932
- 'default' => '#ffffff',
933
- ),
934
- 'ctaBgColor' => array(
935
- 'type' => 'string',
936
- 'default' => '#333333',
937
- ),
938
- 'ctaHColor' => array(
939
- 'type' => 'string',
940
- ),
941
- 'ctaBgHColor' => array(
942
- 'type' => 'string',
943
- ),
944
- 'contentPadding' => array(
945
- 'type' => 'number',
946
- 'default' => 20,
947
- ),
948
- 'contentPaddingMobile' => array(
949
- 'type' => 'number',
950
- ),
951
- 'titleBottomSpace' => array(
952
- 'type' => 'number',
953
- 'default' => 15,
954
- ),
955
- 'metaBottomSpace' => array(
956
- 'type' => 'number',
957
- 'default' => 15,
958
- ),
959
- 'excerptBottomSpace' => array(
960
- 'type' => 'number',
961
- 'default' => 25,
962
- ),
963
- 'pauseOnHover' => array(
964
- 'type' => 'boolean',
965
- 'default' => true,
966
- ),
967
- 'infiniteLoop' => array(
968
- 'type' => 'boolean',
969
- 'default' => true,
970
- ),
971
- 'transitionSpeed' => array(
972
- 'type' => 'number',
973
- 'default' => 500,
974
- ),
975
- 'arrowDots' => array(
976
- 'type' => 'string',
977
- 'default' => 'arrows_dots',
978
- ),
979
- 'autoplay' => array(
980
- 'type' => 'boolean',
981
- 'default' => true,
982
- ),
983
- 'autoplaySpeed' => array(
984
- 'type' => 'number',
985
- 'default' => 2000,
986
- ),
987
- 'arrowSize' => array(
988
- 'type' => 'number',
989
- 'default' => 20,
990
- ),
991
- 'arrowBorderSize' => array(
992
- 'type' => 'number',
993
- 'default' => 1,
994
- ),
995
- 'arrowBorderRadius' => array(
996
- 'type' => 'number',
997
- 'default' => 0,
998
- ),
999
- 'arrowColor' => array(
1000
- 'type' => 'string',
1001
- 'default' => '#aaaaaa',
1002
- ),
1003
- ),
1004
- 'render_callback' => 'uagb_post_carousel_callback',
1005
- )
1006
- );
1007
-
1008
- register_block_type(
1009
- 'uagb/post-masonry',
1010
- array(
1011
- 'attributes' => array(
1012
- 'block_id' => array(
1013
- 'type' => 'string',
1014
- 'default' => 'not_set',
1015
- ),
1016
- 'categories' => array(
1017
- 'type' => 'string',
1018
- ),
1019
- 'postType' => array(
1020
- 'type' => 'string',
1021
- 'default' => 'post',
1022
- ),
1023
- 'taxonomyType' => array(
1024
- 'type' => 'string',
1025
- 'default' => 'category',
1026
- ),
1027
- 'postsToShow' => array(
1028
- 'type' => 'number',
1029
- 'default' => 6,
1030
- ),
1031
- 'displayPostDate' => array(
1032
- 'type' => 'boolean',
1033
- 'default' => true,
1034
- ),
1035
- 'displayPostExcerpt' => array(
1036
- 'type' => 'boolean',
1037
- 'default' => true,
1038
- ),
1039
- 'excerptLength' => array(
1040
- 'type' => 'number',
1041
- 'default' => 25,
1042
- ),
1043
- 'displayPostAuthor' => array(
1044
- 'type' => 'boolean',
1045
- 'default' => true,
1046
- ),
1047
- 'displayPostComment' => array(
1048
- 'type' => 'boolean',
1049
- 'default' => true,
1050
- ),
1051
- 'displayPostImage' => array(
1052
- 'type' => 'boolean',
1053
- 'default' => true,
1054
- ),
1055
- 'imgSize' => array(
1056
- 'type' => 'string',
1057
- 'default' => 'large',
1058
- ),
1059
- 'imgPosition' => array(
1060
- 'type' => 'string',
1061
- 'default' => 'top',
1062
- ),
1063
- 'linkBox' => array(
1064
- 'type' => 'boolean',
1065
- ),
1066
- 'bgOverlayColor' => array(
1067
- 'type' => 'string',
1068
- 'default' => '#ffffff',
1069
- ),
1070
- 'overlayOpacity' => array(
1071
- 'type' => 'number',
1072
- 'default' => '50',
1073
- ),
1074
- 'displayPostLink' => array(
1075
- 'type' => 'boolean',
1076
- 'default' => true,
1077
- ),
1078
- 'newTab' => array(
1079
- 'type' => 'boolean',
1080
- 'default' => false,
1081
- ),
1082
- 'ctaText' => array(
1083
- 'type' => 'string',
1084
- 'default' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1085
- ),
1086
- 'borderWidth' => array(
1087
- 'type' => 'number',
1088
- 'default' => 1,
1089
- ),
1090
- 'btnHPadding' => array(
1091
- 'type' => 'number',
1092
- 'default' => 10,
1093
- ),
1094
- 'btnVPadding' => array(
1095
- 'type' => 'number',
1096
- 'default' => 5,
1097
- ),
1098
- 'borderStyle' => array(
1099
- 'type' => 'string',
1100
- 'default' => 'none',
1101
- ),
1102
- 'borderColor' => array(
1103
- 'type' => 'string',
1104
- 'default' => '#3b3b3b',
1105
- ),
1106
- 'borderHColor' => array(
1107
- 'type' => 'string',
1108
- ),
1109
- 'borderRadius' => array(
1110
- 'type' => 'number',
1111
- 'default' => 0,
1112
- ),
1113
- 'columns' => array(
1114
- 'type' => 'number',
1115
- 'default' => 3,
1116
- ),
1117
- 'tcolumns' => array(
1118
- 'type' => 'number',
1119
- 'default' => 2,
1120
- ),
1121
- 'mcolumns' => array(
1122
- 'type' => 'number',
1123
- 'default' => 1,
1124
- ),
1125
- 'align' => array(
1126
- 'type' => 'string',
1127
- 'default' => 'left',
1128
- ),
1129
- 'width' => array(
1130
- 'type' => 'string',
1131
- 'default' => 'wide',
1132
- ),
1133
- 'order' => array(
1134
- 'type' => 'string',
1135
- 'default' => 'desc',
1136
- ),
1137
- 'orderBy' => array(
1138
- 'type' => 'string',
1139
- 'default' => 'date',
1140
- ),
1141
- 'rowGap' => array(
1142
- 'type' => 'number',
1143
- 'default' => 20,
1144
- ),
1145
- 'columnGap' => array(
1146
- 'type' => 'number',
1147
- 'default' => 20,
1148
- ),
1149
- 'bgColor' => array(
1150
- 'type' => 'string',
1151
- 'default' => '#e4e4e4',
1152
- ),
1153
- 'titleColor' => array(
1154
- 'type' => 'string',
1155
- 'default' => '#3b3b3b',
1156
- ),
1157
- 'titleTag' => array(
1158
- 'type' => 'string',
1159
- 'default' => 'h3',
1160
- ),
1161
- 'titleFontSize' => array(
1162
- 'type' => 'number',
1163
- 'default' => '',
1164
- ),
1165
- 'titleFontSizeType' => array(
1166
- 'type' => 'string',
1167
- 'default' => 'px',
1168
- ),
1169
- 'titleFontSizeMobile' => array(
1170
- 'type' => 'number',
1171
- ),
1172
- 'titleFontSizeTablet' => array(
1173
- 'type' => 'number',
1174
- ),
1175
- 'titleFontFamily' => array(
1176
- 'type' => 'string',
1177
- 'default' => '',
1178
- ),
1179
- 'titleFontWeight' => array(
1180
- 'type' => 'string',
1181
- ),
1182
- 'titleFontSubset' => array(
1183
- 'type' => 'string',
1184
- ),
1185
- 'titleLineHeightType' => array(
1186
- 'type' => 'string',
1187
- 'default' => 'em',
1188
- ),
1189
- 'titleLineHeight' => array(
1190
- 'type' => 'number',
1191
- ),
1192
- 'titleLineHeightTablet' => array(
1193
- 'type' => 'number',
1194
- ),
1195
- 'titleLineHeightMobile' => array(
1196
- 'type' => 'number',
1197
- ),
1198
- 'titleLoadGoogleFonts' => array(
1199
- 'type' => 'boolean',
1200
- 'default' => false,
1201
- ),
1202
-
1203
- 'metaFontSize' => array(
1204
- 'type' => 'number',
1205
- 'default' => '',
1206
- ),
1207
- 'metaFontSizeType' => array(
1208
- 'type' => 'string',
1209
- 'default' => 'px',
1210
- ),
1211
- 'metaFontSizeMobile' => array(
1212
- 'type' => 'number',
1213
- ),
1214
- 'metaFontSizeTablet' => array(
1215
- 'type' => 'number',
1216
- ),
1217
- 'metaFontFamily' => array(
1218
- 'type' => 'string',
1219
- 'default' => '',
1220
- ),
1221
- 'metaFontWeight' => array(
1222
- 'type' => 'string',
1223
- ),
1224
- 'metaFontSubset' => array(
1225
- 'type' => 'string',
1226
- ),
1227
- 'metaLineHeightType' => array(
1228
- 'type' => 'string',
1229
- 'default' => 'em',
1230
- ),
1231
- 'metaLineHeight' => array(
1232
- 'type' => 'number',
1233
- ),
1234
- 'metaLineHeightTablet' => array(
1235
- 'type' => 'number',
1236
- ),
1237
- 'metaLineHeightMobile' => array(
1238
- 'type' => 'number',
1239
- ),
1240
- 'metaLoadGoogleFonts' => array(
1241
- 'type' => 'boolean',
1242
- 'default' => false,
1243
- ),
1244
- 'excerptFontSize' => array(
1245
- 'type' => 'number',
1246
- 'default' => '',
1247
- ),
1248
- 'excerptFontSizeType' => array(
1249
- 'type' => 'string',
1250
- 'default' => 'px',
1251
- ),
1252
- 'excerptFontSizeMobile' => array(
1253
- 'type' => 'number',
1254
- ),
1255
- 'excerptFontSizeTablet' => array(
1256
- 'type' => 'number',
1257
- ),
1258
- 'excerptFontFamily' => array(
1259
- 'type' => 'string',
1260
- 'default' => '',
1261
- ),
1262
- 'excerptFontWeight' => array(
1263
- 'type' => 'string',
1264
- ),
1265
- 'excerptFontSubset' => array(
1266
- 'type' => 'string',
1267
- ),
1268
- 'excerptLineHeightType' => array(
1269
- 'type' => 'string',
1270
- 'default' => 'em',
1271
- ),
1272
- 'excerptLineHeight' => array(
1273
- 'type' => 'number',
1274
- ),
1275
- 'excerptLineHeightTablet' => array(
1276
- 'type' => 'number',
1277
- ),
1278
- 'excerptLineHeightMobile' => array(
1279
- 'type' => 'number',
1280
- ),
1281
- 'excerptLoadGoogleFonts' => array(
1282
- 'type' => 'boolean',
1283
- 'default' => false,
1284
- ),
1285
- 'ctaFontSize' => array(
1286
- 'type' => 'number',
1287
- 'default' => '',
1288
- ),
1289
- 'ctaFontSizeType' => array(
1290
- 'type' => 'string',
1291
- 'default' => 'px',
1292
- ),
1293
- 'ctaFontSizeMobile' => array(
1294
- 'type' => 'number',
1295
- ),
1296
- 'ctaFontSizeTablet' => array(
1297
- 'type' => 'number',
1298
- ),
1299
- 'ctaFontFamily' => array(
1300
- 'type' => 'string',
1301
- 'default' => '',
1302
- ),
1303
- 'ctaFontWeight' => array(
1304
- 'type' => 'string',
1305
- ),
1306
- 'ctaFontSubset' => array(
1307
- 'type' => 'string',
1308
- ),
1309
- 'ctaLineHeightType' => array(
1310
- 'type' => 'string',
1311
- 'default' => 'em',
1312
- ),
1313
- 'ctaLineHeight' => array(
1314
- 'type' => 'number',
1315
- ),
1316
- 'ctaLineHeightTablet' => array(
1317
- 'type' => 'number',
1318
- ),
1319
- 'ctaLineHeightMobile' => array(
1320
- 'type' => 'number',
1321
- ),
1322
- 'ctaLoadGoogleFonts' => array(
1323
- 'type' => 'boolean',
1324
- 'default' => false,
1325
- ),
1326
- 'metaColor' => array(
1327
- 'type' => 'string',
1328
- 'default' => '#777777',
1329
- ),
1330
- 'excerptColor' => array(
1331
- 'type' => 'string',
1332
- 'default' => '',
1333
- ),
1334
- 'ctaColor' => array(
1335
- 'type' => 'string',
1336
- 'default' => '#ffffff',
1337
- ),
1338
- 'ctaBgColor' => array(
1339
- 'type' => 'string',
1340
- 'default' => '#333333',
1341
- ),
1342
- 'ctaHColor' => array(
1343
- 'type' => 'string',
1344
- ),
1345
- 'ctaBgHColor' => array(
1346
- 'type' => 'string',
1347
- ),
1348
- 'contentPadding' => array(
1349
- 'type' => 'number',
1350
- 'default' => 20,
1351
- ),
1352
- 'contentPaddingMobile' => array(
1353
- 'type' => 'number',
1354
- ),
1355
- 'titleBottomSpace' => array(
1356
- 'type' => 'number',
1357
- 'default' => 15,
1358
- ),
1359
- 'metaBottomSpace' => array(
1360
- 'type' => 'number',
1361
- 'default' => 15,
1362
- ),
1363
- 'excerptBottomSpace' => array(
1364
- 'type' => 'number',
1365
- 'default' => 25,
1366
- ),
1367
- ),
1368
- 'render_callback' => 'uagb_post_masonry_callback',
1369
- )
1370
- );
1371
- }
1372
-
1373
- add_action( 'init', 'uagb_register_blocks' );
1374
-
1375
- /**
1376
- * Create API fields for additional info
1377
- *
1378
- * @since 0.0.1
1379
- */
1380
- function uagb_blocks_register_rest_fields() {
1381
-
1382
- $post_type = UAGB_Helper::get_post_types();
1383
-
1384
- foreach ( $post_type as $key => $value ) {
1385
-
1386
- // Add featured image source.
1387
- register_rest_field(
1388
- $value['value'],
1389
- 'uagb_featured_image_src',
1390
- array(
1391
- 'get_callback' => 'uagb_blocks_get_image_src',
1392
- 'update_callback' => null,
1393
- 'schema' => null,
1394
- )
1395
- );
1396
-
1397
- // Add author info.
1398
- register_rest_field(
1399
- $value['value'],
1400
- 'uagb_author_info',
1401
- array(
1402
- 'get_callback' => 'uagb_blocks_get_author_info',
1403
- 'update_callback' => null,
1404
- 'schema' => null,
1405
- )
1406
- );
1407
-
1408
- // Add comment info.
1409
- register_rest_field(
1410
- $value['value'],
1411
- 'uagb_comment_info',
1412
- array(
1413
- 'get_callback' => 'uagb_blocks_get_comment_info',
1414
- 'update_callback' => null,
1415
- 'schema' => null,
1416
- )
1417
- );
1418
-
1419
- // Add excerpt info.
1420
- register_rest_field(
1421
- $value['value'],
1422
- 'uagb_excerpt',
1423
- array(
1424
- 'get_callback' => 'uagb_blocks_get_excerpt',
1425
- 'update_callback' => null,
1426
- 'schema' => null,
1427
- )
1428
- );
1429
- }
1430
- }
1431
-
1432
- add_action( 'rest_api_init', 'uagb_blocks_register_rest_fields' );
1433
-
1434
-
1435
- /**
1436
- * Get featured image source for the rest field as per size
1437
- *
1438
- * @param object $object Post Object.
1439
- * @param string $field_name Field name.
1440
- * @param object $request Request Object.
1441
- * @since 0.0.1
1442
- */
1443
- function uagb_blocks_get_image_src( $object, $field_name, $request ) {
1444
-
1445
- $image_sizes = UAGB_Helper::get_image_sizes();
1446
-
1447
- $featured_images = array();
1448
-
1449
- foreach ( $image_sizes as $key => $value ) {
1450
- $size = $value['value'];
1451
-
1452
- $featured_images[ $size ] = wp_get_attachment_image_src(
1453
- $object['featured_media'],
1454
- $size,
1455
- false
1456
- );
1457
- }
1458
- return $featured_images;
1459
- }
1460
-
1461
- /**
1462
- * Get author info for the rest field
1463
- *
1464
- * @param object $object Post Object.
1465
- * @param string $field_name Field name.
1466
- * @param object $request Request Object.
1467
- * @since 0.0.1
1468
- */
1469
- function uagb_blocks_get_author_info( $object, $field_name, $request ) {
1470
- // Get the author name.
1471
- $author_data['display_name'] = get_the_author_meta( 'display_name', $object['author'] );
1472
-
1473
- // Get the author link.
1474
- $author_data['author_link'] = get_author_posts_url( $object['author'] );
1475
-
1476
- // Return the author data.
1477
- return $author_data;
1478
- }
1479
-
1480
- /**
1481
- * Get comment info for the rest field
1482
- *
1483
- * @param object $object Post Object.
1484
- * @param string $field_name Field name.
1485
- * @param object $request Request Object.
1486
- * @since 0.0.1
1487
- */
1488
- function uagb_blocks_get_comment_info( $object, $field_name, $request ) {
1489
-
1490
- // Get the comments link.
1491
- $comments_count = wp_count_comments( $object['id'] );
1492
- return $comments_count->total_comments;
1493
- }
1494
-
1495
- /**
1496
- * Get excerpt for the rest field
1497
- *
1498
- * @param object $object Post Object.
1499
- * @param string $field_name Field name.
1500
- * @param object $request Request Object.
1501
- * @since 0.0.1
1502
- */
1503
- function uagb_blocks_get_excerpt( $object, $field_name, $request ) {
1504
-
1505
- $excerpt = wp_trim_words( get_the_excerpt( $object['id'] ) );
1506
- if ( ! $excerpt ) {
1507
- $excerpt = null;
1508
- }
1509
- return $excerpt;
1510
- }
1511
-
1512
- /**
1513
- * Render Image HTML.
1514
- *
1515
- * @param array $attributes Array of block attributes.
1516
- *
1517
- * @since 0.0.1
1518
- */
1519
- function uagb_render_image( $attributes ) {
1520
-
1521
- if ( ! $attributes['displayPostImage'] ) {
1522
- return;
1523
- }
1524
-
1525
- if ( ! get_the_post_thumbnail_url() ) {
1526
- return;
1527
- }
1528
-
1529
- $target = ( $attributes['newTab'] ) ? '_blank' : '_self';
1530
- do_action( "uagb_single_post_before_featured_image_{$attributes['post_type']}", get_the_ID(), $attributes );
1531
-
1532
- ?>
1533
- <div class='uagb-post__image'>
1534
- <a href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="bookmark noopener noreferrer"><?php echo wp_get_attachment_image( get_post_thumbnail_id(), $attributes['imgSize'] ); ?>
1535
- </a>
1536
- </div>
1537
- <?php
1538
-
1539
- do_action( "uagb_single_post_after_featured_image_{$attributes['post_type']}", get_the_ID(), $attributes );
1540
- }
1541
-
1542
- /**
1543
- * Render Post Title HTML.
1544
- *
1545
- * @param array $attributes Array of block attributes.
1546
- *
1547
- * @since 0.0.1
1548
- */
1549
- function uagb_render_title( $attributes ) {
1550
- $target = ( $attributes['newTab'] ) ? '_blank' : '_self';
1551
- do_action( "uagb_single_post_before_title_{$attributes['post_type']}", get_the_ID(), $attributes );
1552
- ?>
1553
- <<?php echo $attributes['titleTag']; ?> class="uagb-post__title">
1554
- <a href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="bookmark noopener noreferrer"><?php the_title(); ?></a>
1555
- </<?php echo $attributes['titleTag']; ?>>
1556
- <?php
1557
- do_action( "uagb_single_post_after_title_{$attributes['post_type']}", get_the_ID(), $attributes );
1558
- }
1559
-
1560
- /**
1561
- * Render Post Meta HTML.
1562
- *
1563
- * @param array $attributes Array of block attributes.
1564
- *
1565
- * @since 0.0.1
1566
- */
1567
- function uagb_render_meta( $attributes ) {
1568
- global $post;
1569
- // @codingStandardsIgnoreStart
1570
- do_action( "uagb_single_post_before_meta_{$attributes['post_type']}", get_the_ID(), $attributes );
1571
- ?>
1572
- <div class="uagb-post-grid-byline"><?php if ( $attributes['displayPostAuthor'] ) {
1573
- ?><span class="uagb-post__author"><span class="dashicons-admin-users dashicons"></span><?php the_author_posts_link(); ?></span><?php }
1574
- if ( $attributes['displayPostDate'] ) {
1575
- ?><time datetime="<?php echo esc_attr( get_the_date( 'c', $post->ID ) ); ?>" class="uagb-post__date"><span class="dashicons-calendar dashicons"></span><?php echo esc_html( get_the_date( '', $post->ID ) ); ?></time><?php }
1576
- if ( $attributes['displayPostComment'] ) {
1577
- ?><span class="uagb-post__comment"><span class="dashicons-admin-comments dashicons"></span><?php comments_number();
1578
- ?></span><?php }
1579
- ?></div>
1580
- <?php
1581
- do_action( "uagb_single_post_after_meta_{$attributes['post_type']}", get_the_ID(), $attributes );
1582
- // @codingStandardsIgnoreEnd
1583
- }
1584
-
1585
- /**
1586
- * Render Post Excerpt HTML.
1587
- *
1588
- * @param array $attributes Array of block attributes.
1589
- *
1590
- * @since 0.0.1
1591
- */
1592
- function uagb_render_excerpt( $attributes ) {
1593
-
1594
- if ( ! $attributes['displayPostExcerpt'] ) {
1595
- return;
1596
- }
1597
-
1598
- $length = ( isset( $attributes['excerptLength'] ) ) ? $attributes['excerptLength'] : 25;
1599
-
1600
- $excerpt = wp_trim_words( get_the_excerpt(), $length );
1601
- if ( ! $excerpt ) {
1602
- $excerpt = null;
1603
- }
1604
- $excerpt = apply_filters( "uagb_single_post_excerpt_{$attributes['post_type']}", $excerpt, get_the_ID(), $attributes );
1605
- do_action( "uagb_single_post_before_excerpt_{$attributes['post_type']}", get_the_ID(), $attributes );
1606
- ?>
1607
- <div class="uagb-post__excerpt">
1608
- <?php echo $excerpt; ?>
1609
- </div>
1610
- <?php
1611
- do_action( "uagb_single_post_after_excerpt_{$attributes['post_type']}", get_the_ID(), $attributes );
1612
- }
1613
-
1614
- /**
1615
- * Render Post CTA button HTML.
1616
- *
1617
- * @param array $attributes Array of block attributes.
1618
- *
1619
- * @since 0.0.1
1620
- */
1621
- function uagb_render_button( $attributes ) {
1622
- if ( ! $attributes['displayPostLink'] ) {
1623
- return;
1624
- }
1625
- $target = ( $attributes['newTab'] ) ? '_blank' : '_self';
1626
- $cta_text = ( $attributes['ctaText'] ) ? $attributes['ctaText'] : __( 'Read More', 'ultimate-addons-for-gutenberg' );
1627
- do_action( "uagb_single_post_before_cta_{$attributes['post_type']}", get_the_ID(), $attributes );
1628
- ?>
1629
- <div class="uagb-post__cta">
1630
- <a class="uagb-post__link uagb-text-link" href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="bookmark noopener noreferrer"><?php echo $cta_text; ?></a>
1631
- </div>
1632
- <?php
1633
- do_action( "uagb_single_post_after_cta_{$attributes['post_type']}", get_the_ID(), $attributes );
1634
- }
1635
-
1636
- /**
1637
- * Render Complete Box Link HTML.
1638
- *
1639
- * @param array $attributes Array of block attributes.
1640
- *
1641
- * @since 1.7.0
1642
- */
1643
- function uagb_render_complete_box_link( $attributes ) {
1644
- if ( ! ( isset( $attributes['linkBox'] ) && $attributes['linkBox'] ) ) {
1645
- return;
1646
- }
1647
- $target = ( $attributes['newTab'] ) ? '_blank' : '_self';
1648
- ?>
1649
- <a class="uagb-post__link-complete-box" href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="bookmark noopener noreferrer"></a>
1650
- <?php
1651
- }
1
+ <?php
2
+ /**
3
+ * Server-side rendering for the post block.
4
+ *
5
+ * @since 0.0.1
6
+ * @package UAGB
7
+ */
8
+
9
+ global $uagb_post_settings;
10
+
11
+ /**
12
+ * Renders the post carousel block on server.
13
+ *
14
+ * @param array $attributes Array of block attributes.
15
+ *
16
+ * @since 0.0.1
17
+ */
18
+ function uagb_post_carousel_callback( $attributes ) {
19
+
20
+ $query = UAGB_Helper::get_query( $attributes, 'carousel' );
21
+ global $uagb_post_settings;
22
+
23
+ $uagb_post_settings['carousel'][ $attributes['block_id'] ] = $attributes;
24
+
25
+ ob_start();
26
+
27
+ uagb_get_post_html( $attributes, $query, 'carousel' );
28
+ // Output the post markup.
29
+ return ob_get_clean();
30
+ }
31
+
32
+ /**
33
+ * Renders the post grid block on server.
34
+ *
35
+ * @param array $attributes Array of block attributes.
36
+ *
37
+ * @since 0.0.1
38
+ */
39
+ function uagb_post_grid_callback( $attributes ) {
40
+
41
+ $query = UAGB_Helper::get_query( $attributes, 'grid' );
42
+ global $uagb_post_settings;
43
+
44
+ $uagb_post_settings['grid'][ $attributes['block_id'] ] = $attributes;
45
+
46
+ ob_start();
47
+
48
+ uagb_get_post_html( $attributes, $query, 'grid' );
49
+ // Output the post markup.
50
+ return ob_get_clean();
51
+ }
52
+
53
+ /**
54
+ * Renders the post masonry block on server.
55
+ *
56
+ * @param array $attributes Array of block attributes.
57
+ *
58
+ * @since 0.0.1
59
+ */
60
+ function uagb_post_masonry_callback( $attributes ) {
61
+
62
+ $query = UAGB_Helper::get_query( $attributes, 'masonry' );
63
+ global $uagb_post_settings;
64
+
65
+ $uagb_post_settings['masonry'][ $attributes['block_id'] ] = $attributes;
66
+
67
+ ob_start();
68
+ uagb_get_post_html( $attributes, $query, 'masonry' );
69
+
70
+ // Output the post markup.
71
+ return ob_get_clean();
72
+ }
73
+
74
+ add_action( 'wp_footer', 'uagb_post_block_add_script', 1000 );
75
+
76
+ /**
77
+ * Renders the post masonry related script.
78
+ *
79
+ * @since 0.0.1
80
+ */
81
+ function uagb_post_block_add_script() {
82
+ global $uagb_post_settings;
83
+
84
+ if ( isset( $uagb_post_settings['masonry'] ) && ! empty( $uagb_post_settings['masonry'] ) ) {
85
+ foreach ( $uagb_post_settings['masonry'] as $key => $value ) {
86
+ ?>
87
+ <script type="text/javascript" id="uagb-post-masonry-script-<?php echo $key; ?>">
88
+ ( function( $ ) {
89
+
90
+ var $scope = $( '#uagb-post__masonry-<?php echo $key; ?>' );
91
+ $scope.imagesLoaded( function() {
92
+ $scope.find( '.is-masonry' ).isotope();
93
+ });
94
+
95
+ $( window ).resize( function() {
96
+ $scope.find( '.is-masonry' ).isotope();
97
+ } );
98
+ } )( jQuery );
99
+ </script>
100
+ <?php
101
+ }
102
+ }
103
+
104
+ if ( isset( $uagb_post_settings['carousel'] ) && ! empty( $uagb_post_settings['carousel'] ) ) {
105
+ foreach ( $uagb_post_settings['carousel'] as $key => $value ) {
106
+ $dots = ( 'dots' == $value['arrowDots'] || 'arrows_dots' == $value['arrowDots'] ) ? true : false;
107
+ $arrows = ( 'arrows' == $value['arrowDots'] || 'arrows_dots' == $value['arrowDots'] ) ? true : false;
108
+ ?>
109
+ <script type="text/javascript" id="uagb-post-carousel-script-<?php echo $key; ?>">
110
+ ( function( $ ) {
111
+ var cols = parseInt( '<?php echo $value['columns']; ?>' );
112
+ var scope = $( '#uagb-post__carousel-<?php echo $key; ?>' ).find( '.is-carousel' );
113
+
114
+ if ( cols >= scope.children().length ) {
115
+ return;
116
+ }
117
+
118
+ var slider_options = {
119
+ 'slidesToShow' : cols,
120
+ 'slidesToScroll' : 1,
121
+ 'autoplaySpeed' : <?php echo $value['autoplaySpeed']; ?>,
122
+ 'autoplay' : Boolean( '<?php echo $value['autoplay']; ?>' ),
123
+ 'infinite' : Boolean( '<?php echo $value['infiniteLoop']; ?>' ),
124
+ 'pauseOnHover' : Boolean( '<?php echo $value['pauseOnHover']; ?>' ),
125
+ 'speed' : <?php echo $value['transitionSpeed']; ?>,
126
+ 'arrows' : Boolean( '<?php echo $arrows; ?>' ),
127
+ 'dots' : Boolean( '<?php echo $dots; ?>' ),
128
+ 'rtl' : false,
129
+ 'prevArrow' : '<button type=\"button\" data-role=\"none\" class=\"slick-prev\" aria-label=\"Previous\" tabindex=\"0\" role=\"button\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 256 512\"><path d=\"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z\"></path></svg><\/button>',
130
+ 'nextArrow' : '<button type=\"button\" data-role=\"none\" class=\"slick-next\" aria-label=\"Next\" tabindex=\"0\" role=\"button\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 256 512\"><path d=\"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z\"></path></svg><\/button>',
131
+ 'responsive' : [
132
+ {
133
+ 'breakpoint' : 1024,
134
+ 'settings' : {
135
+ 'slidesToShow' : 2,
136
+ 'slidesToScroll' : 1,
137
+ }
138
+ },
139
+ {
140
+ 'breakpoint' : 767,
141
+ 'settings' : {
142
+ 'slidesToShow' : 1,
143
+ 'slidesToScroll' : 1,
144
+ }
145
+ }
146
+ ]
147
+ };
148
+
149
+ scope.slick( slider_options );
150
+
151
+ } )( jQuery );
152
+ </script>
153
+ <?php
154
+ }
155
+ }
156
+ }
157
+
158
+ /**
159
+ * Renders the post grid block on server.
160
+ *
161
+ * @param array $attributes Array of block attributes.
162
+ *
163
+ * @param object $query WP_Query object.
164
+ * @param string $layout post grid/masonry/carousel layout.
165
+ * @since 0.0.1
166
+ */
167
+ function uagb_get_post_html( $attributes, $query, $layout ) {
168
+
169
+ $attributes['post_type'] = $layout;
170
+
171
+ $wrap = array(
172
+ 'uagb-post__items uagb-post__columns-' . $attributes['columns'],
173
+ 'is-' . $layout,
174
+ 'uagb-post__columns-tablet-' . $attributes['tcolumns'],
175
+ 'uagb-post__columns-mobile-' . $attributes['mcolumns'],
176
+ );
177
+
178
+ $outerwrap = array(
179
+ 'uagb-post-grid',
180
+ ( isset( $attributes['className'] ) ) ? $attributes['className'] : '',
181
+ 'uagb-post__image-position-' . $attributes['imgPosition'],
182
+ );
183
+
184
+ $block_id = 'uagb-post__' . $layout . '-' . $attributes['block_id'];
185
+
186
+ switch ( $layout ) {
187
+ case 'masonry':
188
+ break;
189
+
190
+ case 'grid':
191
+ if ( $attributes['equalHeight'] ) {
192
+ array_push( $wrap, 'uagb-post__equal-height' );
193
+ }
194
+ break;
195
+
196
+ case 'carousel':
197
+ array_push( $outerwrap, 'uagb-post__arrow-outside' );
198
+ if ( $query->post_count > $attributes['columns'] ) {
199
+ array_push( $outerwrap, 'uagb-slick-carousel' );
200
+ }
201
+ break;
202
+
203
+ default:
204
+ // Nothing to do here.
205
+ break;
206
+ }
207
+ ?>
208
+ <div id="<?php echo $block_id; ?>" class="<?php echo implode( ' ', $outerwrap ); ?>">
209
+
210
+ <div class="<?php echo implode( ' ', $wrap ); ?>">
211
+
212
+ <?php
213
+ while ( $query->have_posts() ) {
214
+ $query->the_post();
215
+ include 'single.php';
216
+ }
217
+ wp_reset_postdata();
218
+ ?>
219
+ </div>
220
+ </div>
221
+ <?php
222
+ }
223
+
224
+ /**
225
+ * Registers the `core/latest-posts` block on server.
226
+ *
227
+ * @since 0.0.1
228
+ */
229
+ function uagb_register_blocks() {
230
+ // Check if the register function exists.
231
+ if ( ! function_exists( 'register_block_type' ) ) {
232
+ return;
233
+ }
234
+
235
+ register_block_type(
236
+ 'uagb/post-grid',
237
+ array(
238
+ 'attributes' => array(
239
+ 'block_id' => array(
240
+ 'type' => 'string',
241
+ 'default' => 'not_set',
242
+ ),
243
+ 'categories' => array(
244
+ 'type' => 'string',
245
+ ),
246
+ 'postType' => array(
247
+ 'type' => 'string',
248
+ 'default' => 'post',
249
+ ),
250
+ 'taxonomyType' => array(
251
+ 'type' => 'string',
252
+ 'default' => 'category',
253
+ ),
254
+ 'postsToShow' => array(
255
+ 'type' => 'number',
256
+ 'default' => 6,
257
+ ),
258
+ 'displayPostDate' => array(
259
+ 'type' => 'boolean',
260
+ 'default' => true,
261
+ ),
262
+ 'displayPostExcerpt' => array(
263
+ 'type' => 'boolean',
264
+ 'default' => true,
265
+ ),
266
+ 'excerptLength' => array(
267
+ 'type' => 'number',
268
+ 'default' => 25,
269
+ ),
270
+ 'displayPostAuthor' => array(
271
+ 'type' => 'boolean',
272
+ 'default' => true,
273
+ ),
274
+ 'displayPostComment' => array(
275
+ 'type' => 'boolean',
276
+ 'default' => true,
277
+ ),
278
+ 'displayPostImage' => array(
279
+ 'type' => 'boolean',
280
+ 'default' => true,
281
+ ),
282
+ 'imgSize' => array(
283
+ 'type' => 'string',
284
+ 'default' => 'large',
285
+ ),
286
+ 'imgPosition' => array(
287
+ 'type' => 'string',
288
+ 'default' => 'top',
289
+ ),
290
+ 'linkBox' => array(
291
+ 'type' => 'boolean',
292
+ ),
293
+ 'bgOverlayColor' => array(
294
+ 'type' => 'string',
295
+ 'default' => '#ffffff',
296
+ ),
297
+ 'overlayOpacity' => array(
298
+ 'type' => 'number',
299
+ 'default' => '50',
300
+ ),
301
+ 'displayPostLink' => array(
302
+ 'type' => 'boolean',
303
+ 'default' => true,
304
+ ),
305
+ 'newTab' => array(
306
+ 'type' => 'boolean',
307
+ 'default' => false,
308
+ ),
309
+ 'ctaText' => array(
310
+ 'type' => 'string',
311
+ 'default' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
312
+ ),
313
+ 'borderWidth' => array(
314
+ 'type' => 'number',
315
+ 'default' => 1,
316
+ ),
317
+ 'btnHPadding' => array(
318
+ 'type' => 'number',
319
+ 'default' => 10,
320
+ ),
321
+ 'btnVPadding' => array(
322
+ 'type' => 'number',
323
+ 'default' => 5,
324
+ ),
325
+ 'borderStyle' => array(
326
+ 'type' => 'string',
327
+ 'default' => 'none',
328
+ ),
329
+ 'borderColor' => array(
330
+ 'type' => 'string',
331
+ 'default' => '#3b3b3b',
332
+ ),
333
+ 'borderHColor' => array(
334
+ 'type' => 'string',
335
+ ),
336
+ 'borderRadius' => array(
337
+ 'type' => 'number',
338
+ 'default' => 0,
339
+ ),
340
+ 'columns' => array(
341
+ 'type' => 'number',
342
+ 'default' => 3,
343
+ ),
344
+ 'tcolumns' => array(
345
+ 'type' => 'number',
346
+ 'default' => 2,
347
+ ),
348
+ 'mcolumns' => array(
349
+ 'type' => 'number',
350
+ 'default' => 1,
351
+ ),
352
+ 'align' => array(
353
+ 'type' => 'string',
354
+ 'default' => 'left',
355
+ ),
356
+ 'width' => array(
357
+ 'type' => 'string',
358
+ 'default' => 'wide',
359
+ ),
360
+ 'order' => array(
361
+ 'type' => 'string',
362
+ 'default' => 'desc',
363
+ ),
364
+ 'orderBy' => array(
365
+ 'type' => 'string',
366
+ 'default' => 'date',
367
+ ),
368
+ 'rowGap' => array(
369
+ 'type' => 'number',
370
+ 'default' => 20,
371
+ ),
372
+ 'columnGap' => array(
373
+ 'type' => 'number',
374
+ 'default' => 20,
375
+ ),
376
+ 'bgColor' => array(
377
+ 'type' => 'string',
378
+ 'default' => '#e4e4e4',
379
+ ),
380
+ 'titleColor' => array(
381
+ 'type' => 'string',
382
+ 'default' => '#3b3b3b',
383
+ ),
384
+ 'titleTag' => array(
385
+ 'type' => 'string',
386
+ 'default' => 'h3',
387
+ ),
388
+ 'titleFontSize' => array(
389
+ 'type' => 'number',
390
+ 'default' => '',
391
+ ),
392
+ 'titleFontSizeType' => array(
393
+ 'type' => 'string',
394
+ 'default' => 'px',
395
+ ),
396
+ 'titleFontSizeMobile' => array(
397
+ 'type' => 'number',
398
+ ),
399
+ 'titleFontSizeTablet' => array(
400
+ 'type' => 'number',
401
+ ),
402
+ 'titleFontFamily' => array(
403
+ 'type' => 'string',
404
+ 'default' => '',
405
+ ),
406
+ 'titleFontWeight' => array(
407
+ 'type' => 'string',
408
+ ),
409
+ 'titleFontSubset' => array(
410
+ 'type' => 'string',
411
+ ),
412
+ 'titleLineHeightType' => array(
413
+ 'type' => 'string',
414
+ 'default' => 'em',
415
+ ),
416
+ 'titleLineHeight' => array(
417
+ 'type' => 'number',
418
+ ),
419
+ 'titleLineHeightTablet' => array(
420
+ 'type' => 'number',
421
+ ),
422
+ 'titleLineHeightMobile' => array(
423
+ 'type' => 'number',
424
+ ),
425
+ 'titleLoadGoogleFonts' => array(
426
+ 'type' => 'boolean',
427
+ 'default' => false,
428
+ ),
429
+
430
+ 'metaFontSize' => array(
431
+ 'type' => 'number',
432
+ 'default' => '',
433
+ ),
434
+ 'metaFontSizeType' => array(
435
+ 'type' => 'string',
436
+ 'default' => 'px',
437
+ ),
438
+ 'metaFontSizeMobile' => array(
439
+ 'type' => 'number',
440
+ ),
441
+ 'metaFontSizeTablet' => array(
442
+ 'type' => 'number',
443
+ ),
444
+ 'metaFontFamily' => array(
445
+ 'type' => 'string',
446
+ 'default' => '',
447
+ ),
448
+ 'metaFontWeight' => array(
449
+ 'type' => 'string',
450
+ ),
451
+ 'metaFontSubset' => array(
452
+ 'type' => 'string',
453
+ ),
454
+ 'metaLineHeightType' => array(
455
+ 'type' => 'string',
456
+ 'default' => 'em',
457
+ ),
458
+ 'metaLineHeight' => array(
459
+ 'type' => 'number',
460
+ ),
461
+ 'metaLineHeightTablet' => array(
462
+ 'type' => 'number',
463
+ ),
464
+ 'metaLineHeightMobile' => array(
465
+ 'type' => 'number',
466
+ ),
467
+ 'metaLoadGoogleFonts' => array(
468
+ 'type' => 'boolean',
469
+ 'default' => false,
470
+ ),
471
+
472
+ 'excerptFontSize' => array(
473
+ 'type' => 'number',
474
+ 'default' => '',
475
+ ),
476
+ 'excerptFontSizeType' => array(
477
+ 'type' => 'string',
478
+ 'default' => 'px',
479
+ ),
480
+ 'excerptFontSizeMobile' => array(
481
+ 'type' => 'number',
482
+ ),
483
+ 'excerptFontSizeTablet' => array(
484
+ 'type' => 'number',
485
+ ),
486
+ 'excerptFontFamily' => array(
487
+ 'type' => 'string',
488
+ 'default' => '',
489
+ ),
490
+ 'excerptFontWeight' => array(
491
+ 'type' => 'string',
492
+ ),
493
+ 'excerptFontSubset' => array(
494
+ 'type' => 'string',
495
+ ),
496
+ 'excerptLineHeightType' => array(
497
+ 'type' => 'string',
498
+ 'default' => 'em',
499
+ ),
500
+ 'excerptLineHeight' => array(
501
+ 'type' => 'number',
502
+ ),
503
+ 'excerptLineHeightTablet' => array(
504
+ 'type' => 'number',
505
+ ),
506
+ 'excerptLineHeightMobile' => array(
507
+ 'type' => 'number',
508
+ ),
509
+ 'excerptLoadGoogleFonts' => array(
510
+ 'type' => 'boolean',
511
+ 'default' => false,
512
+ ),
513
+
514
+ 'ctaFontSize' => array(
515
+ 'type' => 'number',
516
+ 'default' => '',
517
+ ),
518
+ 'ctaFontSizeType' => array(
519
+ 'type' => 'string',
520
+ 'default' => 'px',
521
+ ),
522
+ 'ctaFontSizeMobile' => array(
523
+ 'type' => 'number',
524
+ ),
525
+ 'ctaFontSizeTablet' => array(
526
+ 'type' => 'number',
527
+ ),
528
+ 'ctaFontFamily' => array(
529
+ 'type' => 'string',
530
+ 'default' => '',
531
+ ),
532
+ 'ctaFontWeight' => array(
533
+ 'type' => 'string',
534
+ ),
535
+ 'ctaFontSubset' => array(
536
+ 'type' => 'string',
537
+ ),
538
+ 'ctaLineHeightType' => array(
539
+ 'type' => 'string',
540
+ 'default' => 'em',
541
+ ),
542
+ 'ctaLineHeight' => array(
543
+ 'type' => 'number',
544
+ ),
545
+ 'ctaLineHeightTablet' => array(
546
+ 'type' => 'number',
547
+ ),
548
+ 'ctaLineHeightMobile' => array(
549
+ 'type' => 'number',
550
+ ),
551
+ 'ctaLoadGoogleFonts' => array(
552
+ 'type' => 'boolean',
553
+ 'default' => false,
554
+ ),
555
+ 'metaColor' => array(
556
+ 'type' => 'string',
557
+ 'default' => '#777777',
558
+ ),
559
+ 'excerptColor' => array(
560
+ 'type' => 'string',
561
+ 'default' => '',
562
+ ),
563
+ 'ctaColor' => array(
564
+ 'type' => 'string',
565
+ 'default' => '#ffffff',
566
+ ),
567
+ 'ctaBgColor' => array(
568
+ 'type' => 'string',
569
+ 'default' => '#333333',
570
+ ),
571
+ 'ctaHColor' => array(
572
+ 'type' => 'string',
573
+ ),
574
+ 'ctaBgHColor' => array(
575
+ 'type' => 'string',
576
+ ),
577
+ 'contentPadding' => array(
578
+ 'type' => 'number',
579
+ 'default' => 20,
580
+ ),
581
+ 'contentPaddingMobile' => array(
582
+ 'type' => 'number',
583
+ ),
584
+ 'titleBottomSpace' => array(
585
+ 'type' => 'number',
586
+ 'default' => 15,
587
+ ),
588
+ 'metaBottomSpace' => array(
589
+ 'type' => 'number',
590
+ 'default' => 15,
591
+ ),
592
+ 'excerptBottomSpace' => array(
593
+ 'type' => 'number',
594
+ 'default' => 25,
595
+ ),
596
+ 'equalHeight' => array(
597
+ 'type' => 'boolean',
598
+ 'default' => true,
599
+ ),
600
+ ),
601
+ 'render_callback' => 'uagb_post_grid_callback',
602
+ )
603
+ );
604
+
605
+ register_block_type(
606
+ 'uagb/post-carousel',
607
+ array(
608
+ 'attributes' => array(
609
+ 'block_id' => array(
610
+ 'type' => 'string',
611
+ 'default' => 'not_set',
612
+ ),
613
+ 'categories' => array(
614
+ 'type' => 'string',
615
+ ),
616
+ 'postType' => array(
617
+ 'type' => 'string',
618
+ 'default' => 'post',
619
+ ),
620
+ 'taxonomyType' => array(
621
+ 'type' => 'string',
622
+ 'default' => 'category',
623
+ ),
624
+ 'postsToShow' => array(
625
+ 'type' => 'number',
626
+ 'default' => 6,
627
+ ),
628
+ 'displayPostDate' => array(
629
+ 'type' => 'boolean',
630
+ 'default' => true,
631
+ ),
632
+ 'displayPostExcerpt' => array(
633
+ 'type' => 'boolean',
634
+ 'default' => true,
635
+ ),
636
+ 'excerptLength' => array(
637
+ 'type' => 'number',
638
+ 'default' => 25,
639
+ ),
640
+ 'displayPostAuthor' => array(
641
+ 'type' => 'boolean',
642
+ 'default' => true,
643
+ ),
644
+ 'displayPostComment' => array(
645
+ 'type' => 'boolean',
646
+ 'default' => true,
647
+ ),
648
+ 'displayPostImage' => array(
649
+ 'type' => 'boolean',
650
+ 'default' => true,
651
+ ),
652
+ 'imgSize' => array(
653
+ 'type' => 'string',
654
+ 'default' => 'large',
655
+ ),
656
+ 'imgPosition' => array(
657
+ 'type' => 'string',
658
+ 'default' => 'top',
659
+ ),
660
+ 'linkBox' => array(
661
+ 'type' => 'boolean',
662
+ ),
663
+ 'bgOverlayColor' => array(
664
+ 'type' => 'string',
665
+ 'default' => '#ffffff',
666
+ ),
667
+ 'overlayOpacity' => array(
668
+ 'type' => 'number',
669
+ 'default' => '50',
670
+ ),
671
+ 'displayPostLink' => array(
672
+ 'type' => 'boolean',
673
+ 'default' => true,
674
+ ),
675
+ 'newTab' => array(
676
+ 'type' => 'boolean',
677
+ 'default' => false,
678
+ ),
679
+ 'ctaText' => array(
680
+ 'type' => 'string',
681
+ 'default' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
682
+ ),
683
+ 'borderWidth' => array(
684
+ 'type' => 'number',
685
+ 'default' => 1,
686
+ ),
687
+ 'btnHPadding' => array(
688
+ 'type' => 'number',
689
+ 'default' => 10,
690
+ ),
691
+ 'btnVPadding' => array(
692
+ 'type' => 'number',
693
+ 'default' => 5,
694
+ ),
695
+ 'borderStyle' => array(
696
+ 'type' => 'string',
697
+ 'default' => 'none',
698
+ ),
699
+ 'borderColor' => array(
700
+ 'type' => 'string',
701
+ 'default' => '#3b3b3b',
702
+ ),
703
+ 'borderHColor' => array(
704
+ 'type' => 'string',
705
+ ),
706
+ 'borderRadius' => array(
707
+ 'type' => 'number',
708
+ 'default' => 0,
709
+ ),
710
+ 'columns' => array(
711
+ 'type' => 'number',
712
+ 'default' => 3,
713
+ ),
714
+ 'tcolumns' => array(
715
+ 'type' => 'number',
716
+ 'default' => 2,
717
+ ),
718
+ 'mcolumns' => array(
719
+ 'type' => 'number',
720
+ 'default' => 1,
721
+ ),
722
+ 'align' => array(
723
+ 'type' => 'string',
724
+ 'default' => 'left',
725
+ ),
726
+ 'width' => array(
727
+ 'type' => 'string',
728
+ 'default' => 'wide',
729
+ ),
730
+ 'order' => array(
731
+ 'type' => 'string',
732
+ 'default' => 'desc',
733
+ ),
734
+ 'orderBy' => array(
735
+ 'type' => 'string',
736
+ 'default' => 'date',
737
+ ),
738
+ 'rowGap' => array(
739
+ 'type' => 'number',
740
+ 'default' => 20,
741
+ ),
742
+ 'columnGap' => array(
743
+ 'type' => 'number',
744
+ 'default' => 20,
745
+ ),
746
+ 'bgColor' => array(
747
+ 'type' => 'string',
748
+ 'default' => '#e4e4e4',
749
+ ),
750
+ 'titleColor' => array(
751
+ 'type' => 'string',
752
+ 'default' => '#3b3b3b',
753
+ ),
754
+ 'titleTag' => array(
755
+ 'type' => 'string',
756
+ 'default' => 'h3',
757
+ ),
758
+ 'titleFontSize' => array(
759
+ 'type' => 'number',
760
+ 'default' => '',
761
+ ),
762
+ 'titleFontSizeType' => array(
763
+ 'type' => 'string',
764
+ 'default' => 'px',
765
+ ),
766
+ 'titleFontSizeMobile' => array(
767
+ 'type' => 'number',
768
+ ),
769
+ 'titleFontSizeTablet' => array(
770
+ 'type' => 'number',
771
+ ),
772
+ 'titleFontFamily' => array(
773
+ 'type' => 'string',
774
+ 'default' => '',
775
+ ),
776
+ 'titleFontWeight' => array(
777
+ 'type' => 'string',
778
+ ),
779
+ 'titleFontSubset' => array(
780
+ 'type' => 'string',
781
+ ),
782
+ 'titleLineHeightType' => array(
783
+ 'type' => 'string',
784
+ 'default' => 'em',
785
+ ),
786
+ 'titleLineHeight' => array(
787
+ 'type' => 'number',
788
+ ),
789
+ 'titleLineHeightTablet' => array(
790
+ 'type' => 'number',
791
+ ),
792
+ 'titleLineHeightMobile' => array(
793
+ 'type' => 'number',
794
+ ),
795
+ 'titleLoadGoogleFonts' => array(
796
+ 'type' => 'boolean',
797
+ 'default' => false,
798
+ ),
799
+ 'metaFontSize' => array(
800
+ 'type' => 'number',
801
+ 'default' => '',
802
+ ),
803
+ 'metaFontSizeType' => array(
804
+ 'type' => 'string',
805
+ 'default' => 'px',
806
+ ),
807
+ 'metaFontSizeMobile' => array(
808
+ 'type' => 'number',
809
+ ),
810
+ 'metaFontSizeTablet' => array(
811
+ 'type' => 'number',
812
+ ),
813
+ 'metaFontFamily' => array(
814
+ 'type' => 'string',
815
+ 'default' => '',
816
+ ),
817
+ 'metaFontWeight' => array(
818
+ 'type' => 'string',
819
+ ),
820
+ 'metaFontSubset' => array(
821
+ 'type' => 'string',
822
+ ),
823
+ 'metaLineHeightType' => array(
824
+ 'type' => 'string',
825
+ 'default' => 'em',
826
+ ),
827
+ 'metaLineHeight' => array(
828
+ 'type' => 'number',
829
+ ),
830
+ 'metaLineHeightTablet' => array(
831
+ 'type' => 'number',
832
+ ),
833
+ 'metaLineHeightMobile' => array(
834
+ 'type' => 'number',
835
+ ),
836
+ 'metaLoadGoogleFonts' => array(
837
+ 'type' => 'boolean',
838
+ 'default' => false,
839
+ ),
840
+ 'excerptFontSize' => array(
841
+ 'type' => 'number',
842
+ 'default' => '',
843
+ ),
844
+ 'excerptFontSizeType' => array(
845
+ 'type' => 'string',
846
+ 'default' => 'px',
847
+ ),
848
+ 'excerptFontSizeMobile' => array(
849
+ 'type' => 'number',
850
+ ),
851
+ 'excerptFontSizeTablet' => array(
852
+ 'type' => 'number',
853
+ ),
854
+ 'excerptFontFamily' => array(
855
+ 'type' => 'string',
856
+ 'default' => '',
857
+ ),
858
+ 'excerptFontWeight' => array(
859
+ 'type' => 'string',
860
+ ),
861
+ 'excerptFontSubset' => array(
862
+ 'type' => 'string',
863
+ ),
864
+ 'excerptLineHeightType' => array(
865
+ 'type' => 'string',
866
+ 'default' => 'em',
867
+ ),
868
+ 'excerptLineHeight' => array(
869
+ 'type' => 'number',
870
+ ),
871
+ 'excerptLineHeightTablet' => array(
872
+ 'type' => 'number',
873
+ ),
874
+ 'excerptLineHeightMobile' => array(
875
+ 'type' => 'number',
876
+ ),
877
+ 'excerptLoadGoogleFonts' => array(
878
+ 'type' => 'boolean',
879
+ 'default' => false,
880
+ ),
881
+ 'ctaFontSize' => array(
882
+ 'type' => 'number',
883
+ 'default' => '',
884
+ ),
885
+ 'ctaFontSizeType' => array(
886
+ 'type' => 'string',
887
+ 'default' => 'px',
888
+ ),
889
+ 'ctaFontSizeMobile' => array(
890
+ 'type' => 'number',
891
+ ),
892
+ 'ctaFontSizeTablet' => array(
893
+ 'type' => 'number',
894
+ ),
895
+ 'ctaFontFamily' => array(
896
+ 'type' => 'string',
897
+ 'default' => '',
898
+ ),
899
+ 'ctaFontWeight' => array(
900
+ 'type' => 'string',
901
+ ),
902
+ 'ctaFontSubset' => array(
903
+ 'type' => 'string',
904
+ ),
905
+ 'ctaLineHeightType' => array(
906
+ 'type' => 'string',
907
+ 'default' => 'em',
908
+ ),
909
+ 'ctaLineHeight' => array(
910
+ 'type' => 'number',
911
+ ),
912
+ 'ctaLineHeightTablet' => array(
913
+ 'type' => 'number',
914
+ ),
915
+ 'ctaLineHeightMobile' => array(
916
+ 'type' => 'number',
917
+ ),
918
+ 'ctaLoadGoogleFonts' => array(
919
+ 'type' => 'boolean',
920
+ 'default' => false,
921
+ ),
922
+ 'metaColor' => array(
923
+ 'type' => 'string',
924
+ 'default' => '#777777',
925
+ ),
926
+ 'excerptColor' => array(
927
+ 'type' => 'string',
928
+ 'default' => '',
929
+ ),
930
+ 'ctaColor' => array(
931
+ 'type' => 'string',
932
+ 'default' => '#ffffff',
933
+ ),
934
+ 'ctaBgColor' => array(
935
+ 'type' => 'string',
936
+ 'default' => '#333333',
937
+ ),
938
+ 'ctaHColor' => array(
939
+ 'type' => 'string',
940
+ ),
941
+ 'ctaBgHColor' => array(
942
+ 'type' => 'string',
943
+ ),
944
+ 'contentPadding' => array(
945
+ 'type' => 'number',
946
+ 'default' => 20,
947
+ ),
948
+ 'contentPaddingMobile' => array(
949
+ 'type' => 'number',
950
+ ),
951
+ 'titleBottomSpace' => array(
952
+ 'type' => 'number',
953
+ 'default' => 15,
954
+ ),
955
+ 'metaBottomSpace' => array(
956
+ 'type' => 'number',
957
+ 'default' => 15,
958
+ ),
959
+ 'excerptBottomSpace' => array(
960
+ 'type' => 'number',
961
+ 'default' => 25,
962
+ ),
963
+ 'pauseOnHover' => array(
964
+ 'type' => 'boolean',
965
+ 'default' => true,
966
+ ),
967
+ 'infiniteLoop' => array(
968
+ 'type' => 'boolean',
969
+ 'default' => true,
970
+ ),
971
+ 'transitionSpeed' => array(
972
+ 'type' => 'number',
973
+ 'default' => 500,
974
+ ),
975
+ 'arrowDots' => array(
976
+ 'type' => 'string',
977
+ 'default' => 'arrows_dots',
978
+ ),
979
+ 'autoplay' => array(
980
+ 'type' => 'boolean',
981
+ 'default' => true,
982
+ ),
983
+ 'autoplaySpeed' => array(
984
+ 'type' => 'number',
985
+ 'default' => 2000,
986
+ ),
987
+ 'arrowSize' => array(
988
+ 'type' => 'number',
989
+ 'default' => 20,
990
+ ),
991
+ 'arrowBorderSize' => array(
992
+ 'type' => 'number',
993
+ 'default' => 1,
994
+ ),
995
+ 'arrowBorderRadius' => array(
996
+ 'type' => 'number',
997
+ 'default' => 0,
998
+ ),
999
+ 'arrowColor' => array(
1000
+ 'type' => 'string',
1001
+ 'default' => '#aaaaaa',
1002
+ ),
1003
+ ),
1004
+ 'render_callback' => 'uagb_post_carousel_callback',
1005
+ )
1006
+ );
1007
+
1008
+ register_block_type(
1009
+ 'uagb/post-masonry',
1010
+ array(
1011
+ 'attributes' => array(
1012
+ 'block_id' => array(
1013
+ 'type' => 'string',
1014
+ 'default' => 'not_set',
1015
+ ),
1016
+ 'categories' => array(
1017
+ 'type' => 'string',
1018
+ ),
1019
+ 'postType' => array(
1020
+ 'type' => 'string',
1021
+ 'default' => 'post',
1022
+ ),
1023
+ 'taxonomyType' => array(
1024
+ 'type' => 'string',
1025
+ 'default' => 'category',
1026
+ ),
1027
+ 'postsToShow' => array(
1028
+ 'type' => 'number',
1029
+ 'default' => 6,
1030
+ ),
1031
+ 'displayPostDate' => array(
1032
+ 'type' => 'boolean',
1033
+ 'default' => true,
1034
+ ),
1035
+ 'displayPostExcerpt' => array(
1036
+ 'type' => 'boolean',
1037
+ 'default' => true,
1038
+ ),
1039
+ 'excerptLength' => array(
1040
+ 'type' => 'number',
1041
+ 'default' => 25,
1042
+ ),
1043
+ 'displayPostAuthor' => array(
1044
+ 'type' => 'boolean',
1045
+ 'default' => true,
1046
+ ),
1047
+ 'displayPostComment' => array(
1048
+ 'type' => 'boolean',
1049
+ 'default' => true,
1050
+ ),
1051
+ 'displayPostImage' => array(
1052
+ 'type' => 'boolean',
1053
+ 'default' => true,
1054
+ ),
1055
+ 'imgSize' => array(
1056
+ 'type' => 'string',
1057
+ 'default' => 'large',
1058
+ ),
1059
+ 'imgPosition' => array(
1060
+ 'type' => 'string',
1061
+ 'default' => 'top',
1062
+ ),
1063
+ 'linkBox' => array(
1064
+ 'type' => 'boolean',
1065
+ ),
1066
+ 'bgOverlayColor' => array(
1067
+ 'type' => 'string',
1068
+ 'default' => '#ffffff',
1069
+ ),
1070
+ 'overlayOpacity' => array(
1071
+ 'type' => 'number',
1072
+ 'default' => '50',
1073
+ ),
1074
+ 'displayPostLink' => array(
1075
+ 'type' => 'boolean',
1076
+ 'default' => true,
1077
+ ),
1078
+ 'newTab' => array(
1079
+ 'type' => 'boolean',
1080
+ 'default' => false,
1081
+ ),
1082
+ 'ctaText' => array(
1083
+ 'type' => 'string',
1084
+ 'default' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1085
+ ),
1086
+ 'borderWidth' => array(
1087
+ 'type' => 'number',
1088
+ 'default' => 1,
1089
+ ),
1090
+ 'btnHPadding' => array(
1091
+ 'type' => 'number',
1092
+ 'default' => 10,
1093
+ ),
1094
+ 'btnVPadding' => array(
1095
+ 'type' => 'number',
1096
+ 'default' => 5,
1097
+ ),
1098
+ 'borderStyle' => array(
1099
+ 'type' => 'string',
1100
+ 'default' => 'none',
1101
+ ),
1102
+ 'borderColor' => array(
1103
+ 'type' => 'string',
1104
+ 'default' => '#3b3b3b',
1105
+ ),
1106
+ 'borderHColor' => array(
1107
+ 'type' => 'string',
1108
+ ),
1109
+ 'borderRadius' => array(
1110
+ 'type' => 'number',
1111
+ 'default' => 0,
1112
+ ),
1113
+ 'columns' => array(
1114
+ 'type' => 'number',
1115
+ 'default' => 3,
1116
+ ),
1117
+ 'tcolumns' => array(
1118
+ 'type' => 'number',
1119
+ 'default' => 2,
1120
+ ),
1121
+ 'mcolumns' => array(
1122
+ 'type' => 'number',
1123
+ 'default' => 1,
1124
+ ),
1125
+ 'align' => array(
1126
+ 'type' => 'string',
1127
+ 'default' => 'left',
1128
+ ),
1129
+ 'width' => array(
1130
+ 'type' => 'string',
1131
+ 'default' => 'wide',
1132
+ ),
1133
+ 'order' => array(
1134
+ 'type' => 'string',
1135
+ 'default' => 'desc',
1136
+ ),
1137
+ 'orderBy' => array(
1138
+ 'type' => 'string',
1139
+ 'default' => 'date',
1140
+ ),
1141
+ 'rowGap' => array(
1142
+ 'type' => 'number',
1143
+ 'default' => 20,
1144
+ ),
1145
+ 'columnGap' => array(
1146
+ 'type' => 'number',
1147
+ 'default' => 20,
1148
+ ),
1149
+ 'bgColor' => array(
1150
+ 'type' => 'string',
1151
+ 'default' => '#e4e4e4',
1152
+ ),
1153
+ 'titleColor' => array(
1154
+ 'type' => 'string',
1155
+ 'default' => '#3b3b3b',
1156
+ ),
1157
+ 'titleTag' => array(
1158
+ 'type' => 'string',
1159
+ 'default' => 'h3',
1160
+ ),
1161
+ 'titleFontSize' => array(
1162
+ 'type' => 'number',
1163
+ 'default' => '',
1164
+ ),
1165
+ 'titleFontSizeType' => array(
1166
+ 'type' => 'string',
1167
+ 'default' => 'px',
1168
+ ),
1169
+ 'titleFontSizeMobile' => array(
1170
+ 'type' => 'number',
1171
+ ),
1172
+ 'titleFontSizeTablet' => array(
1173
+ 'type' => 'number',
1174
+ ),
1175
+ 'titleFontFamily' => array(
1176
+ 'type' => 'string',
1177
+ 'default' => '',
1178
+ ),
1179
+ 'titleFontWeight' => array(
1180
+ 'type' => 'string',
1181
+ ),
1182
+ 'titleFontSubset' => array(
1183
+ 'type' => 'string',
1184
+ ),
1185
+ 'titleLineHeightType' => array(
1186
+ 'type' => 'string',
1187
+ 'default' => 'em',
1188
+ ),
1189
+ 'titleLineHeight' => array(
1190
+ 'type' => 'number',
1191
+ ),
1192
+ 'titleLineHeightTablet' => array(
1193
+ 'type' => 'number',
1194
+ ),
1195
+ 'titleLineHeightMobile' => array(
1196
+ 'type' => 'number',
1197
+ ),
1198
+ 'titleLoadGoogleFonts' => array(
1199
+ 'type' => 'boolean',
1200
+ 'default' => false,
1201
+ ),
1202
+
1203
+ 'metaFontSize' => array(
1204
+ 'type' => 'number',
1205
+ 'default' => '',
1206
+ ),
1207
+ 'metaFontSizeType' => array(
1208
+ 'type' => 'string',
1209
+ 'default' => 'px',
1210
+ ),
1211
+ 'metaFontSizeMobile' => array(
1212
+ 'type' => 'number',
1213
+ ),
1214
+ 'metaFontSizeTablet' => array(
1215
+ 'type' => 'number',
1216
+ ),
1217
+ 'metaFontFamily' => array(
1218
+ 'type' => 'string',
1219
+ 'default' => '',
1220
+ ),
1221
+ 'metaFontWeight' => array(
1222
+ 'type' => 'string',
1223
+ ),
1224
+ 'metaFontSubset' => array(
1225
+ 'type' => 'string',
1226
+ ),
1227
+ 'metaLineHeightType' => array(
1228
+ 'type' => 'string',
1229
+ 'default' => 'em',
1230
+ ),
1231
+ 'metaLineHeight' => array(
1232
+ 'type' => 'number',
1233
+ ),
1234
+ 'metaLineHeightTablet' => array(
1235
+ 'type' => 'number',
1236
+ ),
1237
+ 'metaLineHeightMobile' => array(
1238
+ 'type' => 'number',
1239
+ ),
1240
+ 'metaLoadGoogleFonts' => array(
1241
+ 'type' => 'boolean',
1242
+ 'default' => false,
1243
+ ),
1244
+ 'excerptFontSize' => array(
1245
+ 'type' => 'number',
1246
+ 'default' => '',
1247
+ ),
1248
+ 'excerptFontSizeType' => array(
1249
+ 'type' => 'string',
1250
+ 'default' => 'px',
1251
+ ),
1252
+ 'excerptFontSizeMobile' => array(
1253
+ 'type' => 'number',
1254
+ ),
1255
+ 'excerptFontSizeTablet' => array(
1256
+ 'type' => 'number',
1257
+ ),
1258
+ 'excerptFontFamily' => array(
1259
+ 'type' => 'string',
1260
+ 'default' => '',
1261
+ ),
1262
+ 'excerptFontWeight' => array(
1263
+ 'type' => 'string',
1264
+ ),
1265
+ 'excerptFontSubset' => array(
1266
+ 'type' => 'string',
1267
+ ),
1268
+ 'excerptLineHeightType' => array(
1269
+ 'type' => 'string',
1270
+ 'default' => 'em',
1271
+ ),
1272
+ 'excerptLineHeight' => array(
1273
+ 'type' => 'number',
1274
+ ),
1275
+ 'excerptLineHeightTablet' => array(
1276
+ 'type' => 'number',
1277
+ ),
1278
+ 'excerptLineHeightMobile' => array(
1279
+ 'type' => 'number',
1280
+ ),
1281
+ 'excerptLoadGoogleFonts' => array(
1282
+ 'type' => 'boolean',
1283
+ 'default' => false,
1284
+ ),
1285
+ 'ctaFontSize' => array(
1286
+ 'type' => 'number',
1287
+ 'default' => '',
1288
+ ),
1289
+ 'ctaFontSizeType' => array(
1290
+ 'type' => 'string',
1291
+ 'default' => 'px',
1292
+ ),
1293
+ 'ctaFontSizeMobile' => array(
1294
+ 'type' => 'number',
1295
+ ),
1296
+ 'ctaFontSizeTablet' => array(
1297
+ 'type' => 'number',
1298
+ ),
1299
+ 'ctaFontFamily' => array(
1300
+ 'type' => 'string',
1301
+ 'default' => '',
1302
+ ),
1303
+ 'ctaFontWeight' => array(
1304
+ 'type' => 'string',
1305
+ ),
1306
+ 'ctaFontSubset' => array(
1307
+ 'type' => 'string',
1308
+ ),
1309
+ 'ctaLineHeightType' => array(
1310
+ 'type' => 'string',
1311
+ 'default' => 'em',
1312
+ ),
1313
+ 'ctaLineHeight' => array(
1314
+ 'type' => 'number',
1315
+ ),
1316
+ 'ctaLineHeightTablet' => array(
1317
+ 'type' => 'number',
1318
+ ),
1319
+ 'ctaLineHeightMobile' => array(
1320
+ 'type' => 'number',
1321
+ ),
1322
+ 'ctaLoadGoogleFonts' => array(
1323
+ 'type' => 'boolean',
1324
+ 'default' => false,
1325
+ ),
1326
+ 'metaColor' => array(
1327
+ 'type' => 'string',
1328
+ 'default' => '#777777',
1329
+ ),
1330
+ 'excerptColor' => array(
1331
+ 'type' => 'string',
1332
+ 'default' => '',
1333
+ ),
1334
+ 'ctaColor' => array(
1335
+ 'type' => 'string',
1336
+ 'default' => '#ffffff',
1337
+ ),
1338
+ 'ctaBgColor' => array(
1339
+ 'type' => 'string',
1340
+ 'default' => '#333333',
1341
+ ),
1342
+ 'ctaHColor' => array(
1343
+ 'type' => 'string',
1344
+ ),
1345
+ 'ctaBgHColor' => array(
1346
+ 'type' => 'string',
1347
+ ),
1348
+ 'contentPadding' => array(
1349
+ 'type' => 'number',
1350
+ 'default' => 20,
1351
+ ),
1352
+ 'contentPaddingMobile' => array(
1353
+ 'type' => 'number',
1354
+ ),
1355
+ 'titleBottomSpace' => array(
1356
+ 'type' => 'number',
1357
+ 'default' => 15,
1358
+ ),
1359
+ 'metaBottomSpace' => array(
1360
+ 'type' => 'number',
1361
+ 'default' => 15,
1362
+ ),
1363
+ 'excerptBottomSpace' => array(
1364
+ 'type' => 'number',
1365
+ 'default' => 25,
1366
+ ),
1367
+ ),
1368
+ 'render_callback' => 'uagb_post_masonry_callback',
1369
+ )
1370
+ );
1371
+ }
1372
+
1373
+ add_action( 'init', 'uagb_register_blocks' );
1374
+
1375
+ /**
1376
+ * Create API fields for additional info
1377
+ *
1378
+ * @since 0.0.1
1379
+ */
1380
+ function uagb_blocks_register_rest_fields() {
1381
+
1382
+ $post_type = UAGB_Helper::get_post_types();
1383
+
1384
+ foreach ( $post_type as $key => $value ) {
1385
+
1386
+ // Add featured image source.
1387
+ register_rest_field(
1388
+ $value['value'],
1389
+ 'uagb_featured_image_src',
1390
+ array(
1391
+ 'get_callback' => 'uagb_blocks_get_image_src',
1392
+ 'update_callback' => null,
1393
+ 'schema' => null,
1394
+ )
1395
+ );
1396
+
1397
+ // Add author info.
1398
+ register_rest_field(
1399
+ $value['value'],
1400
+ 'uagb_author_info',
1401
+ array(
1402
+ 'get_callback' => 'uagb_blocks_get_author_info',
1403
+ 'update_callback' => null,
1404
+ 'schema' => null,
1405
+ )
1406
+ );
1407
+
1408
+ // Add comment info.
1409
+ register_rest_field(
1410
+ $value['value'],
1411
+ 'uagb_comment_info',
1412
+ array(
1413
+ 'get_callback' => 'uagb_blocks_get_comment_info',
1414
+ 'update_callback' => null,
1415
+ 'schema' => null,
1416
+ )
1417
+ );
1418
+
1419
+ // Add excerpt info.
1420
+ register_rest_field(
1421
+ $value['value'],
1422
+ 'uagb_excerpt',
1423
+ array(
1424
+ 'get_callback' => 'uagb_blocks_get_excerpt',
1425
+ 'update_callback' => null,
1426
+ 'schema' => null,
1427
+ )
1428
+ );
1429
+ }
1430
+ }
1431
+
1432
+ add_action( 'rest_api_init', 'uagb_blocks_register_rest_fields' );
1433
+
1434
+
1435
+ /**
1436
+ * Get featured image source for the rest field as per size
1437
+ *
1438
+ * @param object $object Post Object.
1439
+ * @param string $field_name Field name.
1440
+ * @param object $request Request Object.
1441
+ * @since 0.0.1
1442
+ */
1443
+ function uagb_blocks_get_image_src( $object, $field_name, $request ) {
1444
+
1445
+ $image_sizes = UAGB_Helper::get_image_sizes();
1446
+
1447
+ $featured_images = array();
1448
+
1449
+ foreach ( $image_sizes as $key => $value ) {
1450
+ $size = $value['value'];
1451
+
1452
+ $featured_images[ $size ] = wp_get_attachment_image_src(
1453
+ $object['featured_media'],
1454
+ $size,
1455
+ false
1456
+ );
1457
+ }
1458
+ return $featured_images;
1459
+ }
1460
+
1461
+ /**
1462
+ * Get author info for the rest field
1463
+ *
1464
+ * @param object $object Post Object.
1465
+ * @param string $field_name Field name.
1466
+ * @param object $request Request Object.
1467
+ * @since 0.0.1
1468
+ */
1469
+ function uagb_blocks_get_author_info( $object, $field_name, $request ) {
1470
+ // Get the author name.
1471
+ $author_data['display_name'] = get_the_author_meta( 'display_name', $object['author'] );
1472
+
1473
+ // Get the author link.
1474
+ $author_data['author_link'] = get_author_posts_url( $object['author'] );
1475
+
1476
+ // Return the author data.
1477
+ return $author_data;
1478
+ }
1479
+
1480
+ /**
1481
+ * Get comment info for the rest field
1482
+ *
1483
+ * @param object $object Post Object.
1484
+ * @param string $field_name Field name.
1485
+ * @param object $request Request Object.
1486
+ * @since 0.0.1
1487
+ */
1488
+ function uagb_blocks_get_comment_info( $object, $field_name, $request ) {
1489
+
1490
+ // Get the comments link.
1491
+ $comments_count = wp_count_comments( $object['id'] );
1492
+ return $comments_count->total_comments;
1493
+ }
1494
+
1495
+ /**
1496
+ * Get excerpt for the rest field
1497
+ *
1498
+ * @param object $object Post Object.
1499
+ * @param string $field_name Field name.
1500
+ * @param object $request Request Object.
1501
+ * @since 0.0.1
1502
+ */
1503
+ function uagb_blocks_get_excerpt( $object, $field_name, $request ) {
1504
+
1505
+ $excerpt = wp_trim_words( get_the_excerpt( $object['id'] ) );
1506
+ if ( ! $excerpt ) {
1507
+ $excerpt = null;
1508
+ }
1509
+ return $excerpt;
1510
+ }
1511
+
1512
+ /**
1513
+ * Render Image HTML.
1514
+ *
1515
+ * @param array $attributes Array of block attributes.
1516
+ *
1517
+ * @since 0.0.1
1518
+ */
1519
+ function uagb_render_image( $attributes ) {
1520
+
1521
+ if ( ! $attributes['displayPostImage'] ) {
1522
+ return;
1523
+ }
1524
+
1525
+ if ( ! get_the_post_thumbnail_url() ) {
1526
+ return;
1527
+ }
1528
+
1529
+ $target = ( $attributes['newTab'] ) ? '_blank' : '_self';
1530
+ do_action( "uagb_single_post_before_featured_image_{$attributes['post_type']}", get_the_ID(), $attributes );
1531
+
1532
+ ?>
1533
+ <div class='uagb-post__image'>
1534
+ <a href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="bookmark noopener noreferrer"><?php echo wp_get_attachment_image( get_post_thumbnail_id(), $attributes['imgSize'] ); ?>
1535
+ </a>
1536
+ </div>
1537
+ <?php
1538
+
1539
+ do_action( "uagb_single_post_after_featured_image_{$attributes['post_type']}", get_the_ID(), $attributes );
1540
+ }
1541
+
1542
+ /**
1543
+ * Render Post Title HTML.
1544
+ *
1545
+ * @param array $attributes Array of block attributes.
1546
+ *
1547
+ * @since 0.0.1
1548
+ */
1549
+ function uagb_render_title( $attributes ) {
1550
+ $target = ( $attributes['newTab'] ) ? '_blank' : '_self';
1551
+ do_action( "uagb_single_post_before_title_{$attributes['post_type']}", get_the_ID(), $attributes );
1552
+ ?>
1553
+ <<?php echo $attributes['titleTag']; ?> class="uagb-post__title">
1554
+ <a href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="bookmark noopener noreferrer"><?php the_title(); ?></a>
1555
+ </<?php echo $attributes['titleTag']; ?>>
1556
+ <?php
1557
+ do_action( "uagb_single_post_after_title_{$attributes['post_type']}", get_the_ID(), $attributes );
1558
+ }
1559
+
1560
+ /**
1561
+ * Render Post Meta HTML.
1562
+ *
1563
+ * @param array $attributes Array of block attributes.
1564
+ *
1565
+ * @since 0.0.1
1566
+ */
1567
+ function uagb_render_meta( $attributes ) {
1568
+ global $post;
1569
+ // @codingStandardsIgnoreStart
1570
+ do_action( "uagb_single_post_before_meta_{$attributes['post_type']}", get_the_ID(), $attributes );
1571
+ ?>
1572
+ <div class="uagb-post-grid-byline"><?php if ( $attributes['displayPostAuthor'] ) {
1573
+ ?><span class="uagb-post__author"><span class="dashicons-admin-users dashicons"></span><?php the_author_posts_link(); ?></span><?php }
1574
+ if ( $attributes['displayPostDate'] ) {
1575
+ ?><time datetime="<?php echo esc_attr( get_the_date( 'c', $post->ID ) ); ?>" class="uagb-post__date"><span class="dashicons-calendar dashicons"></span><?php echo esc_html( get_the_date( '', $post->ID ) ); ?></time><?php }
1576
+ if ( $attributes['displayPostComment'] ) {
1577
+ ?><span class="uagb-post__comment"><span class="dashicons-admin-comments dashicons"></span><?php comments_number();
1578
+ ?></span><?php }
1579
+ ?></div>
1580
+ <?php
1581
+ do_action( "uagb_single_post_after_meta_{$attributes['post_type']}", get_the_ID(), $attributes );
1582
+ // @codingStandardsIgnoreEnd
1583
+ }
1584
+
1585
+ /**
1586
+ * Render Post Excerpt HTML.
1587
+ *
1588
+ * @param array $attributes Array of block attributes.
1589
+ *
1590
+ * @since 0.0.1
1591
+ */
1592
+ function uagb_render_excerpt( $attributes ) {
1593
+
1594
+ if ( ! $attributes['displayPostExcerpt'] ) {
1595
+ return;
1596
+ }
1597
+
1598
+ $length = ( isset( $attributes['excerptLength'] ) ) ? $attributes['excerptLength'] : 25;
1599
+
1600
+ $excerpt = wp_trim_words( get_the_excerpt(), $length );
1601
+ if ( ! $excerpt ) {
1602
+ $excerpt = null;
1603
+ }
1604
+ $excerpt = apply_filters( "uagb_single_post_excerpt_{$attributes['post_type']}", $excerpt, get_the_ID(), $attributes );
1605
+ do_action( "uagb_single_post_before_excerpt_{$attributes['post_type']}", get_the_ID(), $attributes );
1606
+ ?>
1607
+ <div class="uagb-post__excerpt">
1608
+ <?php echo $excerpt; ?>
1609
+ </div>
1610
+ <?php
1611
+ do_action( "uagb_single_post_after_excerpt_{$attributes['post_type']}", get_the_ID(), $attributes );
1612
+ }
1613
+
1614
+ /**
1615
+ * Render Post CTA button HTML.
1616
+ *
1617
+ * @param array $attributes Array of block attributes.
1618
+ *
1619
+ * @since 0.0.1
1620
+ */
1621
+ function uagb_render_button( $attributes ) {
1622
+ if ( ! $attributes['displayPostLink'] ) {
1623
+ return;
1624
+ }
1625
+ $target = ( $attributes['newTab'] ) ? '_blank' : '_self';
1626
+ $cta_text = ( $attributes['ctaText'] ) ? $attributes['ctaText'] : __( 'Read More', 'ultimate-addons-for-gutenberg' );
1627
+ do_action( "uagb_single_post_before_cta_{$attributes['post_type']}", get_the_ID(), $attributes );
1628
+ ?>
1629
+ <div class="uagb-post__cta">
1630
+ <a class="uagb-post__link uagb-text-link" href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="bookmark noopener noreferrer"><?php echo $cta_text; ?></a>
1631
+ </div>
1632
+ <?php
1633
+ do_action( "uagb_single_post_after_cta_{$attributes['post_type']}", get_the_ID(), $attributes );
1634
+ }
1635
+
1636
+ /**
1637
+ * Render Complete Box Link HTML.
1638
+ *
1639
+ * @param array $attributes Array of block attributes.
1640
+ *
1641
+ * @since 1.7.0
1642
+ */
1643
+ function uagb_render_complete_box_link( $attributes ) {
1644
+ if ( ! ( isset( $attributes['linkBox'] ) && $attributes['linkBox'] ) ) {
1645
+ return;
1646
+ }
1647
+ $target = ( $attributes['newTab'] ) ? '_blank' : '_self';
1648
+ ?>
1649
+ <a class="uagb-post__link-complete-box" href="<?php echo apply_filters( "uagb_single_post_link_{$attributes['post_type']}", get_the_permalink(), get_the_ID(), $attributes ); ?>" target="<?php echo $target; ?>" rel="bookmark noopener noreferrer"></a>
1650
+ <?php
1651
+ }
languages/ultimate-addons-for-gutenberg.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the Ultimate Addons for Gutenberg package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Ultimate Addons for Gutenberg 1.11.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg\n"
8
- "POT-Creation-Date: 2019-03-07 09:31:04+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the Ultimate Addons for Gutenberg package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Ultimate Addons for Gutenberg 1.11.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg\n"
8
+ "POT-Creation-Date: 2019-03-08 06:31:10+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
lib/notices/class-astra-notices.php CHANGED
@@ -1,328 +1,344 @@
1
- <?php
2
- /**
3
- * Astra Sites Notices
4
- *
5
- * Closing notice on click on `astra-notice-close` class.
6
- *
7
- * If notice has the data attribute `data-repeat-notice-after="%2$s"` then notice close for that SPECIFIC TIME.
8
- * If notice has NO data attribute `data-repeat-notice-after="%2$s"` then notice close for the CURRENT USER FOREVER.
9
- *
10
- * > Create custom close notice link in the notice markup. E.g.
11
- * `<a href="#" data-repeat-notice-after="<?php echo MONTH_IN_SECONDS; ?>" class="astra-notice-close">`
12
- * It close the notice for 30 days.
13
- *
14
- * @package Astra Sites
15
- * @since 1.4.0
16
- */
17
-
18
- if ( ! class_exists( 'Astra_Notices' ) ) :
19
-
20
- /**
21
- * Astra_Notices
22
- *
23
- * @since 1.4.0
24
- */
25
- class Astra_Notices {
26
-
27
- /**
28
- * Notices
29
- *
30
- * @access private
31
- * @var array Notices.
32
- * @since 1.4.0
33
- */
34
- private static $version = '1.1.0';
35
-
36
- /**
37
- * Notices
38
- *
39
- * @access private
40
- * @var array Notices.
41
- * @since 1.4.0
42
- */
43
- private static $notices = array();
44
-
45
- /**
46
- * Instance
47
- *
48
- * @access private
49
- * @var object Class object.
50
- * @since 1.4.0
51
- */
52
- private static $instance;
53
-
54
- /**
55
- * Initiator
56
- *
57
- * @since 1.4.0
58
- * @return object initialized object of class.
59
- */
60
- public static function get_instance() {
61
- if ( ! isset( self::$instance ) ) {
62
- self::$instance = new self;
63
- }
64
- return self::$instance;
65
- }
66
-
67
- /**
68
- * Constructor
69
- *
70
- * @since 1.4.0
71
- */
72
- public function __construct() {
73
- add_action( 'admin_notices', array( $this, 'show_notices' ), 30 );
74
- add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
75
- add_action( 'wp_ajax_astra-notice-dismiss', array( $this, 'dismiss_notice' ) );
76
- add_filter( 'wp_kses_allowed_html', array( $this, 'add_data_attributes' ), 10, 2 );
77
- }
78
-
79
- /**
80
- * Filters and Returns a list of allowed tags and attributes for a given context.
81
- *
82
- * @param Array $allowedposttags Array of allowed tags.
83
- * @param String $context Context type (explicit).
84
- * @since 1.4.0
85
- * @return Array
86
- */
87
- public function add_data_attributes( $allowedposttags, $context ) {
88
- $allowedposttags['a']['data-repeat-notice-after'] = true;
89
-
90
- return $allowedposttags;
91
- }
92
-
93
- /**
94
- * Add Notice.
95
- *
96
- * @since 1.4.0
97
- * @param array $args Notice arguments.
98
- * @return void
99
- */
100
- public static function add_notice( $args = array() ) {
101
- self::$notices[] = $args;
102
- }
103
-
104
- /**
105
- * Dismiss Notice.
106
- *
107
- * @since 1.4.0
108
- * @return void
109
- */
110
- public function dismiss_notice() {
111
- $notice_id = ( isset( $_POST['notice_id'] ) ) ? sanitize_key( $_POST['notice_id'] ) : '';
112
- $repeat_notice_after = ( isset( $_POST['repeat_notice_after'] ) ) ? absint( $_POST['repeat_notice_after'] ) : '';
113
-
114
- // Valid inputs?
115
- if ( ! empty( $notice_id ) ) {
116
-
117
- if ( ! empty( $repeat_notice_after ) ) {
118
- set_transient( $notice_id, true, $repeat_notice_after );
119
- } else {
120
- update_user_meta( get_current_user_id(), $notice_id, 'notice-dismissed' );
121
- }
122
-
123
- wp_send_json_success();
124
- }
125
-
126
- wp_send_json_error();
127
- }
128
-
129
- /**
130
- * Enqueue Scripts.
131
- *
132
- * @since 1.4.0
133
- * @return void
134
- */
135
- public function enqueue_scripts() {
136
- wp_register_script( 'astra-notices', self::_get_uri() . 'notices.js', array( 'jquery' ), null, self::$version );
137
- }
138
-
139
- /**
140
- * Rating priority sort
141
- *
142
- * @since 1.5.2
143
- * @param array $array1 array one.
144
- * @param array $array2 array two.
145
- * @return array
146
- */
147
- public function sort_notices( $array1, $array2 ) {
148
- if ( ! isset( $array1['priority'] ) ) {
149
- $array1['priority'] = 10;
150
- }
151
- if ( ! isset( $array2['priority'] ) ) {
152
- $array2['priority'] = 10;
153
- }
154
-
155
- return $array1['priority'] - $array2['priority'];
156
- }
157
-
158
- /**
159
- * Notice Types
160
- *
161
- * @since 1.4.0
162
- * @return void
163
- */
164
- public function show_notices() {
165
-
166
- $defaults = array(
167
- 'id' => '', // Optional, Notice ID. If empty it set `astra-notices-id-<$array-index>`.
168
- 'type' => 'info', // Optional, Notice type. Default `info`. Expected [info, warning, notice, error].
169
- 'message' => '', // Optional, Message.
170
- 'show_if' => true, // Optional, Show notice on custom condition. E.g. 'show_if' => if( is_admin() ) ? true, false, .
171
- 'repeat-notice-after' => '', // Optional, Dismiss-able notice time. It'll auto show after given time.
172
- 'display-notice-after' => false, // Optional, Dismiss-able notice time. It'll auto show after given time.
173
- 'class' => '', // Optional, Additional notice wrapper class.
174
- 'priority' => 10, // Priority of the notice.
175
- 'display-with-other-notices' => true, // Should the notice be displayed if other notices are being displayed from Astra_Notices.
176
- );
177
-
178
- // Count for the notices that are rendered.
179
- $notices_displayed = 0;
180
-
181
- // sort the array with priority.
182
- usort( self::$notices, array( $this, 'sort_notices' ) );
183
-
184
- foreach ( self::$notices as $key => $notice ) {
185
-
186
- $notice = wp_parse_args( $notice, $defaults );
187
-
188
- $notice['id'] = self::get_notice_id( $notice, $key );
189
-
190
- $notice['classes'] = self::get_wrap_classes( $notice );
191
-
192
- // Notices visible after transient expire.
193
- if ( isset( $notice['show_if'] ) && true === $notice['show_if'] ) {
194
-
195
- // don't display the notice if it is not supposed to be displayed with other notices.
196
- if ( 0 !== $notices_displayed && false === $notice['display-with-other-notices'] ) {
197
- continue;
198
- }
199
-
200
- if ( self::is_expired( $notice ) ) {
201
-
202
- self::markup( $notice );
203
- ++$notices_displayed;
204
- }
205
- }
206
- }
207
-
208
- }
209
-
210
- /**
211
- * Markup Notice.
212
- *
213
- * @since 1.4.0
214
- * @param array $notice Notice markup.
215
- * @return void
216
- */
217
- public static function markup( $notice = array() ) {
218
-
219
- wp_enqueue_script( 'astra-notices' );
220
-
221
- ?>
222
- <div id="<?php echo esc_attr( $notice['id'] ); ?>" class="<?php echo esc_attr( $notice['classes'] ); ?>" data-repeat-notice-after="<?php echo esc_attr( $notice['repeat-notice-after'] ); ?>">
223
- <div class="notice-container">
224
- <?php echo wp_kses_post( $notice['message'] ); ?>
225
- </div>
226
- </div>
227
- <?php
228
- }
229
-
230
- /**
231
- * Notice classes.
232
- *
233
- * @since 1.4.0
234
- *
235
- * @param array $notice Notice arguments.
236
- * @return array Notice wrapper classes.
237
- */
238
- private static function get_wrap_classes( $notice ) {
239
- $classes = array( 'astra-notice', 'notice', 'is-dismissible' );
240
- $classes[] = $notice['class'];
241
- if ( isset( $notice['type'] ) && '' !== $notice['type'] ) {
242
- $classes[] = 'notice-' . $notice['type'];
243
- }
244
-
245
- return esc_attr( implode( ' ', $classes ) );
246
- }
247
-
248
- /**
249
- * Get Notice ID.
250
- *
251
- * @since 1.4.0
252
- *
253
- * @param array $notice Notice arguments.
254
- * @param int $key Notice array index.
255
- * @return string Notice id.
256
- */
257
- private static function get_notice_id( $notice, $key ) {
258
- if ( isset( $notice['id'] ) && ! empty( $notice['id'] ) ) {
259
- return $notice['id'];
260
- }
261
-
262
- return 'astra-notices-id-' . $key;
263
- }
264
-
265
- /**
266
- * Is notice expired?
267
- *
268
- * @since 1.4.0
269
- *
270
- * @param array $notice Notice arguments.
271
- * @return boolean
272
- */
273
- private static function is_expired( $notice ) {
274
- $transient_status = get_transient( $notice['id'] );
275
-
276
- if ( false === $transient_status ) {
277
-
278
- if ( false !== $notice['display-notice-after'] ) {
279
-
280
- if ( 'delayed-notice' !== get_user_meta( get_current_user_id(), $notice['id'], true ) &&
281
- 'notice-dismissed' !== get_user_meta( get_current_user_id(), $notice['id'], true ) ) {
282
- set_transient( $notice['id'], 'delayed-notice', $notice['display-notice-after'] );
283
- update_user_meta( get_current_user_id(), $notice['id'], 'delayed-notice' );
284
-
285
- return false;
286
- }
287
- }
288
-
289
- // Check the user meta status if current notice is dismissed or delay completed.
290
- $meta_status = get_user_meta( get_current_user_id(), $notice['id'], true );
291
-
292
- if ( empty( $meta_status ) || 'delayed-notice' === $meta_status ) {
293
- return true;
294
- }
295
- }
296
-
297
- return false;
298
- }
299
-
300
- /**
301
- * Get URI
302
- *
303
- * @return mixed URL.
304
- */
305
- public static function _get_uri() {
306
- $path = wp_normalize_path( dirname( __FILE__ ) );
307
- $theme_dir = wp_normalize_path( get_template_directory() );
308
- $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
309
-
310
- if ( strpos( $path, $theme_dir ) !== false ) {
311
- return trailingslashit( get_template_directory_uri() . str_replace( $theme_dir, '', $path ) );
312
- } elseif ( strpos( $path, $plugin_dir ) !== false ) {
313
- return plugin_dir_url( __FILE__ );
314
- } elseif ( strpos( $path, dirname( plugin_basename( __FILE__ ) ) ) !== false ) {
315
- return plugin_dir_url( __FILE__ );
316
- }
317
-
318
- return;
319
- }
320
-
321
- }
322
-
323
- /**
324
- * Kicking this off by calling 'get_instance()' method
325
- */
326
- Astra_Notices::get_instance();
327
-
328
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Astra Sites Notices
4
+ *
5
+ * Closing notice on click on `astra-notice-close` class.
6
+ *
7
+ * If notice has the data attribute `data-repeat-notice-after="%2$s"` then notice close for that SPECIFIC TIME.
8
+ * If notice has NO data attribute `data-repeat-notice-after="%2$s"` then notice close for the CURRENT USER FOREVER.
9
+ *
10
+ * > Create custom close notice link in the notice markup. E.g.
11
+ * `<a href="#" data-repeat-notice-after="<?php echo MONTH_IN_SECONDS; ?>" class="astra-notice-close">`
12
+ * It close the notice for 30 days.
13
+ *
14
+ * @package Astra Sites
15
+ * @since 1.4.0
16
+ */
17
+
18
+ if ( ! class_exists( 'Astra_Notices' ) ) :
19
+
20
+ /**
21
+ * Astra_Notices
22
+ *
23
+ * @since 1.4.0
24
+ */
25
+ class Astra_Notices {
26
+
27
+ /**
28
+ * Notices
29
+ *
30
+ * @access private
31
+ * @var array Notices.
32
+ * @since 1.4.0
33
+ */
34
+ private static $version = '1.1.2';
35
+
36
+ /**
37
+ * Notices
38
+ *
39
+ * @access private
40
+ * @var array Notices.
41
+ * @since 1.4.0
42
+ */
43
+ private static $notices = array();
44
+
45
+ /**
46
+ * Instance
47
+ *
48
+ * @access private
49
+ * @var object Class object.
50
+ * @since 1.4.0
51
+ */
52
+ private static $instance;
53
+
54
+ /**
55
+ * Initiator
56
+ *
57
+ * @since 1.4.0
58
+ * @return object initialized object of class.
59
+ */
60
+ public static function get_instance() {
61
+ if ( ! isset( self::$instance ) ) {
62
+ self::$instance = new self;
63
+ }
64
+ return self::$instance;
65
+ }
66
+
67
+ /**
68
+ * Constructor
69
+ *
70
+ * @since 1.4.0
71
+ */
72
+ public function __construct() {
73
+ add_action( 'admin_notices', array( $this, 'show_notices' ), 30 );
74
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
75
+ add_action( 'wp_ajax_astra-notice-dismiss', array( $this, 'dismiss_notice' ) );
76
+ add_filter( 'wp_kses_allowed_html', array( $this, 'add_data_attributes' ), 10, 2 );
77
+ }
78
+
79
+ /**
80
+ * Filters and Returns a list of allowed tags and attributes for a given context.
81
+ *
82
+ * @param Array $allowedposttags Array of allowed tags.
83
+ * @param String $context Context type (explicit).
84
+ * @since 1.4.0
85
+ * @return Array
86
+ */
87
+ public function add_data_attributes( $allowedposttags, $context ) {
88
+ $allowedposttags['a']['data-repeat-notice-after'] = true;
89
+
90
+ return $allowedposttags;
91
+ }
92
+
93
+ /**
94
+ * Add Notice.
95
+ *
96
+ * @since 1.4.0
97
+ * @param array $args Notice arguments.
98
+ * @return void
99
+ */
100
+ public static function add_notice( $args = array() ) {
101
+ self::$notices[] = $args;
102
+ }
103
+
104
+ /**
105
+ * Dismiss Notice.
106
+ *
107
+ * @since 1.4.0
108
+ * @return void
109
+ */
110
+ public function dismiss_notice() {
111
+ $notice_id = ( isset( $_POST['notice_id'] ) ) ? sanitize_key( $_POST['notice_id'] ) : '';
112
+ $repeat_notice_after = ( isset( $_POST['repeat_notice_after'] ) ) ? absint( $_POST['repeat_notice_after'] ) : '';
113
+
114
+ // Valid inputs?
115
+ if ( ! empty( $notice_id ) ) {
116
+
117
+ if ( ! empty( $repeat_notice_after ) ) {
118
+ set_transient( $notice_id, true, $repeat_notice_after );
119
+ } else {
120
+ update_user_meta( get_current_user_id(), $notice_id, 'notice-dismissed' );
121
+ }
122
+
123
+ wp_send_json_success();
124
+ }
125
+
126
+ wp_send_json_error();
127
+ }
128
+
129
+ /**
130
+ * Enqueue Scripts.
131
+ *
132
+ * @since 1.4.0
133
+ * @return void
134
+ */
135
+ public function enqueue_scripts() {
136
+ wp_register_script( 'astra-notices', self::_get_uri() . 'notices.js', array( 'jquery' ), self::$version, true );
137
+ }
138
+
139
+ /**
140
+ * Rating priority sort
141
+ *
142
+ * @since 1.5.2
143
+ * @param array $array1 array one.
144
+ * @param array $array2 array two.
145
+ * @return array
146
+ */
147
+ public function sort_notices( $array1, $array2 ) {
148
+ if ( ! isset( $array1['priority'] ) ) {
149
+ $array1['priority'] = 10;
150
+ }
151
+ if ( ! isset( $array2['priority'] ) ) {
152
+ $array2['priority'] = 10;
153
+ }
154
+
155
+ return $array1['priority'] - $array2['priority'];
156
+ }
157
+
158
+ /**
159
+ * Notice Types
160
+ *
161
+ * @since 1.4.0
162
+ * @return void
163
+ */
164
+ public function show_notices() {
165
+
166
+ $defaults = array(
167
+ 'id' => '', // Optional, Notice ID. If empty it set `astra-notices-id-<$array-index>`.
168
+ 'type' => 'info', // Optional, Notice type. Default `info`. Expected [info, warning, notice, error].
169
+ 'message' => '', // Optional, Message.
170
+ 'show_if' => true, // Optional, Show notice on custom condition. E.g. 'show_if' => if( is_admin() ) ? true, false, .
171
+ 'repeat-notice-after' => '', // Optional, Dismiss-able notice time. It'll auto show after given time.
172
+ 'display-notice-after' => false, // Optional, Dismiss-able notice time. It'll auto show after given time.
173
+ 'class' => '', // Optional, Additional notice wrapper class.
174
+ 'priority' => 10, // Priority of the notice.
175
+ 'display-with-other-notices' => true, // Should the notice be displayed if other notices are being displayed from Astra_Notices.
176
+ );
177
+
178
+ // Count for the notices that are rendered.
179
+ $notices_displayed = 0;
180
+
181
+ // sort the array with priority.
182
+ usort( self::$notices, array( $this, 'sort_notices' ) );
183
+
184
+ foreach ( self::$notices as $key => $notice ) {
185
+
186
+ $notice = wp_parse_args( $notice, $defaults );
187
+
188
+ $notice['id'] = self::get_notice_id( $notice, $key );
189
+
190
+ $notice['classes'] = self::get_wrap_classes( $notice );
191
+
192
+ // Notices visible after transient expire.
193
+ if ( isset( $notice['show_if'] ) && true === $notice['show_if'] ) {
194
+
195
+ // don't display the notice if it is not supposed to be displayed with other notices.
196
+ if ( 0 !== $notices_displayed && false === $notice['display-with-other-notices'] ) {
197
+ continue;
198
+ }
199
+
200
+ if ( self::is_expired( $notice ) ) {
201
+
202
+ self::markup( $notice );
203
+ ++$notices_displayed;
204
+ }
205
+ }
206
+ }
207
+
208
+ }
209
+
210
+ /**
211
+ * Markup Notice.
212
+ *
213
+ * @since 1.4.0
214
+ * @param array $notice Notice markup.
215
+ * @return void
216
+ */
217
+ public static function markup( $notice = array() ) {
218
+
219
+ wp_enqueue_script( 'astra-notices' );
220
+
221
+ ?>
222
+ <div id="<?php echo esc_attr( $notice['id'] ); ?>" class="<?php echo esc_attr( $notice['classes'] ); ?>" data-repeat-notice-after="<?php echo esc_attr( $notice['repeat-notice-after'] ); ?>">
223
+ <div class="notice-container">
224
+ <?php echo wp_kses_post( $notice['message'] ); ?>
225
+ </div>
226
+ </div>
227
+ <?php
228
+ }
229
+
230
+ /**
231
+ * Function to check if the notice is expired or not.
232
+ *
233
+ * Pass Notice ID to this function to check if the notice is expired or not.
234
+ *
235
+ * @since 1.7.0
236
+ * @param array $id Notice id.
237
+ * @return boolean
238
+ */
239
+ public static function is_notice_expired( $id ) {
240
+ if ( self::is_expired( $id ) ) {
241
+ return true;
242
+ }
243
+ return false;
244
+ }
245
+
246
+ /**
247
+ * Notice classes.
248
+ *
249
+ * @since 1.4.0
250
+ *
251
+ * @param array $notice Notice arguments.
252
+ * @return array Notice wrapper classes.
253
+ */
254
+ private static function get_wrap_classes( $notice ) {
255
+ $classes = array( 'astra-notice', 'notice', 'is-dismissible' );
256
+ $classes[] = $notice['class'];
257
+ if ( isset( $notice['type'] ) && '' !== $notice['type'] ) {
258
+ $classes[] = 'notice-' . $notice['type'];
259
+ }
260
+
261
+ return esc_attr( implode( ' ', $classes ) );
262
+ }
263
+
264
+ /**
265
+ * Get Notice ID.
266
+ *
267
+ * @since 1.4.0
268
+ *
269
+ * @param array $notice Notice arguments.
270
+ * @param int $key Notice array index.
271
+ * @return string Notice id.
272
+ */
273
+ private static function get_notice_id( $notice, $key ) {
274
+ if ( isset( $notice['id'] ) && ! empty( $notice['id'] ) ) {
275
+ return $notice['id'];
276
+ }
277
+
278
+ return 'astra-notices-id-' . $key;
279
+ }
280
+
281
+ /**
282
+ * Is notice expired?
283
+ *
284
+ * @since 1.4.0
285
+ *
286
+ * @param array $notice Notice arguments.
287
+ * @return boolean
288
+ */
289
+ private static function is_expired( $notice ) {
290
+ $transient_status = get_transient( $notice['id'] );
291
+
292
+ if ( false === $transient_status ) {
293
+
294
+ if ( isset( $notice['display-notice-after'] ) && false !== $notice['display-notice-after'] ) {
295
+
296
+ if ( 'delayed-notice' !== get_user_meta( get_current_user_id(), $notice['id'], true ) &&
297
+ 'notice-dismissed' !== get_user_meta( get_current_user_id(), $notice['id'], true ) ) {
298
+ set_transient( $notice['id'], 'delayed-notice', $notice['display-notice-after'] );
299
+ update_user_meta( get_current_user_id(), $notice['id'], 'delayed-notice' );
300
+
301
+ return false;
302
+ }
303
+ }
304
+
305
+ // Check the user meta status if current notice is dismissed or delay completed.
306
+ $meta_status = get_user_meta( get_current_user_id(), $notice['id'], true );
307
+
308
+ if ( empty( $meta_status ) || 'delayed-notice' === $meta_status ) {
309
+ return true;
310
+ }
311
+ }
312
+
313
+ return false;
314
+ }
315
+
316
+ /**
317
+ * Get URI
318
+ *
319
+ * @return mixed URL.
320
+ */
321
+ public static function _get_uri() {
322
+ $path = wp_normalize_path( dirname( __FILE__ ) );
323
+ $theme_dir = wp_normalize_path( get_template_directory() );
324
+ $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
325
+
326
+ if ( strpos( $path, $theme_dir ) !== false ) {
327
+ return trailingslashit( get_template_directory_uri() . str_replace( $theme_dir, '', $path ) );
328
+ } elseif ( strpos( $path, $plugin_dir ) !== false ) {
329
+ return plugin_dir_url( __FILE__ );
330
+ } elseif ( strpos( $path, dirname( plugin_basename( __FILE__ ) ) ) !== false ) {
331
+ return plugin_dir_url( __FILE__ );
332
+ }
333
+
334
+ return;
335
+ }
336
+
337
+ }
338
+
339
+ /**
340
+ * Kicking this off by calling 'get_instance()' method
341
+ */
342
+ Astra_Notices::get_instance();
343
+
344
+ endif;
lib/notices/notices.js CHANGED
@@ -70,7 +70,7 @@
70
  },
71
 
72
  _ajax: function( notice_id, repeat_notice_after ) {
73
-
74
  if( "" === notice_id ) {
75
  return
76
  }
@@ -91,4 +91,4 @@
91
  $( function() {
92
  AstraNotices.init()
93
  } )
94
- } )( jQuery )
70
  },
71
 
72
  _ajax: function( notice_id, repeat_notice_after ) {
73
+
74
  if( "" === notice_id ) {
75
  return
76
  }
91
  $( function() {
92
  AstraNotices.init()
93
  } )
94
+ } )( jQuery )
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: gutenberg, blocks, gutenberg blocks, editor, block
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 5.1
8
- Stable tag: 1.11.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -149,6 +149,9 @@ When you use the Ultimate Addons for Gutenberg along with the free Astra theme,
149
 
150
  == Changelog ==
151
 
 
 
 
152
  = 1.11.0 =
153
  * New: Marketing Button
154
  * Improvement: Post - Added Compatibility to Custom Post Types and Taxonomies.
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 5.1
8
+ Stable tag: 1.11.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
149
 
150
  == Changelog ==
151
 
152
+ = 1.11.1 =
153
+ * Fix: PHP Error - Conflict with Astra v1.7.0
154
+
155
  = 1.11.0 =
156
  * New: Marketing Button
157
  * Improvement: Post - Added Compatibility to Custom Post Types and Taxonomies.
ultimate-addons-for-gutenberg.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://www.brainstormforce.com
5
  * Author: Brainstorm Force
6
  * Author URI: https://www.brainstormforce.com
7
- * Version: 1.11.0
8
  * Description: The Ultimate Addons for Gutenberg extends the Gutenberg functionality with several unique and feature-rich blocks that help build websites faster.
9
  * Text Domain: ultimate-addons-for-gutenberg
10
  *
4
  * Plugin URI: https://www.brainstormforce.com
5
  * Author: Brainstorm Force
6
  * Author URI: https://www.brainstormforce.com
7
+ * Version: 1.11.1
8
  * Description: The Ultimate Addons for Gutenberg extends the Gutenberg functionality with several unique and feature-rich blocks that help build websites faster.
9
  * Text Domain: ultimate-addons-for-gutenberg
10
  *