Gutenberg Blocks – Ultimate Addons for Gutenberg - Version 1.12.1

Version Description

  • Improvement: Added version number to script.
  • Fix: Post - Conflicts with FacetWP.
  • Fix: Post Carousel - Columns option for responsive devices not working on front end.
  • Fix: Section - Spacing issue in editor for Full Width layout.
Download this release

Release Info

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

Code changes from version 1.12.0 to 1.12.1

classes/class-uagb-admin.php CHANGED
@@ -1,452 +1,452 @@
1
- <?php
2
- /**
3
- * UAGB Admin.
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! class_exists( 'UAGB_Admin' ) ) {
9
-
10
- /**
11
- * Class UAGB_Admin.
12
- */
13
- final class UAGB_Admin {
14
-
15
- /**
16
- * Calls on initialization
17
- *
18
- * @since 0.0.1
19
- */
20
- public static function init() {
21
-
22
- self::initialize_ajax();
23
- self::initialise_plugin();
24
- add_action( 'after_setup_theme', __CLASS__ . '::init_hooks' );
25
- // Activation hook.
26
- add_action( 'admin_init', __CLASS__ . '::activation_redirect' );
27
- }
28
-
29
- /**
30
- * Activation Reset
31
- */
32
- public static function activation_redirect() {
33
- if ( get_option( '__uagb_do_redirect' ) ) {
34
- update_option( '__uagb_do_redirect', false );
35
- if ( ! is_multisite() ) {
36
- exit( wp_redirect( admin_url( 'options-general.php?page=' . UAGB_SLUG ) ) );
37
- }
38
- }
39
- }
40
-
41
- /**
42
- * Adds the admin menu and enqueues CSS/JS if we are on
43
- * the builder admin settings page.
44
- *
45
- * @since 0.0.1
46
- * @return void
47
- */
48
- public static function init_hooks() {
49
- if ( ! is_admin() ) {
50
- return;
51
- }
52
-
53
- // Add UAGB menu option to admin.
54
- add_action( 'network_admin_menu', __CLASS__ . '::menu' );
55
-
56
- add_action( 'admin_menu', __CLASS__ . '::menu' );
57
-
58
- add_action( 'uagb_render_admin_content', __CLASS__ . '::render_content' );
59
-
60
- add_action( 'admin_notices', __CLASS__ . '::register_notices' );
61
-
62
- add_filter( 'wp_kses_allowed_html', __CLASS__ . '::add_data_attributes', 10, 2 );
63
-
64
- add_action( 'admin_enqueue_scripts', __CLASS__ . '::notice_styles_scripts' );
65
-
66
- add_action( 'wp_ajax_uag-theme-activate', __CLASS__ . '::theme_activate' );
67
-
68
- // Enqueue admin scripts.
69
- if ( isset( $_REQUEST['page'] ) && UAGB_SLUG == $_REQUEST['page'] ) {
70
- add_action( 'admin_enqueue_scripts', __CLASS__ . '::styles_scripts' );
71
-
72
- self::save_settings();
73
- }
74
- }
75
-
76
- /**
77
- * Filters and Returns a list of allowed tags and attributes for a given context.
78
- *
79
- * @param Array $allowedposttags Array of allowed tags.
80
- * @param String $context Context type (explicit).
81
- * @since 1.8.0
82
- * @return Array
83
- */
84
- public static function add_data_attributes( $allowedposttags, $context ) {
85
- $allowedposttags['a']['data-repeat-notice-after'] = true;
86
-
87
- return $allowedposttags;
88
- }
89
-
90
- /**
91
- * Ask Plugin Rating
92
- *
93
- * @since 1.8.0
94
- */
95
- public static function register_notices() {
96
-
97
- $image_path = UAGB_URL . 'admin/assets/images/uagb_notice.svg';
98
-
99
- Astra_Notices::add_notice(
100
- array(
101
- 'id' => 'uagb-admin-rating',
102
- 'type' => '',
103
- 'message' => sprintf(
104
- '<div class="notice-image">
105
- <img src="%1$s" class="custom-logo" alt="Ultimate Addons for Gutenberg" itemprop="logo"></div>
106
- <div class="notice-content">
107
- <div class="notice-heading">
108
- %2$s
109
- </div>
110
- %3$s<br />
111
- <div class="uagb-review-notice-container">
112
- <a href="%4$s" class="astra-notice-close uagb-review-notice button-primary" target="_blank">
113
- %5$s
114
- </a>
115
- <span class="dashicons dashicons-calendar"></span>
116
- <a href="#" data-repeat-notice-after="%6$s" class="astra-notice-close uagb-review-notice">
117
- %7$s
118
- </a>
119
- <span class="dashicons dashicons-smiley"></span>
120
- <a href="#" class="astra-notice-close uagb-review-notice">
121
- %8$s
122
- </a>
123
- </div>
124
- </div>',
125
- $image_path,
126
- __( 'Wow! The Ultimate Addons for Gutenberg has already powered over 5 pages on your website!', 'ultimate-addons-for-gutenberg' ),
127
- __( 'Would you please mind sharing your views and give it a 5 star rating on the WordPress repository?', 'ultimate-addons-for-gutenberg' ),
128
- 'https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/reviews/?filter=5#new-post',
129
- __( 'Ok, you deserve it', 'ultimate-addons-for-gutenberg' ),
130
- MONTH_IN_SECONDS,
131
- __( 'Nope, maybe later', 'ultimate-addons-for-gutenberg' ),
132
- __( 'I already did', 'ultimate-addons-for-gutenberg' )
133
- ),
134
- 'repeat-notice-after' => MONTH_IN_SECONDS,
135
- 'display-notice-after' => WEEK_IN_SECONDS,
136
- 'priority' => 20,
137
- 'display-with-other-notices' => false,
138
- 'show_if' => UAGB_Helper::show_rating_notice(),
139
- )
140
- );
141
-
142
- if ( class_exists( 'Classic_Editor' ) ) {
143
- $editor_option = get_option( 'classic-editor-replace' );
144
- if ( isset( $editor_option ) && 'block' != $editor_option ) {
145
- Astra_Notices::add_notice(
146
- array(
147
- 'id' => 'uagb-classic-editor',
148
- 'type' => 'warning',
149
- 'message' => sprintf(
150
- /* translators: %s: html tags */
151
- __( 'Ultimate Addons for Gutenberg requires&nbsp;%3$sBlock Editor%4$s. You can change your editor settings to Block Editor from&nbsp;%1$shere%2$s. Plugin is currently NOT RUNNING.', 'ultimate-addons-for-gutenberg' ),
152
- '<a href="' . admin_url( 'options-writing.php' ) . '">',
153
- '</a>',
154
- '<strong>',
155
- '</strong>'
156
- ),
157
- 'priority' => 20,
158
- 'display-with-other-notices' => true,
159
- )
160
- );
161
- }
162
- }
163
- }
164
-
165
- /**
166
- * Initialises the Plugin Name.
167
- *
168
- * @since 0.0.1
169
- * @return void
170
- */
171
- public static function initialise_plugin() {
172
-
173
- define( 'UAGB_PLUGIN_NAME', 'Ultimate Addons for Gutenberg' );
174
- define( 'UAGB_PLUGIN_SHORT_NAME', 'UAG' );
175
- }
176
-
177
- /**
178
- * Renders the admin settings menu.
179
- *
180
- * @since 0.0.1
181
- * @return void
182
- */
183
- public static function menu() {
184
-
185
- if ( ! current_user_can( 'manage_options' ) ) {
186
- return;
187
- }
188
-
189
- add_submenu_page(
190
- 'options-general.php',
191
- UAGB_PLUGIN_SHORT_NAME,
192
- UAGB_PLUGIN_SHORT_NAME,
193
- 'manage_options',
194
- UAGB_SLUG,
195
- __CLASS__ . '::render'
196
- );
197
- }
198
-
199
- /**
200
- * Renders the admin settings.
201
- *
202
- * @since 0.0.1
203
- * @return void
204
- */
205
- public static function render() {
206
- $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
207
- $action = ( ! empty( $action ) && '' != $action ) ? $action : 'general';
208
- $action = str_replace( '_', '-', $action );
209
-
210
- // Enable header icon filter below.
211
- $uagb_icon = apply_filters( 'uagb_header_top_icon', true );
212
- $uagb_visit_site_url = apply_filters( 'uagb_site_url', 'https://www.ultimategutenberg.com/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard' );
213
- $uagb_header_wrapper_class = apply_filters( 'uagb_header_wrapper_class', array( $action ) );
214
-
215
- include_once UAGB_DIR . 'admin/uagb-admin.php';
216
- }
217
-
218
- /**
219
- * Renders the admin settings content.
220
- *
221
- * @since 0.0.1
222
- * @return void
223
- */
224
- public static function render_content() {
225
-
226
- $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
227
- $action = ( ! empty( $action ) && '' != $action ) ? $action : 'general';
228
- $action = str_replace( '_', '-', $action );
229
-
230
- $uagb_header_wrapper_class = apply_filters( 'uagb_header_wrapper_class', array( $action ) );
231
-
232
- include_once UAGB_DIR . 'admin/uagb-' . $action . '.php';
233
- }
234
-
235
- /**
236
- * Enqueues the needed CSS/JS for the builder's admin settings page.
237
- *
238
- * @since 1.8.0
239
- */
240
- public static function notice_styles_scripts() {
241
- // Styles.
242
- wp_enqueue_style( 'uagb-notice-settings', UAGB_URL . 'admin/assets/admin-notice.css', array(), UAGB_VER );
243
- }
244
-
245
- /**
246
- * Enqueues the needed CSS/JS for the builder's admin settings page.
247
- *
248
- * @since 1.0.0
249
- */
250
- public static function styles_scripts() {
251
-
252
- // Styles.
253
- wp_enqueue_style( 'uagb-admin-settings', UAGB_URL . 'admin/assets/admin-menu-settings.css', array(), UAGB_VER );
254
- // Script.
255
- wp_enqueue_script( 'uagb-admin-settings', UAGB_URL . 'admin/assets/admin-menu-settings.js', array( 'jquery', 'wp-util', 'updates' ), UAGB_VER );
256
-
257
- $localize = array(
258
- 'ajax_url' => admin_url( 'admin-ajax.php' ),
259
- 'ajax_nonce' => wp_create_nonce( 'uagb-block-nonce' ),
260
- 'activate' => __( 'Activate', 'ultimate-addons-for-gutenberg' ),
261
- 'deactivate' => __( 'Deactivate', 'ultimate-addons-for-gutenberg' ),
262
- 'enable_beta' => __( 'Enable Beta Updates', 'ultimate-addons-for-gutenberg' ),
263
- 'disable_beta' => __( 'Disable Beta Updates', 'ultimate-addons-for-gutenberg' ),
264
- 'installing_text' => __( 'Installing Astra', 'ultimate-addons-for-gutenberg' ),
265
- 'activating_text' => __( 'Activating Astra', 'ultimate-addons-for-gutenberg' ),
266
- 'activated_text' => __( 'Astra Activated!', 'ultimate-addons-for-gutenberg' ),
267
- );
268
-
269
- wp_localize_script( 'uagb-admin-settings', 'uagb', apply_filters( 'uagb_js_localize', $localize ) );
270
- }
271
-
272
- /**
273
- * Save All admin settings here
274
- */
275
- public static function save_settings() {
276
-
277
- // Only admins can save settings.
278
- if ( ! current_user_can( 'manage_options' ) ) {
279
- return;
280
- }
281
-
282
- // Let extensions hook into saving.
283
- do_action( 'uagb_admin_settings_save' );
284
- }
285
-
286
- /**
287
- * Initialize Ajax
288
- */
289
- public static function initialize_ajax() {
290
- // Ajax requests.
291
- add_action( 'wp_ajax_uagb_activate_widget', __CLASS__ . '::activate_widget' );
292
- add_action( 'wp_ajax_uagb_deactivate_widget', __CLASS__ . '::deactivate_widget' );
293
-
294
- add_action( 'wp_ajax_uagb_bulk_activate_widgets', __CLASS__ . '::bulk_activate_widgets' );
295
- add_action( 'wp_ajax_uagb_bulk_deactivate_widgets', __CLASS__ . '::bulk_deactivate_widgets' );
296
-
297
- add_action( 'wp_ajax_uagb_allow_beta_updates', __CLASS__ . '::allow_beta_updates' );
298
- }
299
-
300
- /**
301
- * Activate module
302
- */
303
- public static function activate_widget() {
304
-
305
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
306
-
307
- $block_id = sanitize_text_field( $_POST['block_id'] );
308
- $blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks', array() );
309
- $blocks[ $block_id ] = $block_id;
310
- $blocks = array_map( 'esc_attr', $blocks );
311
-
312
- // Update blocks.
313
- UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $blocks );
314
-
315
- echo $block_id;
316
-
317
- die();
318
- }
319
-
320
- /**
321
- * Deactivate module
322
- */
323
- public static function deactivate_widget() {
324
-
325
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
326
-
327
- $block_id = sanitize_text_field( $_POST['block_id'] );
328
- $blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks', array() );
329
- $blocks[ $block_id ] = 'disabled';
330
- $blocks = array_map( 'esc_attr', $blocks );
331
-
332
- // Update blocks.
333
- UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $blocks );
334
-
335
- echo $block_id;
336
-
337
- die();
338
- }
339
-
340
- /**
341
- * Activate all module
342
- */
343
- public static function bulk_activate_widgets() {
344
-
345
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
346
-
347
- // Get all widgets.
348
- $all_blocks = UAGB_Helper::$block_list;
349
- $new_blocks = array();
350
-
351
- // Set all extension to enabled.
352
- foreach ( $all_blocks as $slug => $value ) {
353
- $_slug = str_replace( 'uagb/', '', $slug );
354
- $new_blocks[ $_slug ] = $_slug;
355
- }
356
-
357
- // Escape attrs.
358
- $new_blocks = array_map( 'esc_attr', $new_blocks );
359
-
360
- // Update new_extensions.
361
- UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $new_blocks );
362
-
363
- echo 'success';
364
-
365
- die();
366
- }
367
-
368
- /**
369
- * Deactivate all module
370
- */
371
- public static function bulk_deactivate_widgets() {
372
-
373
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
374
-
375
- // Get all extensions.
376
- $old_blocks = UAGB_Helper::$block_list;
377
- $new_blocks = array();
378
-
379
- // Set all extension to enabled.
380
- foreach ( $old_blocks as $slug => $value ) {
381
- $_slug = str_replace( 'uagb/', '', $slug );
382
- $new_blocks[ $_slug ] = 'disabled';
383
- }
384
-
385
- // Escape attrs.
386
- $new_blocks = array_map( 'esc_attr', $new_blocks );
387
-
388
- // Update new_extensions.
389
- UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $new_blocks );
390
-
391
- echo 'success';
392
-
393
- die();
394
- }
395
-
396
- /**
397
- * Allow beta updates
398
- */
399
- public static function allow_beta_updates() {
400
-
401
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
402
-
403
- $beta_update = sanitize_text_field( $_POST['allow_beta'] );
404
-
405
- // Update new_extensions.
406
- UAGB_Helper::update_admin_settings_option( '_uagb_beta', $beta_update );
407
-
408
- echo 'success';
409
-
410
- die();
411
- }
412
-
413
- /**
414
- * Required Plugin Activate
415
- *
416
- * @since 1.8.2
417
- */
418
- public static function theme_activate() {
419
-
420
- if ( ! current_user_can( 'switch_themes' ) || ! isset( $_POST['slug'] ) || ! $_POST['slug'] ) {
421
- wp_send_json_error(
422
- array(
423
- 'success' => false,
424
- 'message' => __( 'No Theme specified', 'ultimate-addons-for-gutenberg' ),
425
- )
426
- );
427
- }
428
-
429
- $theme_slug = ( isset( $_POST['slug'] ) ) ? esc_attr( $_POST['slug'] ) : '';
430
-
431
- $activate = switch_theme( $theme_slug );
432
-
433
- if ( is_wp_error( $activate ) ) {
434
- wp_send_json_error(
435
- array(
436
- 'success' => false,
437
- 'message' => $activate->get_error_message(),
438
- )
439
- );
440
- }
441
-
442
- wp_send_json_success(
443
- array(
444
- 'success' => true,
445
- 'message' => __( 'Theme Successfully Activated', 'ultimate-addons-for-gutenberg' ),
446
- )
447
- );
448
- }
449
- }
450
-
451
- UAGB_Admin::init();
452
- }
1
+ <?php
2
+ /**
3
+ * UAGB Admin.
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! class_exists( 'UAGB_Admin' ) ) {
9
+
10
+ /**
11
+ * Class UAGB_Admin.
12
+ */
13
+ final class UAGB_Admin {
14
+
15
+ /**
16
+ * Calls on initialization
17
+ *
18
+ * @since 0.0.1
19
+ */
20
+ public static function init() {
21
+
22
+ self::initialize_ajax();
23
+ self::initialise_plugin();
24
+ add_action( 'after_setup_theme', __CLASS__ . '::init_hooks' );
25
+ // Activation hook.
26
+ add_action( 'admin_init', __CLASS__ . '::activation_redirect' );
27
+ }
28
+
29
+ /**
30
+ * Activation Reset
31
+ */
32
+ public static function activation_redirect() {
33
+ if ( get_option( '__uagb_do_redirect' ) ) {
34
+ update_option( '__uagb_do_redirect', false );
35
+ if ( ! is_multisite() ) {
36
+ exit( wp_redirect( admin_url( 'options-general.php?page=' . UAGB_SLUG ) ) );
37
+ }
38
+ }
39
+ }
40
+
41
+ /**
42
+ * Adds the admin menu and enqueues CSS/JS if we are on
43
+ * the builder admin settings page.
44
+ *
45
+ * @since 0.0.1
46
+ * @return void
47
+ */
48
+ public static function init_hooks() {
49
+ if ( ! is_admin() ) {
50
+ return;
51
+ }
52
+
53
+ // Add UAGB menu option to admin.
54
+ add_action( 'network_admin_menu', __CLASS__ . '::menu' );
55
+
56
+ add_action( 'admin_menu', __CLASS__ . '::menu' );
57
+
58
+ add_action( 'uagb_render_admin_content', __CLASS__ . '::render_content' );
59
+
60
+ add_action( 'admin_notices', __CLASS__ . '::register_notices' );
61
+
62
+ add_filter( 'wp_kses_allowed_html', __CLASS__ . '::add_data_attributes', 10, 2 );
63
+
64
+ add_action( 'admin_enqueue_scripts', __CLASS__ . '::notice_styles_scripts' );
65
+
66
+ add_action( 'wp_ajax_uag-theme-activate', __CLASS__ . '::theme_activate' );
67
+
68
+ // Enqueue admin scripts.
69
+ if ( isset( $_REQUEST['page'] ) && UAGB_SLUG == $_REQUEST['page'] ) {
70
+ add_action( 'admin_enqueue_scripts', __CLASS__ . '::styles_scripts' );
71
+
72
+ self::save_settings();
73
+ }
74
+ }
75
+
76
+ /**
77
+ * Filters and Returns a list of allowed tags and attributes for a given context.
78
+ *
79
+ * @param Array $allowedposttags Array of allowed tags.
80
+ * @param String $context Context type (explicit).
81
+ * @since 1.8.0
82
+ * @return Array
83
+ */
84
+ public static function add_data_attributes( $allowedposttags, $context ) {
85
+ $allowedposttags['a']['data-repeat-notice-after'] = true;
86
+
87
+ return $allowedposttags;
88
+ }
89
+
90
+ /**
91
+ * Ask Plugin Rating
92
+ *
93
+ * @since 1.8.0
94
+ */
95
+ public static function register_notices() {
96
+
97
+ $image_path = UAGB_URL . 'admin/assets/images/uagb_notice.svg';
98
+
99
+ Astra_Notices::add_notice(
100
+ array(
101
+ 'id' => 'uagb-admin-rating',
102
+ 'type' => '',
103
+ 'message' => sprintf(
104
+ '<div class="notice-image">
105
+ <img src="%1$s" class="custom-logo" alt="Ultimate Addons for Gutenberg" itemprop="logo"></div>
106
+ <div class="notice-content">
107
+ <div class="notice-heading">
108
+ %2$s
109
+ </div>
110
+ %3$s<br />
111
+ <div class="uagb-review-notice-container">
112
+ <a href="%4$s" class="astra-notice-close uagb-review-notice button-primary" target="_blank">
113
+ %5$s
114
+ </a>
115
+ <span class="dashicons dashicons-calendar"></span>
116
+ <a href="#" data-repeat-notice-after="%6$s" class="astra-notice-close uagb-review-notice">
117
+ %7$s
118
+ </a>
119
+ <span class="dashicons dashicons-smiley"></span>
120
+ <a href="#" class="astra-notice-close uagb-review-notice">
121
+ %8$s
122
+ </a>
123
+ </div>
124
+ </div>',
125
+ $image_path,
126
+ __( 'Wow! The Ultimate Addons for Gutenberg has already powered over 5 pages on your website!', 'ultimate-addons-for-gutenberg' ),
127
+ __( 'Would you please mind sharing your views and give it a 5 star rating on the WordPress repository?', 'ultimate-addons-for-gutenberg' ),
128
+ 'https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/reviews/?filter=5#new-post',
129
+ __( 'Ok, you deserve it', 'ultimate-addons-for-gutenberg' ),
130
+ MONTH_IN_SECONDS,
131
+ __( 'Nope, maybe later', 'ultimate-addons-for-gutenberg' ),
132
+ __( 'I already did', 'ultimate-addons-for-gutenberg' )
133
+ ),
134
+ 'repeat-notice-after' => MONTH_IN_SECONDS,
135
+ 'display-notice-after' => WEEK_IN_SECONDS,
136
+ 'priority' => 20,
137
+ 'display-with-other-notices' => false,
138
+ 'show_if' => UAGB_Helper::show_rating_notice(),
139
+ )
140
+ );
141
+
142
+ if ( class_exists( 'Classic_Editor' ) ) {
143
+ $editor_option = get_option( 'classic-editor-replace' );
144
+ if ( isset( $editor_option ) && 'block' != $editor_option ) {
145
+ Astra_Notices::add_notice(
146
+ array(
147
+ 'id' => 'uagb-classic-editor',
148
+ 'type' => 'warning',
149
+ 'message' => sprintf(
150
+ /* translators: %s: html tags */
151
+ __( 'Ultimate Addons for Gutenberg requires&nbsp;%3$sBlock Editor%4$s. You can change your editor settings to Block Editor from&nbsp;%1$shere%2$s. Plugin is currently NOT RUNNING.', 'ultimate-addons-for-gutenberg' ),
152
+ '<a href="' . admin_url( 'options-writing.php' ) . '">',
153
+ '</a>',
154
+ '<strong>',
155
+ '</strong>'
156
+ ),
157
+ 'priority' => 20,
158
+ 'display-with-other-notices' => true,
159
+ )
160
+ );
161
+ }
162
+ }
163
+ }
164
+
165
+ /**
166
+ * Initialises the Plugin Name.
167
+ *
168
+ * @since 0.0.1
169
+ * @return void
170
+ */
171
+ public static function initialise_plugin() {
172
+
173
+ define( 'UAGB_PLUGIN_NAME', 'Ultimate Addons for Gutenberg' );
174
+ define( 'UAGB_PLUGIN_SHORT_NAME', 'UAG' );
175
+ }
176
+
177
+ /**
178
+ * Renders the admin settings menu.
179
+ *
180
+ * @since 0.0.1
181
+ * @return void
182
+ */
183
+ public static function menu() {
184
+
185
+ if ( ! current_user_can( 'manage_options' ) ) {
186
+ return;
187
+ }
188
+
189
+ add_submenu_page(
190
+ 'options-general.php',
191
+ UAGB_PLUGIN_SHORT_NAME,
192
+ UAGB_PLUGIN_SHORT_NAME,
193
+ 'manage_options',
194
+ UAGB_SLUG,
195
+ __CLASS__ . '::render'
196
+ );
197
+ }
198
+
199
+ /**
200
+ * Renders the admin settings.
201
+ *
202
+ * @since 0.0.1
203
+ * @return void
204
+ */
205
+ public static function render() {
206
+ $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
207
+ $action = ( ! empty( $action ) && '' != $action ) ? $action : 'general';
208
+ $action = str_replace( '_', '-', $action );
209
+
210
+ // Enable header icon filter below.
211
+ $uagb_icon = apply_filters( 'uagb_header_top_icon', true );
212
+ $uagb_visit_site_url = apply_filters( 'uagb_site_url', 'https://www.ultimategutenberg.com/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard' );
213
+ $uagb_header_wrapper_class = apply_filters( 'uagb_header_wrapper_class', array( $action ) );
214
+
215
+ include_once UAGB_DIR . 'admin/uagb-admin.php';
216
+ }
217
+
218
+ /**
219
+ * Renders the admin settings content.
220
+ *
221
+ * @since 0.0.1
222
+ * @return void
223
+ */
224
+ public static function render_content() {
225
+
226
+ $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
227
+ $action = ( ! empty( $action ) && '' != $action ) ? $action : 'general';
228
+ $action = str_replace( '_', '-', $action );
229
+
230
+ $uagb_header_wrapper_class = apply_filters( 'uagb_header_wrapper_class', array( $action ) );
231
+
232
+ include_once UAGB_DIR . 'admin/uagb-' . $action . '.php';
233
+ }
234
+
235
+ /**
236
+ * Enqueues the needed CSS/JS for the builder's admin settings page.
237
+ *
238
+ * @since 1.8.0
239
+ */
240
+ public static function notice_styles_scripts() {
241
+ // Styles.
242
+ wp_enqueue_style( 'uagb-notice-settings', UAGB_URL . 'admin/assets/admin-notice.css', array(), UAGB_VER );
243
+ }
244
+
245
+ /**
246
+ * Enqueues the needed CSS/JS for the builder's admin settings page.
247
+ *
248
+ * @since 1.0.0
249
+ */
250
+ public static function styles_scripts() {
251
+
252
+ // Styles.
253
+ wp_enqueue_style( 'uagb-admin-settings', UAGB_URL . 'admin/assets/admin-menu-settings.css', array(), UAGB_VER );
254
+ // Script.
255
+ wp_enqueue_script( 'uagb-admin-settings', UAGB_URL . 'admin/assets/admin-menu-settings.js', array( 'jquery', 'wp-util', 'updates' ), UAGB_VER );
256
+
257
+ $localize = array(
258
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
259
+ 'ajax_nonce' => wp_create_nonce( 'uagb-block-nonce' ),
260
+ 'activate' => __( 'Activate', 'ultimate-addons-for-gutenberg' ),
261
+ 'deactivate' => __( 'Deactivate', 'ultimate-addons-for-gutenberg' ),
262
+ 'enable_beta' => __( 'Enable Beta Updates', 'ultimate-addons-for-gutenberg' ),
263
+ 'disable_beta' => __( 'Disable Beta Updates', 'ultimate-addons-for-gutenberg' ),
264
+ 'installing_text' => __( 'Installing Astra', 'ultimate-addons-for-gutenberg' ),
265
+ 'activating_text' => __( 'Activating Astra', 'ultimate-addons-for-gutenberg' ),
266
+ 'activated_text' => __( 'Astra Activated!', 'ultimate-addons-for-gutenberg' ),
267
+ );
268
+
269
+ wp_localize_script( 'uagb-admin-settings', 'uagb', apply_filters( 'uagb_js_localize', $localize ) );
270
+ }
271
+
272
+ /**
273
+ * Save All admin settings here
274
+ */
275
+ public static function save_settings() {
276
+
277
+ // Only admins can save settings.
278
+ if ( ! current_user_can( 'manage_options' ) ) {
279
+ return;
280
+ }
281
+
282
+ // Let extensions hook into saving.
283
+ do_action( 'uagb_admin_settings_save' );
284
+ }
285
+
286
+ /**
287
+ * Initialize Ajax
288
+ */
289
+ public static function initialize_ajax() {
290
+ // Ajax requests.
291
+ add_action( 'wp_ajax_uagb_activate_widget', __CLASS__ . '::activate_widget' );
292
+ add_action( 'wp_ajax_uagb_deactivate_widget', __CLASS__ . '::deactivate_widget' );
293
+
294
+ add_action( 'wp_ajax_uagb_bulk_activate_widgets', __CLASS__ . '::bulk_activate_widgets' );
295
+ add_action( 'wp_ajax_uagb_bulk_deactivate_widgets', __CLASS__ . '::bulk_deactivate_widgets' );
296
+
297
+ add_action( 'wp_ajax_uagb_allow_beta_updates', __CLASS__ . '::allow_beta_updates' );
298
+ }
299
+
300
+ /**
301
+ * Activate module
302
+ */
303
+ public static function activate_widget() {
304
+
305
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
306
+
307
+ $block_id = sanitize_text_field( $_POST['block_id'] );
308
+ $blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks', array() );
309
+ $blocks[ $block_id ] = $block_id;
310
+ $blocks = array_map( 'esc_attr', $blocks );
311
+
312
+ // Update blocks.
313
+ UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $blocks );
314
+
315
+ echo $block_id;
316
+
317
+ die();
318
+ }
319
+
320
+ /**
321
+ * Deactivate module
322
+ */
323
+ public static function deactivate_widget() {
324
+
325
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
326
+
327
+ $block_id = sanitize_text_field( $_POST['block_id'] );
328
+ $blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks', array() );
329
+ $blocks[ $block_id ] = 'disabled';
330
+ $blocks = array_map( 'esc_attr', $blocks );
331
+
332
+ // Update blocks.
333
+ UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $blocks );
334
+
335
+ echo $block_id;
336
+
337
+ die();
338
+ }
339
+
340
+ /**
341
+ * Activate all module
342
+ */
343
+ public static function bulk_activate_widgets() {
344
+
345
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
346
+
347
+ // Get all widgets.
348
+ $all_blocks = UAGB_Helper::$block_list;
349
+ $new_blocks = array();
350
+
351
+ // Set all extension to enabled.
352
+ foreach ( $all_blocks as $slug => $value ) {
353
+ $_slug = str_replace( 'uagb/', '', $slug );
354
+ $new_blocks[ $_slug ] = $_slug;
355
+ }
356
+
357
+ // Escape attrs.
358
+ $new_blocks = array_map( 'esc_attr', $new_blocks );
359
+
360
+ // Update new_extensions.
361
+ UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $new_blocks );
362
+
363
+ echo 'success';
364
+
365
+ die();
366
+ }
367
+
368
+ /**
369
+ * Deactivate all module
370
+ */
371
+ public static function bulk_deactivate_widgets() {
372
+
373
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
374
+
375
+ // Get all extensions.
376
+ $old_blocks = UAGB_Helper::$block_list;
377
+ $new_blocks = array();
378
+
379
+ // Set all extension to enabled.
380
+ foreach ( $old_blocks as $slug => $value ) {
381
+ $_slug = str_replace( 'uagb/', '', $slug );
382
+ $new_blocks[ $_slug ] = 'disabled';
383
+ }
384
+
385
+ // Escape attrs.
386
+ $new_blocks = array_map( 'esc_attr', $new_blocks );
387
+
388
+ // Update new_extensions.
389
+ UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $new_blocks );
390
+
391
+ echo 'success';
392
+
393
+ die();
394
+ }
395
+
396
+ /**
397
+ * Allow beta updates
398
+ */
399
+ public static function allow_beta_updates() {
400
+
401
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
402
+
403
+ $beta_update = sanitize_text_field( $_POST['allow_beta'] );
404
+
405
+ // Update new_extensions.
406
+ UAGB_Helper::update_admin_settings_option( '_uagb_beta', $beta_update );
407
+
408
+ echo 'success';
409
+
410
+ die();
411
+ }
412
+
413
+ /**
414
+ * Required Plugin Activate
415
+ *
416
+ * @since 1.8.2
417
+ */
418
+ public static function theme_activate() {
419
+
420
+ if ( ! current_user_can( 'switch_themes' ) || ! isset( $_POST['slug'] ) || ! $_POST['slug'] ) {
421
+ wp_send_json_error(
422
+ array(
423
+ 'success' => false,
424
+ 'message' => __( 'No Theme specified', 'ultimate-addons-for-gutenberg' ),
425
+ )
426
+ );
427
+ }
428
+
429
+ $theme_slug = ( isset( $_POST['slug'] ) ) ? esc_attr( $_POST['slug'] ) : '';
430
+
431
+ $activate = switch_theme( $theme_slug );
432
+
433
+ if ( is_wp_error( $activate ) ) {
434
+ wp_send_json_error(
435
+ array(
436
+ 'success' => false,
437
+ 'message' => $activate->get_error_message(),
438
+ )
439
+ );
440
+ }
441
+
442
+ wp_send_json_success(
443
+ array(
444
+ 'success' => true,
445
+ 'message' => __( 'Theme Successfully Activated', 'ultimate-addons-for-gutenberg' ),
446
+ )
447
+ );
448
+ }
449
+ }
450
+
451
+ UAGB_Admin::init();
452
+ }
classes/class-uagb-block-helper.php CHANGED
@@ -1,4838 +1,4838 @@
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
- * Get Section Block CSS
17
- *
18
- * @since 0.0.1
19
- * @param array $attr The block attributes.
20
- * @param string $id The selector ID.
21
- * @return array The Widget List.
22
- */
23
- public static function get_section_css( $attr, $id ) { // @codingStandardsIgnoreStart
24
-
25
- global $content_width;
26
-
27
- $defaults = UAGB_Helper::$block_list['uagb/section']['attributes'];
28
-
29
- $attr = array_merge( $defaults, $attr );
30
-
31
- $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
32
-
33
- $style = array(
34
- 'padding-top' => $attr['topPadding'] . 'px',
35
- 'padding-bottom' => $attr['bottomPadding'] . 'px',
36
- 'padding-left' => $attr['leftPadding'] . 'px',
37
- 'padding-right' => $attr['rightPadding'] . 'px',
38
- 'border-radius' => $attr['borderRadius'] . "px"
39
- );
40
-
41
- $m_selectors = array();
42
- $t_selectors = array();
43
-
44
- if ( 'right' == $attr['align'] ) {
45
- $style['margin-right'] = $attr['rightMargin'] . 'px';
46
- $style['margin-left'] = 'auto';
47
- $style['margin-top'] = $attr['topMargin'] . 'px';
48
- $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
49
- } elseif ( 'left' == $attr['align'] ) {
50
- $style['margin-right'] = 'auto';
51
- $style['margin-left'] = $attr['leftMargin'] . 'px';
52
- $style['margin-top'] = $attr['topMargin'] . 'px';
53
- $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
54
- } elseif ( 'center' == $attr['align'] ) {
55
- $style['margin-right'] = 'auto';
56
- $style['margin-left'] = 'auto';
57
- $style['margin-top'] = $attr['topMargin'] . 'px';
58
- $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
59
- } else {
60
- $style['margin-top'] = $attr['topMargin'] . 'px';
61
- $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
62
- }
63
-
64
- if ( "none" != $attr['borderStyle'] ) {
65
- $style["border-style"] = $attr['borderStyle'];
66
- $style["border-width"] = $attr['borderWidth'] . "px";
67
- $style["border-color"] = $attr['borderColor'];
68
- }
69
-
70
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
71
-
72
- $section_width = '100%';
73
-
74
- if ( isset( $attr['contentWidth'] ) ) {
75
-
76
- if ( 'boxed' == $attr['contentWidth'] ) {
77
- if ( isset( $attr['width'] ) ) {
78
- $section_width = $attr['width'] . 'px';
79
- }
80
- }
81
- }
82
-
83
- if ( 'wide' != $attr['align'] && 'full' != $attr['align'] ) {
84
- $style['max-width'] = $section_width;
85
- }
86
-
87
- if ( 'image' === $bg_type ) {
88
-
89
- $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
90
- $style['background-position'] = $position;
91
- $style['background-attachment'] = $attr['backgroundAttachment'];
92
- $style['background-repeat'] = $attr['backgroundRepeat'];
93
- $style['background-size'] = $attr['backgroundSize'];
94
-
95
- }
96
-
97
- $inner_width = '100%';
98
-
99
- if ( isset( $attr['contentWidth'] ) ) {
100
- if ( 'boxed' != $attr['contentWidth'] ) {
101
- if ( isset( $attr['themeWidth'] ) && $attr['themeWidth'] == true ) {
102
- $inner_width = $content_width . 'px';
103
- } else {
104
- if ( isset( $attr['innerWidth'] ) ) {
105
- $inner_width = $attr['innerWidth'] . 'px';
106
- }
107
- }
108
- }
109
- }
110
-
111
- $selectors = array(
112
- '.uagb-section__wrap' => $style,
113
- ' > .uagb-section__video-wrap' => array(
114
- 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
115
- ),
116
- ' > .uagb-section__inner-wrap' => array(
117
- 'max-width' => $inner_width,
118
- ),
119
- );
120
-
121
- if ( 'video' == $bg_type ) {
122
- $selectors[' > .uagb-section__overlay'] = array(
123
- 'opacity' => 1,
124
- 'background-color' => $attr['backgroundVideoColor'],
125
- );
126
- } else if ( 'image' == $bg_type ) {
127
- $selectors[' > .uagb-section__overlay'] = array(
128
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
129
- 'background-color' => $attr['backgroundImageColor'],
130
- );
131
- } else if ( 'color' == $bg_type ) {
132
- $selectors[' > .uagb-section__overlay'] = array(
133
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
134
- 'background-color' => $attr['backgroundColor'],
135
- );
136
- } else if ( 'gradient' === $bg_type ) {
137
- $selectors[' > .uagb-section__overlay']['background-color'] = 'transparent';
138
- $selectors[' > .uagb-section__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
139
-
140
- if ( 'linear' === $attr['gradientType'] ) {
141
-
142
- $selectors[' > .uagb-section__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
143
- } else {
144
-
145
- $selectors[' > .uagb-section__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
146
- }
147
- }
148
-
149
- $selectors[' > .uagb-section__overlay']["border-radius"] = $attr['borderRadius'] . "px";
150
-
151
- $m_selectors = array(
152
- '.uagb-section__wrap' => array(
153
- 'padding-top' => $attr['topPaddingMobile'] . 'px',
154
- 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
155
- 'padding-left' => $attr['leftPaddingMobile'] . 'px',
156
- 'padding-right' => $attr['rightPaddingMobile'] . 'px',
157
- )
158
- );
159
-
160
- $t_selectors = array(
161
- '.uagb-section__wrap' => array(
162
- 'padding-top' => $attr['topPaddingTablet'] . 'px',
163
- 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
164
- 'padding-left' => $attr['leftPaddingTablet'] . 'px',
165
- 'padding-right' => $attr['rightPaddingTablet'] . 'px',
166
- )
167
- );
168
-
169
- if ( 'right' == $attr['align'] ) {
170
- $t_selectors['.uagb-section__wrap']['margin-right'] = $attr['rightMarginTablet'] . 'px';
171
- $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
172
- $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
173
-
174
- $m_selectors['.uagb-section__wrap']['margin-right'] = $attr['rightMarginMobile'] . 'px';
175
- $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
176
- $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
177
- } elseif ( 'left' == $attr['align'] ) {
178
- $t_selectors['.uagb-section__wrap']['margin-left'] = $attr['leftMarginTablet'] . 'px';
179
- $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
180
- $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
181
-
182
- $m_selectors['.uagb-section__wrap']['margin-left'] = $attr['leftMarginMobile'] . 'px';
183
- $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
184
- $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
185
- } else {
186
- $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
187
- $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
188
-
189
- $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
190
- $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
191
- }
192
-
193
- // @codingStandardsIgnoreEnd
194
-
195
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-section-' . $id );
196
-
197
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-section-' . $id, 'tablet' );
198
-
199
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-section-' . $id, 'mobile' );
200
-
201
- return $desktop . $tablet . $mobile;
202
- }
203
-
204
- /**
205
- * Get Columns Block CSS
206
- *
207
- * @since 1.8.0
208
- * @param array $attr The block attributes.
209
- * @param string $id The selector ID.
210
- * @return array The Widget List.
211
- */
212
- public static function get_columns_css( $attr, $id ) { // @codingStandardsIgnoreStart
213
-
214
- global $content_width;
215
-
216
- $defaults = UAGB_Helper::$block_list['uagb/columns']['attributes'];
217
-
218
- $attr = array_merge( $defaults, $attr );
219
-
220
- $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
221
-
222
- $m_selectors = array();
223
- $t_selectors = array();
224
-
225
- $style = array(
226
- 'padding-top' => $attr['topPadding'] . 'px',
227
- 'padding-bottom' => $attr['bottomPadding'] . 'px',
228
- 'padding-left' => $attr['leftPadding'] . 'px',
229
- 'padding-right' => $attr['rightPadding'] . 'px',
230
- 'margin-top' => $attr['topMargin'] . 'px',
231
- 'margin-bottom' => $attr['bottomMargin'] . 'px',
232
- 'border-radius' => $attr['borderRadius'] . "px",
233
- );
234
-
235
- if ( "none" != $attr['borderStyle'] ) {
236
- $style["border-style"] = $attr['borderStyle'];
237
- $style["border-width"] = $attr['borderWidth'] . "px";
238
- $style["border-color"] = $attr['borderColor'];
239
- }
240
-
241
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
242
-
243
- if ( 'image' === $bg_type ) {
244
-
245
- $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
246
- $style['background-position'] = $position;
247
- $style['background-attachment'] = $attr['backgroundAttachment'];
248
- $style['background-repeat'] = $attr['backgroundRepeat'];
249
- $style['background-size'] = $attr['backgroundSize'];
250
-
251
- }
252
-
253
- $inner_width = '100%';
254
-
255
- if ( isset( $attr['contentWidth'] ) ) {
256
- if ( 'theme' == $attr['contentWidth'] ) {
257
- $inner_width = $content_width . 'px';
258
- } else if ( 'custom' == $attr['contentWidth'] ) {
259
- $inner_width = $attr['width'] . 'px';
260
- }
261
- }
262
-
263
- $selectors = array(
264
- '.uagb-columns__wrap' => $style,
265
- ' .uagb-columns__video-wrap' => array(
266
- 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
267
- ),
268
- ' > .uagb-columns__inner-wrap' => array(
269
- 'max-width' => $inner_width,
270
- ),
271
- ' .uagb-column__inner-wrap' => array(
272
- 'padding' => $attr['columnGap'] . 'px'
273
- ),
274
- ' .uagb-columns__shape-top svg' => array(
275
- 'width' => "calc( " . $attr['topWidth'] . "% + 1.3px )",
276
- 'height' => $attr['topHeight'] . "px"
277
- ),
278
- ' .uagb-columns__shape-top .uagb-columns__shape-fill' => array(
279
- 'fill' => $attr['topColor'],
280
- 'opacity' => ( isset( $attr['topDividerOpacity'] ) && '' != $attr['topDividerOpacity'] ) ? ( ( $attr['topDividerOpacity'] ) / 100 ) : ""
281
- ),
282
- ' .uagb-columns__shape-bottom svg' => array(
283
- 'width' => "calc( " . $attr['bottomWidth'] . "% + 1.3px )",
284
- 'height' => $attr['bottomHeight'] . "px"
285
- ),
286
- ' .uagb-columns__shape-bottom .uagb-columns__shape-fill' => array(
287
- 'fill' => $attr['bottomColor'],
288
- 'opacity' => ( isset( $attr['bottomDividerOpacity'] ) && '' != $attr['bottomDividerOpacity'] ) ? ( ( $attr['bottomDividerOpacity'] ) / 100 ) : ""
289
- ),
290
- );
291
-
292
- if ( 'video' == $bg_type ) {
293
- $selectors[' > .uagb-columns__overlay'] = array(
294
- 'opacity' => 1,
295
- 'background-color' => $attr['backgroundVideoColor'],
296
- );
297
- } else if ( 'image' == $bg_type ) {
298
- $selectors[' > .uagb-columns__overlay'] = array(
299
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
300
- 'background-color' => $attr['backgroundImageColor'],
301
- );
302
- } else if ( 'color' == $bg_type ) {
303
- $selectors[' > .uagb-columns__overlay'] = array(
304
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
305
- 'background-color' => $attr['backgroundColor'],
306
- );
307
- } elseif ( 'gradient' === $bg_type ) {
308
- $selectors[' > .uagb-columns__overlay']['background-color'] = 'transparent';
309
- $selectors[' > .uagb-columns__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
310
-
311
- if ( 'linear' === $attr['gradientType'] ) {
312
-
313
- $selectors[' > .uagb-columns__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
314
- } else {
315
-
316
- $selectors[' > .uagb-columns__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
317
- }
318
- }
319
-
320
- $selectors[' > .uagb-columns__overlay']["border-radius"] = $attr['borderRadius'] . "px";
321
-
322
- $m_selectors = array(
323
- '.uagb-columns__wrap' => array(
324
- 'padding-top' => $attr['topPaddingMobile'] . 'px',
325
- 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
326
- 'padding-left' => $attr['leftPaddingMobile'] . 'px',
327
- 'padding-right' => $attr['rightPaddingMobile'] . 'px',
328
- 'margin-top' => $attr['topMarginMobile'] . 'px',
329
- 'margin-bottom' => $attr['bottomMarginMobile'] . 'px',
330
- ),
331
- ' .uagb-columns__shape-bottom svg' => array(
332
- 'height' => $attr['bottomHeightMobile'] . "px"
333
- ),
334
- ' .uagb-columns__shape-top svg' => array(
335
- 'height' => $attr['topHeightMobile'] . "px"
336
- ),
337
- );
338
-
339
- $t_selectors = array(
340
- '.uagb-columns__wrap' => array(
341
- 'padding-top' => $attr['topPaddingTablet'] . 'px',
342
- 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
343
- 'padding-left' => $attr['leftPaddingTablet'] . 'px',
344
- 'padding-right' => $attr['rightPaddingTablet'] . 'px',
345
- 'margin-top' => $attr['topMarginTablet'] . 'px',
346
- 'margin-bottom' => $attr['bottomMarginTablet'] . 'px',
347
- ),
348
- ' .uagb-columns__shape-bottom svg' => array(
349
- 'height' => $attr['bottomHeightTablet'] . "px"
350
- ),
351
- ' .uagb-columns__shape-top svg' => array(
352
- 'height' => $attr['topHeightTablet'] . "px"
353
- ),
354
- );
355
-
356
- // @codingStandardsIgnoreEnd
357
-
358
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-columns-' . $id );
359
-
360
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-columns-' . $id, 'tablet' );
361
-
362
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-columns-' . $id, 'mobile' );
363
-
364
- return $desktop . $tablet . $mobile;
365
- }
366
-
367
- /**
368
- * Get Single Column Block CSS
369
- *
370
- * @since 1.8.0
371
- * @param array $attr The block attributes.
372
- * @param string $id The selector ID.
373
- * @return array The Widget List.
374
- */
375
- public static function get_column_css( $attr, $id ) { // @codingStandardsIgnoreStart
376
-
377
- global $content_width;
378
-
379
- $defaults = UAGB_Helper::$block_list['uagb/column']['attributes'];
380
-
381
- $attr = array_merge( $defaults, $attr );
382
-
383
- $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
384
-
385
- $style = array(
386
- 'padding-top' => $attr['topPadding'] . 'px',
387
- 'padding-bottom' => $attr['bottomPadding'] . 'px',
388
- 'padding-left' => $attr['leftPadding'] . 'px',
389
- 'padding-right' => $attr['rightPadding'] . 'px',
390
- 'margin-top' => $attr['topMargin'] . 'px',
391
- 'margin-bottom' => $attr['bottomMargin'] . 'px',
392
- 'margin-left' => $attr['leftMargin'] . 'px',
393
- 'margin-right' => $attr['rightMargin'] . 'px',
394
- 'border-radius' => $attr['borderRadius'] . 'px',
395
- );
396
-
397
- $m_selectors = array();
398
- $t_selectors = array();
399
-
400
- if ( "none" != $attr['borderStyle'] ) {
401
- $style["border-style"] = $attr['borderStyle'];
402
- $style["border-width"] = $attr['borderWidth'] . "px";
403
- $style["border-color"] = $attr['borderColor'];
404
- }
405
-
406
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
407
-
408
- if ( 'image' === $bg_type ) {
409
-
410
- $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
411
- $style['background-position'] = $position;
412
- $style['background-attachment'] = $attr['backgroundAttachment'];
413
- $style['background-repeat'] = $attr['backgroundRepeat'];
414
- $style['background-size'] = $attr['backgroundSize'];
415
-
416
- }
417
-
418
- $selectors = array(
419
- '.uagb-column__wrap' => $style
420
- );
421
-
422
- if ( 'image' == $bg_type ) {
423
- $selectors[' > .uagb-column__overlay'] = array(
424
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
425
- 'background-color' => $attr['backgroundImageColor'],
426
- );
427
- } else if ( 'color' == $bg_type ) {
428
- $selectors[' > .uagb-column__overlay'] = array(
429
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
430
- 'background-color' => $attr['backgroundColor'],
431
- );
432
- } elseif ( 'gradient' === $bg_type ) {
433
- $selectors[' > .uagb-column__overlay']['background-color'] = 'transparent';
434
- $selectors[' > .uagb-column__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
435
-
436
- if ( 'linear' === $attr['gradientType'] ) {
437
-
438
- $selectors[' > .uagb-column__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
439
- } else {
440
-
441
- $selectors[' > .uagb-column__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
442
- }
443
- }
444
-
445
- if ( '' != $attr['colWidth'] && 0 != $attr['colWidth'] ) {
446
-
447
- $selectors[''] = array(
448
- "width" => $attr['colWidth'] . "%"
449
- );
450
- }
451
-
452
- $m_selectors = array(
453
- '.uagb-column__wrap' => array(
454
- 'padding-top' => $attr['topPaddingMobile'] . 'px',
455
- 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
456
- 'padding-left' => $attr['leftPaddingMobile'] . 'px',
457
- 'padding-right' => $attr['rightPaddingMobile'] . 'px',
458
- 'margin-top' => $attr['topMarginMobile'] . 'px',
459
- 'margin-bottom' => $attr['bottomMarginMobile'] . 'px',
460
- 'margin-left' => $attr['leftMarginMobile'] . 'px',
461
- 'margin-right' => $attr['rightMarginMobile'] . 'px',
462
- )
463
- );
464
-
465
- $t_selectors = array(
466
- '.uagb-column__wrap' => array(
467
- 'padding-top' => $attr['topPaddingTablet'] . 'px',
468
- 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
469
- 'padding-left' => $attr['leftPaddingTablet'] . 'px',
470
- 'padding-right' => $attr['rightPaddingTablet'] . 'px',
471
- 'margin-top' => $attr['topMarginTablet'] . 'px',
472
- 'margin-bottom' => $attr['bottomMarginTablet'] . 'px',
473
- 'margin-left' => $attr['leftMarginTablet'] . 'px',
474
- 'margin-right' => $attr['rightMarginTablet'] . 'px',
475
- )
476
- );
477
-
478
- if ( '' != $attr['colWidthTablet'] && 0 != $attr['colWidthTablet'] ) {
479
-
480
- $t_selectors[''] = array(
481
- "width" => $attr['colWidthTablet'] . "%"
482
- );
483
- }
484
-
485
- if ( '' != $attr['colWidthMobile'] && 0 != $attr['colWidthMobile'] ) {
486
-
487
- $m_selectors[''] = array(
488
- "width" => $attr['colWidthMobile'] . "%"
489
- );
490
- }
491
-
492
- // @codingStandardsIgnoreEnd
493
-
494
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-column-' . $id );
495
-
496
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-column-' . $id, 'tablet' );
497
-
498
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-column-' . $id, 'mobile' );
499
-
500
- return $desktop . $tablet . $mobile;
501
- }
502
-
503
- /**
504
- * Get Advanced Heading Block CSS
505
- *
506
- * @since 0.0.1
507
- * @param array $attr The block attributes.
508
- * @param string $id The selector ID.
509
- * @return array The Widget List.
510
- */
511
- public static function get_adv_heading_css( $attr, $id ) { // @codingStandardsIgnoreStart
512
-
513
- $defaults = UAGB_Helper::$block_list['uagb/advanced-heading']['attributes'];
514
-
515
- $attr = array_merge( $defaults, (array) $attr );
516
-
517
- $m_selectors = array();
518
- $t_selectors = array();
519
-
520
- $selectors = array(
521
- ' .uagb-heading-text' => array(
522
- 'text-align' => $attr['headingAlign'],
523
- 'font-family' => $attr['headFontFamily'],
524
- 'font-weight' => $attr['headFontWeight'],
525
- 'font-size' => $attr['headFontSize'] . $attr['headFontSizeType'],
526
- 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
527
- 'color' => $attr['headingColor'],
528
- 'margin-bottom' => $attr['headSpace'] . "px",
529
- ),
530
- ' .uagb-separator-wrap' => array(
531
- 'text-align' => $attr['headingAlign'],
532
- ),
533
- ' .uagb-desc-text' => array(
534
- 'text-align' => $attr['headingAlign'],
535
- 'font-family' => $attr['subHeadFontFamily'],
536
- 'font-weight' => $attr['subHeadFontWeight'],
537
- 'font-size' => $attr['subHeadFontSize'] . $attr['subHeadFontSizeType'],
538
- 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
539
- 'color' => $attr['subHeadingColor'],
540
- )
541
-
542
- );
543
-
544
- $m_selectors = array(
545
- ' .uagb-heading-text' => array(
546
- 'font-size' => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
547
- 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
548
- ),
549
- ' .uagb-desc-text' => array(
550
- 'font-size' => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
551
- 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
552
- )
553
-
554
- );
555
-
556
- $t_selectors = array(
557
- ' .uagb-heading-text' => array(
558
- 'font-size' => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
559
- 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
560
-
561
- ),
562
- ' .uagb-desc-text' => array(
563
- 'font-size' => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
564
- 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
565
- )
566
-
567
- );
568
-
569
- $seperatorStyle = isset( $attr['seperatorStyle'] ) ? $attr['seperatorStyle'] : '';
570
-
571
- if( 'none' !== $seperatorStyle ){
572
- $selectors[' .uagb-separator'] = array (
573
- 'border-top-style' => $attr['seperatorStyle'] ,
574
- 'border-top-width' => $attr['separatorHeight'] . "px",
575
- 'width' => $attr['separatorWidth'] . $attr['separatorWidthType'],
576
- 'border-color' => $attr['separatorColor'],
577
- 'margin-bottom' => $attr['separatorSpace'] . "px",
578
- );
579
-
580
- }
581
- // @codingStandardsIgnoreEnd
582
-
583
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-adv-heading-' . $id );
584
-
585
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-adv-heading-' . $id, 'tablet' );
586
-
587
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-adv-heading-' . $id, 'mobile' );
588
-
589
- return $desktop . $tablet . $mobile;
590
- }
591
-
592
- /**
593
- * Get Multi Buttons Block CSS
594
- *
595
- * @since 0.0.1
596
- * @param array $attr The block attributes.
597
- * @param string $id The selector ID.
598
- * @return array The Widget List.
599
- */
600
- public static function get_buttons_css( $attr, $id ) { // @codingStandardsIgnoreStart
601
-
602
- $defaults = UAGB_Helper::$block_list['uagb/buttons']['attributes'];
603
-
604
- $attr = array_merge( $defaults, (array) $attr );
605
-
606
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
607
-
608
- $m_selectors = array();
609
- $t_selectors = array();
610
-
611
- $selectors = array(
612
- ' .uagb-button__wrapper' => array(
613
- 'margin-left' => ( $attr['gap']/2 ) . 'px',
614
- 'margin-right' => ( $attr['gap']/2 ) . 'px'
615
- ),
616
- ' .uagb-button__wrapper:first-child' => array (
617
- 'margin-left' => 0
618
- ),
619
- ' .uagb-button__wrapper:last-child' => array (
620
- 'margin-right' => 0
621
- ),
622
- ' .uagb-buttons__wrap' => array (
623
- 'justify-content' => $alignment,
624
- '-webkit-box-pack'=> $alignment,
625
- '-ms-flex-pack' => $alignment,
626
- 'justify-content' => $alignment,
627
- '-webkit-box-align' => $alignment,
628
- '-ms-flex-align' => $alignment,
629
- 'align-items' => $alignment,
630
- )
631
- );
632
-
633
- foreach ( $attr['buttons'] as $key => $button ) {
634
-
635
- $button['size'] = ( isset( $button['size'] ) ) ? $button['size'] : '';
636
- $button['borderWidth'] = ( isset( $button['borderWidth'] ) ) ? $button['borderWidth'] : '';
637
- $button['borderStyle'] = ( isset( $button['borderStyle'] ) ) ? $button['borderStyle'] : '';
638
- $button['borderColor'] = ( isset( $button['borderColor'] ) ) ? $button['borderColor'] : '';
639
- $button['borderRadius'] = ( isset( $button['borderRadius'] ) ) ? $button['borderRadius'] : '';
640
- $button['background'] = ( isset( $button['background'] ) ) ? $button['background'] : '';
641
- $button['hBackground'] = ( isset( $button['hBackground'] ) ) ? $button['hBackground'] : '';
642
- $button['borderHColor'] = ( isset( $button['borderHColor'] ) ) ? $button['borderHColor'] : '';
643
- $button['vPadding'] = ( isset( $button['vPadding'] ) ) ? $button['vPadding'] : '';
644
- $button['hPadding'] = ( isset( $button['hPadding'] ) ) ? $button['hPadding'] : '';
645
- $button['color'] = ( isset( $button['color'] ) ) ? $button['color'] : '';
646
- $button['hColor'] = ( isset( $button['hColor'] ) ) ? $button['hColor'] : '';
647
- $button['sizeType'] = ( isset( $button['sizeType'] ) ) ? $button['sizeType'] : 'px';
648
- $button['sizeMobile'] = ( isset( $button['sizeMobile'] ) ) ? $button['sizeMobile'] : '';
649
- $button['sizeTablet'] = ( isset( $button['sizeTablet'] ) ) ? $button['sizeTablet'] : '';
650
- $button['lineHeight'] = ( isset( $button['lineHeight'] ) ) ? $button['lineHeight'] : '';
651
- $button['lineHeightType'] = ( isset( $button['lineHeightType'] ) ) ? $button['lineHeightType'] : '';
652
- $button['lineHeightMobile'] = ( isset( $button['lineHeightMobile'] ) ) ? $button['lineHeightMobile'] : '';
653
- $button['lineHeightTablet'] = ( isset( $button['lineHeightTablet'] ) ) ? $button['lineHeightTablet'] : '';
654
-
655
-
656
- if ( $attr['btn_count'] <= $key ) {
657
- break;
658
- }
659
-
660
- $selectors[' .uagb-buttons-repeater-' . $key] = array (
661
- 'font-size' => $button['size'] . $button['sizeType'],
662
- 'line-height' => $button['lineHeight'] . $button['lineHeightType'],
663
- 'font-family' => $attr['fontFamily'],
664
- 'font-weight' => $attr['fontWeight'],
665
- 'border-width' => $button['borderWidth'] . 'px',
666
- 'border-color' => $button['borderColor'],
667
- 'border-style' => $button['borderStyle'],
668
- 'border-radius' => $button['borderRadius'] . 'px',
669
- 'background' => $button['background']
670
- );
671
-
672
- $selectors[' .uagb-buttons-repeater-' . $key . ':hover'] = array (
673
- 'background' => $button['hBackground'],
674
- 'border-width' => $button['borderWidth'] . 'px',
675
- 'border-color' => $button['borderHColor'],
676
- 'border-style' => $button['borderStyle'],
677
- );
678
-
679
- $selectors[' .uagb-buttons-repeater-' . $key . ' a.uagb-button__link'] = array (
680
- 'padding' => $button['vPadding'] . 'px ' . $button['hPadding'] . 'px',
681
- 'color' => $button['color']
682
- );
683
-
684
- $selectors[' .uagb-buttons-repeater-' . $key . ':hover a.uagb-button__link'] = array (
685
- 'color' => $button['hColor']
686
- );
687
-
688
- $m_selectors[' .uagb-buttons-repeater-' . $key] = array (
689
- 'font-size' => $button['sizeMobile'] . $button['sizeType'],
690
- 'line-height' => $button['lineHeightMobile'] . $button['lineHeightType'],
691
- );
692
-
693
- $t_selectors[' .uagb-buttons-repeater-' . $key] = array (
694
- 'font-size' => $button['sizeTablet'] . $button['sizeType'],
695
- 'line-height' => $button['lineHeightTablet'] . $button['lineHeightType'],
696
- );
697
- }
698
-
699
- if ( "desktop" == $attr['stack'] ) {
700
-
701
- $selectors[" .uagb-button__wrapper"] = array (
702
- 'margin-left' => 0,
703
- 'margin-right' => 0,
704
- "margin-bottom" => $attr['gap'] . "px"
705
- );
706
-
707
- $selectors[" .uagb-buttons__wrap"] = array (
708
- "flex-direction" => "column"
709
- );
710
-
711
- $selectors[" .uagb-button__wrapper:last-child"] = array (
712
- "margin-bottom" => 0
713
- );
714
-
715
- } else if ( "tablet" == $attr['stack'] ) {
716
-
717
- $t_selectors[" .uagb-button__wrapper"] = array (
718
- 'margin-left' => 0,
719
- 'margin-right' => 0,
720
- "margin-bottom" => $attr['gap'] . "px"
721
- );
722
-
723
- $t_selectors[" .uagb-buttons__wrap"] = array (
724
- "flex-direction" => "column"
725
- );
726
-
727
- $t_selectors[" .uagb-button__wrapper:last-child"] = array (
728
- "margin-bottom" => 0
729
- );
730
-
731
- } else if ( "mobile" == $attr['stack'] ) {
732
-
733
- $m_selectors[" .uagb-button__wrapper"] = array (
734
- 'margin-left' => 0,
735
- 'margin-right' => 0,
736
- "margin-bottom" => $attr['gap'] . "px"
737
- );
738
-
739
- $m_selectors[" .uagb-buttons__wrap"] = array (
740
- "flex-direction" => "column"
741
- );
742
-
743
- $m_selectors[" .uagb-button__wrapper:last-child"] = array (
744
- "margin-bottom" => 0
745
- );
746
- }
747
-
748
- // @codingStandardsIgnoreEnd
749
-
750
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-buttons-' . $id );
751
-
752
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-buttons-' . $id, 'tablet' );
753
-
754
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-buttons-' . $id, 'mobile' );
755
-
756
- return $desktop . $tablet . $mobile;
757
- }
758
-
759
- /**
760
- * Get Info Box CSS
761
- *
762
- * @since 0.0.1
763
- * @param array $attr The block attributes.
764
- * @param string $id The selector ID.
765
- * @return array The Widget List.
766
- */
767
- public static function get_info_box_css( $attr, $id ) { // @codingStandardsIgnoreStart.
768
- $defaults = UAGB_Helper::$block_list['uagb/info-box']['attributes'];
769
-
770
- $attr = array_merge( $defaults, (array) $attr );
771
-
772
- $m_selectors = array();
773
- $t_selectors = array();
774
-
775
- $selectors = array(
776
- ' .uagb-ifb-icon' => array(
777
- 'height' => $attr['iconSize']. "px",
778
- 'width' => $attr['iconSize']. "px",
779
- 'line-height' => $attr['iconSize']. "px",
780
- ),
781
- ' .uagb-ifb-icon > span' => array(
782
- 'font-size' => $attr['iconSize']. "px",
783
- 'height' => $attr['iconSize']. "px",
784
- 'width' => $attr['iconSize']. "px",
785
- 'line-height' => $attr['iconSize']. "px",
786
- 'color' => $attr['iconColor'],
787
- ),
788
- ' .uagb-ifb-icon svg' => array(
789
- 'fill' => $attr['iconColor'],
790
- ),
791
- ' .uagb-ifb-icon:hover > span' => array(
792
- 'color' => $attr['iconHover'] ,
793
- ),
794
- ' .uagb-ifb-icon:hover svg' => array(
795
- 'fill' => $attr['iconHover'] ,
796
- ),
797
-
798
- ' .uagb-infbox__link-to-all:hover ~ .uagb-infobox__content-wrap .uagb-ifb-icon svg' => array(
799
- 'fill' => $attr['iconHover'] ,
800
- ),
801
-
802
- ' .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap' => array(
803
- 'margin-left' => $attr['iconLeftMargin'].'px',
804
- 'margin-right' => $attr['iconRightMargin'].'px',
805
- 'margin-top' => $attr['iconTopMargin'].'px',
806
- 'margin-bottom' => $attr['iconBottomMargin'].'px',
807
- ),
808
- // Image.
809
- ' .uagb-ifb-image-content > img' => array(
810
- 'width'=> $attr['imageWidth'].'px',
811
- 'max-width'=> $attr['imageWidth'].'px',
812
- ),
813
- ' .uagb-infobox .uagb-ifb-image-content img' => array(
814
- 'border-radius' => $attr['iconimgBorderRadius'].'px',
815
- ),
816
- // CTA style .
817
- ' .uagb-infobox-cta-link' => array(
818
- 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
819
- 'font-family' => $attr['ctaFontFamily'],
820
- 'font-weight' => $attr['ctaFontWeight'],
821
- 'color' => $attr['ctaLinkColor'],
822
- ),
823
- ' .uagb-infobox-cta-link:hover' => array(
824
- 'color' => $attr['ctaLinkHoverColor'],
825
- ),
826
- ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
827
- 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
828
- 'height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
829
- 'width' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
830
- 'line-height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
831
- ),
832
- ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
833
- 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
834
- 'height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
835
- 'width' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
836
- 'line-height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
837
- ),
838
- ' .uagb-infobox-cta-link svg' => array(
839
- 'fill' => $attr['ctaLinkColor'],
840
- ),
841
- ' .uagb-infobox-cta-link:hover svg' => array(
842
- 'fill' => $attr['ctaLinkHoverColor'],
843
- ),
844
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link' => array(
845
- 'color' => $attr['ctaBtnLinkColor'],
846
- 'background-color' => $attr['ctaBgColor'],
847
- 'border-style' => $attr['ctaBorderStyle'],
848
- 'border-color' => $attr['ctaBorderColor'],
849
- 'border-radius' => $attr['ctaBorderRadius'] . "px",
850
- 'border-width' => $attr['ctaBorderWidth'] . "px",
851
- 'padding-top' => $attr['ctaBtnVertPadding'] . "px",
852
- 'padding-bottom' => $attr['ctaBtnVertPadding'] . "px",
853
- 'padding-left' => $attr['ctaBtnHrPadding'] . "px",
854
- 'padding-right' => $attr['ctaBtnHrPadding'] . "px",
855
-
856
- ),
857
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg' => array(
858
- 'fill' => $attr['ctaBtnLinkColor'],
859
- ),
860
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover' => array(
861
- 'color' => $attr['ctaLinkHoverColor'],
862
- 'background-color' => $attr['ctaBgHoverColor'],
863
- 'border-color' => $attr['ctaBorderhoverColor'],
864
- ),
865
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg' => array(
866
- 'fill' => $attr['ctaLinkHoverColor'],
867
- ),
868
- // Prefix Style.
869
- ' .uagb-ifb-title-prefix' => array(
870
- 'font-size' => $attr['prefixFontSize'].$attr['prefixFontSizeType'],
871
- 'font-family' => $attr['prefixFontFamily'],
872
- 'font-weight' => $attr['prefixFontWeight'],
873
- 'line-height' => $attr['prefixLineHeight'] . $attr['prefixLineHeightType'],
874
- 'color' => $attr['prefixColor'],
875
- 'margin-bottom' => $attr['prefixSpace'].'px',
876
- ),
877
- // Title Style.
878
- ' .uagb-ifb-title' => array(
879
- 'font-size' => $attr['headFontSize'].$attr['headFontSizeType'],
880
- 'font-family' => $attr['headFontFamily'],
881
- 'font-weight' => $attr['headFontWeight'],
882
- 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
883
- 'color' => $attr['headingColor'],
884
- 'margin-bottom' => $attr['headSpace'].'px',
885
- ),
886
- // Description Style.
887
- ' .uagb-ifb-desc' => array(
888
- 'font-size' => $attr['subHeadFontSize'].$attr['subHeadFontSizeType'],
889
- 'font-family' => $attr['subHeadFontFamily'],
890
- 'font-weight' => $attr['subHeadFontWeight'],
891
- 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
892
- 'color' => $attr['subHeadingColor'],
893
- 'margin-bottom' => $attr['subHeadSpace'].'px',
894
- ),
895
- // Seperator.
896
- ' .uagb-ifb-separator' => array(
897
- 'width' => $attr['seperatorWidth'].$attr['separatorWidthType'],
898
- 'border-top-width' => $attr['seperatorThickness'].'px',
899
- 'border-top-color' => $attr['seperatorColor'],
900
- 'border-top-style' => $attr['seperatorStyle'],
901
- ),
902
- ' .uagb-ifb-separator-parent' => array(
903
- 'margin-bottom' => $attr['seperatorSpace'].'px',
904
- ),
905
- // CTA icon space.
906
- ' .uagb-ifb-align-icon-after' => array(
907
- 'margin-left' => $attr['ctaIconSpace'].'px',
908
- ),
909
- ' .uagb-ifb-align-icon-before' => array(
910
- 'margin-right' => $attr['ctaIconSpace'].'px',
911
- ),
912
- );
913
-
914
- if( 'above-title' === $attr['iconimgPosition'] || 'below-title' === $attr['iconimgPosition'] ){
915
- $selectors[' .uagb-infobox__content-wrap'] = array(
916
- 'text-align' => $attr['headingAlign'],
917
- );
918
- }
919
-
920
- $m_selectors = array(
921
- ' .uagb-ifb-title-prefix' => array(
922
- 'font-size' => $attr['prefixFontSizeMobile'].$attr['prefixFontSizeType'],
923
- 'line-height' => $attr['prefixLineHeightMobile'] . $attr['prefixLineHeightType'],
924
- ),
925
- ' .uagb-ifb-title' => array(
926
- 'font-size' => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
927
- 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
928
- ),
929
- ' .uagb-ifb-desc' => array(
930
- 'font-size' => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
931
- 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
932
- ),
933
- ' .uagb-infobox-cta-link' => array(
934
- 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
935
- ),
936
- ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
937
- 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
938
- 'height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
939
- 'width' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
940
- 'line-height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
941
- ),
942
- ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
943
- 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
944
- 'height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
945
- 'width' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
946
- 'line-height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
947
- ),
948
- );
949
-
950
- $t_selectors = array(
951
- ' .uagb-ifb-title-prefix' => array(
952
- 'font-size' => $attr['prefixFontSizeTablet'].$attr['prefixFontSizeType'],
953
- ),
954
- ' .uagb-ifb-title' => array(
955
- 'font-size' => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
956
- ),
957
- ' .uagb-ifb-desc' => array(
958
- 'font-size' => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
959
- ),
960
- ' .uagb-infobox-cta-link' => array(
961
- 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
962
- ),
963
- ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
964
- 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
965
- 'height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
966
- 'width' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
967
- 'line-height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
968
- ),
969
- ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
970
- 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
971
- 'height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
972
- 'width' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
973
- 'line-height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
974
- ),
975
- );
976
-
977
- // @codingStandardsIgnoreEnd.
978
-
979
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-infobox-' . $id );
980
-
981
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-infobox-' . $id, 'tablet' );
982
-
983
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-infobox-' . $id, 'mobile' );
984
-
985
- return $desktop . $tablet . $mobile;
986
- }
987
-
988
- /**
989
- * Get CTA CSS
990
- *
991
- * @since 1.7.0
992
- * @param array $attr The block attributes.
993
- * @param string $id The selector ID.
994
- * @return array The Widget List.
995
- */
996
- public static function get_call_to_action_css( $attr, $id ) { // @codingStandardsIgnoreStart.
997
- $defaults = UAGB_Helper::$block_list['uagb/call-to-action']['attributes'];
998
-
999
- $attr = array_merge( $defaults, (array) $attr );
1000
-
1001
- $t_selectors = array();
1002
- $m_selectors = array();
1003
-
1004
- $selectors = array(
1005
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1006
- 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1007
- 'font-family' => $attr['ctaFontFamily'],
1008
- 'font-weight' => $attr['ctaFontWeight'],
1009
- 'color' => $attr['ctaBtnLinkColor'],
1010
- ),
1011
- ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-text ' => array(
1012
- 'color' => $attr['ctaLinkHoverColor'],
1013
- ),
1014
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1015
- 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1016
- 'font-family' => $attr['ctaFontFamily'],
1017
- 'font-weight' => $attr['ctaFontWeight'],
1018
- 'color' => $attr['ctaBtnLinkColor'],
1019
- 'background-color' => $attr['ctaBgColor'],
1020
- 'border-style' => $attr['ctaBorderStyle'],
1021
- 'border-color' => $attr['ctaBorderColor'],
1022
- 'border-radius' => $attr['ctaBorderRadius']. "px",
1023
- 'border-width' => $attr['ctaBorderWidth']. "px",
1024
- 'padding-top' => $attr['ctaBtnVertPadding']. "px",
1025
- 'padding-bottom' => $attr['ctaBtnVertPadding']. "px",
1026
- 'padding-left' => $attr['ctaBtnHrPadding']. "px",
1027
- 'padding-right' => $attr['ctaBtnHrPadding']. "px",
1028
- ),
1029
- ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-button' => array(
1030
- 'color' => $attr['ctaLinkHoverColor'],
1031
- 'background-color' => $attr['ctaBgHoverColor'],
1032
- 'border-color' => $attr['ctaBorderhoverColor'],
1033
- ),
1034
- ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1035
- 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1036
- 'width' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1037
- 'height' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1038
- 'line-height' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1039
- ),
1040
- ' .uagb-cta__button-wrapper .uagb-cta__block-link svg' => array(
1041
- 'fill' => $attr['ctaBtnLinkColor'],
1042
- ),
1043
- ' .uagb-cta__button-wrapper:hover .uagb-cta__block-link svg' => array(
1044
- 'fill' => $attr['ctaLinkHoverColor'],
1045
- ),
1046
- ' .uagb-cta__title' => array(
1047
- 'font-size' => $attr['titleFontSize']. $attr['titleFontSizeType'],
1048
- 'font-family' => $attr['titleFontFamily'],
1049
- 'font-weight' => $attr['titleFontWeight'],
1050
- 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
1051
- 'color' => $attr['titleColor'],
1052
- 'margin-bottom' => $attr['titleSpace']. "px",
1053
- ),
1054
- ' .uagb-cta__desc' => array(
1055
- 'font-size' => $attr['descFontSize']. $attr['descFontSizeType'],
1056
- 'font-family' => $attr['descFontFamily'],
1057
- 'font-weight' => $attr['descFontWeight'],
1058
- 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
1059
- 'color' => $attr['descColor'],
1060
- 'margin-bottom' => $attr['descSpace']. "px",
1061
- ),
1062
- ' .uagb-cta__align-button-after' => array(
1063
- 'margin-left' => $attr['ctaIconSpace']. "px",
1064
- ),
1065
- ' .uagb-cta__align-button-before' => array(
1066
- 'margin-right' => $attr['ctaIconSpace']. "px",
1067
- ),
1068
- );
1069
-
1070
- $selectors[' .uagb-cta__content-wrap'] = array(
1071
- 'text-align' => $attr['textAlign'],
1072
- );
1073
-
1074
- if( 'left' === $attr['textAlign'] && "right" === $attr['ctaPosition'] ){
1075
- $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1076
- 'margin-left' => $attr['ctaLeftSpace']. "px",
1077
- 'margin-right' => '0px',
1078
- );
1079
- }
1080
-
1081
- if( 'right' === $attr['textAlign'] && 'right' === $attr['ctaPosition'] ){
1082
- $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1083
- 'margin-right' => $attr['ctaRightSpace']. "px",
1084
- 'margin-left' => '0px',
1085
- );
1086
- }
1087
-
1088
- if( $attr['ctaPosition'] === "right" && ( $attr['ctaType'] === 'text' || $attr['ctaType'] === 'button' ) ){
1089
- $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
1090
- "width" => $attr['contentWidth']."%",
1091
- );
1092
-
1093
- $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
1094
- "width" => (100 - $attr['contentWidth'] )."%",
1095
- );
1096
- }
1097
-
1098
- $t_selectors = array(
1099
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1100
- 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1101
- ),
1102
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1103
- 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1104
- ),
1105
- ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1106
- 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1107
- 'width' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1108
- 'height' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1109
- 'line-height' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1110
- ),
1111
- ' .uagb-cta__title' => array(
1112
- 'font-size' => $attr['titleFontSizeTablet']. $attr['titleFontSizeType'],
1113
- 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
1114
- ),
1115
- ' .uagb-cta__desc' => array(
1116
- 'font-size' => $attr['descFontSizeTablet']. $attr['descFontSizeType'],
1117
- 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
1118
- ),
1119
- );
1120
-
1121
- $m_selectors = array(
1122
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1123
- 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1124
- ),
1125
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1126
- 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1127
- ),
1128
- ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1129
- 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1130
- 'width' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1131
- 'height' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1132
- 'line-height' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1133
- ),
1134
- ' .uagb-cta__title' => array(
1135
- 'font-size' => $attr['titleFontSizeMobile']. $attr['titleFontSizeType'],
1136
- 'line-height' => $attr['titleLineHeightMobile']. $attr['titleLineHeightType'],
1137
- ),
1138
- ' .uagb-cta__desc' => array(
1139
- 'font-size' => $attr['descFontSizeMobile']. $attr['descFontSizeType'],
1140
- 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
1141
- ),
1142
- );
1143
-
1144
- // @codingStandardsIgnoreEnd.
1145
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cta-block-' . $id );
1146
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-cta-block-' . $id, 'tablet' );
1147
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-cta-block-' . $id, 'mobile' );
1148
-
1149
- return $desktop . $tablet . $mobile;
1150
- }
1151
-
1152
- /**
1153
- * Get Testimonial CSS
1154
- *
1155
- * @since 0.0.1
1156
- * @param array $attr The block attributes.
1157
- * @param string $id The selector ID.
1158
- * @return array The Widget List.
1159
- */
1160
- public static function get_testimonial_css( $attr, $id ) { // @codingStandardsIgnoreStart.
1161
-
1162
- $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
1163
-
1164
- $attr = array_merge( $defaults, (array) $attr );
1165
-
1166
- $img_align = 'center';
1167
- if( 'left' === $attr['headingAlign']){
1168
- $img_align = 'flex-start';
1169
- }else if( 'right' === $attr['headingAlign']){
1170
- $img_align = 'flex-end';
1171
- }
1172
-
1173
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
1174
-
1175
- $selectors = array(
1176
- ' .uagb-testimonial__wrap' => array(
1177
- 'padding-left' => ( ($attr['columnGap']) /2 ) . 'px',
1178
- 'padding-right' => ( ($attr['columnGap']) /2 ) . 'px',
1179
- 'margin-bottom' => $attr['rowGap'] . 'px',
1180
- ),
1181
- ' .uagb-testimonial__wrap .uagb-tm__image-content' => array(
1182
- 'padding-left' => $attr['imgHrPadding'] . 'px',
1183
- 'padding-right' => $attr['imgHrPadding'] . 'px',
1184
- 'padding-top' => $attr['imgVrPadding'] . 'px',
1185
- 'padding-bottom' => $attr['imgVrPadding'] . 'px',
1186
- ),
1187
- ' .uagb-tm__image img' => array(
1188
- 'width' => $attr['imageWidth'] . 'px',
1189
- 'max-width' => $attr['imageWidth'] . 'px',
1190
- ),
1191
- ' .uagb-tm__content' => array(
1192
- 'text-align' => $attr['headingAlign'],
1193
- 'padding' => $attr['contentPadding'] . 'px',
1194
- ),
1195
- ' .uagb-tm__author-name' => array(
1196
- 'color' => $attr['authorColor'],
1197
- 'font-size' => $attr['nameFontSize'] . $attr['nameFontSizeType'],
1198
- 'font-family' => $attr['nameFontFamily'],
1199
- 'font-weight' => $attr['nameFontWeight'],
1200
- 'line-height' => $attr['nameLineHeight'] . $attr['nameLineHeightType'],
1201
- 'margin-bottom' => $attr['nameSpace'] . 'px',
1202
- ),
1203
- ' .uagb-tm__company' => array(
1204
- 'color' => $attr['companyColor'],
1205
- 'font-size' => $attr['companyFontSize'] . $attr['companyFontSizeType'],
1206
- 'font-family' => $attr['companyFontFamily'],
1207
- 'font-weight' => $attr['companyFontWeight'],
1208
- 'line-height' => $attr['companyLineHeight'] . $attr['companyLineHeightType'],
1209
- ),
1210
- ' .uagb-tm__desc' => array(
1211
- 'color' => $attr['descColor'],
1212
- 'font-size' => $attr['descFontSize'] . $attr['descFontSizeType'],
1213
- 'font-family' => $attr['descFontFamily'],
1214
- 'font-weight' => $attr['descFontWeight'],
1215
- 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
1216
- 'margin-bottom' => $attr['descSpace'] . 'px',
1217
- ),
1218
- ' .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content' => array(
1219
- 'background-color' => $attr['backgroundColor'],
1220
- ),
1221
- ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content' => array(
1222
- 'background-image' => ( isset( $attr['backgroundImage']['url'] ) ) ? 'url("'.$attr['backgroundImage']['url'].'")' : null,
1223
- 'background-position'=> $position,
1224
- 'background-repeat'=> $attr['backgroundRepeat'],
1225
- 'background-size'=> $attr['backgroundSize'],
1226
- ),
1227
- ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay' => array(
1228
- 'background-color' => $attr['backgroundImageColor'],
1229
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? ( ( 100 - $attr['backgroundOpacity'] ) / 100 ) : '0.5',
1230
- ),
1231
- ' .uagb-testimonial__wrap .uagb-tm__content' => array(
1232
- 'border-color' => $attr['borderColor'],
1233
- 'border-style' => $attr['borderStyle'],
1234
- 'border-width' => $attr['borderWidth'] . 'px',
1235
- 'border-radius' => $attr['borderRadius'] . 'px',
1236
- ),
1237
- ' ul.slick-dots li button:before' => array(
1238
- 'color' => $attr['arrowColor'],
1239
- ),
1240
- ' ul.slick-dots li.slick-active button:before' => array(
1241
- 'color' => $attr['arrowColor'],
1242
- ),
1243
- ' .uagb-tm__image-position-top .uagb-tm__image-content' => array(
1244
- 'justify-content' => $img_align,
1245
- ),
1246
- );
1247
-
1248
- if( 'dots' === $attr['arrowDots'] ){
1249
- $selectors['.uagb-slick-carousel'] = array(
1250
- 'padding' => '0 0 35px 0',
1251
- );
1252
- }
1253
-
1254
- if( '1' === $attr['test_item_count'] || $attr['test_item_count'] === $attr['columns'] ){
1255
- $selectors['.uagb-slick-carousel'] = array(
1256
- 'padding' => '0',
1257
- );
1258
- }
1259
-
1260
- $t_selectors = array(
1261
- ' .uagb-tm__author-name' => array(
1262
- 'font-size' => $attr['nameFontSizeTablet'] . $attr['nameFontSizeType'],
1263
- 'line-height' => $attr['nameLineHeightTablet'] . $attr['nameLineHeightType'],
1264
- ),
1265
- ' .uagb-tm__company' => array(
1266
- 'font-size' => $attr['companyFontSizeTablet'] . $attr['companyFontSizeType'],
1267
- 'line-height' => $attr['companyLineHeightTablet'] . $attr['companyLineHeightType'],
1268
- ),
1269
- ' .uagb-tm__desc' => array(
1270
- 'font-size' => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
1271
- 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
1272
- ),
1273
- );
1274
-
1275
- $m_selectors = array(
1276
- ' .uagb-tm__author-name' => array(
1277
- 'font-size' => $attr['nameFontSizeMobile'] . $attr['nameFontSizeType'],
1278
- 'line-height' => $attr['nameLineHeightMobile'] . $attr['nameLineHeightType'],
1279
- ),
1280
- ' .uagb-tm__company' => array(
1281
- 'font-size' => $attr['companyFontSizeMobile'] . $attr['companyFontSizeType'],
1282
- 'line-height' => $attr['companyLineHeightMobile'] . $attr['companyLineHeightType'],
1283
- ),
1284
- ' .uagb-tm__desc' => array(
1285
- 'font-size' => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
1286
- 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
1287
- ),
1288
- ' .uagb-tm__content' => array(
1289
- 'text-align' => 'center',
1290
- )
1291
- );
1292
-
1293
-
1294
- // @codingStandardsIgnoreEnd.
1295
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-testimonial-' . $id );
1296
-
1297
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-testimonial-' . $id, 'tablet' );
1298
-
1299
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-testimonial-' . $id, 'mobile' );
1300
-
1301
- return $desktop . $tablet . $mobile;
1302
- }
1303
-
1304
- /**
1305
- * Get Team Block CSS
1306
- *
1307
- * @since 0.0.1
1308
- * @param array $attr The block attributes.
1309
- * @param string $id The selector ID.
1310
- * @return array The Widget List.
1311
- */
1312
- public static function get_team_css( $attr, $id ) { // @codingStandardsIgnoreStart
1313
-
1314
- $defaults = UAGB_Helper::$block_list['uagb/team']['attributes'];
1315
-
1316
- $attr = array_merge( $defaults, (array) $attr );
1317
-
1318
- $m_selectors = array();
1319
- $t_selectors = array();
1320
-
1321
- $selectors = array(
1322
- " p.uagb-team__desc" => array(
1323
- "font-family" => $attr['descFontFamily'],
1324
- "font-weight" => $attr['descFontWeight'],
1325
- "font-size" => $attr['descFontSize'] . $attr['descFontSizeType'],
1326
- "line-height" => $attr['descLineHeight'] . $attr['descLineHeightType'],
1327
- "color" => $attr['descColor'],
1328
- "margin-bottom" => $attr['descSpace'] . "px",
1329
- ),
1330
- " .uagb-team__prefix" => array(
1331
- "font-family" => $attr['prefixFontFamily'],
1332
- "font-weight" => $attr['prefixFontWeight'],
1333
- "font-size" => $attr['prefixFontSize'] . $attr['prefixFontSizeType'],
1334
- "line-height" => $attr['prefixLineHeight'] . $attr['prefixLineHeightType'],
1335
- "color" => $attr['prefixColor'],
1336
- ),
1337
- " .uagb-team__desc-wrap" => array(
1338
- "margin-top" => $attr['prefixSpace'] . "px",
1339
- ),
1340
- " .uagb-team__social-icon a" => array(
1341
- "color" => $attr['socialColor'],
1342
- "font-size" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1343
- "width" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1344
- "height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1345
- "line-height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1346
- ),
1347
- " .uagb-team__social-icon svg" => array(
1348
- "fill" => $attr['socialColor'],
1349
- "width" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1350
- "height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1351
- ),
1352
- " .uagb-team__social-icon:hover a" => array(
1353
- "color" => $attr['socialHoverColor'],
1354
- ),
1355
- " .uagb-team__social-icon:hover svg" => array(
1356
- "fill" => $attr['socialHoverColor'],
1357
- ),
1358
- ".uagb-team__image-position-left .uagb-team__social-icon" => array(
1359
- "margin-right" => $attr['socialSpace'] . "px",
1360
- "margin-left" => "0",
1361
- ),
1362
- ".uagb-team__image-position-right .uagb-team__social-icon" => array(
1363
- "margin-left" => $attr['socialSpace'] . "px",
1364
- "margin-right" => "0",
1365
- ),
1366
- ".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon" => array(
1367
- "margin-right" => ( $attr['socialSpace'] / 2 ) . "px",
1368
- "margin-left" => ( $attr['socialSpace'] / 2 ) . "px",
1369
- ),
1370
- ".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon" => array(
1371
- "margin-right" => $attr['socialSpace'] . "px",
1372
- "margin-left" => "0",
1373
- ),
1374
- ".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon" => array(
1375
- "margin-left" => $attr['socialSpace'] . "px",
1376
- "margin-right" => "0",
1377
- ),
1378
- " .uagb-team__image-wrap" => array(
1379
- "margin-top" => $attr['imgTopMargin'] . "px",
1380
- "margin-bottom" => $attr['imgBottomMargin'] . "px",
1381
- "margin-left" => $attr['imgLeftMargin'] . "px",
1382
- "margin-right" => $attr['imgRightMargin'] . "px",
1383
- "width" => $attr['imgWidth'] . "px"
1384
- ),
1385
- );
1386
-
1387
- if( 'above' == $attr['imgPosition'] ) {
1388
- if ( 'center' == $attr['align'] ) {
1389
- $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1390
- $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1391
- } else if ( 'left' == $attr['align'] ) {
1392
- $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1393
- } else if ( 'right' == $attr['align'] ) {
1394
- $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1395
- }
1396
- }
1397
-
1398
- if ( "above" != $attr['imgPosition'] ) {
1399
- if ( "middle" == $attr['imgAlign'] ) {
1400
- $selectors[" .uagb-team__image-wrap"]["align-self"] = "center";
1401
- }
1402
- }
1403
-
1404
- $selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1405
- "font-family" => $attr['titleFontFamily'],
1406
- "font-weight" => $attr['titleFontWeight'],
1407
- "font-size" => $attr['titleFontSize'] . $attr['titleFontSizeType'],
1408
- "line-height" => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
1409
- "color" => $attr['titleColor'],
1410
- "margin-bottom" => $attr['titleSpace'] . "px",
1411
- );
1412
-
1413
- $m_selectors = array(
1414
- " p.uagb-team__desc" => array(
1415
- "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
1416
- ),
1417
- " .uagb-team__prefix" => array(
1418
- "font-size" => $attr['prefixFontSizeMobile'] . $attr['prefixFontSizeType'],
1419
- ),
1420
- " .uagb-team__social-icon a" => array(
1421
- "font-size" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1422
- "width" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1423
- "height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1424
- "line-height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1425
- ),
1426
- " .uagb-team__social-icon svg" => array(
1427
- "width" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1428
- "height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1429
- ),
1430
- );
1431
-
1432
- $t_selectors = array(
1433
- " p.uagb-team__desc" => array(
1434
- "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
1435
- ),
1436
- " .uagb-team__prefix" => array(
1437
- "font-size" => $attr['prefixFontSizeTablet'] . $attr['prefixFontSizeType'],
1438
- ),
1439
- " .uagb-team__social-icon a" => array(
1440
- "font-size" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1441
- "width" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1442
- "height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1443
- "line-height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1444
- ),
1445
- " .uagb-team__social-icon svg" => array(
1446
- "width" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1447
- "height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1448
- ),
1449
- );
1450
-
1451
- $m_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1452
- "font-size" => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
1453
- );
1454
-
1455
- $t_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1456
- "font-size" => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
1457
- );
1458
-
1459
- // @codingStandardsIgnoreEnd
1460
-
1461
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-team-' . $id );
1462
-
1463
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-team-' . $id, 'tablet' );
1464
-
1465
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-team-' . $id, 'mobile' );
1466
-
1467
- return $desktop . $tablet . $mobile;
1468
- }
1469
-
1470
- /**
1471
- * Get Social Share Block CSS
1472
- *
1473
- * @since 0.0.1
1474
- * @param array $attr The block attributes.
1475
- * @param string $id The selector ID.
1476
- * @return array The Widget List.
1477
- */
1478
- public static function get_social_share_css( $attr, $id ) { // @codingStandardsIgnoreStart
1479
-
1480
- $defaults = UAGB_Helper::$block_list['uagb/social-share']['attributes'];
1481
-
1482
- $attr = array_merge( $defaults, (array) $attr );
1483
-
1484
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1485
-
1486
- $m_selectors = array();
1487
- $t_selectors = array();
1488
-
1489
- $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper"] = array(
1490
- "margin-left" => 0,
1491
- "margin-right" => 0,
1492
- "margin-bottom" => $attr['gap'] . "px"
1493
- );
1494
-
1495
- $selectors[".uagb-social-share__layout-vertical .uagb-social-share__wrap"] = array(
1496
- "flex-direction" => "column"
1497
- );
1498
-
1499
- $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper:last-child"] = array(
1500
- "margin-bottom" => 0
1501
- );
1502
-
1503
- $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1504
- "margin-left" => ( $attr['gap']/2 ) . "px",
1505
- "margin-right" => ( $attr['gap']/2 ) . "px"
1506
- );
1507
-
1508
- $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:first-child"] = array(
1509
- "margin-left" => 0
1510
- );
1511
-
1512
- $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:last-child"] = array(
1513
- "margin-right" => 0
1514
- );
1515
-
1516
- $selectors[" .uagb-ss__wrapper"] = array(
1517
- "border-radius" => $attr['borderRadius'] . "px"
1518
- );
1519
-
1520
- $selectors[" .uagb-ss__source-wrap"] = array(
1521
- "width" => $attr['size'] . $attr['sizeType'],
1522
- );
1523
-
1524
- $selectors[" .uagb-ss__source-wrap svg"] = array(
1525
- "width" => $attr['size'] . $attr['sizeType'],
1526
- "height" => $attr['size'] . $attr['sizeType'],
1527
- );
1528
-
1529
- $selectors[" .uagb-ss__source-image"] = array(
1530
- "width" => $attr['size'] . $attr['sizeType']
1531
- );
1532
-
1533
- $selectors[" .uagb-ss__source-icon"] = array(
1534
- "width" => $attr['size'] . $attr['sizeType'],
1535
- "height" => $attr['size'] . $attr['sizeType'],
1536
- "font-size" => $attr['size'] . $attr['sizeType'],
1537
- "line-height" => $attr['size'] . $attr['sizeType']
1538
- );
1539
-
1540
-
1541
- $t_selectors[" .uagb-ss__source-wrap"] = array(
1542
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1543
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1544
- "line-height" => $attr['sizeTablet'] . $attr['sizeType']
1545
- );
1546
-
1547
- $t_selectors[" .uagb-ss__source-wrap svg"] = array(
1548
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1549
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1550
- );
1551
-
1552
- $t_selectors[" .uagb-ss__source-image"] = array(
1553
- "width" => $attr['sizeTablet'] . $attr['sizeType']
1554
- );
1555
-
1556
- $t_selectors[" .uagb-ss__source-icon"] = array(
1557
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1558
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1559
- "font-size" => $attr['sizeTablet'] . $attr['sizeType'],
1560
- "line-height" => $attr['sizeTablet'] . $attr['sizeType']
1561
- );
1562
- $t_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1563
- "margin-left" => 0,
1564
- "margin-right" => 0
1565
- );
1566
-
1567
-
1568
- $m_selectors[" .uagb-ss__source-wrap"] = array(
1569
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1570
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1571
- "line-height" => $attr['sizeMobile'] . $attr['sizeType']
1572
- );
1573
-
1574
- $m_selectors[" .uagb-ss__source-wrap svg"] = array(
1575
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1576
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1577
- );
1578
-
1579
- $m_selectors[" .uagb-ss__source-image"] = array(
1580
- "width" => $attr['sizeMobile'] . $attr['sizeType']
1581
- );
1582
-
1583
- $m_selectors[" .uagb-ss__source-icon"] = array(
1584
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1585
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1586
- "font-size" => $attr['sizeMobile'] . $attr['sizeType'],
1587
- "line-height" => $attr['sizeMobile'] . $attr['sizeType']
1588
- );
1589
- $m_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1590
- "margin-left" => 0,
1591
- "margin-right" => 0
1592
- );
1593
-
1594
-
1595
- foreach ( $attr['socials'] as $key => $social ) {
1596
-
1597
- $social['icon_color'] = ( isset( $social['icon_color'] ) ) ? $social['icon_color'] : '';
1598
- $social['icon_hover_color'] = ( isset( $social['icon_hover_color'] ) ) ? $social['icon_hover_color'] : '';
1599
-
1600
- if ( $attr['social_count'] <= $key ) {
1601
- break;
1602
- }
1603
-
1604
- $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1605
- "color" => $social['icon_color'],
1606
- "padding" => $attr['bgSize'] . $attr['bgSizeType']
1607
- );
1608
-
1609
- $m_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1610
- "padding" => $attr['bgSizeMobile'] . $attr['bgSizeType']
1611
- );
1612
-
1613
- $t_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1614
- "padding" => $attr['bgSizeTablet'] . $attr['bgSizeType']
1615
- );
1616
-
1617
- $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link svg"] = array (
1618
- "fill" => $social['icon_color'],
1619
- );
1620
-
1621
- $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link"] = array (
1622
- "color" => $social['icon_hover_color']
1623
- );
1624
-
1625
- $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link svg"] = array (
1626
- "fill" => $social['icon_hover_color']
1627
- );
1628
-
1629
- $selectors[" .uagb-ss-repeater-" . $key] = array (
1630
- "background" => $social['icon_bg_color']
1631
- );
1632
-
1633
- $selectors[" .uagb-ss-repeater-" . $key . ":hover"] = array (
1634
- "background" => $social['icon_bg_hover_color']
1635
- );
1636
- }
1637
-
1638
- $selectors[" .uagb-social-share__wrap"] = array(
1639
- "justify-content" => $alignment,
1640
- "-webkit-box-pack" => $alignment,
1641
- "-ms-flex-pack" => $alignment,
1642
- "justify-content" => $alignment,
1643
- "-webkit-box-align" => $alignment,
1644
- "-ms-flex-align" => $alignment,
1645
- "align-items" => $alignment,
1646
- );
1647
-
1648
- if ( 'horizontal' == $attr['social_layout'] ) {
1649
-
1650
- if ( "desktop" == $attr['stack'] ) {
1651
-
1652
- $selectors[" .uagb-ss__wrapper"] = array (
1653
- "margin-left" => 0,
1654
- "margin-right" => 0,
1655
- "margin-bottom" => $attr['gap'] . "px"
1656
- );
1657
-
1658
- $selectors[" .uagb-social-share__wrap"] = array (
1659
- "flex-direction" => "column"
1660
- );
1661
-
1662
- $selectors[" .uagb-ss__wrapper:last-child"] = array (
1663
- "margin-bottom" => 0
1664
- );
1665
-
1666
- } else if ( "tablet" == $attr['stack'] ) {
1667
-
1668
- $t_selectors[" .uagb-ss__wrapper"] = array (
1669
- "margin-left" => 0,
1670
- "margin-right" => 0,
1671
- "margin-bottom" => $attr['gap'] . "px"
1672
- );
1673
-
1674
- $t_selectors[" .uagb-social-share__wrap"] = array (
1675
- "flex-direction" => "column"
1676
- );
1677
-
1678
- $t_selectors[" .uagb-ss__wrapper:last-child"] = array (
1679
- "margin-bottom" => 0
1680
- );
1681
-
1682
- } else if ( "mobile" == $attr['stack'] ) {
1683
-
1684
- $m_selectors[" .uagb-ss__wrapper"] = array (
1685
- "margin-left" => 0,
1686
- "margin-right" => 0,
1687
- "margin-bottom" => $attr['gap'] . "px"
1688
- );
1689
-
1690
- $m_selectors[" .uagb-social-share__wrap"] = array (
1691
- "flex-direction" => "column"
1692
- );
1693
-
1694
- $m_selectors[" .uagb-ss__wrapper:last-child"] = array (
1695
- "margin-bottom" => 0
1696
- );
1697
- }
1698
- }
1699
-
1700
- // @codingStandardsIgnoreEnd
1701
-
1702
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-social-share-' . $id );
1703
-
1704
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-social-share-' . $id, 'tablet' );
1705
-
1706
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-social-share-' . $id, 'mobile' );
1707
-
1708
- return $desktop . $tablet . $mobile;
1709
- }
1710
-
1711
- /**
1712
- * Get Icon List Block CSS
1713
- *
1714
- * @since 0.0.1
1715
- * @param array $attr The block attributes.
1716
- * @param string $id The selector ID.
1717
- * @return array The Widget List.
1718
- */
1719
- public static function get_icon_list_css( $attr, $id ) { // @codingStandardsIgnoreStart
1720
-
1721
- $defaults = UAGB_Helper::$block_list['uagb/icon-list']['attributes'];
1722
-
1723
- $attr = array_merge( $defaults, (array) $attr );
1724
-
1725
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1726
-
1727
- $m_selectors = array();
1728
- $t_selectors = array();
1729
-
1730
- $selectors = array(
1731
- ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper" => array(
1732
- "margin-left" => 0,
1733
- "margin-right" => 0,
1734
- "margin-bottom" => $attr['gap'] . "px"
1735
- ),
1736
- ".uagb-icon-list__layout-vertical .uagb-icon-list__wrap" => array(
1737
- "flex-direction" => "column"
1738
- ),
1739
- ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper:last-child" => array(
1740
- "margin-bottom" => 0
1741
- ),
1742
- ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper" => array(
1743
- "margin-left" => ( $attr['gap']/2 ) . "px",
1744
- "margin-right" => ( $attr['gap']/2 ) . "px"
1745
- ),
1746
- ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:first-child" => array(
1747
- "margin-left" => 0
1748
- ),
1749
- ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:last-child" => array(
1750
- "margin-right" => 0
1751
- ),
1752
- // Desktop Icon Size CSS starts.
1753
- " .uagb-icon-list__source-image" => array(
1754
- "width" => $attr['size'] . $attr['sizeType']
1755
- ),
1756
- " .uagb-icon-list__source-icon" => array(
1757
- "width" => $attr['size'] . $attr['sizeType'],
1758
- "height" => $attr['size'] . $attr['sizeType'],
1759
- "font-size" => $attr['size'] . $attr['sizeType']
1760
- ),
1761
- " .uagb-icon-list__source-icon svg" => array(
1762
- "width" => $attr['size'] . $attr['sizeType'],
1763
- "height" => $attr['size'] . $attr['sizeType'],
1764
- ),
1765
- " .uagb-icon-list__source-icon:before"=> array(
1766
- "width" => $attr['size'] . $attr['sizeType'],
1767
- "height" => $attr['size'] . $attr['sizeType'],
1768
- "font-size" => $attr['size'] . $attr['sizeType']
1769
- ),
1770
- " .uagb-icon-list__label-wrap"=> array(
1771
- "text-align" => $attr['align']
1772
- ),
1773
-
1774
- " .uagb-icon-list__source-wrap"=> array(
1775
- "padding" => $attr['bgSize'] . "px",
1776
- "border-radius" => $attr['borderRadius'] . "px",
1777
- "border-style" => "solid",
1778
- "border-width" => $attr['border'] . "px"
1779
- ),
1780
- " .uagb-icon-list__wrap"=> array(
1781
- "justify-content" => $alignment,
1782
- "-webkit-box-pack" => $alignment,
1783
- "-ms-flex-pack" => $alignment,
1784
- "justify-content" => $alignment,
1785
- "-webkit-box-align" => $alignment,
1786
- "-ms-flex-align" => $alignment,
1787
- "align-items" => $alignment,
1788
- )
1789
- );
1790
-
1791
- if ( 'right' == $attr['align'] ) {
1792
- $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1793
- "margin-left" => $attr['inner_gap'] . "px"
1794
- );
1795
- $selectors[" .uagb-icon-list__content-wrap"] = array(
1796
- "flex-direction" => "row-reverse"
1797
- );
1798
- } else {
1799
- $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1800
- "margin-right" => $attr['inner_gap'] . "px"
1801
- );
1802
- }
1803
- // Desktop Icon Size CSS ends.
1804
-
1805
- // Mobile Icon Size CSS starts.
1806
- $m_selectors = array(
1807
- " .uagb-icon-list__source-image" => array(
1808
- "width" => $attr['sizeMobile'] . $attr['sizeType']
1809
- ),
1810
- " .uagb-icon-list__source-icon" => array(
1811
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1812
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1813
- "font-size" => $attr['sizeMobile'] . $attr['sizeType']
1814
- ),
1815
- " .uagb-icon-list__source-icon svg" => array(
1816
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1817
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1818
- ),
1819
- " .uagb-icon-list__source-icon:before" => array(
1820
- "width" => $attr['sizeMobile'] . $attr['sizeType'],
1821
- "height" => $attr['sizeMobile'] . $attr['sizeType'],
1822
- "font-size" => $attr['sizeMobile'] . $attr['sizeType']
1823
- ),
1824
- );
1825
- // Mobile Icon Size CSS ends.
1826
-
1827
- // Tablet Icon Size CSS starts.
1828
- $t_selectors = array(
1829
- " .uagb-icon-list__source-image" => array(
1830
- "width" => $attr['sizeTablet'] . $attr['sizeType']
1831
- ),
1832
- " .uagb-icon-list__source-icon" => array(
1833
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1834
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1835
- "font-size" => $attr['sizeTablet'] . $attr['sizeType']
1836
- ),
1837
- " .uagb-icon-list__source-icon svg" => array(
1838
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1839
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1840
- ),
1841
- " .uagb-icon-list__source-icon:before" => array(
1842
- "width" => $attr['sizeTablet'] . $attr['sizeType'],
1843
- "height" => $attr['sizeTablet'] . $attr['sizeType'],
1844
- "font-size" => $attr['sizeTablet'] . $attr['sizeType']
1845
- ),
1846
- );
1847
- // Tablet Icon Size CSS ends.
1848
-
1849
- foreach ( $attr['icons'] as $key => $icon ) {
1850
-
1851
- $icon['icon_color'] = ( isset( $icon['icon_color'] ) ) ? $icon['icon_color'] : '';
1852
- $icon['icon_hover_color'] = ( isset( $icon['icon_hover_color'] ) ) ? $icon['icon_hover_color'] : '';
1853
- $icon['icon_bg_color'] = ( isset( $icon['icon_bg_color'] ) ) ? $icon['icon_bg_color'] : '';
1854
- $icon['icon_bg_hover_color'] = ( isset( $icon['icon_bg_hover_color'] ) ) ? $icon['icon_bg_hover_color'] : '';
1855
- $icon['icon_border_color'] = ( isset( $icon['icon_border_color'] ) ) ? $icon['icon_border_color'] : '';
1856
- $icon['icon_border_hover_color'] = ( isset( $icon['icon_border_hover_color'] ) ) ? $icon['icon_border_hover_color'] : '';
1857
- $icon['label_color'] = ( isset( $icon['label_color'] ) ) ? $icon['label_color'] : '';
1858
- $icon['label_hover_color'] = ( isset( $icon['label_hover_color'] ) ) ? $icon['label_hover_color'] : '';
1859
-
1860
- if ( $attr['icon_count'] <= $key ) {
1861
- break;
1862
- }
1863
-
1864
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon"] = array (
1865
- "color" => $icon['icon_color']
1866
- );
1867
-
1868
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon svg"] = array (
1869
- "fill" => $icon['icon_color']
1870
- );
1871
-
1872
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon"] = array (
1873
- "color" => $icon['icon_hover_color']
1874
- );
1875
-
1876
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon svg"] = array (
1877
- "fill" => $icon['icon_hover_color']
1878
- );
1879
-
1880
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1881
- "color" => $icon['label_color'],
1882
- "font-size" => $attr['fontSize'] . $attr['fontSizeType'],
1883
- 'font-family' => $attr['fontFamily'],
1884
- 'font-weight' => $attr['fontWeight'],
1885
- 'line-height' => $attr['lineHeight'] . $attr['lineHeightType'],
1886
- );
1887
-
1888
- $m_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1889
- "font-size" => $attr['fontSizeMobile'] . $attr['fontSizeType'],
1890
- 'line-height' => $attr['lineHeightMobile'] . $attr['lineHeightType'],
1891
- );
1892
-
1893
- $t_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1894
- "font-size" => $attr['fontSizeTablet'] . $attr['fontSizeType'],
1895
- 'line-height' => $attr['lineHeightTablet'] . $attr['lineHeightType'],
1896
- );
1897
-
1898
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__label"] = array (
1899
- "color" => $icon['label_hover_color']
1900
- );
1901
-
1902
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-wrap"] = array(
1903
- "background" => $icon['icon_bg_color'],
1904
- "border-color" => $icon['icon_border_color'],
1905
- );
1906
-
1907
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-wrap"] = array(
1908
- "background" => $icon['icon_bg_hover_color'],
1909
- "border-color" => $icon['icon_border_hover_color']
1910
- );
1911
- }
1912
-
1913
- if ( 'horizontal' == $attr['icon_layout'] ) {
1914
-
1915
- if ( "tablet" == $attr['stack'] ) {
1916
-
1917
- $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
1918
- "margin-left" => 0,
1919
- "margin-right" => 0,
1920
- "margin-bottom" => $attr['gap'] . "px"
1921
- );
1922
-
1923
- $t_selectors[" .uagb-icon-list__wrap"] = array (
1924
- "flex-direction" => "column"
1925
- );
1926
-
1927
- $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
1928
- "margin-bottom" => 0
1929
- );
1930
-
1931
- } else if ( "mobile" == $attr['stack'] ) {
1932
-
1933
- $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
1934
- "margin-left" => 0,
1935
- "margin-right" => 0,
1936
- "margin-bottom" => $attr['gap'] . "px"
1937
- );
1938
-
1939
- $m_selectors[" .uagb-icon-list__wrap"] = array (
1940
- "flex-direction" => "column"
1941
- );
1942
-
1943
- $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
1944
- "margin-bottom" => 0
1945
- );
1946
- }
1947
- }
1948
-
1949
- // @codingStandardsIgnoreEnd
1950
-
1951
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-icon-list-' . $id );
1952
-
1953
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-icon-list-' . $id, 'tablet' );
1954
-
1955
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-icon-list-' . $id, 'mobile' );
1956
-
1957
- return $desktop . $tablet . $mobile;
1958
- }
1959
-
1960
- /**
1961
- * Get Content Timeline Block CSS
1962
- *
1963
- * @since 0.0.1
1964
- * @param array $attr The block attributes.
1965
- * @param string $id The selector ID.
1966
- * @return array The Widget List.
1967
- */
1968
- public static function get_content_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
1969
-
1970
- $defaults = UAGB_Helper::$block_list['uagb/content-timeline']['attributes'];
1971
-
1972
- $attr = array_merge( $defaults, (array) $attr );
1973
-
1974
- $selectors = array();
1975
- $t_selectors = array();
1976
- $m_selectors = array();
1977
-
1978
- $selectors = array(
1979
- " .uagb-timeline__heading" => array(
1980
- "text-align" => $attr['align'],
1981
- "color" => $attr['headingColor'],
1982
- "font-size" => $attr['headFontSize'] . $attr['headFontSizeType'],
1983
- 'font-family' => $attr['headFontFamily'],
1984
- 'font-weight' => $attr['headFontWeight'],
1985
- 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
1986
- ),
1987
- " .uagb-timeline__heading-text" => array(
1988
- "margin-bottom" => $attr['headSpace'] . "px"
1989
- ),
1990
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
1991
- 'color'=> $attr['iconFocus'],
1992
- ),
1993
- );
1994
-
1995
- $desktop_selectors = self::get_timeline_selectors( $attr );
1996
- $selectors = array_merge( $selectors, $desktop_selectors );
1997
-
1998
- $t_selectors = array(
1999
- " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
2000
- "font-size" => $attr['dateFontsizeTablet'] . $attr['dateFontsizeType'],
2001
- 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
2002
- ),
2003
- " .uagb-timeline__date-new" => array(
2004
- "font-size" => $attr['dateFontsizeTablet'] . $attr['dateFontsizeType'],
2005
- 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
2006
- ),
2007
- " .uagb-timeline__heading" => array(
2008
- "font-size" => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
2009
- 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
2010
- ),
2011
- " .uagb-timeline-desc-content" => array(
2012
- "font-size" => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
2013
- 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
2014
- ),
2015
- );
2016
-
2017
- $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
2018
- $t_selectors = array_merge( $t_selectors, $tablet_selectors );
2019
-
2020
- $m_selectors = array(
2021
- " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
2022
- "font-size" => $attr['dateFontsizeMobile'] . $attr['dateFontsizeType'],
2023
- 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
2024
- ),
2025
- " .uagb-timeline__date-new" => array(
2026
- "font-size" => $attr['dateFontsizeMobile'] . $attr['dateFontsizeType'],
2027
- 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
2028
- ),
2029
- " .uagb-timeline__heading" => array(
2030
- "font-size" => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
2031
- 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
2032
- ),
2033
- " .uagb-timeline-desc-content" => array(
2034
- "font-size" => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
2035
- 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
2036
- ),
2037
- );
2038
-
2039
- $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2040
-
2041
- $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2042
-
2043
- // @codingStandardsIgnoreEnd
2044
-
2045
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2046
-
2047
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-ctm-' . $id, 'tablet' );
2048
-
2049
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-ctm-' . $id, 'mobile' );
2050
-
2051
- return $desktop . $tablet . $mobile;
2052
- }
2053
-
2054
- /**
2055
- * Get Content Timeline Block CSS
2056
- *
2057
- * @since 0.0.1
2058
- * @param array $attr The block attributes.
2059
- * @param string $id The selector ID.
2060
- * @return array The Widget List.
2061
- */
2062
- public static function get_post_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
2063
-
2064
- $defaults = UAGB_Helper::$block_list['uagb/post-timeline']['attributes'];
2065
-
2066
- $attr = array_merge( $defaults, (array) $attr );
2067
- $t_selectors = array();
2068
-
2069
- $selectors = array(
2070
- " .uagb-timeline__heading" => array(
2071
- "text-align" => $attr['align'],
2072
- ),
2073
- " .uagb-timeline__author" => array(
2074
- "text-align" => $attr['align'],
2075
- "margin-bottom" => $attr['authorSpace'] . "px"
2076
- ),
2077
- " .uagb-timeline__link_parent" => array(
2078
- "text-align" => $attr['align'],
2079
- ),
2080
- " .uagb-timeline__image a" => array(
2081
- "text-align" => $attr['align'],
2082
- ),
2083
- " .uagb-timeline__author-link" => array(
2084
- "color" => $attr['authorColor'],
2085
- "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2086
- 'font-family' => $attr['authorFontFamily'],
2087
- 'font-weight' => $attr['authorFontWeight'],
2088
- 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2089
- ),
2090
- " .dashicons-admin-users" => array(
2091
- "color" => $attr['authorColor'],
2092
- "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2093
- 'font-weight' => $attr['authorFontWeight'],
2094
- 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2095
- ),
2096
- " .uagb-timeline__link" => array(
2097
- "color" => $attr['ctaColor'],
2098
- "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2099
- 'font-family' => $attr['ctaFontFamily'],
2100
- 'font-weight' => $attr['ctaFontWeight'],
2101
- 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2102
- "background-color" => $attr['ctaBackground'],
2103
- ),
2104
- " .uagb-timeline__heading a" => array(
2105
- "text-align" => $attr['align'],
2106
- "color" => $attr['headingColor'],
2107
- "font-size" => $attr['headFontSize'] . $attr['headFontSizeType'],
2108
- 'font-family' => $attr['headFontFamily'],
2109
- 'font-weight' => $attr['headFontWeight'],
2110
- 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
2111
- ),
2112
- " .uagb-timeline__heading-text" => array(
2113
- "margin-bottom" => $attr['headSpace'] . "px"
2114
- ),
2115
- " .uagb_timeline__cta-enable .uagb-timeline-desc-content" => array(
2116
- "margin-bottom" => $attr['contentSpace'] . "px",
2117
- ),
2118
- ' .uagb-content' => array(
2119
- 'padding'=> $attr['contentPadding'].'px',
2120
- ),
2121
- );
2122
-
2123
-
2124
-
2125
- $desktop_selectors = self::get_timeline_selectors( $attr );
2126
- $selectors = array_merge( $selectors, $desktop_selectors );
2127
-
2128
- $t_selectors = array(
2129
- " .uagb-timeline__author-link" => array(
2130
- "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2131
- 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2132
- ),
2133
- " .dashicons-admin-users" => array(
2134
- "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2135
- 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2136
- ),
2137
- " .uagb-timeline__link" => array(
2138
- "font-size" => $attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2139
- 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2140
- ),
2141
- " .uagb-timeline__heading a" => array(
2142
- "font-size" => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
2143
- 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
2144
- ),
2145
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2146
- "text-align" => 'left',
2147
- ),
2148
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2149
- "text-align" => 'left',
2150
- ),
2151
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a" => array(
2152
- 'text-align' => 'left',
2153
- ),
2154
- );
2155
-
2156
- $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
2157
- $t_selectors = array_merge( $t_selectors, $tablet_selectors );
2158
-
2159
- // Mobile responsive CSS.
2160
- $m_selectors = array(
2161
- " .uagb-timeline__author-link" => array(
2162
- "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2163
- 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2164
- ),
2165
- " .dashicons-admin-users" => array(
2166
- "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2167
- 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2168
- ),
2169
- " .uagb-timeline__link" => array(
2170
- "font-size" => $attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2171
- 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2172
- ),
2173
- " .uagb-timeline__heading a" => array(
2174
- "font-size" => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
2175
- 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
2176
- ),
2177
- " .uagb-timeline__heading" => array(
2178
- "text-align" => $attr['align'],
2179
- ),
2180
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2181
- "text-align" => 'left',
2182
- ),
2183
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2184
- "text-align" => 'left',
2185
- ),
2186
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a" => array(
2187
- 'text-align' => 'left',
2188
- ),
2189
- );
2190
-
2191
- $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2192
- $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2193
-
2194
- // @codingStandardsIgnoreEnd
2195
-
2196
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2197
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-ctm-' . $id, 'tablet' );
2198
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-ctm-' . $id, 'mobile' );
2199
-
2200
- return $desktop . $tablet . $mobile;
2201
- }
2202
-
2203
- /**
2204
- * Get Restaurant Menu Block CSS
2205
- *
2206
- * @since 1.0.2
2207
- * @param array $attr The block attributes.
2208
- * @param string $id The selector ID.
2209
- * @return array The Widget List.
2210
- */
2211
- public static function get_restaurant_menu_css( $attr, $id ) { // @codingStandardsIgnoreStart
2212
-
2213
- $defaults = UAGB_Helper::$block_list['uagb/restaurant-menu']['attributes'];
2214
-
2215
- $attr = array_merge( $defaults, (array) $attr );
2216
-
2217
- $m_selectors = array();
2218
- $t_selectors = array();
2219
-
2220
- $align = $attr['headingAlign'];
2221
- if( 'left' === $align ){
2222
- $align = 'flex-start';
2223
- }else if( 'right' === $align ){
2224
- $align = 'flex-end';
2225
- }
2226
-
2227
- $selectors = array(
2228
- " .uagb-rest_menu__wrap" => array(
2229
- 'padding-left' => ($attr['columnGap']/2) . "px",
2230
- 'padding-right' => ($attr['columnGap']/2). "px",
2231
- 'margin-bottom' => $attr['rowGap'] . "px"
2232
- ),
2233
- " .uagb-rest_menu__wrap .uagb-rm__image-content" => array(
2234
- 'padding-left' => $attr['imgHrPadding'] .'px',
2235
- 'padding-right' => $attr['imgHrPadding'] .'px',
2236
- 'padding-top' => $attr['imgVrPadding'] .'px',
2237
- 'padding-bottom' => $attr['imgVrPadding'] .'px',
2238
- ),
2239
- " .uagb-rm__image img" => array(
2240
- 'width'=> $attr['imageWidth'] .'px',
2241
- 'max-width'=> $attr['imageWidth'] .'px',
2242
- ),
2243
- " .uagb-rm__separator-parent" => array(
2244
- 'justify-content' => $align,
2245
- ),
2246
- " .uagb-rm__content" => array(
2247
- 'text-align' => $attr['headingAlign'] ,
2248
- 'padding-left' => $attr['contentHrPadding'] . 'px',
2249
- 'padding-right' => $attr['contentHrPadding'] . 'px',
2250
- 'padding-top' => $attr['contentVrPadding'] . 'px',
2251
- 'padding-bottom' => $attr['contentVrPadding'] . 'px',
2252
- ),
2253
- " .uagb-rm__title" => array(
2254
- 'font-size' => $attr['titleFontSize'] .$attr['titleFontSizeType'],
2255
- 'color' => $attr['titleColor'] ,
2256
- 'margin-bottom' => $attr['titleSpace'] .'px',
2257
- 'font-family' => $attr['titleFontFamily'],
2258
- 'font-weight' => $attr['titleFontWeight'],
2259
- 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2260
- ),
2261
- " .uagb-rm__price" => array(
2262
- 'font-size' => $attr['priceFontSize'].$attr['priceFontSizeType'],
2263
- 'font-family' => $attr['priceFontFamily'],
2264
- 'font-weight' => $attr['priceFontWeight'],
2265
- 'line-height' => $attr['priceLineHeight'] . $attr['priceLineHeightType'],
2266
- 'color' => $attr['priceColor'],
2267
- ),
2268
- " .uagb-rm__desc" => array(
2269
- 'font-size' => $attr['descFontSize'].$attr['descFontSizeType'],
2270
- 'font-family' => $attr['descFontFamily'],
2271
- 'font-weight' => $attr['descFontWeight'],
2272
- 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
2273
- 'color'=> $attr['descColor'],
2274
- 'margin-bottom'=> $attr['descSpace'].'px',
2275
- ),
2276
- );
2277
-
2278
- if ( $attr["seperatorStyle"] != "none" ) {
2279
- $selectors[" .uagb-rest_menu__wrap .uagb-rm__separator"] = array(
2280
- 'border-top-color'=> $attr['seperatorColor'],
2281
- 'border-top-style'=> $attr['seperatorStyle'],
2282
- 'border-top-width'=> $attr['seperatorThickness'] . "px",
2283
- 'width'=> $attr['seperatorWidth'] . "%",
2284
- );
2285
- }
2286
-
2287
- $selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)'] = array(
2288
- 'margin-left'=> 0,
2289
- 'clear'=> 'left',
2290
- );
2291
-
2292
- $t_selectors = array(
2293
- ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2294
- 'margin-left'=> 'unset',
2295
- 'clear'=> 'unset',
2296
- ),
2297
- ' .uagb-rest_menu__wrap.uagb-rm__tablet-column-'.$attr['tcolumns'].':nth-child('.$attr['tcolumns'].'n+1)' => array(
2298
- 'margin-left'=> '0%',
2299
- 'clear'=> 'left',
2300
- ),
2301
- " .uagb-rm__title" => array(
2302
- "font-size" => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2303
- 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2304
- ),
2305
- " .uagb-rm__desc" => array(
2306
- "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
2307
- 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
2308
- ),
2309
- " .uagb-rm__price" => array(
2310
- "font-size" => $attr['priceFontSizeTablet'] . $attr['priceFontSizeType'],
2311
- 'line-height' => $attr['priceLineHeightTablet'] . $attr['priceLineHeightType'],
2312
- )
2313
- );
2314
-
2315
- $m_selectors = array(
2316
- ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2317
- 'margin-left'=> 'unset',
2318
- 'clear'=> 'unset',
2319
- ),
2320
- ' .uagb-rest_menu__wrap.uagb-rm__mobile-column-'.$attr['mcolumns'].':nth-child('.$attr['mcolumns'].'n+1)' => array(
2321
- 'margin-left'=> '0%',
2322
- 'clear'=> 'left',
2323
- ),
2324
- " .uagb-rm__title" => array(
2325
- "font-size" => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2326
- 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2327
- ),
2328
- " .uagb-rm__desc" => array(
2329
- "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
2330
- 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
2331
- ),
2332
- " .uagb-rm__price" => array(
2333
- "font-size" => $attr['priceFontSizeMobile'] . $attr['priceFontSizeType'],
2334
- 'line-height' => $attr['priceLineHeightMobile'] . $attr['priceLineHeightType'],
2335
- )
2336
- );
2337
-
2338
- // @codingStandardsIgnoreEnd
2339
-
2340
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-rm-' . $id );
2341
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-rm-' . $id, 'tablet' );
2342
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-rm-' . $id, 'mobile' );
2343
-
2344
- return $desktop . $tablet . $mobile;
2345
- }
2346
-
2347
- /**
2348
- * Get Post Grid Block CSS
2349
- *
2350
- * @since 1.4.0
2351
- * @param array $attr The block attributes.
2352
- * @param string $id The selector ID.
2353
- * @return array The Widget List.
2354
- */
2355
- public static function get_post_grid_css( $attr, $id ) { // @codingStandardsIgnoreStart
2356
-
2357
- $defaults = UAGB_Helper::$block_list['uagb/post-grid']['attributes'];
2358
-
2359
- $attr = array_merge( $defaults, (array) $attr );
2360
-
2361
- $selectors = self::get_post_selectors( $attr );
2362
-
2363
- $m_selectors = self::get_post_mobile_selectors( $attr );
2364
-
2365
- $t_selectors = self::get_post_tablet_selectors( $attr );
2366
-
2367
- // @codingStandardsIgnoreEnd
2368
-
2369
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__grid-' . $id );
2370
-
2371
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__grid-' . $id, 'tablet' );
2372
-
2373
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__grid-' . $id, 'mobile' );
2374
-
2375
- return $desktop . $tablet . $mobile;
2376
- }
2377
-
2378
- /**
2379
- * Get Post Carousel Block CSS
2380
- *
2381
- * @since 1.4.0
2382
- * @param array $attr The block attributes.
2383
- * @param string $id The selector ID.
2384
- * @return array The Widget List.
2385
- */
2386
- public static function get_post_carousel_css( $attr, $id ) { // @codingStandardsIgnoreStart
2387
-
2388
- $defaults = UAGB_Helper::$block_list['uagb/post-carousel']['attributes'];
2389
-
2390
- $attr = array_merge( $defaults, (array) $attr );
2391
-
2392
- $selectors = self::get_post_selectors( $attr );
2393
-
2394
- $m_selectors = self::get_post_mobile_selectors( $attr );
2395
-
2396
- $t_selectors = self::get_post_tablet_selectors( $attr );
2397
-
2398
- $selectors[" .slick-arrow"] = array(
2399
- "border-color" => $attr['arrowColor']
2400
- );
2401
-
2402
- $selectors[" .slick-arrow span"] = array(
2403
- "color" => $attr['arrowColor'],
2404
- "font-size" => $attr['arrowSize'] . "px",
2405
- "width" => $attr['arrowSize'] . "px",
2406
- "height" => $attr['arrowSize'] . "px"
2407
- );
2408
-
2409
- $selectors[" .slick-arrow svg"] = array(
2410
- "fill" => $attr['arrowColor'],
2411
- "width" => $attr['arrowSize'] . "px",
2412
- "height" => $attr['arrowSize'] . "px"
2413
- );
2414
-
2415
- $selectors[" .slick-arrow"] = array(
2416
- "border-color" => $attr['arrowColor'],
2417
- "border-width" => $attr['arrowBorderSize'] . "px",
2418
- "border-radius" => $attr['arrowBorderRadius'] . "px"
2419
- );
2420
-
2421
- $selectors[".uagb-post-grid ul.slick-dots li.slick-active button:before"] = array(
2422
- "color" => $attr['arrowColor']
2423
- );
2424
-
2425
- $selectors[".uagb-slick-carousel ul.slick-dots li button:before"] = array(
2426
- "color" => $attr['arrowColor']
2427
- );
2428
-
2429
- if ( isset( $attr['arrowDots'] ) && 'dots' == $attr['arrowDots'] ) {
2430
-
2431
- $selectors[".uagb-slick-carousel"] = array(
2432
- "padding" => "0 0 35px 0"
2433
- );
2434
- }
2435
-
2436
- // @codingStandardsIgnoreEnd
2437
-
2438
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__carousel-' . $id );
2439
-
2440
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__carousel-' . $id, 'tablet' );
2441
-
2442
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__carousel-' . $id, 'mobile' );
2443
-
2444
- return $desktop . $tablet . $mobile;
2445
- }
2446
-
2447
- /**
2448
- * Get Post Masonry Block CSS
2449
- *
2450
- * @since 1.4.0
2451
- * @param array $attr The block attributes.
2452
- * @param string $id The selector ID.
2453
- * @return array The Widget List.
2454
- */
2455
- public static function get_post_masonry_css( $attr, $id ) { // @codingStandardsIgnoreStart
2456
-
2457
- $defaults = UAGB_Helper::$block_list['uagb/post-masonry']['attributes'];
2458
-
2459
- $attr = array_merge( $defaults, (array) $attr );
2460
-
2461
- $selectors = self::get_post_selectors( $attr );
2462
-
2463
- $m_selectors = self::get_post_mobile_selectors( $attr );
2464
-
2465
- $t_selectors = self::get_post_tablet_selectors( $attr );
2466
-
2467
- // @codingStandardsIgnoreEnd
2468
-
2469
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__masonry-' . $id );
2470
-
2471
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__masonry-' . $id, 'tablet' );
2472
-
2473
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__masonry-' . $id, 'mobile' );
2474
-
2475
- return $desktop . $tablet . $mobile;
2476
- }
2477
-
2478
- /**
2479
- * Get Post Block Selectors CSS
2480
- *
2481
- * @param array $attr The block attributes.
2482
- * @since 1.4.0
2483
- */
2484
- public static function get_post_selectors( $attr ) { // @codingStandardsIgnoreStart
2485
- return array(
2486
- " .uagb-post__items" => array(
2487
- "margin-right" => ( -$attr['rowGap']/2 ) . "px",
2488
- "margin-left" => ( -$attr['rowGap']/2 ) . "px",
2489
- ),
2490
- " .uagb-post__items article" => array(
2491
- "padding-right" => ( $attr['rowGap']/2 ) . "px",
2492
- "padding-left" => ( $attr['rowGap']/2 ) . "px",
2493
- "margin-bottom" => ( $attr['columnGap'] ) . "px"
2494
- ),
2495
- " .uagb-post__inner-wrap" => array(
2496
- "background" => $attr['bgColor']
2497
- ),
2498
- " .uagb-post__text" => array(
2499
- "padding" => ( $attr['contentPadding'] ) . "px",
2500
- "text-align" => $attr['align']
2501
- ),
2502
- " .uagb-post__text .uagb-post__title" => array(
2503
- "color"=> $attr['titleColor'],
2504
- "font-size"=> $attr['titleFontSize'] . $attr['titleFontSizeType'],
2505
- 'font-family' => $attr['titleFontFamily'],
2506
- 'font-weight' => $attr['titleFontWeight'],
2507
- 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2508
- "margin-bottom"=> $attr['titleBottomSpace'] . "px"
2509
- ),
2510
- " .uagb-post__text .uagb-post__title a" => array(
2511
- "color" => $attr['titleColor'],
2512
- "font-size" => $attr['titleFontSize'] . $attr['titleFontSizeType'],
2513
- 'font-family' => $attr['titleFontFamily'],
2514
- 'font-weight' => $attr['titleFontWeight'],
2515
- 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2516
- ),
2517
- " .uagb-post__text .uagb-post-grid-byline" => array(
2518
- "color"=> $attr['metaColor'],
2519
- "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2520
- 'font-family' => $attr['metaFontFamily'],
2521
- 'font-weight' => $attr['metaFontWeight'],
2522
- 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2523
- "margin-bottom" => $attr['metaBottomSpace'] . "px"
2524
- ),
2525
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2526
- "color" => $attr['metaColor'],
2527
- "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2528
- 'font-family' => $attr['metaFontFamily'],
2529
- 'font-weight' => $attr['metaFontWeight'],
2530
- 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2531
- ),
2532
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2533
- "color" => $attr['metaColor'],
2534
- "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2535
- 'font-family' => $attr['metaFontFamily'],
2536
- 'font-weight' => $attr['metaFontWeight'],
2537
- 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2538
- ),
2539
- " .uagb-post__text .uagb-post__excerpt" => array(
2540
- "color" => $attr['excerptColor'],
2541
- "font-size" => $attr['excerptFontSize'] . $attr['excerptFontSizeType'],
2542
- 'font-family' => $attr['excerptFontFamily'],
2543
- 'font-weight' => $attr['excerptFontWeight'],
2544
- 'line-height' => $attr['excerptLineHeight'] . $attr['excerptLineHeightType'],
2545
- "margin-bottom" => $attr['excerptBottomSpace'] . "px"
2546
- ),
2547
- " .uagb-post__text .uagb-post__cta" => array(
2548
- "color" => $attr['ctaColor'],
2549
- "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2550
- 'font-family' => $attr['ctaFontFamily'],
2551
- 'font-weight' => $attr['ctaFontWeight'],
2552
- 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2553
- "background" => $attr['ctaBgColor'],
2554
- "border-color" => $attr['borderColor'],
2555
- "border-width" => $attr['borderWidth'] . "px",
2556
- "border-radius" => $attr['borderRadius'] . "px",
2557
- "border-style" => $attr['borderStyle'],
2558
- ),
2559
- " .uagb-post__text .uagb-post__cta:hover" => array(
2560
- "border-color"=> $attr['borderHColor']
2561
- ),
2562
- " .uagb-post__text .uagb-post__cta a" => array(
2563
- "color"=> $attr['ctaColor'],
2564
- "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2565
- 'font-family' => $attr['ctaFontFamily'],
2566
- 'font-weight' => $attr['ctaFontWeight'],
2567
- 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2568
- "padding" => ( $attr['btnVPadding'] ) . "px " . ( $attr['btnHPadding'] ) . "px",
2569
- ),
2570
- " .uagb-post__text .uagb-post__cta:hover" => array(
2571
- "color"=> $attr['ctaHColor'],
2572
- "background"=> $attr['ctaBgHColor']
2573
- ),
2574
- " .uagb-post__text .uagb-post__cta:hover a" => array(
2575
- "color"=> $attr['ctaHColor']
2576
- ),
2577
- " .uagb-post__image:before" => array(
2578
- "background-color" => $attr['bgOverlayColor'],
2579
- "opacity" => ( $attr['overlayOpacity'] / 100 )
2580
- ),
2581
- );
2582
- // @codingStandardsIgnoreEnd
2583
- }
2584
-
2585
- /**
2586
- * Get Post Block Selectors CSS for Mobile devices
2587
- *
2588
- * @param array $attr The block attributes.
2589
- * @since 1.6.1
2590
- */
2591
- public static function get_post_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
2592
-
2593
- return array(
2594
- " .uagb-post__text .uagb-post__title" => array(
2595
- "font-size" =>$attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2596
- 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2597
- ),
2598
- " .uagb-post__text .uagb-post__title a" => array(
2599
- "font-size" =>$attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2600
- 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2601
- ),
2602
- " .uagb-post__text .uagb-post-grid-byline" => array(
2603
- "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2604
- 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2605
- ),
2606
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2607
- "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2608
- 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2609
- ),
2610
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2611
- "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2612
- 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2613
- ),
2614
- " .uagb-post__text .uagb-post__excerpt" => array(
2615
- "font-size" =>$attr['excerptFontSizeMobile'] . $attr['excerptFontSizeType'],
2616
- 'line-height' => $attr['excerptLineHeightMobile'] . $attr['excerptLineHeightType'],
2617
- ),
2618
- " .uagb-post__text .uagb-post__cta" => array(
2619
- "font-size" =>$attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2620
- 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2621
- ),
2622
- " .uagb-post__text .uagb-post__cta a" => array(
2623
- "font-size" =>$attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2624
- 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2625
- ),
2626
- " .uagb-post__text" => array(
2627
- "padding" =>( $attr['contentPaddingMobile'] ) . "px",
2628
- ),
2629
- );
2630
- // @codingStandardsIgnoreEnd
2631
- }
2632
-
2633
- /**
2634
- * Get Post Block Selectors CSS for Tablet devices
2635
- *
2636
- * @param array $attr The block attributes.
2637
- * @since 1.8.2
2638
- */
2639
- public static function get_post_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
2640
- return array(
2641
- " .uagb-post__text .uagb-post__title" => array(
2642
- "font-size" =>$attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2643
- 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2644
- ),
2645
- " .uagb-post__text .uagb-post__title a" => array(
2646
- "font-size" =>$attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2647
- 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2648
- ),
2649
- " .uagb-post__text .uagb-post-grid-byline" => array(
2650
- "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2651
- 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2652
- ),
2653
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2654
- "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2655
- 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2656
- ),
2657
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2658
- "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2659
- 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2660
- ),
2661
- " .uagb-post__text .uagb-post__excerpt" => array(
2662
- "font-size" =>$attr['excerptFontSizeTablet'] . $attr['excerptFontSizeType'],
2663
- 'line-height' => $attr['excerptLineHeightTablet'] . $attr['excerptLineHeightType'],
2664
- ),
2665
- " .uagb-post__text .uagb-post__cta" => array(
2666
- "font-size" =>$attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2667
- 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2668
- ),
2669
- " .uagb-post__text .uagb-post__cta a" => array(
2670
- "font-size" =>$attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2671
- 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2672
- ),
2673
- );
2674
- // @codingStandardsIgnoreEnd
2675
- }
2676
-
2677
- /**
2678
- * Get Blockquote CSS
2679
- *
2680
- * @since 1.8.2
2681
- * @param array $attr The block attributes.
2682
- * @param string $id The selector ID.
2683
- * @return array The Widget List.
2684
- */
2685
- public static function get_blockquote_css( $attr, $id ) {
2686
- // @codingStandardsIgnoreStart
2687
-
2688
- $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
2689
-
2690
- $attr = array_merge( $defaults, (array) $attr );
2691
-
2692
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
2693
-
2694
- $content_align ="center";
2695
-
2696
- if( 'left' === $attr['align'] ){
2697
- $content_align =" flex-start";
2698
- }
2699
- if( 'right' === $attr['align'] ){
2700
- $content_align =" flex-end";
2701
- }
2702
-
2703
- $author_space = $attr['authorSpace'];
2704
-
2705
- if( 'center' !== $attr['align'] || $attr['skinStyle'] == "border" ){
2706
- $author_space = 0;
2707
- }
2708
-
2709
- //Set align to left for border style.
2710
- $text_align = $attr['align'];
2711
-
2712
- if( 'border' === $attr['skinStyle'] ){
2713
- $text_align = 'left';
2714
- }
2715
-
2716
- $selectors = array(
2717
- " .uagb-blockquote__content" => array(
2718
- "font-size" => $attr['descFontSize'] . $attr['descFontSizeType'],
2719
- 'font-family' => $attr['descFontFamily'],
2720
- 'font-weight' => $attr['descFontWeight'],
2721
- 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
2722
- "color" => $attr['descColor'],
2723
- "margin-bottom" => $attr['descSpace'] . "px",
2724
- "text-align" => $text_align,
2725
- ),
2726
- " cite.uagb-blockquote__author" => array(
2727
- "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2728
- 'font-family' => $attr['authorFontFamily'],
2729
- 'font-weight' => $attr['authorFontWeight'],
2730
- 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2731
- "color" => $attr['authorColor'],
2732
- "text-align" => $text_align,
2733
- ),
2734
- " .uagb-blockquote__skin-border blockquote.uagb-blockquote" => array(
2735
- "border-color" => $attr['borderColor'],
2736
- "border-left-style" => $attr['borderStyle'],
2737
- "border-left-width" => $attr['borderWidth'] . "px",
2738
- "padding-left" => $attr['borderGap'] . "px",
2739
- "padding-top" => $attr['verticalPadding'] . "px",
2740
- "padding-bottom" => $attr['verticalPadding'] . "px",
2741
- ),
2742
-
2743
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2744
- "background" => $attr['quoteBgColor'],
2745
- "border-radius" => $attr['quoteBorderRadius']."%",
2746
- "margin-top" => $attr['quoteTopMargin'] . "px",
2747
- "margin-bottom" => $attr['quoteBottomMargin'] . "px",
2748
- "margin-left" => $attr['quoteLeftMargin'] . "px",
2749
- "margin-right" => $attr['quoteRightMargin'] . "px",
2750
- "padding" => $attr['quotePadding'] . $attr['quotePaddingType'],
2751
- ),
2752
-
2753
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2754
- "width" => $attr['quoteSize'].$attr['quoteSizeType'],
2755
- "height" => $attr['quoteSize'].$attr['quoteSizeType'],
2756
- ),
2757
-
2758
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg" => array(
2759
- "fill" => $attr['quoteColor'],
2760
- ),
2761
-
2762
- " .uagb-blockquote__style-style_1 .uagb-blockquote" => array(
2763
- "text-align" => $attr['align'],
2764
- ),
2765
-
2766
- " .uagb-blockquote__author-wrap" => array(
2767
- "margin-bottom" => $author_space . "px",
2768
- ),
2769
- " .uagb-blockquote__author-image img" => array(
2770
- "width" => $attr['authorImageWidth']."px",
2771
- "height" => $attr['authorImageWidth']."px",
2772
- "border-radius" => $attr['authorImgBorderRadius']."%"
2773
- ),
2774
-
2775
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover svg" => array(
2776
- "fill" => $attr['quoteHoverColor'],
2777
- ),
2778
-
2779
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover" => array(
2780
- "background" => $attr['quoteBgHoverColor'],
2781
- ),
2782
-
2783
- " .uagb-blockquote__skin-border blockquote.uagb-blockquote:hover" => array(
2784
- "border-left-color" => $attr['borderHoverColor'],
2785
- ),
2786
- );
2787
-
2788
- if( $attr['enableTweet'] ){
2789
- $selectors[" a.uagb-blockquote__tweet-button"] = array(
2790
- "font-size" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2791
- 'font-family' => $attr['tweetBtnFontFamily'],
2792
- 'font-weight' => $attr['tweetBtnFontWeight'],
2793
- 'line-height' => $attr['tweetBtnLineHeight'] . $attr['tweetBtnLineHeightType'],
2794
- );
2795
-
2796
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"] = array(
2797
- "color" => $attr['tweetLinkColor'],
2798
- );
2799
-
2800
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"] = array(
2801
- "fill" => $attr['tweetLinkColor'],
2802
- );
2803
-
2804
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"] = array(
2805
- "color" => $attr['tweetBtnColor'],
2806
- "background-color" => $attr['tweetBtnBgColor'],
2807
- "padding-left" => $attr['tweetBtnHrPadding'] . "px",
2808
- "padding-right" => $attr['tweetBtnHrPadding'] . "px",
2809
- "padding-top" => $attr['tweetBtnVrPadding'] . "px",
2810
- "padding-bottom" => $attr['tweetBtnVrPadding'] . "px",
2811
- );
2812
-
2813
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"] = array(
2814
- "fill" => $attr['tweetBtnColor'],
2815
- );
2816
-
2817
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"] = array(
2818
- "color" => $attr['tweetBtnColor'],
2819
- "background-color" => $attr['tweetBtnBgColor'],
2820
- "padding-left" => $attr['tweetBtnHrPadding'] . "px",
2821
- "padding-right" => $attr['tweetBtnHrPadding'] . "px",
2822
- "padding-top" => $attr['tweetBtnVrPadding'] . "px",
2823
- "padding-bottom" => $attr['tweetBtnVrPadding'] . "px",
2824
- );
2825
-
2826
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"] = array(
2827
- "fill" => $attr['tweetBtnColor'],
2828
- );
2829
-
2830
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"] = array(
2831
- "border-right-color" => $attr['tweetBtnBgColor'],
2832
- );
2833
-
2834
- $selectors[" a.uagb-blockquote__tweet-button svg"] = array(
2835
- "width" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2836
- "height" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2837
- );
2838
-
2839
- $selectors[" .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"] = array(
2840
- "margin-right" => $attr['tweetIconSpacing'] . "px",
2841
- );
2842
-
2843
- // Hover CSS.
2844
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"] = array(
2845
- "color" => $attr['tweetBtnHoverColor'],
2846
- );
2847
-
2848
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"] = array(
2849
- "fill" => $attr['tweetBtnHoverColor'],
2850
- );
2851
-
2852
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"] = array(
2853
- "color" => $attr['tweetBtnHoverColor'],
2854
- "background-color" => $attr['tweetBtnBgHoverColor'],
2855
- );
2856
-
2857
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"] = array(
2858
- "fill" => $attr['tweetBtnHoverColor'],
2859
- );
2860
-
2861
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover"] = array(
2862
- "color" => $attr['tweetBtnHoverColor'],
2863
- "background-color" => $attr['tweetBtnBgHoverColor'],
2864
- );
2865
-
2866
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"] = array(
2867
- "fill" => $attr['tweetBtnHoverColor'],
2868
- );
2869
-
2870
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"] = array(
2871
- "border-right-color" => $attr['tweetBtnBgHoverColor'],
2872
- );
2873
- }
2874
-
2875
- $t_selectors = array(
2876
- " .uagb-blockquote__content" => array(
2877
- "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
2878
- 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
2879
- ),
2880
- " cite.uagb-blockquote__author" =>array(
2881
- "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2882
- 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2883
- ),
2884
- " a.uagb-blockquote__tweet-button" => array(
2885
- "font-size" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2886
- 'line-height' => $attr['tweetBtnLineHeightTablet'] . $attr['tweetBtnLineHeightType'],
2887
- ),
2888
- " a.uagb-blockquote__tweet-button svg" => array(
2889
- "width" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2890
- "height" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2891
- ),
2892
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2893
- "padding" => $attr['quotePaddingTablet'] . $attr['quotePaddingType'],
2894
- ),
2895
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2896
- "width" => $attr['quoteSizeTablet'].$attr['quoteSizeType'],
2897
- "height" => $attr['quoteSizeTablet'].$attr['quoteSizeType'],
2898
- ),
2899
- );
2900
-
2901
- $m_selectors = array(
2902
- " .uagb-blockquote__content" => array(
2903
- "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
2904
- 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
2905
- ),
2906
- " cite.uagb-blockquote__author" => array(
2907
- "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2908
- 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2909
- ),
2910
- " a.uagb-blockquote__tweet-button" => array(
2911
- "font-size" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2912
- 'line-height' => $attr['tweetBtnLineHeightMobile'] . $attr['tweetBtnLineHeightType'],
2913
- ),
2914
- " a.uagb-blockquote__tweet-button svg" => array(
2915
- "width" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2916
- "height" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2917
- ),
2918
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2919
- "padding" => $attr['quotePaddingMobile'] . $attr['quotePaddingType'],
2920
- ),
2921
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2922
- "width" => $attr['quoteSizeMobile'].$attr['quoteSizeType'],
2923
- "height" => $attr['quoteSizeMobile'].$attr['quoteSizeType'],
2924
- ),
2925
- );
2926
-
2927
- // @codingStandardsIgnoreEnd
2928
-
2929
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-blockquote-' . $id );
2930
-
2931
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-blockquote-' . $id, 'tablet' );
2932
-
2933
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-blockquote-' . $id, 'mobile' );
2934
-
2935
- return $desktop . $tablet . $mobile;
2936
- }
2937
-
2938
- /**
2939
- * Get Timeline Block Desktop Selectors CSS
2940
- *
2941
- * @param array $attr The block attributes.
2942
- * @since 1.8.2
2943
- */
2944
- public static function get_timeline_selectors( $attr ) { // @codingStandardsIgnoreStart
2945
- $selectors = array(
2946
- " .uagb-timeline__heading-text" => array(
2947
- "margin-bottom" => $attr['headSpace'] . "px"
2948
- ),
2949
- " .uagb-timeline-desc-content" => array(
2950
- "text-align" => $attr['align'],
2951
- "color" => $attr['subHeadingColor'],
2952
- "font-size" => $attr['subHeadFontSize'] . $attr['subHeadFontSizeType'],
2953
- 'font-family' => $attr['subHeadFontFamily'],
2954
- 'font-weight' => $attr['subHeadFontWeight'],
2955
- 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
2956
- ),
2957
- ' .uagb-timeline__events-new' => array(
2958
- 'text-align' => $attr['align']
2959
- ),
2960
- ' .uagb-timeline__date-inner' => array(
2961
- 'text-align' => $attr['align']
2962
- ),
2963
- ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
2964
- 'border-left-color' => $attr['backgroundColor']
2965
- ),
2966
- ' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
2967
- 'border-left-color' => $attr['backgroundColor']
2968
- ),
2969
- ' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
2970
- 'border-right-color' => $attr['backgroundColor']
2971
- ),
2972
- ' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
2973
- 'border-right-color' => $attr['backgroundColor']
2974
- ),
2975
- ' .uagb-timeline__line__inner' => array(
2976
- 'background-color' => $attr['separatorFillColor']
2977
- ),
2978
- ' .uagb-timeline__line' => array(
2979
- 'background-color' => $attr['separatorColor'],
2980
- 'width' => $attr['separatorwidth'].'px'
2981
- ),
2982
- ' .uagb-timeline__right-block .uagb-timeline__line' => array(
2983
- 'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2984
- ),
2985
- ' .uagb-timeline__left-block .uagb-timeline__line' => array(
2986
- 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2987
- ),
2988
- ' .uagb-timeline__center-block .uagb-timeline__line' => array(
2989
- 'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2990
- ),
2991
- ' .uagb-timeline__marker' => array(
2992
- 'background-color' => $attr['separatorBg'],
2993
- 'min-height' => $attr['connectorBgsize'].'px',
2994
- 'min-width' => $attr['connectorBgsize'].'px',
2995
- 'line-height' => $attr['connectorBgsize'].'px',
2996
- 'border' => $attr['borderwidth'].'px solid'.$attr['separatorBorder'],
2997
- ),
2998
- ' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow' => array(
2999
- 'height' => $attr['connectorBgsize'].'px',
3000
- ),
3001
- ' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow' => array(
3002
- 'height' => $attr['connectorBgsize'].'px',
3003
- ),
3004
- ' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow' => array(
3005
- 'height' => $attr['connectorBgsize'].'px',
3006
- ),
3007
- ' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow' => array(
3008
- 'height' => $attr['connectorBgsize'].'px',
3009
- ),
3010
- ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3011
- 'margin-left' => $attr['horizontalSpace'].'px',
3012
- 'margin-right'=> $attr['horizontalSpace'].'px',
3013
- ),
3014
- ' .uagb-timeline__field:not(:last-child)' => array(
3015
- 'margin-bottom' => $attr['verticalSpace'].'px',
3016
- ),
3017
- ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3018
- 'margin-bottom' => $attr['dateBottomspace'].'px',
3019
- 'color' => $attr['dateColor'],
3020
- 'font-size' => $attr['dateFontsize'].$attr['dateFontsizeType'],
3021
- 'font-family' => $attr['dateFontFamily'],
3022
- 'font-weight' => $attr['dateFontWeight'],
3023
- 'line-height' => $attr['dateLineHeight'] . $attr['dateLineHeightType'],
3024
- 'text-align' => $attr['align'],
3025
- ),
3026
- ' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
3027
- 'margin-left' => $attr['horizontalSpace'].'px',
3028
- ),
3029
- ' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3030
- 'margin-right' => $attr['horizontalSpace'].'px',
3031
- ),
3032
- ' .uagb-timeline__date-new' => array(
3033
- 'color' => $attr['dateColor'],
3034
- 'font-size' => $attr['dateFontsize'].$attr['dateFontsizeType'],
3035
- 'font-family' => $attr['dateFontFamily'],
3036
- 'font-weight' => $attr['dateFontWeight'],
3037
- 'line-height' => $attr['dateLineHeight'] . $attr['dateLineHeightType'],
3038
- ),
3039
- ' .uagb-timeline__events-inner-new' => array(
3040
- 'background-color' => $attr['backgroundColor'],
3041
- 'border-radius' => $attr['borderRadius'].'px',
3042
- 'padding'=> $attr['bgPadding'].'px',
3043
- ),
3044
- ' .uagb-timeline__main .uagb-timeline__icon-new' => array(
3045
- 'color' => $attr['iconColor'],
3046
- 'font-size' => $attr['iconSize'].'px',
3047
- 'width' => $attr['iconSize'].'px',
3048
- ),
3049
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg' => array(
3050
- 'fill'=> $attr['iconFocus'],
3051
- ),
3052
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
3053
- 'color'=> $attr['iconFocus'],
3054
- ),
3055
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon' => array(
3056
- 'background' => $attr['iconBgFocus'],
3057
- 'border-color'=> $attr['borderFocus'],
3058
- ),
3059
- ' .uagb-timeline__main .uagb-timeline__icon-new svg' => array(
3060
- 'fill'=> $attr['iconColor'],
3061
- ),
3062
- );
3063
-
3064
- return $selectors;
3065
- // @codingStandardsIgnoreEnd
3066
- }
3067
-
3068
- /**
3069
- * Get Timeline Block Tablet Selectors CSS.
3070
- *
3071
- * @param array $attr The block attributes.
3072
- * @since 1.8.2
3073
- */
3074
- public static function get_timeline_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
3075
- $tablet_selector = array(
3076
- " .uagb-timeline-desc-content" => array(
3077
- "font-size" => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
3078
- 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
3079
- ),
3080
- ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3081
- 'font-size' => $attr['dateFontsizeTablet'].$attr['dateFontsizeType'],
3082
- 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
3083
- ),
3084
- ' .uagb-timeline__date-new' => array(
3085
- 'font-size' => $attr['dateFontsizeTablet'].$attr['dateFontsizeType'],
3086
- 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
3087
- ),
3088
- ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3089
- 'margin-left' => 0,
3090
- 'margin-right' => 0,
3091
- ),
3092
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading" => array(
3093
- "text-align" => 'left',
3094
- ),
3095
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content" => array(
3096
- "text-align" => 'left',
3097
- ),
3098
- ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new' => array(
3099
- 'text-align' => 'left'
3100
- ),
3101
- ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner' => array(
3102
- 'text-align' => 'left'
3103
- ),
3104
- ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3105
- 'text-align'=> 'left',
3106
- ),
3107
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3108
- "border-right-color" => $attr['backgroundColor'],
3109
- ),
3110
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line" => array(
3111
- 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3112
- ),
3113
- );
3114
-
3115
- return $tablet_selector;
3116
- // @codingStandardsIgnoreEnd
3117
- }
3118
-
3119
- /**
3120
- * Get Timeline Block Mobile Selectors CSS.
3121
- *
3122
- * @param array $attr The block attributes.
3123
- * @since 1.8.2
3124
- */
3125
- public static function get_timeline_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
3126
- $m_selectors = array(
3127
- " .uagb-timeline-desc-content" => array(
3128
- "font-size" => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
3129
- 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
3130
- ),
3131
- ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3132
- 'font-size' => $attr['dateFontsizeMobile'].$attr['dateFontsizeType'],
3133
- 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
3134
- ),
3135
- ' .uagb-timeline__date-new' => array(
3136
- 'font-size' => $attr['dateFontsizeMobile'].$attr['dateFontsizeType'],
3137
- 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
3138
- ),
3139
- ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3140
- 'margin-left' => 0,
3141
- 'margin-right' => 0,
3142
- ),
3143
- ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
3144
- 'margin-left' => $attr['horizontalSpace'].'px',
3145
- ),
3146
- ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3147
- 'margin-left' => $attr['horizontalSpace'].'px',
3148
- ),
3149
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading" => array(
3150
- "text-align" => 'left',
3151
- ),
3152
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content" => array(
3153
- "text-align" => 'left',
3154
- ),
3155
- ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new' => array(
3156
- 'text-align' => 'left'
3157
- ),
3158
- ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner' => array(
3159
- 'text-align' => 'left'
3160
- ),
3161
- ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3162
- 'text-align'=> 'left',
3163
- ),
3164
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3165
- "border-right-color" => $attr['backgroundColor'],
3166
- ),
3167
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line" => array(
3168
- 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3169
- ),
3170
- );
3171
- return $m_selectors;
3172
- // @codingStandardsIgnoreEnd
3173
- }
3174
-
3175
- /**
3176
- * Get Contact Form 7 CSS
3177
- *
3178
- * @param array $attr The block attributes.
3179
- * @param string $id The selector ID.
3180
- * @since 1.10.0
3181
- */
3182
- public static function get_cf7_styler_css( $attr, $id ) {
3183
- $defaults = UAGB_Helper::$block_list['uagb/cf7-styler']['attributes'];
3184
-
3185
- $attr = array_merge( $defaults, (array) $attr );
3186
-
3187
- $selectors = array(
3188
- ' .wpcf7 .wpcf7-form' => array(
3189
- 'text-align' => $attr['align'],
3190
- ),
3191
- ' .wpcf7 form.wpcf7-form:not(input)' => array(
3192
- 'color' => $attr['fieldLabelColor'],
3193
- ),
3194
- ' .wpcf7 input:not([type=submit])' => array(
3195
- 'background-color' => $attr['fieldBgColor'],
3196
- 'color' => $attr['fieldInputColor'],
3197
- 'border-style' => $attr['fieldBorderStyle'],
3198
- 'border-color' => $attr['fieldBorderColor'],
3199
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3200
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
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
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3206
- 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3207
- 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3208
- 'font-family' => $attr['inputFontFamily'],
3209
- 'font-weight' => $attr['inputFontWeight'],
3210
- 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3211
- 'text-align' => $attr['align'],
3212
- ),
3213
- ' .wpcf7 select' => array(
3214
- 'background-color' => $attr['fieldBgColor'],
3215
- 'color' => $attr['fieldLabelColor'],
3216
- 'border-style' => $attr['fieldBorderStyle'],
3217
- 'border-color' => $attr['fieldBorderColor'],
3218
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3219
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3220
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3221
- 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3222
- 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3223
- 'font-family' => $attr['inputFontFamily'],
3224
- 'font-weight' => $attr['inputFontWeight'],
3225
- 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3226
- 'text-align' => $attr['align'],
3227
- ),
3228
- ' .wpcf7 select.wpcf7-form-control.wpcf7-select:not([multiple="multiple"])' => array(
3229
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3230
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3231
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3232
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3233
- ),
3234
- ' .wpcf7 select.wpcf7-select[multiple="multiple"] option' => array(
3235
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3236
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3237
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3238
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3239
- ),
3240
- ' .wpcf7 textarea' => array(
3241
- 'background-color' => $attr['fieldBgColor'],
3242
- 'color' => $attr['fieldInputColor'],
3243
- 'border-color' => $attr['fieldBorderColor'],
3244
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3245
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3246
- 'border-style' => $attr['fieldBorderStyle'],
3247
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3248
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3249
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3250
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3251
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3252
- 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3253
- 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3254
- 'font-family' => $attr['inputFontFamily'],
3255
- 'font-weight' => $attr['inputFontWeight'],
3256
- 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3257
- 'text-align' => $attr['align'],
3258
- ),
3259
- ' .wpcf7 textarea::placeholder' => array(
3260
- 'color' => $attr['fieldInputColor'],
3261
- 'text-align' => $attr['align'],
3262
- ),
3263
- ' .wpcf7 input::placeholder' => array(
3264
- 'color' => $attr['fieldInputColor'],
3265
- 'text-align' => $attr['align'],
3266
- ),
3267
- ' .wpcf7 form label' => array(
3268
- 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3269
- 'font-family' => $attr['labelFontFamily'],
3270
- 'font-weight' => $attr['labelFontWeight'],
3271
- 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3272
- ),
3273
- ' .wpcf7 form .wpcf7-list-item-label' => array(
3274
- 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3275
- 'font-family' => $attr['labelFontFamily'],
3276
- 'font-weight' => $attr['labelFontWeight'],
3277
- 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3278
- ),
3279
-
3280
- // Focus.
3281
- ' .wpcf7 form input:not([type=submit]):focus' => array(
3282
- 'border-color' => $attr['fieldBorderFocusColor'],
3283
- ),
3284
- ' .wpcf7 form select:focus' => array(
3285
- 'border-color' => $attr['fieldBorderFocusColor'],
3286
- ),
3287
- ' .wpcf7 textarea:focus' => array(
3288
- 'border-color' => $attr['fieldBorderFocusColor'],
3289
- ),
3290
-
3291
- // Submit button.
3292
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3293
- 'color' => $attr['buttonTextColor'],
3294
- 'background-color' => $attr['buttonBgColor'],
3295
- 'font-size' => $attr['buttonFontSize'] . $attr['buttonFontSizeType'],
3296
- 'font-family' => $attr['buttonFontFamily'],
3297
- 'font-weight' => $attr['buttonFontWeight'],
3298
- 'line-height' => $attr['buttonLineHeight'] . $attr['buttonLineHeightType'],
3299
- 'border-color' => $attr['buttonBorderColor'],
3300
- 'border-style' => $attr['buttonBorderStyle'],
3301
- 'border-width' => $attr['buttonBorderWidth'] . 'px',
3302
- 'border-radius' => $attr['buttonBorderRadius'] . $attr['buttonBorderRadiusType'],
3303
- 'padding-left' => $attr['buttonHrPadding'] . 'px',
3304
- 'padding-right' => $attr['buttonHrPadding'] . 'px',
3305
- 'padding-top' => $attr['buttonVrPadding'] . 'px',
3306
- 'padding-bottom' => $attr['buttonVrPadding'] . 'px',
3307
- ),
3308
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover' => array(
3309
- 'color' => $attr['buttonTextHoverColor'],
3310
- 'background-color' => $attr['buttonBgHoverColor'],
3311
- 'border-color' => $attr['buttonBorderHoverColor'],
3312
- ),
3313
-
3314
- // Check box Radio.
3315
- ' .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3316
- 'background-color' => $attr['fieldBgColor'],
3317
- 'color' => $attr['fieldInputColor'],
3318
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3319
- 'border-color' => $attr['fieldBorderFocusColor'],
3320
- ),
3321
- ' .wpcf7 .wpcf7-checkbox input[type="checkbox"] + 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
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3330
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3331
- ),
3332
- ' .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3333
- 'background-color' => $attr['fieldBgColor'],
3334
- 'color' => $attr['fieldInputColor'],
3335
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3336
- 'border-color' => $attr['fieldBorderFocusColor'],
3337
- ),
3338
- ' .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3339
- 'background-color' => $attr['fieldBgColor'],
3340
- 'color' => $attr['fieldInputColor'],
3341
- 'height' => $attr['fieldVrPadding'] . 'px',
3342
- 'width' => $attr['fieldVrPadding'] . 'px',
3343
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3344
- 'border-color' => $attr['fieldBorderColor'],
3345
- 'border-style' => $attr['fieldBorderStyle'],
3346
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3347
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3348
- ),
3349
- ' .wpcf7 .wpcf7-radio input[type="radio"] + span:before' => array(
3350
- 'background-color' => $attr['fieldBgColor'],
3351
- 'color' => $attr['fieldInputColor'],
3352
- 'height' => $attr['fieldVrPadding'] . 'px',
3353
- 'width' => $attr['fieldVrPadding'] . 'px',
3354
- 'border-style' => $attr['fieldBorderStyle'],
3355
- 'border-color' => $attr['fieldBorderColor'],
3356
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3357
- ),
3358
- ' .wpcf7 .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3359
- 'border-color' => $attr['fieldBorderFocusColor'],
3360
- ),
3361
-
3362
- // Underline border.
3363
- ' .uagb-cf7-styler__field-style-underline .wpcf7 input:not([type=submit])' => array(
3364
- 'border-style' => 'none',
3365
- 'border-bottom-color' => $attr['fieldBorderColor'],
3366
- 'border-bottom-style' => 'solid',
3367
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3368
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3369
- ),
3370
- ' .uagb-cf7-styler__field-style-underline textarea' => array(
3371
- 'border-style' => 'none',
3372
- 'border-bottom-color' => $attr['fieldBorderColor'],
3373
- 'border-bottom-style' => 'solid',
3374
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3375
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3376
- ),
3377
- ' .uagb-cf7-styler__field-style-underline select' => array(
3378
- 'border-style' => 'none',
3379
- 'border-bottom-color' => $attr['fieldBorderColor'],
3380
- 'border-bottom-style' => 'solid',
3381
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3382
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3383
- ),
3384
- ' .uagb-cf7-styler__field-style-underline textarea' => array(
3385
- 'border-style' => 'none',
3386
- 'border-bottom-color' => $attr['fieldBorderColor'],
3387
- 'border-bottom-style' => 'solid',
3388
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3389
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3390
- ),
3391
- ' .uagb-cf7-styler__field-style-underline .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3392
- 'border-style' => 'solid',
3393
- ),
3394
- ' .uagb-cf7-styler__field-style-underline .wpcf7 input[type="radio"] + span:before' => array(
3395
- 'border-style' => 'solid',
3396
- ),
3397
- ' .uagb-cf7-styler__field-style-underline .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3398
- 'border-style' => 'solid',
3399
- ),
3400
- ' .uagb-cf7-styler__field-style-box .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3401
- 'border-style' => $attr['fieldBorderStyle'],
3402
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3403
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3404
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3405
- ),
3406
- ' .uagb-cf7-styler__field-style-box .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3407
- 'border-style' => $attr['fieldBorderStyle'],
3408
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3409
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3410
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3411
- ),
3412
- ' .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3413
- 'background-color' => $attr['fieldInputColor'],
3414
- ),
3415
-
3416
- // Override check box.
3417
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3418
- 'background-color' => $attr['radioCheckBgColor'],
3419
- 'color' => $attr['radioCheckSelectColor'],
3420
- 'height' => $attr['radioCheckSize'] . 'px',
3421
- 'width' => $attr['radioCheckSize'] . 'px',
3422
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3423
- 'border-color' => $attr['radioCheckBorderColor'],
3424
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3425
- 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3426
- ),
3427
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3428
- 'border-color' => $attr['fieldBorderFocusColor'],
3429
- ),
3430
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3431
- 'background-color' => $attr['radioCheckBgColor'],
3432
- 'color' => $attr['radioCheckSelectColor'],
3433
- 'height' => $attr['radioCheckSize'] . 'px',
3434
- 'width' => $attr['radioCheckSize'] . 'px',
3435
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3436
- 'border-color' => $attr['radioCheckBorderColor'],
3437
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3438
- 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3439
- ),
3440
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3441
- 'border-color' => $attr['fieldBorderFocusColor'],
3442
- ),
3443
-
3444
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 input[type="radio"] + span:before' => array(
3445
- 'background-color' => $attr['radioCheckBgColor'],
3446
- 'color' => $attr['radioCheckSelectColor'],
3447
- 'height' => $attr['radioCheckSize'] . 'px',
3448
- 'width' => $attr['radioCheckSize'] . 'px',
3449
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3450
- 'border-color' => $attr['radioCheckBorderColor'],
3451
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3452
- ),
3453
- ' .uagb-cf7-styler__check-style-enabled .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3454
- 'background-color' => $attr['radioCheckSelectColor'],
3455
- ),
3456
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3457
- 'font-size' => $attr['radioCheckFontSize'] . $attr['radioCheckFontSizeType'],
3458
- 'font-family' => $attr['radioCheckFontFamily'],
3459
- 'font-weight' => $attr['radioCheckFontWeight'],
3460
- 'line-height' => $attr['radioCheckLineHeight'] . $attr['radioCheckLineHeightType'],
3461
- 'color' => $attr['radioCheckLableColor'],
3462
- ),
3463
- ' span.wpcf7-not-valid-tip' => array(
3464
- 'color' => $attr['validationMsgColor'],
3465
- 'font-size' => $attr['validationMsgFontSize'] . $attr['validationMsgFontSizeType'],
3466
- 'font-family' => $attr['validationMsgFontFamily'],
3467
- 'font-weight' => $attr['validationMsgFontWeight'],
3468
- 'line-height' => $attr['validationMsgLineHeight'] . $attr['validationMsgLineHeightType'],
3469
- ),
3470
- ' .uagb-cf7-styler__highlight-border input.wpcf7-form-control.wpcf7-not-valid' => array(
3471
- 'border-color' => $attr['highlightBorderColor'],
3472
- ),
3473
- ' .uagb-cf7-styler__highlight-border .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item-label:before' => array(
3474
- 'border-color' => $attr['highlightBorderColor'] . '!important',
3475
- ),
3476
- ' .uagb-cf7-styler__highlight-style-bottom_right .wpcf7-not-valid-tip' => array(
3477
- 'background-color' => $attr['validationMsgBgColor'],
3478
- ),
3479
- ' .wpcf7-response-output' => array(
3480
- 'border-width' => $attr['msgBorderSize'] . 'px',
3481
- 'border-radius' => $attr['msgBorderRadius'] . $attr['msgBorderRadiusType'],
3482
- 'font-size' => $attr['msgFontSize'] . $attr['msgFontSizeType'],
3483
- 'font-family' => $attr['msgFontFamily'],
3484
- 'font-weight' => $attr['msgFontWeight'],
3485
- 'line-height' => $attr['msgLineHeight'] . $attr['msgLineHeightType'],
3486
- 'padding-top' => $attr['msgVrPadding'] . 'px',
3487
- 'padding-bottom' => $attr['msgVrPadding'] . 'px',
3488
- 'padding-left' => $attr['msgHrPadding'] . 'px',
3489
- 'padding-right' => $attr['msgHrPadding'] . 'px',
3490
- ),
3491
- ' .wpcf7-response-output.wpcf7-validation-errors' => array(
3492
- 'background-color' => $attr['errorMsgBgColor'],
3493
- 'border-color' => $attr['errorMsgBorderColor'],
3494
- 'color' => $attr['errorMsgColor'],
3495
- ),
3496
- ' .wpcf7-response-output.wpcf7-validation- success' => array(
3497
- 'background-color' => $attr['successMsgBgColor'],
3498
- 'border-color' => $attr['successMsgBorderColor'],
3499
- 'color' => $attr['successMsgColor'],
3500
- ),
3501
-
3502
- );
3503
-
3504
- $t_selectors = array(
3505
- ' .wpcf7 form.wpcf7-form:not(input)' => array(
3506
- 'color' => $attr['fieldLabelColor'],
3507
- ),
3508
- ' .wpcf7 input:not([type=submit])' => array(
3509
- 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
3510
- 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
3511
- ),
3512
- ' .wpcf7 select' => array(
3513
- 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3514
- 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3515
- ),
3516
- ' .wpcf7 textarea' => array(
3517
- 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
3518
- 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
3519
- ),
3520
- ' .wpcf7 form label' => array(
3521
- 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3522
- 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3523
- ),
3524
-
3525
- ' .wpcf7 form .wpcf7-list-item-label' => array(
3526
- 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3527
- 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3528
- ),
3529
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3530
- 'font-size' => $attr['buttonFontSizeTablet'] . $attr['buttonFontSizeType'],
3531
- 'line-height' => $attr['buttonLineHeightTablet'] . $attr['buttonLineHeightType'],
3532
- ),
3533
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3534
- 'font-size' => $attr['radioCheckFontSizeTablet'] . $attr['radioCheckFontSizeType'],
3535
- 'line-height' => $attr['radioCheckLineHeightTablet'] . $attr['radioCheckLineHeightType'],
3536
- ),
3537
- ' span.wpcf7-not-valid-tip' => array(
3538
- 'font-size' => $attr['validationMsgFontSizeTablet'] . $attr['validationMsgFontSizeType'],
3539
- 'line-height' => $attr['validationMsgLineHeightTablet'] . $attr['validationMsgLineHeightType'],
3540
- ),
3541
- ' .wpcf7-response-output' => array(
3542
- 'font-size' => $attr['msgFontSizeTablet'] . $attr['msgFontSizeType'],
3543
- 'line-height' => $attr['msgLineHeightTablet'] . $attr['msgLineHeightType'],
3544
- ),
3545
- );
3546
-
3547
- $m_selectors = array(
3548
- ' .wpcf7 input:not([type=submit])' => array(
3549
- 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
3550
- 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
3551
- ),
3552
- ' .wpcf7 select' => array(
3553
- 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3554
- 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3555
- ),
3556
- ' .wpcf7 textarea' => array(
3557
- 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
3558
- 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
3559
- ),
3560
- ' .wpcf7 form label' => array(
3561
- 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3562
- 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3563
- ),
3564
-
3565
- ' .wpcf7 form .wpcf7-list-item-label' => array(
3566
- 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3567
- 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3568
- ),
3569
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3570
- 'font-size' => $attr['buttonFontSizeMobile'] . $attr['buttonFontSizeType'],
3571
- 'line-height' => $attr['buttonLineHeightMobile'] . $attr['buttonLineHeightType'],
3572
- ),
3573
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3574
- 'font-size' => $attr['radioCheckFontSizeMobile'] . $attr['radioCheckFontSizeType'],
3575
- 'line-height' => $attr['radioCheckLineHeightMobile'] . $attr['radioCheckLineHeightType'],
3576
- ),
3577
- ' span.wpcf7-not-valid-tip' => array(
3578
- 'font-size' => $attr['validationMsgFontSizeMobile'] . $attr['validationMsgFontSizeType'],
3579
- 'line-height' => $attr['validationMsgLineHeightMobile'] . $attr['validationMsgLineHeightType'],
3580
- ),
3581
- ' .wpcf7-response-output' => array(
3582
- 'font-size' => $attr['msgFontSizeMobile'] . $attr['msgFontSizeType'],
3583
- 'line-height' => $attr['msgLineHeightMobile'] . $attr['msgLineHeightType'],
3584
- ),
3585
- );
3586
-
3587
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cf7-styler-' . $id );
3588
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-cf7-styler-' . $id, 'tablet' );
3589
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-cf7-styler-' . $id, 'mobile' );
3590
-
3591
- return $desktop . $tablet . $mobile;
3592
- }
3593
-
3594
-
3595
-
3596
- /**
3597
- * Get Gravity Form Styler CSS
3598
- *
3599
- * @param array $attr The block attributes.
3600
- * @param string $id The selector ID.
3601
- * @since 1.12.0
3602
- */
3603
- public static function get_gf_styler_css( $attr, $id ) {
3604
- $defaults = UAGB_Helper::$block_list['uagb/gf-styler']['attributes'];
3605
-
3606
- $attr = array_merge( $defaults, (array) $attr );
3607
-
3608
- $attr['msgVrPadding'] = ( '' === $attr['msgVrPadding'] ) ? '0' : $attr['msgVrPadding'];
3609
- $attr['msgHrPadding'] = ( '' === $attr['msgHrPadding'] ) ? '0' : $attr['msgHrPadding'];
3610
- $attr['textAreaHeight'] = ( 'auto' === $attr['msgHrPadding'] ) ? $attr['textAreaHeight'] : $attr['textAreaHeight'] . 'px';
3611
-
3612
- $selectors = array(
3613
- ' .gform_wrapper form' => array(
3614
- 'text-align' => $attr['align'],
3615
- ),
3616
- ' .wp-block-uagb-gf-styler form:not(input)' => array(
3617
- 'color' => $attr['fieldLabelColor'],
3618
- ),
3619
- ' .gform_heading' => array(
3620
- 'text-align' => $attr['titleDescAlignment'],
3621
- ),
3622
- ' input:not([type=submit])' => array(
3623
- 'background-color' => $attr['fieldBgColor'],
3624
- 'color' => $attr['fieldInputColor'],
3625
- 'border-style' => $attr['fieldBorderStyle'],
3626
- 'border-color' => $attr['fieldBorderColor'],
3627
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3628
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3629
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3630
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3631
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3632
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3633
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3634
- 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3635
- 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3636
- 'font-family' => $attr['inputFontFamily'],
3637
- 'font-weight' => $attr['inputFontWeight'],
3638
- 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3639
- 'text-align' => $attr['align'],
3640
- ),
3641
- ' select' => array(
3642
- 'background-color' => $attr['fieldBgColor'],
3643
- 'border-style' => $attr['fieldBorderStyle'],
3644
- 'border-color' => $attr['fieldBorderColor'],
3645
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3646
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3647
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3648
- 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3649
- 'color' => $attr['fieldInputColor'],
3650
- 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3651
- 'font-family' => $attr['inputFontFamily'],
3652
- 'font-weight' => $attr['inputFontWeight'],
3653
- 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3654
- 'text-align' => $attr['align'],
3655
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3656
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3657
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3658
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3659
- ),
3660
- ' .chosen-container-single span' => array(
3661
- 'background-color' => $attr['fieldBgColor'],
3662
- 'border-style' => $attr['fieldBorderStyle'],
3663
- 'border-color' => $attr['fieldBorderColor'],
3664
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3665
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3666
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3667
- 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3668
- 'color' => $attr['fieldInputColor'],
3669
- 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3670
- 'font-family' => $attr['inputFontFamily'],
3671
- 'font-weight' => $attr['inputFontWeight'],
3672
- 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3673
- 'text-align' => $attr['align'],
3674
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3675
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3676
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3677
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3678
- ),
3679
- ' .chosen-container-single.chosen-container-active .chosen-single span' => array(
3680
- 'margin-bottom' => 0,
3681
- ),
3682
- ' select.wpgf-form-control.wpgf-select:not([multiple="multiple"])' => array(
3683
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3684
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3685
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3686
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3687
- ),
3688
- ' select.wpgf-select[multiple="multiple"] option' => array(
3689
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3690
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3691
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3692
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3693
- ),
3694
- ' textarea' => array(
3695
- 'background-color' => $attr['fieldBgColor'],
3696
- 'color' => $attr['fieldInputColor'],
3697
- 'border-color' => $attr['fieldBorderColor'],
3698
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3699
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3700
- 'border-style' => $attr['fieldBorderStyle'],
3701
- 'padding-left' => $attr['fieldHrPadding'] . 'px',
3702
- 'padding-right' => $attr['fieldHrPadding'] . 'px',
3703
- 'padding-top' => $attr['fieldVrPadding'] . 'px',
3704
- 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3705
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3706
- 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3707
- 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3708
- 'font-family' => $attr['inputFontFamily'],
3709
- 'font-weight' => $attr['inputFontWeight'],
3710
- 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3711
- 'text-align' => $attr['align'],
3712
- 'height' => $attr['textAreaHeight'],
3713
- ),
3714
- ' textarea::placeholder' => array(
3715
- 'color' => $attr['fieldInputColor'],
3716
- 'text-align' => $attr['align'],
3717
- ),
3718
- ' input::placeholder' => array(
3719
- 'color' => $attr['fieldInputColor'],
3720
- 'text-align' => $attr['align'],
3721
- ),
3722
- ' form label' => array(
3723
- 'color' => $attr['fieldLabelColor'],
3724
- 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3725
- 'font-family' => $attr['labelFontFamily'],
3726
- 'font-weight' => $attr['labelFontWeight'],
3727
- 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3728
- ),
3729
- ' form .gfield_radio label' => array(
3730
- 'color' => $attr['fieldLabelColor'],
3731
- 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3732
- 'font-family' => $attr['labelFontFamily'],
3733
- 'font-weight' => $attr['labelFontWeight'],
3734
- 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3735
- ),
3736
- ' form .gfield_checkbox label' => array(
3737
- 'color' => $attr['fieldLabelColor'],
3738
- 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3739
- 'font-family' => $attr['labelFontFamily'],
3740
- 'font-weight' => $attr['labelFontWeight'],
3741
- 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3742
- ),
3743
- ' .wpgf .gfield_checkbox input[type="checkbox"] + label, .wpgf .gfield_checkbox input[type="checkbox"] + label' => array(
3744
- 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3745
- ),
3746
-
3747
- // Focus.
3748
- ' form input:not([type=submit]):focus' => array(
3749
- 'border-color' => $attr['fieldBorderFocusColor'],
3750
- ),
3751
- ' form select:focus' => array(
3752
- 'border-color' => $attr['fieldBorderFocusColor'],
3753
- ),
3754
- ' textarea:focus' => array(
3755
- 'border-color' => $attr['fieldBorderFocusColor'],
3756
- ),
3757
-
3758
- // Submit button.
3759
- ' input.gform_button' => array(
3760
- 'color' => $attr['buttonTextColor'],
3761
- 'background-color' => $attr['buttonBgColor'],
3762
- 'font-size' => $attr['buttonFontSize'] . $attr['buttonFontSizeType'],
3763
- 'font-family' => $attr['buttonFontFamily'],
3764
- 'font-weight' => $attr['buttonFontWeight'],
3765
- 'line-height' => $attr['buttonLineHeight'] . $attr['buttonLineHeightType'],
3766
- 'border-color' => $attr['buttonBorderColor'],
3767
- 'border-style' => $attr['buttonBorderStyle'],
3768
- 'border-width' => $attr['buttonBorderWidth'] . 'px',
3769
- 'border-radius' => $attr['buttonBorderRadius'] . $attr['buttonBorderRadiusType'],
3770
- 'padding-left' => $attr['buttonHrPadding'] . 'px',
3771
- 'padding-right' => $attr['buttonHrPadding'] . 'px',
3772
- 'padding-top' => $attr['buttonVrPadding'] . 'px',
3773
- 'padding-bottom' => $attr['buttonVrPadding'] . 'px',
3774
- ),
3775
- ' input.gform_button:hover' => array(
3776
- 'color' => $attr['buttonTextHoverColor'],
3777
- 'background-color' => $attr['buttonBgHoverColor'],
3778
- 'border-color' => $attr['buttonBorderHoverColor'],
3779
- ),
3780
-
3781
- // Check box Radio.
3782
- ' .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
3783
- 'background-color' => $attr['fieldBgColor'],
3784
- 'color' => $attr['fieldInputColor'],
3785
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3786
- 'border-color' => $attr['fieldBorderFocusColor'],
3787
- ),
3788
- ' .gfield_checkbox input[type="checkbox"] + label:before' => array(
3789
- 'background-color' => $attr['fieldBgColor'],
3790
- 'color' => $attr['fieldInputColor'],
3791
- 'height' => $attr['fieldVrPadding'] . 'px',
3792
- 'width' => $attr['fieldVrPadding'] . 'px',
3793
- 'border-style' => $attr['fieldBorderStyle'],
3794
- 'border-color' => $attr['fieldBorderColor'],
3795
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3796
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3797
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3798
- ),
3799
- ' input[type="checkbox"]:checked + label:before' => array(
3800
- 'background-color' => $attr['fieldBgColor'],
3801
- 'color' => $attr['fieldInputColor'],
3802
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3803
- 'border-color' => $attr['fieldBorderFocusColor'],
3804
- ),
3805
- ' input[type="checkbox"] + label:before' => array(
3806
- 'background-color' => $attr['fieldBgColor'],
3807
- 'color' => $attr['fieldInputColor'],
3808
- 'height' => $attr['fieldVrPadding'] . 'px',
3809
- 'width' => $attr['fieldVrPadding'] . 'px',
3810
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3811
- 'border-color' => $attr['fieldBorderColor'],
3812
- 'border-style' => $attr['fieldBorderStyle'],
3813
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3814
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3815
- ),
3816
- ' .gfield_radio input[type="radio"] + label:before' => array(
3817
- 'background-color' => $attr['fieldBgColor'],
3818
- 'color' => $attr['fieldInputColor'],
3819
- 'height' => $attr['fieldVrPadding'] . 'px',
3820
- 'width' => $attr['fieldVrPadding'] . 'px',
3821
- 'border-style' => $attr['fieldBorderStyle'],
3822
- 'border-color' => $attr['fieldBorderColor'],
3823
- 'border-width' => $attr['fieldBorderWidth'] . 'px',
3824
- ),
3825
- ' .gfield_radio input[type="radio"]:checked + label:before' => array(
3826
- 'border-color' => $attr['fieldBorderFocusColor'],
3827
- ),
3828
-
3829
- // Underline border.
3830
- ' .uagb-gf-styler__field-style-underline input:not([type=submit])' => array(
3831
- 'border-style' => 'none',
3832
- 'border-bottom-color' => $attr['fieldBorderColor'],
3833
- 'border-bottom-style' => 'solid',
3834
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3835
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3836
- ),
3837
- ' .uagb-gf-styler__field-style-underline textarea' => array(
3838
- 'border-style' => 'none',
3839
- 'border-bottom-color' => $attr['fieldBorderColor'],
3840
- 'border-bottom-style' => 'solid',
3841
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3842
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3843
- ),
3844
- ' .uagb-gf-styler__field-style-underline select' => array(
3845
- 'border-style' => 'none',
3846
- 'border-bottom-color' => $attr['fieldBorderColor'],
3847
- 'border-bottom-style' => 'solid',
3848
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3849
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3850
- ),
3851
- ' .uagb-gf-styler__field-style-underline textarea' => array(
3852
- 'border-style' => 'none',
3853
- 'border-bottom-color' => $attr['fieldBorderColor'],
3854
- 'border-bottom-style' => 'solid',
3855
- 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3856
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3857
- ),
3858
- ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
3859
- 'border-style' => 'solid',
3860
- ),
3861
- ' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
3862
- 'border-style' => 'solid',
3863
- ),
3864
- ' .uagb-gf-styler__field-style-box .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
3865
- 'border-style' => 'solid',
3866
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3867
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3868
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3869
- ),
3870
- ' .uagb-gf-styler__field-style-box input[type="checkbox"]:checked + label:before' => array(
3871
- 'border-style' => 'solid',
3872
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3873
- 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3874
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3875
- ),
3876
- ' .gfield_radio input[type="radio"]:checked + label:before' => array(
3877
- 'background-color' => $attr['fieldInputColor'],
3878
- ),
3879
-
3880
- // Override check box.
3881
- ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
3882
- 'background-color' => $attr['radioCheckBgColor'],
3883
- 'color' => $attr['radioCheckSelectColor'],
3884
- 'height' => $attr['radioCheckSize'] . 'px',
3885
- 'width' => $attr['radioCheckSize'] . 'px',
3886
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px * 1.8 )',
3887
- 'border-color' => $attr['radioCheckBorderColor'],
3888
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3889
- 'border-style' => 'solid',
3890
- 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3891
- ),
3892
- ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
3893
- 'border-color' => $attr['fieldBorderFocusColor'],
3894
- ),
3895
- ' .uagb-gf-styler__check-style-enabled input[type="checkbox"] + label:before' => array(
3896
- 'background-color' => $attr['radioCheckBgColor'],
3897
- 'color' => $attr['radioCheckSelectColor'],
3898
- 'height' => $attr['radioCheckSize'] . 'px',
3899
- 'width' => $attr['radioCheckSize'] . 'px',
3900
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px * 1.8 )',
3901
- 'border-color' => $attr['radioCheckBorderColor'],
3902
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3903
- 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3904
- ),
3905
- ' .uagb-gf-styler__check-style-enabled input[type="checkbox"]:checked + label:before' => array(
3906
- 'border-color' => $attr['fieldBorderFocusColor'],
3907
- ),
3908
-
3909
- ' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
3910
- 'background-color' => $attr['radioCheckBgColor'],
3911
- 'color' => $attr['radioCheckSelectColor'],
3912
- 'height' => $attr['radioCheckSize'] . 'px',
3913
- 'width' => $attr['radioCheckSize'] . 'px',
3914
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3915
- 'border-color' => $attr['radioCheckBorderColor'],
3916
- 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3917
- ),
3918
- ' .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]:checked + label:before' => array(
3919
- 'background-color' => $attr['radioCheckSelectColor'],
3920
- ),
3921
- ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
3922
- 'font-size' => $attr['radioCheckFontSize'] . $attr['radioCheckFontSizeType'],
3923
- 'font-family' => $attr['radioCheckFontFamily'],
3924
- 'font-weight' => $attr['radioCheckFontWeight'],
3925
- 'line-height' => $attr['radioCheckLineHeight'] . $attr['radioCheckLineHeightType'],
3926
- 'color' => $attr['radioCheckLableColor'],
3927
- ),
3928
- ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
3929
- 'font-size' => $attr['radioCheckFontSize'] . $attr['radioCheckFontSizeType'],
3930
- 'font-family' => $attr['radioCheckFontFamily'],
3931
- 'font-weight' => $attr['radioCheckFontWeight'],
3932
- 'line-height' => $attr['radioCheckLineHeight'] . $attr['radioCheckLineHeightType'],
3933
- 'color' => $attr['radioCheckLableColor'],
3934
- ),
3935
- // Validation Errors.
3936
- ' .gform_wrapper .gfield_description.validation_message' => array(
3937
- 'color' => $attr['validationMsgColor'],
3938
- ),
3939
- ' .gform_wrapper .validation_message' => array(
3940
- 'font-size' => $attr['validationMsgFontSize'] . $attr['validationMsgFontSizeType'],
3941
- 'font-family' => $attr['validationMsgFontFamily'],
3942
- 'font-weight' => $attr['validationMsgFontWeight'],
3943
- 'line-height' => $attr['validationMsgLineHeight'] . $attr['validationMsgLineHeightType'],
3944
- ),
3945
- ' .uagb-gf-styler__error-yes .gform_wrapper .gfield.gfield_error' => array(
3946
- 'background-color' => $attr['validationMsgBgColor'],
3947
- ),
3948
-
3949
- ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input:not([type="submit"]):not([type="button"]):not([type="image"])' => array(
3950
- 'border-color' => $attr['highlightBorderColor'],
3951
- ),
3952
-
3953
- ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container select' => array(
3954
- 'border-color' => $attr['highlightBorderColor'],
3955
- ),
3956
-
3957
- ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container .chosen-single' => array(
3958
- 'border-color' => $attr['highlightBorderColor'],
3959
- ),
3960
-
3961
- ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container textarea' => array(
3962
- 'border-color' => $attr['highlightBorderColor'],
3963
- ),
3964
-
3965
- ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error' => array(
3966
- 'border-color' => $attr['highlightBorderColor'],
3967
- ),
3968
-
3969
- ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning' => array(
3970
- 'border-color' => $attr['highlightBorderColor'],
3971
- ),
3972
-
3973
- ' .uagb-gf-styler__error-yes li.gfield_error .gfield_checkbox input[type="checkbox"] + label:before' => array(
3974
- 'border-color' => $attr['highlightBorderColor'],
3975
- ),
3976
-
3977
- ' .uagb-gf-styler__error-yes li.gfield_error .ginput_container_consent input[type="checkbox"] + label:before' => array(
3978
- 'border-color' => $attr['highlightBorderColor'],
3979
- ),
3980
-
3981
- ' .uagb-gf-styler__error-yes li.gfield_error .gfield_radio input[type="radio"] + label:before' => array(
3982
- 'border-color' => $attr['highlightBorderColor'],
3983
- ),
3984
-
3985
- ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
3986
- 'border-color' => $attr['fieldBorderWidth'] . 'px ' . $attr['fieldBorderStyle'] . ' ' . $attr['fieldBorderColor'] . '!important',
3987
- ),
3988
-
3989
- ' .uael-gf-style-underline.uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
3990
- 'border-width' => $attr['fieldBorderWidth'] . 'px' . '!important',
3991
- 'border-style' => 'solid' . '!important',
3992
- 'border-color' => $attr['fieldBorderColor'] . '!important',
3993
- ),
3994
-
3995
- ' .gform_wrapper div.validation_error' => array(
3996
- 'color' => $attr['errorMsgColor'],
3997
- 'background-color' => $attr['errorMsgBgColor'],
3998
- 'border-color' => $attr['errorMsgBorderColor'],
3999
- 'border-style' => 'solid',
4000
- 'border-width' => $attr['msgBorderSize'] . 'px',
4001
- 'border-radius' => $attr['msgBorderRadius'] . $attr['msgBorderRadiusType'],
4002
- 'padding' => $attr['msgVrPadding'] . 'px ' . $attr['msgHrPadding'] . 'px',
4003
- 'font-size' => $attr['msgFontSize'] . $attr['msgFontSizeType'],
4004
- 'font-family' => $attr['msgFontFamily'],
4005
- 'font-weight' => $attr['msgFontWeight'],
4006
- 'line-height' => $attr['msgLineHeight'] . $attr['msgLineHeightType'],
4007
- ),
4008
-
4009
- ' .gform_confirmation_message' => array(
4010
- 'color' => $attr['successMsgColor'],
4011
- 'font-size' => $attr['successMsgFontSize'] . $attr['successMsgFontSizeType'],
4012
- 'font-family' => $attr['successMsgFontFamily'],
4013
- 'font-weight' => $attr['successMsgFontWeight'],
4014
- 'line-height' => $attr['successMsgLineHeight'] . $attr['successMsgLineHeightType'],
4015
- ),
4016
- );
4017
-
4018
- $t_selectors = array(
4019
- ' form.wpgf-form:not(input)' => array(
4020
- 'color' => $attr['fieldLabelColor'],
4021
- ),
4022
- ' input:not([type=submit])' => array(
4023
- 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
4024
- 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
4025
- ),
4026
- ' textarea' => array(
4027
- 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
4028
- 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
4029
- ),
4030
- ' form label' => array(
4031
- 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
4032
- 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
4033
- ),
4034
-
4035
- ' form .gfield_radio label' => array(
4036
- 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
4037
- 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
4038
- ),
4039
- ' form .gfield_checkbox label' => array(
4040
- 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
4041
- 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
4042
- ),
4043
- ' input.gform_button' => array(
4044
- 'font-size' => $attr['buttonFontSizeTablet'] . $attr['buttonFontSizeType'],
4045
- 'line-height' => $attr['buttonLineHeightTablet'] . $attr['buttonLineHeightType'],
4046
- ),
4047
- ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
4048
- 'font-size' => $attr['radioCheckFontSizeTablet'] . $attr['radioCheckFontSizeType'],
4049
- 'line-height' => $attr['radioCheckLineHeightTablet'] . $attr['radioCheckLineHeightType'],
4050
- ),
4051
- ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
4052
- 'font-size' => $attr['radioCheckFontSizeTablet'] . $attr['radioCheckFontSizeType'],
4053
- 'line-height' => $attr['radioCheckLineHeightTablet'] . $attr['radioCheckLineHeightType'],
4054
- ),
4055
- ' span.wpgf-not-valid-tip' => array(
4056
- 'font-size' => $attr['validationMsgFontSizeTablet'] . $attr['validationMsgFontSizeType'],
4057
- 'line-height' => $attr['validationMsgLineHeightTablet'] . $attr['validationMsgLineHeightType'],
4058
- ),
4059
- ' .wpgf-response-output' => array(
4060
- 'font-size' => $attr['msgFontSizeTablet'] . $attr['msgFontSizeType'],
4061
- 'line-height' => $attr['msgLineHeightTablet'] . $attr['msgLineHeightType'],
4062
- ),
4063
- ' .gform_wrapper .validation_message' => array(
4064
- 'font-size' => $attr['validationMsgFontSizeTablet'] . $attr['validationMsgFontSizeType'],
4065
- 'line-height' => $attr['validationMsgLineHeightTablet'] . $attr['validationMsgLineHeightType'],
4066
- ),
4067
- ' .gform_wrapper div.validation_error' => array(
4068
- 'font-size' => $attr['msgFontSizeTablet'] . $attr['msgFontSizeType'],
4069
- 'line-height' => $attr['msgLineHeightTablet'] . $attr['msgLineHeightType'],
4070
- ),
4071
- ' .gform_confirmation_message' => array(
4072
- 'color' => $attr['successMsgColor'],
4073
- 'font-size' => $attr['successMsgFontSizeTablet'] . $attr['successMsgFontSizeType'],
4074
- 'line-height' => $attr['successMsgLineHeightTablet'] . $attr['successMsgLineHeightType'],
4075
- ),
4076
- );
4077
-
4078
- $m_selectors = array(
4079
- ' input:not([type=submit])' => array(
4080
- 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
4081
- 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
4082
- ),
4083
- ' textarea' => array(
4084
- 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
4085
- 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
4086
- ),
4087
- ' form label' => array(
4088
- 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
4089
- 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
4090
- ),
4091
-
4092
- ' form .gfield_radio label' => array(
4093
- 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
4094
- 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
4095
- ),
4096
- ' form .gfield_checkbox label' => array(
4097
- 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
4098
- 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
4099
- ),
4100
- ' input.gform_button' => array(
4101
- 'font-size' => $attr['buttonFontSizeMobile'] . $attr['buttonFontSizeType'],
4102
- 'line-height' => $attr['buttonLineHeightMobile'] . $attr['buttonLineHeightType'],
4103
- ),
4104
- ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
4105
- 'font-size' => $attr['radioCheckFontSizeMobile'] . $attr['radioCheckFontSizeType'],
4106
- 'line-height' => $attr['radioCheckLineHeightMobile'] . $attr['radioCheckLineHeightType'],
4107
- ),
4108
- ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
4109
- 'font-size' => $attr['radioCheckFontSizeMobile'] . $attr['radioCheckFontSizeType'],
4110
- 'line-height' => $attr['radioCheckLineHeightMobile'] . $attr['radioCheckLineHeightType'],
4111
- ),
4112
- ' span.wpgf-not-valid-tip' => array(
4113
- 'font-size' => $attr['validationMsgFontSizeMobile'] . $attr['validationMsgFontSizeType'],
4114
- 'line-height' => $attr['validationMsgLineHeightMobile'] . $attr['validationMsgLineHeightType'],
4115
- ),
4116
- ' .wpgf-response-output' => array(
4117
- 'font-size' => $attr['msgFontSizeMobile'] . $attr['msgFontSizeType'],
4118
- 'line-height' => $attr['msgLineHeightMobile'] . $attr['msgLineHeightType'],
4119
- ),
4120
- ' .gform_wrapper .validation_message' => array(
4121
- 'font-size' => $attr['validationMsgFontSizeMobile'] . $attr['validationMsgFontSizeType'],
4122
- 'line-height' => $attr['validationMsgLineHeightMobile'] . $attr['validationMsgLineHeightType'],
4123
- ),
4124
- ' .gform_wrapper div.validation_error' => array(
4125
- 'font-size' => $attr['msgFontSizeMobile'] . $attr['msgFontSizeType'],
4126
- 'line-height' => $attr['msgLineHeightMobile'] . $attr['msgLineHeightType'],
4127
- ),
4128
- ' .gform_confirmation_message' => array(
4129
- 'color' => $attr['successMsgColor'],
4130
- 'font-size' => $attr['successMsgFontSizeMobile'] . $attr['successMsgFontSizeType'],
4131
- 'line-height' => $attr['successMsgLineHeightMobile'] . $attr['successMsgLineHeightType'],
4132
- ),
4133
- );
4134
-
4135
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-gf-styler-' . $id );
4136
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-gf-styler-' . $id, 'tablet' );
4137
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-gf-styler-' . $id, 'mobile' );
4138
- return $desktop . $tablet . $mobile;
4139
- }
4140
-
4141
- /*
4142
- * Get Marketing Button Block CSS
4143
- *
4144
- * @since 1.11.0
4145
- * @param array $attr The block attributes.
4146
- * @param string $id The selector ID.
4147
- * @return array The Widget List.
4148
- */
4149
- public static function get_marketing_btn_css( $attr, $id ) { // @codingStandardsIgnoreStart
4150
-
4151
- $defaults = UAGB_Helper::$block_list['uagb/marketing-button']['attributes'];
4152
-
4153
- $attr = array_merge( $defaults, (array) $attr );
4154
-
4155
- $m_selectors = array();
4156
- $t_selectors = array();
4157
-
4158
- $icon_color = ( "" == $attr["iconColor"] ) ? $attr["titleColor"] : $attr["iconColor"];
4159
- $icon_hover_color = ( "" == $attr["iconHoverColor"] ) ? $attr["titleHoverColor"] : $attr["iconHoverColor"];
4160
-
4161
- $selectors = array(
4162
- " .uagb-marketing-btn__title-wrap" => array(
4163
- "margin-bottom" => $attr["titleSpace"] . "px"
4164
- ),
4165
- " .uagb-marketing-btn__title" => array(
4166
- "font-size" => $attr["titleFontSize"] . $attr["titleFontSizeType"],
4167
- "line-height" => $attr["titleLineHeight"] . $attr["titleLineHeightType"],
4168
- "font-family" => $attr["titleFontFamily"],
4169
- "font-weight" => $attr["titleFontWeight"],
4170
- "color" => $attr["titleColor"],
4171
- ),
4172
- " .uagb-marketing-btn__icon-wrap" => array(
4173
- "width" => $attr["iconFontSize"] . $attr["iconFontSizeType"],
4174
- "height" => $attr["iconFontSize"] . $attr["iconFontSizeType"],
4175
- ),
4176
- " .uagb-marketing-btn__icon-wrap svg" => array(
4177
- "fill" => $icon_color
4178
- ),
4179
- " .uagb-marketing-btn__prefix" => array(
4180
- "font-size" => $attr["prefixFontSize"] . $attr["prefixFontSizeType"],
4181
- "line-height" => $attr["prefixLineHeight"] . $attr["prefixLineHeightType"],
4182
- "font-family" => $attr["prefixFontFamily"],
4183
- "font-weight" => $attr["prefixFontWeight"],
4184
- "color" => $attr["prefixColor"],
4185
- ),
4186
- " .uagb-marketing-btn__link:hover .uagb-marketing-btn__title" => array(
4187
- "color" => $attr["titleHoverColor"],
4188
- ),
4189
- " .uagb-marketing-btn__link:hover .uagb-marketing-btn__prefix" => array(
4190
- "color" => $attr["prefixHoverColor"],
4191
- ),
4192
- " .uagb-marketing-btn__link:hover .uagb-marketing-btn__icon-wrap svg" => array(
4193
- "fill" => $icon_hover_color
4194
- ),
4195
- " .uagb-marketing-btn__link" => array(
4196
- "padding-left" => $attr["hPadding"] . "px",
4197
- "padding-right" => $attr["hPadding"] . "px",
4198
- "padding-top" => $attr["vPadding"] . "px",
4199
- "padding-bottom" => $attr["vPadding"] . "px",
4200
- "border-style" => $attr["borderStyle"],
4201
- "border-width" => $attr["borderWidth"] . "px",
4202
- "border-color" => $attr["borderColor"],
4203
- "border-radius" => $attr["borderRadius"] . "px",
4204
- ),
4205
- " .uagb-marketing-btn__link:hover" => array(
4206
- "border-color" => $attr["borderHoverColor"]
4207
- ),
4208
- );
4209
-
4210
- if ( "transparent" == $attr["backgroundType"] ) {
4211
-
4212
- $selectors[" .uagb-marketing-btn__link"]["background"] = "transparent";
4213
-
4214
- } else if ( "color" == $attr["backgroundType"] ) {
4215
-
4216
- $selectors[" .uagb-marketing-btn__link"]["background"] = UAGB_Helper::hex2rgba( $attr["backgroundColor"], $attr['backgroundOpacity'] );
4217
-
4218
- // Hover Background
4219
- $selectors[" .uagb-marketing-btn__link:hover"] = array(
4220
- "background" => UAGB_Helper::hex2rgba( $attr["backgroundHoverColor"], $attr['backgroundHoverOpacity'] ),
4221
- );
4222
-
4223
- } else if ( "gradient" == $attr["backgroundType"] ) {
4224
-
4225
- $selectors[' .uagb-marketing-btn__link']['background-color'] = 'transparent';
4226
-
4227
- if ( 'linear' === $attr['gradientType'] ) {
4228
-
4229
- $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'] . '%)';
4230
- } else {
4231
-
4232
- $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'] . '%)';
4233
- }
4234
- }
4235
-
4236
- $margin_type = ( "after" == $attr["iconPosition"] ) ? "margin-left" : "margin-right";
4237
-
4238
- $selectors[" .uagb-marketing-btn__icon-wrap"][$margin_type] = $attr["iconSpace"] . "px";
4239
-
4240
- $m_selectors = array(
4241
- ' .uagb-marketing-btn__title' => array(
4242
- 'font-size' => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
4243
- 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
4244
- ),
4245
- ' .uagb-marketing-btn__prefix' => array(
4246
- 'font-size' => $attr['prefixFontSizeMobile'] . $attr['prefixFontSizeType'],
4247
- 'line-height' => $attr['prefixLineHeightMobile'] . $attr['prefixLineHeightType'],
4248
- ),
4249
- ' .uagb-marketing-btn__icon-wrap' => array(
4250
- "width" => $attr["iconFontSizeMobile"] . $attr["iconFontSizeType"],
4251
- "height" => $attr["iconFontSizeMobile"] . $attr["iconFontSizeType"],
4252
- ),
4253
-
4254
- );
4255
-
4256
- $t_selectors = array(
4257
- ' .uagb-marketing-btn__title' => array(
4258
- 'font-size' => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
4259
- 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
4260
- ),
4261
- ' .uagb-marketing-btn__prefix' => array(
4262
- 'font-size' => $attr['prefixFontSizeTablet'] . $attr['prefixFontSizeType'],
4263
- 'line-height' => $attr['prefixLineHeightTablet'] . $attr['prefixLineHeightType'],
4264
- ),
4265
- ' .uagb-marketing-btn__icon-wrap' => array(
4266
- "width" => $attr["iconFontSizeTablet"] . $attr["iconFontSizeType"],
4267
- "height" => $attr["iconFontSizeTablet"] . $attr["iconFontSizeType"],
4268
- ),
4269
-
4270
- );
4271
-
4272
- // @codingStandardsIgnoreEnd
4273
-
4274
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-marketing-btn-' . $id );
4275
-
4276
- $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-marketing-btn-' . $id, 'tablet' );
4277
-
4278
- $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-marketing-btn-' . $id, 'mobile' );
4279
-
4280
- return $desktop . $tablet . $mobile;
4281
- }
4282
-
4283
-
4284
- /**
4285
- * Get Testimonial Js
4286
- *
4287
- * @since 1.6.0
4288
- * @param array $attr The block attributes.
4289
- * @param string $id The selector ID.
4290
- */
4291
- public static function get_testimonial_js( $attr, $id ) { // @codingStandardsIgnoreStart.
4292
-
4293
- $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
4294
-
4295
- $attr = array_merge( $defaults, (array) $attr );
4296
-
4297
- $dots = ( "dots" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
4298
- $arrows = ( "arrows" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
4299
-
4300
- $slick_options = [
4301
- 'slidesToShow' => $attr['columns'],
4302
- 'slidesToScroll' => 1,
4303
- 'autoplaySpeed' => $attr['autoplaySpeed'],
4304
- 'autoplay' => $attr['autoplay'],
4305
- 'infinite' => $attr['infiniteLoop'],
4306
- 'pauseOnHover' => $attr['pauseOnHover'],
4307
- 'speed' => $attr['transitionSpeed'],
4308
- 'arrows' => $arrows,
4309
- 'dots' => $dots,
4310
- 'rtl' => false,
4311
- '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>',
4312
- '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>',
4313
- 'responsive' => [
4314
- [
4315
- 'breakpoint' => 1024,
4316
- 'settings' => [
4317
- 'slidesToShow' => $attr['tcolumns'],
4318
- 'slidesToScroll' => 1,
4319
- ],
4320
- ],
4321
- [
4322
- 'breakpoint' => 767,
4323
- 'settings' => [
4324
- 'slidesToShow' => $attr['mcolumns'],
4325
- 'slidesToScroll' => 1,
4326
- ],
4327
- ]
4328
- ]
4329
- ];
4330
-
4331
- $settings = json_encode($slick_options);
4332
- $selector = '#uagb-testimonial-'. $id;
4333
- ?>
4334
- if( jQuery( ".wp-block-uagb-testimonial" ).length > 0 ){
4335
- return true
4336
- } else {
4337
- jQuery( "<?php echo $selector ?>" ).find( ".is-carousel" ).slick( <?php echo $settings ?> );
4338
- }
4339
- <?php
4340
- // @codingStandardsIgnoreEnd.
4341
- }
4342
-
4343
- /**
4344
- * Get Blockquote Js
4345
- *
4346
- * @since 1.8.2
4347
- * @param array $attr The block attributes.
4348
- * @param string $id The selector ID.
4349
- */
4350
- public static function get_blockquote_js( $attr, $id ) {
4351
- // @codingStandardsIgnoreStart.
4352
-
4353
- $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
4354
-
4355
- $attr = array_merge( $defaults, (array) $attr );
4356
-
4357
- $target = $attr['iconTargetUrl'];
4358
-
4359
- $url = " " ;
4360
-
4361
- if( $target == 'current' ){
4362
- global $wp;
4363
- $url = home_url(add_query_arg(array(),$wp->request));
4364
- }else{
4365
- $url = $attr['customUrl'];
4366
- }
4367
-
4368
- $via = isset( $attr['iconShareVia'] ) ? $attr['iconShareVia'] : '';
4369
-
4370
- $selector = '#uagb-blockquote-'. $id;
4371
-
4372
- ?>
4373
- jQuery( "<?php echo $selector ?>" ).find( ".uagb-blockquote__tweet-button" ).click(function(){
4374
- var content = jQuery("<?php echo $selector ?>").find(".uagb-blockquote__content").text();
4375
- var request_url = "https://twitter.com/share?url="+ encodeURIComponent("<?php echo $url ?>")+"&text="+content+"&via="+("<?php echo $via;?>");
4376
- window.open( request_url );
4377
- });
4378
- <?php
4379
-
4380
- // @codingStandardsIgnoreEnd.
4381
- }
4382
-
4383
- /**
4384
- * Get Social Share JS
4385
- *
4386
- * @since 1.8.1
4387
- * @param string $id The selector ID.
4388
- */
4389
- public static function get_social_share_js( $id ) {
4390
- $selector = '#uagb-social-share-' . $id;
4391
- ?>
4392
- jQuery( "<?php echo $selector; ?>" ).find( ".uagb-ss__link" ).click(function(){
4393
- var social_url = jQuery( this ).data( "href" );
4394
- var target = "";
4395
- if( social_url == "mailto:?body=" ){
4396
- target = "_self";
4397
- }
4398
- var request_url = social_url + window.location.href ;
4399
- window.open( request_url,target );
4400
- });
4401
- <?php
4402
- }
4403
-
4404
- /**
4405
- * Adds Google fonts for Advanced Heading block.
4406
- *
4407
- * @since 1.9.1
4408
- * @param array $attr the blocks attr.
4409
- */
4410
- public static function blocks_advanced_heading_gfont( $attr ) {
4411
-
4412
- $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4413
- $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4414
- $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4415
- $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4416
-
4417
- $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4418
- $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4419
- $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4420
- $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4421
-
4422
- UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
4423
- UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
4424
- }
4425
-
4426
-
4427
- /**
4428
- * Adds Google fonts for CF7 Styler block.
4429
- *
4430
- * @since 1.10.0
4431
- * @param array $attr the blocks attr.
4432
- */
4433
- public static function blocks_cf7_styler_gfont( $attr ) {
4434
-
4435
- $label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
4436
- $label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
4437
- $label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
4438
- $label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
4439
-
4440
- $input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
4441
- $input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
4442
- $input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
4443
- $input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
4444
-
4445
- $radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
4446
- $radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
4447
- $radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
4448
- $radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
4449
-
4450
- $button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
4451
- $button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
4452
- $button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
4453
- $button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
4454
-
4455
- $msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
4456
- $msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
4457
- $msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
4458
- $msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
4459
-
4460
- $validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
4461
- $validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
4462
- $validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
4463
- $validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
4464
-
4465
- UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
4466
- UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
4467
-
4468
- UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
4469
- UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
4470
-
4471
- UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
4472
- UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
4473
- }
4474
-
4475
-
4476
- /**
4477
- * Adds Google fonts for Gravity Form Styler block.
4478
- *
4479
- * @since 1.12.0
4480
- * @param array $attr the blocks attr.
4481
- */
4482
- public static function blocks_gf_styler_gfont( $attr ) {
4483
-
4484
- $label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
4485
- $label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
4486
- $label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
4487
- $label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
4488
-
4489
- $input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
4490
- $input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
4491
- $input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
4492
- $input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
4493
-
4494
- $radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
4495
- $radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
4496
- $radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
4497
- $radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
4498
-
4499
- $button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
4500
- $button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
4501
- $button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
4502
- $button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
4503
-
4504
- $msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
4505
- $msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
4506
- $msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
4507
- $msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
4508
-
4509
- $validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
4510
- $validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
4511
- $validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
4512
- $validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
4513
-
4514
- UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
4515
- UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
4516
-
4517
- UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
4518
- UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
4519
-
4520
- UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
4521
- UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
4522
- }
4523
-
4524
- /**
4525
- * Adds Google fonts for Marketing Button block.
4526
- *
4527
- * @since 1.11.0
4528
- * @param array $attr the blocks attr.
4529
- */
4530
- public static function blocks_marketing_btn_gfont( $attr ) {
4531
-
4532
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4533
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4534
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4535
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4536
-
4537
- $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
4538
- $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
4539
- $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
4540
- $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
4541
-
4542
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4543
- UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
4544
- }
4545
-
4546
- /**
4547
- * Adds Google fonts for Blockquote.
4548
- *
4549
- * @since 1.9.1
4550
- * @param array $attr the blocks attr.
4551
- */
4552
- public static function blocks_blockquote_gfont( $attr ) {
4553
-
4554
- $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4555
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4556
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4557
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4558
-
4559
- $author_load_google_font = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
4560
- $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
4561
- $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
4562
- $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
4563
-
4564
- $tweet_btn_load_google_font = isset( $attr['tweetBtnLoadGoogleFonts'] ) ? $attr['tweetBtnLoadGoogleFonts'] : '';
4565
- $tweet_btn_font_family = isset( $attr['tweetBtnFontFamily'] ) ? $attr['tweetBtnFontFamily'] : '';
4566
- $tweet_btn_font_weight = isset( $attr['tweetBtnFontWeight'] ) ? $attr['tweetBtnFontWeight'] : '';
4567
- $tweet_btn_font_subset = isset( $attr['tweetBtnFontSubset'] ) ? $attr['tweetBtnFontSubset'] : '';
4568
-
4569
- UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
4570
- UAGB_Helper::blocks_google_font( $author_load_google_font, $author_font_family, $author_font_weight, $author_font_subset );
4571
- UAGB_Helper::blocks_google_font( $tweet_btn_load_google_font, $tweet_btn_font_family, $tweet_btn_font_weight, $tweet_btn_font_subset );
4572
- }
4573
-
4574
- /**
4575
- * Adds Google fonts for Testimonial block.
4576
- *
4577
- * @since 1.9.1
4578
- * @param array $attr the blocks attr.
4579
- */
4580
- public static function blocks_testimonial_gfont( $attr ) {
4581
- $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4582
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4583
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4584
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4585
-
4586
- $name_load_google_fonts = isset( $attr['nameLoadGoogleFonts'] ) ? $attr['nameLoadGoogleFonts'] : '';
4587
- $name_font_family = isset( $attr['nameFontFamily'] ) ? $attr['nameFontFamily'] : '';
4588
- $name_font_weight = isset( $attr['nameFontWeight'] ) ? $attr['nameFontWeight'] : '';
4589
- $name_font_subset = isset( $attr['nameFontSubset'] ) ? $attr['nameFontSubset'] : '';
4590
-
4591
- $company_load_google_fonts = isset( $attr['companyLoadGoogleFonts'] ) ? $attr['companyLoadGoogleFonts'] : '';
4592
- $company_font_family = isset( $attr['companyFontFamily'] ) ? $attr['companyFontFamily'] : '';
4593
- $company_font_weight = isset( $attr['companyFontWeight'] ) ? $attr['companyFontWeight'] : '';
4594
- $company_font_subset = isset( $attr['companyFontSubset'] ) ? $attr['companyFontSubset'] : '';
4595
-
4596
- UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
4597
- UAGB_Helper::blocks_google_font( $name_load_google_fonts, $name_font_family, $name_font_family, $name_font_subset );
4598
- UAGB_Helper::blocks_google_font( $company_load_google_fonts, $company_font_family, $company_font_family, $company_font_subset );
4599
- }
4600
-
4601
- /**
4602
- * Adds Google fonts for Advanced Heading block.
4603
- *
4604
- * @since 1.9.1
4605
- * @param array $attr the blocks attr.
4606
- */
4607
- public static function blocks_team_gfont( $attr ) {
4608
-
4609
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4610
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4611
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4612
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4613
-
4614
- $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
4615
- $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
4616
- $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
4617
- $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
4618
-
4619
- $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4620
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4621
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4622
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4623
-
4624
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4625
- UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
4626
- UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
4627
- }
4628
-
4629
- /**
4630
- *
4631
- * Adds Google fonts for Restaurant Menu block.
4632
- *
4633
- * @since 1.9.1
4634
- * @param array $attr the blocks attr.
4635
- */
4636
- public static function blocks_restaurant_menu_gfont( $attr ) {
4637
- $title_load_google_fonts = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4638
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4639
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4640
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4641
-
4642
- $price_load_google_fonts = isset( $attr['priceLoadGoogleFonts'] ) ? $attr['priceLoadGoogleFonts'] : '';
4643
- $price_font_family = isset( $attr['priceFontFamily'] ) ? $attr['priceFontFamily'] : '';
4644
- $price_font_weight = isset( $attr['priceFontWeight'] ) ? $attr['priceFontWeight'] : '';
4645
- $price_font_subset = isset( $attr['priceFontSubset'] ) ? $attr['priceFontSubset'] : '';
4646
-
4647
- $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4648
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4649
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4650
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4651
-
4652
- UAGB_Helper::blocks_google_font( $title_load_google_fonts, $title_font_family, $title_font_weight, $title_font_subset );
4653
- UAGB_Helper::blocks_google_font( $price_load_google_fonts, $price_font_family, $price_font_weight, $price_font_subset );
4654
- UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
4655
- }
4656
-
4657
- /**
4658
- * Adds Google fonts for Content Timeline block.
4659
- *
4660
- * @since 1.9.1
4661
- * @param array $attr the blocks attr.
4662
- */
4663
- public static function blocks_content_timeline_gfont( $attr ) {
4664
- $head_load_google_fonts = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4665
- $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4666
- $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4667
- $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4668
-
4669
- $subheadload_google_fonts = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4670
- $subheadfont_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4671
- $subheadfont_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4672
- $subheadfont_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4673
-
4674
- $date_load_google_fonts = isset( $attr['dateLoadGoogleFonts'] ) ? $attr['dateLoadGoogleFonts'] : '';
4675
- $date_font_family = isset( $attr['dateFontFamily'] ) ? $attr['dateFontFamily'] : '';
4676
- $date_font_weight = isset( $attr['dateFontWeight'] ) ? $attr['dateFontWeight'] : '';
4677
- $date_font_subset = isset( $attr['dateFontSubset'] ) ? $attr['dateFontSubset'] : '';
4678
-
4679
- UAGB_Helper::blocks_google_font( $head_load_google_fonts, $head_font_family, $head_font_weight, $head_font_subset );
4680
- UAGB_Helper::blocks_google_font( $subheadload_google_fonts, $subheadfont_family, $subheadfont_weight, $subheadfont_subset );
4681
- UAGB_Helper::blocks_google_font( $date_load_google_fonts, $date_font_family, $date_font_weight, $date_font_subset );
4682
- }
4683
-
4684
- /**
4685
- * Adds Google fonts for Post Timeline block.
4686
- *
4687
- * @since 1.9.1
4688
- * @param array $attr the blocks attr.
4689
- */
4690
- public static function blocks_post_timeline_gfont( $attr ) {
4691
- self::blocks_content_timeline_gfont( $attr );
4692
-
4693
- $author_load_google_fonts = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
4694
- $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
4695
- $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
4696
- $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
4697
-
4698
- $cta_load_google_fonts = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4699
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4700
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4701
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4702
-
4703
- UAGB_Helper::blocks_google_font( $author_load_google_fonts, $author_font_family, $author_font_weight, $author_font_subset );
4704
- UAGB_Helper::blocks_google_font( $cta_load_google_fonts, $cta_font_family, $cta_font_weight, $cta_font_subset );
4705
- }
4706
-
4707
- /**
4708
- * Adds Google fonts for Mulit Button's block.
4709
- *
4710
- * @since 1.9.1
4711
- * @param array $attr the blocks attr.
4712
- */
4713
- public static function blocks_buttons_gfont( $attr ) {
4714
-
4715
- $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
4716
- $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
4717
- $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
4718
- $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
4719
-
4720
- UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
4721
- }
4722
-
4723
- /**
4724
- * Adds Google fonts for Icon List block
4725
- *
4726
- * @since 1.9.1
4727
- * @param array $attr the blocks attr.
4728
- */
4729
- public static function blocks_icon_list_gfont( $attr ) {
4730
-
4731
- $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
4732
- $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
4733
- $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
4734
- $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
4735
-
4736
- UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
4737
- }
4738
-
4739
- /**
4740
- * Adds Google fonts for Post block.
4741
- *
4742
- * @since 1.9.1
4743
- * @param array $attr the blocks attr.
4744
- */
4745
- public static function blocks_post_gfont( $attr ) {
4746
-
4747
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4748
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4749
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4750
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4751
-
4752
- $meta_load_google_font = isset( $attr['metaLoadGoogleFonts'] ) ? $attr['metaLoadGoogleFonts'] : '';
4753
- $meta_font_family = isset( $attr['metaFontFamily'] ) ? $attr['metaFontFamily'] : '';
4754
- $meta_font_weight = isset( $attr['metaFontWeight'] ) ? $attr['metaFontWeight'] : '';
4755
- $meta_font_subset = isset( $attr['metaFontSubset'] ) ? $attr['metaFontSubset'] : '';
4756
-
4757
- $excerpt_load_google_font = isset( $attr['excerptLoadGoogleFonts'] ) ? $attr['excerptLoadGoogleFonts'] : '';
4758
- $excerpt_font_family = isset( $attr['excerptFontFamily'] ) ? $attr['excerptFontFamily'] : '';
4759
- $excerpt_font_weight = isset( $attr['excerptFontWeight'] ) ? $attr['excerptFontWeight'] : '';
4760
- $excerpt_font_subset = isset( $attr['excerptFontSubset'] ) ? $attr['excerptFontSubset'] : '';
4761
-
4762
- $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4763
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4764
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4765
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4766
-
4767
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4768
-
4769
- UAGB_Helper::blocks_google_font( $meta_load_google_font, $meta_font_family, $meta_font_weight, $meta_font_subset );
4770
-
4771
- UAGB_Helper::blocks_google_font( $excerpt_load_google_font, $excerpt_font_family, $excerpt_font_weight, $excerpt_font_subset );
4772
-
4773
- UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4774
- }
4775
-
4776
- /**
4777
- * Adds Google fonts for Advanced Heading block.
4778
- *
4779
- * @since 1.9.1
4780
- * @param array $attr the blocks attr.
4781
- */
4782
- public static function blocks_info_box_gfont( $attr ) {
4783
-
4784
- $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4785
- $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4786
- $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4787
- $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4788
-
4789
- $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
4790
- $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
4791
- $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
4792
- $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
4793
-
4794
- $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4795
- $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4796
- $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4797
- $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4798
-
4799
- $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4800
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4801
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4802
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4803
-
4804
- UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4805
- UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
4806
- UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
4807
- UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
4808
- }
4809
-
4810
- /**
4811
- * Adds Google fonts for Call To Action block.
4812
- *
4813
- * @since 1.9.1
4814
- * @param array $attr the blocks attr.
4815
- */
4816
- public static function blocks_call_to_action_gfont( $attr ) {
4817
-
4818
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4819
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4820
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4821
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4822
-
4823
- $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4824
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4825
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4826
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4827
-
4828
- $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4829
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4830
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4831
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4832
-
4833
- UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4834
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4835
- UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
4836
- }
4837
- }
4838
- }
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
+ * Get Section Block CSS
17
+ *
18
+ * @since 0.0.1
19
+ * @param array $attr The block attributes.
20
+ * @param string $id The selector ID.
21
+ * @return array The Widget List.
22
+ */
23
+ public static function get_section_css( $attr, $id ) { // @codingStandardsIgnoreStart
24
+
25
+ global $content_width;
26
+
27
+ $defaults = UAGB_Helper::$block_list['uagb/section']['attributes'];
28
+
29
+ $attr = array_merge( $defaults, $attr );
30
+
31
+ $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
32
+
33
+ $style = array(
34
+ 'padding-top' => $attr['topPadding'] . 'px',
35
+ 'padding-bottom' => $attr['bottomPadding'] . 'px',
36
+ 'padding-left' => $attr['leftPadding'] . 'px',
37
+ 'padding-right' => $attr['rightPadding'] . 'px',
38
+ 'border-radius' => $attr['borderRadius'] . "px"
39
+ );
40
+
41
+ $m_selectors = array();
42
+ $t_selectors = array();
43
+
44
+ if ( 'right' == $attr['align'] ) {
45
+ $style['margin-right'] = $attr['rightMargin'] . 'px';
46
+ $style['margin-left'] = 'auto';
47
+ $style['margin-top'] = $attr['topMargin'] . 'px';
48
+ $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
49
+ } elseif ( 'left' == $attr['align'] ) {
50
+ $style['margin-right'] = 'auto';
51
+ $style['margin-left'] = $attr['leftMargin'] . 'px';
52
+ $style['margin-top'] = $attr['topMargin'] . 'px';
53
+ $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
54
+ } elseif ( 'center' == $attr['align'] ) {
55
+ $style['margin-right'] = 'auto';
56
+ $style['margin-left'] = 'auto';
57
+ $style['margin-top'] = $attr['topMargin'] . 'px';
58
+ $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
59
+ } else {
60
+ $style['margin-top'] = $attr['topMargin'] . 'px';
61
+ $style['margin-bottom'] = $attr['bottomMargin'] . 'px';
62
+ }
63
+
64
+ if ( "none" != $attr['borderStyle'] ) {
65
+ $style["border-style"] = $attr['borderStyle'];
66
+ $style["border-width"] = $attr['borderWidth'] . "px";
67
+ $style["border-color"] = $attr['borderColor'];
68
+ }
69
+
70
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
71
+
72
+ $section_width = '100%';
73
+
74
+ if ( isset( $attr['contentWidth'] ) ) {
75
+
76
+ if ( 'boxed' == $attr['contentWidth'] ) {
77
+ if ( isset( $attr['width'] ) ) {
78
+ $section_width = $attr['width'] . 'px';
79
+ }
80
+ }
81
+ }
82
+
83
+ if ( 'wide' != $attr['align'] && 'full' != $attr['align'] ) {
84
+ $style['max-width'] = $section_width;
85
+ }
86
+
87
+ if ( 'image' === $bg_type ) {
88
+
89
+ $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
90
+ $style['background-position'] = $position;
91
+ $style['background-attachment'] = $attr['backgroundAttachment'];
92
+ $style['background-repeat'] = $attr['backgroundRepeat'];
93
+ $style['background-size'] = $attr['backgroundSize'];
94
+
95
+ }
96
+
97
+ $inner_width = '100%';
98
+
99
+ if ( isset( $attr['contentWidth'] ) ) {
100
+ if ( 'boxed' != $attr['contentWidth'] ) {
101
+ if ( isset( $attr['themeWidth'] ) && $attr['themeWidth'] == true ) {
102
+ $inner_width = $content_width . 'px';
103
+ } else {
104
+ if ( isset( $attr['innerWidth'] ) ) {
105
+ $inner_width = $attr['innerWidth'] . 'px';
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ $selectors = array(
112
+ '.uagb-section__wrap' => $style,
113
+ ' > .uagb-section__video-wrap' => array(
114
+ 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
115
+ ),
116
+ ' > .uagb-section__inner-wrap' => array(
117
+ 'max-width' => $inner_width,
118
+ ),
119
+ );
120
+
121
+ if ( 'video' == $bg_type ) {
122
+ $selectors[' > .uagb-section__overlay'] = array(
123
+ 'opacity' => 1,
124
+ 'background-color' => $attr['backgroundVideoColor'],
125
+ );
126
+ } else if ( 'image' == $bg_type ) {
127
+ $selectors[' > .uagb-section__overlay'] = array(
128
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
129
+ 'background-color' => $attr['backgroundImageColor'],
130
+ );
131
+ } else if ( 'color' == $bg_type ) {
132
+ $selectors[' > .uagb-section__overlay'] = array(
133
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
134
+ 'background-color' => $attr['backgroundColor'],
135
+ );
136
+ } else if ( 'gradient' === $bg_type ) {
137
+ $selectors[' > .uagb-section__overlay']['background-color'] = 'transparent';
138
+ $selectors[' > .uagb-section__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
139
+
140
+ if ( 'linear' === $attr['gradientType'] ) {
141
+
142
+ $selectors[' > .uagb-section__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
143
+ } else {
144
+
145
+ $selectors[' > .uagb-section__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
146
+ }
147
+ }
148
+
149
+ $selectors[' > .uagb-section__overlay']["border-radius"] = $attr['borderRadius'] . "px";
150
+
151
+ $m_selectors = array(
152
+ '.uagb-section__wrap' => array(
153
+ 'padding-top' => $attr['topPaddingMobile'] . 'px',
154
+ 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
155
+ 'padding-left' => $attr['leftPaddingMobile'] . 'px',
156
+ 'padding-right' => $attr['rightPaddingMobile'] . 'px',
157
+ )
158
+ );
159
+
160
+ $t_selectors = array(
161
+ '.uagb-section__wrap' => array(
162
+ 'padding-top' => $attr['topPaddingTablet'] . 'px',
163
+ 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
164
+ 'padding-left' => $attr['leftPaddingTablet'] . 'px',
165
+ 'padding-right' => $attr['rightPaddingTablet'] . 'px',
166
+ )
167
+ );
168
+
169
+ if ( 'right' == $attr['align'] ) {
170
+ $t_selectors['.uagb-section__wrap']['margin-right'] = $attr['rightMarginTablet'] . 'px';
171
+ $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
172
+ $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
173
+
174
+ $m_selectors['.uagb-section__wrap']['margin-right'] = $attr['rightMarginMobile'] . 'px';
175
+ $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
176
+ $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
177
+ } elseif ( 'left' == $attr['align'] ) {
178
+ $t_selectors['.uagb-section__wrap']['margin-left'] = $attr['leftMarginTablet'] . 'px';
179
+ $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
180
+ $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
181
+
182
+ $m_selectors['.uagb-section__wrap']['margin-left'] = $attr['leftMarginMobile'] . 'px';
183
+ $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
184
+ $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
185
+ } else {
186
+ $t_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginTablet'] . 'px';
187
+ $t_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginTablet'] . 'px';
188
+
189
+ $m_selectors['.uagb-section__wrap']['margin-top'] = $attr['topMarginMobile'] . 'px';
190
+ $m_selectors['.uagb-section__wrap']['margin-bottom'] = $attr['bottomMarginMobile'] . 'px';
191
+ }
192
+
193
+ // @codingStandardsIgnoreEnd
194
+
195
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-section-' . $id );
196
+
197
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-section-' . $id, 'tablet' );
198
+
199
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-section-' . $id, 'mobile' );
200
+
201
+ return $desktop . $tablet . $mobile;
202
+ }
203
+
204
+ /**
205
+ * Get Columns Block CSS
206
+ *
207
+ * @since 1.8.0
208
+ * @param array $attr The block attributes.
209
+ * @param string $id The selector ID.
210
+ * @return array The Widget List.
211
+ */
212
+ public static function get_columns_css( $attr, $id ) { // @codingStandardsIgnoreStart
213
+
214
+ global $content_width;
215
+
216
+ $defaults = UAGB_Helper::$block_list['uagb/columns']['attributes'];
217
+
218
+ $attr = array_merge( $defaults, $attr );
219
+
220
+ $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
221
+
222
+ $m_selectors = array();
223
+ $t_selectors = array();
224
+
225
+ $style = array(
226
+ 'padding-top' => $attr['topPadding'] . 'px',
227
+ 'padding-bottom' => $attr['bottomPadding'] . 'px',
228
+ 'padding-left' => $attr['leftPadding'] . 'px',
229
+ 'padding-right' => $attr['rightPadding'] . 'px',
230
+ 'margin-top' => $attr['topMargin'] . 'px',
231
+ 'margin-bottom' => $attr['bottomMargin'] . 'px',
232
+ 'border-radius' => $attr['borderRadius'] . "px",
233
+ );
234
+
235
+ if ( "none" != $attr['borderStyle'] ) {
236
+ $style["border-style"] = $attr['borderStyle'];
237
+ $style["border-width"] = $attr['borderWidth'] . "px";
238
+ $style["border-color"] = $attr['borderColor'];
239
+ }
240
+
241
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
242
+
243
+ if ( 'image' === $bg_type ) {
244
+
245
+ $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
246
+ $style['background-position'] = $position;
247
+ $style['background-attachment'] = $attr['backgroundAttachment'];
248
+ $style['background-repeat'] = $attr['backgroundRepeat'];
249
+ $style['background-size'] = $attr['backgroundSize'];
250
+
251
+ }
252
+
253
+ $inner_width = '100%';
254
+
255
+ if ( isset( $attr['contentWidth'] ) ) {
256
+ if ( 'theme' == $attr['contentWidth'] ) {
257
+ $inner_width = $content_width . 'px';
258
+ } else if ( 'custom' == $attr['contentWidth'] ) {
259
+ $inner_width = $attr['width'] . 'px';
260
+ }
261
+ }
262
+
263
+ $selectors = array(
264
+ '.uagb-columns__wrap' => $style,
265
+ ' .uagb-columns__video-wrap' => array(
266
+ 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
267
+ ),
268
+ ' > .uagb-columns__inner-wrap' => array(
269
+ 'max-width' => $inner_width,
270
+ ),
271
+ ' .uagb-column__inner-wrap' => array(
272
+ 'padding' => $attr['columnGap'] . 'px'
273
+ ),
274
+ ' .uagb-columns__shape-top svg' => array(
275
+ 'width' => "calc( " . $attr['topWidth'] . "% + 1.3px )",
276
+ 'height' => $attr['topHeight'] . "px"
277
+ ),
278
+ ' .uagb-columns__shape-top .uagb-columns__shape-fill' => array(
279
+ 'fill' => $attr['topColor'],
280
+ 'opacity' => ( isset( $attr['topDividerOpacity'] ) && '' != $attr['topDividerOpacity'] ) ? ( ( $attr['topDividerOpacity'] ) / 100 ) : ""
281
+ ),
282
+ ' .uagb-columns__shape-bottom svg' => array(
283
+ 'width' => "calc( " . $attr['bottomWidth'] . "% + 1.3px )",
284
+ 'height' => $attr['bottomHeight'] . "px"
285
+ ),
286
+ ' .uagb-columns__shape-bottom .uagb-columns__shape-fill' => array(
287
+ 'fill' => $attr['bottomColor'],
288
+ 'opacity' => ( isset( $attr['bottomDividerOpacity'] ) && '' != $attr['bottomDividerOpacity'] ) ? ( ( $attr['bottomDividerOpacity'] ) / 100 ) : ""
289
+ ),
290
+ );
291
+
292
+ if ( 'video' == $bg_type ) {
293
+ $selectors[' > .uagb-columns__overlay'] = array(
294
+ 'opacity' => 1,
295
+ 'background-color' => $attr['backgroundVideoColor'],
296
+ );
297
+ } else if ( 'image' == $bg_type ) {
298
+ $selectors[' > .uagb-columns__overlay'] = array(
299
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
300
+ 'background-color' => $attr['backgroundImageColor'],
301
+ );
302
+ } else if ( 'color' == $bg_type ) {
303
+ $selectors[' > .uagb-columns__overlay'] = array(
304
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
305
+ 'background-color' => $attr['backgroundColor'],
306
+ );
307
+ } elseif ( 'gradient' === $bg_type ) {
308
+ $selectors[' > .uagb-columns__overlay']['background-color'] = 'transparent';
309
+ $selectors[' > .uagb-columns__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
310
+
311
+ if ( 'linear' === $attr['gradientType'] ) {
312
+
313
+ $selectors[' > .uagb-columns__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
314
+ } else {
315
+
316
+ $selectors[' > .uagb-columns__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
317
+ }
318
+ }
319
+
320
+ $selectors[' > .uagb-columns__overlay']["border-radius"] = $attr['borderRadius'] . "px";
321
+
322
+ $m_selectors = array(
323
+ '.uagb-columns__wrap' => array(
324
+ 'padding-top' => $attr['topPaddingMobile'] . 'px',
325
+ 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
326
+ 'padding-left' => $attr['leftPaddingMobile'] . 'px',
327
+ 'padding-right' => $attr['rightPaddingMobile'] . 'px',
328
+ 'margin-top' => $attr['topMarginMobile'] . 'px',
329
+ 'margin-bottom' => $attr['bottomMarginMobile'] . 'px',
330
+ ),
331
+ ' .uagb-columns__shape-bottom svg' => array(
332
+ 'height' => $attr['bottomHeightMobile'] . "px"
333
+ ),
334
+ ' .uagb-columns__shape-top svg' => array(
335
+ 'height' => $attr['topHeightMobile'] . "px"
336
+ ),
337
+ );
338
+
339
+ $t_selectors = array(
340
+ '.uagb-columns__wrap' => array(
341
+ 'padding-top' => $attr['topPaddingTablet'] . 'px',
342
+ 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
343
+ 'padding-left' => $attr['leftPaddingTablet'] . 'px',
344
+ 'padding-right' => $attr['rightPaddingTablet'] . 'px',
345
+ 'margin-top' => $attr['topMarginTablet'] . 'px',
346
+ 'margin-bottom' => $attr['bottomMarginTablet'] . 'px',
347
+ ),
348
+ ' .uagb-columns__shape-bottom svg' => array(
349
+ 'height' => $attr['bottomHeightTablet'] . "px"
350
+ ),
351
+ ' .uagb-columns__shape-top svg' => array(
352
+ 'height' => $attr['topHeightTablet'] . "px"
353
+ ),
354
+ );
355
+
356
+ // @codingStandardsIgnoreEnd
357
+
358
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-columns-' . $id );
359
+
360
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-columns-' . $id, 'tablet' );
361
+
362
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-columns-' . $id, 'mobile' );
363
+
364
+ return $desktop . $tablet . $mobile;
365
+ }
366
+
367
+ /**
368
+ * Get Single Column Block CSS
369
+ *
370
+ * @since 1.8.0
371
+ * @param array $attr The block attributes.
372
+ * @param string $id The selector ID.
373
+ * @return array The Widget List.
374
+ */
375
+ public static function get_column_css( $attr, $id ) { // @codingStandardsIgnoreStart
376
+
377
+ global $content_width;
378
+
379
+ $defaults = UAGB_Helper::$block_list['uagb/column']['attributes'];
380
+
381
+ $attr = array_merge( $defaults, $attr );
382
+
383
+ $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
384
+
385
+ $style = array(
386
+ 'padding-top' => $attr['topPadding'] . 'px',
387
+ 'padding-bottom' => $attr['bottomPadding'] . 'px',
388
+ 'padding-left' => $attr['leftPadding'] . 'px',
389
+ 'padding-right' => $attr['rightPadding'] . 'px',
390
+ 'margin-top' => $attr['topMargin'] . 'px',
391
+ 'margin-bottom' => $attr['bottomMargin'] . 'px',
392
+ 'margin-left' => $attr['leftMargin'] . 'px',
393
+ 'margin-right' => $attr['rightMargin'] . 'px',
394
+ 'border-radius' => $attr['borderRadius'] . 'px',
395
+ );
396
+
397
+ $m_selectors = array();
398
+ $t_selectors = array();
399
+
400
+ if ( "none" != $attr['borderStyle'] ) {
401
+ $style["border-style"] = $attr['borderStyle'];
402
+ $style["border-width"] = $attr['borderWidth'] . "px";
403
+ $style["border-color"] = $attr['borderColor'];
404
+ }
405
+
406
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
407
+
408
+ if ( 'image' === $bg_type ) {
409
+
410
+ $style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
411
+ $style['background-position'] = $position;
412
+ $style['background-attachment'] = $attr['backgroundAttachment'];
413
+ $style['background-repeat'] = $attr['backgroundRepeat'];
414
+ $style['background-size'] = $attr['backgroundSize'];
415
+
416
+ }
417
+
418
+ $selectors = array(
419
+ '.uagb-column__wrap' => $style
420
+ );
421
+
422
+ if ( 'image' == $bg_type ) {
423
+ $selectors[' > .uagb-column__overlay'] = array(
424
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
425
+ 'background-color' => $attr['backgroundImageColor'],
426
+ );
427
+ } else if ( 'color' == $bg_type ) {
428
+ $selectors[' > .uagb-column__overlay'] = array(
429
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
430
+ 'background-color' => $attr['backgroundColor'],
431
+ );
432
+ } elseif ( 'gradient' === $bg_type ) {
433
+ $selectors[' > .uagb-column__overlay']['background-color'] = 'transparent';
434
+ $selectors[' > .uagb-column__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
435
+
436
+ if ( 'linear' === $attr['gradientType'] ) {
437
+
438
+ $selectors[' > .uagb-column__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
439
+ } else {
440
+
441
+ $selectors[' > .uagb-column__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
442
+ }
443
+ }
444
+
445
+ if ( '' != $attr['colWidth'] && 0 != $attr['colWidth'] ) {
446
+
447
+ $selectors[''] = array(
448
+ "width" => $attr['colWidth'] . "%"
449
+ );
450
+ }
451
+
452
+ $m_selectors = array(
453
+ '.uagb-column__wrap' => array(
454
+ 'padding-top' => $attr['topPaddingMobile'] . 'px',
455
+ 'padding-bottom' => $attr['bottomPaddingMobile'] . 'px',
456
+ 'padding-left' => $attr['leftPaddingMobile'] . 'px',
457
+ 'padding-right' => $attr['rightPaddingMobile'] . 'px',
458
+ 'margin-top' => $attr['topMarginMobile'] . 'px',
459
+ 'margin-bottom' => $attr['bottomMarginMobile'] . 'px',
460
+ 'margin-left' => $attr['leftMarginMobile'] . 'px',
461
+ 'margin-right' => $attr['rightMarginMobile'] . 'px',
462
+ )
463
+ );
464
+
465
+ $t_selectors = array(
466
+ '.uagb-column__wrap' => array(
467
+ 'padding-top' => $attr['topPaddingTablet'] . 'px',
468
+ 'padding-bottom' => $attr['bottomPaddingTablet'] . 'px',
469
+ 'padding-left' => $attr['leftPaddingTablet'] . 'px',
470
+ 'padding-right' => $attr['rightPaddingTablet'] . 'px',
471
+ 'margin-top' => $attr['topMarginTablet'] . 'px',
472
+ 'margin-bottom' => $attr['bottomMarginTablet'] . 'px',
473
+ 'margin-left' => $attr['leftMarginTablet'] . 'px',
474
+ 'margin-right' => $attr['rightMarginTablet'] . 'px',
475
+ )
476
+ );
477
+
478
+ if ( '' != $attr['colWidthTablet'] && 0 != $attr['colWidthTablet'] ) {
479
+
480
+ $t_selectors[''] = array(
481
+ "width" => $attr['colWidthTablet'] . "%"
482
+ );
483
+ }
484
+
485
+ if ( '' != $attr['colWidthMobile'] && 0 != $attr['colWidthMobile'] ) {
486
+
487
+ $m_selectors[''] = array(
488
+ "width" => $attr['colWidthMobile'] . "%"
489
+ );
490
+ }
491
+
492
+ // @codingStandardsIgnoreEnd
493
+
494
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-column-' . $id );
495
+
496
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-column-' . $id, 'tablet' );
497
+
498
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-column-' . $id, 'mobile' );
499
+
500
+ return $desktop . $tablet . $mobile;
501
+ }
502
+
503
+ /**
504
+ * Get Advanced Heading Block CSS
505
+ *
506
+ * @since 0.0.1
507
+ * @param array $attr The block attributes.
508
+ * @param string $id The selector ID.
509
+ * @return array The Widget List.
510
+ */
511
+ public static function get_adv_heading_css( $attr, $id ) { // @codingStandardsIgnoreStart
512
+
513
+ $defaults = UAGB_Helper::$block_list['uagb/advanced-heading']['attributes'];
514
+
515
+ $attr = array_merge( $defaults, (array) $attr );
516
+
517
+ $m_selectors = array();
518
+ $t_selectors = array();
519
+
520
+ $selectors = array(
521
+ ' .uagb-heading-text' => array(
522
+ 'text-align' => $attr['headingAlign'],
523
+ 'font-family' => $attr['headFontFamily'],
524
+ 'font-weight' => $attr['headFontWeight'],
525
+ 'font-size' => $attr['headFontSize'] . $attr['headFontSizeType'],
526
+ 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
527
+ 'color' => $attr['headingColor'],
528
+ 'margin-bottom' => $attr['headSpace'] . "px",
529
+ ),
530
+ ' .uagb-separator-wrap' => array(
531
+ 'text-align' => $attr['headingAlign'],
532
+ ),
533
+ ' .uagb-desc-text' => array(
534
+ 'text-align' => $attr['headingAlign'],
535
+ 'font-family' => $attr['subHeadFontFamily'],
536
+ 'font-weight' => $attr['subHeadFontWeight'],
537
+ 'font-size' => $attr['subHeadFontSize'] . $attr['subHeadFontSizeType'],
538
+ 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
539
+ 'color' => $attr['subHeadingColor'],
540
+ )
541
+
542
+ );
543
+
544
+ $m_selectors = array(
545
+ ' .uagb-heading-text' => array(
546
+ 'font-size' => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
547
+ 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
548
+ ),
549
+ ' .uagb-desc-text' => array(
550
+ 'font-size' => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
551
+ 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
552
+ )
553
+
554
+ );
555
+
556
+ $t_selectors = array(
557
+ ' .uagb-heading-text' => array(
558
+ 'font-size' => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
559
+ 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
560
+
561
+ ),
562
+ ' .uagb-desc-text' => array(
563
+ 'font-size' => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
564
+ 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
565
+ )
566
+
567
+ );
568
+
569
+ $seperatorStyle = isset( $attr['seperatorStyle'] ) ? $attr['seperatorStyle'] : '';
570
+
571
+ if( 'none' !== $seperatorStyle ){
572
+ $selectors[' .uagb-separator'] = array (
573
+ 'border-top-style' => $attr['seperatorStyle'] ,
574
+ 'border-top-width' => $attr['separatorHeight'] . "px",
575
+ 'width' => $attr['separatorWidth'] . $attr['separatorWidthType'],
576
+ 'border-color' => $attr['separatorColor'],
577
+ 'margin-bottom' => $attr['separatorSpace'] . "px",
578
+ );
579
+
580
+ }
581
+ // @codingStandardsIgnoreEnd
582
+
583
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-adv-heading-' . $id );
584
+
585
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-adv-heading-' . $id, 'tablet' );
586
+
587
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-adv-heading-' . $id, 'mobile' );
588
+
589
+ return $desktop . $tablet . $mobile;
590
+ }
591
+
592
+ /**
593
+ * Get Multi Buttons Block CSS
594
+ *
595
+ * @since 0.0.1
596
+ * @param array $attr The block attributes.
597
+ * @param string $id The selector ID.
598
+ * @return array The Widget List.
599
+ */
600
+ public static function get_buttons_css( $attr, $id ) { // @codingStandardsIgnoreStart
601
+
602
+ $defaults = UAGB_Helper::$block_list['uagb/buttons']['attributes'];
603
+
604
+ $attr = array_merge( $defaults, (array) $attr );
605
+
606
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
607
+
608
+ $m_selectors = array();
609
+ $t_selectors = array();
610
+
611
+ $selectors = array(
612
+ ' .uagb-button__wrapper' => array(
613
+ 'margin-left' => ( $attr['gap']/2 ) . 'px',
614
+ 'margin-right' => ( $attr['gap']/2 ) . 'px'
615
+ ),
616
+ ' .uagb-button__wrapper:first-child' => array (
617
+ 'margin-left' => 0
618
+ ),
619
+ ' .uagb-button__wrapper:last-child' => array (
620
+ 'margin-right' => 0
621
+ ),
622
+ ' .uagb-buttons__wrap' => array (
623
+ 'justify-content' => $alignment,
624
+ '-webkit-box-pack'=> $alignment,
625
+ '-ms-flex-pack' => $alignment,
626
+ 'justify-content' => $alignment,
627
+ '-webkit-box-align' => $alignment,
628
+ '-ms-flex-align' => $alignment,
629
+ 'align-items' => $alignment,
630
+ )
631
+ );
632
+
633
+ foreach ( $attr['buttons'] as $key => $button ) {
634
+
635
+ $button['size'] = ( isset( $button['size'] ) ) ? $button['size'] : '';
636
+ $button['borderWidth'] = ( isset( $button['borderWidth'] ) ) ? $button['borderWidth'] : '';
637
+ $button['borderStyle'] = ( isset( $button['borderStyle'] ) ) ? $button['borderStyle'] : '';
638
+ $button['borderColor'] = ( isset( $button['borderColor'] ) ) ? $button['borderColor'] : '';
639
+ $button['borderRadius'] = ( isset( $button['borderRadius'] ) ) ? $button['borderRadius'] : '';
640
+ $button['background'] = ( isset( $button['background'] ) ) ? $button['background'] : '';
641
+ $button['hBackground'] = ( isset( $button['hBackground'] ) ) ? $button['hBackground'] : '';
642
+ $button['borderHColor'] = ( isset( $button['borderHColor'] ) ) ? $button['borderHColor'] : '';
643
+ $button['vPadding'] = ( isset( $button['vPadding'] ) ) ? $button['vPadding'] : '';
644
+ $button['hPadding'] = ( isset( $button['hPadding'] ) ) ? $button['hPadding'] : '';
645
+ $button['color'] = ( isset( $button['color'] ) ) ? $button['color'] : '';
646
+ $button['hColor'] = ( isset( $button['hColor'] ) ) ? $button['hColor'] : '';
647
+ $button['sizeType'] = ( isset( $button['sizeType'] ) ) ? $button['sizeType'] : 'px';
648
+ $button['sizeMobile'] = ( isset( $button['sizeMobile'] ) ) ? $button['sizeMobile'] : '';
649
+ $button['sizeTablet'] = ( isset( $button['sizeTablet'] ) ) ? $button['sizeTablet'] : '';
650
+ $button['lineHeight'] = ( isset( $button['lineHeight'] ) ) ? $button['lineHeight'] : '';
651
+ $button['lineHeightType'] = ( isset( $button['lineHeightType'] ) ) ? $button['lineHeightType'] : '';
652
+ $button['lineHeightMobile'] = ( isset( $button['lineHeightMobile'] ) ) ? $button['lineHeightMobile'] : '';
653
+ $button['lineHeightTablet'] = ( isset( $button['lineHeightTablet'] ) ) ? $button['lineHeightTablet'] : '';
654
+
655
+
656
+ if ( $attr['btn_count'] <= $key ) {
657
+ break;
658
+ }
659
+
660
+ $selectors[' .uagb-buttons-repeater-' . $key] = array (
661
+ 'font-size' => $button['size'] . $button['sizeType'],
662
+ 'line-height' => $button['lineHeight'] . $button['lineHeightType'],
663
+ 'font-family' => $attr['fontFamily'],
664
+ 'font-weight' => $attr['fontWeight'],
665
+ 'border-width' => $button['borderWidth'] . 'px',
666
+ 'border-color' => $button['borderColor'],
667
+ 'border-style' => $button['borderStyle'],
668
+ 'border-radius' => $button['borderRadius'] . 'px',
669
+ 'background' => $button['background']
670
+ );
671
+
672
+ $selectors[' .uagb-buttons-repeater-' . $key . ':hover'] = array (
673
+ 'background' => $button['hBackground'],
674
+ 'border-width' => $button['borderWidth'] . 'px',
675
+ 'border-color' => $button['borderHColor'],
676
+ 'border-style' => $button['borderStyle'],
677
+ );
678
+
679
+ $selectors[' .uagb-buttons-repeater-' . $key . ' a.uagb-button__link'] = array (
680
+ 'padding' => $button['vPadding'] . 'px ' . $button['hPadding'] . 'px',
681
+ 'color' => $button['color']
682
+ );
683
+
684
+ $selectors[' .uagb-buttons-repeater-' . $key . ':hover a.uagb-button__link'] = array (
685
+ 'color' => $button['hColor']
686
+ );
687
+
688
+ $m_selectors[' .uagb-buttons-repeater-' . $key] = array (
689
+ 'font-size' => $button['sizeMobile'] . $button['sizeType'],
690
+ 'line-height' => $button['lineHeightMobile'] . $button['lineHeightType'],
691
+ );
692
+
693
+ $t_selectors[' .uagb-buttons-repeater-' . $key] = array (
694
+ 'font-size' => $button['sizeTablet'] . $button['sizeType'],
695
+ 'line-height' => $button['lineHeightTablet'] . $button['lineHeightType'],
696
+ );
697
+ }
698
+
699
+ if ( "desktop" == $attr['stack'] ) {
700
+
701
+ $selectors[" .uagb-button__wrapper"] = array (
702
+ 'margin-left' => 0,
703
+ 'margin-right' => 0,
704
+ "margin-bottom" => $attr['gap'] . "px"
705
+ );
706
+
707
+ $selectors[" .uagb-buttons__wrap"] = array (
708
+ "flex-direction" => "column"
709
+ );
710
+
711
+ $selectors[" .uagb-button__wrapper:last-child"] = array (
712
+ "margin-bottom" => 0
713
+ );
714
+
715
+ } else if ( "tablet" == $attr['stack'] ) {
716
+
717
+ $t_selectors[" .uagb-button__wrapper"] = array (
718
+ 'margin-left' => 0,
719
+ 'margin-right' => 0,
720
+ "margin-bottom" => $attr['gap'] . "px"
721
+ );
722
+
723
+ $t_selectors[" .uagb-buttons__wrap"] = array (
724
+ "flex-direction" => "column"
725
+ );
726
+
727
+ $t_selectors[" .uagb-button__wrapper:last-child"] = array (
728
+ "margin-bottom" => 0
729
+ );
730
+
731
+ } else if ( "mobile" == $attr['stack'] ) {
732
+
733
+ $m_selectors[" .uagb-button__wrapper"] = array (
734
+ 'margin-left' => 0,
735
+ 'margin-right' => 0,
736
+ "margin-bottom" => $attr['gap'] . "px"
737
+ );
738
+
739
+ $m_selectors[" .uagb-buttons__wrap"] = array (
740
+ "flex-direction" => "column"
741
+ );
742
+
743
+ $m_selectors[" .uagb-button__wrapper:last-child"] = array (
744
+ "margin-bottom" => 0
745
+ );
746
+ }
747
+
748
+ // @codingStandardsIgnoreEnd
749
+
750
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-buttons-' . $id );
751
+
752
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-buttons-' . $id, 'tablet' );
753
+
754
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-buttons-' . $id, 'mobile' );
755
+
756
+ return $desktop . $tablet . $mobile;
757
+ }
758
+
759
+ /**
760
+ * Get Info Box CSS
761
+ *
762
+ * @since 0.0.1
763
+ * @param array $attr The block attributes.
764
+ * @param string $id The selector ID.
765
+ * @return array The Widget List.
766
+ */
767
+ public static function get_info_box_css( $attr, $id ) { // @codingStandardsIgnoreStart.
768
+ $defaults = UAGB_Helper::$block_list['uagb/info-box']['attributes'];
769
+
770
+ $attr = array_merge( $defaults, (array) $attr );
771
+
772
+ $m_selectors = array();
773
+ $t_selectors = array();
774
+
775
+ $selectors = array(
776
+ ' .uagb-ifb-icon' => array(
777
+ 'height' => $attr['iconSize']. "px",
778
+ 'width' => $attr['iconSize']. "px",
779
+ 'line-height' => $attr['iconSize']. "px",
780
+ ),
781
+ ' .uagb-ifb-icon > span' => array(
782
+ 'font-size' => $attr['iconSize']. "px",
783
+ 'height' => $attr['iconSize']. "px",
784
+ 'width' => $attr['iconSize']. "px",
785
+ 'line-height' => $attr['iconSize']. "px",
786
+ 'color' => $attr['iconColor'],
787
+ ),
788
+ ' .uagb-ifb-icon svg' => array(
789
+ 'fill' => $attr['iconColor'],
790
+ ),
791
+ ' .uagb-ifb-icon:hover > span' => array(
792
+ 'color' => $attr['iconHover'] ,
793
+ ),
794
+ ' .uagb-ifb-icon:hover svg' => array(
795
+ 'fill' => $attr['iconHover'] ,
796
+ ),
797
+
798
+ ' .uagb-infbox__link-to-all:hover ~ .uagb-infobox__content-wrap .uagb-ifb-icon svg' => array(
799
+ 'fill' => $attr['iconHover'] ,
800
+ ),
801
+
802
+ ' .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap' => array(
803
+ 'margin-left' => $attr['iconLeftMargin'].'px',
804
+ 'margin-right' => $attr['iconRightMargin'].'px',
805
+ 'margin-top' => $attr['iconTopMargin'].'px',
806
+ 'margin-bottom' => $attr['iconBottomMargin'].'px',
807
+ ),
808
+ // Image.
809
+ ' .uagb-ifb-image-content > img' => array(
810
+ 'width'=> $attr['imageWidth'].'px',
811
+ 'max-width'=> $attr['imageWidth'].'px',
812
+ ),
813
+ ' .uagb-infobox .uagb-ifb-image-content img' => array(
814
+ 'border-radius' => $attr['iconimgBorderRadius'].'px',
815
+ ),
816
+ // CTA style .
817
+ ' .uagb-infobox-cta-link' => array(
818
+ 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
819
+ 'font-family' => $attr['ctaFontFamily'],
820
+ 'font-weight' => $attr['ctaFontWeight'],
821
+ 'color' => $attr['ctaLinkColor'],
822
+ ),
823
+ ' .uagb-infobox-cta-link:hover' => array(
824
+ 'color' => $attr['ctaLinkHoverColor'],
825
+ ),
826
+ ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
827
+ 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
828
+ 'height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
829
+ 'width' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
830
+ 'line-height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
831
+ ),
832
+ ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
833
+ 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
834
+ 'height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
835
+ 'width' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
836
+ 'line-height' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
837
+ ),
838
+ ' .uagb-infobox-cta-link svg' => array(
839
+ 'fill' => $attr['ctaLinkColor'],
840
+ ),
841
+ ' .uagb-infobox-cta-link:hover svg' => array(
842
+ 'fill' => $attr['ctaLinkHoverColor'],
843
+ ),
844
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link' => array(
845
+ 'color' => $attr['ctaBtnLinkColor'],
846
+ 'background-color' => $attr['ctaBgColor'],
847
+ 'border-style' => $attr['ctaBorderStyle'],
848
+ 'border-color' => $attr['ctaBorderColor'],
849
+ 'border-radius' => $attr['ctaBorderRadius'] . "px",
850
+ 'border-width' => $attr['ctaBorderWidth'] . "px",
851
+ 'padding-top' => $attr['ctaBtnVertPadding'] . "px",
852
+ 'padding-bottom' => $attr['ctaBtnVertPadding'] . "px",
853
+ 'padding-left' => $attr['ctaBtnHrPadding'] . "px",
854
+ 'padding-right' => $attr['ctaBtnHrPadding'] . "px",
855
+
856
+ ),
857
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg' => array(
858
+ 'fill' => $attr['ctaBtnLinkColor'],
859
+ ),
860
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover' => array(
861
+ 'color' => $attr['ctaLinkHoverColor'],
862
+ 'background-color' => $attr['ctaBgHoverColor'],
863
+ 'border-color' => $attr['ctaBorderhoverColor'],
864
+ ),
865
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg' => array(
866
+ 'fill' => $attr['ctaLinkHoverColor'],
867
+ ),
868
+ // Prefix Style.
869
+ ' .uagb-ifb-title-prefix' => array(
870
+ 'font-size' => $attr['prefixFontSize'].$attr['prefixFontSizeType'],
871
+ 'font-family' => $attr['prefixFontFamily'],
872
+ 'font-weight' => $attr['prefixFontWeight'],
873
+ 'line-height' => $attr['prefixLineHeight'] . $attr['prefixLineHeightType'],
874
+ 'color' => $attr['prefixColor'],
875
+ 'margin-bottom' => $attr['prefixSpace'].'px',
876
+ ),
877
+ // Title Style.
878
+ ' .uagb-ifb-title' => array(
879
+ 'font-size' => $attr['headFontSize'].$attr['headFontSizeType'],
880
+ 'font-family' => $attr['headFontFamily'],
881
+ 'font-weight' => $attr['headFontWeight'],
882
+ 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
883
+ 'color' => $attr['headingColor'],
884
+ 'margin-bottom' => $attr['headSpace'].'px',
885
+ ),
886
+ // Description Style.
887
+ ' .uagb-ifb-desc' => array(
888
+ 'font-size' => $attr['subHeadFontSize'].$attr['subHeadFontSizeType'],
889
+ 'font-family' => $attr['subHeadFontFamily'],
890
+ 'font-weight' => $attr['subHeadFontWeight'],
891
+ 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
892
+ 'color' => $attr['subHeadingColor'],
893
+ 'margin-bottom' => $attr['subHeadSpace'].'px',
894
+ ),
895
+ // Seperator.
896
+ ' .uagb-ifb-separator' => array(
897
+ 'width' => $attr['seperatorWidth'].$attr['separatorWidthType'],
898
+ 'border-top-width' => $attr['seperatorThickness'].'px',
899
+ 'border-top-color' => $attr['seperatorColor'],
900
+ 'border-top-style' => $attr['seperatorStyle'],
901
+ ),
902
+ ' .uagb-ifb-separator-parent' => array(
903
+ 'margin-bottom' => $attr['seperatorSpace'].'px',
904
+ ),
905
+ // CTA icon space.
906
+ ' .uagb-ifb-align-icon-after' => array(
907
+ 'margin-left' => $attr['ctaIconSpace'].'px',
908
+ ),
909
+ ' .uagb-ifb-align-icon-before' => array(
910
+ 'margin-right' => $attr['ctaIconSpace'].'px',
911
+ ),
912
+ );
913
+
914
+ if( 'above-title' === $attr['iconimgPosition'] || 'below-title' === $attr['iconimgPosition'] ){
915
+ $selectors[' .uagb-infobox__content-wrap'] = array(
916
+ 'text-align' => $attr['headingAlign'],
917
+ );
918
+ }
919
+
920
+ $m_selectors = array(
921
+ ' .uagb-ifb-title-prefix' => array(
922
+ 'font-size' => $attr['prefixFontSizeMobile'].$attr['prefixFontSizeType'],
923
+ 'line-height' => $attr['prefixLineHeightMobile'] . $attr['prefixLineHeightType'],
924
+ ),
925
+ ' .uagb-ifb-title' => array(
926
+ 'font-size' => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
927
+ 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
928
+ ),
929
+ ' .uagb-ifb-desc' => array(
930
+ 'font-size' => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
931
+ 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
932
+ ),
933
+ ' .uagb-infobox-cta-link' => array(
934
+ 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
935
+ ),
936
+ ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
937
+ 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
938
+ 'height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
939
+ 'width' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
940
+ 'line-height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
941
+ ),
942
+ ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
943
+ 'font-size' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
944
+ 'height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
945
+ 'width' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
946
+ 'line-height' => $attr['ctaFontSizeMobile'].$attr['ctaFontSizeType'],
947
+ ),
948
+ );
949
+
950
+ $t_selectors = array(
951
+ ' .uagb-ifb-title-prefix' => array(
952
+ 'font-size' => $attr['prefixFontSizeTablet'].$attr['prefixFontSizeType'],
953
+ ),
954
+ ' .uagb-ifb-title' => array(
955
+ 'font-size' => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
956
+ ),
957
+ ' .uagb-ifb-desc' => array(
958
+ 'font-size' => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
959
+ ),
960
+ ' .uagb-infobox-cta-link' => array(
961
+ 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
962
+ ),
963
+ ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
964
+ 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
965
+ 'height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
966
+ 'width' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
967
+ 'line-height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
968
+ ),
969
+ ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
970
+ 'font-size' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
971
+ 'height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
972
+ 'width' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
973
+ 'line-height' => $attr['ctaFontSizeTablet'].$attr['ctaFontSizeType'],
974
+ ),
975
+ );
976
+
977
+ // @codingStandardsIgnoreEnd.
978
+
979
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-infobox-' . $id );
980
+
981
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-infobox-' . $id, 'tablet' );
982
+
983
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-infobox-' . $id, 'mobile' );
984
+
985
+ return $desktop . $tablet . $mobile;
986
+ }
987
+
988
+ /**
989
+ * Get CTA CSS
990
+ *
991
+ * @since 1.7.0
992
+ * @param array $attr The block attributes.
993
+ * @param string $id The selector ID.
994
+ * @return array The Widget List.
995
+ */
996
+ public static function get_call_to_action_css( $attr, $id ) { // @codingStandardsIgnoreStart.
997
+ $defaults = UAGB_Helper::$block_list['uagb/call-to-action']['attributes'];
998
+
999
+ $attr = array_merge( $defaults, (array) $attr );
1000
+
1001
+ $t_selectors = array();
1002
+ $m_selectors = array();
1003
+
1004
+ $selectors = array(
1005
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1006
+ 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1007
+ 'font-family' => $attr['ctaFontFamily'],
1008
+ 'font-weight' => $attr['ctaFontWeight'],
1009
+ 'color' => $attr['ctaBtnLinkColor'],
1010
+ ),
1011
+ ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-text ' => array(
1012
+ 'color' => $attr['ctaLinkHoverColor'],
1013
+ ),
1014
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1015
+ 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1016
+ 'font-family' => $attr['ctaFontFamily'],
1017
+ 'font-weight' => $attr['ctaFontWeight'],
1018
+ 'color' => $attr['ctaBtnLinkColor'],
1019
+ 'background-color' => $attr['ctaBgColor'],
1020
+ 'border-style' => $attr['ctaBorderStyle'],
1021
+ 'border-color' => $attr['ctaBorderColor'],
1022
+ 'border-radius' => $attr['ctaBorderRadius']. "px",
1023
+ 'border-width' => $attr['ctaBorderWidth']. "px",
1024
+ 'padding-top' => $attr['ctaBtnVertPadding']. "px",
1025
+ 'padding-bottom' => $attr['ctaBtnVertPadding']. "px",
1026
+ 'padding-left' => $attr['ctaBtnHrPadding']. "px",
1027
+ 'padding-right' => $attr['ctaBtnHrPadding']. "px",
1028
+ ),
1029
+ ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-button' => array(
1030
+ 'color' => $attr['ctaLinkHoverColor'],
1031
+ 'background-color' => $attr['ctaBgHoverColor'],
1032
+ 'border-color' => $attr['ctaBorderhoverColor'],
1033
+ ),
1034
+ ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1035
+ 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1036
+ 'width' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1037
+ 'height' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1038
+ 'line-height' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1039
+ ),
1040
+ ' .uagb-cta__button-wrapper .uagb-cta__block-link svg' => array(
1041
+ 'fill' => $attr['ctaBtnLinkColor'],
1042
+ ),
1043
+ ' .uagb-cta__button-wrapper:hover .uagb-cta__block-link svg' => array(
1044
+ 'fill' => $attr['ctaLinkHoverColor'],
1045
+ ),
1046
+ ' .uagb-cta__title' => array(
1047
+ 'font-size' => $attr['titleFontSize']. $attr['titleFontSizeType'],
1048
+ 'font-family' => $attr['titleFontFamily'],
1049
+ 'font-weight' => $attr['titleFontWeight'],
1050
+ 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
1051
+ 'color' => $attr['titleColor'],
1052
+ 'margin-bottom' => $attr['titleSpace']. "px",
1053
+ ),
1054
+ ' .uagb-cta__desc' => array(
1055
+ 'font-size' => $attr['descFontSize']. $attr['descFontSizeType'],
1056
+ 'font-family' => $attr['descFontFamily'],
1057
+ 'font-weight' => $attr['descFontWeight'],
1058
+ 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
1059
+ 'color' => $attr['descColor'],
1060
+ 'margin-bottom' => $attr['descSpace']. "px",
1061
+ ),
1062
+ ' .uagb-cta__align-button-after' => array(
1063
+ 'margin-left' => $attr['ctaIconSpace']. "px",
1064
+ ),
1065
+ ' .uagb-cta__align-button-before' => array(
1066
+ 'margin-right' => $attr['ctaIconSpace']. "px",
1067
+ ),
1068
+ );
1069
+
1070
+ $selectors[' .uagb-cta__content-wrap'] = array(
1071
+ 'text-align' => $attr['textAlign'],
1072
+ );
1073
+
1074
+ if( 'left' === $attr['textAlign'] && "right" === $attr['ctaPosition'] ){
1075
+ $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1076
+ 'margin-left' => $attr['ctaLeftSpace']. "px",
1077
+ 'margin-right' => '0px',
1078
+ );
1079
+ }
1080
+
1081
+ if( 'right' === $attr['textAlign'] && 'right' === $attr['ctaPosition'] ){
1082
+ $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1083
+ 'margin-right' => $attr['ctaRightSpace']. "px",
1084
+ 'margin-left' => '0px',
1085
+ );
1086
+ }
1087
+
1088
+ if( $attr['ctaPosition'] === "right" && ( $attr['ctaType'] === 'text' || $attr['ctaType'] === 'button' ) ){
1089
+ $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
1090
+ "width" => $attr['contentWidth']."%",
1091
+ );
1092
+
1093
+ $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
1094
+ "width" => (100 - $attr['contentWidth'] )."%",
1095
+ );
1096
+ }
1097
+
1098
+ $t_selectors = array(
1099
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1100
+ 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1101
+ ),
1102
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1103
+ 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1104
+ ),
1105
+ ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1106
+ 'font-size' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1107
+ 'width' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1108
+ 'height' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1109
+ 'line-height' => $attr['ctaFontSizeTablet']. $attr['ctaFontSizeType'],
1110
+ ),
1111
+ ' .uagb-cta__title' => array(
1112
+ 'font-size' => $attr['titleFontSizeTablet']. $attr['titleFontSizeType'],
1113
+ 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
1114
+ ),
1115
+ ' .uagb-cta__desc' => array(
1116
+ 'font-size' => $attr['descFontSizeTablet']. $attr['descFontSizeType'],
1117
+ 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
1118
+ ),
1119
+ );
1120
+
1121
+ $m_selectors = array(
1122
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1123
+ 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1124
+ ),
1125
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1126
+ 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1127
+ ),
1128
+ ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1129
+ 'font-size' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1130
+ 'width' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1131
+ 'height' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1132
+ 'line-height' => $attr['ctaFontSizeMobile']. $attr['ctaFontSizeType'],
1133
+ ),
1134
+ ' .uagb-cta__title' => array(
1135
+ 'font-size' => $attr['titleFontSizeMobile']. $attr['titleFontSizeType'],
1136
+ 'line-height' => $attr['titleLineHeightMobile']. $attr['titleLineHeightType'],
1137
+ ),
1138
+ ' .uagb-cta__desc' => array(
1139
+ 'font-size' => $attr['descFontSizeMobile']. $attr['descFontSizeType'],
1140
+ 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
1141
+ ),
1142
+ );
1143
+
1144
+ // @codingStandardsIgnoreEnd.
1145
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cta-block-' . $id );
1146
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-cta-block-' . $id, 'tablet' );
1147
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-cta-block-' . $id, 'mobile' );
1148
+
1149
+ return $desktop . $tablet . $mobile;
1150
+ }
1151
+
1152
+ /**
1153
+ * Get Testimonial CSS
1154
+ *
1155
+ * @since 0.0.1
1156
+ * @param array $attr The block attributes.
1157
+ * @param string $id The selector ID.
1158
+ * @return array The Widget List.
1159
+ */
1160
+ public static function get_testimonial_css( $attr, $id ) { // @codingStandardsIgnoreStart.
1161
+
1162
+ $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
1163
+
1164
+ $attr = array_merge( $defaults, (array) $attr );
1165
+
1166
+ $img_align = 'center';
1167
+ if( 'left' === $attr['headingAlign']){
1168
+ $img_align = 'flex-start';
1169
+ }else if( 'right' === $attr['headingAlign']){
1170
+ $img_align = 'flex-end';
1171
+ }
1172
+
1173
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
1174
+
1175
+ $selectors = array(
1176
+ ' .uagb-testimonial__wrap' => array(
1177
+ 'padding-left' => ( ($attr['columnGap']) /2 ) . 'px',
1178
+ 'padding-right' => ( ($attr['columnGap']) /2 ) . 'px',
1179
+ 'margin-bottom' => $attr['rowGap'] . 'px',
1180
+ ),
1181
+ ' .uagb-testimonial__wrap .uagb-tm__image-content' => array(
1182
+ 'padding-left' => $attr['imgHrPadding'] . 'px',
1183
+ 'padding-right' => $attr['imgHrPadding'] . 'px',
1184
+ 'padding-top' => $attr['imgVrPadding'] . 'px',
1185
+ 'padding-bottom' => $attr['imgVrPadding'] . 'px',
1186
+ ),
1187
+ ' .uagb-tm__image img' => array(
1188
+ 'width' => $attr['imageWidth'] . 'px',
1189
+ 'max-width' => $attr['imageWidth'] . 'px',
1190
+ ),
1191
+ ' .uagb-tm__content' => array(
1192
+ 'text-align' => $attr['headingAlign'],
1193
+ 'padding' => $attr['contentPadding'] . 'px',
1194
+ ),
1195
+ ' .uagb-tm__author-name' => array(
1196
+ 'color' => $attr['authorColor'],
1197
+ 'font-size' => $attr['nameFontSize'] . $attr['nameFontSizeType'],
1198
+ 'font-family' => $attr['nameFontFamily'],
1199
+ 'font-weight' => $attr['nameFontWeight'],
1200
+ 'line-height' => $attr['nameLineHeight'] . $attr['nameLineHeightType'],
1201
+ 'margin-bottom' => $attr['nameSpace'] . 'px',
1202
+ ),
1203
+ ' .uagb-tm__company' => array(
1204
+ 'color' => $attr['companyColor'],
1205
+ 'font-size' => $attr['companyFontSize'] . $attr['companyFontSizeType'],
1206
+ 'font-family' => $attr['companyFontFamily'],
1207
+ 'font-weight' => $attr['companyFontWeight'],
1208
+ 'line-height' => $attr['companyLineHeight'] . $attr['companyLineHeightType'],
1209
+ ),
1210
+ ' .uagb-tm__desc' => array(
1211
+ 'color' => $attr['descColor'],
1212
+ 'font-size' => $attr['descFontSize'] . $attr['descFontSizeType'],
1213
+ 'font-family' => $attr['descFontFamily'],
1214
+ 'font-weight' => $attr['descFontWeight'],
1215
+ 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
1216
+ 'margin-bottom' => $attr['descSpace'] . 'px',
1217
+ ),
1218
+ ' .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content' => array(
1219
+ 'background-color' => $attr['backgroundColor'],
1220
+ ),
1221
+ ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content' => array(
1222
+ 'background-image' => ( isset( $attr['backgroundImage']['url'] ) ) ? 'url("'.$attr['backgroundImage']['url'].'")' : null,
1223
+ 'background-position'=> $position,
1224
+ 'background-repeat'=> $attr['backgroundRepeat'],
1225
+ 'background-size'=> $attr['backgroundSize'],
1226
+ ),
1227
+ ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay' => array(
1228
+ 'background-color' => $attr['backgroundImageColor'],
1229
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? ( ( 100 - $attr['backgroundOpacity'] ) / 100 ) : '0.5',
1230
+ ),
1231
+ ' .uagb-testimonial__wrap .uagb-tm__content' => array(
1232
+ 'border-color' => $attr['borderColor'],
1233
+ 'border-style' => $attr['borderStyle'],
1234
+ 'border-width' => $attr['borderWidth'] . 'px',
1235
+ 'border-radius' => $attr['borderRadius'] . 'px',
1236
+ ),
1237
+ ' ul.slick-dots li button:before' => array(
1238
+ 'color' => $attr['arrowColor'],
1239
+ ),
1240
+ ' ul.slick-dots li.slick-active button:before' => array(
1241
+ 'color' => $attr['arrowColor'],
1242
+ ),
1243
+ ' .uagb-tm__image-position-top .uagb-tm__image-content' => array(
1244
+ 'justify-content' => $img_align,
1245
+ ),
1246
+ );
1247
+
1248
+ if( 'dots' === $attr['arrowDots'] ){
1249
+ $selectors['.uagb-slick-carousel'] = array(
1250
+ 'padding' => '0 0 35px 0',
1251
+ );
1252
+ }
1253
+
1254
+ if( '1' === $attr['test_item_count'] || $attr['test_item_count'] === $attr['columns'] ){
1255
+ $selectors['.uagb-slick-carousel'] = array(
1256
+ 'padding' => '0',
1257
+ );
1258
+ }
1259
+
1260
+ $t_selectors = array(
1261
+ ' .uagb-tm__author-name' => array(
1262
+ 'font-size' => $attr['nameFontSizeTablet'] . $attr['nameFontSizeType'],
1263
+ 'line-height' => $attr['nameLineHeightTablet'] . $attr['nameLineHeightType'],
1264
+ ),
1265
+ ' .uagb-tm__company' => array(
1266
+ 'font-size' => $attr['companyFontSizeTablet'] . $attr['companyFontSizeType'],
1267
+ 'line-height' => $attr['companyLineHeightTablet'] . $attr['companyLineHeightType'],
1268
+ ),
1269
+ ' .uagb-tm__desc' => array(
1270
+ 'font-size' => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
1271
+ 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
1272
+ ),
1273
+ );
1274
+
1275
+ $m_selectors = array(
1276
+ ' .uagb-tm__author-name' => array(
1277
+ 'font-size' => $attr['nameFontSizeMobile'] . $attr['nameFontSizeType'],
1278
+ 'line-height' => $attr['nameLineHeightMobile'] . $attr['nameLineHeightType'],
1279
+ ),
1280
+ ' .uagb-tm__company' => array(
1281
+ 'font-size' => $attr['companyFontSizeMobile'] . $attr['companyFontSizeType'],
1282
+ 'line-height' => $attr['companyLineHeightMobile'] . $attr['companyLineHeightType'],
1283
+ ),
1284
+ ' .uagb-tm__desc' => array(
1285
+ 'font-size' => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
1286
+ 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
1287
+ ),
1288
+ ' .uagb-tm__content' => array(
1289
+ 'text-align' => 'center',
1290
+ )
1291
+ );
1292
+
1293
+
1294
+ // @codingStandardsIgnoreEnd.
1295
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-testimonial-' . $id );
1296
+
1297
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-testimonial-' . $id, 'tablet' );
1298
+
1299
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-testimonial-' . $id, 'mobile' );
1300
+
1301
+ return $desktop . $tablet . $mobile;
1302
+ }
1303
+
1304
+ /**
1305
+ * Get Team Block CSS
1306
+ *
1307
+ * @since 0.0.1
1308
+ * @param array $attr The block attributes.
1309
+ * @param string $id The selector ID.
1310
+ * @return array The Widget List.
1311
+ */
1312
+ public static function get_team_css( $attr, $id ) { // @codingStandardsIgnoreStart
1313
+
1314
+ $defaults = UAGB_Helper::$block_list['uagb/team']['attributes'];
1315
+
1316
+ $attr = array_merge( $defaults, (array) $attr );
1317
+
1318
+ $m_selectors = array();
1319
+ $t_selectors = array();
1320
+
1321
+ $selectors = array(
1322
+ " p.uagb-team__desc" => array(
1323
+ "font-family" => $attr['descFontFamily'],
1324
+ "font-weight" => $attr['descFontWeight'],
1325
+ "font-size" => $attr['descFontSize'] . $attr['descFontSizeType'],
1326
+ "line-height" => $attr['descLineHeight'] . $attr['descLineHeightType'],
1327
+ "color" => $attr['descColor'],
1328
+ "margin-bottom" => $attr['descSpace'] . "px",
1329
+ ),
1330
+ " .uagb-team__prefix" => array(
1331
+ "font-family" => $attr['prefixFontFamily'],
1332
+ "font-weight" => $attr['prefixFontWeight'],
1333
+ "font-size" => $attr['prefixFontSize'] . $attr['prefixFontSizeType'],
1334
+ "line-height" => $attr['prefixLineHeight'] . $attr['prefixLineHeightType'],
1335
+ "color" => $attr['prefixColor'],
1336
+ ),
1337
+ " .uagb-team__desc-wrap" => array(
1338
+ "margin-top" => $attr['prefixSpace'] . "px",
1339
+ ),
1340
+ " .uagb-team__social-icon a" => array(
1341
+ "color" => $attr['socialColor'],
1342
+ "font-size" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1343
+ "width" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1344
+ "height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1345
+ "line-height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1346
+ ),
1347
+ " .uagb-team__social-icon svg" => array(
1348
+ "fill" => $attr['socialColor'],
1349
+ "width" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1350
+ "height" => $attr['socialFontSize'] . $attr['socialFontSizeType'],
1351
+ ),
1352
+ " .uagb-team__social-icon:hover a" => array(
1353
+ "color" => $attr['socialHoverColor'],
1354
+ ),
1355
+ " .uagb-team__social-icon:hover svg" => array(
1356
+ "fill" => $attr['socialHoverColor'],
1357
+ ),
1358
+ ".uagb-team__image-position-left .uagb-team__social-icon" => array(
1359
+ "margin-right" => $attr['socialSpace'] . "px",
1360
+ "margin-left" => "0",
1361
+ ),
1362
+ ".uagb-team__image-position-right .uagb-team__social-icon" => array(
1363
+ "margin-left" => $attr['socialSpace'] . "px",
1364
+ "margin-right" => "0",
1365
+ ),
1366
+ ".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon" => array(
1367
+ "margin-right" => ( $attr['socialSpace'] / 2 ) . "px",
1368
+ "margin-left" => ( $attr['socialSpace'] / 2 ) . "px",
1369
+ ),
1370
+ ".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon" => array(
1371
+ "margin-right" => $attr['socialSpace'] . "px",
1372
+ "margin-left" => "0",
1373
+ ),
1374
+ ".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon" => array(
1375
+ "margin-left" => $attr['socialSpace'] . "px",
1376
+ "margin-right" => "0",
1377
+ ),
1378
+ " .uagb-team__image-wrap" => array(
1379
+ "margin-top" => $attr['imgTopMargin'] . "px",
1380
+ "margin-bottom" => $attr['imgBottomMargin'] . "px",
1381
+ "margin-left" => $attr['imgLeftMargin'] . "px",
1382
+ "margin-right" => $attr['imgRightMargin'] . "px",
1383
+ "width" => $attr['imgWidth'] . "px"
1384
+ ),
1385
+ );
1386
+
1387
+ if( 'above' == $attr['imgPosition'] ) {
1388
+ if ( 'center' == $attr['align'] ) {
1389
+ $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1390
+ $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1391
+ } else if ( 'left' == $attr['align'] ) {
1392
+ $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1393
+ } else if ( 'right' == $attr['align'] ) {
1394
+ $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1395
+ }
1396
+ }
1397
+
1398
+ if ( "above" != $attr['imgPosition'] ) {
1399
+ if ( "middle" == $attr['imgAlign'] ) {
1400
+ $selectors[" .uagb-team__image-wrap"]["align-self"] = "center";
1401
+ }
1402
+ }
1403
+
1404
+ $selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1405
+ "font-family" => $attr['titleFontFamily'],
1406
+ "font-weight" => $attr['titleFontWeight'],
1407
+ "font-size" => $attr['titleFontSize'] . $attr['titleFontSizeType'],
1408
+ "line-height" => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
1409
+ "color" => $attr['titleColor'],
1410
+ "margin-bottom" => $attr['titleSpace'] . "px",
1411
+ );
1412
+
1413
+ $m_selectors = array(
1414
+ " p.uagb-team__desc" => array(
1415
+ "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
1416
+ ),
1417
+ " .uagb-team__prefix" => array(
1418
+ "font-size" => $attr['prefixFontSizeMobile'] . $attr['prefixFontSizeType'],
1419
+ ),
1420
+ " .uagb-team__social-icon a" => array(
1421
+ "font-size" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1422
+ "width" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1423
+ "height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1424
+ "line-height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1425
+ ),
1426
+ " .uagb-team__social-icon svg" => array(
1427
+ "width" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1428
+ "height" => $attr['socialFontSizeMobile'] . $attr['socialFontSizeType'],
1429
+ ),
1430
+ );
1431
+
1432
+ $t_selectors = array(
1433
+ " p.uagb-team__desc" => array(
1434
+ "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
1435
+ ),
1436
+ " .uagb-team__prefix" => array(
1437
+ "font-size" => $attr['prefixFontSizeTablet'] . $attr['prefixFontSizeType'],
1438
+ ),
1439
+ " .uagb-team__social-icon a" => array(
1440
+ "font-size" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1441
+ "width" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1442
+ "height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1443
+ "line-height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1444
+ ),
1445
+ " .uagb-team__social-icon svg" => array(
1446
+ "width" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1447
+ "height" => $attr['socialFontSizeTablet'] . $attr['socialFontSizeType'],
1448
+ ),
1449
+ );
1450
+
1451
+ $m_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1452
+ "font-size" => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
1453
+ );
1454
+
1455
+ $t_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1456
+ "font-size" => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
1457
+ );
1458
+
1459
+ // @codingStandardsIgnoreEnd
1460
+
1461
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-team-' . $id );
1462
+
1463
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-team-' . $id, 'tablet' );
1464
+
1465
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-team-' . $id, 'mobile' );
1466
+
1467
+ return $desktop . $tablet . $mobile;
1468
+ }
1469
+
1470
+ /**
1471
+ * Get Social Share Block CSS
1472
+ *
1473
+ * @since 0.0.1
1474
+ * @param array $attr The block attributes.
1475
+ * @param string $id The selector ID.
1476
+ * @return array The Widget List.
1477
+ */
1478
+ public static function get_social_share_css( $attr, $id ) { // @codingStandardsIgnoreStart
1479
+
1480
+ $defaults = UAGB_Helper::$block_list['uagb/social-share']['attributes'];
1481
+
1482
+ $attr = array_merge( $defaults, (array) $attr );
1483
+
1484
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1485
+
1486
+ $m_selectors = array();
1487
+ $t_selectors = array();
1488
+
1489
+ $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper"] = array(
1490
+ "margin-left" => 0,
1491
+ "margin-right" => 0,
1492
+ "margin-bottom" => $attr['gap'] . "px"
1493
+ );
1494
+
1495
+ $selectors[".uagb-social-share__layout-vertical .uagb-social-share__wrap"] = array(
1496
+ "flex-direction" => "column"
1497
+ );
1498
+
1499
+ $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper:last-child"] = array(
1500
+ "margin-bottom" => 0
1501
+ );
1502
+
1503
+ $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1504
+ "margin-left" => ( $attr['gap']/2 ) . "px",
1505
+ "margin-right" => ( $attr['gap']/2 ) . "px"
1506
+ );
1507
+
1508
+ $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:first-child"] = array(
1509
+ "margin-left" => 0
1510
+ );
1511
+
1512
+ $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:last-child"] = array(
1513
+ "margin-right" => 0
1514
+ );
1515
+
1516
+ $selectors[" .uagb-ss__wrapper"] = array(
1517
+ "border-radius" => $attr['borderRadius'] . "px"
1518
+ );
1519
+
1520
+ $selectors[" .uagb-ss__source-wrap"] = array(
1521
+ "width" => $attr['size'] . $attr['sizeType'],
1522
+ );
1523
+
1524
+ $selectors[" .uagb-ss__source-wrap svg"] = array(
1525
+ "width" => $attr['size'] . $attr['sizeType'],
1526
+ "height" => $attr['size'] . $attr['sizeType'],
1527
+ );
1528
+
1529
+ $selectors[" .uagb-ss__source-image"] = array(
1530
+ "width" => $attr['size'] . $attr['sizeType']
1531
+ );
1532
+
1533
+ $selectors[" .uagb-ss__source-icon"] = array(
1534
+ "width" => $attr['size'] . $attr['sizeType'],
1535
+ "height" => $attr['size'] . $attr['sizeType'],
1536
+ "font-size" => $attr['size'] . $attr['sizeType'],
1537
+ "line-height" => $attr['size'] . $attr['sizeType']
1538
+ );
1539
+
1540
+
1541
+ $t_selectors[" .uagb-ss__source-wrap"] = array(
1542
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1543
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1544
+ "line-height" => $attr['sizeTablet'] . $attr['sizeType']
1545
+ );
1546
+
1547
+ $t_selectors[" .uagb-ss__source-wrap svg"] = array(
1548
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1549
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1550
+ );
1551
+
1552
+ $t_selectors[" .uagb-ss__source-image"] = array(
1553
+ "width" => $attr['sizeTablet'] . $attr['sizeType']
1554
+ );
1555
+
1556
+ $t_selectors[" .uagb-ss__source-icon"] = array(
1557
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1558
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1559
+ "font-size" => $attr['sizeTablet'] . $attr['sizeType'],
1560
+ "line-height" => $attr['sizeTablet'] . $attr['sizeType']
1561
+ );
1562
+ $t_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1563
+ "margin-left" => 0,
1564
+ "margin-right" => 0
1565
+ );
1566
+
1567
+
1568
+ $m_selectors[" .uagb-ss__source-wrap"] = array(
1569
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1570
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1571
+ "line-height" => $attr['sizeMobile'] . $attr['sizeType']
1572
+ );
1573
+
1574
+ $m_selectors[" .uagb-ss__source-wrap svg"] = array(
1575
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1576
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1577
+ );
1578
+
1579
+ $m_selectors[" .uagb-ss__source-image"] = array(
1580
+ "width" => $attr['sizeMobile'] . $attr['sizeType']
1581
+ );
1582
+
1583
+ $m_selectors[" .uagb-ss__source-icon"] = array(
1584
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1585
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1586
+ "font-size" => $attr['sizeMobile'] . $attr['sizeType'],
1587
+ "line-height" => $attr['sizeMobile'] . $attr['sizeType']
1588
+ );
1589
+ $m_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1590
+ "margin-left" => 0,
1591
+ "margin-right" => 0
1592
+ );
1593
+
1594
+
1595
+ foreach ( $attr['socials'] as $key => $social ) {
1596
+
1597
+ $social['icon_color'] = ( isset( $social['icon_color'] ) ) ? $social['icon_color'] : '';
1598
+ $social['icon_hover_color'] = ( isset( $social['icon_hover_color'] ) ) ? $social['icon_hover_color'] : '';
1599
+
1600
+ if ( $attr['social_count'] <= $key ) {
1601
+ break;
1602
+ }
1603
+
1604
+ $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1605
+ "color" => $social['icon_color'],
1606
+ "padding" => $attr['bgSize'] . $attr['bgSizeType']
1607
+ );
1608
+
1609
+ $m_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1610
+ "padding" => $attr['bgSizeMobile'] . $attr['bgSizeType']
1611
+ );
1612
+
1613
+ $t_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1614
+ "padding" => $attr['bgSizeTablet'] . $attr['bgSizeType']
1615
+ );
1616
+
1617
+ $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link svg"] = array (
1618
+ "fill" => $social['icon_color'],
1619
+ );
1620
+
1621
+ $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link"] = array (
1622
+ "color" => $social['icon_hover_color']
1623
+ );
1624
+
1625
+ $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link svg"] = array (
1626
+ "fill" => $social['icon_hover_color']
1627
+ );
1628
+
1629
+ $selectors[" .uagb-ss-repeater-" . $key] = array (
1630
+ "background" => $social['icon_bg_color']
1631
+ );
1632
+
1633
+ $selectors[" .uagb-ss-repeater-" . $key . ":hover"] = array (
1634
+ "background" => $social['icon_bg_hover_color']
1635
+ );
1636
+ }
1637
+
1638
+ $selectors[" .uagb-social-share__wrap"] = array(
1639
+ "justify-content" => $alignment,
1640
+ "-webkit-box-pack" => $alignment,
1641
+ "-ms-flex-pack" => $alignment,
1642
+ "justify-content" => $alignment,
1643
+ "-webkit-box-align" => $alignment,
1644
+ "-ms-flex-align" => $alignment,
1645
+ "align-items" => $alignment,
1646
+ );
1647
+
1648
+ if ( 'horizontal' == $attr['social_layout'] ) {
1649
+
1650
+ if ( "desktop" == $attr['stack'] ) {
1651
+
1652
+ $selectors[" .uagb-ss__wrapper"] = array (
1653
+ "margin-left" => 0,
1654
+ "margin-right" => 0,
1655
+ "margin-bottom" => $attr['gap'] . "px"
1656
+ );
1657
+
1658
+ $selectors[" .uagb-social-share__wrap"] = array (
1659
+ "flex-direction" => "column"
1660
+ );
1661
+
1662
+ $selectors[" .uagb-ss__wrapper:last-child"] = array (
1663
+ "margin-bottom" => 0
1664
+ );
1665
+
1666
+ } else if ( "tablet" == $attr['stack'] ) {
1667
+
1668
+ $t_selectors[" .uagb-ss__wrapper"] = array (
1669
+ "margin-left" => 0,
1670
+ "margin-right" => 0,
1671
+ "margin-bottom" => $attr['gap'] . "px"
1672
+ );
1673
+
1674
+ $t_selectors[" .uagb-social-share__wrap"] = array (
1675
+ "flex-direction" => "column"
1676
+ );
1677
+
1678
+ $t_selectors[" .uagb-ss__wrapper:last-child"] = array (
1679
+ "margin-bottom" => 0
1680
+ );
1681
+
1682
+ } else if ( "mobile" == $attr['stack'] ) {
1683
+
1684
+ $m_selectors[" .uagb-ss__wrapper"] = array (
1685
+ "margin-left" => 0,
1686
+ "margin-right" => 0,
1687
+ "margin-bottom" => $attr['gap'] . "px"
1688
+ );
1689
+
1690
+ $m_selectors[" .uagb-social-share__wrap"] = array (
1691
+ "flex-direction" => "column"
1692
+ );
1693
+
1694
+ $m_selectors[" .uagb-ss__wrapper:last-child"] = array (
1695
+ "margin-bottom" => 0
1696
+ );
1697
+ }
1698
+ }
1699
+
1700
+ // @codingStandardsIgnoreEnd
1701
+
1702
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-social-share-' . $id );
1703
+
1704
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-social-share-' . $id, 'tablet' );
1705
+
1706
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-social-share-' . $id, 'mobile' );
1707
+
1708
+ return $desktop . $tablet . $mobile;
1709
+ }
1710
+
1711
+ /**
1712
+ * Get Icon List Block CSS
1713
+ *
1714
+ * @since 0.0.1
1715
+ * @param array $attr The block attributes.
1716
+ * @param string $id The selector ID.
1717
+ * @return array The Widget List.
1718
+ */
1719
+ public static function get_icon_list_css( $attr, $id ) { // @codingStandardsIgnoreStart
1720
+
1721
+ $defaults = UAGB_Helper::$block_list['uagb/icon-list']['attributes'];
1722
+
1723
+ $attr = array_merge( $defaults, (array) $attr );
1724
+
1725
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1726
+
1727
+ $m_selectors = array();
1728
+ $t_selectors = array();
1729
+
1730
+ $selectors = array(
1731
+ ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper" => array(
1732
+ "margin-left" => 0,
1733
+ "margin-right" => 0,
1734
+ "margin-bottom" => $attr['gap'] . "px"
1735
+ ),
1736
+ ".uagb-icon-list__layout-vertical .uagb-icon-list__wrap" => array(
1737
+ "flex-direction" => "column"
1738
+ ),
1739
+ ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper:last-child" => array(
1740
+ "margin-bottom" => 0
1741
+ ),
1742
+ ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper" => array(
1743
+ "margin-left" => ( $attr['gap']/2 ) . "px",
1744
+ "margin-right" => ( $attr['gap']/2 ) . "px"
1745
+ ),
1746
+ ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:first-child" => array(
1747
+ "margin-left" => 0
1748
+ ),
1749
+ ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:last-child" => array(
1750
+ "margin-right" => 0
1751
+ ),
1752
+ // Desktop Icon Size CSS starts.
1753
+ " .uagb-icon-list__source-image" => array(
1754
+ "width" => $attr['size'] . $attr['sizeType']
1755
+ ),
1756
+ " .uagb-icon-list__source-icon" => array(
1757
+ "width" => $attr['size'] . $attr['sizeType'],
1758
+ "height" => $attr['size'] . $attr['sizeType'],
1759
+ "font-size" => $attr['size'] . $attr['sizeType']
1760
+ ),
1761
+ " .uagb-icon-list__source-icon svg" => array(
1762
+ "width" => $attr['size'] . $attr['sizeType'],
1763
+ "height" => $attr['size'] . $attr['sizeType'],
1764
+ ),
1765
+ " .uagb-icon-list__source-icon:before"=> array(
1766
+ "width" => $attr['size'] . $attr['sizeType'],
1767
+ "height" => $attr['size'] . $attr['sizeType'],
1768
+ "font-size" => $attr['size'] . $attr['sizeType']
1769
+ ),
1770
+ " .uagb-icon-list__label-wrap"=> array(
1771
+ "text-align" => $attr['align']
1772
+ ),
1773
+
1774
+ " .uagb-icon-list__source-wrap"=> array(
1775
+ "padding" => $attr['bgSize'] . "px",
1776
+ "border-radius" => $attr['borderRadius'] . "px",
1777
+ "border-style" => "solid",
1778
+ "border-width" => $attr['border'] . "px"
1779
+ ),
1780
+ " .uagb-icon-list__wrap"=> array(
1781
+ "justify-content" => $alignment,
1782
+ "-webkit-box-pack" => $alignment,
1783
+ "-ms-flex-pack" => $alignment,
1784
+ "justify-content" => $alignment,
1785
+ "-webkit-box-align" => $alignment,
1786
+ "-ms-flex-align" => $alignment,
1787
+ "align-items" => $alignment,
1788
+ )
1789
+ );
1790
+
1791
+ if ( 'right' == $attr['align'] ) {
1792
+ $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1793
+ "margin-left" => $attr['inner_gap'] . "px"
1794
+ );
1795
+ $selectors[" .uagb-icon-list__content-wrap"] = array(
1796
+ "flex-direction" => "row-reverse"
1797
+ );
1798
+ } else {
1799
+ $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1800
+ "margin-right" => $attr['inner_gap'] . "px"
1801
+ );
1802
+ }
1803
+ // Desktop Icon Size CSS ends.
1804
+
1805
+ // Mobile Icon Size CSS starts.
1806
+ $m_selectors = array(
1807
+ " .uagb-icon-list__source-image" => array(
1808
+ "width" => $attr['sizeMobile'] . $attr['sizeType']
1809
+ ),
1810
+ " .uagb-icon-list__source-icon" => array(
1811
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1812
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1813
+ "font-size" => $attr['sizeMobile'] . $attr['sizeType']
1814
+ ),
1815
+ " .uagb-icon-list__source-icon svg" => array(
1816
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1817
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1818
+ ),
1819
+ " .uagb-icon-list__source-icon:before" => array(
1820
+ "width" => $attr['sizeMobile'] . $attr['sizeType'],
1821
+ "height" => $attr['sizeMobile'] . $attr['sizeType'],
1822
+ "font-size" => $attr['sizeMobile'] . $attr['sizeType']
1823
+ ),
1824
+ );
1825
+ // Mobile Icon Size CSS ends.
1826
+
1827
+ // Tablet Icon Size CSS starts.
1828
+ $t_selectors = array(
1829
+ " .uagb-icon-list__source-image" => array(
1830
+ "width" => $attr['sizeTablet'] . $attr['sizeType']
1831
+ ),
1832
+ " .uagb-icon-list__source-icon" => array(
1833
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1834
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1835
+ "font-size" => $attr['sizeTablet'] . $attr['sizeType']
1836
+ ),
1837
+ " .uagb-icon-list__source-icon svg" => array(
1838
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1839
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1840
+ ),
1841
+ " .uagb-icon-list__source-icon:before" => array(
1842
+ "width" => $attr['sizeTablet'] . $attr['sizeType'],
1843
+ "height" => $attr['sizeTablet'] . $attr['sizeType'],
1844
+ "font-size" => $attr['sizeTablet'] . $attr['sizeType']
1845
+ ),
1846
+ );
1847
+ // Tablet Icon Size CSS ends.
1848
+
1849
+ foreach ( $attr['icons'] as $key => $icon ) {
1850
+
1851
+ $icon['icon_color'] = ( isset( $icon['icon_color'] ) ) ? $icon['icon_color'] : '';
1852
+ $icon['icon_hover_color'] = ( isset( $icon['icon_hover_color'] ) ) ? $icon['icon_hover_color'] : '';
1853
+ $icon['icon_bg_color'] = ( isset( $icon['icon_bg_color'] ) ) ? $icon['icon_bg_color'] : '';
1854
+ $icon['icon_bg_hover_color'] = ( isset( $icon['icon_bg_hover_color'] ) ) ? $icon['icon_bg_hover_color'] : '';
1855
+ $icon['icon_border_color'] = ( isset( $icon['icon_border_color'] ) ) ? $icon['icon_border_color'] : '';
1856
+ $icon['icon_border_hover_color'] = ( isset( $icon['icon_border_hover_color'] ) ) ? $icon['icon_border_hover_color'] : '';
1857
+ $icon['label_color'] = ( isset( $icon['label_color'] ) ) ? $icon['label_color'] : '';
1858
+ $icon['label_hover_color'] = ( isset( $icon['label_hover_color'] ) ) ? $icon['label_hover_color'] : '';
1859
+
1860
+ if ( $attr['icon_count'] <= $key ) {
1861
+ break;
1862
+ }
1863
+
1864
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon"] = array (
1865
+ "color" => $icon['icon_color']
1866
+ );
1867
+
1868
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon svg"] = array (
1869
+ "fill" => $icon['icon_color']
1870
+ );
1871
+
1872
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon"] = array (
1873
+ "color" => $icon['icon_hover_color']
1874
+ );
1875
+
1876
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon svg"] = array (
1877
+ "fill" => $icon['icon_hover_color']
1878
+ );
1879
+
1880
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1881
+ "color" => $icon['label_color'],
1882
+ "font-size" => $attr['fontSize'] . $attr['fontSizeType'],
1883
+ 'font-family' => $attr['fontFamily'],
1884
+ 'font-weight' => $attr['fontWeight'],
1885
+ 'line-height' => $attr['lineHeight'] . $attr['lineHeightType'],
1886
+ );
1887
+
1888
+ $m_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1889
+ "font-size" => $attr['fontSizeMobile'] . $attr['fontSizeType'],
1890
+ 'line-height' => $attr['lineHeightMobile'] . $attr['lineHeightType'],
1891
+ );
1892
+
1893
+ $t_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
1894
+ "font-size" => $attr['fontSizeTablet'] . $attr['fontSizeType'],
1895
+ 'line-height' => $attr['lineHeightTablet'] . $attr['lineHeightType'],
1896
+ );
1897
+
1898
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__label"] = array (
1899
+ "color" => $icon['label_hover_color']
1900
+ );
1901
+
1902
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-wrap"] = array(
1903
+ "background" => $icon['icon_bg_color'],
1904
+ "border-color" => $icon['icon_border_color'],
1905
+ );
1906
+
1907
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-wrap"] = array(
1908
+ "background" => $icon['icon_bg_hover_color'],
1909
+ "border-color" => $icon['icon_border_hover_color']
1910
+ );
1911
+ }
1912
+
1913
+ if ( 'horizontal' == $attr['icon_layout'] ) {
1914
+
1915
+ if ( "tablet" == $attr['stack'] ) {
1916
+
1917
+ $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
1918
+ "margin-left" => 0,
1919
+ "margin-right" => 0,
1920
+ "margin-bottom" => $attr['gap'] . "px"
1921
+ );
1922
+
1923
+ $t_selectors[" .uagb-icon-list__wrap"] = array (
1924
+ "flex-direction" => "column"
1925
+ );
1926
+
1927
+ $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
1928
+ "margin-bottom" => 0
1929
+ );
1930
+
1931
+ } else if ( "mobile" == $attr['stack'] ) {
1932
+
1933
+ $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
1934
+ "margin-left" => 0,
1935
+ "margin-right" => 0,
1936
+ "margin-bottom" => $attr['gap'] . "px"
1937
+ );
1938
+
1939
+ $m_selectors[" .uagb-icon-list__wrap"] = array (
1940
+ "flex-direction" => "column"
1941
+ );
1942
+
1943
+ $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
1944
+ "margin-bottom" => 0
1945
+ );
1946
+ }
1947
+ }
1948
+
1949
+ // @codingStandardsIgnoreEnd
1950
+
1951
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-icon-list-' . $id );
1952
+
1953
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-icon-list-' . $id, 'tablet' );
1954
+
1955
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-icon-list-' . $id, 'mobile' );
1956
+
1957
+ return $desktop . $tablet . $mobile;
1958
+ }
1959
+
1960
+ /**
1961
+ * Get Content Timeline Block CSS
1962
+ *
1963
+ * @since 0.0.1
1964
+ * @param array $attr The block attributes.
1965
+ * @param string $id The selector ID.
1966
+ * @return array The Widget List.
1967
+ */
1968
+ public static function get_content_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
1969
+
1970
+ $defaults = UAGB_Helper::$block_list['uagb/content-timeline']['attributes'];
1971
+
1972
+ $attr = array_merge( $defaults, (array) $attr );
1973
+
1974
+ $selectors = array();
1975
+ $t_selectors = array();
1976
+ $m_selectors = array();
1977
+
1978
+ $selectors = array(
1979
+ " .uagb-timeline__heading" => array(
1980
+ "text-align" => $attr['align'],
1981
+ "color" => $attr['headingColor'],
1982
+ "font-size" => $attr['headFontSize'] . $attr['headFontSizeType'],
1983
+ 'font-family' => $attr['headFontFamily'],
1984
+ 'font-weight' => $attr['headFontWeight'],
1985
+ 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
1986
+ ),
1987
+ " .uagb-timeline__heading-text" => array(
1988
+ "margin-bottom" => $attr['headSpace'] . "px"
1989
+ ),
1990
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
1991
+ 'color'=> $attr['iconFocus'],
1992
+ ),
1993
+ );
1994
+
1995
+ $desktop_selectors = self::get_timeline_selectors( $attr );
1996
+ $selectors = array_merge( $selectors, $desktop_selectors );
1997
+
1998
+ $t_selectors = array(
1999
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
2000
+ "font-size" => $attr['dateFontsizeTablet'] . $attr['dateFontsizeType'],
2001
+ 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
2002
+ ),
2003
+ " .uagb-timeline__date-new" => array(
2004
+ "font-size" => $attr['dateFontsizeTablet'] . $attr['dateFontsizeType'],
2005
+ 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
2006
+ ),
2007
+ " .uagb-timeline__heading" => array(
2008
+ "font-size" => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
2009
+ 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
2010
+ ),
2011
+ " .uagb-timeline-desc-content" => array(
2012
+ "font-size" => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
2013
+ 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
2014
+ ),
2015
+ );
2016
+
2017
+ $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
2018
+ $t_selectors = array_merge( $t_selectors, $tablet_selectors );
2019
+
2020
+ $m_selectors = array(
2021
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
2022
+ "font-size" => $attr['dateFontsizeMobile'] . $attr['dateFontsizeType'],
2023
+ 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
2024
+ ),
2025
+ " .uagb-timeline__date-new" => array(
2026
+ "font-size" => $attr['dateFontsizeMobile'] . $attr['dateFontsizeType'],
2027
+ 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
2028
+ ),
2029
+ " .uagb-timeline__heading" => array(
2030
+ "font-size" => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
2031
+ 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
2032
+ ),
2033
+ " .uagb-timeline-desc-content" => array(
2034
+ "font-size" => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
2035
+ 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
2036
+ ),
2037
+ );
2038
+
2039
+ $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2040
+
2041
+ $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2042
+
2043
+ // @codingStandardsIgnoreEnd
2044
+
2045
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2046
+
2047
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-ctm-' . $id, 'tablet' );
2048
+
2049
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-ctm-' . $id, 'mobile' );
2050
+
2051
+ return $desktop . $tablet . $mobile;
2052
+ }
2053
+
2054
+ /**
2055
+ * Get Content Timeline Block CSS
2056
+ *
2057
+ * @since 0.0.1
2058
+ * @param array $attr The block attributes.
2059
+ * @param string $id The selector ID.
2060
+ * @return array The Widget List.
2061
+ */
2062
+ public static function get_post_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
2063
+
2064
+ $defaults = UAGB_Helper::$block_list['uagb/post-timeline']['attributes'];
2065
+
2066
+ $attr = array_merge( $defaults, (array) $attr );
2067
+ $t_selectors = array();
2068
+
2069
+ $selectors = array(
2070
+ " .uagb-timeline__heading" => array(
2071
+ "text-align" => $attr['align'],
2072
+ ),
2073
+ " .uagb-timeline__author" => array(
2074
+ "text-align" => $attr['align'],
2075
+ "margin-bottom" => $attr['authorSpace'] . "px"
2076
+ ),
2077
+ " .uagb-timeline__link_parent" => array(
2078
+ "text-align" => $attr['align'],
2079
+ ),
2080
+ " .uagb-timeline__image a" => array(
2081
+ "text-align" => $attr['align'],
2082
+ ),
2083
+ " .uagb-timeline__author-link" => array(
2084
+ "color" => $attr['authorColor'],
2085
+ "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2086
+ 'font-family' => $attr['authorFontFamily'],
2087
+ 'font-weight' => $attr['authorFontWeight'],
2088
+ 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2089
+ ),
2090
+ " .dashicons-admin-users" => array(
2091
+ "color" => $attr['authorColor'],
2092
+ "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2093
+ 'font-weight' => $attr['authorFontWeight'],
2094
+ 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2095
+ ),
2096
+ " .uagb-timeline__link" => array(
2097
+ "color" => $attr['ctaColor'],
2098
+ "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2099
+ 'font-family' => $attr['ctaFontFamily'],
2100
+ 'font-weight' => $attr['ctaFontWeight'],
2101
+ 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2102
+ "background-color" => $attr['ctaBackground'],
2103
+ ),
2104
+ " .uagb-timeline__heading a" => array(
2105
+ "text-align" => $attr['align'],
2106
+ "color" => $attr['headingColor'],
2107
+ "font-size" => $attr['headFontSize'] . $attr['headFontSizeType'],
2108
+ 'font-family' => $attr['headFontFamily'],
2109
+ 'font-weight' => $attr['headFontWeight'],
2110
+ 'line-height' => $attr['headLineHeight'] . $attr['headLineHeightType'],
2111
+ ),
2112
+ " .uagb-timeline__heading-text" => array(
2113
+ "margin-bottom" => $attr['headSpace'] . "px"
2114
+ ),
2115
+ " .uagb_timeline__cta-enable .uagb-timeline-desc-content" => array(
2116
+ "margin-bottom" => $attr['contentSpace'] . "px",
2117
+ ),
2118
+ ' .uagb-content' => array(
2119
+ 'padding'=> $attr['contentPadding'].'px',
2120
+ ),
2121
+ );
2122
+
2123
+
2124
+
2125
+ $desktop_selectors = self::get_timeline_selectors( $attr );
2126
+ $selectors = array_merge( $selectors, $desktop_selectors );
2127
+
2128
+ $t_selectors = array(
2129
+ " .uagb-timeline__author-link" => array(
2130
+ "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2131
+ 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2132
+ ),
2133
+ " .dashicons-admin-users" => array(
2134
+ "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2135
+ 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2136
+ ),
2137
+ " .uagb-timeline__link" => array(
2138
+ "font-size" => $attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2139
+ 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2140
+ ),
2141
+ " .uagb-timeline__heading a" => array(
2142
+ "font-size" => $attr['headFontSizeTablet'] . $attr['headFontSizeType'],
2143
+ 'line-height' => $attr['headLineHeightTablet'] . $attr['headLineHeightType'],
2144
+ ),
2145
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2146
+ "text-align" => 'left',
2147
+ ),
2148
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2149
+ "text-align" => 'left',
2150
+ ),
2151
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a" => array(
2152
+ 'text-align' => 'left',
2153
+ ),
2154
+ );
2155
+
2156
+ $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
2157
+ $t_selectors = array_merge( $t_selectors, $tablet_selectors );
2158
+
2159
+ // Mobile responsive CSS.
2160
+ $m_selectors = array(
2161
+ " .uagb-timeline__author-link" => array(
2162
+ "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2163
+ 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2164
+ ),
2165
+ " .dashicons-admin-users" => array(
2166
+ "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2167
+ 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2168
+ ),
2169
+ " .uagb-timeline__link" => array(
2170
+ "font-size" => $attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2171
+ 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2172
+ ),
2173
+ " .uagb-timeline__heading a" => array(
2174
+ "font-size" => $attr['headFontSizeMobile'] . $attr['headFontSizeType'],
2175
+ 'line-height' => $attr['headLineHeightMobile'] . $attr['headLineHeightType'],
2176
+ ),
2177
+ " .uagb-timeline__heading" => array(
2178
+ "text-align" => $attr['align'],
2179
+ ),
2180
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2181
+ "text-align" => 'left',
2182
+ ),
2183
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2184
+ "text-align" => 'left',
2185
+ ),
2186
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a" => array(
2187
+ 'text-align' => 'left',
2188
+ ),
2189
+ );
2190
+
2191
+ $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2192
+ $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2193
+
2194
+ // @codingStandardsIgnoreEnd
2195
+
2196
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2197
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-ctm-' . $id, 'tablet' );
2198
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-ctm-' . $id, 'mobile' );
2199
+
2200
+ return $desktop . $tablet . $mobile;
2201
+ }
2202
+
2203
+ /**
2204
+ * Get Restaurant Menu Block CSS
2205
+ *
2206
+ * @since 1.0.2
2207
+ * @param array $attr The block attributes.
2208
+ * @param string $id The selector ID.
2209
+ * @return array The Widget List.
2210
+ */
2211
+ public static function get_restaurant_menu_css( $attr, $id ) { // @codingStandardsIgnoreStart
2212
+
2213
+ $defaults = UAGB_Helper::$block_list['uagb/restaurant-menu']['attributes'];
2214
+
2215
+ $attr = array_merge( $defaults, (array) $attr );
2216
+
2217
+ $m_selectors = array();
2218
+ $t_selectors = array();
2219
+
2220
+ $align = $attr['headingAlign'];
2221
+ if( 'left' === $align ){
2222
+ $align = 'flex-start';
2223
+ }else if( 'right' === $align ){
2224
+ $align = 'flex-end';
2225
+ }
2226
+
2227
+ $selectors = array(
2228
+ " .uagb-rest_menu__wrap" => array(
2229
+ 'padding-left' => ($attr['columnGap']/2) . "px",
2230
+ 'padding-right' => ($attr['columnGap']/2). "px",
2231
+ 'margin-bottom' => $attr['rowGap'] . "px"
2232
+ ),
2233
+ " .uagb-rest_menu__wrap .uagb-rm__image-content" => array(
2234
+ 'padding-left' => $attr['imgHrPadding'] .'px',
2235
+ 'padding-right' => $attr['imgHrPadding'] .'px',
2236
+ 'padding-top' => $attr['imgVrPadding'] .'px',
2237
+ 'padding-bottom' => $attr['imgVrPadding'] .'px',
2238
+ ),
2239
+ " .uagb-rm__image img" => array(
2240
+ 'width'=> $attr['imageWidth'] .'px',
2241
+ 'max-width'=> $attr['imageWidth'] .'px',
2242
+ ),
2243
+ " .uagb-rm__separator-parent" => array(
2244
+ 'justify-content' => $align,
2245
+ ),
2246
+ " .uagb-rm__content" => array(
2247
+ 'text-align' => $attr['headingAlign'] ,
2248
+ 'padding-left' => $attr['contentHrPadding'] . 'px',
2249
+ 'padding-right' => $attr['contentHrPadding'] . 'px',
2250
+ 'padding-top' => $attr['contentVrPadding'] . 'px',
2251
+ 'padding-bottom' => $attr['contentVrPadding'] . 'px',
2252
+ ),
2253
+ " .uagb-rm__title" => array(
2254
+ 'font-size' => $attr['titleFontSize'] .$attr['titleFontSizeType'],
2255
+ 'color' => $attr['titleColor'] ,
2256
+ 'margin-bottom' => $attr['titleSpace'] .'px',
2257
+ 'font-family' => $attr['titleFontFamily'],
2258
+ 'font-weight' => $attr['titleFontWeight'],
2259
+ 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2260
+ ),
2261
+ " .uagb-rm__price" => array(
2262
+ 'font-size' => $attr['priceFontSize'].$attr['priceFontSizeType'],
2263
+ 'font-family' => $attr['priceFontFamily'],
2264
+ 'font-weight' => $attr['priceFontWeight'],
2265
+ 'line-height' => $attr['priceLineHeight'] . $attr['priceLineHeightType'],
2266
+ 'color' => $attr['priceColor'],
2267
+ ),
2268
+ " .uagb-rm__desc" => array(
2269
+ 'font-size' => $attr['descFontSize'].$attr['descFontSizeType'],
2270
+ 'font-family' => $attr['descFontFamily'],
2271
+ 'font-weight' => $attr['descFontWeight'],
2272
+ 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
2273
+ 'color'=> $attr['descColor'],
2274
+ 'margin-bottom'=> $attr['descSpace'].'px',
2275
+ ),
2276
+ );
2277
+
2278
+ if ( $attr["seperatorStyle"] != "none" ) {
2279
+ $selectors[" .uagb-rest_menu__wrap .uagb-rm__separator"] = array(
2280
+ 'border-top-color'=> $attr['seperatorColor'],
2281
+ 'border-top-style'=> $attr['seperatorStyle'],
2282
+ 'border-top-width'=> $attr['seperatorThickness'] . "px",
2283
+ 'width'=> $attr['seperatorWidth'] . "%",
2284
+ );
2285
+ }
2286
+
2287
+ $selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)'] = array(
2288
+ 'margin-left'=> 0,
2289
+ 'clear'=> 'left',
2290
+ );
2291
+
2292
+ $t_selectors = array(
2293
+ ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2294
+ 'margin-left'=> 'unset',
2295
+ 'clear'=> 'unset',
2296
+ ),
2297
+ ' .uagb-rest_menu__wrap.uagb-rm__tablet-column-'.$attr['tcolumns'].':nth-child('.$attr['tcolumns'].'n+1)' => array(
2298
+ 'margin-left'=> '0%',
2299
+ 'clear'=> 'left',
2300
+ ),
2301
+ " .uagb-rm__title" => array(
2302
+ "font-size" => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2303
+ 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2304
+ ),
2305
+ " .uagb-rm__desc" => array(
2306
+ "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
2307
+ 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
2308
+ ),
2309
+ " .uagb-rm__price" => array(
2310
+ "font-size" => $attr['priceFontSizeTablet'] . $attr['priceFontSizeType'],
2311
+ 'line-height' => $attr['priceLineHeightTablet'] . $attr['priceLineHeightType'],
2312
+ )
2313
+ );
2314
+
2315
+ $m_selectors = array(
2316
+ ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2317
+ 'margin-left'=> 'unset',
2318
+ 'clear'=> 'unset',
2319
+ ),
2320
+ ' .uagb-rest_menu__wrap.uagb-rm__mobile-column-'.$attr['mcolumns'].':nth-child('.$attr['mcolumns'].'n+1)' => array(
2321
+ 'margin-left'=> '0%',
2322
+ 'clear'=> 'left',
2323
+ ),
2324
+ " .uagb-rm__title" => array(
2325
+ "font-size" => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2326
+ 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2327
+ ),
2328
+ " .uagb-rm__desc" => array(
2329
+ "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
2330
+ 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
2331
+ ),
2332
+ " .uagb-rm__price" => array(
2333
+ "font-size" => $attr['priceFontSizeMobile'] . $attr['priceFontSizeType'],
2334
+ 'line-height' => $attr['priceLineHeightMobile'] . $attr['priceLineHeightType'],
2335
+ )
2336
+ );
2337
+
2338
+ // @codingStandardsIgnoreEnd
2339
+
2340
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-rm-' . $id );
2341
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-rm-' . $id, 'tablet' );
2342
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-rm-' . $id, 'mobile' );
2343
+
2344
+ return $desktop . $tablet . $mobile;
2345
+ }
2346
+
2347
+ /**
2348
+ * Get Post Grid Block CSS
2349
+ *
2350
+ * @since 1.4.0
2351
+ * @param array $attr The block attributes.
2352
+ * @param string $id The selector ID.
2353
+ * @return array The Widget List.
2354
+ */
2355
+ public static function get_post_grid_css( $attr, $id ) { // @codingStandardsIgnoreStart
2356
+
2357
+ $defaults = UAGB_Helper::$block_list['uagb/post-grid']['attributes'];
2358
+
2359
+ $attr = array_merge( $defaults, (array) $attr );
2360
+
2361
+ $selectors = self::get_post_selectors( $attr );
2362
+
2363
+ $m_selectors = self::get_post_mobile_selectors( $attr );
2364
+
2365
+ $t_selectors = self::get_post_tablet_selectors( $attr );
2366
+
2367
+ // @codingStandardsIgnoreEnd
2368
+
2369
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__grid-' . $id );
2370
+
2371
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__grid-' . $id, 'tablet' );
2372
+
2373
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__grid-' . $id, 'mobile' );
2374
+
2375
+ return $desktop . $tablet . $mobile;
2376
+ }
2377
+
2378
+ /**
2379
+ * Get Post Carousel Block CSS
2380
+ *
2381
+ * @since 1.4.0
2382
+ * @param array $attr The block attributes.
2383
+ * @param string $id The selector ID.
2384
+ * @return array The Widget List.
2385
+ */
2386
+ public static function get_post_carousel_css( $attr, $id ) { // @codingStandardsIgnoreStart
2387
+
2388
+ $defaults = UAGB_Helper::$block_list['uagb/post-carousel']['attributes'];
2389
+
2390
+ $attr = array_merge( $defaults, (array) $attr );
2391
+
2392
+ $selectors = self::get_post_selectors( $attr );
2393
+
2394
+ $m_selectors = self::get_post_mobile_selectors( $attr );
2395
+
2396
+ $t_selectors = self::get_post_tablet_selectors( $attr );
2397
+
2398
+ $selectors[" .slick-arrow"] = array(
2399
+ "border-color" => $attr['arrowColor']
2400
+ );
2401
+
2402
+ $selectors[" .slick-arrow span"] = array(
2403
+ "color" => $attr['arrowColor'],
2404
+ "font-size" => $attr['arrowSize'] . "px",
2405
+ "width" => $attr['arrowSize'] . "px",
2406
+ "height" => $attr['arrowSize'] . "px"
2407
+ );
2408
+
2409
+ $selectors[" .slick-arrow svg"] = array(
2410
+ "fill" => $attr['arrowColor'],
2411
+ "width" => $attr['arrowSize'] . "px",
2412
+ "height" => $attr['arrowSize'] . "px"
2413
+ );
2414
+
2415
+ $selectors[" .slick-arrow"] = array(
2416
+ "border-color" => $attr['arrowColor'],
2417
+ "border-width" => $attr['arrowBorderSize'] . "px",
2418
+ "border-radius" => $attr['arrowBorderRadius'] . "px"
2419
+ );
2420
+
2421
+ $selectors[".uagb-post-grid ul.slick-dots li.slick-active button:before"] = array(
2422
+ "color" => $attr['arrowColor']
2423
+ );
2424
+
2425
+ $selectors[".uagb-slick-carousel ul.slick-dots li button:before"] = array(
2426
+ "color" => $attr['arrowColor']
2427
+ );
2428
+
2429
+ if ( isset( $attr['arrowDots'] ) && 'dots' == $attr['arrowDots'] ) {
2430
+
2431
+ $selectors[".uagb-slick-carousel"] = array(
2432
+ "padding" => "0 0 35px 0"
2433
+ );
2434
+ }
2435
+
2436
+ // @codingStandardsIgnoreEnd
2437
+
2438
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__carousel-' . $id );
2439
+
2440
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__carousel-' . $id, 'tablet' );
2441
+
2442
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__carousel-' . $id, 'mobile' );
2443
+
2444
+ return $desktop . $tablet . $mobile;
2445
+ }
2446
+
2447
+ /**
2448
+ * Get Post Masonry Block CSS
2449
+ *
2450
+ * @since 1.4.0
2451
+ * @param array $attr The block attributes.
2452
+ * @param string $id The selector ID.
2453
+ * @return array The Widget List.
2454
+ */
2455
+ public static function get_post_masonry_css( $attr, $id ) { // @codingStandardsIgnoreStart
2456
+
2457
+ $defaults = UAGB_Helper::$block_list['uagb/post-masonry']['attributes'];
2458
+
2459
+ $attr = array_merge( $defaults, (array) $attr );
2460
+
2461
+ $selectors = self::get_post_selectors( $attr );
2462
+
2463
+ $m_selectors = self::get_post_mobile_selectors( $attr );
2464
+
2465
+ $t_selectors = self::get_post_tablet_selectors( $attr );
2466
+
2467
+ // @codingStandardsIgnoreEnd
2468
+
2469
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__masonry-' . $id );
2470
+
2471
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-post__masonry-' . $id, 'tablet' );
2472
+
2473
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-post__masonry-' . $id, 'mobile' );
2474
+
2475
+ return $desktop . $tablet . $mobile;
2476
+ }
2477
+
2478
+ /**
2479
+ * Get Post Block Selectors CSS
2480
+ *
2481
+ * @param array $attr The block attributes.
2482
+ * @since 1.4.0
2483
+ */
2484
+ public static function get_post_selectors( $attr ) { // @codingStandardsIgnoreStart
2485
+ return array(
2486
+ " .uagb-post__items" => array(
2487
+ "margin-right" => ( -$attr['rowGap']/2 ) . "px",
2488
+ "margin-left" => ( -$attr['rowGap']/2 ) . "px",
2489
+ ),
2490
+ " .uagb-post__items article" => array(
2491
+ "padding-right" => ( $attr['rowGap']/2 ) . "px",
2492
+ "padding-left" => ( $attr['rowGap']/2 ) . "px",
2493
+ "margin-bottom" => ( $attr['columnGap'] ) . "px"
2494
+ ),
2495
+ " .uagb-post__inner-wrap" => array(
2496
+ "background" => $attr['bgColor']
2497
+ ),
2498
+ " .uagb-post__text" => array(
2499
+ "padding" => ( $attr['contentPadding'] ) . "px",
2500
+ "text-align" => $attr['align']
2501
+ ),
2502
+ " .uagb-post__text .uagb-post__title" => array(
2503
+ "color"=> $attr['titleColor'],
2504
+ "font-size"=> $attr['titleFontSize'] . $attr['titleFontSizeType'],
2505
+ 'font-family' => $attr['titleFontFamily'],
2506
+ 'font-weight' => $attr['titleFontWeight'],
2507
+ 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2508
+ "margin-bottom"=> $attr['titleBottomSpace'] . "px"
2509
+ ),
2510
+ " .uagb-post__text .uagb-post__title a" => array(
2511
+ "color" => $attr['titleColor'],
2512
+ "font-size" => $attr['titleFontSize'] . $attr['titleFontSizeType'],
2513
+ 'font-family' => $attr['titleFontFamily'],
2514
+ 'font-weight' => $attr['titleFontWeight'],
2515
+ 'line-height' => $attr['titleLineHeight'] . $attr['titleLineHeightType'],
2516
+ ),
2517
+ " .uagb-post__text .uagb-post-grid-byline" => array(
2518
+ "color"=> $attr['metaColor'],
2519
+ "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2520
+ 'font-family' => $attr['metaFontFamily'],
2521
+ 'font-weight' => $attr['metaFontWeight'],
2522
+ 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2523
+ "margin-bottom" => $attr['metaBottomSpace'] . "px"
2524
+ ),
2525
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2526
+ "color" => $attr['metaColor'],
2527
+ "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2528
+ 'font-family' => $attr['metaFontFamily'],
2529
+ 'font-weight' => $attr['metaFontWeight'],
2530
+ 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2531
+ ),
2532
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2533
+ "color" => $attr['metaColor'],
2534
+ "font-size" => $attr['metaFontSize'] . $attr['metaFontSizeType'],
2535
+ 'font-family' => $attr['metaFontFamily'],
2536
+ 'font-weight' => $attr['metaFontWeight'],
2537
+ 'line-height' => $attr['metaLineHeight'] . $attr['metaLineHeightType'],
2538
+ ),
2539
+ " .uagb-post__text .uagb-post__excerpt" => array(
2540
+ "color" => $attr['excerptColor'],
2541
+ "font-size" => $attr['excerptFontSize'] . $attr['excerptFontSizeType'],
2542
+ 'font-family' => $attr['excerptFontFamily'],
2543
+ 'font-weight' => $attr['excerptFontWeight'],
2544
+ 'line-height' => $attr['excerptLineHeight'] . $attr['excerptLineHeightType'],
2545
+ "margin-bottom" => $attr['excerptBottomSpace'] . "px"
2546
+ ),
2547
+ " .uagb-post__text .uagb-post__cta" => array(
2548
+ "color" => $attr['ctaColor'],
2549
+ "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2550
+ 'font-family' => $attr['ctaFontFamily'],
2551
+ 'font-weight' => $attr['ctaFontWeight'],
2552
+ 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2553
+ "background" => $attr['ctaBgColor'],
2554
+ "border-color" => $attr['borderColor'],
2555
+ "border-width" => $attr['borderWidth'] . "px",
2556
+ "border-radius" => $attr['borderRadius'] . "px",
2557
+ "border-style" => $attr['borderStyle'],
2558
+ ),
2559
+ " .uagb-post__text .uagb-post__cta:hover" => array(
2560
+ "border-color"=> $attr['borderHColor']
2561
+ ),
2562
+ " .uagb-post__text .uagb-post__cta a" => array(
2563
+ "color"=> $attr['ctaColor'],
2564
+ "font-size" => $attr['ctaFontSize'] . $attr['ctaFontSizeType'],
2565
+ 'font-family' => $attr['ctaFontFamily'],
2566
+ 'font-weight' => $attr['ctaFontWeight'],
2567
+ 'line-height' => $attr['ctaLineHeight'] . $attr['ctaLineHeightType'],
2568
+ "padding" => ( $attr['btnVPadding'] ) . "px " . ( $attr['btnHPadding'] ) . "px",
2569
+ ),
2570
+ " .uagb-post__text .uagb-post__cta:hover" => array(
2571
+ "color"=> $attr['ctaHColor'],
2572
+ "background"=> $attr['ctaBgHColor']
2573
+ ),
2574
+ " .uagb-post__text .uagb-post__cta:hover a" => array(
2575
+ "color"=> $attr['ctaHColor']
2576
+ ),
2577
+ " .uagb-post__image:before" => array(
2578
+ "background-color" => $attr['bgOverlayColor'],
2579
+ "opacity" => ( $attr['overlayOpacity'] / 100 )
2580
+ ),
2581
+ );
2582
+ // @codingStandardsIgnoreEnd
2583
+ }
2584
+
2585
+ /**
2586
+ * Get Post Block Selectors CSS for Mobile devices
2587
+ *
2588
+ * @param array $attr The block attributes.
2589
+ * @since 1.6.1
2590
+ */
2591
+ public static function get_post_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
2592
+
2593
+ return array(
2594
+ " .uagb-post__text .uagb-post__title" => array(
2595
+ "font-size" =>$attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2596
+ 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2597
+ ),
2598
+ " .uagb-post__text .uagb-post__title a" => array(
2599
+ "font-size" =>$attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
2600
+ 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
2601
+ ),
2602
+ " .uagb-post__text .uagb-post-grid-byline" => array(
2603
+ "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2604
+ 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2605
+ ),
2606
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2607
+ "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2608
+ 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2609
+ ),
2610
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2611
+ "font-size" =>$attr['metaFontSizeMobile'] . $attr['metaFontSizeType'],
2612
+ 'line-height' => $attr['metaLineHeightMobile'] . $attr['metaLineHeightType'],
2613
+ ),
2614
+ " .uagb-post__text .uagb-post__excerpt" => array(
2615
+ "font-size" =>$attr['excerptFontSizeMobile'] . $attr['excerptFontSizeType'],
2616
+ 'line-height' => $attr['excerptLineHeightMobile'] . $attr['excerptLineHeightType'],
2617
+ ),
2618
+ " .uagb-post__text .uagb-post__cta" => array(
2619
+ "font-size" =>$attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2620
+ 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2621
+ ),
2622
+ " .uagb-post__text .uagb-post__cta a" => array(
2623
+ "font-size" =>$attr['ctaFontSizeMobile'] . $attr['ctaFontSizeType'],
2624
+ 'line-height' => $attr['ctaLineHeightMobile'] . $attr['ctaLineHeightType'],
2625
+ ),
2626
+ " .uagb-post__text" => array(
2627
+ "padding" =>( $attr['contentPaddingMobile'] ) . "px",
2628
+ ),
2629
+ );
2630
+ // @codingStandardsIgnoreEnd
2631
+ }
2632
+
2633
+ /**
2634
+ * Get Post Block Selectors CSS for Tablet devices
2635
+ *
2636
+ * @param array $attr The block attributes.
2637
+ * @since 1.8.2
2638
+ */
2639
+ public static function get_post_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
2640
+ return array(
2641
+ " .uagb-post__text .uagb-post__title" => array(
2642
+ "font-size" =>$attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2643
+ 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2644
+ ),
2645
+ " .uagb-post__text .uagb-post__title a" => array(
2646
+ "font-size" =>$attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
2647
+ 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
2648
+ ),
2649
+ " .uagb-post__text .uagb-post-grid-byline" => array(
2650
+ "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2651
+ 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2652
+ ),
2653
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2654
+ "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2655
+ 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2656
+ ),
2657
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2658
+ "font-size" =>$attr['metaFontSizeTablet'] . $attr['metaFontSizeType'],
2659
+ 'line-height' => $attr['metaLineHeightTablet'] . $attr['metaLineHeightType'],
2660
+ ),
2661
+ " .uagb-post__text .uagb-post__excerpt" => array(
2662
+ "font-size" =>$attr['excerptFontSizeTablet'] . $attr['excerptFontSizeType'],
2663
+ 'line-height' => $attr['excerptLineHeightTablet'] . $attr['excerptLineHeightType'],
2664
+ ),
2665
+ " .uagb-post__text .uagb-post__cta" => array(
2666
+ "font-size" =>$attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2667
+ 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2668
+ ),
2669
+ " .uagb-post__text .uagb-post__cta a" => array(
2670
+ "font-size" =>$attr['ctaFontSizeTablet'] . $attr['ctaFontSizeType'],
2671
+ 'line-height' => $attr['ctaLineHeightTablet'] . $attr['ctaLineHeightType'],
2672
+ ),
2673
+ );
2674
+ // @codingStandardsIgnoreEnd
2675
+ }
2676
+
2677
+ /**
2678
+ * Get Blockquote CSS
2679
+ *
2680
+ * @since 1.8.2
2681
+ * @param array $attr The block attributes.
2682
+ * @param string $id The selector ID.
2683
+ * @return array The Widget List.
2684
+ */
2685
+ public static function get_blockquote_css( $attr, $id ) {
2686
+ // @codingStandardsIgnoreStart
2687
+
2688
+ $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
2689
+
2690
+ $attr = array_merge( $defaults, (array) $attr );
2691
+
2692
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
2693
+
2694
+ $content_align ="center";
2695
+
2696
+ if( 'left' === $attr['align'] ){
2697
+ $content_align =" flex-start";
2698
+ }
2699
+ if( 'right' === $attr['align'] ){
2700
+ $content_align =" flex-end";
2701
+ }
2702
+
2703
+ $author_space = $attr['authorSpace'];
2704
+
2705
+ if( 'center' !== $attr['align'] || $attr['skinStyle'] == "border" ){
2706
+ $author_space = 0;
2707
+ }
2708
+
2709
+ //Set align to left for border style.
2710
+ $text_align = $attr['align'];
2711
+
2712
+ if( 'border' === $attr['skinStyle'] ){
2713
+ $text_align = 'left';
2714
+ }
2715
+
2716
+ $selectors = array(
2717
+ " .uagb-blockquote__content" => array(
2718
+ "font-size" => $attr['descFontSize'] . $attr['descFontSizeType'],
2719
+ 'font-family' => $attr['descFontFamily'],
2720
+ 'font-weight' => $attr['descFontWeight'],
2721
+ 'line-height' => $attr['descLineHeight'] . $attr['descLineHeightType'],
2722
+ "color" => $attr['descColor'],
2723
+ "margin-bottom" => $attr['descSpace'] . "px",
2724
+ "text-align" => $text_align,
2725
+ ),
2726
+ " cite.uagb-blockquote__author" => array(
2727
+ "font-size" => $attr['authorFontSize'] . $attr['authorFontSizeType'],
2728
+ 'font-family' => $attr['authorFontFamily'],
2729
+ 'font-weight' => $attr['authorFontWeight'],
2730
+ 'line-height' => $attr['authorLineHeight'] . $attr['authorLineHeightType'],
2731
+ "color" => $attr['authorColor'],
2732
+ "text-align" => $text_align,
2733
+ ),
2734
+ " .uagb-blockquote__skin-border blockquote.uagb-blockquote" => array(
2735
+ "border-color" => $attr['borderColor'],
2736
+ "border-left-style" => $attr['borderStyle'],
2737
+ "border-left-width" => $attr['borderWidth'] . "px",
2738
+ "padding-left" => $attr['borderGap'] . "px",
2739
+ "padding-top" => $attr['verticalPadding'] . "px",
2740
+ "padding-bottom" => $attr['verticalPadding'] . "px",
2741
+ ),
2742
+
2743
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2744
+ "background" => $attr['quoteBgColor'],
2745
+ "border-radius" => $attr['quoteBorderRadius']."%",
2746
+ "margin-top" => $attr['quoteTopMargin'] . "px",
2747
+ "margin-bottom" => $attr['quoteBottomMargin'] . "px",
2748
+ "margin-left" => $attr['quoteLeftMargin'] . "px",
2749
+ "margin-right" => $attr['quoteRightMargin'] . "px",
2750
+ "padding" => $attr['quotePadding'] . $attr['quotePaddingType'],
2751
+ ),
2752
+
2753
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2754
+ "width" => $attr['quoteSize'].$attr['quoteSizeType'],
2755
+ "height" => $attr['quoteSize'].$attr['quoteSizeType'],
2756
+ ),
2757
+
2758
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg" => array(
2759
+ "fill" => $attr['quoteColor'],
2760
+ ),
2761
+
2762
+ " .uagb-blockquote__style-style_1 .uagb-blockquote" => array(
2763
+ "text-align" => $attr['align'],
2764
+ ),
2765
+
2766
+ " .uagb-blockquote__author-wrap" => array(
2767
+ "margin-bottom" => $author_space . "px",
2768
+ ),
2769
+ " .uagb-blockquote__author-image img" => array(
2770
+ "width" => $attr['authorImageWidth']."px",
2771
+ "height" => $attr['authorImageWidth']."px",
2772
+ "border-radius" => $attr['authorImgBorderRadius']."%"
2773
+ ),
2774
+
2775
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover svg" => array(
2776
+ "fill" => $attr['quoteHoverColor'],
2777
+ ),
2778
+
2779
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover" => array(
2780
+ "background" => $attr['quoteBgHoverColor'],
2781
+ ),
2782
+
2783
+ " .uagb-blockquote__skin-border blockquote.uagb-blockquote:hover" => array(
2784
+ "border-left-color" => $attr['borderHoverColor'],
2785
+ ),
2786
+ );
2787
+
2788
+ if( $attr['enableTweet'] ){
2789
+ $selectors[" a.uagb-blockquote__tweet-button"] = array(
2790
+ "font-size" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2791
+ 'font-family' => $attr['tweetBtnFontFamily'],
2792
+ 'font-weight' => $attr['tweetBtnFontWeight'],
2793
+ 'line-height' => $attr['tweetBtnLineHeight'] . $attr['tweetBtnLineHeightType'],
2794
+ );
2795
+
2796
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"] = array(
2797
+ "color" => $attr['tweetLinkColor'],
2798
+ );
2799
+
2800
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"] = array(
2801
+ "fill" => $attr['tweetLinkColor'],
2802
+ );
2803
+
2804
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"] = array(
2805
+ "color" => $attr['tweetBtnColor'],
2806
+ "background-color" => $attr['tweetBtnBgColor'],
2807
+ "padding-left" => $attr['tweetBtnHrPadding'] . "px",
2808
+ "padding-right" => $attr['tweetBtnHrPadding'] . "px",
2809
+ "padding-top" => $attr['tweetBtnVrPadding'] . "px",
2810
+ "padding-bottom" => $attr['tweetBtnVrPadding'] . "px",
2811
+ );
2812
+
2813
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"] = array(
2814
+ "fill" => $attr['tweetBtnColor'],
2815
+ );
2816
+
2817
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"] = array(
2818
+ "color" => $attr['tweetBtnColor'],
2819
+ "background-color" => $attr['tweetBtnBgColor'],
2820
+ "padding-left" => $attr['tweetBtnHrPadding'] . "px",
2821
+ "padding-right" => $attr['tweetBtnHrPadding'] . "px",
2822
+ "padding-top" => $attr['tweetBtnVrPadding'] . "px",
2823
+ "padding-bottom" => $attr['tweetBtnVrPadding'] . "px",
2824
+ );
2825
+
2826
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"] = array(
2827
+ "fill" => $attr['tweetBtnColor'],
2828
+ );
2829
+
2830
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"] = array(
2831
+ "border-right-color" => $attr['tweetBtnBgColor'],
2832
+ );
2833
+
2834
+ $selectors[" a.uagb-blockquote__tweet-button svg"] = array(
2835
+ "width" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2836
+ "height" => $attr['tweetBtnFontSize'] . $attr['tweetBtnFontSizeType'],
2837
+ );
2838
+
2839
+ $selectors[" .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"] = array(
2840
+ "margin-right" => $attr['tweetIconSpacing'] . "px",
2841
+ );
2842
+
2843
+ // Hover CSS.
2844
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"] = array(
2845
+ "color" => $attr['tweetBtnHoverColor'],
2846
+ );
2847
+
2848
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"] = array(
2849
+ "fill" => $attr['tweetBtnHoverColor'],
2850
+ );
2851
+
2852
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"] = array(
2853
+ "color" => $attr['tweetBtnHoverColor'],
2854
+ "background-color" => $attr['tweetBtnBgHoverColor'],
2855
+ );
2856
+
2857
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"] = array(
2858
+ "fill" => $attr['tweetBtnHoverColor'],
2859
+ );
2860
+
2861
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover"] = array(
2862
+ "color" => $attr['tweetBtnHoverColor'],
2863
+ "background-color" => $attr['tweetBtnBgHoverColor'],
2864
+ );
2865
+
2866
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"] = array(
2867
+ "fill" => $attr['tweetBtnHoverColor'],
2868
+ );
2869
+
2870
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"] = array(
2871
+ "border-right-color" => $attr['tweetBtnBgHoverColor'],
2872
+ );
2873
+ }
2874
+
2875
+ $t_selectors = array(
2876
+ " .uagb-blockquote__content" => array(
2877
+ "font-size" => $attr['descFontSizeTablet'] . $attr['descFontSizeType'],
2878
+ 'line-height' => $attr['descLineHeightTablet'] . $attr['descLineHeightType'],
2879
+ ),
2880
+ " cite.uagb-blockquote__author" =>array(
2881
+ "font-size" => $attr['authorFontSizeTablet'] . $attr['authorFontSizeType'],
2882
+ 'line-height' => $attr['authorLineHeightTablet'] . $attr['authorLineHeightType'],
2883
+ ),
2884
+ " a.uagb-blockquote__tweet-button" => array(
2885
+ "font-size" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2886
+ 'line-height' => $attr['tweetBtnLineHeightTablet'] . $attr['tweetBtnLineHeightType'],
2887
+ ),
2888
+ " a.uagb-blockquote__tweet-button svg" => array(
2889
+ "width" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2890
+ "height" => $attr['tweetBtnFontSizeTablet'] . $attr['tweetBtnFontSizeType'],
2891
+ ),
2892
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2893
+ "padding" => $attr['quotePaddingTablet'] . $attr['quotePaddingType'],
2894
+ ),
2895
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2896
+ "width" => $attr['quoteSizeTablet'].$attr['quoteSizeType'],
2897
+ "height" => $attr['quoteSizeTablet'].$attr['quoteSizeType'],
2898
+ ),
2899
+ );
2900
+
2901
+ $m_selectors = array(
2902
+ " .uagb-blockquote__content" => array(
2903
+ "font-size" => $attr['descFontSizeMobile'] . $attr['descFontSizeType'],
2904
+ 'line-height' => $attr['descLineHeightMobile'] . $attr['descLineHeightType'],
2905
+ ),
2906
+ " cite.uagb-blockquote__author" => array(
2907
+ "font-size" => $attr['authorFontSizeMobile'] . $attr['authorFontSizeType'],
2908
+ 'line-height' => $attr['authorLineHeightMobile'] . $attr['authorLineHeightType'],
2909
+ ),
2910
+ " a.uagb-blockquote__tweet-button" => array(
2911
+ "font-size" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2912
+ 'line-height' => $attr['tweetBtnLineHeightMobile'] . $attr['tweetBtnLineHeightType'],
2913
+ ),
2914
+ " a.uagb-blockquote__tweet-button svg" => array(
2915
+ "width" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2916
+ "height" => $attr['tweetBtnFontSizeMobile'] . $attr['tweetBtnFontSizeType'],
2917
+ ),
2918
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2919
+ "padding" => $attr['quotePaddingMobile'] . $attr['quotePaddingType'],
2920
+ ),
2921
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2922
+ "width" => $attr['quoteSizeMobile'].$attr['quoteSizeType'],
2923
+ "height" => $attr['quoteSizeMobile'].$attr['quoteSizeType'],
2924
+ ),
2925
+ );
2926
+
2927
+ // @codingStandardsIgnoreEnd
2928
+
2929
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-blockquote-' . $id );
2930
+
2931
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-blockquote-' . $id, 'tablet' );
2932
+
2933
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-blockquote-' . $id, 'mobile' );
2934
+
2935
+ return $desktop . $tablet . $mobile;
2936
+ }
2937
+
2938
+ /**
2939
+ * Get Timeline Block Desktop Selectors CSS
2940
+ *
2941
+ * @param array $attr The block attributes.
2942
+ * @since 1.8.2
2943
+ */
2944
+ public static function get_timeline_selectors( $attr ) { // @codingStandardsIgnoreStart
2945
+ $selectors = array(
2946
+ " .uagb-timeline__heading-text" => array(
2947
+ "margin-bottom" => $attr['headSpace'] . "px"
2948
+ ),
2949
+ " .uagb-timeline-desc-content" => array(
2950
+ "text-align" => $attr['align'],
2951
+ "color" => $attr['subHeadingColor'],
2952
+ "font-size" => $attr['subHeadFontSize'] . $attr['subHeadFontSizeType'],
2953
+ 'font-family' => $attr['subHeadFontFamily'],
2954
+ 'font-weight' => $attr['subHeadFontWeight'],
2955
+ 'line-height' => $attr['subHeadLineHeight'] . $attr['subHeadLineHeightType'],
2956
+ ),
2957
+ ' .uagb-timeline__events-new' => array(
2958
+ 'text-align' => $attr['align']
2959
+ ),
2960
+ ' .uagb-timeline__date-inner' => array(
2961
+ 'text-align' => $attr['align']
2962
+ ),
2963
+ ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
2964
+ 'border-left-color' => $attr['backgroundColor']
2965
+ ),
2966
+ ' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
2967
+ 'border-left-color' => $attr['backgroundColor']
2968
+ ),
2969
+ ' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
2970
+ 'border-right-color' => $attr['backgroundColor']
2971
+ ),
2972
+ ' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
2973
+ 'border-right-color' => $attr['backgroundColor']
2974
+ ),
2975
+ ' .uagb-timeline__line__inner' => array(
2976
+ 'background-color' => $attr['separatorFillColor']
2977
+ ),
2978
+ ' .uagb-timeline__line' => array(
2979
+ 'background-color' => $attr['separatorColor'],
2980
+ 'width' => $attr['separatorwidth'].'px'
2981
+ ),
2982
+ ' .uagb-timeline__right-block .uagb-timeline__line' => array(
2983
+ 'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2984
+ ),
2985
+ ' .uagb-timeline__left-block .uagb-timeline__line' => array(
2986
+ 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2987
+ ),
2988
+ ' .uagb-timeline__center-block .uagb-timeline__line' => array(
2989
+ 'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
2990
+ ),
2991
+ ' .uagb-timeline__marker' => array(
2992
+ 'background-color' => $attr['separatorBg'],
2993
+ 'min-height' => $attr['connectorBgsize'].'px',
2994
+ 'min-width' => $attr['connectorBgsize'].'px',
2995
+ 'line-height' => $attr['connectorBgsize'].'px',
2996
+ 'border' => $attr['borderwidth'].'px solid'.$attr['separatorBorder'],
2997
+ ),
2998
+ ' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow' => array(
2999
+ 'height' => $attr['connectorBgsize'].'px',
3000
+ ),
3001
+ ' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow' => array(
3002
+ 'height' => $attr['connectorBgsize'].'px',
3003
+ ),
3004
+ ' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow' => array(
3005
+ 'height' => $attr['connectorBgsize'].'px',
3006
+ ),
3007
+ ' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow' => array(
3008
+ 'height' => $attr['connectorBgsize'].'px',
3009
+ ),
3010
+ ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3011
+ 'margin-left' => $attr['horizontalSpace'].'px',
3012
+ 'margin-right'=> $attr['horizontalSpace'].'px',
3013
+ ),
3014
+ ' .uagb-timeline__field:not(:last-child)' => array(
3015
+ 'margin-bottom' => $attr['verticalSpace'].'px',
3016
+ ),
3017
+ ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3018
+ 'margin-bottom' => $attr['dateBottomspace'].'px',
3019
+ 'color' => $attr['dateColor'],
3020
+ 'font-size' => $attr['dateFontsize'].$attr['dateFontsizeType'],
3021
+ 'font-family' => $attr['dateFontFamily'],
3022
+ 'font-weight' => $attr['dateFontWeight'],
3023
+ 'line-height' => $attr['dateLineHeight'] . $attr['dateLineHeightType'],
3024
+ 'text-align' => $attr['align'],
3025
+ ),
3026
+ ' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
3027
+ 'margin-left' => $attr['horizontalSpace'].'px',
3028
+ ),
3029
+ ' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3030
+ 'margin-right' => $attr['horizontalSpace'].'px',
3031
+ ),
3032
+ ' .uagb-timeline__date-new' => array(
3033
+ 'color' => $attr['dateColor'],
3034
+ 'font-size' => $attr['dateFontsize'].$attr['dateFontsizeType'],
3035
+ 'font-family' => $attr['dateFontFamily'],
3036
+ 'font-weight' => $attr['dateFontWeight'],
3037
+ 'line-height' => $attr['dateLineHeight'] . $attr['dateLineHeightType'],
3038
+ ),
3039
+ ' .uagb-timeline__events-inner-new' => array(
3040
+ 'background-color' => $attr['backgroundColor'],
3041
+ 'border-radius' => $attr['borderRadius'].'px',
3042
+ 'padding'=> $attr['bgPadding'].'px',
3043
+ ),
3044
+ ' .uagb-timeline__main .uagb-timeline__icon-new' => array(
3045
+ 'color' => $attr['iconColor'],
3046
+ 'font-size' => $attr['iconSize'].'px',
3047
+ 'width' => $attr['iconSize'].'px',
3048
+ ),
3049
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg' => array(
3050
+ 'fill'=> $attr['iconFocus'],
3051
+ ),
3052
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
3053
+ 'color'=> $attr['iconFocus'],
3054
+ ),
3055
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon' => array(
3056
+ 'background' => $attr['iconBgFocus'],
3057
+ 'border-color'=> $attr['borderFocus'],
3058
+ ),
3059
+ ' .uagb-timeline__main .uagb-timeline__icon-new svg' => array(
3060
+ 'fill'=> $attr['iconColor'],
3061
+ ),
3062
+ );
3063
+
3064
+ return $selectors;
3065
+ // @codingStandardsIgnoreEnd
3066
+ }
3067
+
3068
+ /**
3069
+ * Get Timeline Block Tablet Selectors CSS.
3070
+ *
3071
+ * @param array $attr The block attributes.
3072
+ * @since 1.8.2
3073
+ */
3074
+ public static function get_timeline_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
3075
+ $tablet_selector = array(
3076
+ " .uagb-timeline-desc-content" => array(
3077
+ "font-size" => $attr['subHeadFontSizeTablet'] . $attr['subHeadFontSizeType'],
3078
+ 'line-height' => $attr['subHeadLineHeightTablet'] . $attr['subHeadLineHeightType'],
3079
+ ),
3080
+ ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3081
+ 'font-size' => $attr['dateFontsizeTablet'].$attr['dateFontsizeType'],
3082
+ 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
3083
+ ),
3084
+ ' .uagb-timeline__date-new' => array(
3085
+ 'font-size' => $attr['dateFontsizeTablet'].$attr['dateFontsizeType'],
3086
+ 'line-height' => $attr['dateLineHeightTablet'] . $attr['dateLineHeightType'],
3087
+ ),
3088
+ ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3089
+ 'margin-left' => 0,
3090
+ 'margin-right' => 0,
3091
+ ),
3092
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading" => array(
3093
+ "text-align" => 'left',
3094
+ ),
3095
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content" => array(
3096
+ "text-align" => 'left',
3097
+ ),
3098
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new' => array(
3099
+ 'text-align' => 'left'
3100
+ ),
3101
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner' => array(
3102
+ 'text-align' => 'left'
3103
+ ),
3104
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3105
+ 'text-align'=> 'left',
3106
+ ),
3107
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3108
+ "border-right-color" => $attr['backgroundColor'],
3109
+ ),
3110
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line" => array(
3111
+ 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3112
+ ),
3113
+ );
3114
+
3115
+ return $tablet_selector;
3116
+ // @codingStandardsIgnoreEnd
3117
+ }
3118
+
3119
+ /**
3120
+ * Get Timeline Block Mobile Selectors CSS.
3121
+ *
3122
+ * @param array $attr The block attributes.
3123
+ * @since 1.8.2
3124
+ */
3125
+ public static function get_timeline_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
3126
+ $m_selectors = array(
3127
+ " .uagb-timeline-desc-content" => array(
3128
+ "font-size" => $attr['subHeadFontSizeMobile'] . $attr['subHeadFontSizeType'],
3129
+ 'line-height' => $attr['subHeadLineHeightMobile'] . $attr['subHeadLineHeightType'],
3130
+ ),
3131
+ ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3132
+ 'font-size' => $attr['dateFontsizeMobile'].$attr['dateFontsizeType'],
3133
+ 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
3134
+ ),
3135
+ ' .uagb-timeline__date-new' => array(
3136
+ 'font-size' => $attr['dateFontsizeMobile'].$attr['dateFontsizeType'],
3137
+ 'line-height' => $attr['dateLineHeightMobile'] . $attr['dateLineHeightType'],
3138
+ ),
3139
+ ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3140
+ 'margin-left' => 0,
3141
+ 'margin-right' => 0,
3142
+ ),
3143
+ ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
3144
+ 'margin-left' => $attr['horizontalSpace'].'px',
3145
+ ),
3146
+ ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3147
+ 'margin-left' => $attr['horizontalSpace'].'px',
3148
+ ),
3149
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading" => array(
3150
+ "text-align" => 'left',
3151
+ ),
3152
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content" => array(
3153
+ "text-align" => 'left',
3154
+ ),
3155
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new' => array(
3156
+ 'text-align' => 'left'
3157
+ ),
3158
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner' => array(
3159
+ 'text-align' => 'left'
3160
+ ),
3161
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3162
+ 'text-align'=> 'left',
3163
+ ),
3164
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3165
+ "border-right-color" => $attr['backgroundColor'],
3166
+ ),
3167
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line" => array(
3168
+ 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3169
+ ),
3170
+ );
3171
+ return $m_selectors;
3172
+ // @codingStandardsIgnoreEnd
3173
+ }
3174
+
3175
+ /**
3176
+ * Get Contact Form 7 CSS
3177
+ *
3178
+ * @param array $attr The block attributes.
3179
+ * @param string $id The selector ID.
3180
+ * @since 1.10.0
3181
+ */
3182
+ public static function get_cf7_styler_css( $attr, $id ) {
3183
+ $defaults = UAGB_Helper::$block_list['uagb/cf7-styler']['attributes'];
3184
+
3185
+ $attr = array_merge( $defaults, (array) $attr );
3186
+
3187
+ $selectors = array(
3188
+ ' .wpcf7 .wpcf7-form' => array(
3189
+ 'text-align' => $attr['align'],
3190
+ ),
3191
+ ' .wpcf7 form.wpcf7-form:not(input)' => array(
3192
+ 'color' => $attr['fieldLabelColor'],
3193
+ ),
3194
+ ' .wpcf7 input:not([type=submit])' => array(
3195
+ 'background-color' => $attr['fieldBgColor'],
3196
+ 'color' => $attr['fieldInputColor'],
3197
+ 'border-style' => $attr['fieldBorderStyle'],
3198
+ 'border-color' => $attr['fieldBorderColor'],
3199
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3200
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
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
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3206
+ 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3207
+ 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3208
+ 'font-family' => $attr['inputFontFamily'],
3209
+ 'font-weight' => $attr['inputFontWeight'],
3210
+ 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3211
+ 'text-align' => $attr['align'],
3212
+ ),
3213
+ ' .wpcf7 select' => array(
3214
+ 'background-color' => $attr['fieldBgColor'],
3215
+ 'color' => $attr['fieldLabelColor'],
3216
+ 'border-style' => $attr['fieldBorderStyle'],
3217
+ 'border-color' => $attr['fieldBorderColor'],
3218
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3219
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3220
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3221
+ 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3222
+ 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3223
+ 'font-family' => $attr['inputFontFamily'],
3224
+ 'font-weight' => $attr['inputFontWeight'],
3225
+ 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3226
+ 'text-align' => $attr['align'],
3227
+ ),
3228
+ ' .wpcf7 select.wpcf7-form-control.wpcf7-select:not([multiple="multiple"])' => array(
3229
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3230
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3231
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3232
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3233
+ ),
3234
+ ' .wpcf7 select.wpcf7-select[multiple="multiple"] option' => array(
3235
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3236
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3237
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3238
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3239
+ ),
3240
+ ' .wpcf7 textarea' => array(
3241
+ 'background-color' => $attr['fieldBgColor'],
3242
+ 'color' => $attr['fieldInputColor'],
3243
+ 'border-color' => $attr['fieldBorderColor'],
3244
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3245
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3246
+ 'border-style' => $attr['fieldBorderStyle'],
3247
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3248
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3249
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3250
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3251
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3252
+ 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3253
+ 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3254
+ 'font-family' => $attr['inputFontFamily'],
3255
+ 'font-weight' => $attr['inputFontWeight'],
3256
+ 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3257
+ 'text-align' => $attr['align'],
3258
+ ),
3259
+ ' .wpcf7 textarea::placeholder' => array(
3260
+ 'color' => $attr['fieldInputColor'],
3261
+ 'text-align' => $attr['align'],
3262
+ ),
3263
+ ' .wpcf7 input::placeholder' => array(
3264
+ 'color' => $attr['fieldInputColor'],
3265
+ 'text-align' => $attr['align'],
3266
+ ),
3267
+ ' .wpcf7 form label' => array(
3268
+ 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3269
+ 'font-family' => $attr['labelFontFamily'],
3270
+ 'font-weight' => $attr['labelFontWeight'],
3271
+ 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3272
+ ),
3273
+ ' .wpcf7 form .wpcf7-list-item-label' => array(
3274
+ 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3275
+ 'font-family' => $attr['labelFontFamily'],
3276
+ 'font-weight' => $attr['labelFontWeight'],
3277
+ 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3278
+ ),
3279
+
3280
+ // Focus.
3281
+ ' .wpcf7 form input:not([type=submit]):focus' => array(
3282
+ 'border-color' => $attr['fieldBorderFocusColor'],
3283
+ ),
3284
+ ' .wpcf7 form select:focus' => array(
3285
+ 'border-color' => $attr['fieldBorderFocusColor'],
3286
+ ),
3287
+ ' .wpcf7 textarea:focus' => array(
3288
+ 'border-color' => $attr['fieldBorderFocusColor'],
3289
+ ),
3290
+
3291
+ // Submit button.
3292
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3293
+ 'color' => $attr['buttonTextColor'],
3294
+ 'background-color' => $attr['buttonBgColor'],
3295
+ 'font-size' => $attr['buttonFontSize'] . $attr['buttonFontSizeType'],
3296
+ 'font-family' => $attr['buttonFontFamily'],
3297
+ 'font-weight' => $attr['buttonFontWeight'],
3298
+ 'line-height' => $attr['buttonLineHeight'] . $attr['buttonLineHeightType'],
3299
+ 'border-color' => $attr['buttonBorderColor'],
3300
+ 'border-style' => $attr['buttonBorderStyle'],
3301
+ 'border-width' => $attr['buttonBorderWidth'] . 'px',
3302
+ 'border-radius' => $attr['buttonBorderRadius'] . $attr['buttonBorderRadiusType'],
3303
+ 'padding-left' => $attr['buttonHrPadding'] . 'px',
3304
+ 'padding-right' => $attr['buttonHrPadding'] . 'px',
3305
+ 'padding-top' => $attr['buttonVrPadding'] . 'px',
3306
+ 'padding-bottom' => $attr['buttonVrPadding'] . 'px',
3307
+ ),
3308
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover' => array(
3309
+ 'color' => $attr['buttonTextHoverColor'],
3310
+ 'background-color' => $attr['buttonBgHoverColor'],
3311
+ 'border-color' => $attr['buttonBorderHoverColor'],
3312
+ ),
3313
+
3314
+ // Check box Radio.
3315
+ ' .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3316
+ 'background-color' => $attr['fieldBgColor'],
3317
+ 'color' => $attr['fieldInputColor'],
3318
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3319
+ 'border-color' => $attr['fieldBorderFocusColor'],
3320
+ ),
3321
+ ' .wpcf7 .wpcf7-checkbox input[type="checkbox"] + 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
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3330
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3331
+ ),
3332
+ ' .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3333
+ 'background-color' => $attr['fieldBgColor'],
3334
+ 'color' => $attr['fieldInputColor'],
3335
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3336
+ 'border-color' => $attr['fieldBorderFocusColor'],
3337
+ ),
3338
+ ' .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3339
+ 'background-color' => $attr['fieldBgColor'],
3340
+ 'color' => $attr['fieldInputColor'],
3341
+ 'height' => $attr['fieldVrPadding'] . 'px',
3342
+ 'width' => $attr['fieldVrPadding'] . 'px',
3343
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3344
+ 'border-color' => $attr['fieldBorderColor'],
3345
+ 'border-style' => $attr['fieldBorderStyle'],
3346
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3347
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3348
+ ),
3349
+ ' .wpcf7 .wpcf7-radio input[type="radio"] + span:before' => array(
3350
+ 'background-color' => $attr['fieldBgColor'],
3351
+ 'color' => $attr['fieldInputColor'],
3352
+ 'height' => $attr['fieldVrPadding'] . 'px',
3353
+ 'width' => $attr['fieldVrPadding'] . 'px',
3354
+ 'border-style' => $attr['fieldBorderStyle'],
3355
+ 'border-color' => $attr['fieldBorderColor'],
3356
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3357
+ ),
3358
+ ' .wpcf7 .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3359
+ 'border-color' => $attr['fieldBorderFocusColor'],
3360
+ ),
3361
+
3362
+ // Underline border.
3363
+ ' .uagb-cf7-styler__field-style-underline .wpcf7 input:not([type=submit])' => array(
3364
+ 'border-style' => 'none',
3365
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3366
+ 'border-bottom-style' => 'solid',
3367
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3368
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3369
+ ),
3370
+ ' .uagb-cf7-styler__field-style-underline textarea' => array(
3371
+ 'border-style' => 'none',
3372
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3373
+ 'border-bottom-style' => 'solid',
3374
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3375
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3376
+ ),
3377
+ ' .uagb-cf7-styler__field-style-underline select' => array(
3378
+ 'border-style' => 'none',
3379
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3380
+ 'border-bottom-style' => 'solid',
3381
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3382
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3383
+ ),
3384
+ ' .uagb-cf7-styler__field-style-underline textarea' => array(
3385
+ 'border-style' => 'none',
3386
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3387
+ 'border-bottom-style' => 'solid',
3388
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3389
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3390
+ ),
3391
+ ' .uagb-cf7-styler__field-style-underline .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3392
+ 'border-style' => 'solid',
3393
+ ),
3394
+ ' .uagb-cf7-styler__field-style-underline .wpcf7 input[type="radio"] + span:before' => array(
3395
+ 'border-style' => 'solid',
3396
+ ),
3397
+ ' .uagb-cf7-styler__field-style-underline .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3398
+ 'border-style' => 'solid',
3399
+ ),
3400
+ ' .uagb-cf7-styler__field-style-box .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3401
+ 'border-style' => $attr['fieldBorderStyle'],
3402
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3403
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3404
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3405
+ ),
3406
+ ' .uagb-cf7-styler__field-style-box .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3407
+ 'border-style' => $attr['fieldBorderStyle'],
3408
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3409
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3410
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3411
+ ),
3412
+ ' .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3413
+ 'background-color' => $attr['fieldInputColor'],
3414
+ ),
3415
+
3416
+ // Override check box.
3417
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3418
+ 'background-color' => $attr['radioCheckBgColor'],
3419
+ 'color' => $attr['radioCheckSelectColor'],
3420
+ 'height' => $attr['radioCheckSize'] . 'px',
3421
+ 'width' => $attr['radioCheckSize'] . 'px',
3422
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3423
+ 'border-color' => $attr['radioCheckBorderColor'],
3424
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3425
+ 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3426
+ ),
3427
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3428
+ 'border-color' => $attr['fieldBorderFocusColor'],
3429
+ ),
3430
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3431
+ 'background-color' => $attr['radioCheckBgColor'],
3432
+ 'color' => $attr['radioCheckSelectColor'],
3433
+ 'height' => $attr['radioCheckSize'] . 'px',
3434
+ 'width' => $attr['radioCheckSize'] . 'px',
3435
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3436
+ 'border-color' => $attr['radioCheckBorderColor'],
3437
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3438
+ 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3439
+ ),
3440
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3441
+ 'border-color' => $attr['fieldBorderFocusColor'],
3442
+ ),
3443
+
3444
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 input[type="radio"] + span:before' => array(
3445
+ 'background-color' => $attr['radioCheckBgColor'],
3446
+ 'color' => $attr['radioCheckSelectColor'],
3447
+ 'height' => $attr['radioCheckSize'] . 'px',
3448
+ 'width' => $attr['radioCheckSize'] . 'px',
3449
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3450
+ 'border-color' => $attr['radioCheckBorderColor'],
3451
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3452
+ ),
3453
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3454
+ 'background-color' => $attr['radioCheckSelectColor'],
3455
+ ),
3456
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3457
+ 'font-size' => $attr['radioCheckFontSize'] . $attr['radioCheckFontSizeType'],
3458
+ 'font-family' => $attr['radioCheckFontFamily'],
3459
+ 'font-weight' => $attr['radioCheckFontWeight'],
3460
+ 'line-height' => $attr['radioCheckLineHeight'] . $attr['radioCheckLineHeightType'],
3461
+ 'color' => $attr['radioCheckLableColor'],
3462
+ ),
3463
+ ' span.wpcf7-not-valid-tip' => array(
3464
+ 'color' => $attr['validationMsgColor'],
3465
+ 'font-size' => $attr['validationMsgFontSize'] . $attr['validationMsgFontSizeType'],
3466
+ 'font-family' => $attr['validationMsgFontFamily'],
3467
+ 'font-weight' => $attr['validationMsgFontWeight'],
3468
+ 'line-height' => $attr['validationMsgLineHeight'] . $attr['validationMsgLineHeightType'],
3469
+ ),
3470
+ ' .uagb-cf7-styler__highlight-border input.wpcf7-form-control.wpcf7-not-valid' => array(
3471
+ 'border-color' => $attr['highlightBorderColor'],
3472
+ ),
3473
+ ' .uagb-cf7-styler__highlight-border .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item-label:before' => array(
3474
+ 'border-color' => $attr['highlightBorderColor'] . '!important',
3475
+ ),
3476
+ ' .uagb-cf7-styler__highlight-style-bottom_right .wpcf7-not-valid-tip' => array(
3477
+ 'background-color' => $attr['validationMsgBgColor'],
3478
+ ),
3479
+ ' .wpcf7-response-output' => array(
3480
+ 'border-width' => $attr['msgBorderSize'] . 'px',
3481
+ 'border-radius' => $attr['msgBorderRadius'] . $attr['msgBorderRadiusType'],
3482
+ 'font-size' => $attr['msgFontSize'] . $attr['msgFontSizeType'],
3483
+ 'font-family' => $attr['msgFontFamily'],
3484
+ 'font-weight' => $attr['msgFontWeight'],
3485
+ 'line-height' => $attr['msgLineHeight'] . $attr['msgLineHeightType'],
3486
+ 'padding-top' => $attr['msgVrPadding'] . 'px',
3487
+ 'padding-bottom' => $attr['msgVrPadding'] . 'px',
3488
+ 'padding-left' => $attr['msgHrPadding'] . 'px',
3489
+ 'padding-right' => $attr['msgHrPadding'] . 'px',
3490
+ ),
3491
+ ' .wpcf7-response-output.wpcf7-validation-errors' => array(
3492
+ 'background-color' => $attr['errorMsgBgColor'],
3493
+ 'border-color' => $attr['errorMsgBorderColor'],
3494
+ 'color' => $attr['errorMsgColor'],
3495
+ ),
3496
+ ' .wpcf7-response-output.wpcf7-validation- success' => array(
3497
+ 'background-color' => $attr['successMsgBgColor'],
3498
+ 'border-color' => $attr['successMsgBorderColor'],
3499
+ 'color' => $attr['successMsgColor'],
3500
+ ),
3501
+
3502
+ );
3503
+
3504
+ $t_selectors = array(
3505
+ ' .wpcf7 form.wpcf7-form:not(input)' => array(
3506
+ 'color' => $attr['fieldLabelColor'],
3507
+ ),
3508
+ ' .wpcf7 input:not([type=submit])' => array(
3509
+ 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
3510
+ 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
3511
+ ),
3512
+ ' .wpcf7 select' => array(
3513
+ 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3514
+ 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3515
+ ),
3516
+ ' .wpcf7 textarea' => array(
3517
+ 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
3518
+ 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
3519
+ ),
3520
+ ' .wpcf7 form label' => array(
3521
+ 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3522
+ 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3523
+ ),
3524
+
3525
+ ' .wpcf7 form .wpcf7-list-item-label' => array(
3526
+ 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
3527
+ 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
3528
+ ),
3529
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3530
+ 'font-size' => $attr['buttonFontSizeTablet'] . $attr['buttonFontSizeType'],
3531
+ 'line-height' => $attr['buttonLineHeightTablet'] . $attr['buttonLineHeightType'],
3532
+ ),
3533
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3534
+ 'font-size' => $attr['radioCheckFontSizeTablet'] . $attr['radioCheckFontSizeType'],
3535
+ 'line-height' => $attr['radioCheckLineHeightTablet'] . $attr['radioCheckLineHeightType'],
3536
+ ),
3537
+ ' span.wpcf7-not-valid-tip' => array(
3538
+ 'font-size' => $attr['validationMsgFontSizeTablet'] . $attr['validationMsgFontSizeType'],
3539
+ 'line-height' => $attr['validationMsgLineHeightTablet'] . $attr['validationMsgLineHeightType'],
3540
+ ),
3541
+ ' .wpcf7-response-output' => array(
3542
+ 'font-size' => $attr['msgFontSizeTablet'] . $attr['msgFontSizeType'],
3543
+ 'line-height' => $attr['msgLineHeightTablet'] . $attr['msgLineHeightType'],
3544
+ ),
3545
+ );
3546
+
3547
+ $m_selectors = array(
3548
+ ' .wpcf7 input:not([type=submit])' => array(
3549
+ 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
3550
+ 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
3551
+ ),
3552
+ ' .wpcf7 select' => array(
3553
+ 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3554
+ 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3555
+ ),
3556
+ ' .wpcf7 textarea' => array(
3557
+ 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
3558
+ 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
3559
+ ),
3560
+ ' .wpcf7 form label' => array(
3561
+ 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3562
+ 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3563
+ ),
3564
+
3565
+ ' .wpcf7 form .wpcf7-list-item-label' => array(
3566
+ 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
3567
+ 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
3568
+ ),
3569
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3570
+ 'font-size' => $attr['buttonFontSizeMobile'] . $attr['buttonFontSizeType'],
3571
+ 'line-height' => $attr['buttonLineHeightMobile'] . $attr['buttonLineHeightType'],
3572
+ ),
3573
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3574
+ 'font-size' => $attr['radioCheckFontSizeMobile'] . $attr['radioCheckFontSizeType'],
3575
+ 'line-height' => $attr['radioCheckLineHeightMobile'] . $attr['radioCheckLineHeightType'],
3576
+ ),
3577
+ ' span.wpcf7-not-valid-tip' => array(
3578
+ 'font-size' => $attr['validationMsgFontSizeMobile'] . $attr['validationMsgFontSizeType'],
3579
+ 'line-height' => $attr['validationMsgLineHeightMobile'] . $attr['validationMsgLineHeightType'],
3580
+ ),
3581
+ ' .wpcf7-response-output' => array(
3582
+ 'font-size' => $attr['msgFontSizeMobile'] . $attr['msgFontSizeType'],
3583
+ 'line-height' => $attr['msgLineHeightMobile'] . $attr['msgLineHeightType'],
3584
+ ),
3585
+ );
3586
+
3587
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cf7-styler-' . $id );
3588
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-cf7-styler-' . $id, 'tablet' );
3589
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-cf7-styler-' . $id, 'mobile' );
3590
+
3591
+ return $desktop . $tablet . $mobile;
3592
+ }
3593
+
3594
+
3595
+
3596
+ /**
3597
+ * Get Gravity Form Styler CSS
3598
+ *
3599
+ * @param array $attr The block attributes.
3600
+ * @param string $id The selector ID.
3601
+ * @since 1.12.0
3602
+ */
3603
+ public static function get_gf_styler_css( $attr, $id ) {
3604
+ $defaults = UAGB_Helper::$block_list['uagb/gf-styler']['attributes'];
3605
+
3606
+ $attr = array_merge( $defaults, (array) $attr );
3607
+
3608
+ $attr['msgVrPadding'] = ( '' === $attr['msgVrPadding'] ) ? '0' : $attr['msgVrPadding'];
3609
+ $attr['msgHrPadding'] = ( '' === $attr['msgHrPadding'] ) ? '0' : $attr['msgHrPadding'];
3610
+ $attr['textAreaHeight'] = ( 'auto' === $attr['msgHrPadding'] ) ? $attr['textAreaHeight'] : $attr['textAreaHeight'] . 'px';
3611
+
3612
+ $selectors = array(
3613
+ ' .gform_wrapper form' => array(
3614
+ 'text-align' => $attr['align'],
3615
+ ),
3616
+ ' .wp-block-uagb-gf-styler form:not(input)' => array(
3617
+ 'color' => $attr['fieldLabelColor'],
3618
+ ),
3619
+ ' .gform_heading' => array(
3620
+ 'text-align' => $attr['titleDescAlignment'],
3621
+ ),
3622
+ ' input:not([type=submit])' => array(
3623
+ 'background-color' => $attr['fieldBgColor'],
3624
+ 'color' => $attr['fieldInputColor'],
3625
+ 'border-style' => $attr['fieldBorderStyle'],
3626
+ 'border-color' => $attr['fieldBorderColor'],
3627
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3628
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3629
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3630
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3631
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3632
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3633
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3634
+ 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3635
+ 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3636
+ 'font-family' => $attr['inputFontFamily'],
3637
+ 'font-weight' => $attr['inputFontWeight'],
3638
+ 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3639
+ 'text-align' => $attr['align'],
3640
+ ),
3641
+ ' select' => array(
3642
+ 'background-color' => $attr['fieldBgColor'],
3643
+ 'border-style' => $attr['fieldBorderStyle'],
3644
+ 'border-color' => $attr['fieldBorderColor'],
3645
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3646
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3647
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3648
+ 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3649
+ 'color' => $attr['fieldInputColor'],
3650
+ 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3651
+ 'font-family' => $attr['inputFontFamily'],
3652
+ 'font-weight' => $attr['inputFontWeight'],
3653
+ 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3654
+ 'text-align' => $attr['align'],
3655
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3656
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3657
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3658
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3659
+ ),
3660
+ ' .chosen-container-single span' => array(
3661
+ 'background-color' => $attr['fieldBgColor'],
3662
+ 'border-style' => $attr['fieldBorderStyle'],
3663
+ 'border-color' => $attr['fieldBorderColor'],
3664
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3665
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3666
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3667
+ 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3668
+ 'color' => $attr['fieldInputColor'],
3669
+ 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3670
+ 'font-family' => $attr['inputFontFamily'],
3671
+ 'font-weight' => $attr['inputFontWeight'],
3672
+ 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3673
+ 'text-align' => $attr['align'],
3674
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3675
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3676
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3677
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3678
+ ),
3679
+ ' .chosen-container-single.chosen-container-active .chosen-single span' => array(
3680
+ 'margin-bottom' => 0,
3681
+ ),
3682
+ ' select.wpgf-form-control.wpgf-select:not([multiple="multiple"])' => array(
3683
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3684
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3685
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3686
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3687
+ ),
3688
+ ' select.wpgf-select[multiple="multiple"] option' => array(
3689
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3690
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3691
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3692
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3693
+ ),
3694
+ ' textarea' => array(
3695
+ 'background-color' => $attr['fieldBgColor'],
3696
+ 'color' => $attr['fieldInputColor'],
3697
+ 'border-color' => $attr['fieldBorderColor'],
3698
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3699
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3700
+ 'border-style' => $attr['fieldBorderStyle'],
3701
+ 'padding-left' => $attr['fieldHrPadding'] . 'px',
3702
+ 'padding-right' => $attr['fieldHrPadding'] . 'px',
3703
+ 'padding-top' => $attr['fieldVrPadding'] . 'px',
3704
+ 'padding-bottom' => $attr['fieldVrPadding'] . 'px',
3705
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3706
+ 'margin-bottom' => $attr['fieldSpacing'] . 'px',
3707
+ 'font-size' => $attr['inputFontSize'] . $attr['inputFontSizeType'],
3708
+ 'font-family' => $attr['inputFontFamily'],
3709
+ 'font-weight' => $attr['inputFontWeight'],
3710
+ 'line-height' => $attr['inputLineHeight'] . $attr['inputLineHeightType'],
3711
+ 'text-align' => $attr['align'],
3712
+ 'height' => $attr['textAreaHeight'],
3713
+ ),
3714
+ ' textarea::placeholder' => array(
3715
+ 'color' => $attr['fieldInputColor'],
3716
+ 'text-align' => $attr['align'],
3717
+ ),
3718
+ ' input::placeholder' => array(
3719
+ 'color' => $attr['fieldInputColor'],
3720
+ 'text-align' => $attr['align'],
3721
+ ),
3722
+ ' form label' => array(
3723
+ 'color' => $attr['fieldLabelColor'],
3724
+ 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3725
+ 'font-family' => $attr['labelFontFamily'],
3726
+ 'font-weight' => $attr['labelFontWeight'],
3727
+ 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3728
+ ),
3729
+ ' form .gfield_radio label' => array(
3730
+ 'color' => $attr['fieldLabelColor'],
3731
+ 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3732
+ 'font-family' => $attr['labelFontFamily'],
3733
+ 'font-weight' => $attr['labelFontWeight'],
3734
+ 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3735
+ ),
3736
+ ' form .gfield_checkbox label' => array(
3737
+ 'color' => $attr['fieldLabelColor'],
3738
+ 'font-size' => $attr['labelFontSize'] . $attr['labelFontSizeType'],
3739
+ 'font-family' => $attr['labelFontFamily'],
3740
+ 'font-weight' => $attr['labelFontWeight'],
3741
+ 'line-height' => $attr['labelLineHeight'] . $attr['labelLineHeightType'],
3742
+ ),
3743
+ ' .wpgf .gfield_checkbox input[type="checkbox"] + label, .wpgf .gfield_checkbox input[type="checkbox"] + label' => array(
3744
+ 'margin-top' => $attr['fieldLabelSpacing'] . 'px',
3745
+ ),
3746
+
3747
+ // Focus.
3748
+ ' form input:not([type=submit]):focus' => array(
3749
+ 'border-color' => $attr['fieldBorderFocusColor'],
3750
+ ),
3751
+ ' form select:focus' => array(
3752
+ 'border-color' => $attr['fieldBorderFocusColor'],
3753
+ ),
3754
+ ' textarea:focus' => array(
3755
+ 'border-color' => $attr['fieldBorderFocusColor'],
3756
+ ),
3757
+
3758
+ // Submit button.
3759
+ ' input.gform_button' => array(
3760
+ 'color' => $attr['buttonTextColor'],
3761
+ 'background-color' => $attr['buttonBgColor'],
3762
+ 'font-size' => $attr['buttonFontSize'] . $attr['buttonFontSizeType'],
3763
+ 'font-family' => $attr['buttonFontFamily'],
3764
+ 'font-weight' => $attr['buttonFontWeight'],
3765
+ 'line-height' => $attr['buttonLineHeight'] . $attr['buttonLineHeightType'],
3766
+ 'border-color' => $attr['buttonBorderColor'],
3767
+ 'border-style' => $attr['buttonBorderStyle'],
3768
+ 'border-width' => $attr['buttonBorderWidth'] . 'px',
3769
+ 'border-radius' => $attr['buttonBorderRadius'] . $attr['buttonBorderRadiusType'],
3770
+ 'padding-left' => $attr['buttonHrPadding'] . 'px',
3771
+ 'padding-right' => $attr['buttonHrPadding'] . 'px',
3772
+ 'padding-top' => $attr['buttonVrPadding'] . 'px',
3773
+ 'padding-bottom' => $attr['buttonVrPadding'] . 'px',
3774
+ ),
3775
+ ' input.gform_button:hover' => array(
3776
+ 'color' => $attr['buttonTextHoverColor'],
3777
+ 'background-color' => $attr['buttonBgHoverColor'],
3778
+ 'border-color' => $attr['buttonBorderHoverColor'],
3779
+ ),
3780
+
3781
+ // Check box Radio.
3782
+ ' .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
3783
+ 'background-color' => $attr['fieldBgColor'],
3784
+ 'color' => $attr['fieldInputColor'],
3785
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3786
+ 'border-color' => $attr['fieldBorderFocusColor'],
3787
+ ),
3788
+ ' .gfield_checkbox input[type="checkbox"] + label:before' => array(
3789
+ 'background-color' => $attr['fieldBgColor'],
3790
+ 'color' => $attr['fieldInputColor'],
3791
+ 'height' => $attr['fieldVrPadding'] . 'px',
3792
+ 'width' => $attr['fieldVrPadding'] . 'px',
3793
+ 'border-style' => $attr['fieldBorderStyle'],
3794
+ 'border-color' => $attr['fieldBorderColor'],
3795
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3796
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3797
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3798
+ ),
3799
+ ' input[type="checkbox"]:checked + label:before' => array(
3800
+ 'background-color' => $attr['fieldBgColor'],
3801
+ 'color' => $attr['fieldInputColor'],
3802
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3803
+ 'border-color' => $attr['fieldBorderFocusColor'],
3804
+ ),
3805
+ ' input[type="checkbox"] + label:before' => array(
3806
+ 'background-color' => $attr['fieldBgColor'],
3807
+ 'color' => $attr['fieldInputColor'],
3808
+ 'height' => $attr['fieldVrPadding'] . 'px',
3809
+ 'width' => $attr['fieldVrPadding'] . 'px',
3810
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3811
+ 'border-color' => $attr['fieldBorderColor'],
3812
+ 'border-style' => $attr['fieldBorderStyle'],
3813
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3814
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3815
+ ),
3816
+ ' .gfield_radio input[type="radio"] + label:before' => array(
3817
+ 'background-color' => $attr['fieldBgColor'],
3818
+ 'color' => $attr['fieldInputColor'],
3819
+ 'height' => $attr['fieldVrPadding'] . 'px',
3820
+ 'width' => $attr['fieldVrPadding'] . 'px',
3821
+ 'border-style' => $attr['fieldBorderStyle'],
3822
+ 'border-color' => $attr['fieldBorderColor'],
3823
+ 'border-width' => $attr['fieldBorderWidth'] . 'px',
3824
+ ),
3825
+ ' .gfield_radio input[type="radio"]:checked + label:before' => array(
3826
+ 'border-color' => $attr['fieldBorderFocusColor'],
3827
+ ),
3828
+
3829
+ // Underline border.
3830
+ ' .uagb-gf-styler__field-style-underline input:not([type=submit])' => array(
3831
+ 'border-style' => 'none',
3832
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3833
+ 'border-bottom-style' => 'solid',
3834
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3835
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3836
+ ),
3837
+ ' .uagb-gf-styler__field-style-underline textarea' => array(
3838
+ 'border-style' => 'none',
3839
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3840
+ 'border-bottom-style' => 'solid',
3841
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3842
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3843
+ ),
3844
+ ' .uagb-gf-styler__field-style-underline select' => array(
3845
+ 'border-style' => 'none',
3846
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3847
+ 'border-bottom-style' => 'solid',
3848
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3849
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3850
+ ),
3851
+ ' .uagb-gf-styler__field-style-underline textarea' => array(
3852
+ 'border-style' => 'none',
3853
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3854
+ 'border-bottom-style' => 'solid',
3855
+ 'border-bottom-width' => $attr['fieldBorderWidth'] . 'px',
3856
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3857
+ ),
3858
+ ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
3859
+ 'border-style' => 'solid',
3860
+ ),
3861
+ ' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
3862
+ 'border-style' => 'solid',
3863
+ ),
3864
+ ' .uagb-gf-styler__field-style-box .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
3865
+ 'border-style' => 'solid',
3866
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3867
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3868
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3869
+ ),
3870
+ ' .uagb-gf-styler__field-style-box input[type="checkbox"]:checked + label:before' => array(
3871
+ 'border-style' => 'solid',
3872
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3873
+ 'border-radius' => $attr['fieldBorderRadius'] . $attr['fieldBorderRadiusType'],
3874
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
3875
+ ),
3876
+ ' .gfield_radio input[type="radio"]:checked + label:before' => array(
3877
+ 'background-color' => $attr['fieldInputColor'],
3878
+ ),
3879
+
3880
+ // Override check box.
3881
+ ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
3882
+ 'background-color' => $attr['radioCheckBgColor'],
3883
+ 'color' => $attr['radioCheckSelectColor'],
3884
+ 'height' => $attr['radioCheckSize'] . 'px',
3885
+ 'width' => $attr['radioCheckSize'] . 'px',
3886
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px * 1.8 )',
3887
+ 'border-color' => $attr['radioCheckBorderColor'],
3888
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3889
+ 'border-style' => 'solid',
3890
+ 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3891
+ ),
3892
+ ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
3893
+ 'border-color' => $attr['fieldBorderFocusColor'],
3894
+ ),
3895
+ ' .uagb-gf-styler__check-style-enabled input[type="checkbox"] + label:before' => array(
3896
+ 'background-color' => $attr['radioCheckBgColor'],
3897
+ 'color' => $attr['radioCheckSelectColor'],
3898
+ 'height' => $attr['radioCheckSize'] . 'px',
3899
+ 'width' => $attr['radioCheckSize'] . 'px',
3900
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px * 1.8 )',
3901
+ 'border-color' => $attr['radioCheckBorderColor'],
3902
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3903
+ 'border-radius' => $attr['radioCheckBorderRadius'] . $attr['radioCheckBorderRadiusType'],
3904
+ ),
3905
+ ' .uagb-gf-styler__check-style-enabled input[type="checkbox"]:checked + label:before' => array(
3906
+ 'border-color' => $attr['fieldBorderFocusColor'],
3907
+ ),
3908
+
3909
+ ' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
3910
+ 'background-color' => $attr['radioCheckBgColor'],
3911
+ 'color' => $attr['radioCheckSelectColor'],
3912
+ 'height' => $attr['radioCheckSize'] . 'px',
3913
+ 'width' => $attr['radioCheckSize'] . 'px',
3914
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3915
+ 'border-color' => $attr['radioCheckBorderColor'],
3916
+ 'border-width' => $attr['radioCheckBorderWidth'] . 'px',
3917
+ ),
3918
+ ' .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]:checked + label:before' => array(
3919
+ 'background-color' => $attr['radioCheckSelectColor'],
3920
+ ),
3921
+ ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
3922
+ 'font-size' => $attr['radioCheckFontSize'] . $attr['radioCheckFontSizeType'],
3923
+ 'font-family' => $attr['radioCheckFontFamily'],
3924
+ 'font-weight' => $attr['radioCheckFontWeight'],
3925
+ 'line-height' => $attr['radioCheckLineHeight'] . $attr['radioCheckLineHeightType'],
3926
+ 'color' => $attr['radioCheckLableColor'],
3927
+ ),
3928
+ ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
3929
+ 'font-size' => $attr['radioCheckFontSize'] . $attr['radioCheckFontSizeType'],
3930
+ 'font-family' => $attr['radioCheckFontFamily'],
3931
+ 'font-weight' => $attr['radioCheckFontWeight'],
3932
+ 'line-height' => $attr['radioCheckLineHeight'] . $attr['radioCheckLineHeightType'],
3933
+ 'color' => $attr['radioCheckLableColor'],
3934
+ ),
3935
+ // Validation Errors.
3936
+ ' .gform_wrapper .gfield_description.validation_message' => array(
3937
+ 'color' => $attr['validationMsgColor'],
3938
+ ),
3939
+ ' .gform_wrapper .validation_message' => array(
3940
+ 'font-size' => $attr['validationMsgFontSize'] . $attr['validationMsgFontSizeType'],
3941
+ 'font-family' => $attr['validationMsgFontFamily'],
3942
+ 'font-weight' => $attr['validationMsgFontWeight'],
3943
+ 'line-height' => $attr['validationMsgLineHeight'] . $attr['validationMsgLineHeightType'],
3944
+ ),
3945
+ ' .uagb-gf-styler__error-yes .gform_wrapper .gfield.gfield_error' => array(
3946
+ 'background-color' => $attr['validationMsgBgColor'],
3947
+ ),
3948
+
3949
+ ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input:not([type="submit"]):not([type="button"]):not([type="image"])' => array(
3950
+ 'border-color' => $attr['highlightBorderColor'],
3951
+ ),
3952
+
3953
+ ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container select' => array(
3954
+ 'border-color' => $attr['highlightBorderColor'],
3955
+ ),
3956
+
3957
+ ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container .chosen-single' => array(
3958
+ 'border-color' => $attr['highlightBorderColor'],
3959
+ ),
3960
+
3961
+ ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container textarea' => array(
3962
+ 'border-color' => $attr['highlightBorderColor'],
3963
+ ),
3964
+
3965
+ ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error' => array(
3966
+ 'border-color' => $attr['highlightBorderColor'],
3967
+ ),
3968
+
3969
+ ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning' => array(
3970
+ 'border-color' => $attr['highlightBorderColor'],
3971
+ ),
3972
+
3973
+ ' .uagb-gf-styler__error-yes li.gfield_error .gfield_checkbox input[type="checkbox"] + label:before' => array(
3974
+ 'border-color' => $attr['highlightBorderColor'],
3975
+ ),
3976
+
3977
+ ' .uagb-gf-styler__error-yes li.gfield_error .ginput_container_consent input[type="checkbox"] + label:before' => array(
3978
+ 'border-color' => $attr['highlightBorderColor'],
3979
+ ),
3980
+
3981
+ ' .uagb-gf-styler__error-yes li.gfield_error .gfield_radio input[type="radio"] + label:before' => array(
3982
+ 'border-color' => $attr['highlightBorderColor'],
3983
+ ),
3984
+
3985
+ ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
3986
+ 'border-color' => $attr['fieldBorderWidth'] . 'px ' . $attr['fieldBorderStyle'] . ' ' . $attr['fieldBorderColor'] . '!important',
3987
+ ),
3988
+
3989
+ ' .uael-gf-style-underline.uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
3990
+ 'border-width' => $attr['fieldBorderWidth'] . 'px' . '!important',
3991
+ 'border-style' => 'solid' . '!important',
3992
+ 'border-color' => $attr['fieldBorderColor'] . '!important',
3993
+ ),
3994
+
3995
+ ' .gform_wrapper div.validation_error' => array(
3996
+ 'color' => $attr['errorMsgColor'],
3997
+ 'background-color' => $attr['errorMsgBgColor'],
3998
+ 'border-color' => $attr['errorMsgBorderColor'],
3999
+ 'border-style' => 'solid',
4000
+ 'border-width' => $attr['msgBorderSize'] . 'px',
4001
+ 'border-radius' => $attr['msgBorderRadius'] . $attr['msgBorderRadiusType'],
4002
+ 'padding' => $attr['msgVrPadding'] . 'px ' . $attr['msgHrPadding'] . 'px',
4003
+ 'font-size' => $attr['msgFontSize'] . $attr['msgFontSizeType'],
4004
+ 'font-family' => $attr['msgFontFamily'],
4005
+ 'font-weight' => $attr['msgFontWeight'],
4006
+ 'line-height' => $attr['msgLineHeight'] . $attr['msgLineHeightType'],
4007
+ ),
4008
+
4009
+ ' .gform_confirmation_message' => array(
4010
+ 'color' => $attr['successMsgColor'],
4011
+ 'font-size' => $attr['successMsgFontSize'] . $attr['successMsgFontSizeType'],
4012
+ 'font-family' => $attr['successMsgFontFamily'],
4013
+ 'font-weight' => $attr['successMsgFontWeight'],
4014
+ 'line-height' => $attr['successMsgLineHeight'] . $attr['successMsgLineHeightType'],
4015
+ ),
4016
+ );
4017
+
4018
+ $t_selectors = array(
4019
+ ' form.wpgf-form:not(input)' => array(
4020
+ 'color' => $attr['fieldLabelColor'],
4021
+ ),
4022
+ ' input:not([type=submit])' => array(
4023
+ 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
4024
+ 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
4025
+ ),
4026
+ ' textarea' => array(
4027
+ 'font-size' => $attr['inputFontSizeTablet'] . $attr['inputFontSizeType'],
4028
+ 'line-height' => $attr['inputLineHeightTablet'] . $attr['inputLineHeightType'],
4029
+ ),
4030
+ ' form label' => array(
4031
+ 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
4032
+ 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
4033
+ ),
4034
+
4035
+ ' form .gfield_radio label' => array(
4036
+ 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
4037
+ 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
4038
+ ),
4039
+ ' form .gfield_checkbox label' => array(
4040
+ 'font-size' => $attr['labelFontSizeTablet'] . $attr['labelFontSizeType'],
4041
+ 'line-height' => $attr['labelLineHeightTablet'] . $attr['labelLineHeightType'],
4042
+ ),
4043
+ ' input.gform_button' => array(
4044
+ 'font-size' => $attr['buttonFontSizeTablet'] . $attr['buttonFontSizeType'],
4045
+ 'line-height' => $attr['buttonLineHeightTablet'] . $attr['buttonLineHeightType'],
4046
+ ),
4047
+ ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
4048
+ 'font-size' => $attr['radioCheckFontSizeTablet'] . $attr['radioCheckFontSizeType'],
4049
+ 'line-height' => $attr['radioCheckLineHeightTablet'] . $attr['radioCheckLineHeightType'],
4050
+ ),
4051
+ ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
4052
+ 'font-size' => $attr['radioCheckFontSizeTablet'] . $attr['radioCheckFontSizeType'],
4053
+ 'line-height' => $attr['radioCheckLineHeightTablet'] . $attr['radioCheckLineHeightType'],
4054
+ ),
4055
+ ' span.wpgf-not-valid-tip' => array(
4056
+ 'font-size' => $attr['validationMsgFontSizeTablet'] . $attr['validationMsgFontSizeType'],
4057
+ 'line-height' => $attr['validationMsgLineHeightTablet'] . $attr['validationMsgLineHeightType'],
4058
+ ),
4059
+ ' .wpgf-response-output' => array(
4060
+ 'font-size' => $attr['msgFontSizeTablet'] . $attr['msgFontSizeType'],
4061
+ 'line-height' => $attr['msgLineHeightTablet'] . $attr['msgLineHeightType'],
4062
+ ),
4063
+ ' .gform_wrapper .validation_message' => array(
4064
+ 'font-size' => $attr['validationMsgFontSizeTablet'] . $attr['validationMsgFontSizeType'],
4065
+ 'line-height' => $attr['validationMsgLineHeightTablet'] . $attr['validationMsgLineHeightType'],
4066
+ ),
4067
+ ' .gform_wrapper div.validation_error' => array(
4068
+ 'font-size' => $attr['msgFontSizeTablet'] . $attr['msgFontSizeType'],
4069
+ 'line-height' => $attr['msgLineHeightTablet'] . $attr['msgLineHeightType'],
4070
+ ),
4071
+ ' .gform_confirmation_message' => array(
4072
+ 'color' => $attr['successMsgColor'],
4073
+ 'font-size' => $attr['successMsgFontSizeTablet'] . $attr['successMsgFontSizeType'],
4074
+ 'line-height' => $attr['successMsgLineHeightTablet'] . $attr['successMsgLineHeightType'],
4075
+ ),
4076
+ );
4077
+
4078
+ $m_selectors = array(
4079
+ ' input:not([type=submit])' => array(
4080
+ 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
4081
+ 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
4082
+ ),
4083
+ ' textarea' => array(
4084
+ 'font-size' => $attr['inputFontSizeMobile'] . $attr['inputFontSizeType'],
4085
+ 'line-height' => $attr['inputLineHeightMobile'] . $attr['inputLineHeightType'],
4086
+ ),
4087
+ ' form label' => array(
4088
+ 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
4089
+ 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
4090
+ ),
4091
+
4092
+ ' form .gfield_radio label' => array(
4093
+ 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
4094
+ 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
4095
+ ),
4096
+ ' form .gfield_checkbox label' => array(
4097
+ 'font-size' => $attr['labelFontSizeMobile'] . $attr['labelFontSizeType'],
4098
+ 'line-height' => $attr['labelLineHeightMobile'] . $attr['labelLineHeightType'],
4099
+ ),
4100
+ ' input.gform_button' => array(
4101
+ 'font-size' => $attr['buttonFontSizeMobile'] . $attr['buttonFontSizeType'],
4102
+ 'line-height' => $attr['buttonLineHeightMobile'] . $attr['buttonLineHeightType'],
4103
+ ),
4104
+ ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
4105
+ 'font-size' => $attr['radioCheckFontSizeMobile'] . $attr['radioCheckFontSizeType'],
4106
+ 'line-height' => $attr['radioCheckLineHeightMobile'] . $attr['radioCheckLineHeightType'],
4107
+ ),
4108
+ ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
4109
+ 'font-size' => $attr['radioCheckFontSizeMobile'] . $attr['radioCheckFontSizeType'],
4110
+ 'line-height' => $attr['radioCheckLineHeightMobile'] . $attr['radioCheckLineHeightType'],
4111
+ ),
4112
+ ' span.wpgf-not-valid-tip' => array(
4113
+ 'font-size' => $attr['validationMsgFontSizeMobile'] . $attr['validationMsgFontSizeType'],
4114
+ 'line-height' => $attr['validationMsgLineHeightMobile'] . $attr['validationMsgLineHeightType'],
4115
+ ),
4116
+ ' .wpgf-response-output' => array(
4117
+ 'font-size' => $attr['msgFontSizeMobile'] . $attr['msgFontSizeType'],
4118
+ 'line-height' => $attr['msgLineHeightMobile'] . $attr['msgLineHeightType'],
4119
+ ),
4120
+ ' .gform_wrapper .validation_message' => array(
4121
+ 'font-size' => $attr['validationMsgFontSizeMobile'] . $attr['validationMsgFontSizeType'],
4122
+ 'line-height' => $attr['validationMsgLineHeightMobile'] . $attr['validationMsgLineHeightType'],
4123
+ ),
4124
+ ' .gform_wrapper div.validation_error' => array(
4125
+ 'font-size' => $attr['msgFontSizeMobile'] . $attr['msgFontSizeType'],
4126
+ 'line-height' => $attr['msgLineHeightMobile'] . $attr['msgLineHeightType'],
4127
+ ),
4128
+ ' .gform_confirmation_message' => array(
4129
+ 'color' => $attr['successMsgColor'],
4130
+ 'font-size' => $attr['successMsgFontSizeMobile'] . $attr['successMsgFontSizeType'],
4131
+ 'line-height' => $attr['successMsgLineHeightMobile'] . $attr['successMsgLineHeightType'],
4132
+ ),
4133
+ );
4134
+
4135
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-gf-styler-' . $id );
4136
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-gf-styler-' . $id, 'tablet' );
4137
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-gf-styler-' . $id, 'mobile' );
4138
+ return $desktop . $tablet . $mobile;
4139
+ }
4140
+
4141
+ /*
4142
+ * Get Marketing Button Block CSS
4143
+ *
4144
+ * @since 1.11.0
4145
+ * @param array $attr The block attributes.
4146
+ * @param string $id The selector ID.
4147
+ * @return array The Widget List.
4148
+ */
4149
+ public static function get_marketing_btn_css( $attr, $id ) { // @codingStandardsIgnoreStart
4150
+
4151
+ $defaults = UAGB_Helper::$block_list['uagb/marketing-button']['attributes'];
4152
+
4153
+ $attr = array_merge( $defaults, (array) $attr );
4154
+
4155
+ $m_selectors = array();
4156
+ $t_selectors = array();
4157
+
4158
+ $icon_color = ( "" == $attr["iconColor"] ) ? $attr["titleColor"] : $attr["iconColor"];
4159
+ $icon_hover_color = ( "" == $attr["iconHoverColor"] ) ? $attr["titleHoverColor"] : $attr["iconHoverColor"];
4160
+
4161
+ $selectors = array(
4162
+ " .uagb-marketing-btn__title-wrap" => array(
4163
+ "margin-bottom" => $attr["titleSpace"] . "px"
4164
+ ),
4165
+ " .uagb-marketing-btn__title" => array(
4166
+ "font-size" => $attr["titleFontSize"] . $attr["titleFontSizeType"],
4167
+ "line-height" => $attr["titleLineHeight"] . $attr["titleLineHeightType"],
4168
+ "font-family" => $attr["titleFontFamily"],
4169
+ "font-weight" => $attr["titleFontWeight"],
4170
+ "color" => $attr["titleColor"],
4171
+ ),
4172
+ " .uagb-marketing-btn__icon-wrap" => array(
4173
+ "width" => $attr["iconFontSize"] . $attr["iconFontSizeType"],
4174
+ "height" => $attr["iconFontSize"] . $attr["iconFontSizeType"],
4175
+ ),
4176
+ " .uagb-marketing-btn__icon-wrap svg" => array(
4177
+ "fill" => $icon_color
4178
+ ),
4179
+ " .uagb-marketing-btn__prefix" => array(
4180
+ "font-size" => $attr["prefixFontSize"] . $attr["prefixFontSizeType"],
4181
+ "line-height" => $attr["prefixLineHeight"] . $attr["prefixLineHeightType"],
4182
+ "font-family" => $attr["prefixFontFamily"],
4183
+ "font-weight" => $attr["prefixFontWeight"],
4184
+ "color" => $attr["prefixColor"],
4185
+ ),
4186
+ " .uagb-marketing-btn__link:hover .uagb-marketing-btn__title" => array(
4187
+ "color" => $attr["titleHoverColor"],
4188
+ ),
4189
+ " .uagb-marketing-btn__link:hover .uagb-marketing-btn__prefix" => array(
4190
+ "color" => $attr["prefixHoverColor"],
4191
+ ),
4192
+ " .uagb-marketing-btn__link:hover .uagb-marketing-btn__icon-wrap svg" => array(
4193
+ "fill" => $icon_hover_color
4194
+ ),
4195
+ " .uagb-marketing-btn__link" => array(
4196
+ "padding-left" => $attr["hPadding"] . "px",
4197
+ "padding-right" => $attr["hPadding"] . "px",
4198
+ "padding-top" => $attr["vPadding"] . "px",
4199
+ "padding-bottom" => $attr["vPadding"] . "px",
4200
+ "border-style" => $attr["borderStyle"],
4201
+ "border-width" => $attr["borderWidth"] . "px",
4202
+ "border-color" => $attr["borderColor"],
4203
+ "border-radius" => $attr["borderRadius"] . "px",
4204
+ ),
4205
+ " .uagb-marketing-btn__link:hover" => array(
4206
+ "border-color" => $attr["borderHoverColor"]
4207
+ ),
4208
+ );
4209
+
4210
+ if ( "transparent" == $attr["backgroundType"] ) {
4211
+
4212
+ $selectors[" .uagb-marketing-btn__link"]["background"] = "transparent";
4213
+
4214
+ } else if ( "color" == $attr["backgroundType"] ) {
4215
+
4216
+ $selectors[" .uagb-marketing-btn__link"]["background"] = UAGB_Helper::hex2rgba( $attr["backgroundColor"], $attr['backgroundOpacity'] );
4217
+
4218
+ // Hover Background
4219
+ $selectors[" .uagb-marketing-btn__link:hover"] = array(
4220
+ "background" => UAGB_Helper::hex2rgba( $attr["backgroundHoverColor"], $attr['backgroundHoverOpacity'] ),
4221
+ );
4222
+
4223
+ } else if ( "gradient" == $attr["backgroundType"] ) {
4224
+
4225
+ $selectors[' .uagb-marketing-btn__link']['background-color'] = 'transparent';
4226
+
4227
+ if ( 'linear' === $attr['gradientType'] ) {
4228
+
4229
+ $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'] . '%)';
4230
+ } else {
4231
+
4232
+ $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'] . '%)';
4233
+ }
4234
+ }
4235
+
4236
+ $margin_type = ( "after" == $attr["iconPosition"] ) ? "margin-left" : "margin-right";
4237
+
4238
+ $selectors[" .uagb-marketing-btn__icon-wrap"][$margin_type] = $attr["iconSpace"] . "px";
4239
+
4240
+ $m_selectors = array(
4241
+ ' .uagb-marketing-btn__title' => array(
4242
+ 'font-size' => $attr['titleFontSizeMobile'] . $attr['titleFontSizeType'],
4243
+ 'line-height' => $attr['titleLineHeightMobile'] . $attr['titleLineHeightType'],
4244
+ ),
4245
+ ' .uagb-marketing-btn__prefix' => array(
4246
+ 'font-size' => $attr['prefixFontSizeMobile'] . $attr['prefixFontSizeType'],
4247
+ 'line-height' => $attr['prefixLineHeightMobile'] . $attr['prefixLineHeightType'],
4248
+ ),
4249
+ ' .uagb-marketing-btn__icon-wrap' => array(
4250
+ "width" => $attr["iconFontSizeMobile"] . $attr["iconFontSizeType"],
4251
+ "height" => $attr["iconFontSizeMobile"] . $attr["iconFontSizeType"],
4252
+ ),
4253
+
4254
+ );
4255
+
4256
+ $t_selectors = array(
4257
+ ' .uagb-marketing-btn__title' => array(
4258
+ 'font-size' => $attr['titleFontSizeTablet'] . $attr['titleFontSizeType'],
4259
+ 'line-height' => $attr['titleLineHeightTablet'] . $attr['titleLineHeightType'],
4260
+ ),
4261
+ ' .uagb-marketing-btn__prefix' => array(
4262
+ 'font-size' => $attr['prefixFontSizeTablet'] . $attr['prefixFontSizeType'],
4263
+ 'line-height' => $attr['prefixLineHeightTablet'] . $attr['prefixLineHeightType'],
4264
+ ),
4265
+ ' .uagb-marketing-btn__icon-wrap' => array(
4266
+ "width" => $attr["iconFontSizeTablet"] . $attr["iconFontSizeType"],
4267
+ "height" => $attr["iconFontSizeTablet"] . $attr["iconFontSizeType"],
4268
+ ),
4269
+
4270
+ );
4271
+
4272
+ // @codingStandardsIgnoreEnd
4273
+
4274
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-marketing-btn-' . $id );
4275
+
4276
+ $tablet = UAGB_Helper::generate_responsive_css( $t_selectors, '#uagb-marketing-btn-' . $id, 'tablet' );
4277
+
4278
+ $mobile = UAGB_Helper::generate_responsive_css( $m_selectors, '#uagb-marketing-btn-' . $id, 'mobile' );
4279
+
4280
+ return $desktop . $tablet . $mobile;
4281
+ }
4282
+
4283
+
4284
+ /**
4285
+ * Get Testimonial Js
4286
+ *
4287
+ * @since 1.6.0
4288
+ * @param array $attr The block attributes.
4289
+ * @param string $id The selector ID.
4290
+ */
4291
+ public static function get_testimonial_js( $attr, $id ) { // @codingStandardsIgnoreStart.
4292
+
4293
+ $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
4294
+
4295
+ $attr = array_merge( $defaults, (array) $attr );
4296
+
4297
+ $dots = ( "dots" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
4298
+ $arrows = ( "arrows" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
4299
+
4300
+ $slick_options = [
4301
+ 'slidesToShow' => $attr['columns'],
4302
+ 'slidesToScroll' => 1,
4303
+ 'autoplaySpeed' => $attr['autoplaySpeed'],
4304
+ 'autoplay' => $attr['autoplay'],
4305
+ 'infinite' => $attr['infiniteLoop'],
4306
+ 'pauseOnHover' => $attr['pauseOnHover'],
4307
+ 'speed' => $attr['transitionSpeed'],
4308
+ 'arrows' => $arrows,
4309
+ 'dots' => $dots,
4310
+ 'rtl' => false,
4311
+ '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>',
4312
+ '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>',
4313
+ 'responsive' => [
4314
+ [
4315
+ 'breakpoint' => 1024,
4316
+ 'settings' => [
4317
+ 'slidesToShow' => $attr['tcolumns'],
4318
+ 'slidesToScroll' => 1,
4319
+ ],
4320
+ ],
4321
+ [
4322
+ 'breakpoint' => 767,
4323
+ 'settings' => [
4324
+ 'slidesToShow' => $attr['mcolumns'],
4325
+ 'slidesToScroll' => 1,
4326
+ ],
4327
+ ]
4328
+ ]
4329
+ ];
4330
+
4331
+ $settings = json_encode($slick_options);
4332
+ $selector = '#uagb-testimonial-'. $id;
4333
+ ?>
4334
+ if( jQuery( ".wp-block-uagb-testimonial" ).length > 0 ){
4335
+ return true
4336
+ } else {
4337
+ jQuery( "<?php echo $selector ?>" ).find( ".is-carousel" ).slick( <?php echo $settings ?> );
4338
+ }
4339
+ <?php
4340
+ // @codingStandardsIgnoreEnd.
4341
+ }
4342
+
4343
+ /**
4344
+ * Get Blockquote Js
4345
+ *
4346
+ * @since 1.8.2
4347
+ * @param array $attr The block attributes.
4348
+ * @param string $id The selector ID.
4349
+ */
4350
+ public static function get_blockquote_js( $attr, $id ) {
4351
+ // @codingStandardsIgnoreStart.
4352
+
4353
+ $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
4354
+
4355
+ $attr = array_merge( $defaults, (array) $attr );
4356
+
4357
+ $target = $attr['iconTargetUrl'];
4358
+
4359
+ $url = " " ;
4360
+
4361
+ if( $target == 'current' ){
4362
+ global $wp;
4363
+ $url = home_url(add_query_arg(array(),$wp->request));
4364
+ }else{
4365
+ $url = $attr['customUrl'];
4366
+ }
4367
+
4368
+ $via = isset( $attr['iconShareVia'] ) ? $attr['iconShareVia'] : '';
4369
+
4370
+ $selector = '#uagb-blockquote-'. $id;
4371
+
4372
+ ?>
4373
+ jQuery( "<?php echo $selector ?>" ).find( ".uagb-blockquote__tweet-button" ).click(function(){
4374
+ var content = jQuery("<?php echo $selector ?>").find(".uagb-blockquote__content").text();
4375
+ var request_url = "https://twitter.com/share?url="+ encodeURIComponent("<?php echo $url ?>")+"&text="+content+"&via="+("<?php echo $via;?>");
4376
+ window.open( request_url );
4377
+ });
4378
+ <?php
4379
+
4380
+ // @codingStandardsIgnoreEnd.
4381
+ }
4382
+
4383
+ /**
4384
+ * Get Social Share JS
4385
+ *
4386
+ * @since 1.8.1
4387
+ * @param string $id The selector ID.
4388
+ */
4389
+ public static function get_social_share_js( $id ) {
4390
+ $selector = '#uagb-social-share-' . $id;
4391
+ ?>
4392
+ jQuery( "<?php echo $selector; ?>" ).find( ".uagb-ss__link" ).click(function(){
4393
+ var social_url = jQuery( this ).data( "href" );
4394
+ var target = "";
4395
+ if( social_url == "mailto:?body=" ){
4396
+ target = "_self";
4397
+ }
4398
+ var request_url = social_url + window.location.href ;
4399
+ window.open( request_url,target );
4400
+ });
4401
+ <?php
4402
+ }
4403
+
4404
+ /**
4405
+ * Adds Google fonts for Advanced Heading block.
4406
+ *
4407
+ * @since 1.9.1
4408
+ * @param array $attr the blocks attr.
4409
+ */
4410
+ public static function blocks_advanced_heading_gfont( $attr ) {
4411
+
4412
+ $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4413
+ $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4414
+ $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4415
+ $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4416
+
4417
+ $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4418
+ $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4419
+ $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4420
+ $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4421
+
4422
+ UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
4423
+ UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
4424
+ }
4425
+
4426
+
4427
+ /**
4428
+ * Adds Google fonts for CF7 Styler block.
4429
+ *
4430
+ * @since 1.10.0
4431
+ * @param array $attr the blocks attr.
4432
+ */
4433
+ public static function blocks_cf7_styler_gfont( $attr ) {
4434
+
4435
+ $label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
4436
+ $label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
4437
+ $label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
4438
+ $label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
4439
+
4440
+ $input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
4441
+ $input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
4442
+ $input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
4443
+ $input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
4444
+
4445
+ $radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
4446
+ $radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
4447
+ $radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
4448
+ $radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
4449
+
4450
+ $button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
4451
+ $button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
4452
+ $button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
4453
+ $button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
4454
+
4455
+ $msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
4456
+ $msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
4457
+ $msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
4458
+ $msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
4459
+
4460
+ $validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
4461
+ $validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
4462
+ $validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
4463
+ $validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
4464
+
4465
+ UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
4466
+ UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
4467
+
4468
+ UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
4469
+ UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
4470
+
4471
+ UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
4472
+ UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
4473
+ }
4474
+
4475
+
4476
+ /**
4477
+ * Adds Google fonts for Gravity Form Styler block.
4478
+ *
4479
+ * @since 1.12.0
4480
+ * @param array $attr the blocks attr.
4481
+ */
4482
+ public static function blocks_gf_styler_gfont( $attr ) {
4483
+
4484
+ $label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
4485
+ $label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
4486
+ $label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
4487
+ $label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
4488
+
4489
+ $input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
4490
+ $input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
4491
+ $input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
4492
+ $input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
4493
+
4494
+ $radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
4495
+ $radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
4496
+ $radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
4497
+ $radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
4498
+
4499
+ $button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
4500
+ $button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
4501
+ $button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
4502
+ $button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
4503
+
4504
+ $msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
4505
+ $msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
4506
+ $msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
4507
+ $msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
4508
+
4509
+ $validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
4510
+ $validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
4511
+ $validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
4512
+ $validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
4513
+
4514
+ UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
4515
+ UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
4516
+
4517
+ UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
4518
+ UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
4519
+
4520
+ UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
4521
+ UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
4522
+ }
4523
+
4524
+ /**
4525
+ * Adds Google fonts for Marketing Button block.
4526
+ *
4527
+ * @since 1.11.0
4528
+ * @param array $attr the blocks attr.
4529
+ */
4530
+ public static function blocks_marketing_btn_gfont( $attr ) {
4531
+
4532
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4533
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4534
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4535
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4536
+
4537
+ $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
4538
+ $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
4539
+ $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
4540
+ $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
4541
+
4542
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4543
+ UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
4544
+ }
4545
+
4546
+ /**
4547
+ * Adds Google fonts for Blockquote.
4548
+ *
4549
+ * @since 1.9.1
4550
+ * @param array $attr the blocks attr.
4551
+ */
4552
+ public static function blocks_blockquote_gfont( $attr ) {
4553
+
4554
+ $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4555
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4556
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4557
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4558
+
4559
+ $author_load_google_font = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
4560
+ $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
4561
+ $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
4562
+ $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
4563
+
4564
+ $tweet_btn_load_google_font = isset( $attr['tweetBtnLoadGoogleFonts'] ) ? $attr['tweetBtnLoadGoogleFonts'] : '';
4565
+ $tweet_btn_font_family = isset( $attr['tweetBtnFontFamily'] ) ? $attr['tweetBtnFontFamily'] : '';
4566
+ $tweet_btn_font_weight = isset( $attr['tweetBtnFontWeight'] ) ? $attr['tweetBtnFontWeight'] : '';
4567
+ $tweet_btn_font_subset = isset( $attr['tweetBtnFontSubset'] ) ? $attr['tweetBtnFontSubset'] : '';
4568
+
4569
+ UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
4570
+ UAGB_Helper::blocks_google_font( $author_load_google_font, $author_font_family, $author_font_weight, $author_font_subset );
4571
+ UAGB_Helper::blocks_google_font( $tweet_btn_load_google_font, $tweet_btn_font_family, $tweet_btn_font_weight, $tweet_btn_font_subset );
4572
+ }
4573
+
4574
+ /**
4575
+ * Adds Google fonts for Testimonial block.
4576
+ *
4577
+ * @since 1.9.1
4578
+ * @param array $attr the blocks attr.
4579
+ */
4580
+ public static function blocks_testimonial_gfont( $attr ) {
4581
+ $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4582
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4583
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4584
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4585
+
4586
+ $name_load_google_fonts = isset( $attr['nameLoadGoogleFonts'] ) ? $attr['nameLoadGoogleFonts'] : '';
4587
+ $name_font_family = isset( $attr['nameFontFamily'] ) ? $attr['nameFontFamily'] : '';
4588
+ $name_font_weight = isset( $attr['nameFontWeight'] ) ? $attr['nameFontWeight'] : '';
4589
+ $name_font_subset = isset( $attr['nameFontSubset'] ) ? $attr['nameFontSubset'] : '';
4590
+
4591
+ $company_load_google_fonts = isset( $attr['companyLoadGoogleFonts'] ) ? $attr['companyLoadGoogleFonts'] : '';
4592
+ $company_font_family = isset( $attr['companyFontFamily'] ) ? $attr['companyFontFamily'] : '';
4593
+ $company_font_weight = isset( $attr['companyFontWeight'] ) ? $attr['companyFontWeight'] : '';
4594
+ $company_font_subset = isset( $attr['companyFontSubset'] ) ? $attr['companyFontSubset'] : '';
4595
+
4596
+ UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
4597
+ UAGB_Helper::blocks_google_font( $name_load_google_fonts, $name_font_family, $name_font_family, $name_font_subset );
4598
+ UAGB_Helper::blocks_google_font( $company_load_google_fonts, $company_font_family, $company_font_family, $company_font_subset );
4599
+ }
4600
+
4601
+ /**
4602
+ * Adds Google fonts for Advanced Heading block.
4603
+ *
4604
+ * @since 1.9.1
4605
+ * @param array $attr the blocks attr.
4606
+ */
4607
+ public static function blocks_team_gfont( $attr ) {
4608
+
4609
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4610
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4611
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4612
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4613
+
4614
+ $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
4615
+ $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
4616
+ $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
4617
+ $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
4618
+
4619
+ $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4620
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4621
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4622
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4623
+
4624
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4625
+ UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
4626
+ UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
4627
+ }
4628
+
4629
+ /**
4630
+ *
4631
+ * Adds Google fonts for Restaurant Menu block.
4632
+ *
4633
+ * @since 1.9.1
4634
+ * @param array $attr the blocks attr.
4635
+ */
4636
+ public static function blocks_restaurant_menu_gfont( $attr ) {
4637
+ $title_load_google_fonts = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4638
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4639
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4640
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4641
+
4642
+ $price_load_google_fonts = isset( $attr['priceLoadGoogleFonts'] ) ? $attr['priceLoadGoogleFonts'] : '';
4643
+ $price_font_family = isset( $attr['priceFontFamily'] ) ? $attr['priceFontFamily'] : '';
4644
+ $price_font_weight = isset( $attr['priceFontWeight'] ) ? $attr['priceFontWeight'] : '';
4645
+ $price_font_subset = isset( $attr['priceFontSubset'] ) ? $attr['priceFontSubset'] : '';
4646
+
4647
+ $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4648
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4649
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4650
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4651
+
4652
+ UAGB_Helper::blocks_google_font( $title_load_google_fonts, $title_font_family, $title_font_weight, $title_font_subset );
4653
+ UAGB_Helper::blocks_google_font( $price_load_google_fonts, $price_font_family, $price_font_weight, $price_font_subset );
4654
+ UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
4655
+ }
4656
+
4657
+ /**
4658
+ * Adds Google fonts for Content Timeline block.
4659
+ *
4660
+ * @since 1.9.1
4661
+ * @param array $attr the blocks attr.
4662
+ */
4663
+ public static function blocks_content_timeline_gfont( $attr ) {
4664
+ $head_load_google_fonts = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4665
+ $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4666
+ $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4667
+ $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4668
+
4669
+ $subheadload_google_fonts = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4670
+ $subheadfont_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4671
+ $subheadfont_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4672
+ $subheadfont_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4673
+
4674
+ $date_load_google_fonts = isset( $attr['dateLoadGoogleFonts'] ) ? $attr['dateLoadGoogleFonts'] : '';
4675
+ $date_font_family = isset( $attr['dateFontFamily'] ) ? $attr['dateFontFamily'] : '';
4676
+ $date_font_weight = isset( $attr['dateFontWeight'] ) ? $attr['dateFontWeight'] : '';
4677
+ $date_font_subset = isset( $attr['dateFontSubset'] ) ? $attr['dateFontSubset'] : '';
4678
+
4679
+ UAGB_Helper::blocks_google_font( $head_load_google_fonts, $head_font_family, $head_font_weight, $head_font_subset );
4680
+ UAGB_Helper::blocks_google_font( $subheadload_google_fonts, $subheadfont_family, $subheadfont_weight, $subheadfont_subset );
4681
+ UAGB_Helper::blocks_google_font( $date_load_google_fonts, $date_font_family, $date_font_weight, $date_font_subset );
4682
+ }
4683
+
4684
+ /**
4685
+ * Adds Google fonts for Post Timeline block.
4686
+ *
4687
+ * @since 1.9.1
4688
+ * @param array $attr the blocks attr.
4689
+ */
4690
+ public static function blocks_post_timeline_gfont( $attr ) {
4691
+ self::blocks_content_timeline_gfont( $attr );
4692
+
4693
+ $author_load_google_fonts = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
4694
+ $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
4695
+ $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
4696
+ $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
4697
+
4698
+ $cta_load_google_fonts = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4699
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4700
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4701
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4702
+
4703
+ UAGB_Helper::blocks_google_font( $author_load_google_fonts, $author_font_family, $author_font_weight, $author_font_subset );
4704
+ UAGB_Helper::blocks_google_font( $cta_load_google_fonts, $cta_font_family, $cta_font_weight, $cta_font_subset );
4705
+ }
4706
+
4707
+ /**
4708
+ * Adds Google fonts for Mulit Button's block.
4709
+ *
4710
+ * @since 1.9.1
4711
+ * @param array $attr the blocks attr.
4712
+ */
4713
+ public static function blocks_buttons_gfont( $attr ) {
4714
+
4715
+ $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
4716
+ $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
4717
+ $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
4718
+ $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
4719
+
4720
+ UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
4721
+ }
4722
+
4723
+ /**
4724
+ * Adds Google fonts for Icon List block
4725
+ *
4726
+ * @since 1.9.1
4727
+ * @param array $attr the blocks attr.
4728
+ */
4729
+ public static function blocks_icon_list_gfont( $attr ) {
4730
+
4731
+ $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
4732
+ $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
4733
+ $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
4734
+ $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
4735
+
4736
+ UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
4737
+ }
4738
+
4739
+ /**
4740
+ * Adds Google fonts for Post block.
4741
+ *
4742
+ * @since 1.9.1
4743
+ * @param array $attr the blocks attr.
4744
+ */
4745
+ public static function blocks_post_gfont( $attr ) {
4746
+
4747
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4748
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4749
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4750
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4751
+
4752
+ $meta_load_google_font = isset( $attr['metaLoadGoogleFonts'] ) ? $attr['metaLoadGoogleFonts'] : '';
4753
+ $meta_font_family = isset( $attr['metaFontFamily'] ) ? $attr['metaFontFamily'] : '';
4754
+ $meta_font_weight = isset( $attr['metaFontWeight'] ) ? $attr['metaFontWeight'] : '';
4755
+ $meta_font_subset = isset( $attr['metaFontSubset'] ) ? $attr['metaFontSubset'] : '';
4756
+
4757
+ $excerpt_load_google_font = isset( $attr['excerptLoadGoogleFonts'] ) ? $attr['excerptLoadGoogleFonts'] : '';
4758
+ $excerpt_font_family = isset( $attr['excerptFontFamily'] ) ? $attr['excerptFontFamily'] : '';
4759
+ $excerpt_font_weight = isset( $attr['excerptFontWeight'] ) ? $attr['excerptFontWeight'] : '';
4760
+ $excerpt_font_subset = isset( $attr['excerptFontSubset'] ) ? $attr['excerptFontSubset'] : '';
4761
+
4762
+ $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4763
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4764
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4765
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4766
+
4767
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4768
+
4769
+ UAGB_Helper::blocks_google_font( $meta_load_google_font, $meta_font_family, $meta_font_weight, $meta_font_subset );
4770
+
4771
+ UAGB_Helper::blocks_google_font( $excerpt_load_google_font, $excerpt_font_family, $excerpt_font_weight, $excerpt_font_subset );
4772
+
4773
+ UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4774
+ }
4775
+
4776
+ /**
4777
+ * Adds Google fonts for Advanced Heading block.
4778
+ *
4779
+ * @since 1.9.1
4780
+ * @param array $attr the blocks attr.
4781
+ */
4782
+ public static function blocks_info_box_gfont( $attr ) {
4783
+
4784
+ $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4785
+ $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4786
+ $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4787
+ $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4788
+
4789
+ $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
4790
+ $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
4791
+ $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
4792
+ $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
4793
+
4794
+ $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4795
+ $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4796
+ $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4797
+ $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4798
+
4799
+ $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4800
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4801
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4802
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4803
+
4804
+ UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4805
+ UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
4806
+ UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
4807
+ UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
4808
+ }
4809
+
4810
+ /**
4811
+ * Adds Google fonts for Call To Action block.
4812
+ *
4813
+ * @since 1.9.1
4814
+ * @param array $attr the blocks attr.
4815
+ */
4816
+ public static function blocks_call_to_action_gfont( $attr ) {
4817
+
4818
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4819
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4820
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4821
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4822
+
4823
+ $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4824
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4825
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4826
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4827
+
4828
+ $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
4829
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
4830
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
4831
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
4832
+
4833
+ UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
4834
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4835
+ UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
4836
+ }
4837
+ }
4838
+ }
classes/class-uagb-config.php CHANGED
@@ -1,1646 +1,1646 @@
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
- 'bottomHeightTablet' => '',
134
- 'bottomHeightMobile' => '',
135
- 'bottomWidth' => '',
136
- 'topType' => 'none',
137
- 'topColor' => '#333',
138
- 'topHeight' => '',
139
- 'topHeightTablet' => '',
140
- 'topHeightMobile' => '',
141
- 'topWidth' => '',
142
- 'bottomFlip' => '',
143
- 'topFlip' => '',
144
- ),
145
- ),
146
- 'uagb/column' => array(
147
- 'slug' => '',
148
- 'title' => __( 'Column', 'ultimate-addons-for-gutenberg' ),
149
- 'description' => __( 'This block is an immediate child of Advanced Columns.', 'ultimate-addons-for-gutenberg' ),
150
- 'default' => true,
151
- 'is_child' => true,
152
- 'attributes' => array(
153
- 'block_id' => '',
154
- 'topPadding' => '',
155
- 'bottomPadding' => '',
156
- 'leftPadding' => '',
157
- 'rightPadding' => '',
158
- 'topMargin' => '',
159
- 'bottomMargin' => '',
160
- 'leftMargin' => '',
161
- 'rightMargin' => '',
162
- 'topPaddingTablet' => '',
163
- 'bottomPaddingTablet' => '',
164
- 'leftPaddingTablet' => '',
165
- 'rightPaddingTablet' => '',
166
- 'topPaddingMobile' => '',
167
- 'bottomPaddingMobile' => '',
168
- 'leftPaddingMobile' => '',
169
- 'rightPaddingMobile' => '',
170
- 'topMarginMobile' => '',
171
- 'bottomMarginMobile' => '',
172
- 'leftMarginMobile' => '',
173
- 'rightMarginMobile' => '',
174
- 'topMarginTablet' => '',
175
- 'bottomMarginTablet' => '',
176
- 'leftMarginTablet' => '',
177
- 'rightMarginTablet' => '',
178
- 'colWidth' => '',
179
- 'colWidthTablet' => '',
180
- 'colWidthMobile' => '',
181
- 'backgroundType' => 'none',
182
- 'backgroundImage' => '',
183
- 'backgroundPosition' => 'center-center',
184
- 'backgroundSize' => 'cover',
185
- 'backgroundRepeat' => 'no-repeat',
186
- 'backgroundAttachment' => 'scroll',
187
- 'backgroundColor' => '',
188
- 'gradientColor1' => '',
189
- 'gradientColor2' => '',
190
- 'gradientType' => 'linear',
191
- 'gradientLocation1' => 0,
192
- 'gradientLocation2' => 100,
193
- 'gradientAngle' => 0,
194
- 'backgroundOpacity' => '',
195
- 'backgroundImageColor' => '',
196
- 'borderStyle' => 'none',
197
- 'borderWidth' => 1,
198
- 'borderRadius' => '',
199
- 'borderColor' => '',
200
- 'align' => 'center',
201
- 'alignMobile' => '',
202
- 'alignTablet' => '',
203
- ),
204
- ),
205
- 'uagb/blockquote' => array(
206
- 'slug' => '',
207
- 'title' => __( 'Blockquote', 'ultimate-addons-for-gutenberg' ),
208
- 'description' => __( 'This block allows you to display your Blockquote.', 'ultimate-addons-for-gutenberg' ),
209
- 'default' => true,
210
- 'attributes' => array(
211
- 'block_id ' => '',
212
- 'skinStyle' => 'border',
213
- 'align' => 'left',
214
- 'descColor' => '',
215
- 'descFontSize' => '',
216
- 'descFontSizeType' => 'px',
217
- 'descFontSizeTablet' => '',
218
- 'descFontSizeMobile' => '',
219
- 'descFontFamily' => '',
220
- 'descFontWeight' => '',
221
- 'descFontSubset' => '',
222
- 'descLineHeightType' => 'em
223
- ',
224
- 'descLineHeight' => '',
225
- 'descLineHeightTablet' => '',
226
- 'descLineHeightMobile' => '',
227
- 'descLoadGoogleFonts' => false,
228
- 'descSpace' => 20,
229
- 'authorColor' => '#888888',
230
- 'authorFontSize' => '',
231
- 'authorFontSizeType' => 'px',
232
- 'authorFontSizeTablet' => '',
233
- 'authorFontSizeMobile' => '',
234
- 'authorFontFamily' => '',
235
- 'authorFontWeight' => '',
236
- 'authorFontSubset' => '',
237
- 'authorLineHeightType' => 'em
238
- ',
239
- 'authorLineHeight' => '',
240
- 'authorLineHeightTablet' => '',
241
- 'authorLineHeightMobile' => '',
242
- 'authorLoadGoogleFonts' => false,
243
- 'authorSpace' => 10,
244
- 'authorImageWidth' => 40,
245
- 'authorImgBorderRadius' => 100,
246
- 'authorImgPosition' => 'right',
247
- 'stack' => 'tablet',
248
- 'enableTweet' => true,
249
- 'iconView' => 'icon_text',
250
- 'iconSkin' => 'link',
251
- 'tweetLinkColor' => '#1DA1F2',
252
- 'tweetBtnColor' => '#fff',
253
- 'tweetBtnBgColor' => '#1DA1F2',
254
- 'tweetBtnHoverColor' => '',
255
- 'tweetBtnBgHoverColor' => '#1DA1F2',
256
- 'tweetBtnFontSize' => 15,
257
- 'tweetBtnFontSizeType' => 'px',
258
- 'tweetBtnFontSizeTablet' => '',
259
- 'tweetBtnFontSizeMobile' => '',
260
- 'tweetBtnFontFamily' => '',
261
- 'tweetBtnFontWeight' => '',
262
- 'tweetBtnFontSubset' => '',
263
- 'tweetBtnLineHeightType' => 'em',
264
- 'tweetBtnLineHeight' => '',
265
- 'tweetBtnLineHeightTablet' => '',
266
- 'tweetBtnLineHeightMobile' => '',
267
- 'tweetBtnLoadGoogleFonts' => false,
268
- 'tweetBtnHrPadding' => 10,
269
- 'tweetBtnVrPadding' => 10,
270
- 'tweetIconSpacing' => 10,
271
- 'borderColor' => '#abb8c3',
272
- 'borderStyle' => 'solid',
273
- 'borderWidth' => 4,
274
- 'borderGap' => 15,
275
- 'verticalPadding' => '',
276
- 'quoteStyle' => 'style_1',
277
- 'quoteColor' => '#abb8c3',
278
- 'quoteSize' => 25,
279
- 'quoteSizeType' => 'px',
280
- 'quoteSizeTablet' => '',
281
- 'quoteSizeMobile' => '',
282
- 'quoteTopMargin' => '',
283
- 'quoteBottomMargin' => '',
284
- 'quoteLeftMargin' => '',
285
- 'quoteRightMargin' => 20,
286
- 'quoteBorderRadius' => 100,
287
- 'quoteBgColor' => '#333',
288
- 'quoteHoverColor' => '',
289
- 'quoteBgHoverColor' => '',
290
- 'borderHoverColor' => '',
291
- 'iconTargetUrl' => 'current',
292
- 'customUrl' => '',
293
- 'iconShareVia' => '',
294
- 'quotePadding' => 10,
295
- 'quotePaddingType' => 'px',
296
- 'quotePaddingTablet' => '',
297
- 'quotePaddingMobile' => '',
298
- ),
299
- ),
300
- 'uagb/call-to-action' => array(
301
- 'slug' => '',
302
- 'title' => __( 'Call To Action', 'ultimate-addons-for-gutenberg' ),
303
- 'description' => __( 'This block allows you to place an CTA along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
304
- 'default' => true,
305
- 'attributes' => array(
306
- 'textAlign' => 'left',
307
- 'titleColor' => '',
308
- 'descColor' => '',
309
- 'ctaPosition' => 'right',
310
- 'titleTag' => '',
311
- 'titleFontSize' => '',
312
- 'titleFontSizeType' => 'px',
313
- 'titleFontSizeMobile' => '',
314
- 'titleFontSizeTablet' => '',
315
- 'titleFontFamily' => '',
316
- 'titleFontWeight' => '',
317
- 'titleFontSubset' => '',
318
- 'titleLineHeightType' => 'em',
319
- 'titleLineHeight' => '',
320
- 'titleLineHeightTablet' => '',
321
- 'titleLineHeightMobile' => '',
322
- 'titleLoadGoogleFonts' => false,
323
- 'descFontSize' => '',
324
- 'descFontSizeType' => 'px',
325
- 'descFontSizeMobile' => '',
326
- 'descFontSizeTablet' => '',
327
- 'descFontFamily' => '',
328
- 'descFontWeight' => '',
329
- 'descFontSubset' => '',
330
- 'descLineHeightType' => 'em',
331
- 'descLineHeight' => '',
332
- 'descLineHeightTablet' => '',
333
- 'descLineHeightMobile' => '',
334
- 'descLoadGoogleFonts' => false,
335
- 'titleSpace' => 10,
336
- 'descSpace' => 10,
337
- 'buttonAlign' => 'top',
338
- 'ctaTarget' => false,
339
- 'ctaIconPosition' => 'after',
340
- 'ctaIconSpace' => 5,
341
- 'ctaType' => 'button',
342
- 'ctaLink' => '#',
343
- 'ctaFontSize' => '',
344
- 'ctaFontSizeType' => 'px',
345
- 'ctaFontSizeMobile' => '',
346
- 'ctaFontSizeTablet' => '',
347
- 'ctaFontFamily' => '',
348
- 'ctaFontWeight' => '',
349
- 'ctaFontSubset' => '',
350
- 'ctaLoadGoogleFonts' => false,
351
- 'ctaBtnLinkColor' => '#333',
352
- 'ctaBgColor' => 'transparent',
353
- 'ctaBgHoverColor' => 'transparent',
354
- 'ctaBorderColor' => '#333',
355
- 'ctaBorderhoverColor' => '',
356
- 'ctaBorderStyle' => 'solid',
357
- 'ctaBtnVertPadding' => 10,
358
- 'ctaBtnHrPadding' => 14,
359
- 'ctaBorderWidth' => 1,
360
- 'ctaBorderRadius' => 0,
361
- 'stack' => 'tablet',
362
- 'showTitle' => true,
363
- 'showDesc' => true,
364
- 'ctaLeftSpace' => 5,
365
- 'ctaRightSpace' => 5,
366
- 'contentWidth' => 70,
367
- 'ctaLinkHoverColor' => '',
368
- ),
369
- ),
370
- 'uagb/cf7-styler' => array(
371
- 'slug' => '',
372
- 'title' => __( 'Contact Form 7 Styler', 'ultimate-addons-for-gutenberg' ),
373
- 'description' => __( 'This block allows you to add and style your Contact Form 7 forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
374
- 'is_active' => class_exists( 'WPCF7_ContactForm' ),
375
- 'default' => true,
376
- 'attributes' => array(
377
- 'block_id' => '',
378
- 'align' => 'left',
379
- 'formId' => '0',
380
- 'fieldStyle' => 'box',
381
- 'fieldHrPadding' => 10,
382
- 'fieldVrPadding' => 10,
383
- 'fieldBgColor' => '#fafafa',
384
- 'fieldLabelColor' => '#333',
385
- 'fieldInputColor' => '#333',
386
- 'fieldBorderStyle' => 'solid',
387
- 'fieldBorderWidth' => 1,
388
- 'fieldBorderRadius' => 0,
389
- 'fieldBorderColor' => '#eeeeee',
390
- 'fieldBorderFocusColor' => '',
391
- 'buttonAlignment' => 'left',
392
- 'buttonVrPadding' => 10,
393
- 'buttonHrPadding' => 25,
394
- 'buttonTextColor' => '#333',
395
- 'buttonBgColor' => 'transparent',
396
- 'buttonTextHoverColor' => '',
397
- 'buttonBgHoverColor' => '',
398
- 'buttonBorderStyle' => 'solid',
399
- 'buttonBorderWidth' => 1,
400
- 'buttonBorderRadius' => 0,
401
- 'buttonBorderColor' => '#333',
402
- 'buttonBorderHoverColor' => '',
403
- 'fieldSpacing' => '',
404
- 'fieldLabelSpacing' => '',
405
- 'labelFontSize' => '',
406
- 'labelFontSizeType' => 'px',
407
- 'labelFontSizeTablet' => '',
408
- 'labelFontSizeMobile' => '',
409
- 'labelFontFamily' => '',
410
- 'labelFontWeight' => '',
411
- 'labelFontSubset' => '',
412
- 'labelLineHeightType' => 'px',
413
- 'labelLineHeight' => '',
414
- 'labelLineHeightTablet' => '',
415
- 'labelLineHeightMobile' => '',
416
- 'labelLoadGoogleFonts' => false,
417
- 'inputFontSize' => '',
418
- 'inputFontSizeType' => 'px',
419
- 'inputFontSizeTablet' => '',
420
- 'inputFontSizeMobile' => '',
421
- 'inputFontFamily' => '',
422
- 'inputFontWeight' => '',
423
- 'inputFontSubset' => '',
424
- 'inputLineHeightType' => 'px',
425
- 'inputLineHeight' => '',
426
- 'inputLineHeightTablet' => '',
427
- 'inputLineHeightMobile' => '',
428
- 'inputLoadGoogleFonts' => false,
429
- 'buttonFontSize' => '',
430
- 'buttonFontSizeType' => 'px',
431
- 'buttonFontSizeTablet' => '',
432
- 'buttonFontSizeMobile' => '',
433
- 'buttonFontFamily' => '',
434
- 'buttonFontWeight' => '',
435
- 'buttonFontSubset' => '',
436
- 'buttonLineHeightType' => 'px',
437
- 'buttonLineHeight' => '',
438
- 'buttonLineHeightTablet' => '',
439
- 'buttonLineHeightMobile' => '',
440
- 'buttonLoadGoogleFonts' => false,
441
- 'enableOveride' => true,
442
- 'radioCheckSize' => '',
443
- 'radioCheckBgColor' => '',
444
- 'radioCheckSelectColor' => '',
445
- 'radioCheckLableColor' => '',
446
- 'radioCheckBorderColor' => '#abb8c3',
447
- 'radioCheckBorderWidth' => '',
448
- 'radioCheckBorderRadius' => '',
449
- 'radioCheckFontSize' => '',
450
- 'radioCheckFontSizeType' => 'px',
451
- 'radioCheckFontSizeTablet' => '',
452
- 'radioCheckFontSizeMobile' => '',
453
- 'radioCheckFontFamily' => '',
454
- 'radioCheckFontWeight' => '',
455
- 'radioCheckFontSubset' => '',
456
- 'radioCheckLineHeightType' => 'px',
457
- 'radioCheckLineHeight' => '',
458
- 'radioCheckLineHeightTablet' => '',
459
- 'radioCheckLineHeightMobile' => '',
460
- 'radioCheckLoadGoogleFonts' => false,
461
- 'validationMsgPosition' => 'default',
462
- 'validationMsgColor' => '#ff0000',
463
- 'validationMsgBgColor' => '',
464
- 'enableHighlightBorder' => false,
465
- 'highlightBorderColor' => '#ff0000',
466
- 'validationMsgFontSize' => '',
467
- 'validationMsgFontSizeType' => 'px',
468
- 'validationMsgFontSizeTablet' => '',
469
- 'validationMsgFontSizeMobile' => '',
470
- 'validationMsgFontFamily' => '',
471
- 'validationMsgFontWeight' => '',
472
- 'validationMsgFontSubset' => '',
473
- 'validationMsgLineHeightType' => 'em',
474
- 'validationMsgLineHeight' => '',
475
- 'validationMsgLineHeightTablet' => '',
476
- 'validationMsgLineHeightMobile' => '',
477
- 'validationMsgLoadGoogleFonts' => false,
478
- 'successMsgColor' => '',
479
- 'successMsgBgColor' => '',
480
- 'successMsgBorderColor' => '',
481
- 'errorMsgColor' => '',
482
- 'errorMsgBgColor' => '',
483
- 'errorMsgBorderColor' => '',
484
- 'msgBorderSize' => '',
485
- 'msgBorderRadius' => '',
486
- 'msgVrPadding' => '',
487
- 'msgHrPadding' => '',
488
- 'msgFontSize' => '',
489
- 'msgFontSizeType' => 'px',
490
- 'msgFontSizeTablet' => '',
491
- 'msgFontSizeMobile' => '',
492
- 'msgFontFamily' => '',
493
- 'msgFontWeight' => '',
494
- 'msgFontSubset' => '',
495
- 'msgLineHeightType' => 'em',
496
- 'msgLineHeight' => '',
497
- 'msgLineHeightTablet' => '',
498
- 'msgLineHeightMobile' => '',
499
- 'msgLoadGoogleFonts' => false,
500
- 'radioCheckBorderRadiusType' => 'px',
501
- 'msgBorderRadiusType' => 'px',
502
- 'fieldBorderRadiusType' => 'px',
503
- 'buttonBorderRadiusType' => 'px',
504
- ),
505
- ),
506
- 'uagb/gf-styler' => array(
507
- 'slug' => '',
508
- 'title' => __( 'Gravity Form Styler', 'ultimate-addons-for-gutenberg' ),
509
- 'description' => __( 'This block allows you to add and style your Gravity Forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
510
- 'default' => true,
511
- 'is_active' => class_exists( 'GFForms' ),
512
- 'attributes' => array(
513
- 'block_id' => '',
514
- 'align' => 'left',
515
- 'enableAjax' => false,
516
- 'enableTabSupport' => false,
517
- 'formTabIndex' => '0',
518
- 'formId' => '0',
519
- 'titleDescStyle' => 'yes',
520
- 'titleDescAlignment' => 'left',
521
- 'fieldStyle' => 'box',
522
- 'fieldHrPadding' => 10,
523
- 'fieldVrPadding' => 10,
524
- 'fieldBgColor' => '#fafafa',
525
- 'fieldLabelColor' => '#333',
526
- 'fieldInputColor' => '#333',
527
- 'fieldBorderStyle' => 'solid',
528
- 'fieldBorderWidth' => 1,
529
- 'fieldBorderRadius' => 0,
530
- 'fieldBorderColor' => '#eeeeee',
531
- 'fieldBorderFocusColor' => '',
532
- 'buttonAlignment' => 'left',
533
- 'buttonVrPadding' => 10,
534
- 'buttonHrPadding' => 25,
535
- 'buttonTextColor' => '#333',
536
- 'buttonBgColor' => 'transparent',
537
- 'buttonTextHoverColor' => '',
538
- 'buttonBgHoverColor' => '',
539
- 'buttonBorderStyle' => 'solid',
540
- 'buttonBorderWidth' => 1,
541
- 'buttonBorderRadius' => 0,
542
- 'buttonBorderColor' => '#333',
543
- 'buttonBorderHoverColor' => '',
544
- 'fieldSpacing' => '',
545
- 'fieldLabelSpacing' => '',
546
- 'enableLabel' => false,
547
- 'textAreaHeight' => 'auto',
548
- 'labelFontSize' => '',
549
- 'labelFontSizeType' => 'px',
550
- 'labelFontSizeTablet' => '',
551
- 'labelFontSizeMobile' => '',
552
- 'labelFontFamily' => '',
553
- 'labelFontWeight' => '',
554
- 'labelFontSubset' => '',
555
- 'labelLineHeightType' => 'px',
556
- 'labelLineHeight' => '',
557
- 'labelLineHeightTablet' => '',
558
- 'labelLineHeightMobile' => '',
559
- 'labelLoadGoogleFonts' => false,
560
- 'inputFontSize' => '',
561
- 'inputFontSizeType' => 'px',
562
- 'inputFontSizeTablet' => '',
563
- 'inputFontSizeMobile' => '',
564
- 'inputFontFamily' => '',
565
- 'inputFontWeight' => '',
566
- 'inputFontSubset' => '',
567
- 'inputLineHeightType' => 'px',
568
- 'inputLineHeight' => '',
569
- 'inputLineHeightTablet' => '',
570
- 'inputLineHeightMobile' => '',
571
- 'inputLoadGoogleFonts' => false,
572
- 'buttonFontSize' => '',
573
- 'buttonFontSizeType' => 'px',
574
- 'buttonFontSizeTablet' => '',
575
- 'buttonFontSizeMobile' => '',
576
- 'buttonFontFamily' => '',
577
- 'buttonFontWeight' => '',
578
- 'buttonFontSubset' => '',
579
- 'buttonLineHeightType' => 'px',
580
- 'buttonLineHeight' => '',
581
- 'buttonLineHeightTablet' => '',
582
- 'buttonLineHeightMobile' => '',
583
- 'buttonLoadGoogleFonts' => false,
584
- 'enableOveride' => true,
585
- 'radioCheckSize' => '20',
586
- 'radioCheckBgColor' => '#fafafa',
587
- 'radioCheckSelectColor' => '',
588
- 'radioCheckLableColor' => '',
589
- 'radioCheckBorderColor' => '#cbcbcb',
590
- 'radioCheckBorderWidth' => '1',
591
- 'radioCheckBorderRadius' => '',
592
- 'radioCheckFontSize' => '',
593
- 'radioCheckFontSizeType' => 'px',
594
- 'radioCheckFontSizeTablet' => '',
595
- 'radioCheckFontSizeMobile' => '',
596
- 'radioCheckFontFamily' => '',
597
- 'radioCheckFontWeight' => '',
598
- 'radioCheckFontSubset' => '',
599
- 'radioCheckLineHeightType' => 'px',
600
- 'radioCheckLineHeight' => '',
601
- 'radioCheckLineHeightTablet' => '',
602
- 'radioCheckLineHeightMobile' => '',
603
- 'radioCheckLoadGoogleFonts' => false,
604
- 'validationMsgColor' => '#ff0000',
605
- 'advancedValidationSettings' => false,
606
- 'highlightBorderColor' => '#ff0000',
607
- 'validationMsgFontSize' => '',
608
- 'validationMsgBgColor' => '',
609
- 'validationMsgFontSizeType' => 'px',
610
- 'validationMsgFontSizeTablet' => '',
611
- 'validationMsgFontSizeMobile' => '',
612
- 'validationMsgFontFamily' => '',
613
- 'validationMsgFontWeight' => '',
614
- 'validationMsgFontSubset' => '',
615
- 'validationMsgLineHeightType' => 'em',
616
- 'validationMsgLineHeight' => '',
617
- 'validationMsgLineHeightTablet' => '',
618
- 'validationMsgLineHeightMobile' => '',
619
- 'validationMsgLoadGoogleFonts' => false,
620
- 'successMsgBorderColor' => '',
621
- 'errorMsgColor' => '',
622
- 'errorMsgBgColor' => '',
623
- 'errorMsgBorderColor' => '',
624
- 'msgBorderSize' => '',
625
- 'msgBorderRadius' => '',
626
- 'msgVrPadding' => '',
627
- 'msgHrPadding' => '',
628
- 'msgFontSize' => '',
629
- 'msgFontSizeType' => 'px',
630
- 'msgFontSizeTablet' => '',
631
- 'msgFontSizeMobile' => '',
632
- 'msgFontFamily' => '',
633
- 'msgFontWeight' => '',
634
- 'msgFontSubset' => '',
635
- 'msgLineHeightType' => 'em',
636
- 'msgLineHeight' => '',
637
- 'msgLineHeightTablet' => '',
638
- 'msgLineHeightMobile' => '',
639
- 'msgLoadGoogleFonts' => false,
640
- 'radioCheckBorderRadiusType' => 'px',
641
- 'msgBorderRadiusType' => 'px',
642
- 'fieldBorderRadiusType' => 'px',
643
- 'buttonBorderRadiusType' => 'px',
644
- 'successMsgColor' => '',
645
- 'successMsgFontSize' => '',
646
- 'successMsgFontSizeType' => 'px',
647
- 'successMsgFontSizeTablet' => '',
648
- 'successMsgFontSizeMobile' => '',
649
- 'successMsgFontFamily' => '',
650
- 'successMsgFontWeight' => '',
651
- 'successMsgFontSubset' => '',
652
- 'successMsgLineHeightType' => 'em',
653
- 'successMsgLineHeight' => '',
654
- 'successMsgLineHeightTablet' => '',
655
- 'successMsgLineHeightMobile' => '',
656
- 'successMsgLoadGoogleFonts' => false,
657
- ),
658
- ),
659
- 'uagb/content-timeline' => array(
660
- 'slug' => '',
661
- 'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ),
662
- 'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ),
663
- 'default' => true,
664
- 'attributes' => array(
665
- 'align' => 'center',
666
- 'headingColor' => '',
667
- 'subHeadingColor' => '',
668
- 'separatorBg' => '#eee',
669
- 'backgroundColor' => '#eee',
670
- 'separatorColor' => '#eee',
671
- 'separatorFillColor' => '#61ce70',
672
- 'separatorBorder' => '#eee',
673
- 'borderFocus' => '#5cb85c',
674
- 'horizontalSpace' => 10,
675
- 'verticalSpace' => 15,
676
- 'headFontSizeType' => 'px',
677
- 'headFontSize' => '',
678
- 'headFontSizeTablet' => '',
679
- 'headFontSizeMobile' => '',
680
- 'headFontFamily' => '',
681
- 'headFontWeight' => '',
682
- 'headFontSubset' => '',
683
- 'headLineHeightType' => 'em',
684
- 'headLineHeight' => '',
685
- 'headLineHeightTablet' => '',
686
- 'headLineHeightMobile' => '',
687
- 'headLoadGoogleFonts' => false,
688
- 'timelinAlignment' => 'center',
689
- 'arrowlinAlignment' => 'center',
690
- 'subHeadFontSizeType' => 'px',
691
- 'subHeadFontSize' => '',
692
- 'subHeadFontSizeTablet' => '',
693
- 'subHeadFontSizeMobile' => '',
694
- 'subHeadFontFamily' => '',
695
- 'subHeadFontWeight' => '',
696
- 'subHeadFontSubset' => '',
697
- 'subHeadLineHeightType' => 'em',
698
- 'subHeadLineHeight' => '',
699
- 'subHeadLineHeightTablet' => '',
700
- 'subHeadLineHeightMobile' => '',
701
- 'subHeadLoadGoogleFonts' => false,
702
- 'headSpace' => 5,
703
- 'separatorwidth' => 3,
704
- 'borderwidth' => 0,
705
- 'iconColor' => '#333',
706
- 'iconFocus' => '#fff',
707
- 'iconBgFocus' => '#61ce70',
708
- 'dateColor' => '#333',
709
- 'dateFontsizeType' => 'px',
710
- 'dateFontsize' => '12',
711
- 'dateFontsizeTablet' => '',
712
- 'dateFontsizeMobile' => '',
713
- 'dateFontFamily' => '',
714
- 'dateFontWeight' => '',
715
- 'dateFontSubset' => '',
716
- 'dateLineHeightType' => 'em',
717
- 'dateLineHeight' => '',
718
- 'dateLineHeightTablet' => '',
719
- 'dateLineHeightMobile' => '',
720
- 'dateLoadGoogleFonts' => false,
721
- 'connectorBgsize' => 35,
722
- 'dateBottomspace' => 5,
723
- 'borderRadius' => 2,
724
- 'bgPadding' => 20,
725
- 'iconSize' => 12,
726
- 'stack' => 'tablet',
727
- ),
728
- ),
729
- 'uagb/google-map' => array(
730
- 'slug' => '',
731
- 'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ),
732
- 'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ),
733
- 'default' => true,
734
- 'attributes' => array(
735
- 'block_id' => '',
736
- 'height' => '300',
737
- ),
738
- ),
739
- 'uagb/icon-list' => array(
740
- 'slug' => '',
741
- 'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ),
742
- 'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ),
743
- 'default' => true,
744
- 'attributes' => array(
745
- 'align' => 'left',
746
- 'icon_count' => '1',
747
- 'icons' => array(
748
- array(
749
- 'label' => __( 'Label #1', 'ultimate-addons-for-gutenberg' ),
750
- 'image_icon' => 'icon',
751
- 'icon' => 'fab fa-facebook',
752
- 'image' => '',
753
- 'icon_color' => '#3a3a3a',
754
- 'icon_hover_color' => '#3a3a3a',
755
- 'icon_bg_color' => '',
756
- 'icon_bg_hover_color' => '',
757
- 'icon_border_color' => '',
758
- 'icon_border_hover_color' => '',
759
- 'label_color' => '',
760
- 'label_hover_color' => '',
761
- 'link' => '#',
762
- 'target' => false,
763
- ),
764
- ),
765
- 'gap' => '10',
766
- 'inner_gap' => '15',
767
- 'size' => '40',
768
- 'sizeType' => 'px',
769
- 'sizeMobile' => '',
770
- 'sizeTablet' => '',
771
- 'bgSize' => '0',
772
- 'border' => '0',
773
- 'borderRadius' => '0',
774
- 'fontSize' => '',
775
- 'fontSizeType' => 'px',
776
- 'fontSizeMobile' => '',
777
- 'fontSizeTablet' => '',
778
- 'lineHeight' => '',
779
- 'lineHeightType' => 'em',
780
- 'lineHeightMobile' => '',
781
- 'lineHeightTablet' => '',
782
- 'fontFamily' => '',
783
- 'fontWeight' => '',
784
- 'fontSubset' => '',
785
- 'loadGoogleFonts' => false,
786
- 'icon_layout' => 'vertical',
787
- 'stack' => 'none',
788
- ),
789
- ),
790
- 'uagb/info-box' => array(
791
- 'slug' => '',
792
- 'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ),
793
- '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' ),
794
- 'default' => true,
795
- 'attributes' => array(
796
- 'headingAlign' => 'center',
797
- 'headingColor' => '',
798
- 'subHeadingColor' => '',
799
- 'prefixColor' => '',
800
- 'prefixFontSize' => '',
801
- 'prefixFontSizeType' => 'px',
802
- 'prefixFontSizeTablet' => '',
803
- 'prefixFontSizeMobile' => '',
804
- 'prefixFontFamily' => '',
805
- 'prefixFontWeight' => '',
806
- 'prefixFontSubset' => '',
807
- 'prefixLineHeightType' => 'em',
808
- 'prefixLineHeight' => '',
809
- 'prefixLineHeightTablet' => '',
810
- 'prefixLineHeightMobile' => '',
811
- 'prefixLoadGoogleFonts' => false,
812
- 'headFontSize' => '',
813
- 'headFontSizeType' => 'px',
814
- 'headFontSizeTablet' => '',
815
- 'headFontSizeMobile' => '',
816
- 'headFontFamily' => '',
817
- 'headFontWeight' => '',
818
- 'headFontSubset' => '',
819
- 'headLineHeightType' => 'em',
820
- 'headLineHeight' => '',
821
- 'headLineHeightTablet' => '',
822
- 'headLineHeightMobile' => '',
823
- 'headLoadGoogleFonts' => false,
824
- 'subHeadFontSize' => '',
825
- 'subHeadFontSizeType' => 'px',
826
- 'subHeadFontSizeTablet' => '',
827
- 'subHeadFontSizeMobile' => '',
828
- 'subHeadFontFamily' => '',
829
- 'subHeadFontWeight' => '',
830
- 'subHeadFontSubset' => '',
831
- 'subHeadLineHeightType' => 'em',
832
- 'subHeadLineHeight' => '',
833
- 'subHeadLineHeightTablet' => '',
834
- 'subHeadLineHeightMobile' => '',
835
- 'subHeadLoadGoogleFonts' => false,
836
- 'separatorWidth' => '',
837
- 'separatorHeight' => '',
838
- 'separatorWidthType' => '%',
839
- 'headSpace' => '10',
840
- 'separatorSpace' => '10',
841
- 'subHeadSpace' => '10',
842
- 'icon' => '',
843
- 'iconColor' => '#333',
844
- 'iconSize' => '40',
845
- 'iconimgPosition' => 'above-title',
846
- 'block_id' => '',
847
- 'iconHover' => '',
848
- 'iconimgBorderRadius' => '0',
849
- 'seperatorStyle' => 'solid',
850
- 'seperatorWidth' => '30',
851
- 'seperatorColor' => '#333',
852
- 'seperatorThickness' => '2',
853
- 'ctaLinkColor' => '#333',
854
- 'ctaFontSize' => '',
855
- 'ctaFontSizeType' => 'px',
856
- 'ctaFontSizeMobile' => '',
857
- 'ctaFontSizeTablet' => '',
858
- 'ctaFontFamily' => '',
859
- 'ctaFontWeight' => '',
860
- 'ctaFontSubset' => '',
861
- 'ctaLoadGoogleFonts' => false,
862
- 'ctaBtnLinkColor' => '#333',
863
- 'ctaBgColor' => 'transparent',
864
- 'ctaBtnVertPadding' => '10',
865
- 'ctaBtnHrPadding' => '14',
866
- 'ctaBorderStyle' => 'solid',
867
- 'ctaBorderColor' => '#333',
868
- 'ctaBorderWidth' => '1',
869
- 'ctaBorderRadius' => '0',
870
- 'prefixSpace' => '5',
871
- 'iconLeftMargin' => '5',
872
- 'iconRightMargin' => '10',
873
- 'iconTopMargin' => '5',
874
- 'iconBottomMargin' => '5',
875
- 'imageSize' => 'thumbnail',
876
- 'imageWidth' => '120',
877
- 'seperatorSpace' => '15',
878
- 'ctaLinkHoverColor' => '',
879
- 'ctaBgHoverColor' => '',
880
- 'ctaBorderhoverColor' => '',
881
- 'ctaIconSpace' => '5',
882
- ),
883
- ),
884
- 'uagb/marketing-button' => array(
885
- 'slug' => '',
886
- 'title' => __( 'Marketing Button', 'ultimate-addons-for-gutenberg' ),
887
- 'description' => __( 'This block allows you to place a Marketing Button with small description.', 'ultimate-addons-for-gutenberg' ),
888
- 'default' => true,
889
- 'attributes' => array(
890
- 'block_id' => '',
891
- 'align' => 'center',
892
- 'textAlign' => 'center',
893
- 'link' => '#',
894
- 'linkTarget' => false,
895
- 'titleSpace' => 0,
896
- 'borderStyle' => 'solid',
897
- 'borderWidth' => 1,
898
- 'borderRadius' => '',
899
- 'borderColor' => '#333',
900
- 'borderHoverColor' => '',
901
- 'vPadding' => 8,
902
- 'hPadding' => 20,
903
- 'backgroundType' => 'color',
904
- 'backgroundColor' => '#eeeeee',
905
- 'backgroundHoverColor' => '',
906
- 'gradientColor1' => '',
907
- 'gradientColor2' => '',
908
- 'gradientType' => 'linear',
909
- 'gradientLocation1' => 0,
910
- 'gradientLocation2' => 100,
911
- 'gradientAngle' => 0,
912
- 'backgroundOpacity' => '',
913
- 'backgroundHoverOpacity' => '',
914
- 'titleColor' => '#333',
915
- 'titleHoverColor' => '',
916
- 'iconColor' => '#333',
917
- 'iconHoverColor' => '',
918
- 'iconPosition' => 'before',
919
- 'prefixColor' => '#333',
920
- 'prefixHoverColor' => '',
921
- 'iconSpace' => 10,
922
- 'titleLoadGoogleFonts' => false,
923
- 'titleFontFamily' => 'Default',
924
- 'titleFontWeight' => '',
925
- 'titleFontSubset' => '',
926
- 'titleFontSize' => 20,
927
- 'titleFontSizeType' => 'px',
928
- 'titleFontSizeTablet' => 20,
929
- 'titleFontSizeMobile' => 20,
930
- 'titleLineHeightType' => 'em',
931
- 'titleLineHeight' => '',
932
- 'titleLineHeightTablet' => '',
933
- 'titleLineHeightMobile' => '',
934
- 'prefixLoadGoogleFonts' => false,
935
- 'prefixFontFamily' => 'Default',
936
- 'prefixFontWeight' => '',
937
- 'prefixFontSubset' => '',
938
- 'prefixFontSize' => 14,
939
- 'prefixFontSizeType' => 'px',
940
- 'prefixFontSizeTablet' => 14,
941
- 'prefixFontSizeMobile' => 14,
942
- 'prefixLineHeightType' => 'em',
943
- 'prefixLineHeight' => '',
944
- 'prefixLineHeightTablet' => '',
945
- 'prefixLineHeightMobile' => '',
946
- 'iconFontSize' => 20,
947
- 'iconFontSizeType' => 'px',
948
- 'iconFontSizeTablet' => 20,
949
- 'iconFontSizeMobile' => 20,
950
- ),
951
- ),
952
- 'uagb/buttons' => array(
953
- 'slug' => '',
954
- 'title' => __( 'Multi Buttons', 'ultimate-addons-for-gutenberg' ),
955
- 'description' => __( 'This block allows you to add multiple buttons with a single block.', 'ultimate-addons-for-gutenberg' ),
956
- 'default' => true,
957
- 'attributes' => array(
958
- 'block_id' => '',
959
- 'align' => 'center',
960
- 'btn_count' => '2',
961
- 'buttons' => UAGB_Helper::get_button_defaults(),
962
- 'gap' => 10,
963
- 'stack' => 'none',
964
- 'fontFamily' => '',
965
- 'fontWeight' => '',
966
- 'loadGoogleFonts' => false,
967
- 'fontSubset' => '',
968
- ),
969
- ),
970
- 'uagb/post-carousel' => array(
971
- 'slug' => '',
972
- 'title' => __( 'Post Carousel', 'ultimate-addons-for-gutenberg' ),
973
- 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a carousel layout.', 'ultimate-addons-for-gutenberg' ),
974
- 'default' => true,
975
- 'attributes' => array(
976
- 'align' => 'left',
977
- 'rowGap' => '20',
978
- 'columnGap' => '20',
979
- 'bgColor' => '#e4e4e4',
980
- 'titleColor' => '#3b3b3b',
981
- 'titleTag' => 'h3',
982
- 'titleFontSize' => '',
983
- 'titleFontSizeType' => 'px',
984
- 'titleFontSizeMobile' => '',
985
- 'titleFontSizeTablet' => '',
986
- 'titleFontFamily' => '',
987
- 'titleFontWeight' => '',
988
- 'titleFontSubset' => '',
989
- 'titleLineHeightType' => 'em',
990
- 'titleLineHeight' => '',
991
- 'titleLineHeightTablet' => '',
992
- 'titleLineHeightMobile' => '',
993
- 'titleLoadGoogleFonts' => false,
994
- 'metaFontSize' => '',
995
- 'metaFontSizeType' => 'px',
996
- 'metaFontSizeMobile' => '',
997
- 'metaFontSizeTablet' => '',
998
- 'metaFontFamily' => '',
999
- 'metaFontWeight' => '',
1000
- 'metaFontSubset' => '',
1001
- 'metaLineHeightType' => 'em',
1002
- 'metaLineHeight' => '',
1003
- 'metaLineHeightTablet' => '',
1004
- 'metaLineHeightMobile' => '',
1005
- 'metaLoadGoogleFonts' => false,
1006
- 'excerptFontSize' => '',
1007
- 'excerptFontSizeType' => 'px',
1008
- 'excerptFontSizeMobile' => '',
1009
- 'excerptFontSizeTablet' => '',
1010
- 'excerptFontFamily' => '',
1011
- 'excerptFontWeight' => '',
1012
- 'excerptFontSubset' => '',
1013
- 'excerptLineHeightType' => 'em',
1014
- 'excerptLineHeight' => '',
1015
- 'excerptLineHeightTablet' => '',
1016
- 'excerptLineHeightMobile' => '',
1017
- 'excerptLoadGoogleFonts' => false,
1018
- 'ctaFontSize' => '',
1019
- 'ctaFontSizeType' => 'px',
1020
- 'ctaFontSizeTablet' => '',
1021
- 'ctaFontSizeMobile' => '',
1022
- 'ctaFontFamily' => '',
1023
- 'ctaFontWeight' => '',
1024
- 'ctaFontSubset' => '',
1025
- 'ctaLineHeightType' => 'em',
1026
- 'ctaLineHeight' => '',
1027
- 'ctaLineHeightTablet' => '',
1028
- 'ctaLineHeightMobile' => '',
1029
- 'ctaLoadGoogleFonts' => false,
1030
- 'metaColor' => '#777777',
1031
- 'excerptColor' => '',
1032
- 'ctaColor' => '#ffffff',
1033
- 'ctaBgColor' => '#333333',
1034
- 'ctaHColor' => '',
1035
- 'ctaBgHColor' => '',
1036
- 'contentPadding' => '20',
1037
- 'contentPaddingMobile' => '',
1038
- 'btnVPadding' => '5',
1039
- 'btnHPadding' => '10',
1040
- 'titleBottomSpace' => '15',
1041
- 'metaBottomSpace' => '15',
1042
- 'excerptBottomSpace' => '25',
1043
- 'arrowSize' => '20',
1044
- 'arrowColor' => '#aaaaaa',
1045
- 'arrowDots' => '',
1046
- 'arrowBorderSize' => '1',
1047
- 'arrowBorderRadius' => '0',
1048
- 'overlayOpacity' => '50',
1049
- 'bgOverlayColor' => '#ffffff',
1050
- 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1051
- 'borderWidth' => '1',
1052
- 'borderStyle' => 'none',
1053
- 'borderColor' => '',
1054
- 'borderHColor' => '',
1055
- 'borderRadius' => '0',
1056
- ),
1057
- ),
1058
- 'uagb/post-grid' => array(
1059
- 'slug' => '',
1060
- 'title' => __( 'Post Grid', 'ultimate-addons-for-gutenberg' ),
1061
- 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a grid layout.', 'ultimate-addons-for-gutenberg' ),
1062
- 'default' => true,
1063
- 'attributes' => array(
1064
- 'align' => 'left',
1065
- 'rowGap' => '20',
1066
- 'columnGap' => '20',
1067
- 'bgColor' => '#e4e4e4',
1068
- 'titleColor' => '#3b3b3b',
1069
- 'titleTag' => 'h3',
1070
- 'titleFontSize' => '',
1071
- 'titleFontSizeType' => 'px',
1072
- 'titleFontSizeMobile' => '',
1073
- 'titleFontSizeTablet' => '',
1074
- 'titleFontFamily' => '',
1075
- 'titleFontWeight' => '',
1076
- 'titleFontSubset' => '',
1077
- 'titleLineHeightType' => 'em',
1078
- 'titleLineHeight' => '',
1079
- 'titleLineHeightTablet' => '',
1080
- 'titleLineHeightMobile' => '',
1081
- 'titleLoadGoogleFonts' => false,
1082
- 'metaFontSize' => '',
1083
- 'metaFontSizeType' => 'px',
1084
- 'metaFontSizeMobile' => '',
1085
- 'metaFontSizeTablet' => '',
1086
- 'metaFontFamily' => '',
1087
- 'metaFontWeight' => '',
1088
- 'metaFontSubset' => '',
1089
- 'metaLineHeightType' => 'em',
1090
- 'metaLineHeight' => '',
1091
- 'metaLineHeightTablet' => '',
1092
- 'metaLineHeightMobile' => '',
1093
- 'metaLoadGoogleFonts' => false,
1094
- 'excerptFontSize' => '',
1095
- 'excerptFontSizeType' => 'px',
1096
- 'excerptFontSizeMobile' => '',
1097
- 'excerptFontSizeTablet' => '',
1098
- 'excerptFontFamily' => '',
1099
- 'excerptFontWeight' => '',
1100
- 'excerptFontSubset' => '',
1101
- 'excerptLineHeightType' => 'em',
1102
- 'excerptLineHeight' => '',
1103
- 'excerptLineHeightTablet' => '',
1104
- 'excerptLineHeightMobile' => '',
1105
- 'excerptLoadGoogleFonts' => false,
1106
- 'ctaFontSize' => '',
1107
- 'ctaFontSizeType' => 'px',
1108
- 'ctaFontSizeTablet' => '',
1109
- 'ctaFontSizeMobile' => '',
1110
- 'ctaFontFamily' => '',
1111
- 'ctaFontWeight' => '',
1112
- 'ctaFontSubset' => '',
1113
- 'ctaLineHeightType' => 'em',
1114
- 'ctaLineHeight' => '',
1115
- 'ctaLineHeightTablet' => '',
1116
- 'ctaLineHeightMobile' => '',
1117
- 'ctaLoadGoogleFonts' => false,
1118
- 'metaColor' => '#777777',
1119
- 'excerptColor' => '',
1120
- 'ctaColor' => '#ffffff',
1121
- 'ctaBgColor' => '#333333',
1122
- 'ctaHColor' => '',
1123
- 'ctaBgHColor' => '',
1124
- 'contentPadding' => '20',
1125
- 'contentPaddingMobile' => '',
1126
- 'btnVPadding' => '5',
1127
- 'btnHPadding' => '10',
1128
- 'titleBottomSpace' => '15',
1129
- 'metaBottomSpace' => '15',
1130
- 'excerptBottomSpace' => '25',
1131
- 'overlayOpacity' => '50',
1132
- 'bgOverlayColor' => '#ffffff',
1133
- 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1134
- 'borderWidth' => '1',
1135
- 'borderStyle' => 'none',
1136
- 'borderColor' => '',
1137
- 'borderHColor' => '',
1138
- 'borderRadius' => '0',
1139
- ),
1140
- ),
1141
- 'uagb/post-masonry' => array(
1142
- 'slug' => '',
1143
- 'title' => __( 'Post Masonry', 'ultimate-addons-for-gutenberg' ),
1144
- 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a masonry layout.', 'ultimate-addons-for-gutenberg' ),
1145
- 'default' => true,
1146
- 'attributes' => array(
1147
- 'align' => 'left',
1148
- 'rowGap' => '20',
1149
- 'columnGap' => '20',
1150
- 'bgColor' => '#e4e4e4',
1151
- 'titleColor' => '#3b3b3b',
1152
- 'titleTag' => 'h3',
1153
- 'titleFontSize' => '',
1154
- 'titleFontSizeType' => 'px',
1155
- 'titleFontSizeMobile' => '',
1156
- 'titleFontSizeTablet' => '',
1157
- 'titleFontFamily' => '',
1158
- 'titleFontWeight' => '',
1159
- 'titleFontSubset' => '',
1160
- 'titleLineHeightType' => 'em',
1161
- 'titleLineHeight' => '',
1162
- 'titleLineHeightTablet' => '',
1163
- 'titleLineHeightMobile' => '',
1164
- 'titleLoadGoogleFonts' => false,
1165
- 'metaFontSize' => '',
1166
- 'metaFontSizeType' => 'px',
1167
- 'metaFontSizeMobile' => '',
1168
- 'metaFontSizeTablet' => '',
1169
- 'metaFontFamily' => '',
1170
- 'metaFontWeight' => '',
1171
- 'metaFontSubset' => '',
1172
- 'metaLineHeightType' => 'em',
1173
- 'metaLineHeight' => '',
1174
- 'metaLineHeightTablet' => '',
1175
- 'metaLineHeightMobile' => '',
1176
- 'metaLoadGoogleFonts' => false,
1177
- 'excerptFontSize' => '',
1178
- 'excerptFontSizeType' => 'px',
1179
- 'excerptFontSizeMobile' => '',
1180
- 'excerptFontSizeTablet' => '',
1181
- 'excerptFontFamily' => '',
1182
- 'excerptFontWeight' => '',
1183
- 'excerptFontSubset' => '',
1184
- 'excerptLineHeightType' => 'em',
1185
- 'excerptLineHeight' => '',
1186
- 'excerptLineHeightTablet' => '',
1187
- 'excerptLineHeightMobile' => '',
1188
- 'excerptLoadGoogleFonts' => false,
1189
- 'ctaFontSize' => '',
1190
- 'ctaFontSizeType' => 'px',
1191
- 'ctaFontSizeTablet' => '',
1192
- 'ctaFontSizeMobile' => '',
1193
- 'ctaFontFamily' => '',
1194
- 'ctaFontWeight' => '',
1195
- 'ctaFontSubset' => '',
1196
- 'ctaLineHeightType' => 'em',
1197
- 'ctaLineHeight' => '',
1198
- 'ctaLineHeightTablet' => '',
1199
- 'ctaLineHeightMobile' => '',
1200
- 'ctaLoadGoogleFonts' => false,
1201
- 'metaColor' => '#777777',
1202
- 'excerptColor' => '',
1203
- 'ctaColor' => '#ffffff',
1204
- 'ctaBgColor' => '#333333',
1205
- 'ctaHColor' => '',
1206
- 'ctaBgHColor' => '',
1207
- 'contentPadding' => '20',
1208
- 'contentPaddingMobile' => '',
1209
- 'btnVPadding' => '5',
1210
- 'btnHPadding' => '10',
1211
- 'titleBottomSpace' => '15',
1212
- 'metaBottomSpace' => '15',
1213
- 'excerptBottomSpace' => '25',
1214
- 'overlayOpacity' => '50',
1215
- 'bgOverlayColor' => '#ffffff',
1216
- 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1217
- 'borderWidth' => '1',
1218
- 'borderStyle' => 'none',
1219
- 'borderColor' => '',
1220
- 'borderHColor' => '',
1221
- 'borderRadius' => '0',
1222
- ),
1223
- ),
1224
- 'uagb/post-timeline' => array(
1225
- 'slug' => '',
1226
- 'title' => __( 'Post Timeline', 'ultimate-addons-for-gutenberg' ),
1227
- 'description' => __( 'The Timeline block lets you create beautiful timelines of Posts on your website.', 'ultimate-addons-for-gutenberg' ),
1228
- 'default' => true,
1229
- 'attributes' => array(
1230
- 'align' => 'center',
1231
- 'headingColor' => '',
1232
- 'subHeadingColor' => '',
1233
- 'separatorBg' => '#eee',
1234
- 'backgroundColor' => '#eee',
1235
- 'separatorColor' => '#eee',
1236
- 'separatorFillColor' => '#61ce70',
1237
- 'separatorBorder' => '#eee',
1238
- 'borderFocus' => '#5cb85c',
1239
- 'horizontalSpace' => 10,
1240
- 'verticalSpace' => 15,
1241
- 'headFontSizeType' => 'px',
1242
- 'headFontSize' => '',
1243
- 'headFontSizeTablet' => '',
1244
- 'headFontSizeMobile' => '',
1245
- 'headFontFamily' => '',
1246
- 'headFontWeight' => '',
1247
- 'headFontSubset' => '',
1248
- 'headLineHeightType' => 'em',
1249
- 'headLineHeight' => '',
1250
- 'headLineHeightTablet' => '',
1251
- 'headLineHeightMobile' => '',
1252
- 'headLoadGoogleFonts' => false,
1253
- 'timelinAlignment' => 'center',
1254
- 'arrowlinAlignment' => 'center',
1255
- 'subHeadFontSizeType' => 'px',
1256
- 'subHeadFontSize' => '',
1257
- 'subHeadFontSizeTablet' => '',
1258
- 'subHeadFontSizeMobile' => '',
1259
- 'subHeadFontFamily' => '',
1260
- 'subHeadFontWeight' => '',
1261
- 'subHeadFontSubset' => '',
1262
- 'subHeadLineHeightType' => 'em',
1263
- 'subHeadLineHeight' => '',
1264
- 'subHeadLineHeightTablet' => '',
1265
- 'subHeadLineHeightMobile' => '',
1266
- 'subHeadLoadGoogleFonts' => false,
1267
- 'headSpace' => 5,
1268
- 'contentSpace' => 5,
1269
- 'authorSpace' => 5,
1270
- 'separatorwidth' => 3,
1271
- 'borderwidth' => 0,
1272
- 'iconColor' => '#333',
1273
- 'iconFocus' => '#fff',
1274
- 'iconBgFocus' => '#61ce70',
1275
- 'dateColor' => '#333',
1276
- 'dateFontsizeType' => 'px',
1277
- 'dateFontsize' => 12,
1278
- 'dateFontsizeTablet' => '',
1279
- 'dateFontsizeMobile' => '',
1280
- 'dateFontFamily' => '',
1281
- 'dateFontWeight' => '',
1282
- 'dateFontSubset' => '',
1283
- 'dateLineHeightType' => 'em',
1284
- 'dateLineHeight' => '',
1285
- 'dateLineHeightTablet' => '',
1286
- 'dateLineHeightMobile' => '',
1287
- 'dateLoadGoogleFonts' => false,
1288
- 'connectorBgsize' => 35,
1289
- 'dateBottomspace' => 5,
1290
- 'borderRadius' => 2,
1291
- 'bgPadding' => 20,
1292
- 'contentPadding' => 10,
1293
- 'iconSize' => 12,
1294
- 'stack' => 'tablet',
1295
- 'ctaColor' => '#fff',
1296
- 'authorColor' => '#333',
1297
- 'ctaFontSizeType' => 'px',
1298
- 'ctaFontSize' => '',
1299
- 'ctaFontSizeTablet' => '',
1300
- 'ctaFontSizeMobile' => '',
1301
- 'ctaFontFamily' => '',
1302
- 'ctaFontWeight' => '',
1303
- 'ctaFontSubset' => '',
1304
- 'ctaLineHeightType' => 'em',
1305
- 'ctaLineHeight' => '',
1306
- 'ctaLineHeightTablet' => '',
1307
- 'ctaLineHeightMobile' => '',
1308
- 'ctaLoadGoogleFonts' => false,
1309
- 'authorFontSizeType' => 'px',
1310
- 'authorFontSize' => 11,
1311
- 'authorFontSizeTablet' => '',
1312
- 'authorFontSizeMobile' => '',
1313
- 'authorFontFamily' => '',
1314
- 'authorFontWeight' => '',
1315
- 'authorFontSubset' => '',
1316
- 'authorLineHeightType' => 'em',
1317
- 'authorLineHeight' => '',
1318
- 'authorLineHeightTablet' => '',
1319
- 'authorLineHeightMobile' => '',
1320
- 'authorLoadGoogleFonts' => false,
1321
- 'ctaBackground' => '#333',
1322
- ),
1323
- ),
1324
- 'uagb/restaurant-menu' => array(
1325
- 'slug' => '',
1326
- 'title' => __( 'Price List', 'ultimate-addons-for-gutenberg' ),
1327
- 'description' => __( 'This block allows you to add attractive Price List.', 'ultimate-addons-for-gutenberg' ),
1328
- 'default' => true,
1329
- 'attributes' => array(
1330
- 'block_id' => '',
1331
- 'headingAlign' => 'left',
1332
- 'descColor' => '#333',
1333
- 'priceColor' => '#888888',
1334
- 'titleColor' => '#333',
1335
- 'imagePosition' => 'top',
1336
- 'imageAlignment' => 'top',
1337
- 'titleFontSize' => '',
1338
- 'titleFontSizeType' => 'px',
1339
- 'titleFontSizeMobile' => '',
1340
- 'titleFontSizeTablet' => '',
1341
- 'titleFontFamily' => '',
1342
- 'titleFontWeight' => '',
1343
- 'titleFontSubset' => '',
1344
- 'titleLineHeightType' => 'em',
1345
- 'titleLineHeight' => '',
1346
- 'titleLineHeightTablet' => '',
1347
- 'titleLineHeightMobile' => '',
1348
- 'titleLoadGoogleFonts' => false,
1349
- 'priceFontSize' => '',
1350
- 'priceFontSizeType' => 'px',
1351
- 'priceFontSizeMobile' => '',
1352
- 'priceFontSizeTablet' => '',
1353
- 'priceFontFamily' => '',
1354
- 'priceFontWeight' => '',
1355
- 'priceFontSubset' => '',
1356
- 'priceLineHeightType' => 'em',
1357
- 'priceLineHeight' => '',
1358
- 'priceLineHeightTablet' => '',
1359
- 'priceLineHeightMobile' => '',
1360
- 'priceLoadGoogleFonts' => false,
1361
- 'descFontSize' => '',
1362
- 'descFontSizeType' => 'px',
1363
- 'descFontSizeMobile' => '',
1364
- 'descFontSizeTablet' => '',
1365
- 'descFontFamily' => '',
1366
- 'descFontWeight' => '',
1367
- 'descFontSubset' => '',
1368
- 'descLineHeightType' => 'em',
1369
- 'descLineHeight' => '',
1370
- 'descLineHeightTablet' => '',
1371
- 'descLineHeightMobile' => '',
1372
- 'descLoadGoogleFonts' => false,
1373
- 'priceSpace' => 5,
1374
- 'descSpace' => 15,
1375
- 'titleSpace' => 10,
1376
- 'imgVrPadding' => 0,
1377
- 'imgHrPadding' => 0,
1378
- 'imgTopPadding' => 0,
1379
- 'imgBottomPadding' => 0,
1380
- 'iconImage' => '',
1381
- 'imageSize' => 'medium',
1382
- 'imageWidth' => '',
1383
- 'columns' => 2,
1384
- 'tcolumns' => 2,
1385
- 'mcolumns' => 1,
1386
- 'rowGap' => 10,
1387
- 'columnGap' => 10,
1388
- 'contentHrPadding' => 5,
1389
- 'contentVrPadding' => 5,
1390
- 'seperatorStyle' => 'dashed',
1391
- 'seperatorWidth' => '100',
1392
- 'seperatorThickness' => '1',
1393
- 'seperatorColor' => '#b2b4b5',
1394
- ),
1395
- ),
1396
- 'uagb/section' => array(
1397
- 'slug' => '',
1398
- 'title' => __( 'Section', 'ultimate-addons-for-gutenberg' ),
1399
- 'description' => __( 'This block is an outer wrap section that allows you to add other blocks within it.', 'ultimate-addons-for-gutenberg' ),
1400
- 'default' => true,
1401
- 'attributes' => array(
1402
- 'topPadding' => '20',
1403
- 'bottomPadding' => '20',
1404
- 'leftPadding' => '20',
1405
- 'rightPadding' => '20',
1406
- 'topMargin' => '0',
1407
- 'bottomMargin' => '0',
1408
- 'leftMargin' => '0',
1409
- 'rightMargin' => '0',
1410
- 'topPaddingTablet' => '',
1411
- 'bottomPaddingTablet' => '',
1412
- 'leftPaddingTablet' => '',
1413
- 'rightPaddingTablet' => '',
1414
- 'topPaddingMobile' => '',
1415
- 'bottomPaddingMobile' => '',
1416
- 'leftPaddingMobile' => '',
1417
- 'rightPaddingMobile' => '',
1418
- 'topMarginMobile' => '',
1419
- 'bottomMarginMobile' => '',
1420
- 'leftMarginMobile' => '',
1421
- 'rightMarginMobile' => '',
1422
- 'topMarginTablet' => '',
1423
- 'bottomMarginTablet' => '',
1424
- 'leftMarginTablet' => '',
1425
- 'rightMarginTablet' => '',
1426
- 'contentWidth' => 'boxed',
1427
- 'width' => '900',
1428
- 'innerWidth' => '1140',
1429
- 'tag' => 'section',
1430
- 'backgroundType' => 'none',
1431
- 'gradientColor1' => '',
1432
- 'gradientColor2' => '',
1433
- 'backgroundVideoColor' => '',
1434
- 'backgroundPosition' => 'center-center',
1435
- 'backgroundSize' => 'cover',
1436
- 'backgroundRepeat' => 'no-repeat',
1437
- 'backgroundAttachment' => 'scroll',
1438
- 'gradientType' => 'linear',
1439
- 'gradientLocation1' => '0',
1440
- 'gradientLocation2' => '100',
1441
- 'gradientAngle' => '0',
1442
- 'backgroundColor' => '',
1443
- 'backgroundOpacity' => '',
1444
- 'backgroundVideoOpacity' => '50',
1445
- 'backgroundImageColor' => '',
1446
- 'align' => 'center',
1447
- 'borderStyle' => 'none',
1448
- 'borderWidth' => '1',
1449
- 'borderRadius' => '',
1450
- 'borderColor' => '',
1451
- 'themeWidth' => false,
1452
- ),
1453
- ),
1454
- 'uagb/social-share' => array(
1455
- 'slug' => '',
1456
- 'title' => __( 'Social Share', 'ultimate-addons-for-gutenberg' ),
1457
- 'description' => __( 'This block allows you to let users share your content across various social networking sites.', 'ultimate-addons-for-gutenberg' ),
1458
- 'default' => true,
1459
- 'attributes' => array(
1460
- 'align' => 'center',
1461
- 'social_count' => '1',
1462
- 'socials' => array(
1463
- array(
1464
- 'type' => 'facebook',
1465
- 'image_icon' => 'icon',
1466
- 'icon' => 'fab fa-facebook',
1467
- 'image' => '',
1468
- 'icon_color' => '#3a3a3a',
1469
- 'icon_hover_color' => '#3a3a3a',
1470
- 'icon_bg_color' => '',
1471
- 'icon_bg_hover_color' => '',
1472
- ),
1473
- ),
1474
- 'gap' => '10',
1475
- 'size' => '40',
1476
- 'sizeType' => 'px',
1477
- 'sizeMobile' => '',
1478
- 'sizeTablet' => '',
1479
- 'bgSize' => '0',
1480
- 'bgSizeType' => 'px',
1481
- 'bgSizeMobile' => '',
1482
- 'bgSizeTablet' => '',
1483
- 'borderRadius' => '0',
1484
- 'social_layout' => 'horizontal',
1485
- 'stack' => 'none',
1486
- ),
1487
- ),
1488
- 'uagb/team' => array(
1489
- 'slug' => '',
1490
- 'title' => __( 'Team', 'ultimate-addons-for-gutenberg' ),
1491
- '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' ),
1492
- 'default' => true,
1493
- 'attributes' => array(
1494
- 'block_id' => '',
1495
- 'align' => 'center',
1496
- 'tag' => 'h3',
1497
- 'titleColor' => '',
1498
- 'prefixColor' => '#888888',
1499
- 'descColor' => '',
1500
- 'socialColor' => '#333',
1501
- 'socialHoverColor' => '',
1502
- 'titleFontFamily' => '',
1503
- 'titleLoadGoogleFonts' => false,
1504
- 'titleFontWeight' => '',
1505
- 'titleFontSubset' => '',
1506
- 'titleFontSize' => 15,
1507
- 'titleFontSizeType' => 'px',
1508
- 'titleFontSizeTablet' => '',
1509
- 'titleFontSizeMobile' => '',
1510
- 'titleLineHeight' => '',
1511
- 'titleLineHeightType' => 'em',
1512
- 'titleLineHeightTablet' => '',
1513
- 'titleLineHeightMobile' => '',
1514
- 'prefixFontFamily' => '',
1515
- 'prefixLoadGoogleFonts' => false,
1516
- 'prefixFontWeight' => '',
1517
- 'prefixFontSubset' => '',
1518
- 'prefixFontSize' => 15,
1519
- 'prefixFontSizeType' => 'px',
1520
- 'prefixFontSizeTablet' => '',
1521
- 'prefixFontSizeMobile' => '',
1522
- 'prefixLineHeight' => '',
1523
- 'prefixLineHeightType' => 'em',
1524
- 'prefixLineHeightTablet' => '',
1525
- 'prefixLineHeightMobile' => '',
1526
- 'descFontFamily' => '',
1527
- 'descLoadGoogleFonts' => false,
1528
- 'descFontWeight' => '',
1529
- 'descFontSubset' => '',
1530
- 'descFontSize' => 15,
1531
- 'descFontSizeType' => 'px',
1532
- 'descFontSizeTablet' => '',
1533
- 'descFontSizeMobile' => '',
1534
- 'descLineHeight' => '',
1535
- 'descLineHeightType' => 'em',
1536
- 'descLineHeightTablet' => '',
1537
- 'descLineHeightMobile' => '',
1538
- 'socialFontSize' => 20,
1539
- 'socialFontSizeType' => 'px',
1540
- 'socialFontSizeMobile' => '',
1541
- 'socialFontSizeTablet' => '',
1542
- 'image' => '',
1543
- 'imgStyle' => 'normal',
1544
- 'imgPosition' => 'above',
1545
- 'imgAlign' => 'top',
1546
- 'imgSiz' => 'thumbnail',
1547
- 'imgWidth' => 120,
1548
- 'titleSpace' => '',
1549
- 'prefixSpace' => '',
1550
- 'descSpace' => 10,
1551
- 'imgLeftMargin' => 20,
1552
- 'imgRightMargin' => 20,
1553
- 'imgTopMargin' => 15,
1554
- 'imgBottomMargin' => 15,
1555
- 'socialSpace' => 20,
1556
- 'headingTag' => 'h3',
1557
- ),
1558
- ),
1559
- 'uagb/testimonial' => array(
1560
- 'slug' => '',
1561
- 'title' => __( 'Testimonial', 'ultimate-addons-for-gutenberg' ),
1562
- 'description' => __( 'This block helps your display some amazing client feedback within your website.', 'ultimate-addons-for-gutenberg' ),
1563
- 'default' => true,
1564
- 'attributes' => array(
1565
- 'headingAlign' => 'center',
1566
- 'companyColor' => '#888888',
1567
- 'descColor' => '#333',
1568
- 'authorColor' => '#333',
1569
- 'nameFontSizeType' => 'px',
1570
- 'nameFontSize' => '',
1571
- 'nameFontSizeTablet' => '',
1572
- 'nameFontSizeMobile' => '',
1573
- 'nameFontFamily' => '',
1574
- 'nameFontWeight' => '',
1575
- 'nameFontSubset' => '',
1576
- 'nameLineHeightType' => 'em',
1577
- 'nameLineHeight' => '',
1578
- 'nameLineHeightTablet' => '',
1579
- 'nameLineHeightMobile' => '',
1580
- 'nameLoadGoogleFonts' => false,
1581
- 'companyFontSizeType' => 'px',
1582
- 'companyFontSize' => '',
1583
- 'companyFontSizeTablet' => '',
1584
- 'companyFontSizeMobile' => '',
1585
- 'companyFontFamily' => '',
1586
- 'companyFontWeight' => '',
1587
- 'companyFontSubset' => '',
1588
- 'companyLineHeightType' => 'em',
1589
- 'companyLineHeight' => '',
1590
- 'companyLineHeightTablet' => '',
1591
- 'companyLineHeightMobile' => '',
1592
- 'companyLoadGoogleFonts' => false,
1593
- 'descFontSizeType' => 'px',
1594
- 'descFontSize' => '',
1595
- 'descFontSizeTablet' => '',
1596
- 'descFontSizeMobile' => '',
1597
- 'descFontFamily' => '',
1598
- 'descFontWeight' => '',
1599
- 'descFontSubset' => '',
1600
- 'descLineHeightType' => 'em',
1601
- 'descLineHeight' => '',
1602
- 'descLineHeightTablet' => '',
1603
- 'descLineHeightMobile' => '',
1604
- 'descLoadGoogleFonts' => false,
1605
- 'descSpace' => 15,
1606
- 'block_id' => '',
1607
- 'nameSpace' => 5,
1608
- 'imgVrPadding' => 10,
1609
- 'imgHrPadding' => 10,
1610
- 'imageWidth' => 60,
1611
- 'rowGap' => 10,
1612
- 'columnGap' => 10,
1613
- 'contentPadding' => 5,
1614
- 'backgroundColor' => '',
1615
- 'backgroundImage' => '',
1616
- 'backgroundPosition' => 'center-center',
1617
- 'backgroundSize' => 'cover',
1618
- 'backgroundRepeat' => 'no-repeat',
1619
- 'backgroundImageColor' => '',
1620
- 'backgroundOpacity' => 0,
1621
- 'borderStyle' => 'none',
1622
- 'borderWidth' => 1,
1623
- 'borderRadius' => 0,
1624
- 'borderColor' => '#333',
1625
- 'arrowColor' => '#333',
1626
- 'arrowDots' => 'arrowDots',
1627
- 'arrowBorderSize' => 1,
1628
- 'arrowBorderRadius' => 0,
1629
- 'columns' => 1,
1630
- 'autoplaySpeed' => 2000,
1631
- 'autoplay' => true,
1632
- 'infiniteLoop' => true,
1633
- 'pauseOnHover' => true,
1634
- 'transitionSpeed' => 500,
1635
- 'tcolumns' => 1,
1636
- 'mcolumns' => 1,
1637
- 'arrowSize' => 20,
1638
- 'test_item_count' => 3,
1639
- ),
1640
- ),
1641
- );
1642
- }
1643
- return self::$block_attributes;
1644
- }
1645
- }
1646
- }
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
+ 'bottomHeightTablet' => '',
134
+ 'bottomHeightMobile' => '',
135
+ 'bottomWidth' => '',
136
+ 'topType' => 'none',
137
+ 'topColor' => '#333',
138
+ 'topHeight' => '',
139
+ 'topHeightTablet' => '',
140
+ 'topHeightMobile' => '',
141
+ 'topWidth' => '',
142
+ 'bottomFlip' => '',
143
+ 'topFlip' => '',
144
+ ),
145
+ ),
146
+ 'uagb/column' => array(
147
+ 'slug' => '',
148
+ 'title' => __( 'Column', 'ultimate-addons-for-gutenberg' ),
149
+ 'description' => __( 'This block is an immediate child of Advanced Columns.', 'ultimate-addons-for-gutenberg' ),
150
+ 'default' => true,
151
+ 'is_child' => true,
152
+ 'attributes' => array(
153
+ 'block_id' => '',
154
+ 'topPadding' => '',
155
+ 'bottomPadding' => '',
156
+ 'leftPadding' => '',
157
+ 'rightPadding' => '',
158
+ 'topMargin' => '',
159
+ 'bottomMargin' => '',
160
+ 'leftMargin' => '',
161
+ 'rightMargin' => '',
162
+ 'topPaddingTablet' => '',
163
+ 'bottomPaddingTablet' => '',
164
+ 'leftPaddingTablet' => '',
165
+ 'rightPaddingTablet' => '',
166
+ 'topPaddingMobile' => '',
167
+ 'bottomPaddingMobile' => '',
168
+ 'leftPaddingMobile' => '',
169
+ 'rightPaddingMobile' => '',
170
+ 'topMarginMobile' => '',
171
+ 'bottomMarginMobile' => '',
172
+ 'leftMarginMobile' => '',
173
+ 'rightMarginMobile' => '',
174
+ 'topMarginTablet' => '',
175
+ 'bottomMarginTablet' => '',
176
+ 'leftMarginTablet' => '',
177
+ 'rightMarginTablet' => '',
178
+ 'colWidth' => '',
179
+ 'colWidthTablet' => '',
180
+ 'colWidthMobile' => '',
181
+ 'backgroundType' => 'none',
182
+ 'backgroundImage' => '',
183
+ 'backgroundPosition' => 'center-center',
184
+ 'backgroundSize' => 'cover',
185
+ 'backgroundRepeat' => 'no-repeat',
186
+ 'backgroundAttachment' => 'scroll',
187
+ 'backgroundColor' => '',
188
+ 'gradientColor1' => '',
189
+ 'gradientColor2' => '',
190
+ 'gradientType' => 'linear',
191
+ 'gradientLocation1' => 0,
192
+ 'gradientLocation2' => 100,
193
+ 'gradientAngle' => 0,
194
+ 'backgroundOpacity' => '',
195
+ 'backgroundImageColor' => '',
196
+ 'borderStyle' => 'none',
197
+ 'borderWidth' => 1,
198
+ 'borderRadius' => '',
199
+ 'borderColor' => '',
200
+ 'align' => 'center',
201
+ 'alignMobile' => '',
202
+ 'alignTablet' => '',
203
+ ),
204
+ ),
205
+ 'uagb/blockquote' => array(
206
+ 'slug' => '',
207
+ 'title' => __( 'Blockquote', 'ultimate-addons-for-gutenberg' ),
208
+ 'description' => __( 'This block allows you to display your Blockquote.', 'ultimate-addons-for-gutenberg' ),
209
+ 'default' => true,
210
+ 'attributes' => array(
211
+ 'block_id ' => '',
212
+ 'skinStyle' => 'border',
213
+ 'align' => 'left',
214
+ 'descColor' => '',
215
+ 'descFontSize' => '',
216
+ 'descFontSizeType' => 'px',
217
+ 'descFontSizeTablet' => '',
218
+ 'descFontSizeMobile' => '',
219
+ 'descFontFamily' => '',
220
+ 'descFontWeight' => '',
221
+ 'descFontSubset' => '',
222
+ 'descLineHeightType' => 'em
223
+ ',
224
+ 'descLineHeight' => '',
225
+ 'descLineHeightTablet' => '',
226
+ 'descLineHeightMobile' => '',
227
+ 'descLoadGoogleFonts' => false,
228
+ 'descSpace' => 20,
229
+ 'authorColor' => '#888888',
230
+ 'authorFontSize' => '',
231
+ 'authorFontSizeType' => 'px',
232
+ 'authorFontSizeTablet' => '',
233
+ 'authorFontSizeMobile' => '',
234
+ 'authorFontFamily' => '',
235
+ 'authorFontWeight' => '',
236
+ 'authorFontSubset' => '',
237
+ 'authorLineHeightType' => 'em
238
+ ',
239
+ 'authorLineHeight' => '',
240
+ 'authorLineHeightTablet' => '',
241
+ 'authorLineHeightMobile' => '',
242
+ 'authorLoadGoogleFonts' => false,
243
+ 'authorSpace' => 10,
244
+ 'authorImageWidth' => 40,
245
+ 'authorImgBorderRadius' => 100,
246
+ 'authorImgPosition' => 'right',
247
+ 'stack' => 'tablet',
248
+ 'enableTweet' => true,
249
+ 'iconView' => 'icon_text',
250
+ 'iconSkin' => 'link',
251
+ 'tweetLinkColor' => '#1DA1F2',
252
+ 'tweetBtnColor' => '#fff',
253
+ 'tweetBtnBgColor' => '#1DA1F2',
254
+ 'tweetBtnHoverColor' => '',
255
+ 'tweetBtnBgHoverColor' => '#1DA1F2',
256
+ 'tweetBtnFontSize' => 15,
257
+ 'tweetBtnFontSizeType' => 'px',
258
+ 'tweetBtnFontSizeTablet' => '',
259
+ 'tweetBtnFontSizeMobile' => '',
260
+ 'tweetBtnFontFamily' => '',
261
+ 'tweetBtnFontWeight' => '',
262
+ 'tweetBtnFontSubset' => '',
263
+ 'tweetBtnLineHeightType' => 'em',
264
+ 'tweetBtnLineHeight' => '',
265
+ 'tweetBtnLineHeightTablet' => '',
266
+ 'tweetBtnLineHeightMobile' => '',
267
+ 'tweetBtnLoadGoogleFonts' => false,
268
+ 'tweetBtnHrPadding' => 10,
269
+ 'tweetBtnVrPadding' => 10,
270
+ 'tweetIconSpacing' => 10,
271
+ 'borderColor' => '#abb8c3',
272
+ 'borderStyle' => 'solid',
273
+ 'borderWidth' => 4,
274
+ 'borderGap' => 15,
275
+ 'verticalPadding' => '',
276
+ 'quoteStyle' => 'style_1',
277
+ 'quoteColor' => '#abb8c3',
278
+ 'quoteSize' => 25,
279
+ 'quoteSizeType' => 'px',
280
+ 'quoteSizeTablet' => '',
281
+ 'quoteSizeMobile' => '',
282
+ 'quoteTopMargin' => '',
283
+ 'quoteBottomMargin' => '',
284
+ 'quoteLeftMargin' => '',
285
+ 'quoteRightMargin' => 20,
286
+ 'quoteBorderRadius' => 100,
287
+ 'quoteBgColor' => '#333',
288
+ 'quoteHoverColor' => '',
289
+ 'quoteBgHoverColor' => '',
290
+ 'borderHoverColor' => '',
291
+ 'iconTargetUrl' => 'current',
292
+ 'customUrl' => '',
293
+ 'iconShareVia' => '',
294
+ 'quotePadding' => 10,
295
+ 'quotePaddingType' => 'px',
296
+ 'quotePaddingTablet' => '',
297
+ 'quotePaddingMobile' => '',
298
+ ),
299
+ ),
300
+ 'uagb/call-to-action' => array(
301
+ 'slug' => '',
302
+ 'title' => __( 'Call To Action', 'ultimate-addons-for-gutenberg' ),
303
+ 'description' => __( 'This block allows you to place an CTA along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
304
+ 'default' => true,
305
+ 'attributes' => array(
306
+ 'textAlign' => 'left',
307
+ 'titleColor' => '',
308
+ 'descColor' => '',
309
+ 'ctaPosition' => 'right',
310
+ 'titleTag' => '',
311
+ 'titleFontSize' => '',
312
+ 'titleFontSizeType' => 'px',
313
+ 'titleFontSizeMobile' => '',
314
+ 'titleFontSizeTablet' => '',
315
+ 'titleFontFamily' => '',
316
+ 'titleFontWeight' => '',
317
+ 'titleFontSubset' => '',
318
+ 'titleLineHeightType' => 'em',
319
+ 'titleLineHeight' => '',
320
+ 'titleLineHeightTablet' => '',
321
+ 'titleLineHeightMobile' => '',
322
+ 'titleLoadGoogleFonts' => false,
323
+ 'descFontSize' => '',
324
+ 'descFontSizeType' => 'px',
325
+ 'descFontSizeMobile' => '',
326
+ 'descFontSizeTablet' => '',
327
+ 'descFontFamily' => '',
328
+ 'descFontWeight' => '',
329
+ 'descFontSubset' => '',
330
+ 'descLineHeightType' => 'em',
331
+ 'descLineHeight' => '',
332
+ 'descLineHeightTablet' => '',
333
+ 'descLineHeightMobile' => '',
334
+ 'descLoadGoogleFonts' => false,
335
+ 'titleSpace' => 10,
336
+ 'descSpace' => 10,
337
+ 'buttonAlign' => 'top',
338
+ 'ctaTarget' => false,
339
+ 'ctaIconPosition' => 'after',
340
+ 'ctaIconSpace' => 5,
341
+ 'ctaType' => 'button',
342
+ 'ctaLink' => '#',
343
+ 'ctaFontSize' => '',
344
+ 'ctaFontSizeType' => 'px',
345
+ 'ctaFontSizeMobile' => '',
346
+ 'ctaFontSizeTablet' => '',
347
+ 'ctaFontFamily' => '',
348
+ 'ctaFontWeight' => '',
349
+ 'ctaFontSubset' => '',
350
+ 'ctaLoadGoogleFonts' => false,
351
+ 'ctaBtnLinkColor' => '#333',
352
+ 'ctaBgColor' => 'transparent',
353
+ 'ctaBgHoverColor' => 'transparent',
354
+ 'ctaBorderColor' => '#333',
355
+ 'ctaBorderhoverColor' => '',
356
+ 'ctaBorderStyle' => 'solid',
357
+ 'ctaBtnVertPadding' => 10,
358
+ 'ctaBtnHrPadding' => 14,
359
+ 'ctaBorderWidth' => 1,
360
+ 'ctaBorderRadius' => 0,
361
+ 'stack' => 'tablet',
362
+ 'showTitle' => true,
363
+ 'showDesc' => true,
364
+ 'ctaLeftSpace' => 5,
365
+ 'ctaRightSpace' => 5,
366
+ 'contentWidth' => 70,
367
+ 'ctaLinkHoverColor' => '',
368
+ ),
369
+ ),
370
+ 'uagb/cf7-styler' => array(
371
+ 'slug' => '',
372
+ 'title' => __( 'Contact Form 7 Styler', 'ultimate-addons-for-gutenberg' ),
373
+ 'description' => __( 'This block allows you to add and style your Contact Form 7 forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
374
+ 'is_active' => class_exists( 'WPCF7_ContactForm' ),
375
+ 'default' => true,
376
+ 'attributes' => array(
377
+ 'block_id' => '',
378
+ 'align' => 'left',
379
+ 'formId' => '0',
380
+ 'fieldStyle' => 'box',
381
+ 'fieldHrPadding' => 10,
382
+ 'fieldVrPadding' => 10,
383
+ 'fieldBgColor' => '#fafafa',
384
+ 'fieldLabelColor' => '#333',
385
+ 'fieldInputColor' => '#333',
386
+ 'fieldBorderStyle' => 'solid',
387
+ 'fieldBorderWidth' => 1,
388
+ 'fieldBorderRadius' => 0,
389
+ 'fieldBorderColor' => '#eeeeee',
390
+ 'fieldBorderFocusColor' => '',
391
+ 'buttonAlignment' => 'left',
392
+ 'buttonVrPadding' => 10,
393
+ 'buttonHrPadding' => 25,
394
+ 'buttonTextColor' => '#333',
395
+ 'buttonBgColor' => 'transparent',
396
+ 'buttonTextHoverColor' => '',
397
+ 'buttonBgHoverColor' => '',
398
+ 'buttonBorderStyle' => 'solid',
399
+ 'buttonBorderWidth' => 1,
400
+ 'buttonBorderRadius' => 0,
401
+ 'buttonBorderColor' => '#333',
402
+ 'buttonBorderHoverColor' => '',
403
+ 'fieldSpacing' => '',
404
+ 'fieldLabelSpacing' => '',
405
+ 'labelFontSize' => '',
406
+ 'labelFontSizeType' => 'px',
407
+ 'labelFontSizeTablet' => '',
408
+ 'labelFontSizeMobile' => '',
409
+ 'labelFontFamily' => '',
410
+ 'labelFontWeight' => '',
411
+ 'labelFontSubset' => '',
412
+ 'labelLineHeightType' => 'px',
413
+ 'labelLineHeight' => '',
414
+ 'labelLineHeightTablet' => '',
415
+ 'labelLineHeightMobile' => '',
416
+ 'labelLoadGoogleFonts' => false,
417
+ 'inputFontSize' => '',
418
+ 'inputFontSizeType' => 'px',
419
+ 'inputFontSizeTablet' => '',
420
+ 'inputFontSizeMobile' => '',
421
+ 'inputFontFamily' => '',
422
+ 'inputFontWeight' => '',
423
+ 'inputFontSubset' => '',
424
+ 'inputLineHeightType' => 'px',
425
+ 'inputLineHeight' => '',
426
+ 'inputLineHeightTablet' => '',
427
+ 'inputLineHeightMobile' => '',
428
+ 'inputLoadGoogleFonts' => false,
429
+ 'buttonFontSize' => '',
430
+ 'buttonFontSizeType' => 'px',
431
+ 'buttonFontSizeTablet' => '',
432
+ 'buttonFontSizeMobile' => '',
433
+ 'buttonFontFamily' => '',
434
+ 'buttonFontWeight' => '',
435
+ 'buttonFontSubset' => '',
436
+ 'buttonLineHeightType' => 'px',
437
+ 'buttonLineHeight' => '',
438
+ 'buttonLineHeightTablet' => '',
439
+ 'buttonLineHeightMobile' => '',
440
+ 'buttonLoadGoogleFonts' => false,
441
+ 'enableOveride' => true,
442
+ 'radioCheckSize' => '',
443
+ 'radioCheckBgColor' => '',
444
+ 'radioCheckSelectColor' => '',
445
+ 'radioCheckLableColor' => '',
446
+ 'radioCheckBorderColor' => '#abb8c3',
447
+ 'radioCheckBorderWidth' => '',
448
+ 'radioCheckBorderRadius' => '',
449
+ 'radioCheckFontSize' => '',
450
+ 'radioCheckFontSizeType' => 'px',
451
+ 'radioCheckFontSizeTablet' => '',
452
+ 'radioCheckFontSizeMobile' => '',
453
+ 'radioCheckFontFamily' => '',
454
+ 'radioCheckFontWeight' => '',
455
+ 'radioCheckFontSubset' => '',
456
+ 'radioCheckLineHeightType' => 'px',
457
+ 'radioCheckLineHeight' => '',
458
+ 'radioCheckLineHeightTablet' => '',
459
+ 'radioCheckLineHeightMobile' => '',
460
+ 'radioCheckLoadGoogleFonts' => false,
461
+ 'validationMsgPosition' => 'default',
462
+ 'validationMsgColor' => '#ff0000',
463
+ 'validationMsgBgColor' => '',
464
+ 'enableHighlightBorder' => false,
465
+ 'highlightBorderColor' => '#ff0000',
466
+ 'validationMsgFontSize' => '',
467
+ 'validationMsgFontSizeType' => 'px',
468
+ 'validationMsgFontSizeTablet' => '',
469
+ 'validationMsgFontSizeMobile' => '',
470
+ 'validationMsgFontFamily' => '',
471
+ 'validationMsgFontWeight' => '',
472
+ 'validationMsgFontSubset' => '',
473
+ 'validationMsgLineHeightType' => 'em',
474
+ 'validationMsgLineHeight' => '',
475
+ 'validationMsgLineHeightTablet' => '',
476
+ 'validationMsgLineHeightMobile' => '',
477
+ 'validationMsgLoadGoogleFonts' => false,
478
+ 'successMsgColor' => '',
479
+ 'successMsgBgColor' => '',
480
+ 'successMsgBorderColor' => '',
481
+ 'errorMsgColor' => '',
482
+ 'errorMsgBgColor' => '',
483
+ 'errorMsgBorderColor' => '',
484
+ 'msgBorderSize' => '',
485
+ 'msgBorderRadius' => '',
486
+ 'msgVrPadding' => '',
487
+ 'msgHrPadding' => '',
488
+ 'msgFontSize' => '',
489
+ 'msgFontSizeType' => 'px',
490
+ 'msgFontSizeTablet' => '',
491
+ 'msgFontSizeMobile' => '',
492
+ 'msgFontFamily' => '',
493
+ 'msgFontWeight' => '',
494
+ 'msgFontSubset' => '',
495
+ 'msgLineHeightType' => 'em',
496
+ 'msgLineHeight' => '',
497
+ 'msgLineHeightTablet' => '',
498
+ 'msgLineHeightMobile' => '',
499
+ 'msgLoadGoogleFonts' => false,
500
+ 'radioCheckBorderRadiusType' => 'px',
501
+ 'msgBorderRadiusType' => 'px',
502
+ 'fieldBorderRadiusType' => 'px',
503
+ 'buttonBorderRadiusType' => 'px',
504
+ ),
505
+ ),
506
+ 'uagb/gf-styler' => array(
507
+ 'slug' => '',
508
+ 'title' => __( 'Gravity Form Styler', 'ultimate-addons-for-gutenberg' ),
509
+ 'description' => __( 'This block allows you to add and style your Gravity Forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
510
+ 'default' => true,
511
+ 'is_active' => class_exists( 'GFForms' ),
512
+ 'attributes' => array(
513
+ 'block_id' => '',
514
+ 'align' => 'left',
515
+ 'enableAjax' => false,
516
+ 'enableTabSupport' => false,
517
+ 'formTabIndex' => '0',
518
+ 'formId' => '0',
519
+ 'titleDescStyle' => 'yes',
520
+ 'titleDescAlignment' => 'left',
521
+ 'fieldStyle' => 'box',
522
+ 'fieldHrPadding' => 10,
523
+ 'fieldVrPadding' => 10,
524
+ 'fieldBgColor' => '#fafafa',
525
+ 'fieldLabelColor' => '#333',
526
+ 'fieldInputColor' => '#333',
527
+ 'fieldBorderStyle' => 'solid',
528
+ 'fieldBorderWidth' => 1,
529
+ 'fieldBorderRadius' => 0,
530
+ 'fieldBorderColor' => '#eeeeee',
531
+ 'fieldBorderFocusColor' => '',
532
+ 'buttonAlignment' => 'left',
533
+ 'buttonVrPadding' => 10,
534
+ 'buttonHrPadding' => 25,
535
+ 'buttonTextColor' => '#333',
536
+ 'buttonBgColor' => 'transparent',
537
+ 'buttonTextHoverColor' => '',
538
+ 'buttonBgHoverColor' => '',
539
+ 'buttonBorderStyle' => 'solid',
540
+ 'buttonBorderWidth' => 1,
541
+ 'buttonBorderRadius' => 0,
542
+ 'buttonBorderColor' => '#333',
543
+ 'buttonBorderHoverColor' => '',
544
+ 'fieldSpacing' => '',
545
+ 'fieldLabelSpacing' => '',
546
+ 'enableLabel' => false,
547
+ 'textAreaHeight' => 'auto',
548
+ 'labelFontSize' => '',
549
+ 'labelFontSizeType' => 'px',
550
+ 'labelFontSizeTablet' => '',
551
+ 'labelFontSizeMobile' => '',
552
+ 'labelFontFamily' => '',
553
+ 'labelFontWeight' => '',
554
+ 'labelFontSubset' => '',
555
+ 'labelLineHeightType' => 'px',
556
+ 'labelLineHeight' => '',
557
+ 'labelLineHeightTablet' => '',
558
+ 'labelLineHeightMobile' => '',
559
+ 'labelLoadGoogleFonts' => false,
560
+ 'inputFontSize' => '',
561
+ 'inputFontSizeType' => 'px',
562
+ 'inputFontSizeTablet' => '',
563
+ 'inputFontSizeMobile' => '',
564
+ 'inputFontFamily' => '',
565
+ 'inputFontWeight' => '',
566
+ 'inputFontSubset' => '',
567
+ 'inputLineHeightType' => 'px',
568
+ 'inputLineHeight' => '',
569
+ 'inputLineHeightTablet' => '',
570
+ 'inputLineHeightMobile' => '',
571
+ 'inputLoadGoogleFonts' => false,
572
+ 'buttonFontSize' => '',
573
+ 'buttonFontSizeType' => 'px',
574
+ 'buttonFontSizeTablet' => '',
575
+ 'buttonFontSizeMobile' => '',
576
+ 'buttonFontFamily' => '',
577
+ 'buttonFontWeight' => '',
578
+ 'buttonFontSubset' => '',
579
+ 'buttonLineHeightType' => 'px',
580
+ 'buttonLineHeight' => '',
581
+ 'buttonLineHeightTablet' => '',
582
+ 'buttonLineHeightMobile' => '',
583
+ 'buttonLoadGoogleFonts' => false,
584
+ 'enableOveride' => true,
585
+ 'radioCheckSize' => '20',
586
+ 'radioCheckBgColor' => '#fafafa',
587
+ 'radioCheckSelectColor' => '',
588
+ 'radioCheckLableColor' => '',
589
+ 'radioCheckBorderColor' => '#cbcbcb',
590
+ 'radioCheckBorderWidth' => '1',
591
+ 'radioCheckBorderRadius' => '',
592
+ 'radioCheckFontSize' => '',
593
+ 'radioCheckFontSizeType' => 'px',
594
+ 'radioCheckFontSizeTablet' => '',
595
+ 'radioCheckFontSizeMobile' => '',
596
+ 'radioCheckFontFamily' => '',
597
+ 'radioCheckFontWeight' => '',
598
+ 'radioCheckFontSubset' => '',
599
+ 'radioCheckLineHeightType' => 'px',
600
+ 'radioCheckLineHeight' => '',
601
+ 'radioCheckLineHeightTablet' => '',
602
+ 'radioCheckLineHeightMobile' => '',
603
+ 'radioCheckLoadGoogleFonts' => false,
604
+ 'validationMsgColor' => '#ff0000',
605
+ 'advancedValidationSettings' => false,
606
+ 'highlightBorderColor' => '#ff0000',
607
+ 'validationMsgFontSize' => '',
608
+ 'validationMsgBgColor' => '',
609
+ 'validationMsgFontSizeType' => 'px',
610
+ 'validationMsgFontSizeTablet' => '',
611
+ 'validationMsgFontSizeMobile' => '',
612
+ 'validationMsgFontFamily' => '',
613
+ 'validationMsgFontWeight' => '',
614
+ 'validationMsgFontSubset' => '',
615
+ 'validationMsgLineHeightType' => 'em',
616
+ 'validationMsgLineHeight' => '',
617
+ 'validationMsgLineHeightTablet' => '',
618
+ 'validationMsgLineHeightMobile' => '',
619
+ 'validationMsgLoadGoogleFonts' => false,
620
+ 'successMsgBorderColor' => '',
621
+ 'errorMsgColor' => '',
622
+ 'errorMsgBgColor' => '',
623
+ 'errorMsgBorderColor' => '',
624
+ 'msgBorderSize' => '',
625
+ 'msgBorderRadius' => '',
626
+ 'msgVrPadding' => '',
627
+ 'msgHrPadding' => '',
628
+ 'msgFontSize' => '',
629
+ 'msgFontSizeType' => 'px',
630
+ 'msgFontSizeTablet' => '',
631
+ 'msgFontSizeMobile' => '',
632
+ 'msgFontFamily' => '',
633
+ 'msgFontWeight' => '',
634
+ 'msgFontSubset' => '',
635
+ 'msgLineHeightType' => 'em',
636
+ 'msgLineHeight' => '',
637
+ 'msgLineHeightTablet' => '',
638
+ 'msgLineHeightMobile' => '',
639
+ 'msgLoadGoogleFonts' => false,
640
+ 'radioCheckBorderRadiusType' => 'px',
641
+ 'msgBorderRadiusType' => 'px',
642
+ 'fieldBorderRadiusType' => 'px',
643
+ 'buttonBorderRadiusType' => 'px',
644
+ 'successMsgColor' => '',
645
+ 'successMsgFontSize' => '',
646
+ 'successMsgFontSizeType' => 'px',
647
+ 'successMsgFontSizeTablet' => '',
648
+ 'successMsgFontSizeMobile' => '',
649
+ 'successMsgFontFamily' => '',
650
+ 'successMsgFontWeight' => '',
651
+ 'successMsgFontSubset' => '',
652
+ 'successMsgLineHeightType' => 'em',
653
+ 'successMsgLineHeight' => '',
654
+ 'successMsgLineHeightTablet' => '',
655
+ 'successMsgLineHeightMobile' => '',
656
+ 'successMsgLoadGoogleFonts' => false,
657
+ ),
658
+ ),
659
+ 'uagb/content-timeline' => array(
660
+ 'slug' => '',
661
+ 'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ),
662
+ 'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ),
663
+ 'default' => true,
664
+ 'attributes' => array(
665
+ 'align' => 'center',
666
+ 'headingColor' => '',
667
+ 'subHeadingColor' => '',
668
+ 'separatorBg' => '#eee',
669
+ 'backgroundColor' => '#eee',
670
+ 'separatorColor' => '#eee',
671
+ 'separatorFillColor' => '#61ce70',
672
+ 'separatorBorder' => '#eee',
673
+ 'borderFocus' => '#5cb85c',
674
+ 'horizontalSpace' => 10,
675
+ 'verticalSpace' => 15,
676
+ 'headFontSizeType' => 'px',
677
+ 'headFontSize' => '',
678
+ 'headFontSizeTablet' => '',
679
+ 'headFontSizeMobile' => '',
680
+ 'headFontFamily' => '',
681
+ 'headFontWeight' => '',
682
+ 'headFontSubset' => '',
683
+ 'headLineHeightType' => 'em',
684
+ 'headLineHeight' => '',
685
+ 'headLineHeightTablet' => '',
686
+ 'headLineHeightMobile' => '',
687
+ 'headLoadGoogleFonts' => false,
688
+ 'timelinAlignment' => 'center',
689
+ 'arrowlinAlignment' => 'center',
690
+ 'subHeadFontSizeType' => 'px',
691
+ 'subHeadFontSize' => '',
692
+ 'subHeadFontSizeTablet' => '',
693
+ 'subHeadFontSizeMobile' => '',
694
+ 'subHeadFontFamily' => '',
695
+ 'subHeadFontWeight' => '',
696
+ 'subHeadFontSubset' => '',
697
+ 'subHeadLineHeightType' => 'em',
698
+ 'subHeadLineHeight' => '',
699
+ 'subHeadLineHeightTablet' => '',
700
+ 'subHeadLineHeightMobile' => '',
701
+ 'subHeadLoadGoogleFonts' => false,
702
+ 'headSpace' => 5,
703
+ 'separatorwidth' => 3,
704
+ 'borderwidth' => 0,
705
+ 'iconColor' => '#333',
706
+ 'iconFocus' => '#fff',
707
+ 'iconBgFocus' => '#61ce70',
708
+ 'dateColor' => '#333',
709
+ 'dateFontsizeType' => 'px',
710
+ 'dateFontsize' => '12',
711
+ 'dateFontsizeTablet' => '',
712
+ 'dateFontsizeMobile' => '',
713
+ 'dateFontFamily' => '',
714
+ 'dateFontWeight' => '',
715
+ 'dateFontSubset' => '',
716
+ 'dateLineHeightType' => 'em',
717
+ 'dateLineHeight' => '',
718
+ 'dateLineHeightTablet' => '',
719
+ 'dateLineHeightMobile' => '',
720
+ 'dateLoadGoogleFonts' => false,
721
+ 'connectorBgsize' => 35,
722
+ 'dateBottomspace' => 5,
723
+ 'borderRadius' => 2,
724
+ 'bgPadding' => 20,
725
+ 'iconSize' => 12,
726
+ 'stack' => 'tablet',
727
+ ),
728
+ ),
729
+ 'uagb/google-map' => array(
730
+ 'slug' => '',
731
+ 'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ),
732
+ 'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ),
733
+ 'default' => true,
734
+ 'attributes' => array(
735
+ 'block_id' => '',
736
+ 'height' => '300',
737
+ ),
738
+ ),
739
+ 'uagb/icon-list' => array(
740
+ 'slug' => '',
741
+ 'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ),
742
+ 'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ),
743
+ 'default' => true,
744
+ 'attributes' => array(
745
+ 'align' => 'left',
746
+ 'icon_count' => '1',
747
+ 'icons' => array(
748
+ array(
749
+ 'label' => __( 'Label #1', 'ultimate-addons-for-gutenberg' ),
750
+ 'image_icon' => 'icon',
751
+ 'icon' => 'fab fa-facebook',
752
+ 'image' => '',
753
+ 'icon_color' => '#3a3a3a',
754
+ 'icon_hover_color' => '#3a3a3a',
755
+ 'icon_bg_color' => '',
756
+ 'icon_bg_hover_color' => '',
757
+ 'icon_border_color' => '',
758
+ 'icon_border_hover_color' => '',
759
+ 'label_color' => '',
760
+ 'label_hover_color' => '',
761
+ 'link' => '#',
762
+ 'target' => false,
763
+ ),
764
+ ),
765
+ 'gap' => '10',
766
+ 'inner_gap' => '15',
767
+ 'size' => '40',
768
+ 'sizeType' => 'px',
769
+ 'sizeMobile' => '',
770
+ 'sizeTablet' => '',
771
+ 'bgSize' => '0',
772
+ 'border' => '0',
773
+ 'borderRadius' => '0',
774
+ 'fontSize' => '',
775
+ 'fontSizeType' => 'px',
776
+ 'fontSizeMobile' => '',
777
+ 'fontSizeTablet' => '',
778
+ 'lineHeight' => '',
779
+ 'lineHeightType' => 'em',
780
+ 'lineHeightMobile' => '',
781
+ 'lineHeightTablet' => '',
782
+ 'fontFamily' => '',
783
+ 'fontWeight' => '',
784
+ 'fontSubset' => '',
785
+ 'loadGoogleFonts' => false,
786
+ 'icon_layout' => 'vertical',
787
+ 'stack' => 'none',
788
+ ),
789
+ ),
790
+ 'uagb/info-box' => array(
791
+ 'slug' => '',
792
+ 'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ),
793
+ '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' ),
794
+ 'default' => true,
795
+ 'attributes' => array(
796
+ 'headingAlign' => 'center',
797
+ 'headingColor' => '',
798
+ 'subHeadingColor' => '',
799
+ 'prefixColor' => '',
800
+ 'prefixFontSize' => '',
801
+ 'prefixFontSizeType' => 'px',
802
+ 'prefixFontSizeTablet' => '',
803
+ 'prefixFontSizeMobile' => '',
804
+ 'prefixFontFamily' => '',
805
+ 'prefixFontWeight' => '',
806
+ 'prefixFontSubset' => '',
807
+ 'prefixLineHeightType' => 'em',
808
+ 'prefixLineHeight' => '',
809
+ 'prefixLineHeightTablet' => '',
810
+ 'prefixLineHeightMobile' => '',
811
+ 'prefixLoadGoogleFonts' => false,
812
+ 'headFontSize' => '',
813
+ 'headFontSizeType' => 'px',
814
+ 'headFontSizeTablet' => '',
815
+ 'headFontSizeMobile' => '',
816
+ 'headFontFamily' => '',
817
+ 'headFontWeight' => '',
818
+ 'headFontSubset' => '',
819
+ 'headLineHeightType' => 'em',
820
+ 'headLineHeight' => '',
821
+ 'headLineHeightTablet' => '',
822
+ 'headLineHeightMobile' => '',
823
+ 'headLoadGoogleFonts' => false,
824
+ 'subHeadFontSize' => '',
825
+ 'subHeadFontSizeType' => 'px',
826
+ 'subHeadFontSizeTablet' => '',
827
+ 'subHeadFontSizeMobile' => '',
828
+ 'subHeadFontFamily' => '',
829
+ 'subHeadFontWeight' => '',
830
+ 'subHeadFontSubset' => '',
831
+ 'subHeadLineHeightType' => 'em',
832
+ 'subHeadLineHeight' => '',
833
+ 'subHeadLineHeightTablet' => '',
834
+ 'subHeadLineHeightMobile' => '',
835
+ 'subHeadLoadGoogleFonts' => false,
836
+ 'separatorWidth' => '',
837
+ 'separatorHeight' => '',
838
+ 'separatorWidthType' => '%',
839
+ 'headSpace' => '10',
840
+ 'separatorSpace' => '10',
841
+ 'subHeadSpace' => '10',
842
+ 'icon' => '',
843
+ 'iconColor' => '#333',
844
+ 'iconSize' => '40',
845
+ 'iconimgPosition' => 'above-title',
846
+ 'block_id' => '',
847
+ 'iconHover' => '',
848
+ 'iconimgBorderRadius' => '0',
849
+ 'seperatorStyle' => 'solid',
850
+ 'seperatorWidth' => '30',
851
+ 'seperatorColor' => '#333',
852
+ 'seperatorThickness' => '2',
853
+ 'ctaLinkColor' => '#333',
854
+ 'ctaFontSize' => '',
855
+ 'ctaFontSizeType' => 'px',
856
+ 'ctaFontSizeMobile' => '',
857
+ 'ctaFontSizeTablet' => '',
858
+ 'ctaFontFamily' => '',
859
+ 'ctaFontWeight' => '',
860
+ 'ctaFontSubset' => '',
861
+ 'ctaLoadGoogleFonts' => false,
862
+ 'ctaBtnLinkColor' => '#333',
863
+ 'ctaBgColor' => 'transparent',
864
+ 'ctaBtnVertPadding' => '10',
865
+ 'ctaBtnHrPadding' => '14',
866
+ 'ctaBorderStyle' => 'solid',
867
+ 'ctaBorderColor' => '#333',
868
+ 'ctaBorderWidth' => '1',
869
+ 'ctaBorderRadius' => '0',
870
+ 'prefixSpace' => '5',
871
+ 'iconLeftMargin' => '5',
872
+ 'iconRightMargin' => '10',
873
+ 'iconTopMargin' => '5',
874
+ 'iconBottomMargin' => '5',
875
+ 'imageSize' => 'thumbnail',
876
+ 'imageWidth' => '120',
877
+ 'seperatorSpace' => '15',
878
+ 'ctaLinkHoverColor' => '',
879
+ 'ctaBgHoverColor' => '',
880
+ 'ctaBorderhoverColor' => '',
881
+ 'ctaIconSpace' => '5',
882
+ ),
883
+ ),
884
+ 'uagb/marketing-button' => array(
885
+ 'slug' => '',
886
+ 'title' => __( 'Marketing Button', 'ultimate-addons-for-gutenberg' ),
887
+ 'description' => __( 'This block allows you to place a Marketing Button with small description.', 'ultimate-addons-for-gutenberg' ),
888
+ 'default' => true,
889
+ 'attributes' => array(
890
+ 'block_id' => '',
891
+ 'align' => 'center',
892
+ 'textAlign' => 'center',
893
+ 'link' => '#',
894
+ 'linkTarget' => false,
895
+ 'titleSpace' => 0,
896
+ 'borderStyle' => 'solid',
897
+ 'borderWidth' => 1,
898
+ 'borderRadius' => '',
899
+ 'borderColor' => '#333',
900
+ 'borderHoverColor' => '',
901
+ 'vPadding' => 8,
902
+ 'hPadding' => 20,
903
+ 'backgroundType' => 'color',
904
+ 'backgroundColor' => '#eeeeee',
905
+ 'backgroundHoverColor' => '',
906
+ 'gradientColor1' => '',
907
+ 'gradientColor2' => '',
908
+ 'gradientType' => 'linear',
909
+ 'gradientLocation1' => 0,
910
+ 'gradientLocation2' => 100,
911
+ 'gradientAngle' => 0,
912
+ 'backgroundOpacity' => '',
913
+ 'backgroundHoverOpacity' => '',
914
+ 'titleColor' => '#333',
915
+ 'titleHoverColor' => '',
916
+ 'iconColor' => '#333',
917
+ 'iconHoverColor' => '',
918
+ 'iconPosition' => 'before',
919
+ 'prefixColor' => '#333',
920
+ 'prefixHoverColor' => '',
921
+ 'iconSpace' => 10,
922
+ 'titleLoadGoogleFonts' => false,
923
+ 'titleFontFamily' => 'Default',
924
+ 'titleFontWeight' => '',
925
+ 'titleFontSubset' => '',
926
+ 'titleFontSize' => 20,
927
+ 'titleFontSizeType' => 'px',
928
+ 'titleFontSizeTablet' => 20,
929
+ 'titleFontSizeMobile' => 20,
930
+ 'titleLineHeightType' => 'em',
931
+ 'titleLineHeight' => '',
932
+ 'titleLineHeightTablet' => '',
933
+ 'titleLineHeightMobile' => '',
934
+ 'prefixLoadGoogleFonts' => false,
935
+ 'prefixFontFamily' => 'Default',
936
+ 'prefixFontWeight' => '',
937
+ 'prefixFontSubset' => '',
938
+ 'prefixFontSize' => 14,
939
+ 'prefixFontSizeType' => 'px',
940
+ 'prefixFontSizeTablet' => 14,
941
+ 'prefixFontSizeMobile' => 14,
942
+ 'prefixLineHeightType' => 'em',
943
+ 'prefixLineHeight' => '',
944
+ 'prefixLineHeightTablet' => '',
945
+ 'prefixLineHeightMobile' => '',
946
+ 'iconFontSize' => 20,
947
+ 'iconFontSizeType' => 'px',
948
+ 'iconFontSizeTablet' => 20,
949
+ 'iconFontSizeMobile' => 20,
950
+ ),
951
+ ),
952
+ 'uagb/buttons' => array(
953
+ 'slug' => '',
954
+ 'title' => __( 'Multi Buttons', 'ultimate-addons-for-gutenberg' ),
955
+ 'description' => __( 'This block allows you to add multiple buttons with a single block.', 'ultimate-addons-for-gutenberg' ),
956
+ 'default' => true,
957
+ 'attributes' => array(
958
+ 'block_id' => '',
959
+ 'align' => 'center',
960
+ 'btn_count' => '2',
961
+ 'buttons' => UAGB_Helper::get_button_defaults(),
962
+ 'gap' => 10,
963
+ 'stack' => 'none',
964
+ 'fontFamily' => '',
965
+ 'fontWeight' => '',
966
+ 'loadGoogleFonts' => false,
967
+ 'fontSubset' => '',
968
+ ),
969
+ ),
970
+ 'uagb/post-carousel' => array(
971
+ 'slug' => '',
972
+ 'title' => __( 'Post Carousel', 'ultimate-addons-for-gutenberg' ),
973
+ 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a carousel layout.', 'ultimate-addons-for-gutenberg' ),
974
+ 'default' => true,
975
+ 'attributes' => array(
976
+ 'align' => 'left',
977
+ 'rowGap' => '20',
978
+ 'columnGap' => '20',
979
+ 'bgColor' => '#e4e4e4',
980
+ 'titleColor' => '#3b3b3b',
981
+ 'titleTag' => 'h3',
982
+ 'titleFontSize' => '',
983
+ 'titleFontSizeType' => 'px',
984
+ 'titleFontSizeMobile' => '',
985
+ 'titleFontSizeTablet' => '',
986
+ 'titleFontFamily' => '',
987
+ 'titleFontWeight' => '',
988
+ 'titleFontSubset' => '',
989
+ 'titleLineHeightType' => 'em',
990
+ 'titleLineHeight' => '',
991
+ 'titleLineHeightTablet' => '',
992
+ 'titleLineHeightMobile' => '',
993
+ 'titleLoadGoogleFonts' => false,
994
+ 'metaFontSize' => '',
995
+ 'metaFontSizeType' => 'px',
996
+ 'metaFontSizeMobile' => '',
997
+ 'metaFontSizeTablet' => '',
998
+ 'metaFontFamily' => '',
999
+ 'metaFontWeight' => '',
1000
+ 'metaFontSubset' => '',
1001
+ 'metaLineHeightType' => 'em',
1002
+ 'metaLineHeight' => '',
1003
+ 'metaLineHeightTablet' => '',
1004
+ 'metaLineHeightMobile' => '',
1005
+ 'metaLoadGoogleFonts' => false,
1006
+ 'excerptFontSize' => '',
1007
+ 'excerptFontSizeType' => 'px',
1008
+ 'excerptFontSizeMobile' => '',
1009
+ 'excerptFontSizeTablet' => '',
1010
+ 'excerptFontFamily' => '',
1011
+ 'excerptFontWeight' => '',
1012
+ 'excerptFontSubset' => '',
1013
+ 'excerptLineHeightType' => 'em',
1014
+ 'excerptLineHeight' => '',
1015
+ 'excerptLineHeightTablet' => '',
1016
+ 'excerptLineHeightMobile' => '',
1017
+ 'excerptLoadGoogleFonts' => false,
1018
+ 'ctaFontSize' => '',
1019
+ 'ctaFontSizeType' => 'px',
1020
+ 'ctaFontSizeTablet' => '',
1021
+ 'ctaFontSizeMobile' => '',
1022
+ 'ctaFontFamily' => '',
1023
+ 'ctaFontWeight' => '',
1024
+ 'ctaFontSubset' => '',
1025
+ 'ctaLineHeightType' => 'em',
1026
+ 'ctaLineHeight' => '',
1027
+ 'ctaLineHeightTablet' => '',
1028
+ 'ctaLineHeightMobile' => '',
1029
+ 'ctaLoadGoogleFonts' => false,
1030
+ 'metaColor' => '#777777',
1031
+ 'excerptColor' => '',
1032
+ 'ctaColor' => '#ffffff',
1033
+ 'ctaBgColor' => '#333333',
1034
+ 'ctaHColor' => '',
1035
+ 'ctaBgHColor' => '',
1036
+ 'contentPadding' => '20',
1037
+ 'contentPaddingMobile' => '',
1038
+ 'btnVPadding' => '5',
1039
+ 'btnHPadding' => '10',
1040
+ 'titleBottomSpace' => '15',
1041
+ 'metaBottomSpace' => '15',
1042
+ 'excerptBottomSpace' => '25',
1043
+ 'arrowSize' => '20',
1044
+ 'arrowColor' => '#aaaaaa',
1045
+ 'arrowDots' => '',
1046
+ 'arrowBorderSize' => '1',
1047
+ 'arrowBorderRadius' => '0',
1048
+ 'overlayOpacity' => '50',
1049
+ 'bgOverlayColor' => '#ffffff',
1050
+ 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1051
+ 'borderWidth' => '1',
1052
+ 'borderStyle' => 'none',
1053
+ 'borderColor' => '',
1054
+ 'borderHColor' => '',
1055
+ 'borderRadius' => '0',
1056
+ ),
1057
+ ),
1058
+ 'uagb/post-grid' => array(
1059
+ 'slug' => '',
1060
+ 'title' => __( 'Post Grid', 'ultimate-addons-for-gutenberg' ),
1061
+ 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a grid layout.', 'ultimate-addons-for-gutenberg' ),
1062
+ 'default' => true,
1063
+ 'attributes' => array(
1064
+ 'align' => 'left',
1065
+ 'rowGap' => '20',
1066
+ 'columnGap' => '20',
1067
+ 'bgColor' => '#e4e4e4',
1068
+ 'titleColor' => '#3b3b3b',
1069
+ 'titleTag' => 'h3',
1070
+ 'titleFontSize' => '',
1071
+ 'titleFontSizeType' => 'px',
1072
+ 'titleFontSizeMobile' => '',
1073
+ 'titleFontSizeTablet' => '',
1074
+ 'titleFontFamily' => '',
1075
+ 'titleFontWeight' => '',
1076
+ 'titleFontSubset' => '',
1077
+ 'titleLineHeightType' => 'em',
1078
+ 'titleLineHeight' => '',
1079
+ 'titleLineHeightTablet' => '',
1080
+ 'titleLineHeightMobile' => '',
1081
+ 'titleLoadGoogleFonts' => false,
1082
+ 'metaFontSize' => '',
1083
+ 'metaFontSizeType' => 'px',
1084
+ 'metaFontSizeMobile' => '',
1085
+ 'metaFontSizeTablet' => '',
1086
+ 'metaFontFamily' => '',
1087
+ 'metaFontWeight' => '',
1088
+ 'metaFontSubset' => '',
1089
+ 'metaLineHeightType' => 'em',
1090
+ 'metaLineHeight' => '',
1091
+ 'metaLineHeightTablet' => '',
1092
+ 'metaLineHeightMobile' => '',
1093
+ 'metaLoadGoogleFonts' => false,
1094
+ 'excerptFontSize' => '',
1095
+ 'excerptFontSizeType' => 'px',
1096
+ 'excerptFontSizeMobile' => '',
1097
+ 'excerptFontSizeTablet' => '',
1098
+ 'excerptFontFamily' => '',
1099
+ 'excerptFontWeight' => '',
1100
+ 'excerptFontSubset' => '',
1101
+ 'excerptLineHeightType' => 'em',
1102
+ 'excerptLineHeight' => '',
1103
+ 'excerptLineHeightTablet' => '',
1104
+ 'excerptLineHeightMobile' => '',
1105
+ 'excerptLoadGoogleFonts' => false,
1106
+ 'ctaFontSize' => '',
1107
+ 'ctaFontSizeType' => 'px',
1108
+ 'ctaFontSizeTablet' => '',
1109
+ 'ctaFontSizeMobile' => '',
1110
+ 'ctaFontFamily' => '',
1111
+ 'ctaFontWeight' => '',
1112
+ 'ctaFontSubset' => '',
1113
+ 'ctaLineHeightType' => 'em',
1114
+ 'ctaLineHeight' => '',
1115
+ 'ctaLineHeightTablet' => '',
1116
+ 'ctaLineHeightMobile' => '',
1117
+ 'ctaLoadGoogleFonts' => false,
1118
+ 'metaColor' => '#777777',
1119
+ 'excerptColor' => '',
1120
+ 'ctaColor' => '#ffffff',
1121
+ 'ctaBgColor' => '#333333',
1122
+ 'ctaHColor' => '',
1123
+ 'ctaBgHColor' => '',
1124
+ 'contentPadding' => '20',
1125
+ 'contentPaddingMobile' => '',
1126
+ 'btnVPadding' => '5',
1127
+ 'btnHPadding' => '10',
1128
+ 'titleBottomSpace' => '15',
1129
+ 'metaBottomSpace' => '15',
1130
+ 'excerptBottomSpace' => '25',
1131
+ 'overlayOpacity' => '50',
1132
+ 'bgOverlayColor' => '#ffffff',
1133
+ 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1134
+ 'borderWidth' => '1',
1135
+ 'borderStyle' => 'none',
1136
+ 'borderColor' => '',
1137
+ 'borderHColor' => '',
1138
+ 'borderRadius' => '0',
1139
+ ),
1140
+ ),
1141
+ 'uagb/post-masonry' => array(
1142
+ 'slug' => '',
1143
+ 'title' => __( 'Post Masonry', 'ultimate-addons-for-gutenberg' ),
1144
+ 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a masonry layout.', 'ultimate-addons-for-gutenberg' ),
1145
+ 'default' => true,
1146
+ 'attributes' => array(
1147
+ 'align' => 'left',
1148
+ 'rowGap' => '20',
1149
+ 'columnGap' => '20',
1150
+ 'bgColor' => '#e4e4e4',
1151
+ 'titleColor' => '#3b3b3b',
1152
+ 'titleTag' => 'h3',
1153
+ 'titleFontSize' => '',
1154
+ 'titleFontSizeType' => 'px',
1155
+ 'titleFontSizeMobile' => '',
1156
+ 'titleFontSizeTablet' => '',
1157
+ 'titleFontFamily' => '',
1158
+ 'titleFontWeight' => '',
1159
+ 'titleFontSubset' => '',
1160
+ 'titleLineHeightType' => 'em',
1161
+ 'titleLineHeight' => '',
1162
+ 'titleLineHeightTablet' => '',
1163
+ 'titleLineHeightMobile' => '',
1164
+ 'titleLoadGoogleFonts' => false,
1165
+ 'metaFontSize' => '',
1166
+ 'metaFontSizeType' => 'px',
1167
+ 'metaFontSizeMobile' => '',
1168
+ 'metaFontSizeTablet' => '',
1169
+ 'metaFontFamily' => '',
1170
+ 'metaFontWeight' => '',
1171
+ 'metaFontSubset' => '',
1172
+ 'metaLineHeightType' => 'em',
1173
+ 'metaLineHeight' => '',
1174
+ 'metaLineHeightTablet' => '',
1175
+ 'metaLineHeightMobile' => '',
1176
+ 'metaLoadGoogleFonts' => false,
1177
+ 'excerptFontSize' => '',
1178
+ 'excerptFontSizeType' => 'px',
1179
+ 'excerptFontSizeMobile' => '',
1180
+ 'excerptFontSizeTablet' => '',
1181
+ 'excerptFontFamily' => '',
1182
+ 'excerptFontWeight' => '',
1183
+ 'excerptFontSubset' => '',
1184
+ 'excerptLineHeightType' => 'em',
1185
+ 'excerptLineHeight' => '',
1186
+ 'excerptLineHeightTablet' => '',
1187
+ 'excerptLineHeightMobile' => '',
1188
+ 'excerptLoadGoogleFonts' => false,
1189
+ 'ctaFontSize' => '',
1190
+ 'ctaFontSizeType' => 'px',
1191
+ 'ctaFontSizeTablet' => '',
1192
+ 'ctaFontSizeMobile' => '',
1193
+ 'ctaFontFamily' => '',
1194
+ 'ctaFontWeight' => '',
1195
+ 'ctaFontSubset' => '',
1196
+ 'ctaLineHeightType' => 'em',
1197
+ 'ctaLineHeight' => '',
1198
+ 'ctaLineHeightTablet' => '',
1199
+ 'ctaLineHeightMobile' => '',
1200
+ 'ctaLoadGoogleFonts' => false,
1201
+ 'metaColor' => '#777777',
1202
+ 'excerptColor' => '',
1203
+ 'ctaColor' => '#ffffff',
1204
+ 'ctaBgColor' => '#333333',
1205
+ 'ctaHColor' => '',
1206
+ 'ctaBgHColor' => '',
1207
+ 'contentPadding' => '20',
1208
+ 'contentPaddingMobile' => '',
1209
+ 'btnVPadding' => '5',
1210
+ 'btnHPadding' => '10',
1211
+ 'titleBottomSpace' => '15',
1212
+ 'metaBottomSpace' => '15',
1213
+ 'excerptBottomSpace' => '25',
1214
+ 'overlayOpacity' => '50',
1215
+ 'bgOverlayColor' => '#ffffff',
1216
+ 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1217
+ 'borderWidth' => '1',
1218
+ 'borderStyle' => 'none',
1219
+ 'borderColor' => '',
1220
+ 'borderHColor' => '',
1221
+ 'borderRadius' => '0',
1222
+ ),
1223
+ ),
1224
+ 'uagb/post-timeline' => array(
1225
+ 'slug' => '',
1226
+ 'title' => __( 'Post Timeline', 'ultimate-addons-for-gutenberg' ),
1227
+ 'description' => __( 'The Timeline block lets you create beautiful timelines of Posts on your website.', 'ultimate-addons-for-gutenberg' ),
1228
+ 'default' => true,
1229
+ 'attributes' => array(
1230
+ 'align' => 'center',
1231
+ 'headingColor' => '',
1232
+ 'subHeadingColor' => '',
1233
+ 'separatorBg' => '#eee',
1234
+ 'backgroundColor' => '#eee',
1235
+ 'separatorColor' => '#eee',
1236
+ 'separatorFillColor' => '#61ce70',
1237
+ 'separatorBorder' => '#eee',
1238
+ 'borderFocus' => '#5cb85c',
1239
+ 'horizontalSpace' => 10,
1240
+ 'verticalSpace' => 15,
1241
+ 'headFontSizeType' => 'px',
1242
+ 'headFontSize' => '',
1243
+ 'headFontSizeTablet' => '',
1244
+ 'headFontSizeMobile' => '',
1245
+ 'headFontFamily' => '',
1246
+ 'headFontWeight' => '',
1247
+ 'headFontSubset' => '',
1248
+ 'headLineHeightType' => 'em',
1249
+ 'headLineHeight' => '',
1250
+ 'headLineHeightTablet' => '',
1251
+ 'headLineHeightMobile' => '',
1252
+ 'headLoadGoogleFonts' => false,
1253
+ 'timelinAlignment' => 'center',
1254
+ 'arrowlinAlignment' => 'center',
1255
+ 'subHeadFontSizeType' => 'px',
1256
+ 'subHeadFontSize' => '',
1257
+ 'subHeadFontSizeTablet' => '',
1258
+ 'subHeadFontSizeMobile' => '',
1259
+ 'subHeadFontFamily' => '',
1260
+ 'subHeadFontWeight' => '',
1261
+ 'subHeadFontSubset' => '',
1262
+ 'subHeadLineHeightType' => 'em',
1263
+ 'subHeadLineHeight' => '',
1264
+ 'subHeadLineHeightTablet' => '',
1265
+ 'subHeadLineHeightMobile' => '',
1266
+ 'subHeadLoadGoogleFonts' => false,
1267
+ 'headSpace' => 5,
1268
+ 'contentSpace' => 5,
1269
+ 'authorSpace' => 5,
1270
+ 'separatorwidth' => 3,
1271
+ 'borderwidth' => 0,
1272
+ 'iconColor' => '#333',
1273
+ 'iconFocus' => '#fff',
1274
+ 'iconBgFocus' => '#61ce70',
1275
+ 'dateColor' => '#333',
1276
+ 'dateFontsizeType' => 'px',
1277
+ 'dateFontsize' => 12,
1278
+ 'dateFontsizeTablet' => '',
1279
+ 'dateFontsizeMobile' => '',
1280
+ 'dateFontFamily' => '',
1281
+ 'dateFontWeight' => '',
1282
+ 'dateFontSubset' => '',
1283
+ 'dateLineHeightType' => 'em',
1284
+ 'dateLineHeight' => '',
1285
+ 'dateLineHeightTablet' => '',
1286
+ 'dateLineHeightMobile' => '',
1287
+ 'dateLoadGoogleFonts' => false,
1288
+ 'connectorBgsize' => 35,
1289
+ 'dateBottomspace' => 5,
1290
+ 'borderRadius' => 2,
1291
+ 'bgPadding' => 20,
1292
+ 'contentPadding' => 10,
1293
+ 'iconSize' => 12,
1294
+ 'stack' => 'tablet',
1295
+ 'ctaColor' => '#fff',
1296
+ 'authorColor' => '#333',
1297
+ 'ctaFontSizeType' => 'px',
1298
+ 'ctaFontSize' => '',
1299
+ 'ctaFontSizeTablet' => '',
1300
+ 'ctaFontSizeMobile' => '',
1301
+ 'ctaFontFamily' => '',
1302
+ 'ctaFontWeight' => '',
1303
+ 'ctaFontSubset' => '',
1304
+ 'ctaLineHeightType' => 'em',
1305
+ 'ctaLineHeight' => '',
1306
+ 'ctaLineHeightTablet' => '',
1307
+ 'ctaLineHeightMobile' => '',
1308
+ 'ctaLoadGoogleFonts' => false,
1309
+ 'authorFontSizeType' => 'px',
1310
+ 'authorFontSize' => 11,
1311
+ 'authorFontSizeTablet' => '',
1312
+ 'authorFontSizeMobile' => '',
1313
+ 'authorFontFamily' => '',
1314
+ 'authorFontWeight' => '',
1315
+ 'authorFontSubset' => '',
1316
+ 'authorLineHeightType' => 'em',
1317
+ 'authorLineHeight' => '',
1318
+ 'authorLineHeightTablet' => '',
1319
+ 'authorLineHeightMobile' => '',
1320
+ 'authorLoadGoogleFonts' => false,
1321
+ 'ctaBackground' => '#333',
1322
+ ),
1323
+ ),
1324
+ 'uagb/restaurant-menu' => array(
1325
+ 'slug' => '',
1326
+ 'title' => __( 'Price List', 'ultimate-addons-for-gutenberg' ),
1327
+ 'description' => __( 'This block allows you to add attractive Price List.', 'ultimate-addons-for-gutenberg' ),
1328
+ 'default' => true,
1329
+ 'attributes' => array(
1330
+ 'block_id' => '',
1331
+ 'headingAlign' => 'left',
1332
+ 'descColor' => '#333',
1333
+ 'priceColor' => '#888888',
1334
+ 'titleColor' => '#333',
1335
+ 'imagePosition' => 'top',
1336
+ 'imageAlignment' => 'top',
1337
+ 'titleFontSize' => '',
1338
+ 'titleFontSizeType' => 'px',
1339
+ 'titleFontSizeMobile' => '',
1340
+ 'titleFontSizeTablet' => '',
1341
+ 'titleFontFamily' => '',
1342
+ 'titleFontWeight' => '',
1343
+ 'titleFontSubset' => '',
1344
+ 'titleLineHeightType' => 'em',
1345
+ 'titleLineHeight' => '',
1346
+ 'titleLineHeightTablet' => '',
1347
+ 'titleLineHeightMobile' => '',
1348
+ 'titleLoadGoogleFonts' => false,
1349
+ 'priceFontSize' => '',
1350
+ 'priceFontSizeType' => 'px',
1351
+ 'priceFontSizeMobile' => '',
1352
+ 'priceFontSizeTablet' => '',
1353
+ 'priceFontFamily' => '',
1354
+ 'priceFontWeight' => '',
1355
+ 'priceFontSubset' => '',
1356
+ 'priceLineHeightType' => 'em',
1357
+ 'priceLineHeight' => '',
1358
+ 'priceLineHeightTablet' => '',
1359
+ 'priceLineHeightMobile' => '',
1360
+ 'priceLoadGoogleFonts' => false,
1361
+ 'descFontSize' => '',
1362
+ 'descFontSizeType' => 'px',
1363
+ 'descFontSizeMobile' => '',
1364
+ 'descFontSizeTablet' => '',
1365
+ 'descFontFamily' => '',
1366
+ 'descFontWeight' => '',
1367
+ 'descFontSubset' => '',
1368
+ 'descLineHeightType' => 'em',
1369
+ 'descLineHeight' => '',
1370
+ 'descLineHeightTablet' => '',
1371
+ 'descLineHeightMobile' => '',
1372
+ 'descLoadGoogleFonts' => false,
1373
+ 'priceSpace' => 5,
1374
+ 'descSpace' => 15,
1375
+ 'titleSpace' => 10,
1376
+ 'imgVrPadding' => 0,
1377
+ 'imgHrPadding' => 0,
1378
+ 'imgTopPadding' => 0,
1379
+ 'imgBottomPadding' => 0,
1380
+ 'iconImage' => '',
1381
+ 'imageSize' => 'medium',
1382
+ 'imageWidth' => '',
1383
+ 'columns' => 2,
1384
+ 'tcolumns' => 2,
1385
+ 'mcolumns' => 1,
1386
+ 'rowGap' => 10,
1387
+ 'columnGap' => 10,
1388
+ 'contentHrPadding' => 5,
1389
+ 'contentVrPadding' => 5,
1390
+ 'seperatorStyle' => 'dashed',
1391
+ 'seperatorWidth' => '100',
1392
+ 'seperatorThickness' => '1',
1393
+ 'seperatorColor' => '#b2b4b5',
1394
+ ),
1395
+ ),
1396
+ 'uagb/section' => array(
1397
+ 'slug' => '',
1398
+ 'title' => __( 'Section', 'ultimate-addons-for-gutenberg' ),
1399
+ 'description' => __( 'This block is an outer wrap section that allows you to add other blocks within it.', 'ultimate-addons-for-gutenberg' ),
1400
+ 'default' => true,
1401
+ 'attributes' => array(
1402
+ 'topPadding' => '20',
1403
+ 'bottomPadding' => '20',
1404
+ 'leftPadding' => '20',
1405
+ 'rightPadding' => '20',
1406
+ 'topMargin' => '0',
1407
+ 'bottomMargin' => '0',
1408
+ 'leftMargin' => '0',
1409
+ 'rightMargin' => '0',
1410
+ 'topPaddingTablet' => '',
1411
+ 'bottomPaddingTablet' => '',
1412
+ 'leftPaddingTablet' => '',
1413
+ 'rightPaddingTablet' => '',
1414
+ 'topPaddingMobile' => '',
1415
+ 'bottomPaddingMobile' => '',
1416
+ 'leftPaddingMobile' => '',
1417
+ 'rightPaddingMobile' => '',
1418
+ 'topMarginMobile' => '',
1419
+ 'bottomMarginMobile' => '',
1420
+ 'leftMarginMobile' => '',
1421
+ 'rightMarginMobile' => '',
1422
+ 'topMarginTablet' => '',
1423
+ 'bottomMarginTablet' => '',
1424
+ 'leftMarginTablet' => '',
1425
+ 'rightMarginTablet' => '',
1426
+ 'contentWidth' => 'boxed',
1427
+ 'width' => '900',
1428
+ 'innerWidth' => '1140',
1429
+ 'tag' => 'section',
1430
+ 'backgroundType' => 'none',
1431
+ 'gradientColor1' => '',
1432
+ 'gradientColor2' => '',
1433
+ 'backgroundVideoColor' => '',
1434
+ 'backgroundPosition' => 'center-center',
1435
+ 'backgroundSize' => 'cover',
1436
+ 'backgroundRepeat' => 'no-repeat',
1437
+ 'backgroundAttachment' => 'scroll',
1438
+ 'gradientType' => 'linear',
1439
+ 'gradientLocation1' => '0',
1440
+ 'gradientLocation2' => '100',
1441
+ 'gradientAngle' => '0',
1442
+ 'backgroundColor' => '',
1443
+ 'backgroundOpacity' => '',
1444
+ 'backgroundVideoOpacity' => '50',
1445
+ 'backgroundImageColor' => '',
1446
+ 'align' => 'center',
1447
+ 'borderStyle' => 'none',
1448
+ 'borderWidth' => '1',
1449
+ 'borderRadius' => '',
1450
+ 'borderColor' => '',
1451
+ 'themeWidth' => false,
1452
+ ),
1453
+ ),
1454
+ 'uagb/social-share' => array(
1455
+ 'slug' => '',
1456
+ 'title' => __( 'Social Share', 'ultimate-addons-for-gutenberg' ),
1457
+ 'description' => __( 'This block allows you to let users share your content across various social networking sites.', 'ultimate-addons-for-gutenberg' ),
1458
+ 'default' => true,
1459
+ 'attributes' => array(
1460
+ 'align' => 'center',
1461
+ 'social_count' => '1',
1462
+ 'socials' => array(
1463
+ array(
1464
+ 'type' => 'facebook',
1465
+ 'image_icon' => 'icon',
1466
+ 'icon' => 'fab fa-facebook',
1467
+ 'image' => '',
1468
+ 'icon_color' => '#3a3a3a',
1469
+ 'icon_hover_color' => '#3a3a3a',
1470
+ 'icon_bg_color' => '',
1471
+ 'icon_bg_hover_color' => '',
1472
+ ),
1473
+ ),
1474
+ 'gap' => '10',
1475
+ 'size' => '40',
1476
+ 'sizeType' => 'px',
1477
+ 'sizeMobile' => '',
1478
+ 'sizeTablet' => '',
1479
+ 'bgSize' => '0',
1480
+ 'bgSizeType' => 'px',
1481
+ 'bgSizeMobile' => '',
1482
+ 'bgSizeTablet' => '',
1483
+ 'borderRadius' => '0',
1484
+ 'social_layout' => 'horizontal',
1485
+ 'stack' => 'none',
1486
+ ),
1487
+ ),
1488
+ 'uagb/team' => array(
1489
+ 'slug' => '',
1490
+ 'title' => __( 'Team', 'ultimate-addons-for-gutenberg' ),
1491
+ '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' ),
1492
+ 'default' => true,
1493
+ 'attributes' => array(
1494
+ 'block_id' => '',
1495
+ 'align' => 'center',
1496
+ 'tag' => 'h3',
1497
+ 'titleColor' => '',
1498
+ 'prefixColor' => '#888888',
1499
+ 'descColor' => '',
1500
+ 'socialColor' => '#333',
1501
+ 'socialHoverColor' => '',
1502
+ 'titleFontFamily' => '',
1503
+ 'titleLoadGoogleFonts' => false,
1504
+ 'titleFontWeight' => '',
1505
+ 'titleFontSubset' => '',
1506
+ 'titleFontSize' => 15,
1507
+ 'titleFontSizeType' => 'px',
1508
+ 'titleFontSizeTablet' => '',
1509
+ 'titleFontSizeMobile' => '',
1510
+ 'titleLineHeight' => '',
1511
+ 'titleLineHeightType' => 'em',
1512
+ 'titleLineHeightTablet' => '',
1513
+ 'titleLineHeightMobile' => '',
1514
+ 'prefixFontFamily' => '',
1515
+ 'prefixLoadGoogleFonts' => false,
1516
+ 'prefixFontWeight' => '',
1517
+ 'prefixFontSubset' => '',
1518
+ 'prefixFontSize' => 15,
1519
+ 'prefixFontSizeType' => 'px',
1520
+ 'prefixFontSizeTablet' => '',
1521
+ 'prefixFontSizeMobile' => '',
1522
+ 'prefixLineHeight' => '',
1523
+ 'prefixLineHeightType' => 'em',
1524
+ 'prefixLineHeightTablet' => '',
1525
+ 'prefixLineHeightMobile' => '',
1526
+ 'descFontFamily' => '',
1527
+ 'descLoadGoogleFonts' => false,
1528
+ 'descFontWeight' => '',
1529
+ 'descFontSubset' => '',
1530
+ 'descFontSize' => 15,
1531
+ 'descFontSizeType' => 'px',
1532
+ 'descFontSizeTablet' => '',
1533
+ 'descFontSizeMobile' => '',
1534
+ 'descLineHeight' => '',
1535
+ 'descLineHeightType' => 'em',
1536
+ 'descLineHeightTablet' => '',
1537
+ 'descLineHeightMobile' => '',
1538
+ 'socialFontSize' => 20,
1539
+ 'socialFontSizeType' => 'px',
1540
+ 'socialFontSizeMobile' => '',
1541
+ 'socialFontSizeTablet' => '',
1542
+ 'image' => '',
1543
+ 'imgStyle' => 'normal',
1544
+ 'imgPosition' => 'above',
1545
+ 'imgAlign' => 'top',
1546
+ 'imgSiz' => 'thumbnail',
1547
+ 'imgWidth' => 120,
1548
+ 'titleSpace' => '',
1549
+ 'prefixSpace' => '',
1550
+ 'descSpace' => 10,
1551
+ 'imgLeftMargin' => 20,
1552
+ 'imgRightMargin' => 20,
1553
+ 'imgTopMargin' => 15,
1554
+ 'imgBottomMargin' => 15,
1555
+ 'socialSpace' => 20,
1556
+ 'headingTag' => 'h3',
1557
+ ),
1558
+ ),
1559
+ 'uagb/testimonial' => array(
1560
+ 'slug' => '',
1561
+ 'title' => __( 'Testimonial', 'ultimate-addons-for-gutenberg' ),
1562
+ 'description' => __( 'This block helps your display some amazing client feedback within your website.', 'ultimate-addons-for-gutenberg' ),
1563
+ 'default' => true,
1564
+ 'attributes' => array(
1565
+ 'headingAlign' => 'center',
1566
+ 'companyColor' => '#888888',
1567
+ 'descColor' => '#333',
1568
+ 'authorColor' => '#333',
1569
+ 'nameFontSizeType' => 'px',
1570
+ 'nameFontSize' => '',
1571
+ 'nameFontSizeTablet' => '',
1572
+ 'nameFontSizeMobile' => '',
1573
+ 'nameFontFamily' => '',
1574
+ 'nameFontWeight' => '',
1575
+ 'nameFontSubset' => '',
1576
+ 'nameLineHeightType' => 'em',
1577
+ 'nameLineHeight' => '',
1578
+ 'nameLineHeightTablet' => '',
1579
+ 'nameLineHeightMobile' => '',
1580
+ 'nameLoadGoogleFonts' => false,
1581
+ 'companyFontSizeType' => 'px',
1582
+ 'companyFontSize' => '',
1583
+ 'companyFontSizeTablet' => '',
1584
+ 'companyFontSizeMobile' => '',
1585
+ 'companyFontFamily' => '',
1586
+ 'companyFontWeight' => '',
1587
+ 'companyFontSubset' => '',
1588
+ 'companyLineHeightType' => 'em',
1589
+ 'companyLineHeight' => '',
1590
+ 'companyLineHeightTablet' => '',
1591
+ 'companyLineHeightMobile' => '',
1592
+ 'companyLoadGoogleFonts' => false,
1593
+ 'descFontSizeType' => 'px',
1594
+ 'descFontSize' => '',
1595
+ 'descFontSizeTablet' => '',
1596
+ 'descFontSizeMobile' => '',
1597
+ 'descFontFamily' => '',
1598
+ 'descFontWeight' => '',
1599
+ 'descFontSubset' => '',
1600
+ 'descLineHeightType' => 'em',
1601
+ 'descLineHeight' => '',
1602
+ 'descLineHeightTablet' => '',
1603
+ 'descLineHeightMobile' => '',
1604
+ 'descLoadGoogleFonts' => false,
1605
+ 'descSpace' => 15,
1606
+ 'block_id' => '',
1607
+ 'nameSpace' => 5,
1608
+ 'imgVrPadding' => 10,
1609
+ 'imgHrPadding' => 10,
1610
+ 'imageWidth' => 60,
1611
+ 'rowGap' => 10,
1612
+ 'columnGap' => 10,
1613
+ 'contentPadding' => 5,
1614
+ 'backgroundColor' => '',
1615
+ 'backgroundImage' => '',
1616
+ 'backgroundPosition' => 'center-center',
1617
+ 'backgroundSize' => 'cover',
1618
+ 'backgroundRepeat' => 'no-repeat',
1619
+ 'backgroundImageColor' => '',
1620
+ 'backgroundOpacity' => 0,
1621
+ 'borderStyle' => 'none',
1622
+ 'borderWidth' => 1,
1623
+ 'borderRadius' => 0,
1624
+ 'borderColor' => '#333',
1625
+ 'arrowColor' => '#333',
1626
+ 'arrowDots' => 'arrowDots',
1627
+ 'arrowBorderSize' => 1,
1628
+ 'arrowBorderRadius' => 0,
1629
+ 'columns' => 1,
1630
+ 'autoplaySpeed' => 2000,
1631
+ 'autoplay' => true,
1632
+ 'infiniteLoop' => true,
1633
+ 'pauseOnHover' => true,
1634
+ 'transitionSpeed' => 500,
1635
+ 'tcolumns' => 1,
1636
+ 'mcolumns' => 1,
1637
+ 'arrowSize' => 20,
1638
+ 'test_item_count' => 3,
1639
+ ),
1640
+ ),
1641
+ );
1642
+ }
1643
+ return self::$block_attributes;
1644
+ }
1645
+ }
1646
+ }
classes/class-uagb-helper.php CHANGED
@@ -460,17 +460,20 @@ if ( ! class_exists( 'UAGB_Helper' ) ) {
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
 
@@ -495,6 +498,7 @@ if ( ! class_exists( 'UAGB_Helper' ) ) {
495
  })(jQuery)
496
  </script>
497
  <?php
 
498
  }
499
 
500
  /**
460
  public function _generate_stylesheet( $this_post ) {
461
 
462
  if ( has_blocks( get_the_ID() ) ) {
463
+ if ( isset( $this_post->post_content ) ) {
464
+ $blocks = $this->parse( $this_post->post_content );
465
+ self::$page_blocks = $blocks;
466
 
467
+ if ( ! is_array( $blocks ) || empty( $blocks ) ) {
468
+ return;
469
+ }
470
 
471
+ ob_start();
472
+ ?>
473
+ <style type="text/css" media="all" id="uagb-style-frontend"><?php $this->get_stylesheet( $blocks ); ?></style>
474
+ <?php
475
+ ob_end_flush();
476
+ }
477
  }
478
  }
479
 
498
  })(jQuery)
499
  </script>
500
  <?php
501
+ ob_end_flush();
502
  }
503
 
504
  /**
classes/class-uagb-init-blocks.php CHANGED
@@ -79,6 +79,7 @@ class UAGB_Init_Blocks {
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
 
@@ -129,6 +130,7 @@ class UAGB_Init_Blocks {
129
  wp_enqueue_style(
130
  'uagb-fontawesome-css', // Handle.
131
  $font_awesome, // Block style CSS.
 
132
  UAGB_VER
133
  );
134
  }
@@ -148,6 +150,7 @@ class UAGB_Init_Blocks {
148
  wp_enqueue_style(
149
  'uagb-slick-css', // Handle.
150
  UAGB_URL . 'assets/css/slick.css', // Block style CSS.
 
151
  UAGB_VER
152
  );
153
  }
79
  wp_enqueue_style(
80
  'uagb-block-css', // Handle.
81
  UAGB_URL . 'dist/blocks.style.build.css', // Block style CSS.
82
+ array(),
83
  UAGB_VER
84
  );
85
 
130
  wp_enqueue_style(
131
  'uagb-fontawesome-css', // Handle.
132
  $font_awesome, // Block style CSS.
133
+ array(),
134
  UAGB_VER
135
  );
136
  }
150
  wp_enqueue_style(
151
  'uagb-slick-css', // Handle.
152
  UAGB_URL . 'assets/css/slick.css', // Block style CSS.
153
+ array(),
154
  UAGB_VER
155
  );
156
  }
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.12.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.12.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,5 +1,5 @@
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}.block-editor-page #wpwrap a.uagb-infbox__link-to-all{z-index:-1}
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}
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}.editor-block-list__layout .editor-block-list__block[data-align="full"][data-type="uagb/section"]{margin-left:0;margin-right:0}
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}.block-editor-page #wpwrap a.uagb-infbox__link-to-all{z-index:-1}
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}
dist/blocks.style.build.css CHANGED
@@ -1,19 +1,19 @@
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}.uagb-infobox__outer-wrap{position:relative}a.uagb-infbox__link-to-all{height:100%;width:100%;top:0;left:0;position:absolute;z-index:999;-webkit-box-shadow:none;box-shadow:none;text-decoration:none}@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;width:100%}.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;-ms-flex-preferred-size:100%;flex-basis:100%}.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}.wp-block-uagb-cf7-styler .wpcf7 .uagb-cf7_styler-col span.wpcf7-form-control-wrap{height:100%}.wp-block-uagb-cf7-styler .wpcf7 .uagb-cf7_styler-col select{height:100%}}
17
- .uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-multi .chosen-choices,.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0;height:auto;border:1px solid #AAA;border-radius:0;background:#FFF;-webkit-box-shadow:none;box-shadow:none;color:#444;text-decoration:none;white-space:nowrap}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single span{line-height:1}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-active.chosen-with-drop .chosen-single{background:#FFF}.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=submit]{display:inline-block}.uagb-gf-styler__check-style-enabled .gform_wrapper .gf_progressbar_wrapper h3.gf_progressbar_title,.uagb-gf-styler__check-style-enabled .gform_wrapper .gf_progressbar_wrapper .gf_progressbar_title{opacity:1}.uagb-gf-styler__check-style-enabled .uag-gf-select-custom{position:relative}.uagb-gf-styler__check-style-enabled .uag-gf-select-custom:after{content:"\f078";font-family:'FontAwesome' !important;font-size:0.7em;line-height:1;position:absolute;top:45%;-webkit-transform:translateY(-45%);-ms-transform:translateY(-45%);transform:translateY(-45%);right:0.5em;pointer-events:none;z-index:5}.uagb-gf-styler__check-style-enabled span.name_prefix_select .uag-gf-select-custom{display:inline;vertical-align:middle}.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]:checked+label:before{-webkit-box-shadow:inset 0px 0px 0px 4px #fafafa;box-shadow:inset 0px 0px 0px 4px #fafafa}.uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]:checked+label:before{font-weight:700}.uagb-gf-styler__check-style-enabled select,.uagb-gf-styler__check-style-enabled .chosen-single{-webkit-appearance:none;-moz-appearance:none;appearance:none}.uagb-gf-styler__check-style-enabled .gform_wrapper div.validation_error{border-top:none;border-bottom:none}.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield_radio li label{margin:0 0 0 0}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_body{width:100% !important}.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="checkbox"]:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="radio"]:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="checkbox"]+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="radio"]+label:before{-webkit-box-sizing:content-box !important;box-sizing:content-box !important}.uagb-gf-styler__check-style-enabled .gform_wrapper .gsection{margin-right:0}.uag-gf-btn-size-xs .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-xs .uagb-gf-styler__check-style-enabled input[type=button]{font-size:13px;padding:10px 20px;border-radius:2px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:13px;padding:8px 10px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:13px;padding:6px 10px}.ginput_container select{height:100%;line-height:inherit}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:13px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:10px;width:10px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 10px / 1.2)}.uag-gf-btn-size-sm .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-sm .uagb-gf-styler__check-style-enabled input[type=button]{font-size:15px;padding:12px 24px;border-radius:3px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:15px;padding:12px 10px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:15px;padding:10px 10px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:15px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:12px;width:12px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 12px / 1.2)}.uag-gf-btn-size-md .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-md .uagb-gf-styler__check-style-enabled input[type=button]{font-size:16px;padding:15px 30px;border-radius:4px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:16px;padding:15px 10px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:16px;padding:13px 10px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:16px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:15px;width:15px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 15px / 1.2)}.uag-gf-btn-size-lg .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-lg .uagb-gf-styler__check-style-enabled input[type=button]{font-size:18px;padding:20px 40px;border-radius:5px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:18px;padding:20px 10px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:18px;padding:18px 10px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:18px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:20px;width:20px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 20px / 1.2)}.uag-gf-btn-size-xl .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-xl .uagb-gf-styler__check-style-enabled input[type=button]{font-size:20px;padding:25px 50px;border-radius:6px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:20px;padding:25px 10px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:20px;padding:23px 10px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:20px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:25px;width:25px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]:checked+label:before{font-size:calc( 25px / 1.2)}.uagb-gf-styler__btn-align-right .gform_next_button,.uagb-gf-styler__btn-align-right .gform_previous_button{margin-right:5px !important}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_footer:not(.top_label){padding:0 0 0 0;margin-right:0;margin-left:0;width:100%}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_page_footer.left_label,.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_page_footer.right_label{padding:0 0 0 0}.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before{border-radius:100%}.uagb-gf-styler__check-style-enabled .gform_wrapper .top_label .gfield_error{width:100% !important}.uagb-gf-styler__check-style-enabled .gform_wrapper.gform_validation_error .gform_body ul li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half){max-width:100% !important}.uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=submit]{display:-ms-flexbox;-js-display:flex;display:flex;width:auto}.uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto}.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto}.uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0}.uagb-gf-styler__btn-align-justify .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox'],.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_radio .gfield_radio input[type='radio'],.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']{display:none}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox']+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_radio .gfield_radio input[type='radio']+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']+label:before{content:'';display:inline-block;vertical-align:middle;margin-right:10px;text-align:center}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox']:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']:checked+label:before{content:"\2714";line-height:1.2}.uagb-gf-styler__check-style-enabled .gform_wrapper ul.gform_fields li.gfield:not(.gf_left_half):not(.gf_left_third):not(.gf_middle_third){padding-right:0}.uagb-gf-styler__btn-align-width-full_width .gform_footer input[type=submit]{display:block;text-align:center;width:100%}.uagb-gf-styler__check-style-enabled .gform_body ul{margin-left:0;list-style:none}.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container select,.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container .chosen-single,.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container .chosen-choices,.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input[type="text"],.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input.default{height:auto}.elementor-widget-uag-gf-styler .uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input[type="text"]{padding:0px 0px 0px 0px}.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=button]{margin-bottom:20px}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single div{display:none}.uagb-gf-styler__hide-label .gform_wrapper .gform_fields .gfield_label,.uagb-gf-styler__hide-label .gform_wrapper .gform_fields .gfield_required{display:none}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single .chosen-single span{margin-bottom:0;width:100%}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single .chosen-single{border:none}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single.chosen-container-active .chosen-single{border:none}@media only screen and (max-width: 976px){.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uag-tablet-gf-button-center .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-center .gform_page .gform_page_footer input[type="button"],.uag-tablet-gf-button-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto;width:auto}.uag-tablet-gf-button-left .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-left .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-left .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto;width:auto}.uag-tablet-gf-button-right .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-right .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-right .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0;width:auto}.uag-tablet-gf-button-justify .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-justify .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}}@media only screen and (max-width: 767px){.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uag-mobile-gf-button-center .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-center .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto;width:auto}.uag-mobile-gf-button-left .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-left .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-left .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto;width:auto}.uag-mobile-gf-button-right .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-right .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-right .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0;width:auto}.uag-mobile-gf-button-justify .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-justify .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}}
18
- .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)}}
19
- .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}.uagb-infobox__outer-wrap{position:relative}a.uagb-infbox__link-to-all{height:100%;width:100%;top:0;left:0;position:absolute;z-index:999;-webkit-box-shadow:none;box-shadow:none;text-decoration:none}@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;width:100%}.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;-ms-flex-preferred-size:100%;flex-basis:100%}.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}.wp-block-uagb-cf7-styler .wpcf7 .uagb-cf7_styler-col span.wpcf7-form-control-wrap{height:100%}.wp-block-uagb-cf7-styler .wpcf7 .uagb-cf7_styler-col select{height:100%}}
17
+ .uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-multi .chosen-choices,.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0;height:auto;border:1px solid #AAA;border-radius:0;background:#FFF;-webkit-box-shadow:none;box-shadow:none;color:#444;text-decoration:none;white-space:nowrap}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single span{line-height:1}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-active.chosen-with-drop .chosen-single{background:#FFF}.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=submit]{display:inline-block}.uagb-gf-styler__check-style-enabled .gform_wrapper .gf_progressbar_wrapper h3.gf_progressbar_title,.uagb-gf-styler__check-style-enabled .gform_wrapper .gf_progressbar_wrapper .gf_progressbar_title{opacity:1}.uagb-gf-styler__check-style-enabled .uag-gf-select-custom{position:relative}.uagb-gf-styler__check-style-enabled .uag-gf-select-custom:after{content:"\f078";font-family:'FontAwesome' !important;font-size:0.7em;line-height:1;position:absolute;top:45%;-webkit-transform:translateY(-45%);-ms-transform:translateY(-45%);transform:translateY(-45%);right:0.5em;pointer-events:none;z-index:5}.uagb-gf-styler__check-style-enabled span.name_prefix_select .uag-gf-select-custom{display:inline;vertical-align:middle}.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]:checked+label:before{-webkit-box-shadow:inset 0px 0px 0px 4px #fafafa;box-shadow:inset 0px 0px 0px 4px #fafafa}.uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]:checked+label:before{font-weight:700}.uagb-gf-styler__check-style-enabled select,.uagb-gf-styler__check-style-enabled .chosen-single{-webkit-appearance:none;-moz-appearance:none;appearance:none}.uagb-gf-styler__check-style-enabled .gform_wrapper div.validation_error{border-top:none;border-bottom:none}.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield_radio li label{margin:0 0 0 0}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_body{width:100% !important}.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="checkbox"]:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="radio"]:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="checkbox"]+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="radio"]+label:before{-webkit-box-sizing:content-box !important;box-sizing:content-box !important}.uagb-gf-styler__check-style-enabled .gform_wrapper .gsection{margin-right:0}.uag-gf-btn-size-xs .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-xs .uagb-gf-styler__check-style-enabled input[type=button]{font-size:13px;padding:10px 20px;border-radius:2px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:13px;padding:8px 10px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:13px;padding:6px 10px}.ginput_container select{height:100%;line-height:inherit}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:13px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:10px;width:10px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 10px / 1.2)}.uag-gf-btn-size-sm .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-sm .uagb-gf-styler__check-style-enabled input[type=button]{font-size:15px;padding:12px 24px;border-radius:3px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:15px;padding:12px 10px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:15px;padding:10px 10px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:15px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:12px;width:12px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 12px / 1.2)}.uag-gf-btn-size-md .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-md .uagb-gf-styler__check-style-enabled input[type=button]{font-size:16px;padding:15px 30px;border-radius:4px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:16px;padding:15px 10px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:16px;padding:13px 10px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:16px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:15px;width:15px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 15px / 1.2)}.uag-gf-btn-size-lg .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-lg .uagb-gf-styler__check-style-enabled input[type=button]{font-size:18px;padding:20px 40px;border-radius:5px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:18px;padding:20px 10px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:18px;padding:18px 10px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:18px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:20px;width:20px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 20px / 1.2)}.uag-gf-btn-size-xl .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-xl .uagb-gf-styler__check-style-enabled input[type=button]{font-size:20px;padding:25px 50px;border-radius:6px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:20px;padding:25px 10px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:20px;padding:23px 10px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:20px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:25px;width:25px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]:checked+label:before{font-size:calc( 25px / 1.2)}.uagb-gf-styler__btn-align-right .gform_next_button,.uagb-gf-styler__btn-align-right .gform_previous_button{margin-right:5px !important}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_footer:not(.top_label){padding:0 0 0 0;margin-right:0;margin-left:0;width:100%}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_page_footer.left_label,.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_page_footer.right_label{padding:0 0 0 0}.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before{border-radius:100%}.uagb-gf-styler__check-style-enabled .gform_wrapper .top_label .gfield_error{width:100% !important}.uagb-gf-styler__check-style-enabled .gform_wrapper.gform_validation_error .gform_body ul li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half){max-width:100% !important}.uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=submit]{display:-ms-flexbox;-js-display:flex;display:flex;width:auto}.uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto}.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto}.uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0}.uagb-gf-styler__btn-align-justify .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox'],.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_radio .gfield_radio input[type='radio'],.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']{display:none}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox']+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_radio .gfield_radio input[type='radio']+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']+label:before{content:'';display:inline-block;vertical-align:middle;margin-right:10px;text-align:center}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox']:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']:checked+label:before{content:"\2714";line-height:1.2}.uagb-gf-styler__check-style-enabled .gform_wrapper ul.gform_fields li.gfield:not(.gf_left_half):not(.gf_left_third):not(.gf_middle_third){padding-right:0}.uagb-gf-styler__btn-align-width-full_width .gform_footer input[type=submit]{display:block;text-align:center;width:100%}.uagb-gf-styler__check-style-enabled .gform_body ul{margin-left:0;list-style:none}.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container select,.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container .chosen-single,.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container .chosen-choices,.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input[type="text"],.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input.default{height:auto}.elementor-widget-uag-gf-styler .uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input[type="text"]{padding:0px 0px 0px 0px}.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=button]{margin-bottom:20px}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single div{display:none}.uagb-gf-styler__hide-label .gform_wrapper .gform_fields .gfield_label,.uagb-gf-styler__hide-label .gform_wrapper .gform_fields .gfield_required{display:none}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single .chosen-single span{margin-bottom:0;width:100%}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single .chosen-single{border:none}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single.chosen-container-active .chosen-single{border:none}@media only screen and (max-width: 976px){.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uag-tablet-gf-button-center .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-center .gform_page .gform_page_footer input[type="button"],.uag-tablet-gf-button-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto;width:auto}.uag-tablet-gf-button-left .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-left .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-left .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto;width:auto}.uag-tablet-gf-button-right .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-right .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-right .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0;width:auto}.uag-tablet-gf-button-justify .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-justify .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}}@media only screen and (max-width: 767px){.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uag-mobile-gf-button-center .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-center .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto;width:auto}.uag-mobile-gf-button-left .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-left .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-left .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto;width:auto}.uag-mobile-gf-button-right .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-right .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-right .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0;width:auto}.uag-mobile-gf-button-justify .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-justify .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}}
18
+ .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)}}
19
+ .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/gf-styler/index.php CHANGED
@@ -1,631 +1,631 @@
1
- <?php
2
- /**
3
- * Server-side rendering for the Gravity Form Styler.
4
- *
5
- * @since 1.12.0
6
- * @package UAGB
7
- */
8
-
9
- /**
10
- * Renders the Gravity Form shortcode.
11
- *
12
- * @since 1.12.0
13
- */
14
- function uagb_gf_shortcode() { // @codingStandardsIgnoreStart
15
- $id = intval($_POST['formId']);
16
-
17
- // @codingStandardsIgnoreEnd
18
- if ( $id && 0 != $id && -1 != $id ) {
19
- $data['html'] = do_shortcode( '[gravityforms id="' . $id . '" ajax="true"]' );
20
- } else {
21
- $data['html'] = '<p>' . __( 'Please select a valid Gravity Form.', 'ultimate-addons-for-gutenberg' ) . '</p>';
22
- }
23
- wp_send_json_success( $data );
24
- }
25
-
26
- add_action( 'wp_ajax_uagb_gf_shortcode', 'uagb_gf_shortcode' );
27
- add_action( 'wp_ajax_nopriv_uagb_gf_shortcode', 'uagb_gf_shortcode' );
28
-
29
- /**
30
- * Registers Gravity Form.
31
- *
32
- * @since 1.12.0
33
- */
34
- function uagb_blocks_register_gf_styler() {
35
- // Check if the register function exists.
36
- if ( ! function_exists( 'register_block_type' ) ) {
37
- return;
38
- }
39
-
40
- register_block_type(
41
- 'uagb/gf-styler',
42
- array(
43
- 'attributes' => array(
44
- 'block_id' => array(
45
- 'type' => 'string',
46
- ),
47
- 'align' => array(
48
- 'type' => 'string',
49
- 'default' => 'left',
50
- ),
51
- 'className' => array(
52
- 'type' => 'string',
53
- ),
54
- 'formId' => array(
55
- 'type' => 'string',
56
- 'default' => '0',
57
- ),
58
- 'isHtml' => array(
59
- 'type' => 'boolean',
60
- ),
61
- 'formJson' => array(
62
- 'type' => 'object',
63
- 'default' => null,
64
- ),
65
- 'enableAjax' => array(
66
- 'type' => 'boolean',
67
- 'default' => false,
68
- ),
69
- 'enableTabSupport' => array(
70
- 'type' => 'boolean',
71
- 'default' => false,
72
- ),
73
- 'formTabIndex' => array(
74
- 'type' => 'number',
75
- 'default' => 0,
76
- ),
77
- 'titleDescStyle' => array(
78
- 'type' => 'string',
79
- 'default' => 'yes',
80
- ),
81
- 'titleDescAlignment' => array(
82
- 'type' => 'string',
83
- 'default' => 'left',
84
- ),
85
- 'fieldStyle' => array(
86
- 'type' => 'string',
87
- 'default' => 'box',
88
- ),
89
- 'fieldVrPadding' => array(
90
- 'type' => 'number',
91
- 'default' => 10,
92
- ),
93
- 'fieldHrPadding' => array(
94
- 'type' => 'number',
95
- 'default' => 10,
96
- ),
97
- 'fieldBgColor' => array(
98
- 'type' => 'string',
99
- 'default' => '#fafafa',
100
- ),
101
- 'fieldLabelColor' => array(
102
- 'type' => 'string',
103
- 'default' => '#333',
104
- ),
105
- 'fieldInputColor' => array(
106
- 'type' => 'string',
107
- 'default' => '#333',
108
- ),
109
- 'fieldBorderStyle' => array(
110
- 'type' => 'string',
111
- 'default' => 'solid',
112
- ),
113
- 'fieldBorderWidth' => array(
114
- 'type' => 'number',
115
- 'default' => 1,
116
- ),
117
- 'fieldBorderRadius' => array(
118
- 'type' => 'number',
119
- 'default' => 0,
120
- ),
121
- 'fieldBorderColor' => array(
122
- 'type' => 'string',
123
- 'default' => '#eeeeee',
124
- ),
125
- 'fieldBorderFocusColor' => array(
126
- 'type' => 'string',
127
- 'default' => '',
128
- ),
129
- 'buttonAlignment' => array(
130
- 'type' => 'string',
131
- 'default' => 'left',
132
- ),
133
- 'buttonVrPadding' => array(
134
- 'type' => 'number',
135
- 'default' => 10,
136
- ),
137
- 'buttonHrPadding' => array(
138
- 'type' => 'number',
139
- 'default' => 25,
140
- ),
141
- 'buttonBorderStyle' => array(
142
- 'type' => 'string',
143
- 'default' => 'solid',
144
- ),
145
- 'buttonBorderWidth' => array(
146
- 'type' => 'number',
147
- 'default' => 1,
148
- ),
149
- 'buttonBorderRadius' => array(
150
- 'type' => 'number',
151
- 'default' => 0,
152
- ),
153
- 'buttonBorderColor' => array(
154
- 'type' => 'string',
155
- 'default' => '#333',
156
- ),
157
- 'buttonTextColor' => array(
158
- 'type' => 'string',
159
- 'default' => '#333',
160
- ),
161
- 'buttonBgColor' => array(
162
- 'type' => 'string',
163
- 'default' => 'transparent',
164
- ),
165
- 'buttonBorderHoverColor' => array(
166
- 'type' => 'string',
167
- 'default' => '#333',
168
- ),
169
- 'buttonTextHoverColor' => array(
170
- 'type' => 'string',
171
- 'default' => '#333',
172
- ),
173
- 'buttonBgHoverColor' => array(
174
- 'type' => 'string',
175
- 'default' => 'transparent',
176
- ),
177
- 'fieldSpacing' => array(
178
- 'type' => 'number',
179
- 'default' => '',
180
- ),
181
- 'fieldLabelSpacing' => array(
182
- 'type' => 'number',
183
- 'default' => '',
184
- ),
185
- 'enableLabel' => array(
186
- 'type' => 'boolean',
187
- 'default' => false,
188
- ),
189
- 'labelFontSize' => array(
190
- 'type' => 'number',
191
- 'default' => '',
192
- ),
193
- 'labelFontSizeType' => array(
194
- 'type' => 'string',
195
- 'default' => 'px',
196
- ),
197
- 'labelFontSizeTablet' => array(
198
- 'type' => 'number',
199
- ),
200
- 'labelFontSizeMobile' => array(
201
- 'type' => 'number',
202
- ),
203
- 'labelFontFamily' => array(
204
- 'type' => 'string',
205
- 'default' => 'Default',
206
- ),
207
- 'labelFontWeight' => array(
208
- 'type' => 'string',
209
- ),
210
- 'labelFontSubset' => array(
211
- 'type' => 'string',
212
- ),
213
- 'labelLineHeightType' => array(
214
- 'type' => 'string',
215
- 'default' => 'em',
216
- ),
217
- 'labelLineHeight' => array(
218
- 'type' => 'number',
219
- ),
220
- 'labelLineHeightTablet' => array(
221
- 'type' => 'number',
222
- ),
223
- 'labelLineHeightMobile' => array(
224
- 'type' => 'number',
225
- ),
226
- 'labelLoadGoogleFonts' => array(
227
- 'type' => 'boolean',
228
- 'default' => false,
229
- ),
230
- 'inputFontSize' => array(
231
- 'type' => 'number',
232
- 'default' => '',
233
- ),
234
- 'inputFontSizeType' => array(
235
- 'type' => 'string',
236
- 'default' => 'px',
237
- ),
238
- 'inputFontSizeTablet' => array(
239
- 'type' => 'number',
240
- ),
241
- 'inputFontSizeMobile' => array(
242
- 'type' => 'number',
243
- ),
244
- 'inputFontFamily' => array(
245
- 'type' => 'string',
246
- 'default' => 'Default',
247
- ),
248
- 'inputFontWeight' => array(
249
- 'type' => 'string',
250
- ),
251
- 'inputFontSubset' => array(
252
- 'type' => 'string',
253
- ),
254
- 'inputLineHeightType' => array(
255
- 'type' => 'string',
256
- 'default' => 'em',
257
- ),
258
- 'inputLineHeight' => array(
259
- 'type' => 'number',
260
- ),
261
- 'inputLineHeightTablet' => array(
262
- 'type' => 'number',
263
- ),
264
- 'inputLineHeightMobile' => array(
265
- 'type' => 'number',
266
- ),
267
- 'inputLoadGoogleFonts' => array(
268
- 'type' => 'boolean',
269
- 'default' => false,
270
- ),
271
- 'textAreaHeight' => array(
272
- 'type' => 'number',
273
- ),
274
- 'buttonFontSize' => array(
275
- 'type' => 'number',
276
- 'default' => '',
277
- ),
278
- 'buttonFontSizeType' => array(
279
- 'type' => 'string',
280
- 'default' => 'px',
281
- ),
282
- 'buttonFontSizeTablet' => array(
283
- 'type' => 'number',
284
- ),
285
- 'buttonFontSizeMobile' => array(
286
- 'type' => 'number',
287
- ),
288
- 'buttonFontFamily' => array(
289
- 'type' => 'string',
290
- 'default' => 'Default',
291
- ),
292
- 'buttonFontWeight' => array(
293
- 'type' => 'string',
294
- ),
295
- 'buttonFontSubset' => array(
296
- 'type' => 'string',
297
- ),
298
- 'buttonLineHeightType' => array(
299
- 'type' => 'string',
300
- 'default' => 'em',
301
- ),
302
- 'buttonLineHeight' => array(
303
- 'type' => 'number',
304
- ),
305
- 'buttonLineHeightTablet' => array(
306
- 'type' => 'number',
307
- ),
308
- 'buttonLineHeightMobile' => array(
309
- 'type' => 'number',
310
- ),
311
- 'buttonLoadGoogleFonts' => array(
312
- 'type' => 'boolean',
313
- 'default' => false,
314
- ),
315
- 'enableOveride' => array(
316
- 'type' => 'boolean',
317
- 'default' => true,
318
- ),
319
- 'radioCheckSize' => array(
320
- 'type' => 'number',
321
- 'default' => '20',
322
- ),
323
- 'radioCheckBgColor' => array(
324
- 'type' => 'string',
325
- 'default' => '#fafafa',
326
- ),
327
- 'radioCheckSelectColor' => array(
328
- 'type' => 'string',
329
- 'default' => '',
330
- ),
331
- 'radioCheckLableColor' => array(
332
- 'type' => 'string',
333
- 'default' => '',
334
- ),
335
- 'radioCheckBorderColor' => array(
336
- 'type' => 'string',
337
- 'default' => '#cbcbcb',
338
- ),
339
- 'radioCheckBorderWidth' => array(
340
- 'type' => 'number',
341
- 'default' => '1',
342
- ),
343
- 'radioCheckBorderRadius' => array(
344
- 'type' => 'number',
345
- 'default' => '',
346
- ),
347
- 'radioCheckFontSize' => array(
348
- 'type' => 'number',
349
- 'default' => '',
350
- ),
351
- 'radioCheckFontSizeType' => array(
352
- 'type' => 'string',
353
- 'default' => 'px',
354
- ),
355
- 'radioCheckFontSizeTablet' => array(
356
- 'type' => 'number',
357
- ),
358
- 'radioCheckFontSizeMobile' => array(
359
- 'type' => 'number',
360
- ),
361
- 'radioCheckFontFamily' => array(
362
- 'type' => 'string',
363
- 'default' => 'Default',
364
- ),
365
- 'radioCheckFontWeight' => array(
366
- 'type' => 'string',
367
- ),
368
- 'radioCheckFontSubset' => array(
369
- 'type' => 'string',
370
- ),
371
- 'radioCheckLineHeightType' => array(
372
- 'type' => 'string',
373
- 'default' => 'em',
374
- ),
375
- 'radioCheckLineHeight' => array(
376
- 'type' => 'number',
377
- ),
378
- 'radioCheckLineHeightTablet' => array(
379
- 'type' => 'number',
380
- ),
381
- 'radioCheckLineHeightMobile' => array(
382
- 'type' => 'number',
383
- ),
384
- 'radioCheckLoadGoogleFonts' => array(
385
- 'type' => 'boolean',
386
- 'default' => false,
387
- ),
388
- 'validationMsgColor' => array(
389
- 'type' => 'string',
390
- 'default' => '#ff0000',
391
- ),
392
- 'validationMsgBgColor' => array(
393
- 'type' => 'string',
394
- 'default' => '',
395
- ),
396
- 'advancedValidationSettings' => array(
397
- 'type' => 'boolean',
398
- 'default' => false,
399
- ),
400
- 'highlightBorderColor' => array(
401
- 'type' => 'string',
402
- 'default' => '#ff0000',
403
- ),
404
- 'validationMsgFontSize' => array(
405
- 'type' => 'number',
406
- 'default' => '',
407
- ),
408
- 'validationMsgFontSizeType' => array(
409
- 'type' => 'string',
410
- 'default' => 'px',
411
- ),
412
- 'validationMsgFontSizeTablet' => array(
413
- 'type' => 'number',
414
- ),
415
- 'validationMsgFontSizeMobile' => array(
416
- 'type' => 'number',
417
- ),
418
- 'validationMsgFontFamily' => array(
419
- 'type' => 'string',
420
- 'default' => 'Default',
421
- ),
422
- 'validationMsgFontWeight' => array(
423
- 'type' => 'string',
424
- ),
425
- 'validationMsgFontSubset' => array(
426
- 'type' => 'string',
427
- ),
428
- 'validationMsgLineHeightType' => array(
429
- 'type' => 'string',
430
- 'default' => 'em',
431
- ),
432
- 'validationMsgLineHeight' => array(
433
- 'type' => 'number',
434
- ),
435
- 'validationMsgLineHeightTablet' => array(
436
- 'type' => 'number',
437
- ),
438
- 'validationMsgLineHeightMobile' => array(
439
- 'type' => 'number',
440
- ),
441
- 'validationMsgLoadGoogleFonts' => array(
442
- 'type' => 'boolean',
443
- 'default' => false,
444
- ),
445
- 'successMsgColor' => array(
446
- 'type' => 'string',
447
- 'default' => '',
448
- ),
449
- 'errorMsgColor' => array(
450
- 'type' => 'string',
451
- 'default' => '',
452
- ),
453
- 'errorMsgBgColor' => array(
454
- 'type' => 'string',
455
- 'default' => '',
456
- ),
457
- 'errorMsgBorderColor' => array(
458
- 'type' => 'string',
459
- 'default' => '',
460
- ),
461
- 'msgBorderSize' => array(
462
- 'type' => 'number',
463
- 'default' => '',
464
- ),
465
- 'msgBorderRadius' => array(
466
- 'type' => 'number',
467
- 'default' => '',
468
- ),
469
- 'msgVrPadding' => array(
470
- 'type' => 'number',
471
- 'default' => '',
472
- ),
473
- 'msgHrPadding' => array(
474
- 'type' => 'number',
475
- 'default' => '',
476
- ),
477
- 'msgFontSize' => array(
478
- 'type' => 'number',
479
- 'default' => '',
480
- ),
481
- 'msgFontSizeType' => array(
482
- 'type' => 'string',
483
- 'default' => 'px',
484
- ),
485
- 'msgFontSizeTablet' => array(
486
- 'type' => 'number',
487
- ),
488
- 'msgFontSizeMobile' => array(
489
- 'type' => 'number',
490
- ),
491
- 'msgFontFamily' => array(
492
- 'type' => 'string',
493
- 'default' => 'Default',
494
- ),
495
- 'msgFontWeight' => array(
496
- 'type' => 'string',
497
- ),
498
- 'msgFontSubset' => array(
499
- 'type' => 'string',
500
- ),
501
- 'msgLineHeightType' => array(
502
- 'type' => 'string',
503
- 'default' => 'em',
504
- ),
505
- 'msgLineHeight' => array(
506
- 'type' => 'number',
507
- ),
508
- 'msgLineHeightTablet' => array(
509
- 'type' => 'number',
510
- ),
511
- 'msgLineHeightMobile' => array(
512
- 'type' => 'number',
513
- ),
514
- 'msgLoadGoogleFonts' => array(
515
- 'type' => 'boolean',
516
- 'default' => false,
517
- ),
518
- 'radioCheckBorderRadiusType' => array(
519
- 'type' => 'string',
520
- 'default' => 'px',
521
- ),
522
- 'msgBorderRadiusType' => array(
523
- 'type' => 'string',
524
- 'default' => 'px',
525
- ),
526
- 'fieldBorderRadiusType' => array(
527
- 'type' => 'string',
528
- 'default' => 'px',
529
- ),
530
- 'buttonBorderRadiusType' => array(
531
- 'type' => 'string',
532
- 'default' => 'px',
533
- ),
534
- 'successMsgFontSize' => array(
535
- 'type' => 'number',
536
- 'default' => '',
537
- ),
538
- 'successMsgFontSizeType' => array(
539
- 'type' => 'string',
540
- 'default' => 'px',
541
- ),
542
- 'successMsgFontSizeTablet' => array(
543
- 'type' => 'number',
544
- ),
545
- 'successMsgFontSizeMobile' => array(
546
- 'type' => 'number',
547
- ),
548
- 'successMsgFontFamily' => array(
549
- 'type' => 'string',
550
- 'default' => 'Default',
551
- ),
552
- 'successMsgFontWeight' => array(
553
- 'type' => 'string',
554
- ),
555
- 'successMsgFontSubset' => array(
556
- 'type' => 'string',
557
- ),
558
- 'successMsgLineHeightType' => array(
559
- 'type' => 'string',
560
- 'default' => 'em',
561
- ),
562
- 'successMsgLineHeight' => array(
563
- 'type' => 'number',
564
- ),
565
- 'successMsgLineHeightTablet' => array(
566
- 'type' => 'number',
567
- ),
568
- 'successMsgLineHeightMobile' => array(
569
- 'type' => 'number',
570
- ),
571
- 'successMsgLoadGoogleFonts' => array(
572
- 'type' => 'boolean',
573
- 'default' => false,
574
- ),
575
- ),
576
- 'render_callback' => 'uagb_render_gf',
577
- )
578
- );
579
- }
580
- add_action( 'init', 'uagb_blocks_register_gf_styler' );
581
-
582
- /**
583
- * Render gf HTML.
584
- *
585
- * @param array $attributes Array of block attributes.
586
- *
587
- * @since 1.12.0
588
- */
589
- function uagb_render_gf( $attributes ) {
590
- $block_id = 'uagb-gf-styler-' . $attributes['block_id'];
591
- // @codingStandardsIgnoreStart
592
- $formId = $attributes['formId'];
593
- $align = isset( $attributes['align'] ) ? $attributes['align'] : '';
594
- $fieldStyle = isset( $attributes['fieldStyle'] ) ? $attributes['fieldStyle'] : '';
595
- $buttonAlignment = isset( $attributes['buttonAlignment'] ) ? $attributes['buttonAlignment'] : '';
596
- $enableOveride = isset( $attributes['enableOveride'] ) ? $attributes['enableOveride'] : '';
597
- $enableLabel = isset( $attributes['enableLabel'] ) ? $attributes['enableLabel'] : '';
598
- $advancedValidationSettings = isset( $attributes['advancedValidationSettings'] ) ? $attributes['advancedValidationSettings'] : '';
599
- $enableAjax = ( $attributes['enableAjax'] ) ? 'true' : 'false';
600
- $formTabIndex = ( $attributes['enableTabSupport'] ) ? $attributes['formTabIndex'] : '';
601
- $titleDescStyle = ( isset( $attributes['titleDescStyle'] ) ) ? $attributes['titleDescStyle'] : '';
602
-
603
- $classname = 'uagb-gf-styler__align-' . $align . ' ';
604
- $classname .= 'uagb-gf-styler__field-style-' . $fieldStyle . ' ';
605
- $classname .= 'uagb-gf-styler__btn-align-' . $buttonAlignment . ' ';
606
- $classname .= $enableOveride ? ' uagb-gf-styler__check-style-enabled' : ' ';
607
-
608
- $classname .= $enableLabel ? ' uagb-gf-styler__hide-label' : ' ';
609
- $classname .= $advancedValidationSettings ? ' uagb-gf-styler__error-yes' : '';
610
- $class = isset( $attributes['className']) ? $attributes['className'] : '';
611
-
612
- // @codingStandardsIgnoreend
613
- ob_start();
614
-
615
- $disableTitleDesc = '';
616
-
617
- if( $titleDescStyle === 'none' ) {
618
- $disableTitleDesc = ' title="false" description="false" ';
619
- }
620
-
621
- if ($formId && 0 != $formId && -1 != $formId) {
622
- ?>
623
- <div class = "<?php echo $class ?> wp-block-uagb-gf-styler uagb-gf-styler__outer-wrap" id = "<?php echo $block_id; ?>" >
624
- <div class = "<?php echo $classname; ?>">
625
- <?php echo do_shortcode( '[gravityforms id="' . $formId . '" ' . $disableTitleDesc . ' ajax="' . $enableAjax . '" tabindex="' . $formTabIndex . '"]' ); ?>
626
- </div>
627
- </div>
628
- <?php
629
- }
630
- return ob_get_clean();
631
- }
1
+ <?php
2
+ /**
3
+ * Server-side rendering for the Gravity Form Styler.
4
+ *
5
+ * @since 1.12.0
6
+ * @package UAGB
7
+ */
8
+
9
+ /**
10
+ * Renders the Gravity Form shortcode.
11
+ *
12
+ * @since 1.12.0
13
+ */
14
+ function uagb_gf_shortcode() { // @codingStandardsIgnoreStart
15
+ $id = intval($_POST['formId']);
16
+
17
+ // @codingStandardsIgnoreEnd
18
+ if ( $id && 0 != $id && -1 != $id ) {
19
+ $data['html'] = do_shortcode( '[gravityforms id="' . $id . '" ajax="true"]' );
20
+ } else {
21
+ $data['html'] = '<p>' . __( 'Please select a valid Gravity Form.', 'ultimate-addons-for-gutenberg' ) . '</p>';
22
+ }
23
+ wp_send_json_success( $data );
24
+ }
25
+
26
+ add_action( 'wp_ajax_uagb_gf_shortcode', 'uagb_gf_shortcode' );
27
+ add_action( 'wp_ajax_nopriv_uagb_gf_shortcode', 'uagb_gf_shortcode' );
28
+
29
+ /**
30
+ * Registers Gravity Form.
31
+ *
32
+ * @since 1.12.0
33
+ */
34
+ function uagb_blocks_register_gf_styler() {
35
+ // Check if the register function exists.
36
+ if ( ! function_exists( 'register_block_type' ) ) {
37
+ return;
38
+ }
39
+
40
+ register_block_type(
41
+ 'uagb/gf-styler',
42
+ array(
43
+ 'attributes' => array(
44
+ 'block_id' => array(
45
+ 'type' => 'string',
46
+ ),
47
+ 'align' => array(
48
+ 'type' => 'string',
49
+ 'default' => 'left',
50
+ ),
51
+ 'className' => array(
52
+ 'type' => 'string',
53
+ ),
54
+ 'formId' => array(
55
+ 'type' => 'string',
56
+ 'default' => '0',
57
+ ),
58
+ 'isHtml' => array(
59
+ 'type' => 'boolean',
60
+ ),
61
+ 'formJson' => array(
62
+ 'type' => 'object',
63
+ 'default' => null,
64
+ ),
65
+ 'enableAjax' => array(
66
+ 'type' => 'boolean',
67
+ 'default' => false,
68
+ ),
69
+ 'enableTabSupport' => array(
70
+ 'type' => 'boolean',
71
+ 'default' => false,
72
+ ),
73
+ 'formTabIndex' => array(
74
+ 'type' => 'number',
75
+ 'default' => 0,
76
+ ),
77
+ 'titleDescStyle' => array(
78
+ 'type' => 'string',
79
+ 'default' => 'yes',
80
+ ),
81
+ 'titleDescAlignment' => array(
82
+ 'type' => 'string',
83
+ 'default' => 'left',
84
+ ),
85
+ 'fieldStyle' => array(
86
+ 'type' => 'string',
87
+ 'default' => 'box',
88
+ ),
89
+ 'fieldVrPadding' => array(
90
+ 'type' => 'number',
91
+ 'default' => 10,
92
+ ),
93
+ 'fieldHrPadding' => array(
94
+ 'type' => 'number',
95
+ 'default' => 10,
96
+ ),
97
+ 'fieldBgColor' => array(
98
+ 'type' => 'string',
99
+ 'default' => '#fafafa',
100
+ ),
101
+ 'fieldLabelColor' => array(
102
+ 'type' => 'string',
103
+ 'default' => '#333',
104
+ ),
105
+ 'fieldInputColor' => array(
106
+ 'type' => 'string',
107
+ 'default' => '#333',
108
+ ),
109
+ 'fieldBorderStyle' => array(
110
+ 'type' => 'string',
111
+ 'default' => 'solid',
112
+ ),
113
+ 'fieldBorderWidth' => array(
114
+ 'type' => 'number',
115
+ 'default' => 1,
116
+ ),
117
+ 'fieldBorderRadius' => array(
118
+ 'type' => 'number',
119
+ 'default' => 0,
120
+ ),
121
+ 'fieldBorderColor' => array(
122
+ 'type' => 'string',
123
+ 'default' => '#eeeeee',
124
+ ),
125
+ 'fieldBorderFocusColor' => array(
126
+ 'type' => 'string',
127
+ 'default' => '',
128
+ ),
129
+ 'buttonAlignment' => array(
130
+ 'type' => 'string',
131
+ 'default' => 'left',
132
+ ),
133
+ 'buttonVrPadding' => array(
134
+ 'type' => 'number',
135
+ 'default' => 10,
136
+ ),
137
+ 'buttonHrPadding' => array(
138
+ 'type' => 'number',
139
+ 'default' => 25,
140
+ ),
141
+ 'buttonBorderStyle' => array(
142
+ 'type' => 'string',
143
+ 'default' => 'solid',
144
+ ),
145
+ 'buttonBorderWidth' => array(
146
+ 'type' => 'number',
147
+ 'default' => 1,
148
+ ),
149
+ 'buttonBorderRadius' => array(
150
+ 'type' => 'number',
151
+ 'default' => 0,
152
+ ),
153
+ 'buttonBorderColor' => array(
154
+ 'type' => 'string',
155
+ 'default' => '#333',
156
+ ),
157
+ 'buttonTextColor' => array(
158
+ 'type' => 'string',
159
+ 'default' => '#333',
160
+ ),
161
+ 'buttonBgColor' => array(
162
+ 'type' => 'string',
163
+ 'default' => 'transparent',
164
+ ),
165
+ 'buttonBorderHoverColor' => array(
166
+ 'type' => 'string',
167
+ 'default' => '#333',
168
+ ),
169
+ 'buttonTextHoverColor' => array(
170
+ 'type' => 'string',
171
+ 'default' => '#333',
172
+ ),
173
+ 'buttonBgHoverColor' => array(
174
+ 'type' => 'string',
175
+ 'default' => 'transparent',
176
+ ),
177
+ 'fieldSpacing' => array(
178
+ 'type' => 'number',
179
+ 'default' => '',
180
+ ),
181
+ 'fieldLabelSpacing' => array(
182
+ 'type' => 'number',
183
+ 'default' => '',
184
+ ),
185
+ 'enableLabel' => array(
186
+ 'type' => 'boolean',
187
+ 'default' => false,
188
+ ),
189
+ 'labelFontSize' => array(
190
+ 'type' => 'number',
191
+ 'default' => '',
192
+ ),
193
+ 'labelFontSizeType' => array(
194
+ 'type' => 'string',
195
+ 'default' => 'px',
196
+ ),
197
+ 'labelFontSizeTablet' => array(
198
+ 'type' => 'number',
199
+ ),
200
+ 'labelFontSizeMobile' => array(
201
+ 'type' => 'number',
202
+ ),
203
+ 'labelFontFamily' => array(
204
+ 'type' => 'string',
205
+ 'default' => 'Default',
206
+ ),
207
+ 'labelFontWeight' => array(
208
+ 'type' => 'string',
209
+ ),
210
+ 'labelFontSubset' => array(
211
+ 'type' => 'string',
212
+ ),
213
+ 'labelLineHeightType' => array(
214
+ 'type' => 'string',
215
+ 'default' => 'em',
216
+ ),
217
+ 'labelLineHeight' => array(
218
+ 'type' => 'number',
219
+ ),
220
+ 'labelLineHeightTablet' => array(
221
+ 'type' => 'number',
222
+ ),
223
+ 'labelLineHeightMobile' => array(
224
+ 'type' => 'number',
225
+ ),
226
+ 'labelLoadGoogleFonts' => array(
227
+ 'type' => 'boolean',
228
+ 'default' => false,
229
+ ),
230
+ 'inputFontSize' => array(
231
+ 'type' => 'number',
232
+ 'default' => '',
233
+ ),
234
+ 'inputFontSizeType' => array(
235
+ 'type' => 'string',
236
+ 'default' => 'px',
237
+ ),
238
+ 'inputFontSizeTablet' => array(
239
+ 'type' => 'number',
240
+ ),
241
+ 'inputFontSizeMobile' => array(
242
+ 'type' => 'number',
243
+ ),
244
+ 'inputFontFamily' => array(
245
+ 'type' => 'string',
246
+ 'default' => 'Default',
247
+ ),
248
+ 'inputFontWeight' => array(
249
+ 'type' => 'string',
250
+ ),
251
+ 'inputFontSubset' => array(
252
+ 'type' => 'string',
253
+ ),
254
+ 'inputLineHeightType' => array(
255
+ 'type' => 'string',
256
+ 'default' => 'em',
257
+ ),
258
+ 'inputLineHeight' => array(
259
+ 'type' => 'number',
260
+ ),
261
+ 'inputLineHeightTablet' => array(
262
+ 'type' => 'number',
263
+ ),
264
+ 'inputLineHeightMobile' => array(
265
+ 'type' => 'number',
266
+ ),
267
+ 'inputLoadGoogleFonts' => array(
268
+ 'type' => 'boolean',
269
+ 'default' => false,
270
+ ),
271
+ 'textAreaHeight' => array(
272
+ 'type' => 'number',
273
+ ),
274
+ 'buttonFontSize' => array(
275
+ 'type' => 'number',
276
+ 'default' => '',
277
+ ),
278
+ 'buttonFontSizeType' => array(
279
+ 'type' => 'string',
280
+ 'default' => 'px',
281
+ ),
282
+ 'buttonFontSizeTablet' => array(
283
+ 'type' => 'number',
284
+ ),
285
+ 'buttonFontSizeMobile' => array(
286
+ 'type' => 'number',
287
+ ),
288
+ 'buttonFontFamily' => array(
289
+ 'type' => 'string',
290
+ 'default' => 'Default',
291
+ ),
292
+ 'buttonFontWeight' => array(
293
+ 'type' => 'string',
294
+ ),
295
+ 'buttonFontSubset' => array(
296
+ 'type' => 'string',
297
+ ),
298
+ 'buttonLineHeightType' => array(
299
+ 'type' => 'string',
300
+ 'default' => 'em',
301
+ ),
302
+ 'buttonLineHeight' => array(
303
+ 'type' => 'number',
304
+ ),
305
+ 'buttonLineHeightTablet' => array(
306
+ 'type' => 'number',
307
+ ),
308
+ 'buttonLineHeightMobile' => array(
309
+ 'type' => 'number',
310
+ ),
311
+ 'buttonLoadGoogleFonts' => array(
312
+ 'type' => 'boolean',
313
+ 'default' => false,
314
+ ),
315
+ 'enableOveride' => array(
316
+ 'type' => 'boolean',
317
+ 'default' => true,
318
+ ),
319
+ 'radioCheckSize' => array(
320
+ 'type' => 'number',
321
+ 'default' => '20',
322
+ ),
323
+ 'radioCheckBgColor' => array(
324
+ 'type' => 'string',
325
+ 'default' => '#fafafa',
326
+ ),
327
+ 'radioCheckSelectColor' => array(
328
+ 'type' => 'string',
329
+ 'default' => '',
330
+ ),
331
+ 'radioCheckLableColor' => array(
332
+ 'type' => 'string',
333
+ 'default' => '',
334
+ ),
335
+ 'radioCheckBorderColor' => array(
336
+ 'type' => 'string',
337
+ 'default' => '#cbcbcb',
338
+ ),
339
+ 'radioCheckBorderWidth' => array(
340
+ 'type' => 'number',
341
+ 'default' => '1',
342
+ ),
343
+ 'radioCheckBorderRadius' => array(
344
+ 'type' => 'number',
345
+ 'default' => '',
346
+ ),
347
+ 'radioCheckFontSize' => array(
348
+ 'type' => 'number',
349
+ 'default' => '',
350
+ ),
351
+ 'radioCheckFontSizeType' => array(
352
+ 'type' => 'string',
353
+ 'default' => 'px',
354
+ ),
355
+ 'radioCheckFontSizeTablet' => array(
356
+ 'type' => 'number',
357
+ ),
358
+ 'radioCheckFontSizeMobile' => array(
359
+ 'type' => 'number',
360
+ ),
361
+ 'radioCheckFontFamily' => array(
362
+ 'type' => 'string',
363
+ 'default' => 'Default',
364
+ ),
365
+ 'radioCheckFontWeight' => array(
366
+ 'type' => 'string',
367
+ ),
368
+ 'radioCheckFontSubset' => array(
369
+ 'type' => 'string',
370
+ ),
371
+ 'radioCheckLineHeightType' => array(
372
+ 'type' => 'string',
373
+ 'default' => 'em',
374
+ ),
375
+ 'radioCheckLineHeight' => array(
376
+ 'type' => 'number',
377
+ ),
378
+ 'radioCheckLineHeightTablet' => array(
379
+ 'type' => 'number',
380
+ ),
381
+ 'radioCheckLineHeightMobile' => array(
382
+ 'type' => 'number',
383
+ ),
384
+ 'radioCheckLoadGoogleFonts' => array(
385
+ 'type' => 'boolean',
386
+ 'default' => false,
387
+ ),
388
+ 'validationMsgColor' => array(
389
+ 'type' => 'string',
390
+ 'default' => '#ff0000',
391
+ ),
392
+ 'validationMsgBgColor' => array(
393
+ 'type' => 'string',
394
+ 'default' => '',
395
+ ),
396
+ 'advancedValidationSettings' => array(
397
+ 'type' => 'boolean',
398
+ 'default' => false,
399
+ ),
400
+ 'highlightBorderColor' => array(
401
+ 'type' => 'string',
402
+ 'default' => '#ff0000',
403
+ ),
404
+ 'validationMsgFontSize' => array(
405
+ 'type' => 'number',
406
+ 'default' => '',
407
+ ),
408
+ 'validationMsgFontSizeType' => array(
409
+ 'type' => 'string',
410
+ 'default' => 'px',
411
+ ),
412
+ 'validationMsgFontSizeTablet' => array(
413
+ 'type' => 'number',
414
+ ),
415
+ 'validationMsgFontSizeMobile' => array(
416
+ 'type' => 'number',
417
+ ),
418
+ 'validationMsgFontFamily' => array(
419
+ 'type' => 'string',
420
+ 'default' => 'Default',
421
+ ),
422
+ 'validationMsgFontWeight' => array(
423
+ 'type' => 'string',
424
+ ),
425
+ 'validationMsgFontSubset' => array(
426
+ 'type' => 'string',
427
+ ),
428
+ 'validationMsgLineHeightType' => array(
429
+ 'type' => 'string',
430
+ 'default' => 'em',
431
+ ),
432
+ 'validationMsgLineHeight' => array(
433
+ 'type' => 'number',
434
+ ),
435
+ 'validationMsgLineHeightTablet' => array(
436
+ 'type' => 'number',
437
+ ),
438
+ 'validationMsgLineHeightMobile' => array(
439
+ 'type' => 'number',
440
+ ),
441
+ 'validationMsgLoadGoogleFonts' => array(
442
+ 'type' => 'boolean',
443
+ 'default' => false,
444
+ ),
445
+ 'successMsgColor' => array(
446
+ 'type' => 'string',
447
+ 'default' => '',
448
+ ),
449
+ 'errorMsgColor' => array(
450
+ 'type' => 'string',
451
+ 'default' => '',
452
+ ),
453
+ 'errorMsgBgColor' => array(
454
+ 'type' => 'string',
455
+ 'default' => '',
456
+ ),
457
+ 'errorMsgBorderColor' => array(
458
+ 'type' => 'string',
459
+ 'default' => '',
460
+ ),
461
+ 'msgBorderSize' => array(
462
+ 'type' => 'number',
463
+ 'default' => '',
464
+ ),
465
+ 'msgBorderRadius' => array(
466
+ 'type' => 'number',
467
+ 'default' => '',
468
+ ),
469
+ 'msgVrPadding' => array(
470
+ 'type' => 'number',
471
+ 'default' => '',
472
+ ),
473
+ 'msgHrPadding' => array(
474
+ 'type' => 'number',
475
+ 'default' => '',
476
+ ),
477
+ 'msgFontSize' => array(
478
+ 'type' => 'number',
479
+ 'default' => '',
480
+ ),
481
+ 'msgFontSizeType' => array(
482
+ 'type' => 'string',
483
+ 'default' => 'px',
484
+ ),
485
+ 'msgFontSizeTablet' => array(
486
+ 'type' => 'number',
487
+ ),
488
+ 'msgFontSizeMobile' => array(
489
+ 'type' => 'number',
490
+ ),
491
+ 'msgFontFamily' => array(
492
+ 'type' => 'string',
493
+ 'default' => 'Default',
494
+ ),
495
+ 'msgFontWeight' => array(
496
+ 'type' => 'string',
497
+ ),
498
+ 'msgFontSubset' => array(
499
+ 'type' => 'string',
500
+ ),
501
+ 'msgLineHeightType' => array(
502
+ 'type' => 'string',
503
+ 'default' => 'em',
504
+ ),
505
+ 'msgLineHeight' => array(
506
+ 'type' => 'number',
507
+ ),
508
+ 'msgLineHeightTablet' => array(
509
+ 'type' => 'number',
510
+ ),
511
+ 'msgLineHeightMobile' => array(
512
+ 'type' => 'number',
513
+ ),
514
+ 'msgLoadGoogleFonts' => array(
515
+ 'type' => 'boolean',
516
+ 'default' => false,
517
+ ),
518
+ 'radioCheckBorderRadiusType' => array(
519
+ 'type' => 'string',
520
+ 'default' => 'px',
521
+ ),
522
+ 'msgBorderRadiusType' => array(
523
+ 'type' => 'string',
524
+ 'default' => 'px',
525
+ ),
526
+ 'fieldBorderRadiusType' => array(
527
+ 'type' => 'string',
528
+ 'default' => 'px',
529
+ ),
530
+ 'buttonBorderRadiusType' => array(
531
+ 'type' => 'string',
532
+ 'default' => 'px',
533
+ ),
534
+ 'successMsgFontSize' => array(
535
+ 'type' => 'number',
536
+ 'default' => '',
537
+ ),
538
+ 'successMsgFontSizeType' => array(
539
+ 'type' => 'string',
540
+ 'default' => 'px',
541
+ ),
542
+ 'successMsgFontSizeTablet' => array(
543
+ 'type' => 'number',
544
+ ),
545
+ 'successMsgFontSizeMobile' => array(
546
+ 'type' => 'number',
547
+ ),
548
+ 'successMsgFontFamily' => array(
549
+ 'type' => 'string',
550
+ 'default' => 'Default',
551
+ ),
552
+ 'successMsgFontWeight' => array(
553
+ 'type' => 'string',
554
+ ),
555
+ 'successMsgFontSubset' => array(
556
+ 'type' => 'string',
557
+ ),
558
+ 'successMsgLineHeightType' => array(
559
+ 'type' => 'string',
560
+ 'default' => 'em',
561
+ ),
562
+ 'successMsgLineHeight' => array(
563
+ 'type' => 'number',
564
+ ),
565
+ 'successMsgLineHeightTablet' => array(
566
+ 'type' => 'number',
567
+ ),
568
+ 'successMsgLineHeightMobile' => array(
569
+ 'type' => 'number',
570
+ ),
571
+ 'successMsgLoadGoogleFonts' => array(
572
+ 'type' => 'boolean',
573
+ 'default' => false,
574
+ ),
575
+ ),
576
+ 'render_callback' => 'uagb_render_gf',
577
+ )
578
+ );
579
+ }
580
+ add_action( 'init', 'uagb_blocks_register_gf_styler' );
581
+
582
+ /**
583
+ * Render gf HTML.
584
+ *
585
+ * @param array $attributes Array of block attributes.
586
+ *
587
+ * @since 1.12.0
588
+ */
589
+ function uagb_render_gf( $attributes ) {
590
+ $block_id = 'uagb-gf-styler-' . $attributes['block_id'];
591
+ // @codingStandardsIgnoreStart
592
+ $formId = $attributes['formId'];
593
+ $align = isset( $attributes['align'] ) ? $attributes['align'] : '';
594
+ $fieldStyle = isset( $attributes['fieldStyle'] ) ? $attributes['fieldStyle'] : '';
595
+ $buttonAlignment = isset( $attributes['buttonAlignment'] ) ? $attributes['buttonAlignment'] : '';
596
+ $enableOveride = isset( $attributes['enableOveride'] ) ? $attributes['enableOveride'] : '';
597
+ $enableLabel = isset( $attributes['enableLabel'] ) ? $attributes['enableLabel'] : '';
598
+ $advancedValidationSettings = isset( $attributes['advancedValidationSettings'] ) ? $attributes['advancedValidationSettings'] : '';
599
+ $enableAjax = ( $attributes['enableAjax'] ) ? 'true' : 'false';
600
+ $formTabIndex = ( $attributes['enableTabSupport'] ) ? $attributes['formTabIndex'] : '';
601
+ $titleDescStyle = ( isset( $attributes['titleDescStyle'] ) ) ? $attributes['titleDescStyle'] : '';
602
+
603
+ $classname = 'uagb-gf-styler__align-' . $align . ' ';
604
+ $classname .= 'uagb-gf-styler__field-style-' . $fieldStyle . ' ';
605
+ $classname .= 'uagb-gf-styler__btn-align-' . $buttonAlignment . ' ';
606
+ $classname .= $enableOveride ? ' uagb-gf-styler__check-style-enabled' : ' ';
607
+
608
+ $classname .= $enableLabel ? ' uagb-gf-styler__hide-label' : ' ';
609
+ $classname .= $advancedValidationSettings ? ' uagb-gf-styler__error-yes' : '';
610
+ $class = isset( $attributes['className']) ? $attributes['className'] : '';
611
+
612
+ // @codingStandardsIgnoreend
613
+ ob_start();
614
+
615
+ $disableTitleDesc = '';
616
+
617
+ if( $titleDescStyle === 'none' ) {
618
+ $disableTitleDesc = ' title="false" description="false" ';
619
+ }
620
+
621
+ if ($formId && 0 != $formId && -1 != $formId) {
622
+ ?>
623
+ <div class = "<?php echo $class ?> wp-block-uagb-gf-styler uagb-gf-styler__outer-wrap" id = "<?php echo $block_id; ?>" >
624
+ <div class = "<?php echo $classname; ?>">
625
+ <?php echo do_shortcode( '[gravityforms id="' . $formId . '" ' . $disableTitleDesc . ' ajax="' . $enableAjax . '" tabindex="' . $formTabIndex . '"]' ); ?>
626
+ </div>
627
+ </div>
628
+ <?php
629
+ }
630
+ return ob_get_clean();
631
+ }
dist/blocks/post/index.php CHANGED
@@ -103,8 +103,10 @@ function uagb_post_block_add_script() {
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( $ ) {
@@ -132,14 +134,14 @@ function uagb_post_block_add_script() {
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
  }
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
+ $tcolumns = ( isset( $value['tcolumns'] ) ) ? $value['tcolumns'] : 2;
109
+ $mcolumns = ( isset( $value['mcolumns'] ) ) ? $value['mcolumns'] : 1;
110
  ?>
111
  <script type="text/javascript" id="uagb-post-carousel-script-<?php echo $key; ?>">
112
  ( function( $ ) {
134
  {
135
  'breakpoint' : 1024,
136
  'settings' : {
137
+ 'slidesToShow' : tcolumns,
138
  'slidesToScroll' : 1,
139
  }
140
  },
141
  {
142
  'breakpoint' : 767,
143
  'settings' : {
144
+ 'slidesToShow' : mcolumns,
145
  'slidesToScroll' : 1,
146
  }
147
  }
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.12.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg\n"
8
- "POT-Creation-Date: 2019-03-14 10:34:30+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -475,7 +475,7 @@ msgid ""
475
  "website."
476
  msgstr ""
477
 
478
- #: classes/class-uagb-helper.php:811
479
  msgid "Full"
480
  msgstr ""
481
 
@@ -483,16 +483,16 @@ msgstr ""
483
  msgid "Ultimate Addons Blocks"
484
  msgstr ""
485
 
486
- #: classes/class-uagb-init-blocks.php:281
487
- #: classes/class-uagb-init-blocks.php:315
488
  msgid "Select Form"
489
  msgstr ""
490
 
491
- #: classes/class-uagb-init-blocks.php:295
492
  msgid "You have not added any Contact Form 7 yet."
493
  msgstr ""
494
 
495
- #: classes/class-uagb-init-blocks.php:329
496
  msgid "You have not added any Gravity Forms yet."
497
  msgstr ""
498
 
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.12.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg\n"
8
+ "POT-Creation-Date: 2019-03-15 05:35:09+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
475
  "website."
476
  msgstr ""
477
 
478
+ #: classes/class-uagb-helper.php:815
479
  msgid "Full"
480
  msgstr ""
481
 
483
  msgid "Ultimate Addons Blocks"
484
  msgstr ""
485
 
486
+ #: classes/class-uagb-init-blocks.php:284
487
+ #: classes/class-uagb-init-blocks.php:318
488
  msgid "Select Form"
489
  msgstr ""
490
 
491
+ #: classes/class-uagb-init-blocks.php:298
492
  msgid "You have not added any Contact Form 7 yet."
493
  msgstr ""
494
 
495
+ #: classes/class-uagb-init-blocks.php:332
496
  msgid "You have not added any Gravity Forms yet."
497
  msgstr ""
498
 
lib/notices/class-astra-notices.php CHANGED
@@ -1,334 +1,334 @@
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.3';
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
- do_action( "astra_notice_before_markup_{$notice['id']}" );
222
-
223
- ?>
224
- <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'] ); ?>">
225
- <div class="notice-container">
226
- <?php do_action( "astra_notice_inside_markup_{$notice['id']}" ); ?>
227
- <?php echo wp_kses_post( $notice['message'] ); ?>
228
- </div>
229
- </div>
230
- <?php
231
-
232
- do_action( "astra_notice_after_markup_{$notice['id']}" );
233
-
234
- }
235
-
236
- /**
237
- * Notice classes.
238
- *
239
- * @since 1.4.0
240
- *
241
- * @param array $notice Notice arguments.
242
- * @return array Notice wrapper classes.
243
- */
244
- private static function get_wrap_classes( $notice ) {
245
- $classes = array( 'astra-notice', 'notice', 'is-dismissible' );
246
- $classes[] = $notice['class'];
247
- if ( isset( $notice['type'] ) && '' !== $notice['type'] ) {
248
- $classes[] = 'notice-' . $notice['type'];
249
- }
250
-
251
- return esc_attr( implode( ' ', $classes ) );
252
- }
253
-
254
- /**
255
- * Get Notice ID.
256
- *
257
- * @since 1.4.0
258
- *
259
- * @param array $notice Notice arguments.
260
- * @param int $key Notice array index.
261
- * @return string Notice id.
262
- */
263
- private static function get_notice_id( $notice, $key ) {
264
- if ( isset( $notice['id'] ) && ! empty( $notice['id'] ) ) {
265
- return $notice['id'];
266
- }
267
-
268
- return 'astra-notices-id-' . $key;
269
- }
270
-
271
- /**
272
- * Is notice expired?
273
- *
274
- * @since 1.4.0
275
- *
276
- * @param array $notice Notice arguments.
277
- * @return boolean
278
- */
279
- private static function is_expired( $notice ) {
280
- $transient_status = get_transient( $notice['id'] );
281
-
282
- if ( false === $transient_status ) {
283
-
284
- if ( isset( $notice['display-notice-after'] ) && false !== $notice['display-notice-after'] ) {
285
-
286
- if ( 'delayed-notice' !== get_user_meta( get_current_user_id(), $notice['id'], true ) &&
287
- 'notice-dismissed' !== get_user_meta( get_current_user_id(), $notice['id'], true ) ) {
288
- set_transient( $notice['id'], 'delayed-notice', $notice['display-notice-after'] );
289
- update_user_meta( get_current_user_id(), $notice['id'], 'delayed-notice' );
290
-
291
- return false;
292
- }
293
- }
294
-
295
- // Check the user meta status if current notice is dismissed or delay completed.
296
- $meta_status = get_user_meta( get_current_user_id(), $notice['id'], true );
297
-
298
- if ( empty( $meta_status ) || 'delayed-notice' === $meta_status ) {
299
- return true;
300
- }
301
- }
302
-
303
- return false;
304
- }
305
-
306
- /**
307
- * Get URI
308
- *
309
- * @return mixed URL.
310
- */
311
- public static function _get_uri() {
312
- $path = wp_normalize_path( dirname( __FILE__ ) );
313
- $theme_dir = wp_normalize_path( get_template_directory() );
314
- $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
315
-
316
- if ( strpos( $path, $theme_dir ) !== false ) {
317
- return trailingslashit( get_template_directory_uri() . str_replace( $theme_dir, '', $path ) );
318
- } elseif ( strpos( $path, $plugin_dir ) !== false ) {
319
- return plugin_dir_url( __FILE__ );
320
- } elseif ( strpos( $path, dirname( plugin_basename( __FILE__ ) ) ) !== false ) {
321
- return plugin_dir_url( __FILE__ );
322
- }
323
-
324
- return;
325
- }
326
-
327
- }
328
-
329
- /**
330
- * Kicking this off by calling 'get_instance()' method
331
- */
332
- Astra_Notices::get_instance();
333
-
334
- 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.3';
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
+ do_action( "astra_notice_before_markup_{$notice['id']}" );
222
+
223
+ ?>
224
+ <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'] ); ?>">
225
+ <div class="notice-container">
226
+ <?php do_action( "astra_notice_inside_markup_{$notice['id']}" ); ?>
227
+ <?php echo wp_kses_post( $notice['message'] ); ?>
228
+ </div>
229
+ </div>
230
+ <?php
231
+
232
+ do_action( "astra_notice_after_markup_{$notice['id']}" );
233
+
234
+ }
235
+
236
+ /**
237
+ * Notice classes.
238
+ *
239
+ * @since 1.4.0
240
+ *
241
+ * @param array $notice Notice arguments.
242
+ * @return array Notice wrapper classes.
243
+ */
244
+ private static function get_wrap_classes( $notice ) {
245
+ $classes = array( 'astra-notice', 'notice', 'is-dismissible' );
246
+ $classes[] = $notice['class'];
247
+ if ( isset( $notice['type'] ) && '' !== $notice['type'] ) {
248
+ $classes[] = 'notice-' . $notice['type'];
249
+ }
250
+
251
+ return esc_attr( implode( ' ', $classes ) );
252
+ }
253
+
254
+ /**
255
+ * Get Notice ID.
256
+ *
257
+ * @since 1.4.0
258
+ *
259
+ * @param array $notice Notice arguments.
260
+ * @param int $key Notice array index.
261
+ * @return string Notice id.
262
+ */
263
+ private static function get_notice_id( $notice, $key ) {
264
+ if ( isset( $notice['id'] ) && ! empty( $notice['id'] ) ) {
265
+ return $notice['id'];
266
+ }
267
+
268
+ return 'astra-notices-id-' . $key;
269
+ }
270
+
271
+ /**
272
+ * Is notice expired?
273
+ *
274
+ * @since 1.4.0
275
+ *
276
+ * @param array $notice Notice arguments.
277
+ * @return boolean
278
+ */
279
+ private static function is_expired( $notice ) {
280
+ $transient_status = get_transient( $notice['id'] );
281
+
282
+ if ( false === $transient_status ) {
283
+
284
+ if ( isset( $notice['display-notice-after'] ) && false !== $notice['display-notice-after'] ) {
285
+
286
+ if ( 'delayed-notice' !== get_user_meta( get_current_user_id(), $notice['id'], true ) &&
287
+ 'notice-dismissed' !== get_user_meta( get_current_user_id(), $notice['id'], true ) ) {
288
+ set_transient( $notice['id'], 'delayed-notice', $notice['display-notice-after'] );
289
+ update_user_meta( get_current_user_id(), $notice['id'], 'delayed-notice' );
290
+
291
+ return false;
292
+ }
293
+ }
294
+
295
+ // Check the user meta status if current notice is dismissed or delay completed.
296
+ $meta_status = get_user_meta( get_current_user_id(), $notice['id'], true );
297
+
298
+ if ( empty( $meta_status ) || 'delayed-notice' === $meta_status ) {
299
+ return true;
300
+ }
301
+ }
302
+
303
+ return false;
304
+ }
305
+
306
+ /**
307
+ * Get URI
308
+ *
309
+ * @return mixed URL.
310
+ */
311
+ public static function _get_uri() {
312
+ $path = wp_normalize_path( dirname( __FILE__ ) );
313
+ $theme_dir = wp_normalize_path( get_template_directory() );
314
+ $plugin_dir = wp_normalize_path( WP_PLUGIN_DIR );
315
+
316
+ if ( strpos( $path, $theme_dir ) !== false ) {
317
+ return trailingslashit( get_template_directory_uri() . str_replace( $theme_dir, '', $path ) );
318
+ } elseif ( strpos( $path, $plugin_dir ) !== false ) {
319
+ return plugin_dir_url( __FILE__ );
320
+ } elseif ( strpos( $path, dirname( plugin_basename( __FILE__ ) ) ) !== false ) {
321
+ return plugin_dir_url( __FILE__ );
322
+ }
323
+
324
+ return;
325
+ }
326
+
327
+ }
328
+
329
+ /**
330
+ * Kicking this off by calling 'get_instance()' method
331
+ */
332
+ Astra_Notices::get_instance();
333
+
334
+ endif;
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.1
8
- Stable tag: 1.12.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -154,13 +154,19 @@ When you use the Ultimate Addons for Gutenberg along with the free Astra theme,
154
 
155
  == Changelog ==
156
 
 
 
 
 
 
 
157
  = 1.12.0 =
158
  * New: Gravity Forms Styler
159
  * Improvement: Performance - JS related to disabled blocks are not loaded.
160
  * Improvement: Post - Added more Order By options to the Query Builder.
161
  * Improvement: Post - Conflicts with Toolset Layouts, WPCasa, FacetWP fixed.
162
  * Improvement: Icon List - Border options added.
163
- * Fix: Advanced Columns - Column spacing issue on editor.
164
  * Fix: Advanced Columns - Shape Divider height responsive compatibility.
165
  * Fix: Contact Form 7 Styler - Select box alignment & height issue.
166
  * Fix: Info Box - CTA type of Complete Box structure change.
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
  Tested up to: 5.1.1
8
+ Stable tag: 1.12.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
154
 
155
  == Changelog ==
156
 
157
+ = 1.12.1 =
158
+ * Improvement: Added version number to script.
159
+ * Fix: Post - Conflicts with FacetWP.
160
+ * Fix: Post Carousel - Columns option for responsive devices not working on front end.
161
+ * Fix: Section - Spacing issue in editor for Full Width layout.
162
+
163
  = 1.12.0 =
164
  * New: Gravity Forms Styler
165
  * Improvement: Performance - JS related to disabled blocks are not loaded.
166
  * Improvement: Post - Added more Order By options to the Query Builder.
167
  * Improvement: Post - Conflicts with Toolset Layouts, WPCasa, FacetWP fixed.
168
  * Improvement: Icon List - Border options added.
169
+ * Fix: Advanced Columns - Column spacing issue in editor.
170
  * Fix: Advanced Columns - Shape Divider height responsive compatibility.
171
  * Fix: Contact Form 7 Styler - Select box alignment & height issue.
172
  * Fix: Info Box - CTA type of Complete Box structure change.
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.12.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.12.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
  *