Gutenberg Blocks – Ultimate Addons for Gutenberg - Version 1.14.1

Version Description

  • Fix: Table of Contents - Stripped HTML tags in Headings for Table of Contents.
  • Fix: Typography Control - Responsive Font Sizes not editable.
  • Fix: Responsive Control - Responsive options not editable.
Download this release

Release Info

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

Code changes from version 1.14.0 to 1.14.1

admin/uagb-admin.php CHANGED
@@ -1,45 +1,45 @@
1
- <?php
2
- /**
3
- * UAGB Admin HTML.
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit; // Exit if accessed directly.
10
- }
11
-
12
- ?>
13
- <div class="uagb-menu-page-wrapper wrap uagb-clear general">
14
- <div id="uagb-menu-page">
15
- <div class="uagb-menu-page-header <?php echo esc_attr( implode( ' ', $uagb_header_wrapper_class ) ); ?>">
16
- <div class="uagb-container uagb-flex">
17
- <div class="uagb-title">
18
- <a href="<?php echo esc_url( $uagb_visit_site_url ); ?>" target="_blank" rel="noopener" >
19
- <?php if ( $uagb_icon ) { ?>
20
- <img src="<?php echo esc_url( UAGB_URL . 'admin/assets/images/uagb_logo.svg' ); ?>" class="uagb-header-icon" alt="<?php echo UAGB_PLUGIN_NAME; ?> " >
21
- <?php
22
- } else {
23
- echo '<h4>' . UAGB_PLUGIN_NAME . '</h4>'; }
24
- ?>
25
- <span class="uagb-plugin-version"><?php echo UAGB_VER; ?></span>
26
- </a>
27
- </div>
28
- <div class="uagb-top-links">
29
- <?php esc_attr_e( 'Take Gutenberg to The Next Level! - ', 'ultimate-addons-for-gutenberg' ); ?>
30
- <a href="<?php echo esc_url( $uagb_visit_site_url ); ?>" target="_blank" rel=""><?php _e( 'View Demos', 'ultimate-addons-for-gutenberg' ); ?></a>
31
- </div>
32
- </div>
33
- </div>
34
-
35
- <?php
36
- // Settings update message.
37
- if ( isset( $_REQUEST['message'] ) && ( 'saved' === $_REQUEST['message'] || 'saved_ext' === $_REQUEST['message'] ) ) {
38
- ?>
39
- <div id="message" class="notice notice-success is-dismissive uagb-notice"><p> <?php esc_html_e( 'Settings saved successfully.', 'ultimate-addons-for-gutenberg' ); ?> </p></div>
40
- <?php
41
- }
42
- do_action( 'uagb_render_admin_content' );
43
- ?>
44
- </div>
45
- </div>
1
+ <?php
2
+ /**
3
+ * UAGB Admin HTML.
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit; // Exit if accessed directly.
10
+ }
11
+
12
+ ?>
13
+ <div class="uagb-menu-page-wrapper wrap uagb-clear general">
14
+ <div id="uagb-menu-page">
15
+ <div class="uagb-menu-page-header <?php echo esc_attr( implode( ' ', $uagb_header_wrapper_class ) ); ?>">
16
+ <div class="uagb-container uagb-flex">
17
+ <div class="uagb-title">
18
+ <a href="<?php echo esc_url( $uagb_visit_site_url ); ?>" target="_blank" rel="noopener" >
19
+ <?php if ( $uagb_icon ) { ?>
20
+ <img src="<?php echo esc_url( UAGB_URL . 'admin/assets/images/uagb_logo.svg' ); ?>" class="uagb-header-icon" alt="<?php echo UAGB_PLUGIN_NAME; ?> " >
21
+ <?php
22
+ } else {
23
+ echo '<h4>' . UAGB_PLUGIN_NAME . '</h4>'; }
24
+ ?>
25
+ <span class="uagb-plugin-version"><?php echo UAGB_VER; ?></span>
26
+ </a>
27
+ </div>
28
+ <div class="uagb-top-links">
29
+ <?php esc_attr_e( 'Take Gutenberg to The Next Level! - ', 'ultimate-addons-for-gutenberg' ); ?>
30
+ <a href="<?php echo esc_url( $uagb_visit_site_url ); ?>" target="_blank" rel=""><?php _e( 'View Demos', 'ultimate-addons-for-gutenberg' ); ?></a>
31
+ </div>
32
+ </div>
33
+ </div>
34
+
35
+ <?php
36
+ // Settings update message.
37
+ if ( isset( $_REQUEST['message'] ) && ( 'saved' === $_REQUEST['message'] || 'saved_ext' === $_REQUEST['message'] ) ) {
38
+ ?>
39
+ <div id="message" class="notice notice-success is-dismissive uagb-notice"><p> <?php esc_html_e( 'Settings saved successfully.', 'ultimate-addons-for-gutenberg' ); ?> </p></div>
40
+ <?php
41
+ }
42
+ do_action( 'uagb_render_admin_content' );
43
+ ?>
44
+ </div>
45
+ </div>
admin/uagb-general.php CHANGED
@@ -1,238 +1,238 @@
1
- <?php
2
- /**
3
- * General Setting Form
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit; // Exit if accessed directly.
10
- }
11
-
12
- $blocks = UAGB_Helper::get_block_options();
13
- $allow_file_generation = UAGB_Helper::allow_file_generation();
14
- $kb_data = UAGB_Helper::knowledgebase_data();
15
- $enable_kb = $kb_data['enable_knowledgebase'];
16
- $kb_url = $kb_data['knowledgebase_url'];
17
-
18
- $support_data = UAGB_Helper::support_data();
19
- $enable_support = $support_data['enable_support'];
20
- $support_url = $support_data['support_url'];
21
-
22
- $uagb_support_link = apply_filters( 'uagb_support_link', $support_url );
23
- $uagb_support_link_text = apply_filters( 'uagb_support_link_text', __( 'Submit a Ticket »', 'ultimate-addons-for-gutenberg' ) );
24
- ?>
25
-
26
- <div class="uagb-container uagb-general">
27
- <div id="poststuff">
28
- <div id="post-body" class="columns-2">
29
- <div id="post-body-content">
30
- <!-- All WordPress Notices below header -->
31
- <h1 class="screen-reader-text"> <?php esc_html_e( 'Ultimate Addons for Gutenberg', 'ultimate-addons-for-gutenberg' ); ?> </h1>
32
- <div class="widgets postbox">
33
- <div class="uagb-intro-section">
34
- <div class="uagb-intro-col">
35
- <h2>
36
- <span class="uagb-intro-icon dashicons dashicons-megaphone"></span>
37
- <span><?php esc_html_e( 'Welcome to the Ultimate Addons for Gutenberg!', 'ultimate-addons-for-gutenberg' ); ?></span>
38
- </h2>
39
- <p><?php esc_html_e( 'Thank you for choosing Ultimate Addons for Gutenberg - the most comprehensive library of advanced and creative blocks to build a stunning website and blog faster than ever before!', 'ultimate-addons-for-gutenberg' ); ?></p>
40
- <a href="https://www.ultimategutenberg.com/getting-started-with-gutenberg-blocks/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard" target="_blank" rel="noopener"><?php esc_attr_e( 'How to use the Ultimate Addons for Gutenberg Blocks »', 'ultimate-addons-for-gutenberg' ); ?></a>
41
- <p><strong><?php esc_html_e( 'Ready-to-use Full Demo Websites - ', 'ultimate-addons-for-gutenberg' ); ?></strong><?php esc_html_e( 'Get professionally designed 20+ pre-built FREE starter sites built using Gutenberg, Ultimate Addons for Gutenberg and the Astra theme. These can be imported in just a few clicks. Tweak them easily and build awesome websites in minutes!', 'ultimate-addons-for-gutenberg' ); ?></p>
42
- <a href="https://www.ultimategutenberg.com/ready-websites-for-gutenberg/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard" target="_blank" rel="noopener"><?php esc_attr_e( 'Know More »', 'ultimate-addons-for-gutenberg' ); ?></a>
43
- </div>
44
- </div>
45
- </div>
46
- <div class="widgets postbox">
47
- <div class="uagb-intro-section">
48
- <div class="uagb-intro-col">
49
- <h2>
50
- <span class="uagb-intro-icon dashicons dashicons-smiley"></span>
51
- <span><?php esc_html_e( 'Ever-growing Library of Gutenberg Blocks', 'ultimate-addons-for-gutenberg' ); ?></span>
52
- </h2>
53
- <p><?php esc_html_e( 'The easy-to-use and extremely powerful blocks of the Ultimate Addons for Gutenberg (UAG) are now available within your Gutenberg Editor. Search for "UAG" in the block inserter and see all the Ultimate Addons for Gutenberg blocks listed below. Simply click on the block you wish to add on your page or post.', 'ultimate-addons-for-gutenberg' ); ?></p>
54
- <p><?php esc_html_e( 'Wish to see some real design implementations with these blocks?', 'ultimate-addons-for-gutenberg' ); ?></p>
55
- <a href="https://www.ultimategutenberg.com/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard" target="_blank" rel="noopener"><?php esc_attr_e( 'See Demos »', 'ultimate-addons-for-gutenberg' ); ?></a>
56
- <p><?php esc_html_e( 'Check out the detailed knowledge base articles that will help you understand the working of each block.', 'ultimate-addons-for-gutenberg' ); ?></p>
57
- <a href="<?php echo esc_url( $uagb_support_link ); ?>" target="_blank" rel="noopener"><?php esc_attr_e( 'Visit Knowledge Base »', 'ultimate-addons-for-gutenberg' ); ?></a>
58
- </div>
59
- </div>
60
- </div>
61
- <div class="widgets postbox">
62
- <h2 class="hndle uagb-flex uagb-widgets-heading"><span><?php esc_html_e( 'Blocks', 'ultimate-addons-for-gutenberg' ); ?></span>
63
- <div class="uagb-bulk-actions-wrap">
64
- <a class="bulk-action uagb-activate-all button"> <?php esc_html_e( 'Activate All', 'ultimate-addons-for-gutenberg' ); ?> </a>
65
- <a class="bulk-action uagb-deactivate-all button"> <?php esc_html_e( 'Deactivate All', 'ultimate-addons-for-gutenberg' ); ?> </a>
66
- <a class="uagb-reusable-block-link button button-primary" href="<?php echo admin_url( 'edit.php?post_type=wp_block' ); ?>" rel="noopener"> <?php esc_html_e( 'Reusable Blocks', 'ultimate-addons-for-gutenberg' ); ?> <span class="dashicons-controls-repeat dashicons"></span></a>
67
- </div>
68
- </h2>
69
- <div class="uagb-list-section">
70
- <?php
71
- if ( is_array( $blocks ) && ! empty( $blocks ) ) :
72
- ?>
73
- <ul class="uagb-widget-list">
74
- <?php
75
- foreach ( $blocks as $addon => $info ) {
76
-
77
- $addon = str_replace( 'uagb/', '', $addon );
78
-
79
- if ( 'column' === $addon ) {
80
- continue; }
81
-
82
- $title_url = ( isset( $info['title_url'] ) && ! empty( $info['title_url'] ) ) ? 'href="' . esc_url( $info['title_url'] ) . '"' : '';
83
- $anchor_target = ( isset( $info['title_url'] ) && ! empty( $info['title_url'] ) ) ? "target='_blank' rel='noopener'" : '';
84
-
85
- $class = 'deactivate';
86
- $link = array(
87
- 'link_class' => 'uagb-activate-widget',
88
- 'link_text' => __( 'Activate', 'ultimate-addons-for-gutenberg' ),
89
- );
90
-
91
- if ( $info['is_activate'] ) {
92
- $class = 'activate';
93
- $link = array(
94
- 'link_class' => 'uagb-deactivate-widget',
95
- 'link_text' => __( 'Deactivate', 'ultimate-addons-for-gutenberg' ),
96
- );
97
- }
98
-
99
- echo '<li id="' . esc_attr( $addon ) . '" class="' . esc_attr( $class ) . '"><a class="uagb-widget-title"' . $title_url . $anchor_target . ' >' . esc_html( $info['title'] ) . '</a><div class="uagb-widget-link-wrapper">';
100
-
101
- printf(
102
- '<a href="%1$s" class="%2$s"> %3$s </a>',
103
- ( isset( $link['link_url'] ) && ! empty( $link['link_url'] ) ) ? esc_url( $link['link_url'] ) : '#',
104
- esc_attr( $link['link_class'] ),
105
- esc_html( $link['link_text'] )
106
- );
107
-
108
- if ( $info['is_activate'] && isset( $info['setting_url'] ) ) {
109
-
110
- printf(
111
- '<a href="%1$s" class="%2$s"> %3$s </a>',
112
- esc_url( $info['setting_url'] ),
113
- esc_attr( 'uagb-advanced-settings' ),
114
- esc_html( $info['setting_text'] )
115
- );
116
- }
117
-
118
- echo '</div></li>';
119
- }
120
- ?>
121
- </ul>
122
- <?php endif; ?>
123
- </div>
124
- </div>
125
- </div>
126
- <div class="postbox-container uagb-sidebar" id="postbox-container-1">
127
- <div id="side-sortables">
128
- <?php if ( ! defined( 'ASTRA_THEME_VERSION' ) ) { ?>
129
- <div class="postbox uagb-astra-sidebar">
130
- <h2 class="hndle uagb-normal-cusror">
131
- <span class="dashicons dashicons-admin-customizer"></span>
132
- <span><?php esc_html_e( 'Free Theme for Gutenberg', 'ultimate-addons-for-gutenberg' ); ?></span>
133
- </h2>
134
- <img class="uagb-ast-img" src="<?php echo esc_url( UAGB_URL . 'admin/assets/images/welcome-screen-astra.jpg' ); ?>">
135
- <div class="inside">
136
- <p><?php esc_html_e( 'Join over 200,000+ active users empowering their websites with Astra! From beginners to industry leaders, everyone loves the Astra theme.', 'ultimate-addons-for-gutenberg' ); ?></p>
137
- <h4><?php esc_html_e( 'Why Astra Theme?', 'ultimate-addons-for-gutenberg' ); ?></h4>
138
- <p><strong><?php esc_html_e( 'Faster Performance - ', 'ultimate-addons-for-gutenberg' ); ?></strong><?php esc_html_e( 'Built with speed and performance in mind, Astra follows the best coding standards and lets you build faster loading and better performing websites.', 'ultimate-addons-for-gutenberg' ); ?></p>
139
- <p><strong><?php esc_html_e( 'Easy Customization - ', 'ultimate-addons-for-gutenberg' ); ?></strong><?php esc_html_e( 'With all the settings managed through the customizer, Astra keeps it simple and gives you lots of options to customize everything with a few clicks.', 'ultimate-addons-for-gutenberg' ); ?></p>
140
- <p><strong><?php esc_html_e( 'Pixel Perfect Design - ', 'ultimate-addons-for-gutenberg' ); ?></strong><?php esc_html_e( 'Astra reduces your design time by giving you pixel-perfect FREE ready-to-use websites demos within a huge library of starter sites.', 'ultimate-addons-for-gutenberg' ); ?></p>
141
- <?php
142
- $theme = wp_get_theme();
143
- if ( ! file_exists( get_theme_root() . '/astra/functions.php' ) ) {
144
- ?>
145
- <a class="button button-primary ast-sites-inactive uag-install-theme" href="#" data-slug="astra"><?php esc_html_e( 'Install Astra Now!', 'ultimate-addons-for-gutenberg' ); ?></a>
146
- <?php } elseif ( 'Astra' !== $theme->name || 'Astra' !== $theme->parent_theme && file_exists( get_theme_root() . '/astra/functions.php' ) ) { ?>
147
- <a class="button button-primary ast-sites-inactive uag-activate-theme" href="#" data-slug="astra" data-init="astra/astra.php"><?php esc_html_e( 'Activate Astra Now!', 'ultimate-addons-for-gutenberg' ); ?></a>
148
- <?php } ?>
149
- <div>
150
- </div>
151
- </div>
152
- </div>
153
- <?php } ?>
154
- <div class="postbox">
155
- <h2 class="hndle ast-normal-cusror">
156
- <span class="dashicons dashicons-admin-page"></span>
157
- <span>
158
- <?php printf( esc_html( 'CSS File Generation', 'ultimate-addons-for-gutenberg' ) ); ?>
159
- </span>
160
- </h2>
161
- <div class="inside">
162
- <p class="warning">
163
- </p>
164
- <?php _e( 'Enabling this option will generate CSS files for Ultimate Addons for Gutenberg block styling instead of loading the CSS inline on page.', 'ultimate-addons-for-gutenberg' ); ?>
165
- <p>
166
- <?php
167
- $file_generation_doc_link = esc_url( 'https://www.ultimategutenberg.com/clean-html-with-uag/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard' );
168
- $a_tag_open = '<a target="_blank" rel="noopener" href="' . $file_generation_doc_link . '">';
169
- $a_tag_close = '</a>';
170
-
171
- printf(
172
- /* translators: %1$s: a tag open. */
173
- __( 'Please read %1$s this article %2$s to know more.', 'ultimate-addons-for-gutenberg' ),
174
- $a_tag_open,
175
- $a_tag_close
176
- );
177
- ?>
178
- </p>
179
- <label for="uag_file_generation">
180
- <?php
181
- if ( 'disabled' === $allow_file_generation ) {
182
- $val = 'enabled';
183
- $file_generation_string = __( 'Enable File Generation', 'ultimate-addons-for-gutenberg' );
184
- } else {
185
- $val = 'disabled';
186
- $file_generation_string = __( 'Disable File Generation', 'ultimate-addons-for-gutenberg' );
187
- }
188
- ?>
189
- <button class="button astra-beta-updates uag-file-generation" id="uag_file_generation" data-value="<?php echo esc_attr( $val ); ?>">
190
- <?php echo esc_html( $file_generation_string ); ?>
191
- </button>
192
- </label>
193
- </div>
194
- </div>
195
- <div class="postbox">
196
- <h2 class="hndle uagb-normal-cusror">
197
- <span class="dashicons dashicons-book"></span>
198
- <span><?php esc_html_e( 'Knowledge Base', 'ultimate-addons-for-gutenberg' ); ?></span>
199
- </h2>
200
- <div class="inside">
201
- <p>
202
- <?php esc_html_e( 'Not sure how something works? Take a peek at the knowledge base and learn.', 'ultimate-addons-for-gutenberg' ); ?>
203
- </p>
204
- <a href='<?php echo esc_url( $kb_url ); ?> ' target="_blank" rel="noopener"><?php esc_attr_e( 'Visit Knowledge Base »', 'ultimate-addons-for-gutenberg' ); ?></a>
205
- </div>
206
- </div>
207
- <div class="postbox">
208
- <h2 class="hndle uagb-normal-cusror">
209
- <span class="dashicons dashicons-awards"></span>
210
- <span><?php esc_html_e( 'Five Star Support', 'ultimate-addons-for-gutenberg' ); ?></span>
211
- </h2>
212
- <div class="inside">
213
- <p>
214
- <?php
215
- printf(
216
- /* translators: %1$s: uagb name. */
217
- esc_html__( 'Got a question? Get in touch with %1$s developers. We\'re happy to help!', 'ultimate-addons-for-gutenberg' ),
218
- UAGB_PLUGIN_NAME
219
- );
220
- ?>
221
- </p>
222
- <?php
223
- printf(
224
- /* translators: %1$s: uagb support link. */
225
- '%1$s',
226
- ! empty( $uagb_support_link ) ? '<a href=' . esc_url( $uagb_support_link ) . ' target="_blank" rel="noopener">' . esc_html( $uagb_support_link_text ) . '</a>' :
227
- esc_html( $uagb_support_link_text )
228
- );
229
- ?>
230
- </div>
231
- </div>
232
- </div>
233
- </div>
234
- </div>
235
- <!-- /post-body -->
236
- <br class="clear">
237
- </div>
238
- </div>
1
+ <?php
2
+ /**
3
+ * General Setting Form
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit; // Exit if accessed directly.
10
+ }
11
+
12
+ $blocks = UAGB_Helper::get_block_options();
13
+ $allow_file_generation = UAGB_Helper::allow_file_generation();
14
+ $kb_data = UAGB_Helper::knowledgebase_data();
15
+ $enable_kb = $kb_data['enable_knowledgebase'];
16
+ $kb_url = $kb_data['knowledgebase_url'];
17
+
18
+ $support_data = UAGB_Helper::support_data();
19
+ $enable_support = $support_data['enable_support'];
20
+ $support_url = $support_data['support_url'];
21
+
22
+ $uagb_support_link = apply_filters( 'uagb_support_link', $support_url );
23
+ $uagb_support_link_text = apply_filters( 'uagb_support_link_text', __( 'Submit a Ticket »', 'ultimate-addons-for-gutenberg' ) );
24
+ ?>
25
+
26
+ <div class="uagb-container uagb-general">
27
+ <div id="poststuff">
28
+ <div id="post-body" class="columns-2">
29
+ <div id="post-body-content">
30
+ <!-- All WordPress Notices below header -->
31
+ <h1 class="screen-reader-text"> <?php esc_html_e( 'Ultimate Addons for Gutenberg', 'ultimate-addons-for-gutenberg' ); ?> </h1>
32
+ <div class="widgets postbox">
33
+ <div class="uagb-intro-section">
34
+ <div class="uagb-intro-col">
35
+ <h2>
36
+ <span class="uagb-intro-icon dashicons dashicons-megaphone"></span>
37
+ <span><?php esc_html_e( 'Welcome to the Ultimate Addons for Gutenberg!', 'ultimate-addons-for-gutenberg' ); ?></span>
38
+ </h2>
39
+ <p><?php esc_html_e( 'Thank you for choosing Ultimate Addons for Gutenberg - the most comprehensive library of advanced and creative blocks to build a stunning website and blog faster than ever before!', 'ultimate-addons-for-gutenberg' ); ?></p>
40
+ <a href="https://www.ultimategutenberg.com/getting-started-with-gutenberg-blocks/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard" target="_blank" rel="noopener"><?php esc_attr_e( 'How to use the Ultimate Addons for Gutenberg Blocks »', 'ultimate-addons-for-gutenberg' ); ?></a>
41
+ <p><strong><?php esc_html_e( 'Ready-to-use Full Demo Websites - ', 'ultimate-addons-for-gutenberg' ); ?></strong><?php esc_html_e( 'Get professionally designed 20+ pre-built FREE starter sites built using Gutenberg, Ultimate Addons for Gutenberg and the Astra theme. These can be imported in just a few clicks. Tweak them easily and build awesome websites in minutes!', 'ultimate-addons-for-gutenberg' ); ?></p>
42
+ <a href="https://www.ultimategutenberg.com/ready-websites-for-gutenberg/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard" target="_blank" rel="noopener"><?php esc_attr_e( 'Know More »', 'ultimate-addons-for-gutenberg' ); ?></a>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ <div class="widgets postbox">
47
+ <div class="uagb-intro-section">
48
+ <div class="uagb-intro-col">
49
+ <h2>
50
+ <span class="uagb-intro-icon dashicons dashicons-smiley"></span>
51
+ <span><?php esc_html_e( 'Ever-growing Library of Gutenberg Blocks', 'ultimate-addons-for-gutenberg' ); ?></span>
52
+ </h2>
53
+ <p><?php esc_html_e( 'The easy-to-use and extremely powerful blocks of the Ultimate Addons for Gutenberg (UAG) are now available within your Gutenberg Editor. Search for "UAG" in the block inserter and see all the Ultimate Addons for Gutenberg blocks listed below. Simply click on the block you wish to add on your page or post.', 'ultimate-addons-for-gutenberg' ); ?></p>
54
+ <p><?php esc_html_e( 'Wish to see some real design implementations with these blocks?', 'ultimate-addons-for-gutenberg' ); ?></p>
55
+ <a href="https://www.ultimategutenberg.com/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard" target="_blank" rel="noopener"><?php esc_attr_e( 'See Demos »', 'ultimate-addons-for-gutenberg' ); ?></a>
56
+ <p><?php esc_html_e( 'Check out the detailed knowledge base articles that will help you understand the working of each block.', 'ultimate-addons-for-gutenberg' ); ?></p>
57
+ <a href="<?php echo esc_url( $uagb_support_link ); ?>" target="_blank" rel="noopener"><?php esc_attr_e( 'Visit Knowledge Base »', 'ultimate-addons-for-gutenberg' ); ?></a>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <div class="widgets postbox">
62
+ <h2 class="hndle uagb-flex uagb-widgets-heading"><span><?php esc_html_e( 'Blocks', 'ultimate-addons-for-gutenberg' ); ?></span>
63
+ <div class="uagb-bulk-actions-wrap">
64
+ <a class="bulk-action uagb-activate-all button"> <?php esc_html_e( 'Activate All', 'ultimate-addons-for-gutenberg' ); ?> </a>
65
+ <a class="bulk-action uagb-deactivate-all button"> <?php esc_html_e( 'Deactivate All', 'ultimate-addons-for-gutenberg' ); ?> </a>
66
+ <a class="uagb-reusable-block-link button button-primary" href="<?php echo admin_url( 'edit.php?post_type=wp_block' ); ?>" rel="noopener"> <?php esc_html_e( 'Reusable Blocks', 'ultimate-addons-for-gutenberg' ); ?> <span class="dashicons-controls-repeat dashicons"></span></a>
67
+ </div>
68
+ </h2>
69
+ <div class="uagb-list-section">
70
+ <?php
71
+ if ( is_array( $blocks ) && ! empty( $blocks ) ) :
72
+ ?>
73
+ <ul class="uagb-widget-list">
74
+ <?php
75
+ foreach ( $blocks as $addon => $info ) {
76
+
77
+ $addon = str_replace( 'uagb/', '', $addon );
78
+
79
+ if ( 'column' === $addon ) {
80
+ continue; }
81
+
82
+ $title_url = ( isset( $info['title_url'] ) && ! empty( $info['title_url'] ) ) ? 'href="' . esc_url( $info['title_url'] ) . '"' : '';
83
+ $anchor_target = ( isset( $info['title_url'] ) && ! empty( $info['title_url'] ) ) ? "target='_blank' rel='noopener'" : '';
84
+
85
+ $class = 'deactivate';
86
+ $link = array(
87
+ 'link_class' => 'uagb-activate-widget',
88
+ 'link_text' => __( 'Activate', 'ultimate-addons-for-gutenberg' ),
89
+ );
90
+
91
+ if ( $info['is_activate'] ) {
92
+ $class = 'activate';
93
+ $link = array(
94
+ 'link_class' => 'uagb-deactivate-widget',
95
+ 'link_text' => __( 'Deactivate', 'ultimate-addons-for-gutenberg' ),
96
+ );
97
+ }
98
+
99
+ echo '<li id="' . esc_attr( $addon ) . '" class="' . esc_attr( $class ) . '"><a class="uagb-widget-title"' . $title_url . $anchor_target . ' >' . esc_html( $info['title'] ) . '</a><div class="uagb-widget-link-wrapper">';
100
+
101
+ printf(
102
+ '<a href="%1$s" class="%2$s"> %3$s </a>',
103
+ ( isset( $link['link_url'] ) && ! empty( $link['link_url'] ) ) ? esc_url( $link['link_url'] ) : '#',
104
+ esc_attr( $link['link_class'] ),
105
+ esc_html( $link['link_text'] )
106
+ );
107
+
108
+ if ( $info['is_activate'] && isset( $info['setting_url'] ) ) {
109
+
110
+ printf(
111
+ '<a href="%1$s" class="%2$s"> %3$s </a>',
112
+ esc_url( $info['setting_url'] ),
113
+ esc_attr( 'uagb-advanced-settings' ),
114
+ esc_html( $info['setting_text'] )
115
+ );
116
+ }
117
+
118
+ echo '</div></li>';
119
+ }
120
+ ?>
121
+ </ul>
122
+ <?php endif; ?>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ <div class="postbox-container uagb-sidebar" id="postbox-container-1">
127
+ <div id="side-sortables">
128
+ <?php if ( ! defined( 'ASTRA_THEME_VERSION' ) ) { ?>
129
+ <div class="postbox uagb-astra-sidebar">
130
+ <h2 class="hndle uagb-normal-cusror">
131
+ <span class="dashicons dashicons-admin-customizer"></span>
132
+ <span><?php esc_html_e( 'Free Theme for Gutenberg', 'ultimate-addons-for-gutenberg' ); ?></span>
133
+ </h2>
134
+ <img class="uagb-ast-img" src="<?php echo esc_url( UAGB_URL . 'admin/assets/images/welcome-screen-astra.jpg' ); ?>">
135
+ <div class="inside">
136
+ <p><?php esc_html_e( 'Join over 500,000+ active users empowering their websites with Astra! From beginners to industry leaders, everyone loves the Astra theme.', 'ultimate-addons-for-gutenberg' ); ?></p>
137
+ <h4><?php esc_html_e( 'Why Astra Theme?', 'ultimate-addons-for-gutenberg' ); ?></h4>
138
+ <p><strong><?php esc_html_e( 'Faster Performance - ', 'ultimate-addons-for-gutenberg' ); ?></strong><?php esc_html_e( 'Built with speed and performance in mind, Astra follows the best coding standards and lets you build faster loading and better performing websites.', 'ultimate-addons-for-gutenberg' ); ?></p>
139
+ <p><strong><?php esc_html_e( 'Easy Customization - ', 'ultimate-addons-for-gutenberg' ); ?></strong><?php esc_html_e( 'With all the settings managed through the customizer, Astra keeps it simple and gives you lots of options to customize everything with a few clicks.', 'ultimate-addons-for-gutenberg' ); ?></p>
140
+ <p><strong><?php esc_html_e( 'Pixel Perfect Design - ', 'ultimate-addons-for-gutenberg' ); ?></strong><?php esc_html_e( 'Astra reduces your design time by giving you pixel-perfect FREE ready-to-use websites demos within a huge library of starter sites.', 'ultimate-addons-for-gutenberg' ); ?></p>
141
+ <?php
142
+ $theme = wp_get_theme();
143
+ if ( ! file_exists( get_theme_root() . '/astra/functions.php' ) ) {
144
+ ?>
145
+ <a class="button button-primary ast-sites-inactive uag-install-theme" href="#" data-slug="astra"><?php esc_html_e( 'Install Astra Now!', 'ultimate-addons-for-gutenberg' ); ?></a>
146
+ <?php } elseif ( 'Astra' !== $theme->name || 'Astra' !== $theme->parent_theme && file_exists( get_theme_root() . '/astra/functions.php' ) ) { ?>
147
+ <a class="button button-primary ast-sites-inactive uag-activate-theme" href="#" data-slug="astra" data-init="astra/astra.php"><?php esc_html_e( 'Activate Astra Now!', 'ultimate-addons-for-gutenberg' ); ?></a>
148
+ <?php } ?>
149
+ <div>
150
+ </div>
151
+ </div>
152
+ </div>
153
+ <?php } ?>
154
+ <div class="postbox">
155
+ <h2 class="hndle ast-normal-cusror">
156
+ <span class="dashicons dashicons-admin-page"></span>
157
+ <span>
158
+ <?php printf( esc_html( 'CSS File Generation', 'ultimate-addons-for-gutenberg' ) ); ?>
159
+ </span>
160
+ </h2>
161
+ <div class="inside">
162
+ <p class="warning">
163
+ </p>
164
+ <?php _e( 'Enabling this option will generate CSS files for Ultimate Addons for Gutenberg block styling instead of loading the CSS inline on page.', 'ultimate-addons-for-gutenberg' ); ?>
165
+ <p>
166
+ <?php
167
+ $file_generation_doc_link = esc_url( 'https://www.ultimategutenberg.com/clean-html-with-uag/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard' );
168
+ $a_tag_open = '<a target="_blank" rel="noopener" href="' . $file_generation_doc_link . '">';
169
+ $a_tag_close = '</a>';
170
+
171
+ printf(
172
+ /* translators: %1$s: a tag open. */
173
+ __( 'Please read %1$s this article %2$s to know more.', 'ultimate-addons-for-gutenberg' ),
174
+ $a_tag_open,
175
+ $a_tag_close
176
+ );
177
+ ?>
178
+ </p>
179
+ <label for="uag_file_generation">
180
+ <?php
181
+ if ( 'disabled' === $allow_file_generation ) {
182
+ $val = 'enabled';
183
+ $file_generation_string = __( 'Enable File Generation', 'ultimate-addons-for-gutenberg' );
184
+ } else {
185
+ $val = 'disabled';
186
+ $file_generation_string = __( 'Disable File Generation', 'ultimate-addons-for-gutenberg' );
187
+ }
188
+ ?>
189
+ <button class="button astra-beta-updates uag-file-generation" id="uag_file_generation" data-value="<?php echo esc_attr( $val ); ?>">
190
+ <?php echo esc_html( $file_generation_string ); ?>
191
+ </button>
192
+ </label>
193
+ </div>
194
+ </div>
195
+ <div class="postbox">
196
+ <h2 class="hndle uagb-normal-cusror">
197
+ <span class="dashicons dashicons-book"></span>
198
+ <span><?php esc_html_e( 'Knowledge Base', 'ultimate-addons-for-gutenberg' ); ?></span>
199
+ </h2>
200
+ <div class="inside">
201
+ <p>
202
+ <?php esc_html_e( 'Not sure how something works? Take a peek at the knowledge base and learn.', 'ultimate-addons-for-gutenberg' ); ?>
203
+ </p>
204
+ <a href='<?php echo esc_url( $kb_url ); ?> ' target="_blank" rel="noopener"><?php esc_attr_e( 'Visit Knowledge Base »', 'ultimate-addons-for-gutenberg' ); ?></a>
205
+ </div>
206
+ </div>
207
+ <div class="postbox">
208
+ <h2 class="hndle uagb-normal-cusror">
209
+ <span class="dashicons dashicons-awards"></span>
210
+ <span><?php esc_html_e( 'Five Star Support', 'ultimate-addons-for-gutenberg' ); ?></span>
211
+ </h2>
212
+ <div class="inside">
213
+ <p>
214
+ <?php
215
+ printf(
216
+ /* translators: %1$s: uagb name. */
217
+ esc_html__( 'Got a question? Get in touch with %1$s developers. We\'re happy to help!', 'ultimate-addons-for-gutenberg' ),
218
+ UAGB_PLUGIN_NAME
219
+ );
220
+ ?>
221
+ </p>
222
+ <?php
223
+ printf(
224
+ /* translators: %1$s: uagb support link. */
225
+ '%1$s',
226
+ ! empty( $uagb_support_link ) ? '<a href=' . esc_url( $uagb_support_link ) . ' target="_blank" rel="noopener">' . esc_html( $uagb_support_link_text ) . '</a>' :
227
+ esc_html( $uagb_support_link_text )
228
+ );
229
+ ?>
230
+ </div>
231
+ </div>
232
+ </div>
233
+ </div>
234
+ </div>
235
+ <!-- /post-body -->
236
+ <br class="clear">
237
+ </div>
238
+ </div>
assets/css/blocks/buttons.css CHANGED
@@ -1,3 +1,3 @@
1
- .uagb-buttons__outer-wrap .uagb-buttons__wrap{-js-display:flex;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.uagb-buttons__outer-wrap .uagb-button__active,.uagb-buttons__outer-wrap .uagb-button__active:focus{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{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: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;font-size: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}
2
-
3
  /*# sourceMappingURL=buttons.css.map */
1
+ .uagb-buttons__outer-wrap .uagb-buttons__wrap{-js-display:flex;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.uagb-buttons__outer-wrap .uagb-button__active,.uagb-buttons__outer-wrap .uagb-button__active:focus{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{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: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;font-size: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}
2
+
3
  /*# sourceMappingURL=buttons.css.map */
assets/css/blocks/columns.css CHANGED
@@ -1,3 +1,3 @@
1
- .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:-webkit-box;display:-webkit-flex;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{transform:translateX(-50%) rotateY(180deg)}.uagb-columns__wrap .uagb-columns__shape svg{display:block;width:-webkit-calc(100% + 1.3px);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__wrap .uagb-columns__shape.uagb-columns__shape-above-content{z-index:9;pointer-events:none}.uagb-columns__valign-middle .uagb-column__wrap{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.uagb-columns__valign-top .uagb-column__wrap{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start}.uagb-columns__valign-bottom .uagb-column__wrap{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end}.uagb-columns__inner-wrap{display:flex;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:flex;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:flex;flex-direction:column-reverse}}@media (max-width: 449px){.uagb-columns__wrap .uagb-column__wrap.uagb-column__background-image{background-attachment:scroll !important}}
2
-
3
  /*# sourceMappingURL=columns.css.map */
1
+ .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:-webkit-box;display:-webkit-flex;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{transform:translateX(-50%) rotateY(180deg)}.uagb-columns__wrap .uagb-columns__shape svg{display:block;width:-webkit-calc(100% + 1.3px);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__wrap .uagb-columns__shape.uagb-columns__shape-above-content{z-index:9;pointer-events:none}.uagb-columns__valign-middle .uagb-column__wrap{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.uagb-columns__valign-top .uagb-column__wrap{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start}.uagb-columns__valign-bottom .uagb-column__wrap{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end}.uagb-columns__inner-wrap{display:flex;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:flex;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:flex;flex-direction:column-reverse}}@media (max-width: 449px){.uagb-columns__wrap .uagb-column__wrap.uagb-column__background-image{background-attachment:scroll !important}}
2
+
3
  /*# sourceMappingURL=columns.css.map */
assets/css/blocks/post.css CHANGED
@@ -1,3 +1,3 @@
1
- .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:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;-webkit-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:auto}.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__taxonomy 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;box-sizing:border-box}.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;box-shadow:none;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,.uagb-post-grid .uagb-post__taxonomy{display:inline-block}.uagb-post-grid .uagb-post__author a{box-shadow:none}.uagb-post-grid .uagb-post__author a:hover{color:inherit;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;box-shadow:none;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{-webkit-background-size:cover;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;-moz-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}
2
-
3
  /*# sourceMappingURL=post.css.map */
1
+ .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:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;-webkit-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:auto}.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__taxonomy 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;box-sizing:border-box}.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;box-shadow:none;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,.uagb-post-grid .uagb-post__taxonomy{display:inline-block}.uagb-post-grid .uagb-post__author a{box-shadow:none}.uagb-post-grid .uagb-post__author a:hover{color:inherit;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;box-shadow:none;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{-webkit-background-size:cover;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;-moz-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}
2
+
3
  /*# sourceMappingURL=post.css.map */
classes/class-uagb-admin.php CHANGED
@@ -1,500 +1,500 @@
1
- <?php
2
- /**
3
- * UAGB Admin.
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit; // Exit if accessed directly.
10
- }
11
-
12
- if ( ! class_exists( 'UAGB_Admin' ) ) {
13
-
14
- /**
15
- * Class UAGB_Admin.
16
- */
17
- final class UAGB_Admin {
18
-
19
- /**
20
- * Calls on initialization
21
- *
22
- * @since 0.0.1
23
- */
24
- public static function init() {
25
-
26
- self::initialize_ajax();
27
- self::initialise_plugin();
28
- add_action( 'after_setup_theme', __CLASS__ . '::init_hooks' );
29
- // Activation hook.
30
- add_action( 'admin_init', __CLASS__ . '::activation_redirect' );
31
- }
32
-
33
- /**
34
- * Activation Reset
35
- */
36
- public static function activation_redirect() {
37
- $do_redirect = apply_filters( 'uagb_enable_redirect_activation', get_option( '__uagb_do_redirect' ) );
38
- if ( $do_redirect ) {
39
- update_option( '__uagb_do_redirect', false );
40
- if ( ! is_multisite() ) {
41
- exit( wp_redirect( admin_url( 'options-general.php?page=' . UAGB_SLUG ) ) );
42
- }
43
- }
44
- }
45
-
46
- /**
47
- * Adds the admin menu and enqueues CSS/JS if we are on
48
- * the builder admin settings page.
49
- *
50
- * @since 0.0.1
51
- * @return void
52
- */
53
- public static function init_hooks() {
54
- if ( ! is_admin() ) {
55
- return;
56
- }
57
-
58
- // Add UAGB menu option to admin.
59
- add_action( 'network_admin_menu', __CLASS__ . '::menu' );
60
-
61
- add_action( 'admin_menu', __CLASS__ . '::menu' );
62
-
63
- add_action( 'uagb_render_admin_content', __CLASS__ . '::render_content' );
64
-
65
- add_action( 'admin_notices', __CLASS__ . '::register_notices' );
66
-
67
- add_filter( 'wp_kses_allowed_html', __CLASS__ . '::add_data_attributes', 10, 2 );
68
-
69
- add_action( 'admin_enqueue_scripts', __CLASS__ . '::notice_styles_scripts' );
70
-
71
- add_action( 'wp_ajax_uag-theme-activate', __CLASS__ . '::theme_activate' );
72
-
73
- add_action( 'wp_ajax_uagb_file_generation', __CLASS__ . '::file_generation' );
74
-
75
- // Enqueue admin scripts.
76
- if ( isset( $_REQUEST['page'] ) && UAGB_SLUG === $_REQUEST['page'] ) {
77
- add_action( 'admin_enqueue_scripts', __CLASS__ . '::styles_scripts' );
78
-
79
- self::save_settings();
80
- }
81
-
82
- add_filter( 'rank_math/researches/toc_plugins', __CLASS__ . '::toc_plugin' );
83
- }
84
-
85
- /**
86
- * Filters and Returns a list of allowed tags and attributes for a given context.
87
- *
88
- * @param Array $allowedposttags Array of allowed tags.
89
- * @param String $context Context type (explicit).
90
- * @since 1.8.0
91
- * @return Array
92
- */
93
- public static function add_data_attributes( $allowedposttags, $context ) {
94
- $allowedposttags['a']['data-repeat-notice-after'] = true;
95
-
96
- return $allowedposttags;
97
- }
98
-
99
- /**
100
- * Ask Plugin Rating
101
- *
102
- * @since 1.8.0
103
- */
104
- public static function register_notices() {
105
-
106
- if ( ! current_user_can( 'manage_options' ) ) {
107
- return;
108
- }
109
-
110
- $image_path = UAGB_URL . 'admin/assets/images/uagb_notice.svg';
111
-
112
- Astra_Notices::add_notice(
113
- array(
114
- 'id' => 'uagb-admin-rating',
115
- 'type' => '',
116
- 'message' => sprintf(
117
- '<div class="notice-image">
118
- <img src="%1$s" class="custom-logo" alt="Ultimate Addons for Gutenberg" itemprop="logo"></div>
119
- <div class="notice-content">
120
- <div class="notice-heading">
121
- %2$s
122
- </div>
123
- %3$s<br />
124
- <div class="uagb-review-notice-container">
125
- <a href="%4$s" class="astra-notice-close uagb-review-notice button-primary" target="_blank">
126
- %5$s
127
- </a>
128
- <span class="dashicons dashicons-calendar"></span>
129
- <a href="#" data-repeat-notice-after="%6$s" class="astra-notice-close uagb-review-notice">
130
- %7$s
131
- </a>
132
- <span class="dashicons dashicons-smiley"></span>
133
- <a href="#" class="astra-notice-close uagb-review-notice">
134
- %8$s
135
- </a>
136
- </div>
137
- </div>',
138
- $image_path,
139
- __( 'Wow! The Ultimate Addons for Gutenberg has already powered over 5 pages on your website!', 'ultimate-addons-for-gutenberg' ),
140
- __( 'Would you please mind sharing your views and give it a 5 star rating on the WordPress repository?', 'ultimate-addons-for-gutenberg' ),
141
- 'https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/reviews/?filter=5#new-post',
142
- __( 'Ok, you deserve it', 'ultimate-addons-for-gutenberg' ),
143
- MONTH_IN_SECONDS,
144
- __( 'Nope, maybe later', 'ultimate-addons-for-gutenberg' ),
145
- __( 'I already did', 'ultimate-addons-for-gutenberg' )
146
- ),
147
- 'repeat-notice-after' => MONTH_IN_SECONDS,
148
- 'display-notice-after' => WEEK_IN_SECONDS,
149
- 'priority' => 20,
150
- 'display-with-other-notices' => false,
151
- 'show_if' => UAGB_Helper::show_rating_notice(),
152
- )
153
- );
154
-
155
- if ( class_exists( 'Classic_Editor' ) ) {
156
- $editor_option = get_option( 'classic-editor-replace' );
157
- if ( isset( $editor_option ) && 'block' !== $editor_option ) {
158
- Astra_Notices::add_notice(
159
- array(
160
- 'id' => 'uagb-classic-editor',
161
- 'type' => 'warning',
162
- 'message' => sprintf(
163
- /* translators: %s: html tags */
164
- __( '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' ),
165
- '<a href="' . admin_url( 'options-writing.php' ) . '">',
166
- '</a>',
167
- '<strong>',
168
- '</strong>'
169
- ),
170
- 'priority' => 20,
171
- 'display-with-other-notices' => true,
172
- )
173
- );
174
- }
175
- }
176
- }
177
-
178
- /**
179
- * Initialises the Plugin Name.
180
- *
181
- * @since 0.0.1
182
- * @return void
183
- */
184
- public static function initialise_plugin() {
185
-
186
- define( 'UAGB_PLUGIN_NAME', 'Ultimate Addons for Gutenberg' );
187
- define( 'UAGB_PLUGIN_SHORT_NAME', 'UAG' );
188
- }
189
-
190
- /**
191
- * Renders the admin settings menu.
192
- *
193
- * @since 0.0.1
194
- * @return void
195
- */
196
- public static function menu() {
197
-
198
- if ( ! current_user_can( 'manage_options' ) ) {
199
- return;
200
- }
201
-
202
- add_submenu_page(
203
- 'options-general.php',
204
- UAGB_PLUGIN_SHORT_NAME,
205
- UAGB_PLUGIN_SHORT_NAME,
206
- 'manage_options',
207
- UAGB_SLUG,
208
- __CLASS__ . '::render'
209
- );
210
- }
211
-
212
- /**
213
- * Renders the admin settings.
214
- *
215
- * @since 0.0.1
216
- * @return void
217
- */
218
- public static function render() {
219
- $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
220
- $action = ( ! empty( $action ) && '' !== $action ) ? $action : 'general';
221
- $action = str_replace( '_', '-', $action );
222
-
223
- // Enable header icon filter below.
224
- $uagb_icon = apply_filters( 'uagb_header_top_icon', true );
225
- $uagb_visit_site_url = apply_filters( 'uagb_site_url', 'https://www.ultimategutenberg.com/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard' );
226
- $uagb_header_wrapper_class = apply_filters( 'uagb_header_wrapper_class', array( $action ) );
227
-
228
- include_once UAGB_DIR . 'admin/uagb-admin.php';
229
- }
230
-
231
- /**
232
- * Renders the admin settings content.
233
- *
234
- * @since 0.0.1
235
- * @return void
236
- */
237
- public static function render_content() {
238
-
239
- $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
240
- $action = ( ! empty( $action ) && '' !== $action ) ? $action : 'general';
241
- $action = str_replace( '_', '-', $action );
242
-
243
- $uagb_header_wrapper_class = apply_filters( 'uagb_header_wrapper_class', array( $action ) );
244
-
245
- $base_path = realpath( UAGB_DIR . '/admin' );
246
- $path = realpath( $base_path . '/uagb-' . $action . '.php' );
247
- if ( $path && $base_path && strpos( $path, $base_path ) === 0 ) {
248
- include_once $path;
249
- }
250
- }
251
-
252
- /**
253
- * Enqueues the needed CSS/JS for the builder's admin settings page.
254
- *
255
- * @since 1.8.0
256
- */
257
- public static function notice_styles_scripts() {
258
- // Styles.
259
- wp_enqueue_style( 'uagb-notice-settings', UAGB_URL . 'admin/assets/admin-notice.css', array(), UAGB_VER );
260
- }
261
-
262
- /**
263
- * Enqueues the needed CSS/JS for the builder's admin settings page.
264
- *
265
- * @since 1.0.0
266
- */
267
- public static function styles_scripts() {
268
-
269
- // Styles.
270
- wp_enqueue_style( 'uagb-admin-settings', UAGB_URL . 'admin/assets/admin-menu-settings.css', array(), UAGB_VER );
271
- // Script.
272
- wp_enqueue_script( 'uagb-admin-settings', UAGB_URL . 'admin/assets/admin-menu-settings.js', array( 'jquery', 'wp-util', 'updates' ), UAGB_VER );
273
-
274
- $localize = array(
275
- 'ajax_url' => admin_url( 'admin-ajax.php' ),
276
- 'ajax_nonce' => wp_create_nonce( 'uagb-block-nonce' ),
277
- 'activate' => __( 'Activate', 'ultimate-addons-for-gutenberg' ),
278
- 'deactivate' => __( 'Deactivate', 'ultimate-addons-for-gutenberg' ),
279
- 'enable_beta' => __( 'Enable Beta Updates', 'ultimate-addons-for-gutenberg' ),
280
- 'disable_beta' => __( 'Disable Beta Updates', 'ultimate-addons-for-gutenberg' ),
281
- 'installing_text' => __( 'Installing Astra', 'ultimate-addons-for-gutenberg' ),
282
- 'activating_text' => __( 'Activating Astra', 'ultimate-addons-for-gutenberg' ),
283
- 'activated_text' => __( 'Astra Activated!', 'ultimate-addons-for-gutenberg' ),
284
- );
285
-
286
- wp_localize_script( 'uagb-admin-settings', 'uagb', apply_filters( 'uagb_js_localize', $localize ) );
287
- }
288
-
289
- /**
290
- * Save All admin settings here
291
- */
292
- public static function save_settings() {
293
-
294
- // Only admins can save settings.
295
- if ( ! current_user_can( 'manage_options' ) ) {
296
- return;
297
- }
298
-
299
- // Let extensions hook into saving.
300
- do_action( 'uagb_admin_settings_save' );
301
- }
302
-
303
- /**
304
- * Initialize Ajax
305
- */
306
- public static function initialize_ajax() {
307
- // Ajax requests.
308
- add_action( 'wp_ajax_uagb_activate_widget', __CLASS__ . '::activate_widget' );
309
- add_action( 'wp_ajax_uagb_deactivate_widget', __CLASS__ . '::deactivate_widget' );
310
-
311
- add_action( 'wp_ajax_uagb_bulk_activate_widgets', __CLASS__ . '::bulk_activate_widgets' );
312
- add_action( 'wp_ajax_uagb_bulk_deactivate_widgets', __CLASS__ . '::bulk_deactivate_widgets' );
313
-
314
- add_action( 'wp_ajax_uagb_allow_beta_updates', __CLASS__ . '::allow_beta_updates' );
315
- }
316
-
317
- /**
318
- * Activate module
319
- */
320
- public static function activate_widget() {
321
-
322
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
323
-
324
- $block_id = sanitize_text_field( $_POST['block_id'] );
325
- $blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks', array() );
326
- $blocks[ $block_id ] = $block_id;
327
- $blocks = array_map( 'esc_attr', $blocks );
328
-
329
- // Update blocks.
330
- UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $blocks );
331
- UAGB_Helper::create_specific_stylesheet();
332
-
333
- echo $block_id;
334
-
335
- die();
336
- }
337
-
338
- /**
339
- * Deactivate module
340
- */
341
- public static function deactivate_widget() {
342
-
343
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
344
-
345
- $block_id = sanitize_text_field( $_POST['block_id'] );
346
- $blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks', array() );
347
- $blocks[ $block_id ] = 'disabled';
348
- $blocks = array_map( 'esc_attr', $blocks );
349
-
350
- // Update blocks.
351
- UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $blocks );
352
- UAGB_Helper::create_specific_stylesheet();
353
-
354
- echo $block_id;
355
-
356
- die();
357
- }
358
-
359
- /**
360
- * Activate all module
361
- */
362
- public static function bulk_activate_widgets() {
363
-
364
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
365
-
366
- // Get all widgets.
367
- $all_blocks = UAGB_Helper::$block_list;
368
- $new_blocks = array();
369
-
370
- // Set all extension to enabled.
371
- foreach ( $all_blocks as $slug => $value ) {
372
- $_slug = str_replace( 'uagb/', '', $slug );
373
- $new_blocks[ $_slug ] = $_slug;
374
- }
375
-
376
- // Escape attrs.
377
- $new_blocks = array_map( 'esc_attr', $new_blocks );
378
-
379
- // Update new_extensions.
380
- UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $new_blocks );
381
- UAGB_Helper::create_specific_stylesheet();
382
-
383
- echo 'success';
384
-
385
- die();
386
- }
387
-
388
- /**
389
- * Deactivate all module
390
- */
391
- public static function bulk_deactivate_widgets() {
392
-
393
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
394
-
395
- // Get all extensions.
396
- $old_blocks = UAGB_Helper::$block_list;
397
- $new_blocks = array();
398
-
399
- // Set all extension to enabled.
400
- foreach ( $old_blocks as $slug => $value ) {
401
- $_slug = str_replace( 'uagb/', '', $slug );
402
- $new_blocks[ $_slug ] = 'disabled';
403
- }
404
-
405
- // Escape attrs.
406
- $new_blocks = array_map( 'esc_attr', $new_blocks );
407
-
408
- // Update new_extensions.
409
- UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $new_blocks );
410
- UAGB_Helper::create_specific_stylesheet();
411
-
412
- echo 'success';
413
-
414
- die();
415
- }
416
-
417
- /**
418
- * Allow beta updates
419
- */
420
- public static function allow_beta_updates() {
421
-
422
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
423
-
424
- $beta_update = sanitize_text_field( $_POST['allow_beta'] );
425
-
426
- // Update new_extensions.
427
- UAGB_Helper::update_admin_settings_option( '_uagb_beta', $beta_update );
428
-
429
- echo 'success';
430
-
431
- die();
432
- }
433
-
434
- /**
435
- * File Generation Flag
436
- *
437
- * @since 1.14.0
438
- */
439
- public static function file_generation() {
440
-
441
- check_ajax_referer( 'uagb-block-nonce', 'nonce' );
442
-
443
- wp_send_json_success(
444
- array(
445
- 'success' => true,
446
- 'message' => update_option( '_uagb_allow_file_generation', $_POST['value'] ),
447
- )
448
- );
449
- }
450
-
451
- /**
452
- * Required Plugin Activate
453
- *
454
- * @since 1.8.2
455
- */
456
- public static function theme_activate() {
457
-
458
- if ( ! current_user_can( 'switch_themes' ) || ! isset( $_POST['slug'] ) || ! $_POST['slug'] ) {
459
- wp_send_json_error(
460
- array(
461
- 'success' => false,
462
- 'message' => __( 'No Theme specified', 'ultimate-addons-for-gutenberg' ),
463
- )
464
- );
465
- }
466
-
467
- $theme_slug = ( isset( $_POST['slug'] ) ) ? esc_attr( $_POST['slug'] ) : '';
468
-
469
- $activate = switch_theme( $theme_slug );
470
-
471
- if ( is_wp_error( $activate ) ) {
472
- wp_send_json_error(
473
- array(
474
- 'success' => false,
475
- 'message' => $activate->get_error_message(),
476
- )
477
- );
478
- }
479
-
480
- wp_send_json_success(
481
- array(
482
- 'success' => true,
483
- 'message' => __( 'Theme Successfully Activated', 'ultimate-addons-for-gutenberg' ),
484
- )
485
- );
486
- }
487
-
488
- /**
489
- * Rank Math SEO filter to add kb-elementor to the TOC list.
490
- *
491
- * @param array $plugins TOC plugins.
492
- */
493
- public static function toc_plugin( $plugins ) {
494
- $plugins['ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php'] = 'Ultimate Addons for Gutenberg';
495
- return $plugins;
496
- }
497
- }
498
-
499
- UAGB_Admin::init();
500
- }
1
+ <?php
2
+ /**
3
+ * UAGB Admin.
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit; // Exit if accessed directly.
10
+ }
11
+
12
+ if ( ! class_exists( 'UAGB_Admin' ) ) {
13
+
14
+ /**
15
+ * Class UAGB_Admin.
16
+ */
17
+ final class UAGB_Admin {
18
+
19
+ /**
20
+ * Calls on initialization
21
+ *
22
+ * @since 0.0.1
23
+ */
24
+ public static function init() {
25
+
26
+ self::initialize_ajax();
27
+ self::initialise_plugin();
28
+ add_action( 'after_setup_theme', __CLASS__ . '::init_hooks' );
29
+ // Activation hook.
30
+ add_action( 'admin_init', __CLASS__ . '::activation_redirect' );
31
+ }
32
+
33
+ /**
34
+ * Activation Reset
35
+ */
36
+ public static function activation_redirect() {
37
+ $do_redirect = apply_filters( 'uagb_enable_redirect_activation', get_option( '__uagb_do_redirect' ) );
38
+ if ( $do_redirect ) {
39
+ update_option( '__uagb_do_redirect', false );
40
+ if ( ! is_multisite() ) {
41
+ exit( wp_redirect( admin_url( 'options-general.php?page=' . UAGB_SLUG ) ) );
42
+ }
43
+ }
44
+ }
45
+
46
+ /**
47
+ * Adds the admin menu and enqueues CSS/JS if we are on
48
+ * the builder admin settings page.
49
+ *
50
+ * @since 0.0.1
51
+ * @return void
52
+ */
53
+ public static function init_hooks() {
54
+ if ( ! is_admin() ) {
55
+ return;
56
+ }
57
+
58
+ // Add UAGB menu option to admin.
59
+ add_action( 'network_admin_menu', __CLASS__ . '::menu' );
60
+
61
+ add_action( 'admin_menu', __CLASS__ . '::menu' );
62
+
63
+ add_action( 'uagb_render_admin_content', __CLASS__ . '::render_content' );
64
+
65
+ add_action( 'admin_notices', __CLASS__ . '::register_notices' );
66
+
67
+ add_filter( 'wp_kses_allowed_html', __CLASS__ . '::add_data_attributes', 10, 2 );
68
+
69
+ add_action( 'admin_enqueue_scripts', __CLASS__ . '::notice_styles_scripts' );
70
+
71
+ add_action( 'wp_ajax_uag-theme-activate', __CLASS__ . '::theme_activate' );
72
+
73
+ add_action( 'wp_ajax_uagb_file_generation', __CLASS__ . '::file_generation' );
74
+
75
+ // Enqueue admin scripts.
76
+ if ( isset( $_REQUEST['page'] ) && UAGB_SLUG === $_REQUEST['page'] ) {
77
+ add_action( 'admin_enqueue_scripts', __CLASS__ . '::styles_scripts' );
78
+
79
+ self::save_settings();
80
+ }
81
+
82
+ add_filter( 'rank_math/researches/toc_plugins', __CLASS__ . '::toc_plugin' );
83
+ }
84
+
85
+ /**
86
+ * Filters and Returns a list of allowed tags and attributes for a given context.
87
+ *
88
+ * @param Array $allowedposttags Array of allowed tags.
89
+ * @param String $context Context type (explicit).
90
+ * @since 1.8.0
91
+ * @return Array
92
+ */
93
+ public static function add_data_attributes( $allowedposttags, $context ) {
94
+ $allowedposttags['a']['data-repeat-notice-after'] = true;
95
+
96
+ return $allowedposttags;
97
+ }
98
+
99
+ /**
100
+ * Ask Plugin Rating
101
+ *
102
+ * @since 1.8.0
103
+ */
104
+ public static function register_notices() {
105
+
106
+ if ( ! current_user_can( 'manage_options' ) ) {
107
+ return;
108
+ }
109
+
110
+ $image_path = UAGB_URL . 'admin/assets/images/uagb_notice.svg';
111
+
112
+ Astra_Notices::add_notice(
113
+ array(
114
+ 'id' => 'uagb-admin-rating',
115
+ 'type' => '',
116
+ 'message' => sprintf(
117
+ '<div class="notice-image">
118
+ <img src="%1$s" class="custom-logo" alt="Ultimate Addons for Gutenberg" itemprop="logo"></div>
119
+ <div class="notice-content">
120
+ <div class="notice-heading">
121
+ %2$s
122
+ </div>
123
+ %3$s<br />
124
+ <div class="uagb-review-notice-container">
125
+ <a href="%4$s" class="astra-notice-close uagb-review-notice button-primary" target="_blank">
126
+ %5$s
127
+ </a>
128
+ <span class="dashicons dashicons-calendar"></span>
129
+ <a href="#" data-repeat-notice-after="%6$s" class="astra-notice-close uagb-review-notice">
130
+ %7$s
131
+ </a>
132
+ <span class="dashicons dashicons-smiley"></span>
133
+ <a href="#" class="astra-notice-close uagb-review-notice">
134
+ %8$s
135
+ </a>
136
+ </div>
137
+ </div>',
138
+ $image_path,
139
+ __( 'Wow! The Ultimate Addons for Gutenberg has already powered over 5 pages on your website!', 'ultimate-addons-for-gutenberg' ),
140
+ __( 'Would you please mind sharing your views and give it a 5 star rating on the WordPress repository?', 'ultimate-addons-for-gutenberg' ),
141
+ 'https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/reviews/?filter=5#new-post',
142
+ __( 'Ok, you deserve it', 'ultimate-addons-for-gutenberg' ),
143
+ MONTH_IN_SECONDS,
144
+ __( 'Nope, maybe later', 'ultimate-addons-for-gutenberg' ),
145
+ __( 'I already did', 'ultimate-addons-for-gutenberg' )
146
+ ),
147
+ 'repeat-notice-after' => MONTH_IN_SECONDS,
148
+ 'display-notice-after' => WEEK_IN_SECONDS,
149
+ 'priority' => 20,
150
+ 'display-with-other-notices' => false,
151
+ 'show_if' => UAGB_Helper::show_rating_notice(),
152
+ )
153
+ );
154
+
155
+ if ( class_exists( 'Classic_Editor' ) ) {
156
+ $editor_option = get_option( 'classic-editor-replace' );
157
+ if ( isset( $editor_option ) && 'block' !== $editor_option ) {
158
+ Astra_Notices::add_notice(
159
+ array(
160
+ 'id' => 'uagb-classic-editor',
161
+ 'type' => 'warning',
162
+ 'message' => sprintf(
163
+ /* translators: %s: html tags */
164
+ __( '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' ),
165
+ '<a href="' . admin_url( 'options-writing.php' ) . '">',
166
+ '</a>',
167
+ '<strong>',
168
+ '</strong>'
169
+ ),
170
+ 'priority' => 20,
171
+ 'display-with-other-notices' => true,
172
+ )
173
+ );
174
+ }
175
+ }
176
+ }
177
+
178
+ /**
179
+ * Initialises the Plugin Name.
180
+ *
181
+ * @since 0.0.1
182
+ * @return void
183
+ */
184
+ public static function initialise_plugin() {
185
+
186
+ define( 'UAGB_PLUGIN_NAME', 'Ultimate Addons for Gutenberg' );
187
+ define( 'UAGB_PLUGIN_SHORT_NAME', 'UAG' );
188
+ }
189
+
190
+ /**
191
+ * Renders the admin settings menu.
192
+ *
193
+ * @since 0.0.1
194
+ * @return void
195
+ */
196
+ public static function menu() {
197
+
198
+ if ( ! current_user_can( 'manage_options' ) ) {
199
+ return;
200
+ }
201
+
202
+ add_submenu_page(
203
+ 'options-general.php',
204
+ UAGB_PLUGIN_SHORT_NAME,
205
+ UAGB_PLUGIN_SHORT_NAME,
206
+ 'manage_options',
207
+ UAGB_SLUG,
208
+ __CLASS__ . '::render'
209
+ );
210
+ }
211
+
212
+ /**
213
+ * Renders the admin settings.
214
+ *
215
+ * @since 0.0.1
216
+ * @return void
217
+ */
218
+ public static function render() {
219
+ $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
220
+ $action = ( ! empty( $action ) && '' !== $action ) ? $action : 'general';
221
+ $action = str_replace( '_', '-', $action );
222
+
223
+ // Enable header icon filter below.
224
+ $uagb_icon = apply_filters( 'uagb_header_top_icon', true );
225
+ $uagb_visit_site_url = apply_filters( 'uagb_site_url', 'https://www.ultimategutenberg.com/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard' );
226
+ $uagb_header_wrapper_class = apply_filters( 'uagb_header_wrapper_class', array( $action ) );
227
+
228
+ include_once UAGB_DIR . 'admin/uagb-admin.php';
229
+ }
230
+
231
+ /**
232
+ * Renders the admin settings content.
233
+ *
234
+ * @since 0.0.1
235
+ * @return void
236
+ */
237
+ public static function render_content() {
238
+
239
+ $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
240
+ $action = ( ! empty( $action ) && '' !== $action ) ? $action : 'general';
241
+ $action = str_replace( '_', '-', $action );
242
+
243
+ $uagb_header_wrapper_class = apply_filters( 'uagb_header_wrapper_class', array( $action ) );
244
+
245
+ $base_path = realpath( UAGB_DIR . '/admin' );
246
+ $path = realpath( $base_path . '/uagb-' . $action . '.php' );
247
+ if ( $path && $base_path && strpos( $path, $base_path ) === 0 ) {
248
+ include_once $path;
249
+ }
250
+ }
251
+
252
+ /**
253
+ * Enqueues the needed CSS/JS for the builder's admin settings page.
254
+ *
255
+ * @since 1.8.0
256
+ */
257
+ public static function notice_styles_scripts() {
258
+ // Styles.
259
+ wp_enqueue_style( 'uagb-notice-settings', UAGB_URL . 'admin/assets/admin-notice.css', array(), UAGB_VER );
260
+ }
261
+
262
+ /**
263
+ * Enqueues the needed CSS/JS for the builder's admin settings page.
264
+ *
265
+ * @since 1.0.0
266
+ */
267
+ public static function styles_scripts() {
268
+
269
+ // Styles.
270
+ wp_enqueue_style( 'uagb-admin-settings', UAGB_URL . 'admin/assets/admin-menu-settings.css', array(), UAGB_VER );
271
+ // Script.
272
+ wp_enqueue_script( 'uagb-admin-settings', UAGB_URL . 'admin/assets/admin-menu-settings.js', array( 'jquery', 'wp-util', 'updates' ), UAGB_VER );
273
+
274
+ $localize = array(
275
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
276
+ 'ajax_nonce' => wp_create_nonce( 'uagb-block-nonce' ),
277
+ 'activate' => __( 'Activate', 'ultimate-addons-for-gutenberg' ),
278
+ 'deactivate' => __( 'Deactivate', 'ultimate-addons-for-gutenberg' ),
279
+ 'enable_beta' => __( 'Enable Beta Updates', 'ultimate-addons-for-gutenberg' ),
280
+ 'disable_beta' => __( 'Disable Beta Updates', 'ultimate-addons-for-gutenberg' ),
281
+ 'installing_text' => __( 'Installing Astra', 'ultimate-addons-for-gutenberg' ),
282
+ 'activating_text' => __( 'Activating Astra', 'ultimate-addons-for-gutenberg' ),
283
+ 'activated_text' => __( 'Astra Activated!', 'ultimate-addons-for-gutenberg' ),
284
+ );
285
+
286
+ wp_localize_script( 'uagb-admin-settings', 'uagb', apply_filters( 'uagb_js_localize', $localize ) );
287
+ }
288
+
289
+ /**
290
+ * Save All admin settings here
291
+ */
292
+ public static function save_settings() {
293
+
294
+ // Only admins can save settings.
295
+ if ( ! current_user_can( 'manage_options' ) ) {
296
+ return;
297
+ }
298
+
299
+ // Let extensions hook into saving.
300
+ do_action( 'uagb_admin_settings_save' );
301
+ }
302
+
303
+ /**
304
+ * Initialize Ajax
305
+ */
306
+ public static function initialize_ajax() {
307
+ // Ajax requests.
308
+ add_action( 'wp_ajax_uagb_activate_widget', __CLASS__ . '::activate_widget' );
309
+ add_action( 'wp_ajax_uagb_deactivate_widget', __CLASS__ . '::deactivate_widget' );
310
+
311
+ add_action( 'wp_ajax_uagb_bulk_activate_widgets', __CLASS__ . '::bulk_activate_widgets' );
312
+ add_action( 'wp_ajax_uagb_bulk_deactivate_widgets', __CLASS__ . '::bulk_deactivate_widgets' );
313
+
314
+ add_action( 'wp_ajax_uagb_allow_beta_updates', __CLASS__ . '::allow_beta_updates' );
315
+ }
316
+
317
+ /**
318
+ * Activate module
319
+ */
320
+ public static function activate_widget() {
321
+
322
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
323
+
324
+ $block_id = sanitize_text_field( $_POST['block_id'] );
325
+ $blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks', array() );
326
+ $blocks[ $block_id ] = $block_id;
327
+ $blocks = array_map( 'esc_attr', $blocks );
328
+
329
+ // Update blocks.
330
+ UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $blocks );
331
+ UAGB_Helper::create_specific_stylesheet();
332
+
333
+ echo $block_id;
334
+
335
+ die();
336
+ }
337
+
338
+ /**
339
+ * Deactivate module
340
+ */
341
+ public static function deactivate_widget() {
342
+
343
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
344
+
345
+ $block_id = sanitize_text_field( $_POST['block_id'] );
346
+ $blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks', array() );
347
+ $blocks[ $block_id ] = 'disabled';
348
+ $blocks = array_map( 'esc_attr', $blocks );
349
+
350
+ // Update blocks.
351
+ UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $blocks );
352
+ UAGB_Helper::create_specific_stylesheet();
353
+
354
+ echo $block_id;
355
+
356
+ die();
357
+ }
358
+
359
+ /**
360
+ * Activate all module
361
+ */
362
+ public static function bulk_activate_widgets() {
363
+
364
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
365
+
366
+ // Get all widgets.
367
+ $all_blocks = UAGB_Helper::$block_list;
368
+ $new_blocks = array();
369
+
370
+ // Set all extension to enabled.
371
+ foreach ( $all_blocks as $slug => $value ) {
372
+ $_slug = str_replace( 'uagb/', '', $slug );
373
+ $new_blocks[ $_slug ] = $_slug;
374
+ }
375
+
376
+ // Escape attrs.
377
+ $new_blocks = array_map( 'esc_attr', $new_blocks );
378
+
379
+ // Update new_extensions.
380
+ UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $new_blocks );
381
+ UAGB_Helper::create_specific_stylesheet();
382
+
383
+ echo 'success';
384
+
385
+ die();
386
+ }
387
+
388
+ /**
389
+ * Deactivate all module
390
+ */
391
+ public static function bulk_deactivate_widgets() {
392
+
393
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
394
+
395
+ // Get all extensions.
396
+ $old_blocks = UAGB_Helper::$block_list;
397
+ $new_blocks = array();
398
+
399
+ // Set all extension to enabled.
400
+ foreach ( $old_blocks as $slug => $value ) {
401
+ $_slug = str_replace( 'uagb/', '', $slug );
402
+ $new_blocks[ $_slug ] = 'disabled';
403
+ }
404
+
405
+ // Escape attrs.
406
+ $new_blocks = array_map( 'esc_attr', $new_blocks );
407
+
408
+ // Update new_extensions.
409
+ UAGB_Helper::update_admin_settings_option( '_uagb_blocks', $new_blocks );
410
+ UAGB_Helper::create_specific_stylesheet();
411
+
412
+ echo 'success';
413
+
414
+ die();
415
+ }
416
+
417
+ /**
418
+ * Allow beta updates
419
+ */
420
+ public static function allow_beta_updates() {
421
+
422
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
423
+
424
+ $beta_update = sanitize_text_field( $_POST['allow_beta'] );
425
+
426
+ // Update new_extensions.
427
+ UAGB_Helper::update_admin_settings_option( '_uagb_beta', $beta_update );
428
+
429
+ echo 'success';
430
+
431
+ die();
432
+ }
433
+
434
+ /**
435
+ * File Generation Flag
436
+ *
437
+ * @since 1.14.0
438
+ */
439
+ public static function file_generation() {
440
+
441
+ check_ajax_referer( 'uagb-block-nonce', 'nonce' );
442
+
443
+ wp_send_json_success(
444
+ array(
445
+ 'success' => true,
446
+ 'message' => update_option( '_uagb_allow_file_generation', $_POST['value'] ),
447
+ )
448
+ );
449
+ }
450
+
451
+ /**
452
+ * Required Plugin Activate
453
+ *
454
+ * @since 1.8.2
455
+ */
456
+ public static function theme_activate() {
457
+
458
+ if ( ! current_user_can( 'switch_themes' ) || ! isset( $_POST['slug'] ) || ! $_POST['slug'] ) {
459
+ wp_send_json_error(
460
+ array(
461
+ 'success' => false,
462
+ 'message' => __( 'No Theme specified', 'ultimate-addons-for-gutenberg' ),
463
+ )
464
+ );
465
+ }
466
+
467
+ $theme_slug = ( isset( $_POST['slug'] ) ) ? esc_attr( $_POST['slug'] ) : '';
468
+
469
+ $activate = switch_theme( $theme_slug );
470
+
471
+ if ( is_wp_error( $activate ) ) {
472
+ wp_send_json_error(
473
+ array(
474
+ 'success' => false,
475
+ 'message' => $activate->get_error_message(),
476
+ )
477
+ );
478
+ }
479
+
480
+ wp_send_json_success(
481
+ array(
482
+ 'success' => true,
483
+ 'message' => __( 'Theme Successfully Activated', 'ultimate-addons-for-gutenberg' ),
484
+ )
485
+ );
486
+ }
487
+
488
+ /**
489
+ * Rank Math SEO filter to add kb-elementor to the TOC list.
490
+ *
491
+ * @param array $plugins TOC plugins.
492
+ */
493
+ public static function toc_plugin( $plugins ) {
494
+ $plugins['ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php'] = 'Ultimate Addons for Gutenberg';
495
+ return $plugins;
496
+ }
497
+ }
498
+
499
+ UAGB_Admin::init();
500
+ }
classes/class-uagb-block-helper.php CHANGED
@@ -1,5255 +1,5255 @@
1
- <?php
2
- /**
3
- * UAGB Block Helper.
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit; // Exit if accessed directly.
10
- }
11
-
12
- if ( ! class_exists( 'UAGB_Block_Helper' ) ) {
13
-
14
- /**
15
- * Class UAGB_Block_Helper.
16
- */
17
- class UAGB_Block_Helper {
18
-
19
- /**
20
- * Get Section Block CSS
21
- *
22
- * @since 0.0.1
23
- * @param array $attr The block attributes.
24
- * @param string $id The selector ID.
25
- * @return array The Widget List.
26
- */
27
- public static function get_section_css( $attr, $id ) { // @codingStandardsIgnoreStart
28
-
29
- global $content_width;
30
-
31
- $defaults = UAGB_Helper::$block_list['uagb/section']['attributes'];
32
-
33
- $attr = array_merge( $defaults, $attr );
34
-
35
- $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
36
- $overlay_type = ( isset( $attr['overlayType'] ) ) ? $attr['overlayType'] : 'color';
37
- $gradientOverlayPosition = ( isset( $attr['gradientOverlayPosition'] ) ) ? $attr['gradientOverlayPosition'] : 'center center';
38
- $gradientPosition = ( isset( $attr['gradientPosition'] ) ) ? $attr['gradientPosition'] : 'center center';
39
-
40
- $style = array(
41
- 'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], $attr['desktopPaddingType'] ),
42
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], $attr['desktopPaddingType'] ),
43
- 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], $attr['desktopPaddingType'] ),
44
- 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], $attr['desktopPaddingType'] ),
45
- 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' )
46
- );
47
-
48
- $m_selectors = array();
49
- $t_selectors = array();
50
-
51
- if ( 'right' == $attr['align'] ) {
52
- $style['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMargin'], $attr['desktopMarginType'] );
53
- $style['margin-left'] = 'auto';
54
- $style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] );
55
- $style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] );
56
- } elseif ( 'left' == $attr['align'] ) {
57
- $style['margin-right'] = 'auto';
58
- $style['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMargin'], $attr['desktopMarginType'] );
59
- $style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] );
60
- $style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] );
61
- } elseif ( 'center' == $attr['align'] ) {
62
- $style['margin-right'] = 'auto';
63
- $style['margin-left'] = 'auto';
64
- $style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] );
65
- $style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] );
66
- } else {
67
- $style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] );
68
- $style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] );
69
- }
70
-
71
- if ( "none" != $attr['borderStyle'] ) {
72
- $style["border-style"] = $attr['borderStyle'];
73
- $style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
74
- $style["border-color"] = $attr['borderColor'];
75
- }
76
-
77
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
78
-
79
- $section_width = '100%';
80
-
81
- if ( isset( $attr['contentWidth'] ) ) {
82
-
83
- if ( 'boxed' == $attr['contentWidth'] ) {
84
- if ( isset( $attr['width'] ) ) {
85
- $section_width = UAGB_Helper::get_css_value( $attr['width'], 'px' );
86
- }
87
- }
88
- }
89
-
90
- if ( 'wide' != $attr['align'] && 'full' != $attr['align'] ) {
91
- $style['max-width'] = $section_width;
92
- }
93
-
94
- if ( 'image' === $bg_type ) {
95
-
96
- $style['background-image'] = ( isset( $attr['backgroundImage'] ) && isset( $attr['backgroundImage']['url'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
97
- $style['background-position'] = $position;
98
- $style['background-attachment'] = $attr['backgroundAttachment'];
99
- $style['background-repeat'] = $attr['backgroundRepeat'];
100
- $style['background-size'] = $attr['backgroundSize'];
101
-
102
- }
103
-
104
- $inner_width = '100%';
105
-
106
- if ( isset( $attr['contentWidth'] ) ) {
107
- if ( 'boxed' != $attr['contentWidth'] ) {
108
- if ( isset( $attr['themeWidth'] ) && $attr['themeWidth'] == true ) {
109
- $inner_width = UAGB_Helper::get_css_value( $content_width, 'px' );
110
- } else {
111
- if ( isset( $attr['innerWidth'] ) ) {
112
- $inner_width = UAGB_Helper::get_css_value( $attr['innerWidth'], $attr['innerWidthType'] );
113
- }
114
- }
115
- }
116
- }
117
-
118
- $selectors = array(
119
- '.uagb-section__wrap' => $style,
120
- ' > .uagb-section__video-wrap' => array(
121
- 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
122
- ),
123
- ' > .uagb-section__inner-wrap' => array(
124
- 'max-width' => $inner_width,
125
- ),
126
- );
127
-
128
- if ( 'video' == $bg_type ) {
129
- $selectors[' > .uagb-section__overlay'] = array(
130
- 'opacity' => 1,
131
- 'background-color' => $attr['backgroundVideoColor'],
132
- );
133
- } else if ( 'image' == $bg_type ) {
134
- if( 'color' == $overlay_type ){
135
- $selectors[' > .uagb-section__overlay'] = array(
136
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
137
- 'background-color' => $attr['backgroundImageColor'],
138
- );
139
- }else{
140
- $selectors[' > .uagb-section__overlay']['background-color'] = 'transparent';
141
- $selectors[' > .uagb-section__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
142
-
143
- if ( 'linear' === $attr['gradientOverlayType'] ) {
144
-
145
- $selectors[' > .uagb-section__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientOverlayAngle'] . 'deg, ' . $attr['gradientOverlayColor1'] . ' ' . $attr['gradientOverlayLocation1'] . '%, ' . $attr['gradientOverlayColor2'] . ' ' . $attr['gradientOverlayLocation2'] . '%)';
146
- } else {
147
-
148
- $selectors[' > .uagb-section__overlay']['background-image'] = 'radial-gradient( at ' . $gradientOverlayPosition . ', ' . $attr['gradientOverlayColor1'] . ' ' . $attr['gradientOverlayLocation1'] . '%, ' . $attr['gradientOverlayColor2'] . ' ' . $attr['gradientOverlayLocation2'] . '%)';
149
- }
150
- }
151
- } else if ( 'color' == $bg_type ) {
152
- $selectors[' > .uagb-section__overlay'] = array(
153
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
154
- 'background-color' => $attr['backgroundColor'],
155
- );
156
- } else if ( 'gradient' === $bg_type ) {
157
- $selectors[' > .uagb-section__overlay']['background-color'] = 'transparent';
158
- $selectors[' > .uagb-section__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
159
-
160
- if ( 'linear' === $attr['gradientType'] ) {
161
-
162
- $selectors[' > .uagb-section__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
163
- } else {
164
- $selectors[' > .uagb-section__overlay']['background-image'] = 'radial-gradient( at ' . $gradientPosition . ', ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
165
- }
166
- }
167
-
168
- $selectors[' > .uagb-section__overlay']["border-radius"] = UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' );
169
-
170
- $m_selectors = array(
171
- '.uagb-section__wrap' => array(
172
- 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], $attr['mobilePaddingType'] ),
173
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], $attr['mobilePaddingType'] ),
174
- 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], $attr['mobilePaddingType'] ),
175
- 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], $attr['mobilePaddingType'] ),
176
- )
177
- );
178
-
179
- $t_selectors = array(
180
- '.uagb-section__wrap' => array(
181
- 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], $attr['tabletPaddingType'] ),
182
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], $attr['tabletPaddingType'] ),
183
- 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], $attr['tabletPaddingType'] ),
184
- 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], $attr['tabletPaddingType'] ),
185
- )
186
- );
187
-
188
- if ( 'right' == $attr['align'] ) {
189
- $t_selectors['.uagb-section__wrap']['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMarginTablet'], $attr['tabletMarginType'] );
190
- $t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], $attr['tabletMarginType'] );
191
- $t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], $attr['tabletMarginType'] );
192
-
193
- $m_selectors['.uagb-section__wrap']['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMarginMobile'], $attr['mobileMarginType'] );
194
- $m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], $attr['mobileMarginType'] );
195
- $m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], $attr['mobileMarginType'] );
196
- } elseif ( 'left' == $attr['align'] ) {
197
- $t_selectors['.uagb-section__wrap']['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMarginTablet'], $attr['tabletMarginType'] );
198
- $t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], $attr['tabletMarginType'] );
199
- $t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], $attr['tabletMarginType'] );
200
-
201
- $m_selectors['.uagb-section__wrap']['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMarginMobile'], $attr['mobileMarginType'] );
202
- $m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], $attr['mobileMarginType'] );
203
- $m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], $attr['mobileMarginType'] );
204
- } else {
205
- $t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], $attr['tabletMarginType'] );
206
- $t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], $attr['tabletMarginType'] );
207
-
208
- $m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], $attr['mobileMarginType'] );
209
- $m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], $attr['mobileMarginType'] );
210
- }
211
-
212
- // @codingStandardsIgnoreEnd
213
-
214
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-section-' . $id );
215
-
216
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-section-' . $id );
217
-
218
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-section-' . $id );
219
-
220
- $generated_css = array(
221
- 'desktop' => $desktop,
222
- 'tablet' => $tablet,
223
- 'mobile' => $mobile,
224
- );
225
-
226
- return $generated_css;
227
- }
228
-
229
- /**
230
- * Get Columns Block CSS
231
- *
232
- * @since 1.8.0
233
- * @param array $attr The block attributes.
234
- * @param string $id The selector ID.
235
- * @return array The Widget List.
236
- */
237
- public static function get_columns_css( $attr, $id ) { // @codingStandardsIgnoreStart
238
-
239
- global $content_width;
240
-
241
- $defaults = UAGB_Helper::$block_list['uagb/columns']['attributes'];
242
-
243
- $attr = array_merge( $defaults, $attr );
244
-
245
- $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
246
-
247
- $m_selectors = array();
248
- $t_selectors = array();
249
-
250
- $style = array(
251
- 'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], $attr['desktopPaddingType'] ),
252
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], $attr['desktopPaddingType'] ),
253
- 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], $attr['desktopPaddingType'] ),
254
- 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], $attr['desktopPaddingType'] ),
255
- 'margin-top' => UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] ),
256
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] ),
257
- 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], $attr['desktopMarginType'] ),
258
- );
259
-
260
- if ( "none" != $attr['borderStyle'] ) {
261
- $style["border-style"] = $attr['borderStyle'];
262
- $style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
263
- $style["border-color"] = $attr['borderColor'];
264
- }
265
-
266
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
267
-
268
- if ( 'image' === $bg_type ) {
269
-
270
- $style['background-image'] = ( isset( $attr['backgroundImage'] ) && isset( $attr['backgroundImage']['url'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
271
- $style['background-position'] = $position;
272
- $style['background-attachment'] = $attr['backgroundAttachment'];
273
- $style['background-repeat'] = $attr['backgroundRepeat'];
274
- $style['background-size'] = $attr['backgroundSize'];
275
-
276
- }
277
-
278
- $inner_width = '100%';
279
-
280
- if ( isset( $attr['contentWidth'] ) ) {
281
- if ( 'theme' == $attr['contentWidth'] ) {
282
- $inner_width = UAGB_Helper::get_css_value( $content_width, 'px' );
283
- } else if ( 'custom' == $attr['contentWidth'] ) {
284
- $inner_width = UAGB_Helper::get_css_value( $attr['width'], $attr['widthType'] );
285
- }
286
- }
287
-
288
- $selectors = array(
289
- '.uagb-columns__wrap' => $style,
290
- ' .uagb-columns__video-wrap' => array(
291
- 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
292
- ),
293
- ' > .uagb-columns__inner-wrap' => array(
294
- 'max-width' => $inner_width,
295
- ),
296
- ' .uagb-column__inner-wrap' => array(
297
- 'padding' => UAGB_Helper::get_css_value( $attr['columnGap'], 'px' )
298
- ),
299
- ' .uagb-columns__shape-top svg' => array(
300
- 'height' => UAGB_Helper::get_css_value( $attr['topHeight'], 'px' )
301
- ),
302
- ' .uagb-columns__shape-top .uagb-columns__shape-fill' => array(
303
- 'fill' => $attr['topColor'],
304
- 'opacity' => ( isset( $attr['topDividerOpacity'] ) && '' != $attr['topDividerOpacity'] ) ? ( ( $attr['topDividerOpacity'] ) / 100 ) : ""
305
- ),
306
- ' .uagb-columns__shape-bottom svg' => array(
307
- 'height' => UAGB_Helper::get_css_value( $attr['bottomHeight'], 'px' )
308
- ),
309
- ' .uagb-columns__shape-bottom .uagb-columns__shape-fill' => array(
310
- 'fill' => $attr['bottomColor'],
311
- 'opacity' => ( isset( $attr['bottomDividerOpacity'] ) && '' != $attr['bottomDividerOpacity'] ) ? ( ( $attr['bottomDividerOpacity'] ) / 100 ) : ""
312
- ),
313
- );
314
-
315
- if ( '' !== $attr['topWidth'] ) {
316
- $selectors[' .uagb-columns__shape-top svg']['width'] = "calc( " . $attr['topWidth'] . "% + 1.3px )";
317
- }
318
-
319
- if ( '' !== $attr['bottomWidth'] ) {
320
- $selectors[' .uagb-columns__shape-bottom svg']['width'] = "calc( " . $attr['bottomWidth'] . "% + 1.3px )";
321
- }
322
-
323
- if ( 'video' == $bg_type ) {
324
- $selectors[' > .uagb-columns__overlay'] = array(
325
- 'opacity' => 1,
326
- 'background-color' => $attr['backgroundVideoColor'],
327
- );
328
- } else if ( 'image' == $bg_type ) {
329
- $selectors[' > .uagb-columns__overlay'] = array(
330
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
331
- 'background-color' => $attr['backgroundImageColor'],
332
- );
333
- } else if ( 'color' == $bg_type ) {
334
- $selectors[' > .uagb-columns__overlay'] = array(
335
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
336
- 'background-color' => $attr['backgroundColor'],
337
- );
338
- } elseif ( 'gradient' === $bg_type ) {
339
- $selectors[' > .uagb-columns__overlay']['background-color'] = 'transparent';
340
- $selectors[' > .uagb-columns__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
341
-
342
- if ( 'linear' === $attr['gradientType'] ) {
343
-
344
- $selectors[' > .uagb-columns__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
345
- } else {
346
-
347
- $selectors[' > .uagb-columns__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
348
- }
349
- }
350
-
351
- $selectors[' > .uagb-columns__overlay']["border-radius"] = UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' );
352
-
353
- $m_selectors = array(
354
- '.uagb-columns__wrap' => array(
355
- 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], $attr['mobilePaddingType'] ),
356
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], $attr['mobilePaddingType'] ),
357
- 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], $attr['mobilePaddingType'] ),
358
- 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], $attr['mobilePaddingType'] ),
359
- 'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginMobile'], $attr['mobileMarginType'] ),
360
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], $attr['mobileMarginType'] ),
361
- ),
362
- ' .uagb-columns__shape-bottom svg' => array(
363
- 'height' => UAGB_Helper::get_css_value( $attr['bottomHeightMobile'], 'px' )
364
- ),
365
- ' .uagb-columns__shape-top svg' => array(
366
- 'height' => UAGB_Helper::get_css_value( $attr['topHeightMobile'], 'px' )
367
- ),
368
- );
369
-
370
- $t_selectors = array(
371
- '.uagb-columns__wrap' => array(
372
- 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], $attr['tabletPaddingType'] ),
373
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], $attr['tabletPaddingType'] ),
374
- 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], $attr['tabletPaddingType'] ),
375
- 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], $attr['tabletPaddingType'] ),
376
- 'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginTablet'], $attr['tabletMarginType'] ),
377
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], $attr['tabletMarginType'] ),
378
- ),
379
- ' .uagb-columns__shape-bottom svg' => array(
380
- 'height' => UAGB_Helper::get_css_value( $attr['bottomHeightTablet'], 'px' )
381
- ),
382
- ' .uagb-columns__shape-top svg' => array(
383
- 'height' => UAGB_Helper::get_css_value( $attr['topHeightTablet'], 'px' )
384
- ),
385
- );
386
-
387
- // @codingStandardsIgnoreEnd
388
-
389
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-columns-' . $id );
390
-
391
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-columns-' . $id );
392
-
393
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-columns-' . $id );
394
-
395
- $generated_css = array(
396
- 'desktop' => $desktop,
397
- 'tablet' => $tablet,
398
- 'mobile' => $mobile,
399
- );
400
-
401
- return $generated_css;
402
- }
403
-
404
- /**
405
- * Get Single Column Block CSS
406
- *
407
- * @since 1.8.0
408
- * @param array $attr The block attributes.
409
- * @param string $id The selector ID.
410
- * @return array The Widget List.
411
- */
412
- public static function get_column_css( $attr, $id ) { // @codingStandardsIgnoreStart
413
-
414
- global $content_width;
415
-
416
- $defaults = UAGB_Helper::$block_list['uagb/column']['attributes'];
417
-
418
- $attr = array_merge( $defaults, $attr );
419
-
420
- $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
421
- $overlay_type = ( isset( $attr['overlayType'] ) ) ? $attr['overlayType'] : 'none';
422
-
423
- $style = array(
424
- 'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], $attr['desktopPaddingType'] ),
425
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], $attr['desktopPaddingType'] ),
426
- 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], $attr['desktopPaddingType'] ),
427
- 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], $attr['desktopPaddingType'] ),
428
- 'margin-top' => UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] ),
429
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] ),
430
- 'margin-left' => UAGB_Helper::get_css_value( $attr['leftMargin'], $attr['desktopMarginType'] ),
431
- 'margin-right' => UAGB_Helper::get_css_value( $attr['rightMargin'], $attr['desktopMarginType'] ),
432
- 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
433
- );
434
-
435
- $m_selectors = array();
436
- $t_selectors = array();
437
-
438
- if ( "none" != $attr['borderStyle'] ) {
439
- $style["border-style"] = $attr['borderStyle'];
440
- $style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
441
- $style["border-color"] = $attr['borderColor'];
442
- }
443
-
444
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
445
-
446
- if ( 'image' === $bg_type ) {
447
-
448
- $style['background-image'] = ( isset( $attr['backgroundImage'] ) && isset( $attr['backgroundImage']['url'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
449
- $style['background-position'] = $position;
450
- $style['background-attachment'] = $attr['backgroundAttachment'];
451
- $style['background-repeat'] = $attr['backgroundRepeat'];
452
- $style['background-size'] = $attr['backgroundSize'];
453
-
454
- }
455
-
456
- $selectors = array(
457
- '.uagb-column__wrap' => $style
458
- );
459
-
460
- if ( 'image' == $bg_type ) {
461
- if( 'color' == $overlay_type ){
462
- $selectors[' > .uagb-column__overlay'] = array(
463
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
464
- 'background-color' => $attr['backgroundImageColor'],
465
- );
466
- }else{
467
- $selectors[' > .uagb-column__overlay']['background-color'] = 'transparent';
468
- $selectors[' > .uagb-column__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
469
-
470
- if ( 'linear' === $attr['gradientOverlayType'] ) {
471
-
472
- $selectors[' > .uagb-column__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientOverlayAngle'] . 'deg, ' . $attr['gradientOverlayColor1'] . ' ' . $attr['gradientOverlayLocation1'] . '%, ' . $attr['gradientOverlayColor2'] . ' ' . $attr['gradientOverlayLocation2'] . '%)';
473
- } else {
474
-
475
- $selectors[' > .uagb-column__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientOverlayColor1'] . ' ' . $attr['gradientOverlayLocation1'] . '%, ' . $attr['gradientOverlayColor2'] . ' ' . $attr['gradientOverlayLocation2'] . '%)';
476
- }
477
- }
478
-
479
- } else if ( 'color' == $bg_type ) {
480
- $selectors[' > .uagb-column__overlay'] = array(
481
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
482
- 'background-color' => $attr['backgroundColor'],
483
- );
484
- } elseif ( 'gradient' === $bg_type ) {
485
- $selectors[' > .uagb-column__overlay']['background-color'] = 'transparent';
486
- $selectors[' > .uagb-column__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
487
-
488
- if ( 'linear' === $attr['gradientType'] ) {
489
-
490
- $selectors[' > .uagb-column__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
491
- } else {
492
-
493
- $selectors[' > .uagb-column__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
494
- }
495
- }
496
-
497
- if ( '' != $attr['colWidth'] && 0 != $attr['colWidth'] ) {
498
-
499
- $selectors[''] = array(
500
- "width" => UAGB_Helper::get_css_value( $attr['colWidth'], "%" )
501
- );
502
- }
503
-
504
- $m_selectors = array(
505
- '.uagb-column__wrap' => array(
506
- 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], $attr['tabletPaddingType'] ),
507
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], $attr['tabletPaddingType'] ),
508
- 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], $attr['tabletPaddingType'] ),
509
- 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], $attr['tabletPaddingType'] ),
510
- 'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginMobile'], $attr['tabletMarginType'] ),
511
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], $attr['tabletMarginType'] ),
512
- 'margin-left' => UAGB_Helper::get_css_value( $attr['leftMarginMobile'], $attr['tabletMarginType'] ),
513
- 'margin-right' => UAGB_Helper::get_css_value( $attr['rightMarginMobile'], $attr['tabletMarginType'] ),
514
- )
515
- );
516
-
517
- $t_selectors = array(
518
- '.uagb-column__wrap' => array(
519
- 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], $attr['mobilePaddingType'] ),
520
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], $attr['mobilePaddingType'] ),
521
- 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], $attr['mobilePaddingType'] ),
522
- 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], $attr['mobilePaddingType'] ),
523
- 'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginTablet'], $attr['mobileMarginType'] ),
524
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], $attr['mobileMarginType'] ),
525
- 'margin-left' => UAGB_Helper::get_css_value( $attr['leftMarginTablet'], $attr['mobileMarginType'] ),
526
- 'margin-right' => UAGB_Helper::get_css_value( $attr['rightMarginTablet'], $attr['mobileMarginType'] ),
527
- )
528
- );
529
-
530
- if ( '' != $attr['colWidthTablet'] && 0 != $attr['colWidthTablet'] ) {
531
-
532
- $t_selectors[''] = array(
533
- "width" => UAGB_Helper::get_css_value( $attr['colWidthTablet'], '%' )
534
- );
535
- }
536
-
537
- if ( '' != $attr['colWidthMobile'] && 0 != $attr['colWidthMobile'] ) {
538
-
539
- $m_selectors[''] = array(
540
- "width" => UAGB_Helper::get_css_value( $attr['colWidthMobile'], '%' )
541
- );
542
- }
543
-
544
- // @codingStandardsIgnoreEnd
545
-
546
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-column-' . $id );
547
-
548
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-column-' . $id );
549
-
550
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-column-' . $id );
551
-
552
- $generated_css = array(
553
- 'desktop' => $desktop,
554
- 'tablet' => $tablet,
555
- 'mobile' => $mobile,
556
- );
557
-
558
- return $generated_css;
559
- }
560
-
561
- /**
562
- * Get Advanced Heading Block CSS
563
- *
564
- * @since 0.0.1
565
- * @param array $attr The block attributes.
566
- * @param string $id The selector ID.
567
- * @return array The Widget List.
568
- */
569
- public static function get_adv_heading_css( $attr, $id ) { // @codingStandardsIgnoreStart
570
-
571
- $defaults = UAGB_Helper::$block_list['uagb/advanced-heading']['attributes'];
572
-
573
- $attr = array_merge( $defaults, (array) $attr );
574
-
575
- $m_selectors = array();
576
- $t_selectors = array();
577
-
578
- $selectors = array(
579
- ' .uagb-heading-text' => array(
580
- 'text-align' => $attr['headingAlign'],
581
- 'font-family' => $attr['headFontFamily'],
582
- 'font-weight' => $attr['headFontWeight'],
583
- 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
584
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
585
- 'color' => $attr['headingColor'],
586
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['headSpace'], "px" ),
587
- ),
588
- ' .uagb-separator-wrap' => array(
589
- 'text-align' => $attr['headingAlign'],
590
- ),
591
- ' .uagb-desc-text' => array(
592
- 'text-align' => $attr['headingAlign'],
593
- 'font-family' => $attr['subHeadFontFamily'],
594
- 'font-weight' => $attr['subHeadFontWeight'],
595
- 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ),
596
- 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
597
- 'color' => $attr['subHeadingColor'],
598
- )
599
-
600
- );
601
-
602
- $m_selectors = array(
603
- ' .uagb-heading-text' => array(
604
- 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
605
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
606
- ),
607
- ' .uagb-desc-text' => array(
608
- 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
609
- 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
610
- )
611
-
612
- );
613
-
614
- $t_selectors = array(
615
- ' .uagb-heading-text' => array(
616
- 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
617
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
618
-
619
- ),
620
- ' .uagb-desc-text' => array(
621
- 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
622
- 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
623
- )
624
-
625
- );
626
-
627
- $seperatorStyle = isset( $attr['seperatorStyle'] ) ? $attr['seperatorStyle'] : '';
628
-
629
- if( 'none' !== $seperatorStyle ){
630
- $selectors[' .uagb-separator'] = array (
631
- 'border-top-style' => $attr['seperatorStyle'] ,
632
- 'border-top-width' => UAGB_Helper::get_css_value( $attr['separatorHeight'], "px" ),
633
- 'width' => UAGB_Helper::get_css_value( $attr['separatorWidth'], $attr['separatorWidthType'] ),
634
- 'border-color' => $attr['separatorColor'],
635
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['separatorSpace'], "px" ),
636
- );
637
-
638
- }
639
- // @codingStandardsIgnoreEnd
640
-
641
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-adv-heading-' . $id );
642
-
643
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-adv-heading-' . $id );
644
-
645
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-adv-heading-' . $id );
646
-
647
- $generated_css = array(
648
- 'desktop' => $desktop,
649
- 'tablet' => $tablet,
650
- 'mobile' => $mobile,
651
- );
652
-
653
- return $generated_css;
654
- }
655
-
656
- /**
657
- * Get Multi Buttons Block CSS
658
- *
659
- * @since 0.0.1
660
- * @param array $attr The block attributes.
661
- * @param string $id The selector ID.
662
- * @return array The Widget List.
663
- */
664
- public static function get_buttons_css( $attr, $id ) { // @codingStandardsIgnoreStart
665
-
666
- $defaults = UAGB_Helper::$block_list['uagb/buttons']['attributes'];
667
-
668
- $attr = array_merge( $defaults, (array) $attr );
669
-
670
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
671
-
672
- $m_selectors = array();
673
- $t_selectors = array();
674
-
675
- $selectors = array(
676
- ' .uagb-button__wrapper' => array(
677
- 'margin-left' => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
678
- 'margin-right' => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
679
- ),
680
- ' .uagb-button__wrapper:first-child' => array (
681
- 'margin-left' => 0
682
- ),
683
- ' .uagb-button__wrapper:last-child' => array (
684
- 'margin-right' => 0
685
- ),
686
- );
687
-
688
- if( 'full' === $attr['align'] ) {
689
- $selectors[' .uagb-buttons__wrap .uagb-button__wrapper'] = array (
690
- 'justify-content' => 'center',
691
- '-webkit-box-pack'=> 'center',
692
- '-ms-flex-pack' => 'center',
693
- 'justify-content' => 'center',
694
- '-webkit-box-align' => 'center',
695
- '-ms-flex-align' => 'center',
696
- 'align-items' => 'center',
697
- 'width' => '100%',
698
- 'text-align' => 'center',
699
- );
700
- } else {
701
- $selectors[' .uagb-buttons__wrap'] = array (
702
- 'justify-content' => $alignment,
703
- '-webkit-box-pack'=> $alignment,
704
- '-ms-flex-pack' => $alignment,
705
- 'justify-content' => $alignment,
706
- '-webkit-box-align' => $alignment,
707
- '-ms-flex-align' => $alignment,
708
- 'align-items' => $alignment,
709
- );
710
- }
711
-
712
- foreach ( $attr['buttons'] as $key => $button ) {
713
-
714
- $button['size'] = ( isset( $button['size'] ) ) ? $button['size'] : '';
715
- $button['borderWidth'] = ( isset( $button['borderWidth'] ) ) ? $button['borderWidth'] : '';
716
- $button['borderStyle'] = ( isset( $button['borderStyle'] ) ) ? $button['borderStyle'] : '';
717
- $button['borderColor'] = ( isset( $button['borderColor'] ) ) ? $button['borderColor'] : '';
718
- $button['borderRadius'] = ( isset( $button['borderRadius'] ) ) ? $button['borderRadius'] : '';
719
- $button['background'] = ( isset( $button['background'] ) ) ? $button['background'] : '';
720
- $button['hBackground'] = ( isset( $button['hBackground'] ) ) ? $button['hBackground'] : '';
721
- $button['borderHColor'] = ( isset( $button['borderHColor'] ) ) ? $button['borderHColor'] : '';
722
- $button['vPadding'] = ( isset( $button['vPadding'] ) ) ? $button['vPadding'] : '';
723
- $button['hPadding'] = ( isset( $button['hPadding'] ) ) ? $button['hPadding'] : '';
724
- $button['color'] = ( isset( $button['color'] ) ) ? $button['color'] : '';
725
- $button['hColor'] = ( isset( $button['hColor'] ) ) ? $button['hColor'] : '';
726
- $button['sizeType'] = ( isset( $button['sizeType'] ) ) ? $button['sizeType'] : 'px';
727
- $button['sizeMobile'] = ( isset( $button['sizeMobile'] ) ) ? $button['sizeMobile'] : '';
728
- $button['sizeTablet'] = ( isset( $button['sizeTablet'] ) ) ? $button['sizeTablet'] : '';
729
- $button['lineHeight'] = ( isset( $button['lineHeight'] ) ) ? $button['lineHeight'] : '';
730
- $button['lineHeightType'] = ( isset( $button['lineHeightType'] ) ) ? $button['lineHeightType'] : '';
731
- $button['lineHeightMobile'] = ( isset( $button['lineHeightMobile'] ) ) ? $button['lineHeightMobile'] : '';
732
- $button['lineHeightTablet'] = ( isset( $button['lineHeightTablet'] ) ) ? $button['lineHeightTablet'] : '';
733
-
734
-
735
- if ( $attr['btn_count'] <= $key ) {
736
- break;
737
- }
738
-
739
- $selectors[' .uagb-buttons-repeater-' . $key] = array (
740
- 'font-size' => $button['size'] . $button['sizeType'],
741
- 'line-height' => $button['lineHeight'] . $button['lineHeightType'],
742
- 'font-family' => $attr['fontFamily'],
743
- 'font-weight' => $attr['fontWeight'],
744
- 'border-width' => UAGB_Helper::get_css_value( $button['borderWidth'], 'px' ),
745
- 'border-color' => $button['borderColor'],
746
- 'border-style' => $button['borderStyle'],
747
- 'border-radius' => UAGB_Helper::get_css_value( $button['borderRadius'], 'px' ),
748
- 'background' => $button['background']
749
- );
750
-
751
- $selectors[' .uagb-buttons-repeater-' . $key . ':hover'] = array (
752
- 'background' => $button['hBackground'],
753
- 'border-width' => UAGB_Helper::get_css_value( $button['borderWidth'], 'px' ),
754
- 'border-color' => $button['borderHColor'],
755
- 'border-style' => $button['borderStyle'],
756
- );
757
-
758
- $selectors[' .uagb-buttons-repeater-' . $key . ' a.uagb-button__link'] = array (
759
- 'padding' => $button['vPadding'] . 'px ' . $button['hPadding'] . 'px',
760
- 'color' => $button['color']
761
- );
762
-
763
- $selectors[' .uagb-buttons-repeater-' . $key . ':hover a.uagb-button__link'] = array (
764
- 'color' => $button['hColor']
765
- );
766
-
767
- $m_selectors[' .uagb-buttons-repeater-' . $key] = array (
768
- 'font-size' => UAGB_Helper::get_css_value( $button['sizeMobile'], $button['sizeType'] ),
769
- 'line-height' => UAGB_Helper::get_css_value( $button['lineHeightMobile'], $button['lineHeightType'] ),
770
- );
771
-
772
- $t_selectors[' .uagb-buttons-repeater-' . $key] = array (
773
- 'font-size' => UAGB_Helper::get_css_value( $button['sizeTablet'], $button['sizeType'] ),
774
- 'line-height' => UAGB_Helper::get_css_value( $button['lineHeightTablet'], $button['lineHeightType'] ),
775
- );
776
- }
777
-
778
- if ( "desktop" == $attr['stack'] ) {
779
-
780
- $selectors[" .uagb-button__wrapper"] = array (
781
- 'margin-left' => 0,
782
- 'margin-right' => 0,
783
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
784
- );
785
-
786
- $selectors[" .uagb-buttons__wrap"] = array (
787
- "flex-direction" => "column"
788
- );
789
-
790
- $selectors[" .uagb-button__wrapper:last-child"] = array (
791
- "margin-bottom" => 0
792
- );
793
-
794
- } else if ( "tablet" == $attr['stack'] ) {
795
-
796
- $t_selectors[" .uagb-button__wrapper"] = array (
797
- 'margin-left' => 0,
798
- 'margin-right' => 0,
799
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
800
- );
801
-
802
- $t_selectors[" .uagb-buttons__wrap"] = array (
803
- "flex-direction" => "column"
804
- );
805
-
806
- $t_selectors[" .uagb-button__wrapper:last-child"] = array (
807
- "margin-bottom" => 0
808
- );
809
-
810
- } else if ( "mobile" == $attr['stack'] ) {
811
-
812
- $m_selectors[" .uagb-button__wrapper"] = array (
813
- 'margin-left' => 0,
814
- 'margin-right' => 0,
815
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
816
- );
817
-
818
- $m_selectors[" .uagb-buttons__wrap"] = array (
819
- "flex-direction" => "column"
820
- );
821
-
822
- $m_selectors[" .uagb-button__wrapper:last-child"] = array (
823
- "margin-bottom" => 0
824
- );
825
- }
826
-
827
- // @codingStandardsIgnoreEnd
828
-
829
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-buttons-' . $id );
830
-
831
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-buttons-' . $id );
832
-
833
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-buttons-' . $id );
834
-
835
- $generated_css = array(
836
- 'desktop' => $desktop,
837
- 'tablet' => $tablet,
838
- 'mobile' => $mobile,
839
- );
840
-
841
- return $generated_css;
842
- }
843
-
844
- /**
845
- * Get Info Box CSS
846
- *
847
- * @since 0.0.1
848
- * @param array $attr The block attributes.
849
- * @param string $id The selector ID.
850
- * @return array The Widget List.
851
- */
852
- public static function get_info_box_css( $attr, $id ) { // @codingStandardsIgnoreStart.
853
- $defaults = UAGB_Helper::$block_list['uagb/info-box']['attributes'];
854
-
855
- $attr = array_merge( $defaults, (array) $attr );
856
-
857
- $m_selectors = array();
858
- $t_selectors = array();
859
-
860
- $selectors = array(
861
- ' .uagb-ifb-icon' => array(
862
- 'height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
863
- 'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
864
- 'line-height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
865
- ),
866
- ' .uagb-ifb-icon > span' => array(
867
- 'font-size' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
868
- 'height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
869
- 'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
870
- 'line-height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
871
- 'color' => $attr['iconColor'],
872
- ),
873
- ' .uagb-ifb-icon svg' => array(
874
- 'fill' => $attr['iconColor'],
875
- ),
876
- ' .uagb-ifb-icon:hover > span' => array(
877
- 'color' => $attr['iconHover'] ,
878
- ),
879
- ' .uagb-ifb-icon:hover svg' => array(
880
- 'fill' => $attr['iconHover'] ,
881
- ),
882
-
883
- ' .uagb-infbox__link-to-all:hover ~ .uagb-infobox__content-wrap .uagb-ifb-icon svg' => array(
884
- 'fill' => $attr['iconHover'] ,
885
- ),
886
-
887
- ' .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap' => array(
888
- 'margin-left' => UAGB_Helper::get_css_value( $attr['iconLeftMargin'], 'px' ),
889
- 'margin-right' => UAGB_Helper::get_css_value( $attr['iconRightMargin'], 'px' ),
890
- 'margin-top' => UAGB_Helper::get_css_value( $attr['iconTopMargin'], 'px' ),
891
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['iconBottomMargin'], 'px' ),
892
- ),
893
- ' .uagb-infobox .uagb-ifb-image-content img' => array(
894
- 'border-radius' => UAGB_Helper::get_css_value( $attr['iconimgBorderRadius'], 'px' ),
895
- ),
896
- // CTA style .
897
- ' .uagb-infobox-cta-link' => array(
898
- 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
899
- 'font-family' => $attr['ctaFontFamily'],
900
- 'font-weight' => $attr['ctaFontWeight'],
901
- 'color' => $attr['ctaLinkColor'],
902
- ),
903
- ' .uagb-infobox-cta-link:hover' => array(
904
- 'color' => $attr['ctaLinkHoverColor'],
905
- ),
906
- ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
907
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
908
- 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
909
- 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
910
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
911
- ),
912
- ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
913
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
914
- 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
915
- 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
916
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
917
- ),
918
- ' .uagb-infobox-cta-link svg' => array(
919
- 'fill' => $attr['ctaLinkColor'],
920
- ),
921
- ' .uagb-infobox-cta-link:hover svg' => array(
922
- 'fill' => $attr['ctaLinkHoverColor'],
923
- ),
924
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link' => array(
925
- 'color' => $attr['ctaBtnLinkColor'],
926
- 'background-color' => $attr['ctaBgColor'],
927
- 'border-style' => $attr['ctaBorderStyle'],
928
- 'border-color' => $attr['ctaBorderColor'],
929
- 'border-radius' => UAGB_Helper::get_css_value( $attr['ctaBorderRadius'], 'px' ),
930
- 'border-width' => UAGB_Helper::get_css_value( $attr['ctaBorderWidth'], 'px' ),
931
- 'padding-top' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
932
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
933
- 'padding-left' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
934
- 'padding-right' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
935
-
936
- ),
937
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg' => array(
938
- 'fill' => $attr['ctaBtnLinkColor'],
939
- ),
940
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover' => array(
941
- 'color' => $attr['ctaLinkHoverColor'],
942
- 'background-color' => $attr['ctaBgHoverColor'],
943
- 'border-color' => $attr['ctaBorderhoverColor'],
944
- ),
945
- ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg' => array(
946
- 'fill' => $attr['ctaLinkHoverColor'],
947
- ),
948
- // Prefix Style.
949
- ' .uagb-ifb-title-prefix' => array(
950
- 'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSize'], $attr['prefixFontSizeType'] ),
951
- 'font-family' => $attr['prefixFontFamily'],
952
- 'font-weight' => $attr['prefixFontWeight'],
953
- 'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeight'], $attr['prefixLineHeightType'] ),
954
- 'color' => $attr['prefixColor'],
955
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['prefixSpace'], 'px' ),
956
- ),
957
- // Title Style.
958
- ' .uagb-ifb-title' => array(
959
- 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
960
- 'font-family' => $attr['headFontFamily'],
961
- 'font-weight' => $attr['headFontWeight'],
962
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
963
- 'color' => $attr['headingColor'],
964
- 'margin-bottom' => $attr['headSpace'] . 'px',
965
- ),
966
- // Description Style.
967
- ' .uagb-ifb-desc' => array(
968
- 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ) ,
969
- 'font-family' => $attr['subHeadFontFamily'],
970
- 'font-weight' => $attr['subHeadFontWeight'],
971
- 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
972
- 'color' => $attr['subHeadingColor'],
973
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['subHeadSpace'], 'px' ),
974
- ),
975
- // Seperator.
976
- ' .uagb-ifb-separator' => array(
977
- 'width' => UAGB_Helper::get_css_value( $attr['seperatorWidth'], $attr['separatorWidthType'] ),
978
- 'border-top-width' => UAGB_Helper::get_css_value( $attr['seperatorThickness'], 'px' ),
979
- 'border-top-color' => $attr['seperatorColor'],
980
- 'border-top-style' => $attr['seperatorStyle'],
981
- ),
982
- ' .uagb-ifb-separator-parent' => array(
983
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['seperatorSpace'], 'px' ),
984
- ),
985
- // CTA icon space.
986
- ' .uagb-ifb-align-icon-after' => array(
987
- 'margin-left' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
988
- ),
989
- ' .uagb-ifb-align-icon-before' => array(
990
- 'margin-right' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
991
- ),
992
- );
993
-
994
- if ( $attr['imageWidthType'] ) {
995
- // Image.
996
- $selectors[' .uagb-ifb-image-content > img'] = array(
997
- 'width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
998
- 'max-width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
999
- );
1000
- }
1001
-
1002
- if( 'above-title' === $attr['iconimgPosition'] || 'below-title' === $attr['iconimgPosition'] ){
1003
- $selectors[' .uagb-infobox__content-wrap'] = array(
1004
- 'text-align' => $attr['headingAlign'],
1005
- );
1006
- }
1007
-
1008
- $m_selectors = array(
1009
- ' .uagb-ifb-title-prefix' => array(
1010
- 'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
1011
- 'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightMobile'], $attr['prefixLineHeightType'] ),
1012
- ),
1013
- ' .uagb-ifb-title' => array(
1014
- 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
1015
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
1016
- ),
1017
- ' .uagb-ifb-desc' => array(
1018
- 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
1019
- 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
1020
- ),
1021
- ' .uagb-infobox-cta-link' => array(
1022
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1023
- ),
1024
- ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
1025
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1026
- 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1027
- 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1028
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1029
- ),
1030
- ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
1031
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1032
- 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1033
- 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1034
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1035
- ),
1036
- );
1037
-
1038
- $t_selectors = array(
1039
- ' .uagb-ifb-title-prefix' => array(
1040
- 'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
1041
- ),
1042
- ' .uagb-ifb-title' => array(
1043
- 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
1044
- ),
1045
- ' .uagb-ifb-desc' => array(
1046
- 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
1047
- ),
1048
- ' .uagb-infobox-cta-link' => array(
1049
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1050
- ),
1051
- ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
1052
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1053
- 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1054
- 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1055
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1056
- ),
1057
- ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
1058
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1059
- 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1060
- 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1061
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1062
- ),
1063
- );
1064
-
1065
- // @codingStandardsIgnoreEnd.
1066
-
1067
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-infobox-' . $id );
1068
-
1069
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-infobox-' . $id );
1070
-
1071
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-infobox-' . $id );
1072
-
1073
- $generated_css = array(
1074
- 'desktop' => $desktop,
1075
- 'tablet' => $tablet,
1076
- 'mobile' => $mobile,
1077
- );
1078
-
1079
- return $generated_css;
1080
- }
1081
-
1082
- /**
1083
- * Get CTA CSS
1084
- *
1085
- * @since 1.7.0
1086
- * @param array $attr The block attributes.
1087
- * @param string $id The selector ID.
1088
- * @return array The Widget List.
1089
- */
1090
- public static function get_call_to_action_css( $attr, $id ) { // @codingStandardsIgnoreStart.
1091
- $defaults = UAGB_Helper::$block_list['uagb/call-to-action']['attributes'];
1092
-
1093
- $attr = array_merge( $defaults, (array) $attr );
1094
-
1095
- $t_selectors = array();
1096
- $m_selectors = array();
1097
-
1098
- $selectors = array(
1099
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1100
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
1101
- 'font-family' => $attr['ctaFontFamily'],
1102
- 'font-weight' => $attr['ctaFontWeight'],
1103
- 'color' => $attr['ctaBtnLinkColor'],
1104
- ),
1105
- ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-text ' => array(
1106
- 'color' => $attr['ctaLinkHoverColor'],
1107
- ),
1108
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1109
- 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1110
- 'font-family' => $attr['ctaFontFamily'],
1111
- 'font-weight' => $attr['ctaFontWeight'],
1112
- 'color' => $attr['ctaBtnLinkColor'],
1113
- 'background-color' => $attr['ctaBgColor'],
1114
- 'border-style' => $attr['ctaBorderStyle'],
1115
- 'border-color' => $attr['ctaBorderColor'],
1116
- 'border-radius' => UAGB_Helper::get_css_value( $attr['ctaBorderRadius'], 'px' ),
1117
- 'border-width' => UAGB_Helper::get_css_value( $attr['ctaBorderWidth'], 'px' ),
1118
- 'padding-top' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
1119
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
1120
- 'padding-left' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
1121
- 'padding-right' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
1122
- ),
1123
- ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-button' => array(
1124
- 'color' => $attr['ctaLinkHoverColor'],
1125
- 'background-color' => $attr['ctaBgHoverColor'],
1126
- 'border-color' => $attr['ctaBorderhoverColor'],
1127
- ),
1128
- ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1129
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
1130
- 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
1131
- 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
1132
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
1133
- ),
1134
- ' .uagb-cta__button-wrapper .uagb-cta__block-link svg' => array(
1135
- 'fill' => $attr['ctaBtnLinkColor'],
1136
- ),
1137
- ' .uagb-cta__button-wrapper:hover .uagb-cta__block-link svg' => array(
1138
- 'fill' => $attr['ctaLinkHoverColor'],
1139
- ),
1140
- ' .uagb-cta__title' => array(
1141
- 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
1142
- 'font-family' => $attr['titleFontFamily'],
1143
- 'font-weight' => $attr['titleFontWeight'],
1144
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
1145
- 'color' => $attr['titleColor'],
1146
- 'margin-bottom' => $attr['titleSpace']. "px",
1147
- ),
1148
- ' .uagb-cta__desc' => array(
1149
- 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
1150
- 'font-family' => $attr['descFontFamily'],
1151
- 'font-weight' => $attr['descFontWeight'],
1152
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
1153
- 'color' => $attr['descColor'],
1154
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
1155
- ),
1156
- ' .uagb-cta__align-button-after' => array(
1157
- 'margin-left' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
1158
- ),
1159
- ' .uagb-cta__align-button-before' => array(
1160
- 'margin-right' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
1161
- ),
1162
- );
1163
-
1164
- $selectors[' .uagb-cta__content-wrap'] = array(
1165
- 'text-align' => $attr['textAlign'],
1166
- );
1167
-
1168
- if( 'left' === $attr['textAlign'] && "right" === $attr['ctaPosition'] ){
1169
- $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1170
- 'margin-left' => UAGB_Helper::get_css_value( $attr['ctaLeftSpace'], 'px' ),
1171
- 'margin-right' => '0',
1172
- );
1173
- }
1174
-
1175
- if( 'right' === $attr['textAlign'] && 'right' === $attr['ctaPosition'] ){
1176
- $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1177
- 'margin-right' => UAGB_Helper::get_css_value( $attr['ctaRightSpace'], 'px' ),
1178
- 'margin-left' => '0',
1179
- );
1180
- }
1181
-
1182
- if( $attr['ctaPosition'] === "right" && ( $attr['ctaType'] === 'text' || $attr['ctaType'] === 'button' ) ){
1183
- $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
1184
- "width" => UAGB_Helper::get_css_value( $attr['contentWidth'], '%' ),
1185
- );
1186
-
1187
- $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
1188
- "width" => UAGB_Helper::get_css_value( (100 - $attr['contentWidth'] ), '%' ),
1189
- );
1190
- }
1191
-
1192
- $t_selectors = array(
1193
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1194
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1195
- ),
1196
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1197
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1198
- ),
1199
- ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1200
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1201
- 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1202
- 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1203
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1204
- ),
1205
- ' .uagb-cta__title' => array(
1206
- 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
1207
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
1208
- ),
1209
- ' .uagb-cta__desc' => array(
1210
- 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
1211
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
1212
- ),
1213
- );
1214
-
1215
- $m_selectors = array(
1216
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1217
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1218
- ),
1219
- ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1220
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1221
- ),
1222
- ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1223
- 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1224
- 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1225
- 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1226
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1227
- ),
1228
- ' .uagb-cta__title' => array(
1229
- 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'],$attr['titleFontSizeType'] ),
1230
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'],$attr['titleLineHeightType'] ),
1231
- ),
1232
- ' .uagb-cta__desc' => array(
1233
- 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'],$attr['descFontSizeType'] ),
1234
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
1235
- ),
1236
- );
1237
-
1238
- // @codingStandardsIgnoreEnd.
1239
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cta-block-' . $id );
1240
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-cta-block-' . $id );
1241
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-cta-block-' . $id );
1242
-
1243
- $generated_css = array(
1244
- 'desktop' => $desktop,
1245
- 'tablet' => $tablet,
1246
- 'mobile' => $mobile,
1247
- );
1248
-
1249
- return $generated_css;
1250
- }
1251
-
1252
- /**
1253
- * Get Testimonial CSS
1254
- *
1255
- * @since 0.0.1
1256
- * @param array $attr The block attributes.
1257
- * @param string $id The selector ID.
1258
- * @return array The Widget List.
1259
- */
1260
- public static function get_testimonial_css( $attr, $id ) { // @codingStandardsIgnoreStart.
1261
-
1262
- $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
1263
-
1264
- $attr = array_merge( $defaults, (array) $attr );
1265
-
1266
- $img_align = 'center';
1267
- if( 'left' === $attr['headingAlign']){
1268
- $img_align = 'flex-start';
1269
- }else if( 'right' === $attr['headingAlign']){
1270
- $img_align = 'flex-end';
1271
- }
1272
-
1273
- $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
1274
-
1275
- $selectors = array(
1276
- ' .uagb-testimonial__wrap' => array(
1277
- 'padding-left' => UAGB_Helper::get_css_value( ( ($attr['columnGap']) /2 ), 'px' ),
1278
- 'padding-right' => UAGB_Helper::get_css_value( ( ($attr['columnGap']) /2 ), 'px' ),
1279
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['rowGap'], 'px' ),
1280
- ),
1281
- ' .uagb-testimonial__wrap .uagb-tm__image-content' => array(
1282
- 'padding-left' => UAGB_Helper::get_css_value( $attr['imgHrPadding'], 'px' ),
1283
- 'padding-right' => UAGB_Helper::get_css_value( $attr['imgHrPadding'], 'px' ),
1284
- 'padding-top' => UAGB_Helper::get_css_value( $attr['imgVrPadding'], 'px' ),
1285
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['imgVrPadding'], 'px' ),
1286
- ),
1287
- ' .uagb-tm__image img' => array(
1288
- 'width' => UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
1289
- 'max-width' => UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
1290
- ),
1291
- ' .uagb-tm__content' => array(
1292
- 'text-align' => $attr['headingAlign'],
1293
- 'padding' => UAGB_Helper::get_css_value( $attr['contentPadding'], 'px' ),
1294
- ),
1295
- ' .uagb-tm__author-name' => array(
1296
- 'color' => $attr['authorColor'],
1297
- 'font-size' => $attr['nameFontSize'] . $attr['nameFontSizeType'],
1298
- 'font-family' => $attr['nameFontFamily'],
1299
- 'font-weight' => $attr['nameFontWeight'],
1300
- 'line-height' => $attr['nameLineHeight'] . $attr['nameLineHeightType'],
1301
- 'margin-bottom' => $attr['nameSpace'] . 'px',
1302
- ),
1303
- ' .uagb-tm__company' => array(
1304
- 'color' => $attr['companyColor'],
1305
- 'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSize'], $attr['companyFontSizeType'] ),
1306
- 'font-family' => $attr['companyFontFamily'],
1307
- 'font-weight' => $attr['companyFontWeight'],
1308
- 'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeight'], $attr['companyLineHeightType'] ),
1309
- ),
1310
- ' .uagb-tm__desc' => array(
1311
- 'color' => $attr['descColor'],
1312
- 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
1313
- 'font-family' => $attr['descFontFamily'],
1314
- 'font-weight' => $attr['descFontWeight'],
1315
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
1316
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
1317
- ),
1318
- ' .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content' => array(
1319
- 'background-color' => $attr['backgroundColor'],
1320
- ),
1321
- ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content' => array(
1322
- 'background-image' => ( isset( $attr['backgroundImage']['url'] ) && isset( $attr['backgroundImage']['url'] ) ) ? 'url("'.$attr['backgroundImage']['url'].'")' : null,
1323
- 'background-position'=> $position,
1324
- 'background-repeat'=> $attr['backgroundRepeat'],
1325
- 'background-size'=> $attr['backgroundSize'],
1326
- ),
1327
- ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay' => array(
1328
- 'background-color' => $attr['backgroundImageColor'],
1329
- 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? ( ( 100 - $attr['backgroundOpacity'] ) / 100 ) : '0.5',
1330
- ),
1331
- ' .uagb-testimonial__wrap .uagb-tm__content' => array(
1332
- 'border-color' => $attr['borderColor'],
1333
- 'border-style' => $attr['borderStyle'],
1334
- 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
1335
- 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
1336
- ),
1337
- ' ul.slick-dots li button:before' => array(
1338
- 'color' => $attr['arrowColor'],
1339
- ),
1340
- ' ul.slick-dots li.slick-active button:before' => array(
1341
- 'color' => $attr['arrowColor'],
1342
- ),
1343
- ' .uagb-tm__image-position-top .uagb-tm__image-content' => array(
1344
- 'justify-content' => $img_align,
1345
- ),
1346
- );
1347
-
1348
- if( 'dots' === $attr['arrowDots'] ){
1349
- $selectors['.uagb-slick-carousel'] = array(
1350
- 'padding' => '0 0 35px 0',
1351
- );
1352
- }
1353
-
1354
- if( '1' === $attr['test_item_count'] || $attr['test_item_count'] === $attr['columns'] ){
1355
- $selectors['.uagb-slick-carousel'] = array(
1356
- 'padding' => 0,
1357
- );
1358
- }
1359
-
1360
- $t_selectors = array(
1361
- ' .uagb-tm__author-name' => array(
1362
- 'font-size' => UAGB_Helper::get_css_value( $attr['nameFontSizeTablet'], $attr['nameFontSizeType'] ),
1363
- 'line-height' => UAGB_Helper::get_css_value( $attr['nameLineHeightTablet'], $attr['nameLineHeightType'] ),
1364
- ),
1365
- ' .uagb-tm__company' => array(
1366
- 'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSizeTablet'], $attr['companyFontSizeType'] ),
1367
- 'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeightTablet'], $attr['companyLineHeightType'] ),
1368
- ),
1369
- ' .uagb-tm__desc' => array(
1370
- 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
1371
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
1372
- ),
1373
- );
1374
-
1375
- $m_selectors = array(
1376
- ' .uagb-tm__author-name' => array(
1377
- 'font-size' => UAGB_Helper::get_css_value( $attr['nameFontSizeMobile'], $attr['nameFontSizeType'] ),
1378
- 'line-height' => UAGB_Helper::get_css_value( $attr['nameLineHeightMobile'], $attr['nameLineHeightType'] ),
1379
- ),
1380
- ' .uagb-tm__company' => array(
1381
- 'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSizeMobile'], $attr['companyFontSizeType'] ),
1382
- 'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeightMobile'], $attr['companyLineHeightType'] ),
1383
- ),
1384
- ' .uagb-tm__desc' => array(
1385
- 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
1386
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
1387
- ),
1388
- ' .uagb-tm__content' => array(
1389
- 'text-align' => 'center',
1390
- )
1391
- );
1392
-
1393
-
1394
- // @codingStandardsIgnoreEnd.
1395
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-testimonial-' . $id );
1396
-
1397
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-testimonial-' . $id );
1398
-
1399
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-testimonial-' . $id );
1400
-
1401
- $generated_css = array(
1402
- 'desktop' => $desktop,
1403
- 'tablet' => $tablet,
1404
- 'mobile' => $mobile,
1405
- );
1406
-
1407
- return $generated_css;
1408
- }
1409
-
1410
- /**
1411
- * Get Team Block CSS
1412
- *
1413
- * @since 0.0.1
1414
- * @param array $attr The block attributes.
1415
- * @param string $id The selector ID.
1416
- * @return array The Widget List.
1417
- */
1418
- public static function get_team_css( $attr, $id ) { // @codingStandardsIgnoreStart
1419
-
1420
- $defaults = UAGB_Helper::$block_list['uagb/team']['attributes'];
1421
-
1422
- $attr = array_merge( $defaults, (array) $attr );
1423
-
1424
- $m_selectors = array();
1425
- $t_selectors = array();
1426
-
1427
- $selectors = array(
1428
- " p.uagb-team__desc" => array(
1429
- "font-family" => $attr['descFontFamily'],
1430
- "font-weight" => $attr['descFontWeight'],
1431
- "font-size" => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
1432
- "line-height" => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
1433
- "color" => $attr['descColor'],
1434
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
1435
- ),
1436
- " .uagb-team__prefix" => array(
1437
- "font-family" => $attr['prefixFontFamily'],
1438
- "font-weight" => $attr['prefixFontWeight'],
1439
- "font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSize'], $attr['prefixFontSizeType'] ),
1440
- "line-height" => UAGB_Helper::get_css_value( $attr['prefixLineHeight'], $attr['prefixLineHeightType'] ),
1441
- "color" => $attr['prefixColor'],
1442
- ),
1443
- " .uagb-team__desc-wrap" => array(
1444
- "margin-top" => UAGB_Helper::get_css_value( $attr['prefixSpace'], 'px' ),
1445
- ),
1446
- " .uagb-team__social-icon a" => array(
1447
- "color" => $attr['socialColor'],
1448
- "font-size" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1449
- "width" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1450
- "height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1451
- "line-height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1452
- ),
1453
- " .uagb-team__social-icon svg" => array(
1454
- "fill" => $attr['socialColor'],
1455
- "width" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1456
- "height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1457
- ),
1458
- " .uagb-team__social-icon:hover a" => array(
1459
- "color" => $attr['socialHoverColor'],
1460
- ),
1461
- " .uagb-team__social-icon:hover svg" => array(
1462
- "fill" => $attr['socialHoverColor'],
1463
- ),
1464
- ".uagb-team__image-position-left .uagb-team__social-icon" => array(
1465
- "margin-right" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
1466
- "margin-left" => "0",
1467
- ),
1468
- ".uagb-team__image-position-right .uagb-team__social-icon" => array(
1469
- "margin-left" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
1470
- "margin-right" => "0",
1471
- ),
1472
- ".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon" => array(
1473
- "margin-right" => UAGB_Helper::get_css_value( ( $attr['socialSpace'] / 2 ), 'px' ),
1474
- "margin-left" => UAGB_Helper::get_css_value( ( $attr['socialSpace'] / 2 ), 'px' ),
1475
- ),
1476
- ".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon" => array(
1477
- "margin-right" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
1478
- "margin-left" => "0",
1479
- ),
1480
- ".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon" => array(
1481
- "margin-left" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
1482
- "margin-right" => "0",
1483
- ),
1484
- " .uagb-team__image-wrap" => array(
1485
- "margin-top" => UAGB_Helper::get_css_value( $attr['imgTopMargin'], 'px' ),
1486
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['imgBottomMargin'], 'px' ),
1487
- "margin-left" => UAGB_Helper::get_css_value( $attr['imgLeftMargin'], 'px' ),
1488
- "margin-right" => UAGB_Helper::get_css_value( $attr['imgRightMargin'], 'px' ),
1489
- "width" => UAGB_Helper::get_css_value( $attr['imgWidth'], 'px' )
1490
- ),
1491
- );
1492
-
1493
- if( 'above' == $attr['imgPosition'] ) {
1494
- if ( 'center' == $attr['align'] ) {
1495
- $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1496
- $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1497
- } else if ( 'left' == $attr['align'] ) {
1498
- $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1499
- } else if ( 'right' == $attr['align'] ) {
1500
- $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1501
- }
1502
- }
1503
-
1504
- if ( "above" != $attr['imgPosition'] ) {
1505
- if ( "middle" == $attr['imgAlign'] ) {
1506
- $selectors[" .uagb-team__image-wrap"]["align-self"] = "center";
1507
- }
1508
- }
1509
-
1510
- $selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1511
- "font-family" => $attr['titleFontFamily'],
1512
- "font-weight" => $attr['titleFontWeight'],
1513
- "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
1514
- "line-height" => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
1515
- "color" => $attr['titleColor'],
1516
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['titleSpace'], 'px' ),
1517
- );
1518
-
1519
- $m_selectors = array(
1520
- " p.uagb-team__desc" => array(
1521
- "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
1522
- ),
1523
- " .uagb-team__prefix" => array(
1524
- "font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
1525
- ),
1526
- " .uagb-team__social-icon a" => array(
1527
- "font-size" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1528
- "width" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1529
- "height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1530
- "line-height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1531
- ),
1532
- " .uagb-team__social-icon svg" => array(
1533
- "width" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1534
- "height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1535
- ),
1536
- );
1537
-
1538
- $t_selectors = array(
1539
- " p.uagb-team__desc" => array(
1540
- "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
1541
- ),
1542
- " .uagb-team__prefix" => array(
1543
- "font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
1544
- ),
1545
- " .uagb-team__social-icon a" => array(
1546
- "font-size" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1547
- "width" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1548
- "height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1549
- "line-height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1550
- ),
1551
- " .uagb-team__social-icon svg" => array(
1552
- "width" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1553
- "height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1554
- ),
1555
- );
1556
-
1557
- $m_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1558
- "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
1559
- );
1560
-
1561
- $t_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1562
- "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
1563
- );
1564
-
1565
- // @codingStandardsIgnoreEnd
1566
-
1567
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-team-' . $id );
1568
-
1569
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-team-' . $id );
1570
-
1571
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-team-' . $id );
1572
-
1573
- $generated_css = array(
1574
- 'desktop' => $desktop,
1575
- 'tablet' => $tablet,
1576
- 'mobile' => $mobile,
1577
- );
1578
-
1579
- return $generated_css;
1580
- }
1581
-
1582
- /**
1583
- * Get Social Share Block CSS
1584
- *
1585
- * @since 0.0.1
1586
- * @param array $attr The block attributes.
1587
- * @param string $id The selector ID.
1588
- * @return array The Widget List.
1589
- */
1590
- public static function get_social_share_css( $attr, $id ) { // @codingStandardsIgnoreStart
1591
-
1592
- $defaults = UAGB_Helper::$block_list['uagb/social-share']['attributes'];
1593
-
1594
- $attr = array_merge( $defaults, (array) $attr );
1595
-
1596
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1597
-
1598
- $m_selectors = array();
1599
- $t_selectors = array();
1600
-
1601
- $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper"] = array(
1602
- "margin-left" => 0,
1603
- "margin-right" => 0,
1604
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
1605
- );
1606
-
1607
- $selectors[".uagb-social-share__layout-vertical .uagb-social-share__wrap"] = array(
1608
- "flex-direction" => "column"
1609
- );
1610
-
1611
- $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper:last-child"] = array(
1612
- "margin-bottom" => 0
1613
- );
1614
-
1615
- $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1616
- "margin-left" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
1617
- "margin-right" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
1618
- );
1619
-
1620
- $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:first-child"] = array(
1621
- "margin-left" => 0
1622
- );
1623
-
1624
- $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:last-child"] = array(
1625
- "margin-right" => 0
1626
- );
1627
-
1628
- $selectors[" .uagb-ss__wrapper"] = array(
1629
- "border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' )
1630
- );
1631
-
1632
- $selectors[" .uagb-ss__source-wrap"] = array(
1633
- "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1634
- );
1635
-
1636
- $selectors[" .uagb-ss__source-wrap svg"] = array(
1637
- "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1638
- "height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1639
- );
1640
-
1641
- $selectors[" .uagb-ss__source-image"] = array(
1642
- "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
1643
- );
1644
-
1645
- $selectors[" .uagb-ss__source-icon"] = array(
1646
- "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1647
- "height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1648
- "font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1649
- "line-height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
1650
- );
1651
-
1652
-
1653
- $t_selectors[" .uagb-ss__source-wrap"] = array(
1654
- "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1655
- "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1656
- "line-height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1657
- );
1658
-
1659
- $t_selectors[" .uagb-ss__source-wrap svg"] = array(
1660
- "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1661
- "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1662
- );
1663
-
1664
- $t_selectors[" .uagb-ss__source-image"] = array(
1665
- "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1666
- );
1667
-
1668
- $t_selectors[" .uagb-ss__source-icon"] = array(
1669
- "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1670
- "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1671
- "font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1672
- "line-height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1673
- );
1674
- $t_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1675
- "margin-left" => 0,
1676
- "margin-right" => 0
1677
- );
1678
-
1679
-
1680
- $m_selectors[" .uagb-ss__source-wrap"] = array(
1681
- "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1682
- "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1683
- "line-height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1684
- );
1685
-
1686
- $m_selectors[" .uagb-ss__source-wrap svg"] = array(
1687
- "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1688
- "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1689
- );
1690
-
1691
- $m_selectors[" .uagb-ss__source-image"] = array(
1692
- "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1693
- );
1694
-
1695
- $m_selectors[" .uagb-ss__source-icon"] = array(
1696
- "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1697
- "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1698
- "font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1699
- "line-height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1700
- );
1701
- $m_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1702
- "margin-left" => 0,
1703
- "margin-right" => 0
1704
- );
1705
-
1706
-
1707
- foreach ( $attr['socials'] as $key => $social ) {
1708
-
1709
- $social['icon_color'] = ( isset( $social['icon_color'] ) ) ? $social['icon_color'] : '';
1710
- $social['icon_bg_color'] = ( isset( $social['icon_bg_color'] ) ) ? $social['icon_bg_color'] : '';
1711
- $social['icon_hover_color'] = ( isset( $social['icon_hover_color'] ) ) ? $social['icon_hover_color'] : '';
1712
- $social['icon_bg_hover_color'] = ( isset( $social['icon_bg_hover_color'] ) ) ? $social['icon_bg_hover_color'] : '';
1713
-
1714
- if ( $attr['social_count'] <= $key ) {
1715
- break;
1716
- }
1717
-
1718
- $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1719
- "color" => $social['icon_color'],
1720
- "padding" => UAGB_Helper::get_css_value( $attr['bgSize'], $attr['bgSizeType'] )
1721
- );
1722
-
1723
- $m_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1724
- "padding" => UAGB_Helper::get_css_value( $attr['bgSizeMobile'], $attr['bgSizeType'] )
1725
- );
1726
-
1727
- $t_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1728
- "padding" => UAGB_Helper::get_css_value( $attr['bgSizeTablet'], $attr['bgSizeType'] )
1729
- );
1730
-
1731
- $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link svg"] = array (
1732
- "fill" => $social['icon_color'],
1733
- );
1734
-
1735
- $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link"] = array (
1736
- "color" => $social['icon_hover_color']
1737
- );
1738
-
1739
- $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link svg"] = array (
1740
- "fill" => $social['icon_hover_color']
1741
- );
1742
-
1743
- $selectors[" .uagb-ss-repeater-" . $key] = array (
1744
- "background" => $social['icon_bg_color']
1745
- );
1746
-
1747
- $selectors[" .uagb-ss-repeater-" . $key . ":hover"] = array (
1748
- "background" => $social['icon_bg_hover_color']
1749
- );
1750
- }
1751
-
1752
- $selectors[" .uagb-social-share__wrap"] = array(
1753
- "justify-content" => $alignment,
1754
- "-webkit-box-pack" => $alignment,
1755
- "-ms-flex-pack" => $alignment,
1756
- "justify-content" => $alignment,
1757
- "-webkit-box-align" => $alignment,
1758
- "-ms-flex-align" => $alignment,
1759
- "align-items" => $alignment,
1760
- );
1761
-
1762
- if ( 'horizontal' == $attr['social_layout'] ) {
1763
-
1764
- if ( "desktop" == $attr['stack'] ) {
1765
-
1766
- $selectors[" .uagb-ss__wrapper"] = array (
1767
- "margin-left" => 0,
1768
- "margin-right" => 0,
1769
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
1770
- );
1771
-
1772
- $selectors[" .uagb-social-share__wrap"] = array (
1773
- "flex-direction" => "column"
1774
- );
1775
-
1776
- $selectors[" .uagb-ss__wrapper:last-child"] = array (
1777
- "margin-bottom" => 0
1778
- );
1779
-
1780
- } else if ( "tablet" == $attr['stack'] ) {
1781
-
1782
- $t_selectors[" .uagb-ss__wrapper"] = array (
1783
- "margin-left" => 0,
1784
- "margin-right" => 0,
1785
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
1786
- );
1787
-
1788
- $t_selectors[" .uagb-social-share__wrap"] = array (
1789
- "flex-direction" => "column"
1790
- );
1791
-
1792
- $t_selectors[" .uagb-ss__wrapper:last-child"] = array (
1793
- "margin-bottom" => 0
1794
- );
1795
-
1796
- } else if ( "mobile" == $attr['stack'] ) {
1797
-
1798
- $m_selectors[" .uagb-ss__wrapper"] = array (
1799
- "margin-left" => 0,
1800
- "margin-right" => 0,
1801
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
1802
- );
1803
-
1804
- $m_selectors[" .uagb-social-share__wrap"] = array (
1805
- "flex-direction" => "column"
1806
- );
1807
-
1808
- $m_selectors[" .uagb-ss__wrapper:last-child"] = array (
1809
- "margin-bottom" => 0
1810
- );
1811
- }
1812
- }
1813
-
1814
- // @codingStandardsIgnoreEnd
1815
-
1816
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-social-share-' . $id );
1817
-
1818
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-social-share-' . $id );
1819
-
1820
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-social-share-' . $id );
1821
-
1822
- $generated_css = array(
1823
- 'desktop' => $desktop,
1824
- 'tablet' => $tablet,
1825
- 'mobile' => $mobile,
1826
- );
1827
-
1828
- return $generated_css;
1829
- }
1830
-
1831
- /**
1832
- * Get Icon List Block CSS
1833
- *
1834
- * @since 0.0.1
1835
- * @param array $attr The block attributes.
1836
- * @param string $id The selector ID.
1837
- * @return array The Widget List.
1838
- */
1839
- public static function get_icon_list_css( $attr, $id ) { // @codingStandardsIgnoreStart
1840
-
1841
- $defaults = UAGB_Helper::$block_list['uagb/icon-list']['attributes'];
1842
-
1843
- $attr = array_merge( $defaults, (array) $attr );
1844
-
1845
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1846
-
1847
- $m_selectors = array();
1848
- $t_selectors = array();
1849
-
1850
- $selectors = array(
1851
- ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper" => array(
1852
- "margin-left" => 0,
1853
- "margin-right" => 0,
1854
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
1855
- ),
1856
- ".uagb-icon-list__layout-vertical .uagb-icon-list__wrap" => array(
1857
- "flex-direction" => "column"
1858
- ),
1859
- ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper:last-child" => array(
1860
- "margin-bottom" => 0
1861
- ),
1862
- ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper" => array(
1863
- "margin-left" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
1864
- "margin-right" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
1865
- ),
1866
- ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:first-child" => array(
1867
- "margin-left" => 0
1868
- ),
1869
- ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:last-child" => array(
1870
- "margin-right" => 0
1871
- ),
1872
- // Desktop Icon Size CSS starts.
1873
- " .uagb-icon-list__source-image" => array(
1874
- "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
1875
- ),
1876
- " .uagb-icon-list__source-icon" => array(
1877
- "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1878
- "height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1879
- "font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
1880
- ),
1881
- " .uagb-icon-list__source-icon svg" => array(
1882
- "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1883
- "height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1884
- ),
1885
- " .uagb-icon-list__source-icon:before"=> array(
1886
- "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1887
- "height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1888
- "font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
1889
- ),
1890
- " .uagb-icon-list__label-wrap"=> array(
1891
- "text-align" => $attr['align']
1892
- ),
1893
-
1894
- " .uagb-icon-list__source-wrap"=> array(
1895
- "padding" => UAGB_Helper::get_css_value( $attr['bgSize'], 'px' ),
1896
- "border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
1897
- "border-style" => ( $attr['border'] > 0 ) ? 'solid' : '',
1898
- "border-width" => UAGB_Helper::get_css_value( $attr['border'], 'px' )
1899
- ),
1900
- " .uagb-icon-list__wrap"=> array(
1901
- "justify-content" => $alignment,
1902
- "-webkit-box-pack" => $alignment,
1903
- "-ms-flex-pack" => $alignment,
1904
- "justify-content" => $alignment,
1905
- "-webkit-box-align" => $alignment,
1906
- "-ms-flex-align" => $alignment,
1907
- "align-items" => $alignment,
1908
- )
1909
- );
1910
-
1911
- if ( 'right' == $attr['align'] ) {
1912
- $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1913
- "margin-left" => UAGB_Helper::get_css_value( $attr['inner_gap'], 'px' )
1914
- );
1915
- $selectors[" .uagb-icon-list__content-wrap"] = array(
1916
- "flex-direction" => "row-reverse"
1917
- );
1918
- } else {
1919
- $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1920
- "margin-right" => UAGB_Helper::get_css_value( $attr['inner_gap'], 'px' )
1921
- );
1922
- }
1923
- // Desktop Icon Size CSS ends.
1924
-
1925
- // Mobile Icon Size CSS starts.
1926
- $m_selectors = array(
1927
- " .uagb-icon-list__source-image" => array(
1928
- "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1929
- ),
1930
- " .uagb-icon-list__source-icon" => array(
1931
- "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1932
- "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1933
- "font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1934
- ),
1935
- " .uagb-icon-list__source-icon svg" => array(
1936
- "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1937
- "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1938
- ),
1939
- " .uagb-icon-list__source-icon:before" => array(
1940
- "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1941
- "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1942
- "font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1943
- ),
1944
- );
1945
- // Mobile Icon Size CSS ends.
1946
-
1947
- // Tablet Icon Size CSS starts.
1948
- $t_selectors = array(
1949
- " .uagb-icon-list__source-image" => array(
1950
- "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1951
- ),
1952
- " .uagb-icon-list__source-icon" => array(
1953
- "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1954
- "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1955
- "font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1956
- ),
1957
- " .uagb-icon-list__source-icon svg" => array(
1958
- "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1959
- "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1960
- ),
1961
- " .uagb-icon-list__source-icon:before" => array(
1962
- "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1963
- "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1964
- "font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1965
- ),
1966
- );
1967
- // Tablet Icon Size CSS ends.
1968
-
1969
- foreach ( $attr['icons'] as $key => $icon ) {
1970
-
1971
- $icon['icon_color'] = ( isset( $icon['icon_color'] ) ) ? $icon['icon_color'] : '';
1972
- $icon['icon_hover_color'] = ( isset( $icon['icon_hover_color'] ) ) ? $icon['icon_hover_color'] : '';
1973
- $icon['icon_bg_color'] = ( isset( $icon['icon_bg_color'] ) ) ? $icon['icon_bg_color'] : '';
1974
- $icon['icon_bg_hover_color'] = ( isset( $icon['icon_bg_hover_color'] ) ) ? $icon['icon_bg_hover_color'] : '';
1975
- $icon['icon_border_color'] = ( isset( $icon['icon_border_color'] ) ) ? $icon['icon_border_color'] : '';
1976
- $icon['icon_border_hover_color'] = ( isset( $icon['icon_border_hover_color'] ) ) ? $icon['icon_border_hover_color'] : '';
1977
- $icon['label_color'] = ( isset( $icon['label_color'] ) ) ? $icon['label_color'] : '';
1978
- $icon['label_hover_color'] = ( isset( $icon['label_hover_color'] ) ) ? $icon['label_hover_color'] : '';
1979
-
1980
- if ( $attr['icon_count'] <= $key ) {
1981
- break;
1982
- }
1983
-
1984
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon"] = array (
1985
- "color" => $icon['icon_color']
1986
- );
1987
-
1988
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon svg"] = array (
1989
- "fill" => $icon['icon_color']
1990
- );
1991
-
1992
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon"] = array (
1993
- "color" => $icon['icon_hover_color']
1994
- );
1995
-
1996
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon svg"] = array (
1997
- "fill" => $icon['icon_hover_color']
1998
- );
1999
-
2000
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
2001
- "color" => $icon['label_color'],
2002
- "font-size" => UAGB_Helper::get_css_value( $attr['fontSize'], $attr['fontSizeType'] ),
2003
- 'font-family' => $attr['fontFamily'],
2004
- 'font-weight' => $attr['fontWeight'],
2005
- 'line-height' => $attr['lineHeight'] . $attr['lineHeightType'],
2006
- );
2007
-
2008
- $m_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
2009
- "font-size" => UAGB_Helper::get_css_value( $attr['fontSizeMobile'], $attr['fontSizeType'] ),
2010
- 'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightMobile'], $attr['lineHeightType'] ),
2011
- );
2012
-
2013
- $t_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
2014
- "font-size" => UAGB_Helper::get_css_value( $attr['fontSizeTablet'], $attr['fontSizeType'] ),
2015
- 'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightTablet'], $attr['lineHeightType'] ),
2016
- );
2017
-
2018
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__label"] = array (
2019
- "color" => $icon['label_hover_color']
2020
- );
2021
-
2022
- $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-wrap"] = array(
2023
- "background" => $icon['icon_bg_color'],
2024
- "border-color" => $icon['icon_border_color'],
2025
- );
2026
-
2027
- $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-wrap"] = array(
2028
- "background" => $icon['icon_bg_hover_color'],
2029
- "border-color" => $icon['icon_border_hover_color']
2030
- );
2031
- }
2032
-
2033
- if ( 'horizontal' == $attr['icon_layout'] ) {
2034
-
2035
- if ( "tablet" == $attr['stack'] ) {
2036
-
2037
- $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
2038
- "margin-left" => 0,
2039
- "margin-right" => 0,
2040
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
2041
- );
2042
-
2043
- $t_selectors[" .uagb-icon-list__wrap"] = array (
2044
- "flex-direction" => "column"
2045
- );
2046
-
2047
- $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
2048
- "margin-bottom" => 0
2049
- );
2050
-
2051
- } else if ( "mobile" == $attr['stack'] ) {
2052
-
2053
- $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
2054
- "margin-left" => 0,
2055
- "margin-right" => 0,
2056
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
2057
- );
2058
-
2059
- $m_selectors[" .uagb-icon-list__wrap"] = array (
2060
- "flex-direction" => "column"
2061
- );
2062
-
2063
- $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
2064
- "margin-bottom" => 0
2065
- );
2066
- }
2067
- }
2068
-
2069
- // @codingStandardsIgnoreEnd
2070
-
2071
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-icon-list-' . $id );
2072
-
2073
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-icon-list-' . $id );
2074
-
2075
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-icon-list-' . $id );
2076
-
2077
- $generated_css = array(
2078
- 'desktop' => $desktop,
2079
- 'tablet' => $tablet,
2080
- 'mobile' => $mobile,
2081
- );
2082
-
2083
- return $generated_css;
2084
- }
2085
-
2086
- /**
2087
- * Get Content Timeline Block CSS
2088
- *
2089
- * @since 0.0.1
2090
- * @param array $attr The block attributes.
2091
- * @param string $id The selector ID.
2092
- * @return array The Widget List.
2093
- */
2094
- public static function get_content_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
2095
-
2096
- $defaults = UAGB_Helper::$block_list['uagb/content-timeline']['attributes'];
2097
-
2098
- $attr = array_merge( $defaults, (array) $attr );
2099
-
2100
- $selectors = array();
2101
- $t_selectors = array();
2102
- $m_selectors = array();
2103
-
2104
- $selectors = array(
2105
- " .uagb-timeline__heading" => array(
2106
- "text-align" => $attr['align'],
2107
- "color" => $attr['headingColor'],
2108
- "font-size" => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
2109
- 'font-family' => $attr['headFontFamily'],
2110
- 'font-weight' => $attr['headFontWeight'],
2111
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
2112
- ),
2113
- " .uagb-timeline__heading-text" => array(
2114
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
2115
- ),
2116
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
2117
- 'color'=> $attr['iconFocus'],
2118
- ),
2119
- );
2120
-
2121
- $desktop_selectors = self::get_timeline_selectors( $attr );
2122
- $selectors = array_merge( $selectors, $desktop_selectors );
2123
-
2124
- $t_selectors = array(
2125
- " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
2126
- "font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
2127
- 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
2128
- ),
2129
- " .uagb-timeline__date-new" => array(
2130
- "font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
2131
- 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
2132
- ),
2133
- " .uagb-timeline__heading" => array(
2134
- "font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
2135
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
2136
- ),
2137
- " .uagb-timeline-desc-content" => array(
2138
- "font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
2139
- 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
2140
- ),
2141
- );
2142
-
2143
- $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
2144
- $t_selectors = array_merge( $t_selectors, $tablet_selectors );
2145
-
2146
- $m_selectors = array(
2147
- " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
2148
- "font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
2149
- 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
2150
- ),
2151
- " .uagb-timeline__date-new" => array(
2152
- "font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
2153
- 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
2154
- ),
2155
- " .uagb-timeline__heading" => array(
2156
- "font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
2157
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
2158
- ),
2159
- " .uagb-timeline-desc-content" => array(
2160
- "font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
2161
- 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
2162
- ),
2163
- );
2164
-
2165
- $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2166
-
2167
- $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2168
-
2169
- // @codingStandardsIgnoreEnd
2170
-
2171
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2172
-
2173
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-ctm-' . $id );
2174
-
2175
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-ctm-' . $id );
2176
-
2177
- $generated_css = array(
2178
- 'desktop' => $desktop,
2179
- 'tablet' => $tablet,
2180
- 'mobile' => $mobile,
2181
- );
2182
-
2183
- return $generated_css;
2184
- }
2185
-
2186
- /**
2187
- * Get Content Timeline Block CSS
2188
- *
2189
- * @since 0.0.1
2190
- * @param array $attr The block attributes.
2191
- * @param string $id The selector ID.
2192
- * @return array The Widget List.
2193
- */
2194
- public static function get_post_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
2195
-
2196
- $defaults = UAGB_Helper::$block_list['uagb/post-timeline']['attributes'];
2197
-
2198
- $attr = array_merge( $defaults, (array) $attr );
2199
- $t_selectors = array();
2200
-
2201
- $selectors = array(
2202
- " .uagb-timeline__heading" => array(
2203
- "text-align" => $attr['align'],
2204
- ),
2205
- " .uagb-timeline__author" => array(
2206
- "text-align" => $attr['align'],
2207
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['authorSpace'], 'px' )
2208
- ),
2209
- " .uagb-timeline__link_parent" => array(
2210
- "text-align" => $attr['align'],
2211
- ),
2212
- " .uagb-timeline__image a" => array(
2213
- "text-align" => $attr['align'],
2214
- ),
2215
- " .uagb-timeline__author-link" => array(
2216
- "color" => $attr['authorColor'],
2217
- "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
2218
- 'font-family' => $attr['authorFontFamily'],
2219
- 'font-weight' => $attr['authorFontWeight'],
2220
- 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
2221
- ),
2222
- " .dashicons-admin-users" => array(
2223
- "color" => $attr['authorColor'],
2224
- "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
2225
- 'font-weight' => $attr['authorFontWeight'],
2226
- 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
2227
- ),
2228
- " .uagb-timeline__link" => array(
2229
- "color" => $attr['ctaColor'],
2230
- "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
2231
- 'font-family' => $attr['ctaFontFamily'],
2232
- 'font-weight' => $attr['ctaFontWeight'],
2233
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
2234
- "background-color" => $attr['ctaBackground'],
2235
- ),
2236
- " .uagb-timeline__heading a" => array(
2237
- "text-align" => $attr['align'],
2238
- "color" => $attr['headingColor'],
2239
- "font-size" => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
2240
- 'font-family' => $attr['headFontFamily'],
2241
- 'font-weight' => $attr['headFontWeight'],
2242
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
2243
- ),
2244
- " .uagb-timeline__heading-text" => array(
2245
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
2246
- ),
2247
- " .uagb_timeline__cta-enable .uagb-timeline-desc-content" => array(
2248
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['contentSpace'], 'px' ),
2249
- ),
2250
- ' .uagb-content' => array(
2251
- 'padding'=> UAGB_Helper::get_css_value( $attr['contentPadding'], 'px' ),
2252
- ),
2253
- );
2254
-
2255
-
2256
-
2257
- $desktop_selectors = self::get_timeline_selectors( $attr );
2258
- $selectors = array_merge( $selectors, $desktop_selectors );
2259
-
2260
- $t_selectors = array(
2261
- " .uagb-timeline__author-link" => array(
2262
- "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
2263
- 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
2264
- ),
2265
- " .dashicons-admin-users" => array(
2266
- "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
2267
- 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
2268
- ),
2269
- " .uagb-timeline__link" => array(
2270
- "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
2271
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
2272
- ),
2273
- " .uagb-timeline__heading a" => array(
2274
- "font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
2275
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
2276
- ),
2277
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2278
- "text-align" => 'left',
2279
- ),
2280
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2281
- "text-align" => 'left',
2282
- ),
2283
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a" => array(
2284
- 'text-align' => 'left',
2285
- ),
2286
- );
2287
-
2288
- $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
2289
- $t_selectors = array_merge( $t_selectors, $tablet_selectors );
2290
-
2291
- // Mobile responsive CSS.
2292
- $m_selectors = array(
2293
- " .uagb-timeline__author-link" => array(
2294
- "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
2295
- 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
2296
- ),
2297
- " .dashicons-admin-users" => array(
2298
- "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
2299
- 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
2300
- ),
2301
- " .uagb-timeline__link" => array(
2302
- "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
2303
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
2304
- ),
2305
- " .uagb-timeline__heading a" => array(
2306
- "font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
2307
- 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
2308
- ),
2309
- " .uagb-timeline__heading" => array(
2310
- "text-align" => $attr['align'],
2311
- ),
2312
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2313
- "text-align" => 'left',
2314
- ),
2315
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2316
- "text-align" => 'left',
2317
- ),
2318
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a" => array(
2319
- 'text-align' => 'left',
2320
- ),
2321
- );
2322
-
2323
- $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2324
- $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2325
-
2326
- // @codingStandardsIgnoreEnd
2327
-
2328
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2329
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-ctm-' . $id );
2330
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-ctm-' . $id );
2331
-
2332
- $generated_css = array(
2333
- 'desktop' => $desktop,
2334
- 'tablet' => $tablet,
2335
- 'mobile' => $mobile,
2336
- );
2337
-
2338
- return $generated_css;
2339
- }
2340
-
2341
- /**
2342
- * Get Restaurant Menu Block CSS
2343
- *
2344
- * @since 1.0.2
2345
- * @param array $attr The block attributes.
2346
- * @param string $id The selector ID.
2347
- * @return array The Widget List.
2348
- */
2349
- public static function get_restaurant_menu_css( $attr, $id ) { // @codingStandardsIgnoreStart
2350
-
2351
- $defaults = UAGB_Helper::$block_list['uagb/restaurant-menu']['attributes'];
2352
-
2353
- $attr = array_merge( $defaults, (array) $attr );
2354
-
2355
- $m_selectors = array();
2356
- $t_selectors = array();
2357
-
2358
- $align = $attr['headingAlign'];
2359
- if( 'left' === $align ){
2360
- $align = 'flex-start';
2361
- }else if( 'right' === $align ){
2362
- $align = 'flex-end';
2363
- }
2364
-
2365
- $selectors = array(
2366
- " .uagb-rest_menu__wrap" => array(
2367
- 'padding-left' => UAGB_Helper::get_css_value( ( $attr['columnGap']/2 ), 'px' ),
2368
- 'padding-right' => UAGB_Helper::get_css_value( ( $attr['columnGap']/2 ), 'px' ),
2369
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['rowGap'], 'px' )
2370
- ),
2371
- " .uagb-rest_menu__wrap .uagb-rm__image-content" => array(
2372
- 'padding-left' => UAGB_Helper::get_css_value( $attr['imgHrPadding'],'px' ),
2373
- 'padding-right' => UAGB_Helper::get_css_value( $attr['imgHrPadding'],'px' ),
2374
- 'padding-top' => UAGB_Helper::get_css_value( $attr['imgVrPadding'],'px' ),
2375
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['imgVrPadding'],'px' ),
2376
- ),
2377
- " .uagb-rm__image img" => array(
2378
- 'width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
2379
- 'max-width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
2380
- ),
2381
- " .uagb-rm__separator-parent" => array(
2382
- 'justify-content' => $align,
2383
- ),
2384
- " .uagb-rm__content" => array(
2385
- 'text-align' => $attr['headingAlign'] ,
2386
- 'padding-left' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ),
2387
- 'padding-right' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ),
2388
- 'padding-top' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ),
2389
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ),
2390
- ),
2391
- " .uagb-rm__title" => array(
2392
- 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
2393
- 'color' => $attr['titleColor'] ,
2394
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['titleSpace'], 'px' ),
2395
- 'font-family' => $attr['titleFontFamily'],
2396
- 'font-weight' => $attr['titleFontWeight'],
2397
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
2398
- ),
2399
- " .uagb-rm__price" => array(
2400
- 'font-size' => UAGB_Helper::get_css_value( $attr['priceFontSize'], $attr['priceFontSizeType'] ),
2401
- 'font-family' => $attr['priceFontFamily'],
2402
- 'font-weight' => $attr['priceFontWeight'],
2403
- 'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeight'], $attr['priceLineHeightType'] ),
2404
- 'color' => $attr['priceColor'],
2405
- ),
2406
- " .uagb-rm__desc" => array(
2407
- 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
2408
- 'font-family' => $attr['descFontFamily'],
2409
- 'font-weight' => $attr['descFontWeight'],
2410
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
2411
- 'color'=> $attr['descColor'],
2412
- 'margin-bottom'=> UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
2413
- ),
2414
- );
2415
-
2416
- if ( $attr["seperatorStyle"] != "none" ) {
2417
- $selectors[" .uagb-rest_menu__wrap .uagb-rm__separator"] = array(
2418
- 'border-top-color'=> $attr['seperatorColor'],
2419
- 'border-top-style'=> $attr['seperatorStyle'],
2420
- 'border-top-width'=> UAGB_Helper::get_css_value( $attr['seperatorThickness'], 'px' ),
2421
- 'width'=> UAGB_Helper::get_css_value( $attr['seperatorWidth'], '%' ),
2422
- );
2423
- }
2424
-
2425
- $selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)'] = array(
2426
- 'margin-left'=> '0',
2427
- 'clear'=> 'left',
2428
- );
2429
-
2430
- $t_selectors = array(
2431
- ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2432
- 'margin-left'=> 'unset',
2433
- 'clear'=> 'unset',
2434
- ),
2435
- ' .uagb-rest_menu__wrap.uagb-rm__tablet-column-'.$attr['tcolumns'].':nth-child('.$attr['tcolumns'].'n+1)' => array(
2436
- 'margin-left'=> '0',
2437
- 'clear'=> 'left',
2438
- ),
2439
- " .uagb-rm__title" => array(
2440
- "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
2441
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
2442
- ),
2443
- " .uagb-rm__desc" => array(
2444
- "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
2445
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
2446
- ),
2447
- " .uagb-rm__price" => array(
2448
- "font-size" => UAGB_Helper::get_css_value( $attr['priceFontSizeTablet'], $attr['priceFontSizeType'] ),
2449
- 'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeightTablet'], $attr['priceLineHeightType'] ),
2450
- )
2451
- );
2452
-
2453
- $m_selectors = array(
2454
- ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2455
- 'margin-left'=> 'unset',
2456
- 'clear'=> 'unset',
2457
- ),
2458
- ' .uagb-rest_menu__wrap.uagb-rm__mobile-column-'.$attr['mcolumns'].':nth-child('.$attr['mcolumns'].'n+1)' => array(
2459
- 'margin-left'=> '0',
2460
- 'clear'=> 'left',
2461
- ),
2462
- " .uagb-rm__title" => array(
2463
- "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
2464
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
2465
- ),
2466
- " .uagb-rm__desc" => array(
2467
- "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
2468
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
2469
- ),
2470
- " .uagb-rm__price" => array(
2471
- "font-size" => UAGB_Helper::get_css_value( $attr['priceFontSizeMobile'], $attr['priceFontSizeType'] ),
2472
- 'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeightMobile'], $attr['priceLineHeightType'] ),
2473
- )
2474
- );
2475
-
2476
- // @codingStandardsIgnoreEnd
2477
-
2478
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-rm-' . $id );
2479
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-rm-' . $id );
2480
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-rm-' . $id );
2481
-
2482
- $generated_css = array(
2483
- 'desktop' => $desktop,
2484
- 'tablet' => $tablet,
2485
- 'mobile' => $mobile,
2486
- );
2487
-
2488
- return $generated_css;
2489
- }
2490
-
2491
- /**
2492
- * Get Post Grid Block CSS
2493
- *
2494
- * @since 1.4.0
2495
- * @param array $attr The block attributes.
2496
- * @param string $id The selector ID.
2497
- * @return array The Widget List.
2498
- */
2499
- public static function get_post_grid_css( $attr, $id ) { // @codingStandardsIgnoreStart
2500
-
2501
- $defaults = UAGB_Helper::$block_list['uagb/post-grid']['attributes'];
2502
-
2503
- $attr = array_merge( $defaults, (array) $attr );
2504
-
2505
- $selectors = self::get_post_selectors( $attr );
2506
-
2507
- $m_selectors = self::get_post_mobile_selectors( $attr );
2508
-
2509
- $t_selectors = self::get_post_tablet_selectors( $attr );
2510
-
2511
- // @codingStandardsIgnoreEnd
2512
-
2513
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__grid-' . $id );
2514
-
2515
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__grid-' . $id );
2516
-
2517
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__grid-' . $id );
2518
-
2519
- $generated_css = array(
2520
- 'desktop' => $desktop,
2521
- 'tablet' => $tablet,
2522
- 'mobile' => $mobile,
2523
- );
2524
-
2525
- return $generated_css;
2526
- }
2527
-
2528
- /**
2529
- * Get Post Carousel Block CSS
2530
- *
2531
- * @since 1.4.0
2532
- * @param array $attr The block attributes.
2533
- * @param string $id The selector ID.
2534
- * @return array The Widget List.
2535
- */
2536
- public static function get_post_carousel_css( $attr, $id ) { // @codingStandardsIgnoreStart
2537
-
2538
- $defaults = UAGB_Helper::$block_list['uagb/post-carousel']['attributes'];
2539
-
2540
- $attr = array_merge( $defaults, (array) $attr );
2541
-
2542
- $selectors = self::get_post_selectors( $attr );
2543
-
2544
- $m_selectors = self::get_post_mobile_selectors( $attr );
2545
-
2546
- $t_selectors = self::get_post_tablet_selectors( $attr );
2547
-
2548
- $selectors[" .slick-arrow"] = array(
2549
- "border-color" => $attr['arrowColor']
2550
- );
2551
-
2552
- $selectors[" .slick-arrow span"] = array(
2553
- "color" => $attr['arrowColor'],
2554
- "font-size" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
2555
- "width" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
2556
- "height" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' )
2557
- );
2558
-
2559
- $selectors[" .slick-arrow svg"] = array(
2560
- "fill" => $attr['arrowColor'],
2561
- "width" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
2562
- "height" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' )
2563
- );
2564
-
2565
- $selectors[" .slick-arrow"] = array(
2566
- "border-color" => $attr['arrowColor'],
2567
- "border-width" => UAGB_Helper::get_css_value( $attr['arrowBorderSize'], 'px' ),
2568
- "border-radius" => UAGB_Helper::get_css_value( $attr['arrowBorderRadius'], 'px' )
2569
- );
2570
-
2571
- $selectors[".uagb-post-grid ul.slick-dots li.slick-active button:before"] = array(
2572
- "color" => $attr['arrowColor']
2573
- );
2574
-
2575
- $selectors[".uagb-slick-carousel ul.slick-dots li button:before"] = array(
2576
- "color" => $attr['arrowColor']
2577
- );
2578
-
2579
- if ( isset( $attr['arrowDots'] ) && 'dots' == $attr['arrowDots'] ) {
2580
-
2581
- $selectors[".uagb-slick-carousel"] = array(
2582
- "padding" => "0 0 35px 0"
2583
- );
2584
- }
2585
-
2586
- // @codingStandardsIgnoreEnd
2587
-
2588
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__carousel-' . $id );
2589
-
2590
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__carousel-' . $id );
2591
-
2592
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__carousel-' . $id );
2593
-
2594
- $generated_css = array(
2595
- 'desktop' => $desktop,
2596
- 'tablet' => $tablet,
2597
- 'mobile' => $mobile,
2598
- );
2599
-
2600
- return $generated_css;
2601
- }
2602
-
2603
- /**
2604
- * Get Post Masonry Block CSS
2605
- *
2606
- * @since 1.4.0
2607
- * @param array $attr The block attributes.
2608
- * @param string $id The selector ID.
2609
- * @return array The Widget List.
2610
- */
2611
- public static function get_post_masonry_css( $attr, $id ) { // @codingStandardsIgnoreStart
2612
-
2613
- $defaults = UAGB_Helper::$block_list['uagb/post-masonry']['attributes'];
2614
-
2615
- $attr = array_merge( $defaults, (array) $attr );
2616
-
2617
- $selectors = self::get_post_selectors( $attr );
2618
-
2619
- $m_selectors = self::get_post_mobile_selectors( $attr );
2620
-
2621
- $t_selectors = self::get_post_tablet_selectors( $attr );
2622
-
2623
- // @codingStandardsIgnoreEnd
2624
-
2625
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__masonry-' . $id );
2626
-
2627
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__masonry-' . $id );
2628
-
2629
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__masonry-' . $id );
2630
-
2631
- $generated_css = array(
2632
- 'desktop' => $desktop,
2633
- 'tablet' => $tablet,
2634
- 'mobile' => $mobile,
2635
- );
2636
-
2637
- return $generated_css;
2638
- }
2639
-
2640
- /**
2641
- * Get Post Block Selectors CSS
2642
- *
2643
- * @param array $attr The block attributes.
2644
- * @since 1.4.0
2645
- */
2646
- public static function get_post_selectors( $attr ) { // @codingStandardsIgnoreStart
2647
- return array(
2648
- " .uagb-post__items" => array(
2649
- "margin-right" => UAGB_Helper::get_css_value( ( -$attr['rowGap']/2 ), 'px' ),
2650
- "margin-left" => UAGB_Helper::get_css_value( ( -$attr['rowGap']/2 ), 'px' ),
2651
- ),
2652
- " .uagb-post__items article" => array(
2653
- "padding-right" => UAGB_Helper::get_css_value( ( $attr['rowGap']/2 ), 'px' ),
2654
- "padding-left" => UAGB_Helper::get_css_value( ( $attr['rowGap']/2 ), 'px' ),
2655
- "margin-bottom" => UAGB_Helper::get_css_value( ( $attr['columnGap'] ), 'px' )
2656
- ),
2657
- " .uagb-post__inner-wrap" => array(
2658
- "background" => $attr['bgColor']
2659
- ),
2660
- " .uagb-post__text" => array(
2661
- "padding" => UAGB_Helper::get_css_value( ( $attr['contentPadding'] ), 'px' ),
2662
- "text-align" => $attr['align']
2663
- ),
2664
- " .uagb-post__text .uagb-post__title" => array(
2665
- "color"=> $attr['titleColor'],
2666
- "font-size"=> UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
2667
- 'font-family' => $attr['titleFontFamily'],
2668
- 'font-weight' => $attr['titleFontWeight'],
2669
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
2670
- "margin-bottom"=> UAGB_Helper::get_css_value( $attr['titleBottomSpace'], 'px' )
2671
- ),
2672
- " .uagb-post__text .uagb-post__title a" => array(
2673
- "color" => $attr['titleColor'],
2674
- "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
2675
- 'font-family' => $attr['titleFontFamily'],
2676
- 'font-weight' => $attr['titleFontWeight'],
2677
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
2678
- ),
2679
- " .uagb-post__text .uagb-post-grid-byline" => array(
2680
- "color"=> $attr['metaColor'],
2681
- "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
2682
- 'font-family' => $attr['metaFontFamily'],
2683
- 'font-weight' => $attr['metaFontWeight'],
2684
- 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
2685
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['metaBottomSpace'], 'px' )
2686
- ),
2687
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2688
- "color" => $attr['metaColor'],
2689
- "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
2690
- 'font-family' => $attr['metaFontFamily'],
2691
- 'font-weight' => $attr['metaFontWeight'],
2692
- 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
2693
- ),
2694
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2695
- "color" => $attr['metaColor'],
2696
- "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
2697
- 'font-family' => $attr['metaFontFamily'],
2698
- 'font-weight' => $attr['metaFontWeight'],
2699
- 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
2700
- ),
2701
- " .uagb-post__text .uagb-post__excerpt" => array(
2702
- "color" => $attr['excerptColor'],
2703
- "font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSize'], $attr['excerptFontSizeType'] ),
2704
- 'font-family' => $attr['excerptFontFamily'],
2705
- 'font-weight' => $attr['excerptFontWeight'],
2706
- 'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeight'], $attr['excerptLineHeightType'] ),
2707
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['excerptBottomSpace'], 'px' )
2708
- ),
2709
- " .uagb-post__text .uagb-post__cta" => array(
2710
- "color" => $attr['ctaColor'],
2711
- "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
2712
- 'font-family' => $attr['ctaFontFamily'],
2713
- 'font-weight' => $attr['ctaFontWeight'],
2714
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
2715
- "background" => $attr['ctaBgColor'],
2716
- "border-color" => $attr['borderColor'],
2717
- "border-width" => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
2718
- "border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
2719
- "border-style" => $attr['borderStyle'],
2720
- ),
2721
- " .uagb-post__text .uagb-post__cta a" => array(
2722
- "color"=> $attr['ctaColor'],
2723
- "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
2724
- 'font-family' => $attr['ctaFontFamily'],
2725
- 'font-weight' => $attr['ctaFontWeight'],
2726
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
2727
- "padding" => ( $attr['btnVPadding'] ) . "px " . ( $attr['btnHPadding'] ) . "px",
2728
- ),
2729
- " .uagb-post__text .uagb-post__cta:hover" => array(
2730
- "color"=> $attr['ctaHColor'],
2731
- "background"=> $attr['ctaBgHColor'],
2732
- "border-color"=> $attr['borderHColor']
2733
- ),
2734
- " .uagb-post__text .uagb-post__cta:hover a" => array(
2735
- "color"=> $attr['ctaHColor']
2736
- ),
2737
- " .uagb-post__image:before" => array(
2738
- "background-color" => $attr['bgOverlayColor'],
2739
- "opacity" => ( $attr['overlayOpacity'] / 100 )
2740
- ),
2741
- );
2742
- // @codingStandardsIgnoreEnd
2743
- }
2744
-
2745
- /**
2746
- * Get Post Block Selectors CSS for Mobile devices
2747
- *
2748
- * @param array $attr The block attributes.
2749
- * @since 1.6.1
2750
- */
2751
- public static function get_post_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
2752
-
2753
- return array(
2754
- " .uagb-post__text .uagb-post__title" => array(
2755
- "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
2756
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
2757
- ),
2758
- " .uagb-post__text .uagb-post__title a" => array(
2759
- "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
2760
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
2761
- ),
2762
- " .uagb-post__text .uagb-post-grid-byline" => array(
2763
- "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
2764
- 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
2765
- ),
2766
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2767
- "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
2768
- 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
2769
- ),
2770
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2771
- "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
2772
- 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
2773
- ),
2774
- " .uagb-post__text .uagb-post__excerpt" => array(
2775
- "font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSizeMobile'], $attr['excerptFontSizeType'] ),
2776
- 'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeightMobile'], $attr['excerptLineHeightType'] ),
2777
- ),
2778
- " .uagb-post__text .uagb-post__cta" => array(
2779
- "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
2780
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
2781
- ),
2782
- " .uagb-post__text .uagb-post__cta a" => array(
2783
- "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
2784
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
2785
- ),
2786
- " .uagb-post__text" => array(
2787
- "padding" => ( $attr['contentPaddingMobile'] ) . "px",
2788
- ),
2789
- );
2790
- // @codingStandardsIgnoreEnd
2791
- }
2792
-
2793
- /**
2794
- * Get Post Block Selectors CSS for Tablet devices
2795
- *
2796
- * @param array $attr The block attributes.
2797
- * @since 1.8.2
2798
- */
2799
- public static function get_post_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
2800
- return array(
2801
- " .uagb-post__text .uagb-post__title" => array(
2802
- "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
2803
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
2804
- ),
2805
- " .uagb-post__text .uagb-post__title a" => array(
2806
- "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
2807
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
2808
- ),
2809
- " .uagb-post__text .uagb-post-grid-byline" => array(
2810
- "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
2811
- 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
2812
- ),
2813
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2814
- "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
2815
- 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
2816
- ),
2817
- " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2818
- "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
2819
- 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
2820
- ),
2821
- " .uagb-post__text .uagb-post__excerpt" => array(
2822
- "font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSizeTablet'], $attr['excerptFontSizeType'] ),
2823
- 'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeightTablet'], $attr['excerptLineHeightType'] ),
2824
- ),
2825
- " .uagb-post__text .uagb-post__cta" => array(
2826
- "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
2827
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
2828
- ),
2829
- " .uagb-post__text .uagb-post__cta a" => array(
2830
- "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
2831
- 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
2832
- ),
2833
- );
2834
- // @codingStandardsIgnoreEnd
2835
- }
2836
-
2837
- /**
2838
- * Get Blockquote CSS
2839
- *
2840
- * @since 1.8.2
2841
- * @param array $attr The block attributes.
2842
- * @param string $id The selector ID.
2843
- * @return array The Widget List.
2844
- */
2845
- public static function get_blockquote_css( $attr, $id ) {
2846
- // @codingStandardsIgnoreStart
2847
-
2848
- $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
2849
-
2850
- $attr = array_merge( $defaults, (array) $attr );
2851
-
2852
- $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
2853
-
2854
- $content_align ="center";
2855
-
2856
- if( 'left' === $attr['align'] ){
2857
- $content_align =" flex-start";
2858
- }
2859
- if( 'right' === $attr['align'] ){
2860
- $content_align =" flex-end";
2861
- }
2862
-
2863
- $author_space = $attr['authorSpace'];
2864
-
2865
- if( 'center' !== $attr['align'] || $attr['skinStyle'] == "border" ){
2866
- $author_space = 0;
2867
- }
2868
-
2869
- //Set align to left for border style.
2870
- $text_align = $attr['align'];
2871
-
2872
- if( 'border' === $attr['skinStyle'] ){
2873
- $text_align = 'left';
2874
- }
2875
-
2876
- $selectors = array(
2877
- " .uagb-blockquote__content" => array(
2878
- "font-size" => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
2879
- 'font-family' => $attr['descFontFamily'],
2880
- 'font-weight' => $attr['descFontWeight'],
2881
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
2882
- "color" => $attr['descColor'],
2883
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
2884
- "text-align" => $text_align,
2885
- ),
2886
- " cite.uagb-blockquote__author" => array(
2887
- "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
2888
- 'font-family' => $attr['authorFontFamily'],
2889
- 'font-weight' => $attr['authorFontWeight'],
2890
- 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
2891
- "color" => $attr['authorColor'],
2892
- "text-align" => $text_align,
2893
- ),
2894
- " .uagb-blockquote__skin-border blockquote.uagb-blockquote" => array(
2895
- "border-color" => $attr['borderColor'],
2896
- "border-left-style" => $attr['borderStyle'],
2897
- "border-left-width" => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
2898
- "padding-left" => UAGB_Helper::get_css_value( $attr['borderGap'], 'px' ),
2899
- "padding-top" => UAGB_Helper::get_css_value( $attr['verticalPadding'], 'px' ),
2900
- "padding-bottom" => UAGB_Helper::get_css_value( $attr['verticalPadding'], 'px' ),
2901
- ),
2902
-
2903
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2904
- "background" => $attr['quoteBgColor'],
2905
- "border-radius" => UAGB_Helper::get_css_value( $attr['quoteBorderRadius'],'%' ),
2906
- "margin-top" => UAGB_Helper::get_css_value( $attr['quoteTopMargin'], 'px' ),
2907
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['quoteBottomMargin'], 'px' ),
2908
- "margin-left" => UAGB_Helper::get_css_value( $attr['quoteLeftMargin'], 'px' ),
2909
- "margin-right" => UAGB_Helper::get_css_value( $attr['quoteRightMargin'], 'px' ),
2910
- "padding" => UAGB_Helper::get_css_value( $attr['quotePadding'], $attr['quotePaddingType'] ),
2911
- ),
2912
-
2913
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2914
- "width" => UAGB_Helper::get_css_value( $attr['quoteSize'], $attr['quoteSizeType'] ),
2915
- "height" => UAGB_Helper::get_css_value( $attr['quoteSize'], $attr['quoteSizeType'] ),
2916
- ),
2917
-
2918
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg" => array(
2919
- "fill" => $attr['quoteColor'],
2920
- ),
2921
-
2922
- " .uagb-blockquote__style-style_1 .uagb-blockquote" => array(
2923
- "text-align" => $attr['align'],
2924
- ),
2925
-
2926
- " .uagb-blockquote__author-wrap" => array(
2927
- "margin-bottom" => UAGB_Helper::get_css_value( $author_space, 'px' ),
2928
- ),
2929
- " .uagb-blockquote__author-image img" => array(
2930
- "width" => UAGB_Helper::get_css_value( $attr['authorImageWidth'], 'px' ),
2931
- "height" => UAGB_Helper::get_css_value( $attr['authorImageWidth'], 'px' ),
2932
- "border-radius" => UAGB_Helper::get_css_value( $attr['authorImgBorderRadius'], '%' )
2933
- ),
2934
-
2935
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover svg" => array(
2936
- "fill" => $attr['quoteHoverColor'],
2937
- ),
2938
-
2939
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover" => array(
2940
- "background" => $attr['quoteBgHoverColor'],
2941
- ),
2942
-
2943
- " .uagb-blockquote__skin-border blockquote.uagb-blockquote:hover" => array(
2944
- "border-left-color" => $attr['borderHoverColor'],
2945
- ),
2946
- );
2947
-
2948
- if( $attr['enableTweet'] ){
2949
- $selectors[" a.uagb-blockquote__tweet-button"] = array(
2950
- "font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
2951
- 'font-family' => $attr['tweetBtnFontFamily'],
2952
- 'font-weight' => $attr['tweetBtnFontWeight'],
2953
- 'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeight'], $attr['tweetBtnLineHeightType'] ),
2954
- );
2955
-
2956
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"] = array(
2957
- "color" => $attr['tweetLinkColor'],
2958
- );
2959
-
2960
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"] = array(
2961
- "fill" => $attr['tweetLinkColor'],
2962
- );
2963
-
2964
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"] = array(
2965
- "color" => $attr['tweetBtnColor'],
2966
- "background-color" => $attr['tweetBtnBgColor'],
2967
- "padding-left" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
2968
- "padding-right" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
2969
- "padding-top" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
2970
- "padding-bottom" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
2971
- );
2972
-
2973
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"] = array(
2974
- "fill" => $attr['tweetBtnColor'],
2975
- );
2976
-
2977
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"] = array(
2978
- "color" => $attr['tweetBtnColor'],
2979
- "background-color" => $attr['tweetBtnBgColor'],
2980
- "padding-left" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
2981
- "padding-right" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
2982
- "padding-top" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
2983
- "padding-bottom" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
2984
- );
2985
-
2986
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"] = array(
2987
- "fill" => $attr['tweetBtnColor'],
2988
- );
2989
-
2990
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"] = array(
2991
- "border-right-color" => $attr['tweetBtnBgColor'],
2992
- );
2993
-
2994
- $selectors[" a.uagb-blockquote__tweet-button svg"] = array(
2995
- "width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
2996
- "height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
2997
- );
2998
-
2999
- $selectors[" .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"] = array(
3000
- "margin-right" => UAGB_Helper::get_css_value( $attr['tweetIconSpacing'], 'px' ),
3001
- );
3002
-
3003
- // Hover CSS.
3004
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"] = array(
3005
- "color" => $attr['tweetBtnHoverColor'],
3006
- );
3007
-
3008
- $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"] = array(
3009
- "fill" => $attr['tweetBtnHoverColor'],
3010
- );
3011
-
3012
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"] = array(
3013
- "color" => $attr['tweetBtnHoverColor'],
3014
- "background-color" => $attr['tweetBtnBgHoverColor'],
3015
- );
3016
-
3017
- $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"] = array(
3018
- "fill" => $attr['tweetBtnHoverColor'],
3019
- );
3020
-
3021
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover"] = array(
3022
- "color" => $attr['tweetBtnHoverColor'],
3023
- "background-color" => $attr['tweetBtnBgHoverColor'],
3024
- );
3025
-
3026
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"] = array(
3027
- "fill" => $attr['tweetBtnHoverColor'],
3028
- );
3029
-
3030
- $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"] = array(
3031
- "border-right-color" => $attr['tweetBtnBgHoverColor'],
3032
- );
3033
- }
3034
-
3035
- $t_selectors = array(
3036
- " .uagb-blockquote__content" => array(
3037
- "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
3038
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
3039
- ),
3040
- " cite.uagb-blockquote__author" =>array(
3041
- "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
3042
- 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
3043
- ),
3044
- " a.uagb-blockquote__tweet-button" => array(
3045
- "font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
3046
- 'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeightTablet'], $attr['tweetBtnLineHeightType'] ),
3047
- ),
3048
- " a.uagb-blockquote__tweet-button svg" => array(
3049
- "width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
3050
- "height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
3051
- ),
3052
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
3053
- "padding" => UAGB_Helper::get_css_value( $attr['quotePaddingTablet'], $attr['quotePaddingType'] ),
3054
- ),
3055
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
3056
- "width" => UAGB_Helper::get_css_value( $attr['quoteSizeTablet'], $attr['quoteSizeType'] ),
3057
- "height" => UAGB_Helper::get_css_value( $attr['quoteSizeTablet'], $attr['quoteSizeType'] ),
3058
- ),
3059
- );
3060
-
3061
- $m_selectors = array(
3062
- " .uagb-blockquote__content" => array(
3063
- "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
3064
- 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
3065
- ),
3066
- " cite.uagb-blockquote__author" => array(
3067
- "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
3068
- 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
3069
- ),
3070
- " a.uagb-blockquote__tweet-button" => array(
3071
- "font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
3072
- 'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeightMobile'], $attr['tweetBtnLineHeightType'] ),
3073
- ),
3074
- " a.uagb-blockquote__tweet-button svg" => array(
3075
- "width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
3076
- "height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
3077
- ),
3078
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
3079
- "padding" => UAGB_Helper::get_css_value( $attr['quotePaddingMobile'], $attr['quotePaddingType'] ),
3080
- ),
3081
- " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
3082
- "width" => UAGB_Helper::get_css_value( $attr['quoteSizeMobile'], $attr['quoteSizeType'] ),
3083
- "height" => UAGB_Helper::get_css_value( $attr['quoteSizeMobile'], $attr['quoteSizeType'] ),
3084
- ),
3085
- );
3086
-
3087
- // @codingStandardsIgnoreEnd
3088
-
3089
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-blockquote-' . $id );
3090
-
3091
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-blockquote-' . $id );
3092
-
3093
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-blockquote-' . $id );
3094
-
3095
- $generated_css = array(
3096
- 'desktop' => $desktop,
3097
- 'tablet' => $tablet,
3098
- 'mobile' => $mobile,
3099
- );
3100
-
3101
- return $generated_css;
3102
- }
3103
-
3104
- /**
3105
- * Get Timeline Block Desktop Selectors CSS
3106
- *
3107
- * @param array $attr The block attributes.
3108
- * @since 1.8.2
3109
- */
3110
- public static function get_timeline_selectors( $attr ) { // @codingStandardsIgnoreStart
3111
- $selectors = array(
3112
- " .uagb-timeline__heading-text" => array(
3113
- "margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
3114
- ),
3115
- " .uagb-timeline-desc-content" => array(
3116
- "text-align" => $attr['align'],
3117
- "color" => $attr['subHeadingColor'],
3118
- "font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ),
3119
- 'font-family' => $attr['subHeadFontFamily'],
3120
- 'font-weight' => $attr['subHeadFontWeight'],
3121
- 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
3122
- ),
3123
- ' .uagb-timeline__events-new' => array(
3124
- 'text-align' => $attr['align']
3125
- ),
3126
- ' .uagb-timeline__date-inner' => array(
3127
- 'text-align' => $attr['align']
3128
- ),
3129
- ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
3130
- 'border-left-color' => $attr['backgroundColor']
3131
- ),
3132
- ' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
3133
- 'border-left-color' => $attr['backgroundColor']
3134
- ),
3135
- ' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
3136
- 'border-right-color' => $attr['backgroundColor']
3137
- ),
3138
- ' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
3139
- 'border-right-color' => $attr['backgroundColor']
3140
- ),
3141
- ' .uagb-timeline__line__inner' => array(
3142
- 'background-color' => $attr['separatorFillColor']
3143
- ),
3144
- ' .uagb-timeline__line' => array(
3145
- 'background-color' => $attr['separatorColor'],
3146
- 'width' => UAGB_Helper::get_css_value( $attr['separatorwidth'], 'px' )
3147
- ),
3148
- ' .uagb-timeline__right-block .uagb-timeline__line' => array(
3149
- 'right' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
3150
- ),
3151
- ' .uagb-timeline__left-block .uagb-timeline__line' => array(
3152
- 'left' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
3153
- ),
3154
- ' .uagb-timeline__center-block .uagb-timeline__line' => array(
3155
- 'right' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
3156
- ),
3157
- ' .uagb-timeline__marker' => array(
3158
- 'background-color' => $attr['separatorBg'],
3159
- 'min-height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3160
- 'min-width' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3161
- 'line-height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3162
- 'border' => $attr['borderwidth'].'px solid'.$attr['separatorBorder'],
3163
- ),
3164
- ' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow' => array(
3165
- 'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3166
- ),
3167
- ' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow' => array(
3168
- 'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3169
- ),
3170
- ' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow' => array(
3171
- 'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3172
- ),
3173
- ' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow' => array(
3174
- 'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3175
- ),
3176
- ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3177
- 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3178
- 'margin-right'=> UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3179
- ),
3180
- ' .uagb-timeline__field:not(:last-child)' => array(
3181
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['verticalSpace'], 'px' ),
3182
- ),
3183
- ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3184
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['dateBottomspace'], 'px' ),
3185
- 'color' => $attr['dateColor'],
3186
- 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ),
3187
- 'font-family' => $attr['dateFontFamily'],
3188
- 'font-weight' => $attr['dateFontWeight'],
3189
- 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeight'], $attr['dateLineHeightType'] ),
3190
- 'text-align' => $attr['align'],
3191
- ),
3192
- ' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
3193
- 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3194
- ),
3195
- ' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3196
- 'margin-right' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3197
- ),
3198
- ' .uagb-timeline__date-new' => array(
3199
- 'color' => $attr['dateColor'],
3200
- 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ),
3201
- 'font-family' => $attr['dateFontFamily'],
3202
- 'font-weight' => $attr['dateFontWeight'],
3203
- 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeight'], $attr['dateLineHeightType'] ),
3204
- ),
3205
- ' .uagb-timeline__events-inner-new' => array(
3206
- 'background-color' => $attr['backgroundColor'],
3207
- 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
3208
- 'padding'=> UAGB_Helper::get_css_value( $attr['bgPadding'], 'px' ),
3209
- ),
3210
- ' .uagb-timeline__main .uagb-timeline__icon-new' => array(
3211
- 'color' => $attr['iconColor'],
3212
- 'font-size' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
3213
- 'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
3214
- ),
3215
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg' => array(
3216
- 'fill'=> $attr['iconFocus'],
3217
- ),
3218
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
3219
- 'color'=> $attr['iconFocus'],
3220
- ),
3221
- ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon' => array(
3222
- 'background' => $attr['iconBgFocus'],
3223
- 'border-color'=> $attr['borderFocus'],
3224
- ),
3225
- ' .uagb-timeline__main .uagb-timeline__icon-new svg' => array(
3226
- 'fill'=> $attr['iconColor'],
3227
- ),
3228
- );
3229
-
3230
- return $selectors;
3231
- // @codingStandardsIgnoreEnd
3232
- }
3233
-
3234
- /**
3235
- * Get Timeline Block Tablet Selectors CSS.
3236
- *
3237
- * @param array $attr The block attributes.
3238
- * @since 1.8.2
3239
- */
3240
- public static function get_timeline_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
3241
- $tablet_selector = array(
3242
- " .uagb-timeline-desc-content" => array(
3243
- "font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
3244
- 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
3245
- ),
3246
- ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3247
- 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
3248
- 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
3249
- ),
3250
- ' .uagb-timeline__date-new' => array(
3251
- 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
3252
- 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
3253
- ),
3254
- ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3255
- 'margin-left' => 0,
3256
- 'margin-right' => 0,
3257
- ),
3258
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading" => array(
3259
- "text-align" => 'left',
3260
- ),
3261
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content" => array(
3262
- "text-align" => 'left',
3263
- ),
3264
- ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new' => array(
3265
- 'text-align' => 'left'
3266
- ),
3267
- ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner' => array(
3268
- 'text-align' => 'left'
3269
- ),
3270
- ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3271
- 'text-align'=> 'left',
3272
- ),
3273
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3274
- "border-right-color" => $attr['backgroundColor'],
3275
- ),
3276
- " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line" => array(
3277
- 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3278
- ),
3279
- );
3280
-
3281
- return $tablet_selector;
3282
- // @codingStandardsIgnoreEnd
3283
- }
3284
-
3285
- /**
3286
- * Get Timeline Block Mobile Selectors CSS.
3287
- *
3288
- * @param array $attr The block attributes.
3289
- * @since 1.8.2
3290
- */
3291
- public static function get_timeline_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
3292
- $m_selectors = array(
3293
- " .uagb-timeline-desc-content" => array(
3294
- "font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
3295
- 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
3296
- ),
3297
- ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3298
- 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
3299
- 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
3300
- ),
3301
- ' .uagb-timeline__date-new' => array(
3302
- 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
3303
- 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
3304
- ),
3305
- ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3306
- 'margin-left' => 0,
3307
- 'margin-right' => 0,
3308
- ),
3309
- ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
3310
- 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3311
- ),
3312
- ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3313
- 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3314
- ),
3315
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading" => array(
3316
- "text-align" => 'left',
3317
- ),
3318
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content" => array(
3319
- "text-align" => 'left',
3320
- ),
3321
- ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new' => array(
3322
- 'text-align' => 'left'
3323
- ),
3324
- ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner' => array(
3325
- 'text-align' => 'left'
3326
- ),
3327
- ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3328
- 'text-align'=> 'left',
3329
- ),
3330
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3331
- "border-right-color" => $attr['backgroundColor'],
3332
- ),
3333
- " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line" => array(
3334
- 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3335
- ),
3336
- );
3337
- return $m_selectors;
3338
- // @codingStandardsIgnoreEnd
3339
- }
3340
-
3341
- /**
3342
- * Get Contact Form 7 CSS
3343
- *
3344
- * @param array $attr The block attributes.
3345
- * @param string $id The selector ID.
3346
- * @since 1.10.0
3347
- */
3348
- public static function get_cf7_styler_css( $attr, $id ) {
3349
- $defaults = UAGB_Helper::$block_list['uagb/cf7-styler']['attributes'];
3350
-
3351
- $attr = array_merge( $defaults, (array) $attr );
3352
-
3353
- $selectors = array(
3354
- ' .wpcf7 .wpcf7-form' => array(
3355
- 'text-align' => $attr['align'],
3356
- ),
3357
- ' .wpcf7 form.wpcf7-form:not(input)' => array(
3358
- 'color' => $attr['fieldLabelColor'],
3359
- ),
3360
- ' .wpcf7 input:not([type=submit])' => array(
3361
- 'background-color' => $attr['fieldBgColor'],
3362
- 'color' => $attr['fieldInputColor'],
3363
- 'border-style' => $attr['fieldBorderStyle'],
3364
- 'border-color' => $attr['fieldBorderColor'],
3365
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3366
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3367
- 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3368
- 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3369
- 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3370
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3371
- 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3372
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3373
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3374
- 'font-family' => $attr['inputFontFamily'],
3375
- 'font-weight' => $attr['inputFontWeight'],
3376
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3377
- 'text-align' => $attr['align'],
3378
- ),
3379
- ' .wpcf7 select' => array(
3380
- 'background-color' => $attr['fieldBgColor'],
3381
- 'color' => $attr['fieldLabelColor'],
3382
- 'border-style' => $attr['fieldBorderStyle'],
3383
- 'border-color' => $attr['fieldBorderColor'],
3384
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3385
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3386
- 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3387
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3388
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3389
- 'font-family' => $attr['inputFontFamily'],
3390
- 'font-weight' => $attr['inputFontWeight'],
3391
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3392
- 'text-align' => $attr['align'],
3393
- ),
3394
- ' .wpcf7 select.wpcf7-form-control.wpcf7-select:not([multiple="multiple"])' => array(
3395
- 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3396
- 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3397
- 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3398
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3399
- ),
3400
- ' .wpcf7 select.wpcf7-select[multiple="multiple"] option' => array(
3401
- 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3402
- 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3403
- 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3404
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3405
- ),
3406
- ' .wpcf7 textarea' => array(
3407
- 'background-color' => $attr['fieldBgColor'],
3408
- 'color' => $attr['fieldInputColor'],
3409
- 'border-color' => $attr['fieldBorderColor'],
3410
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3411
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3412
- 'border-style' => $attr['fieldBorderStyle'],
3413
- 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3414
- 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3415
- 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3416
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3417
- 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3418
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3419
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3420
- 'font-family' => $attr['inputFontFamily'],
3421
- 'font-weight' => $attr['inputFontWeight'],
3422
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3423
- 'text-align' => $attr['align'],
3424
- ),
3425
- ' .wpcf7 textarea::placeholder' => array(
3426
- 'color' => $attr['fieldInputColor'],
3427
- 'text-align' => $attr['align'],
3428
- ),
3429
- ' .wpcf7 input::placeholder' => array(
3430
- 'color' => $attr['fieldInputColor'],
3431
- 'text-align' => $attr['align'],
3432
- ),
3433
- ' .wpcf7 form label' => array(
3434
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
3435
- 'font-family' => $attr['labelFontFamily'],
3436
- 'font-weight' => $attr['labelFontWeight'],
3437
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
3438
- ),
3439
- ' .wpcf7 form .wpcf7-list-item-label' => array(
3440
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
3441
- 'font-family' => $attr['labelFontFamily'],
3442
- 'font-weight' => $attr['labelFontWeight'],
3443
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
3444
- ),
3445
-
3446
- // Focus.
3447
- ' .wpcf7 form input:not([type=submit]):focus' => array(
3448
- 'border-color' => $attr['fieldBorderFocusColor'],
3449
- ),
3450
- ' .wpcf7 form select:focus' => array(
3451
- 'border-color' => $attr['fieldBorderFocusColor'],
3452
- ),
3453
- ' .wpcf7 textarea:focus' => array(
3454
- 'border-color' => $attr['fieldBorderFocusColor'],
3455
- ),
3456
-
3457
- // Submit button.
3458
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3459
- 'color' => $attr['buttonTextColor'],
3460
- 'background-color' => $attr['buttonBgColor'],
3461
- 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSize'], $attr['buttonFontSizeType'] ),
3462
- 'font-family' => $attr['buttonFontFamily'],
3463
- 'font-weight' => $attr['buttonFontWeight'],
3464
- 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeight'], $attr['buttonLineHeightType'] ),
3465
- 'border-color' => $attr['buttonBorderColor'],
3466
- 'border-style' => $attr['buttonBorderStyle'],
3467
- 'border-width' => UAGB_Helper::get_css_value( $attr['buttonBorderWidth'], 'px' ),
3468
- 'border-radius' => UAGB_Helper::get_css_value( $attr['buttonBorderRadius'], $attr['buttonBorderRadiusType'] ),
3469
- 'padding-left' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
3470
- 'padding-right' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
3471
- 'padding-top' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
3472
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
3473
- ),
3474
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover' => array(
3475
- 'color' => $attr['buttonTextHoverColor'],
3476
- 'background-color' => $attr['buttonBgHoverColor'],
3477
- 'border-color' => $attr['buttonBorderHoverColor'],
3478
- ),
3479
-
3480
- // Check box Radio.
3481
- ' .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3482
- 'background-color' => $attr['fieldBgColor'],
3483
- 'color' => $attr['fieldInputColor'],
3484
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3485
- 'border-color' => $attr['fieldBorderFocusColor'],
3486
- ),
3487
- ' .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3488
- 'background-color' => $attr['fieldBgColor'],
3489
- 'color' => $attr['fieldInputColor'],
3490
- 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3491
- 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3492
- 'border-style' => $attr['fieldBorderStyle'],
3493
- 'border-color' => $attr['fieldBorderColor'],
3494
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3495
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3496
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3497
- ),
3498
- ' .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3499
- 'background-color' => $attr['fieldBgColor'],
3500
- 'color' => $attr['fieldInputColor'],
3501
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3502
- 'border-color' => $attr['fieldBorderFocusColor'],
3503
- ),
3504
- ' .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3505
- 'background-color' => $attr['fieldBgColor'],
3506
- 'color' => $attr['fieldInputColor'],
3507
- 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3508
- 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3509
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3510
- 'border-color' => $attr['fieldBorderColor'],
3511
- 'border-style' => $attr['fieldBorderStyle'],
3512
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3513
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3514
- ),
3515
- ' .wpcf7 .wpcf7-radio input[type="radio"] + span:before' => array(
3516
- 'background-color' => $attr['fieldBgColor'],
3517
- 'color' => $attr['fieldInputColor'],
3518
- 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3519
- 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3520
- 'border-style' => $attr['fieldBorderStyle'],
3521
- 'border-color' => $attr['fieldBorderColor'],
3522
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3523
- ),
3524
- ' .wpcf7 .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3525
- 'border-color' => $attr['fieldBorderFocusColor'],
3526
- ),
3527
-
3528
- // Underline border.
3529
- ' .uagb-cf7-styler__field-style-underline .wpcf7 input:not([type=submit])' => array(
3530
- 'border-style' => 'none',
3531
- 'border-bottom-color' => $attr['fieldBorderColor'],
3532
- 'border-bottom-style' => 'solid',
3533
- 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3534
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3535
- ),
3536
- ' .uagb-cf7-styler__field-style-underline textarea' => array(
3537
- 'border-style' => 'none',
3538
- 'border-bottom-color' => $attr['fieldBorderColor'],
3539
- 'border-bottom-style' => 'solid',
3540
- 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3541
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3542
- ),
3543
- ' .uagb-cf7-styler__field-style-underline select' => array(
3544
- 'border-style' => 'none',
3545
- 'border-bottom-color' => $attr['fieldBorderColor'],
3546
- 'border-bottom-style' => 'solid',
3547
- 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3548
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3549
- ),
3550
- ' .uagb-cf7-styler__field-style-underline textarea' => array(
3551
- 'border-style' => 'none',
3552
- 'border-bottom-color' => $attr['fieldBorderColor'],
3553
- 'border-bottom-style' => 'solid',
3554
- 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3555
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3556
- ),
3557
- ' .uagb-cf7-styler__field-style-underline .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3558
- 'border-style' => 'solid',
3559
- ),
3560
- ' .uagb-cf7-styler__field-style-underline .wpcf7 input[type="radio"] + span:before' => array(
3561
- 'border-style' => 'solid',
3562
- ),
3563
- ' .uagb-cf7-styler__field-style-underline .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3564
- 'border-style' => 'solid',
3565
- ),
3566
- ' .uagb-cf7-styler__field-style-box .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3567
- 'border-style' => $attr['fieldBorderStyle'],
3568
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3569
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3570
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3571
- ),
3572
- ' .uagb-cf7-styler__field-style-box .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3573
- 'border-style' => $attr['fieldBorderStyle'],
3574
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3575
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3576
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3577
- ),
3578
- ' .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3579
- 'background-color' => $attr['fieldInputColor'],
3580
- ),
3581
-
3582
- // Override check box.
3583
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3584
- 'background-color' => $attr['radioCheckBgColor'],
3585
- 'color' => $attr['radioCheckSelectColor'],
3586
- 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3587
- 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3588
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3589
- 'border-color' => $attr['radioCheckBorderColor'],
3590
- 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
3591
- 'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
3592
- ),
3593
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3594
- 'border-color' => $attr['fieldBorderFocusColor'],
3595
- ),
3596
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3597
- 'background-color' => $attr['radioCheckBgColor'],
3598
- 'color' => $attr['radioCheckSelectColor'],
3599
- 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3600
- 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3601
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3602
- 'border-color' => $attr['radioCheckBorderColor'],
3603
- 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
3604
- 'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
3605
- ),
3606
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3607
- 'border-color' => $attr['fieldBorderFocusColor'],
3608
- ),
3609
-
3610
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 input[type="radio"] + span:before' => array(
3611
- 'background-color' => $attr['radioCheckBgColor'],
3612
- 'color' => $attr['radioCheckSelectColor'],
3613
- 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3614
- 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3615
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3616
- 'border-color' => $attr['radioCheckBorderColor'],
3617
- 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
3618
- ),
3619
- ' .uagb-cf7-styler__check-style-enabled .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3620
- 'background-color' => $attr['radioCheckSelectColor'],
3621
- ),
3622
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3623
- 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
3624
- 'font-family' => $attr['radioCheckFontFamily'],
3625
- 'font-weight' => $attr['radioCheckFontWeight'],
3626
- 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
3627
- 'color' => $attr['radioCheckLableColor'],
3628
- ),
3629
- ' span.wpcf7-not-valid-tip' => array(
3630
- 'color' => $attr['validationMsgColor'],
3631
- 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSize'], $attr['validationMsgFontSizeType'] ),
3632
- 'font-family' => $attr['validationMsgFontFamily'],
3633
- 'font-weight' => $attr['validationMsgFontWeight'],
3634
- 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeight'], $attr['validationMsgLineHeightType'] ),
3635
- ),
3636
- ' .uagb-cf7-styler__highlight-border input.wpcf7-form-control.wpcf7-not-valid' => array(
3637
- 'border-color' => $attr['highlightBorderColor'],
3638
- ),
3639
- ' .uagb-cf7-styler__highlight-border .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item-label:before' => array(
3640
- 'border-color' => $attr['highlightBorderColor'] . '!important',
3641
- ),
3642
- ' .uagb-cf7-styler__highlight-style-bottom_right .wpcf7-not-valid-tip' => array(
3643
- 'background-color' => $attr['validationMsgBgColor'],
3644
- ),
3645
- ' .wpcf7-response-output' => array(
3646
- 'border-width' => UAGB_Helper::get_css_value( $attr['msgBorderSize'], 'px' ),
3647
- 'border-radius' => UAGB_Helper::get_css_value( $attr['msgBorderRadius'], $attr['msgBorderRadiusType'] ),
3648
- 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSize'], $attr['msgFontSizeType'] ),
3649
- 'font-family' => $attr['msgFontFamily'],
3650
- 'font-weight' => $attr['msgFontWeight'],
3651
- 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeight'], $attr['msgLineHeightType'] ),
3652
- 'padding-top' => UAGB_Helper::get_css_value( $attr['msgVrPadding'], 'px' ),
3653
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['msgVrPadding'], 'px' ),
3654
- 'padding-left' => UAGB_Helper::get_css_value( $attr['msgHrPadding'], 'px' ),
3655
- 'padding-right' => UAGB_Helper::get_css_value( $attr['msgHrPadding'], 'px' ),
3656
- ),
3657
- ' .wpcf7-response-output.wpcf7-validation-errors' => array(
3658
- 'background-color' => $attr['errorMsgBgColor'],
3659
- 'border-color' => $attr['errorMsgBorderColor'],
3660
- 'color' => $attr['errorMsgColor'],
3661
- ),
3662
- ' .wpcf7-response-output.wpcf7-validation- success' => array(
3663
- 'background-color' => $attr['successMsgBgColor'],
3664
- 'border-color' => $attr['successMsgBorderColor'],
3665
- 'color' => $attr['successMsgColor'],
3666
- ),
3667
-
3668
- );
3669
-
3670
- $t_selectors = array(
3671
- ' .wpcf7 form.wpcf7-form:not(input)' => array(
3672
- 'color' => $attr['fieldLabelColor'],
3673
- ),
3674
- ' .wpcf7 input:not([type=submit])' => array(
3675
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
3676
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
3677
- ),
3678
- ' .wpcf7 select' => array(
3679
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
3680
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
3681
- ),
3682
- ' .wpcf7 textarea' => array(
3683
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
3684
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
3685
- ),
3686
- ' .wpcf7 form label' => array(
3687
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
3688
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
3689
- ),
3690
-
3691
- ' .wpcf7 form .wpcf7-list-item-label' => array(
3692
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
3693
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
3694
- ),
3695
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3696
- 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeTablet'], $attr['buttonFontSizeType'] ),
3697
- 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightTablet'], $attr['buttonLineHeightType'] ),
3698
- ),
3699
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3700
- 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
3701
- 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
3702
- ),
3703
- ' span.wpcf7-not-valid-tip' => array(
3704
- 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
3705
- 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
3706
- ),
3707
- ' .wpcf7-response-output' => array(
3708
- 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
3709
- 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
3710
- ),
3711
- );
3712
-
3713
- $m_selectors = array(
3714
- ' .wpcf7 input:not([type=submit])' => array(
3715
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
3716
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
3717
- ),
3718
- ' .wpcf7 select' => array(
3719
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
3720
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
3721
- ),
3722
- ' .wpcf7 textarea' => array(
3723
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
3724
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
3725
- ),
3726
- ' .wpcf7 form label' => array(
3727
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
3728
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
3729
- ),
3730
-
3731
- ' .wpcf7 form .wpcf7-list-item-label' => array(
3732
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
3733
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
3734
- ),
3735
- ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3736
- 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeMobile'], $attr['buttonFontSizeType'] ),
3737
- 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightMobile'], $attr['buttonLineHeightType'] ),
3738
- ),
3739
- ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3740
- 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
3741
- 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
3742
- ),
3743
- ' span.wpcf7-not-valid-tip' => array(
3744
- 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
3745
- 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
3746
- ),
3747
- ' .wpcf7-response-output' => array(
3748
- 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
3749
- 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
3750
- ),
3751
- );
3752
-
3753
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cf7-styler-' . $id );
3754
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-cf7-styler-' . $id );
3755
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-cf7-styler-' . $id );
3756
-
3757
- $generated_css = array(
3758
- 'desktop' => $desktop,
3759
- 'tablet' => $tablet,
3760
- 'mobile' => $mobile,
3761
- );
3762
-
3763
- return $generated_css;
3764
- }
3765
-
3766
-
3767
-
3768
- /**
3769
- * Get Gravity Form Styler CSS
3770
- *
3771
- * @param array $attr The block attributes.
3772
- * @param string $id The selector ID.
3773
- * @since 1.12.0
3774
- */
3775
- public static function get_gf_styler_css( $attr, $id ) {
3776
- $defaults = UAGB_Helper::$block_list['uagb/gf-styler']['attributes'];
3777
-
3778
- $attr = array_merge( $defaults, (array) $attr );
3779
-
3780
- $attr['msgVrPadding'] = ( '' === $attr['msgVrPadding'] ) ? '0' : $attr['msgVrPadding'];
3781
- $attr['msgHrPadding'] = ( '' === $attr['msgHrPadding'] ) ? '0' : $attr['msgHrPadding'];
3782
- $attr['textAreaHeight'] = ( 'auto' === $attr['msgHrPadding'] ) ? $attr['textAreaHeight'] : $attr['textAreaHeight'] . 'px';
3783
-
3784
- $selectors = array(
3785
- ' .gform_wrapper form' => array(
3786
- 'text-align' => $attr['align'],
3787
- ),
3788
- ' .wp-block-uagb-gf-styler form:not(input)' => array(
3789
- 'color' => $attr['fieldLabelColor'],
3790
- ),
3791
- ' .gform_heading' => array(
3792
- 'text-align' => $attr['titleDescAlignment'],
3793
- ),
3794
- ' input:not([type=submit])' => array(
3795
- 'background-color' => $attr['fieldBgColor'],
3796
- 'color' => $attr['fieldInputColor'],
3797
- 'border-style' => $attr['fieldBorderStyle'],
3798
- 'border-color' => $attr['fieldBorderColor'],
3799
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3800
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3801
- 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3802
- 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3803
- 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3804
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3805
- 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3806
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3807
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3808
- 'font-family' => $attr['inputFontFamily'],
3809
- 'font-weight' => $attr['inputFontWeight'],
3810
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3811
- 'text-align' => $attr['align'],
3812
- ),
3813
- ' select' => array(
3814
- 'background-color' => $attr['fieldBgColor'],
3815
- 'border-style' => $attr['fieldBorderStyle'],
3816
- 'border-color' => $attr['fieldBorderColor'],
3817
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3818
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3819
- 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3820
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3821
- 'color' => $attr['fieldInputColor'],
3822
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3823
- 'font-family' => $attr['inputFontFamily'],
3824
- 'font-weight' => $attr['inputFontWeight'],
3825
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3826
- 'text-align' => $attr['align'],
3827
- 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3828
- 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3829
- 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3830
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3831
- ),
3832
- ' .chosen-container-single span' => array(
3833
- 'background-color' => $attr['fieldBgColor'],
3834
- 'border-style' => $attr['fieldBorderStyle'],
3835
- 'border-color' => $attr['fieldBorderColor'],
3836
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3837
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3838
- 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3839
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3840
- 'color' => $attr['fieldInputColor'],
3841
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3842
- 'font-family' => $attr['inputFontFamily'],
3843
- 'font-weight' => $attr['inputFontWeight'],
3844
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3845
- 'text-align' => $attr['align'],
3846
- 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3847
- 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3848
- 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3849
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3850
- ),
3851
- ' .chosen-container-single.chosen-container-active .chosen-single span' => array(
3852
- 'margin-bottom' => 0,
3853
- ),
3854
- ' select.wpgf-form-control.wpgf-select:not([multiple="multiple"])' => array(
3855
- 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3856
- 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3857
- 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3858
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3859
- ),
3860
- ' select.wpgf-select[multiple="multiple"] option' => array(
3861
- 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3862
- 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3863
- 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3864
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3865
- ),
3866
- ' textarea' => array(
3867
- 'background-color' => $attr['fieldBgColor'],
3868
- 'color' => $attr['fieldInputColor'],
3869
- 'border-color' => $attr['fieldBorderColor'],
3870
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3871
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3872
- 'border-style' => $attr['fieldBorderStyle'],
3873
- 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3874
- 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3875
- 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3876
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3877
- 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3878
- 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3879
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3880
- 'font-family' => $attr['inputFontFamily'],
3881
- 'font-weight' => $attr['inputFontWeight'],
3882
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3883
- 'text-align' => $attr['align'],
3884
- 'height' => $attr['textAreaHeight'],
3885
- ),
3886
- ' textarea::placeholder' => array(
3887
- 'color' => $attr['fieldInputColor'],
3888
- 'text-align' => $attr['align'],
3889
- ),
3890
- ' input::placeholder' => array(
3891
- 'color' => $attr['fieldInputColor'],
3892
- 'text-align' => $attr['align'],
3893
- ),
3894
- ' form label' => array(
3895
- 'color' => $attr['fieldLabelColor'],
3896
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
3897
- 'font-family' => $attr['labelFontFamily'],
3898
- 'font-weight' => $attr['labelFontWeight'],
3899
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
3900
- ),
3901
- ' form .gfield_radio label' => array(
3902
- 'color' => $attr['fieldLabelColor'],
3903
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
3904
- 'font-family' => $attr['labelFontFamily'],
3905
- 'font-weight' => $attr['labelFontWeight'],
3906
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
3907
- ),
3908
- ' form .gfield_checkbox label' => array(
3909
- 'color' => $attr['fieldLabelColor'],
3910
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
3911
- 'font-family' => $attr['labelFontFamily'],
3912
- 'font-weight' => $attr['labelFontWeight'],
3913
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
3914
- ),
3915
- ' .wpgf .gfield_checkbox input[type="checkbox"] + label, .wpgf .gfield_checkbox input[type="checkbox"] + label' => array(
3916
- 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3917
- ),
3918
-
3919
- // Focus.
3920
- ' form input:not([type=submit]):focus' => array(
3921
- 'border-color' => $attr['fieldBorderFocusColor'],
3922
- ),
3923
- ' form select:focus' => array(
3924
- 'border-color' => $attr['fieldBorderFocusColor'],
3925
- ),
3926
- ' textarea:focus' => array(
3927
- 'border-color' => $attr['fieldBorderFocusColor'],
3928
- ),
3929
-
3930
- // Submit button.
3931
- ' input.gform_button' => array(
3932
- 'color' => $attr['buttonTextColor'],
3933
- 'background-color' => $attr['buttonBgColor'],
3934
- 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSize'], $attr['buttonFontSizeType'] ),
3935
- 'font-family' => $attr['buttonFontFamily'],
3936
- 'font-weight' => $attr['buttonFontWeight'],
3937
- 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeight'], $attr['buttonLineHeightType'] ),
3938
- 'border-color' => $attr['buttonBorderColor'],
3939
- 'border-style' => $attr['buttonBorderStyle'],
3940
- 'border-width' => UAGB_Helper::get_css_value( $attr['buttonBorderWidth'], 'px' ),
3941
- 'border-radius' => UAGB_Helper::get_css_value( $attr['buttonBorderRadius'], $attr['buttonBorderRadiusType'] ),
3942
- 'padding-left' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
3943
- 'padding-right' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
3944
- 'padding-top' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
3945
- 'padding-bottom' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
3946
- ),
3947
- ' input.gform_button:hover' => array(
3948
- 'color' => $attr['buttonTextHoverColor'],
3949
- 'background-color' => $attr['buttonBgHoverColor'],
3950
- 'border-color' => $attr['buttonBorderHoverColor'],
3951
- ),
3952
-
3953
- // Check box Radio.
3954
- ' .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
3955
- 'background-color' => $attr['fieldBgColor'],
3956
- 'color' => $attr['fieldInputColor'],
3957
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3958
- 'border-color' => $attr['fieldBorderFocusColor'],
3959
- ),
3960
- ' .gfield_checkbox input[type="checkbox"] + label:before' => array(
3961
- 'background-color' => $attr['fieldBgColor'],
3962
- 'color' => $attr['fieldInputColor'],
3963
- 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3964
- 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3965
- 'border-style' => $attr['fieldBorderStyle'],
3966
- 'border-color' => $attr['fieldBorderColor'],
3967
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3968
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3969
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3970
- ),
3971
- ' input[type="checkbox"]:checked + label:before' => array(
3972
- 'background-color' => $attr['fieldBgColor'],
3973
- 'color' => $attr['fieldInputColor'],
3974
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3975
- 'border-color' => $attr['fieldBorderFocusColor'],
3976
- ),
3977
- ' input[type="checkbox"] + label:before' => array(
3978
- 'background-color' => $attr['fieldBgColor'],
3979
- 'color' => $attr['fieldInputColor'],
3980
- 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3981
- 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3982
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3983
- 'border-color' => $attr['fieldBorderColor'],
3984
- 'border-style' => $attr['fieldBorderStyle'],
3985
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3986
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3987
- ),
3988
- ' .gfield_radio input[type="radio"] + label:before' => array(
3989
- 'background-color' => $attr['fieldBgColor'],
3990
- 'color' => $attr['fieldInputColor'],
3991
- 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3992
- 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3993
- 'border-style' => $attr['fieldBorderStyle'],
3994
- 'border-color' => $attr['fieldBorderColor'],
3995
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3996
- ),
3997
- ' .gfield_radio input[type="radio"]:checked + label:before' => array(
3998
- 'border-color' => $attr['fieldBorderFocusColor'],
3999
- ),
4000
-
4001
- // Underline border.
4002
- ' .uagb-gf-styler__field-style-underline input:not([type=submit])' => array(
4003
- 'border-style' => 'none',
4004
- 'border-bottom-color' => $attr['fieldBorderColor'],
4005
- 'border-bottom-style' => 'solid',
4006
- 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4007
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4008
- ),
4009
- ' .uagb-gf-styler__field-style-underline textarea' => array(
4010
- 'border-style' => 'none',
4011
- 'border-bottom-color' => $attr['fieldBorderColor'],
4012
- 'border-bottom-style' => 'solid',
4013
- 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4014
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4015
- ),
4016
- ' .uagb-gf-styler__field-style-underline select' => array(
4017
- 'border-style' => 'none',
4018
- 'border-bottom-color' => $attr['fieldBorderColor'],
4019
- 'border-bottom-style' => 'solid',
4020
- 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4021
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4022
- ),
4023
- ' .uagb-gf-styler__field-style-underline textarea' => array(
4024
- 'border-style' => 'none',
4025
- 'border-bottom-color' => $attr['fieldBorderColor'],
4026
- 'border-bottom-style' => 'solid',
4027
- 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4028
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4029
- ),
4030
- ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
4031
- 'border-style' => 'solid',
4032
- ),
4033
- ' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
4034
- 'border-style' => 'solid',
4035
- ),
4036
- ' .uagb-gf-styler__field-style-box .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
4037
- 'border-style' => 'solid',
4038
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4039
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4040
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
4041
- ),
4042
- ' .uagb-gf-styler__field-style-box input[type="checkbox"]:checked + label:before' => array(
4043
- 'border-style' => 'solid',
4044
- 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4045
- 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4046
- 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
4047
- ),
4048
- ' .gfield_radio input[type="radio"]:checked + label:before' => array(
4049
- 'background-color' => $attr['fieldInputColor'],
4050
- ),
4051
-
4052
- // Override check box.
4053
- ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
4054
- 'background-color' => $attr['radioCheckBgColor'],
4055
- 'color' => $attr['radioCheckSelectColor'],
4056
- 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4057
- 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4058
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
4059
- 'border-color' => $attr['radioCheckBorderColor'],
4060
- 'border-style' => 'solid',
4061
- 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
4062
- 'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
4063
- ),
4064
- ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
4065
- 'border-color' => $attr['fieldBorderFocusColor'],
4066
- ),
4067
- ' .uagb-gf-styler__check-style-enabled input[type="checkbox"] + label:before' => array(
4068
- 'background-color' => $attr['radioCheckBgColor'],
4069
- 'color' => $attr['radioCheckSelectColor'],
4070
- 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4071
- 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4072
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
4073
- 'border-color' => $attr['radioCheckBorderColor'],
4074
- 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
4075
- 'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
4076
- ),
4077
- ' .uagb-gf-styler__check-style-enabled input[type="checkbox"]:checked + label:before' => array(
4078
- 'border-color' => $attr['fieldBorderFocusColor'],
4079
- ),
4080
-
4081
- ' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
4082
- 'background-color' => $attr['radioCheckBgColor'],
4083
- 'color' => $attr['radioCheckSelectColor'],
4084
- 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4085
- 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4086
- 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
4087
- 'border-color' => $attr['radioCheckBorderColor'],
4088
- 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
4089
- ),
4090
- ' .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]:checked + label:before' => array(
4091
- 'background-color' => $attr['radioCheckSelectColor'],
4092
- ),
4093
- ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
4094
- 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
4095
- 'font-family' => $attr['radioCheckFontFamily'],
4096
- 'font-weight' => $attr['radioCheckFontWeight'],
4097
- 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
4098
- 'color' => $attr['radioCheckLableColor'],
4099
- ),
4100
- ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
4101
- 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
4102
- 'font-family' => $attr['radioCheckFontFamily'],
4103
- 'font-weight' => $attr['radioCheckFontWeight'],
4104
- 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
4105
- 'color' => $attr['radioCheckLableColor'],
4106
- ),
4107
- // Validation Errors.
4108
- ' .gform_wrapper .gfield_description.validation_message' => array(
4109
- 'color' => $attr['validationMsgColor'],
4110
- ),
4111
- ' .gform_wrapper .validation_message' => array(
4112
- 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSize'], $attr['validationMsgFontSizeType'] ),
4113
- 'font-family' => $attr['validationMsgFontFamily'],
4114
- 'font-weight' => $attr['validationMsgFontWeight'],
4115
- 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeight'], $attr['validationMsgLineHeightType'] ),
4116
- ),
4117
- ' .uagb-gf-styler__error-yes .gform_wrapper .gfield.gfield_error' => array(
4118
- 'background-color' => $attr['validationMsgBgColor'],
4119
- ),
4120
-
4121
- ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input:not([type="submit"]):not([type="button"]):not([type="image"])' => array(
4122
- 'border-color' => $attr['highlightBorderColor'],
4123
- ),
4124
-
4125
- ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container select' => array(
4126
- 'border-color' => $attr['highlightBorderColor'],
4127
- ),
4128
-
4129
- ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container .chosen-single' => array(
4130
- 'border-color' => $attr['highlightBorderColor'],
4131
- ),
4132
-
4133
- ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container textarea' => array(
4134
- 'border-color' => $attr['highlightBorderColor'],
4135
- ),
4136
-
4137
- ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error' => array(
4138
- 'border-color' => $attr['highlightBorderColor'],
4139
- ),
4140
-
4141
- ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning' => array(
4142
- 'border-color' => $attr['highlightBorderColor'],
4143
- ),
4144
-
4145
- ' .uagb-gf-styler__error-yes li.gfield_error .gfield_checkbox input[type="checkbox"] + label:before' => array(
4146
- 'border-color' => $attr['highlightBorderColor'],
4147
- ),
4148
-
4149
- ' .uagb-gf-styler__error-yes li.gfield_error .ginput_container_consent input[type="checkbox"] + label:before' => array(
4150
- 'border-color' => $attr['highlightBorderColor'],
4151
- ),
4152
-
4153
- ' .uagb-gf-styler__error-yes li.gfield_error .gfield_radio input[type="radio"] + label:before' => array(
4154
- 'border-color' => $attr['highlightBorderColor'],
4155
- ),
4156
-
4157
- ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
4158
- 'border' => $attr['fieldBorderWidth'] . 'px ' . $attr['fieldBorderStyle'] . ' ' . $attr['fieldBorderColor'] . '!important',
4159
- ),
4160
-
4161
- ' .uael-gf-style-underline.uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
4162
- 'border-width' => $attr['fieldBorderWidth'] . 'px' . '!important',
4163
- 'border-style' => 'solid' . '!important',
4164
- 'border-color' => $attr['fieldBorderColor'] . '!important',
4165
- ),
4166
-
4167
- ' .gform_wrapper div.validation_error' => array(
4168
- 'color' => $attr['errorMsgColor'],
4169
- 'background-color' => $attr['errorMsgBgColor'],
4170
- 'border-color' => $attr['errorMsgBorderColor'],
4171
- 'border-style' => 'solid',
4172
- 'border-width' => UAGB_Helper::get_css_value( $attr['msgBorderSize'], 'px' ),
4173
- 'border-radius' => UAGB_Helper::get_css_value( $attr['msgBorderRadius'], $attr['msgBorderRadiusType'] ),
4174
- 'padding' => $attr['msgVrPadding'] . 'px ' . $attr['msgHrPadding'] . 'px',
4175
- 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSize'], $attr['msgFontSizeType'] ),
4176
- 'font-family' => $attr['msgFontFamily'],
4177
- 'font-weight' => $attr['msgFontWeight'],
4178
- 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeight'], $attr['msgLineHeightType'] ),
4179
- ),
4180
-
4181
- ' .gform_confirmation_message' => array(
4182
- 'color' => $attr['successMsgColor'],
4183
- 'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSize'], $attr['successMsgFontSizeType'] ),
4184
- 'font-family' => $attr['successMsgFontFamily'],
4185
- 'font-weight' => $attr['successMsgFontWeight'],
4186
- 'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeight'], $attr['successMsgLineHeightType'] ),
4187
- ),
4188
- );
4189
-
4190
- $t_selectors = array(
4191
- ' form.wpgf-form:not(input)' => array(
4192
- 'color' => $attr['fieldLabelColor'],
4193
- ),
4194
- ' input:not([type=submit])' => array(
4195
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
4196
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
4197
- ),
4198
- ' textarea' => array(
4199
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
4200
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
4201
- ),
4202
- ' form label' => array(
4203
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
4204
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
4205
- ),
4206
-
4207
- ' form .gfield_radio label' => array(
4208
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
4209
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
4210
- ),
4211
- ' form .gfield_checkbox label' => array(
4212
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
4213
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
4214
- ),
4215
- ' input.gform_button' => array(
4216
- 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeTablet'], $attr['buttonFontSizeType'] ),
4217
- 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightTablet'], $attr['buttonLineHeightType'] ),
4218
- ),
4219
- ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
4220
- 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
4221
- 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
4222
- ),
4223
- ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
4224
- 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
4225
- 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
4226
- ),
4227
- ' span.wpgf-not-valid-tip' => array(
4228
- 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
4229
- 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
4230
- ),
4231
- ' .wpgf-response-output' => array(
4232
- 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
4233
- 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
4234
- ),
4235
- ' .gform_wrapper .validation_message' => array(
4236
- 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
4237
- 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
4238
- ),
4239
- ' .gform_wrapper div.validation_error' => array(
4240
- 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
4241
- 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
4242
- ),
4243
- ' .gform_confirmation_message' => array(
4244
- 'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSizeTablet'], $attr['successMsgFontSizeType'] ),
4245
- 'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeightTablet'], $attr['successMsgLineHeightType'] ),
4246
- 'color' => $attr['successMsgColor'],
4247
- ),
4248
- );
4249
-
4250
- $m_selectors = array(
4251
- ' input:not([type=submit])' => array(
4252
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
4253
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
4254
- ),
4255
- ' textarea' => array(
4256
- 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
4257
- 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
4258
- ),
4259
- ' form label' => array(
4260
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
4261
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
4262
- ),
4263
-
4264
- ' form .gfield_radio label' => array(
4265
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
4266
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
4267
- ),
4268
- ' form .gfield_checkbox label' => array(
4269
- 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
4270
- 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
4271
- ),
4272
- ' input.gform_button' => array(
4273
- 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeMobile'], $attr['buttonFontSizeType'] ),
4274
- 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightMobile'], $attr['buttonLineHeightType'] ),
4275
- ),
4276
- ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
4277
- 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
4278
- 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
4279
- ),
4280
- ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
4281
- 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
4282
- 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
4283
- ),
4284
- ' span.wpgf-not-valid-tip' => array(
4285
- 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
4286
- 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
4287
- ),
4288
- ' .wpgf-response-output' => array(
4289
- 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
4290
- 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
4291
- ),
4292
- ' .gform_wrapper .validation_message' => array(
4293
- 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
4294
- 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
4295
- ),
4296
- ' .gform_wrapper div.validation_error' => array(
4297
- 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
4298
- 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
4299
- ),
4300
- ' .gform_confirmation_message' => array(
4301
- 'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSizeMobile'], $attr['successMsgFontSizeType'] ),
4302
- 'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeightMobile'], $attr['successMsgLineHeightType'] ),
4303
- 'color' => $attr['successMsgColor'],
4304
- ),
4305
- );
4306
-
4307
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-gf-styler-' . $id );
4308
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-gf-styler-' . $id );
4309
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-gf-styler-' . $id );
4310
- $generated_css = array(
4311
- 'desktop' => $desktop,
4312
- 'tablet' => $tablet,
4313
- 'mobile' => $mobile,
4314
- );
4315
-
4316
- return $generated_css;
4317
- }
4318
-
4319
- /*
4320
- * Get Marketing Button Block CSS
4321
- *
4322
- * @since 1.11.0
4323
- * @param array $attr The block attributes.
4324
- * @param string $id The selector ID.
4325
- * @return array The Widget List.
4326
- */
4327
- public static function get_marketing_btn_css( $attr, $id ) { // @codingStandardsIgnoreStart
4328
-
4329
- $defaults = UAGB_Helper::$block_list['uagb/marketing-button']['attributes'];
4330
-
4331
- $attr = array_merge( $defaults, (array) $attr );
4332
-
4333
- $m_selectors = array();
4334
- $t_selectors = array();
4335
-
4336
- $icon_color = ( "" == $attr["iconColor"] ) ? $attr["titleColor"] : $attr["iconColor"];
4337
- $icon_hover_color = ( "" == $attr["iconHoverColor"] ) ? $attr["titleHoverColor"] : $attr["iconHoverColor"];
4338
-
4339
- $selectors = array(
4340
- " .uagb-marketing-btn__title-wrap" => array(
4341
- "margin-bottom" => UAGB_Helper::get_css_value( $attr["titleSpace"], 'px' )
4342
- ),
4343
- " .uagb-marketing-btn__title" => array(
4344
- "font-size" => UAGB_Helper::get_css_value( $attr["titleFontSize"], $attr["titleFontSizeType"] ),
4345
- "line-height" => UAGB_Helper::get_css_value( $attr["titleLineHeight"], $attr["titleLineHeightType"] ),
4346
- "font-family" => $attr["titleFontFamily"],
4347
- "font-weight" => $attr["titleFontWeight"],
4348
- "color" => $attr["titleColor"],
4349
- ),
4350
- " .uagb-marketing-btn__icon-wrap" => array(
4351
- "width" => UAGB_Helper::get_css_value( $attr["iconFontSize"], $attr["iconFontSizeType"] ),
4352
- "height" => UAGB_Helper::get_css_value( $attr["iconFontSize"], $attr["iconFontSizeType"] ),
4353
- ),
4354
- " .uagb-marketing-btn__icon-wrap svg" => array(
4355
- "fill" => $icon_color
4356
- ),
4357
- " .uagb-marketing-btn__prefix" => array(
4358
- "font-size" => UAGB_Helper::get_css_value( $attr["prefixFontSize"], $attr["prefixFontSizeType"] ),
4359
- "line-height" => UAGB_Helper::get_css_value( $attr["prefixLineHeight"], $attr["prefixLineHeightType"] ),
4360
- "font-family" => $attr["prefixFontFamily"],
4361
- "font-weight" => $attr["prefixFontWeight"],
4362
- "color" => $attr["prefixColor"],
4363
- ),
4364
- " .uagb-marketing-btn__link:hover .uagb-marketing-btn__title" => array(
4365
- "color" => $attr["titleHoverColor"],
4366
- ),
4367
- " .uagb-marketing-btn__link:hover .uagb-marketing-btn__prefix" => array(
4368
- "color" => $attr["prefixHoverColor"],
4369
- ),
4370
- " .uagb-marketing-btn__link:hover .uagb-marketing-btn__icon-wrap svg" => array(
4371
- "fill" => $icon_hover_color
4372
- ),
4373
- " .uagb-marketing-btn__link" => array(
4374
- "padding-left" => UAGB_Helper::get_css_value( $attr["hPadding"], $attr['paddingType'] ),
4375
- "padding-right" => UAGB_Helper::get_css_value( $attr["hPadding"], $attr['paddingType'] ),
4376
- "padding-top" => UAGB_Helper::get_css_value( $attr["vPadding"], $attr['paddingType'] ),
4377
- "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPadding"], $attr['paddingType'] ),
4378
- "border-style" => $attr["borderStyle"],
4379
- "border-width" => UAGB_Helper::get_css_value( $attr["borderWidth"], 'px' ),
4380
- "border-color" => $attr["borderColor"],
4381
- "border-radius" => UAGB_Helper::get_css_value( $attr["borderRadius"], 'px' ),
4382
- ),
4383
- " .uagb-marketing-btn__link:hover" => array(
4384
- "border-color" => $attr["borderHoverColor"]
4385
- ),
4386
- );
4387
-
4388
- if ( "transparent" == $attr["backgroundType"] ) {
4389
-
4390
- $selectors[" .uagb-marketing-btn__link"]["background"] = "transparent";
4391
-
4392
- } else if ( "color" == $attr["backgroundType"] ) {
4393
-
4394
- $selectors[" .uagb-marketing-btn__link"]["background"] = UAGB_Helper::hex2rgba( $attr["backgroundColor"], $attr['backgroundOpacity'] );
4395
-
4396
- // Hover Background
4397
- $selectors[" .uagb-marketing-btn__link:hover"] = array(
4398
- "background" => UAGB_Helper::hex2rgba( $attr["backgroundHoverColor"], $attr['backgroundHoverOpacity'] ),
4399
- );
4400
-
4401
- } else if ( "gradient" == $attr["backgroundType"] ) {
4402
-
4403
- $selectors[' .uagb-marketing-btn__link']['background-color'] = 'transparent';
4404
-
4405
- if ( 'linear' === $attr['gradientType'] ) {
4406
-
4407
- $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'] . '%)';
4408
- } else {
4409
-
4410
- $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'] . '%)';
4411
- }
4412
- }
4413
-
4414
- $margin_type = ( "after" == $attr["iconPosition"] ) ? "margin-left" : "margin-right";
4415
-
4416
- $selectors[" .uagb-marketing-btn__icon-wrap"][$margin_type] = UAGB_Helper::get_css_value( $attr["iconSpace"], "px" );
4417
-
4418
- $m_selectors = array(
4419
- ' .uagb-marketing-btn__title' => array(
4420
- 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
4421
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
4422
- ),
4423
- ' .uagb-marketing-btn__prefix' => array(
4424
- 'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
4425
- 'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightMobile'], $attr['prefixLineHeightType'] ),
4426
- ),
4427
- ' .uagb-marketing-btn__icon-wrap' => array(
4428
- "width" => UAGB_Helper::get_css_value( $attr["iconFontSizeMobile"], $attr["iconFontSizeType"] ),
4429
- "height" => UAGB_Helper::get_css_value( $attr["iconFontSizeMobile"], $attr["iconFontSizeType"] ),
4430
- ),
4431
- " .uagb-marketing-btn__link" => array(
4432
- "padding-left" => UAGB_Helper::get_css_value( $attr["hPaddingMobile"], $attr['paddingType'] ),
4433
- "padding-right" => UAGB_Helper::get_css_value( $attr["hPaddingMobile"], $attr['paddingType'] ),
4434
- "padding-top" => UAGB_Helper::get_css_value( $attr["vPaddingMobile"], $attr['paddingType'] ),
4435
- "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPaddingMobile"], $attr['paddingType'] ),
4436
- ),
4437
-
4438
- );
4439
-
4440
- $t_selectors = array(
4441
- ' .uagb-marketing-btn__title' => array(
4442
- 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
4443
- 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
4444
- ),
4445
- ' .uagb-marketing-btn__prefix' => array(
4446
- 'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
4447
- 'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightTablet'], $attr['prefixLineHeightType'] ),
4448
- ),
4449
- ' .uagb-marketing-btn__icon-wrap' => array(
4450
- "width" => UAGB_Helper::get_css_value( $attr["iconFontSizeTablet"], $attr["iconFontSizeType"] ),
4451
- "height" => UAGB_Helper::get_css_value( $attr["iconFontSizeTablet"], $attr["iconFontSizeType"] ),
4452
- ),
4453
- " .uagb-marketing-btn__link" => array(
4454
- "padding-left" => UAGB_Helper::get_css_value( $attr["hPaddingTablet"], $attr['paddingType'] ),
4455
- "padding-right" => UAGB_Helper::get_css_value( $attr["hPaddingTablet"], $attr['paddingType'] ),
4456
- "padding-top" => UAGB_Helper::get_css_value( $attr["vPaddingTablet"], $attr['paddingType'] ),
4457
- "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPaddingTablet"], $attr['paddingType'] ),
4458
- ),
4459
-
4460
- );
4461
-
4462
- // @codingStandardsIgnoreEnd
4463
-
4464
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-marketing-btn-' . $id );
4465
-
4466
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-marketing-btn-' . $id );
4467
-
4468
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-marketing-btn-' . $id );
4469
-
4470
- $generated_css = array(
4471
- 'desktop' => $desktop,
4472
- 'tablet' => $tablet,
4473
- 'mobile' => $mobile,
4474
- );
4475
-
4476
- return $generated_css;
4477
- }
4478
-
4479
- /**
4480
- * Get Table of Contents Block CSS
4481
- *
4482
- * @since 1.13.0
4483
- * @param array $attr The block attributes.
4484
- * @param string $id The selector ID.
4485
- * @return array The Widget List.
4486
- */
4487
- public static function get_table_of_contents_css( $attr, $id ) { // @codingStandardsIgnoreStart
4488
-
4489
- $defaults = UAGB_Helper::$block_list['uagb/table-of-contents']['attributes'];
4490
-
4491
- $attr = array_merge( $defaults, (array) $attr );
4492
- $m_selectors = array();
4493
- $t_selectors = array();
4494
-
4495
- $selectors = array(
4496
- " .uagb-toc__list-wrap ul li a:hover" => array(
4497
- "color" => $attr["linkHoverColor"],
4498
- ),
4499
- " .uagb-toc__list-wrap ul li a" => array(
4500
- "font-size" => UAGB_Helper::get_css_value( $attr["fontSize"], $attr["fontSizeType"] ),
4501
- "line-height" => UAGB_Helper::get_css_value( $attr["lineHeight"], $attr["lineHeightType"] ),
4502
- "font-family" => $attr["fontFamily"],
4503
- "font-weight" => $attr["fontWeight"],
4504
- "color" => $attr["linkColor"],
4505
- ),
4506
- " .uagb-toc__title" => array(
4507
- "font-size" => UAGB_Helper::get_css_value( $attr["headingFontSize"], $attr["headingFontSizeType"] ),
4508
- "line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeight"], $attr["headingLineHeightType"] ),
4509
- "font-family" => $attr["headingFontFamily"],
4510
- "font-weight" => $attr["headingFontWeight"],
4511
- "color" => $attr["headingColor"],
4512
- "margin-bottom" => UAGB_Helper::get_css_value( $attr["headingBottom"], "px"),
4513
- ),
4514
- " .uagb-toc__wrap" => array(
4515
- "border-style" => $attr["borderStyle"],
4516
- "border-width" => UAGB_Helper::get_css_value( $attr["borderWidth"], "px" ),
4517
- "border-color" => $attr["borderColor"],
4518
- "border-radius" => UAGB_Helper::get_css_value( $attr["borderRadius"], "px" ),
4519
- "padding-left" => UAGB_Helper::get_css_value( $attr["hPaddingDesktop"], $attr["paddingTypeDesktop"] ),
4520
- "padding-right" => UAGB_Helper::get_css_value( $attr["hPaddingDesktop"], $attr["paddingTypeDesktop"] ),
4521
- "padding-top" => UAGB_Helper::get_css_value( $attr["vPaddingDesktop"], $attr["paddingTypeDesktop"] ),
4522
- "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPaddingDesktop"], $attr["paddingTypeDesktop"] ),
4523
- "background" => $attr["backgroundColor"],
4524
- ),
4525
- " .uagb-toc__list-wrap" => array(
4526
- 'column-count' => $attr['tColumnsDesktop'],
4527
- ),
4528
- " .uagb-toc__list-wrap > ul.uagb-toc__list > li:first-child" => array(
4529
- "padding-top" => 0
4530
- ),
4531
- " .uagb-toc__list-wrap ul.uagb-toc__list:first-child" => array(
4532
- "margin-left" => UAGB_Helper::get_css_value( $attr["hMarginDesktop"], $attr["marginTypeDesktop"] ),
4533
- "margin-right" => UAGB_Helper::get_css_value( $attr["hMarginDesktop"], $attr["marginTypeDesktop"] ),
4534
- "margin-top" => UAGB_Helper::get_css_value( $attr["vMarginDesktop"], $attr["marginTypeDesktop"] ),
4535
- "margin-bottom" => UAGB_Helper::get_css_value( $attr["vMarginDesktop"], $attr["marginTypeDesktop"] ),
4536
- ),
4537
- " .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child" => array(
4538
- "padding-bottom" => 0
4539
- ),
4540
- " .uag-toc__collapsible-wrap svg" => array(
4541
- "width" => UAGB_Helper::get_css_value( $attr["iconSize"], "px" ),
4542
- "height" => UAGB_Helper::get_css_value( $attr["iconSize"], "px" ),
4543
- "fill" => $attr["iconColor"]
4544
- ),
4545
- );
4546
-
4547
- if ( '' != $attr["contentPaddingDesktop"] ) {
4548
- $selectors[" .uagb-toc__list-wrap ul.uagb-toc__list > li"]["padding-top"] = "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingDesktop'] . $attr['contentPaddingTypeDesktop'] ) . " / 2 )";
4549
- $selectors[" .uagb-toc__list-wrap ul.uagb-toc__list > li"]["padding-bottom"] = "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingDesktop'] . $attr['contentPaddingTypeDesktop'] ) . " / 2 )";
4550
- }
4551
-
4552
- if ( $attr["customWidth"] ) {
4553
- $selectors[" .uagb-toc__wrap"]["width"] = UAGB_Helper::get_css_value( $attr["widthDesktop"], $attr["widthTypeDesktop"] );
4554
- }
4555
-
4556
- if ( $attr["disableBullets"] ) {
4557
- $selectors[" .uagb-toc__list"] = array(
4558
- "list-style-type" => 'none'
4559
- );
4560
- $selectors[" .uagb-toc__list .uagb-toc__list"] = array(
4561
- "list-style-type" => 'none'
4562
- );
4563
- }
4564
-
4565
-
4566
- $m_selectors = array(
4567
- ' .uagb-toc__list-wrap ul li a' => array(
4568
- 'font-size' => UAGB_Helper::get_css_value( $attr['fontSizeMobile'], $attr['fontSizeType'] ),
4569
- 'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightMobile'], $attr['lineHeightType'] ),
4570
- ),
4571
- " .uagb-toc__title" => array(
4572
- "font-size" => UAGB_Helper::get_css_value( $attr["headingFontSizeMobile"], $attr["headingFontSizeType"] ),
4573
- "line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeightMobile"], $attr["headingLineHeightType"] ),
4574
- ),
4575
- " .uagb-toc__wrap" => array(
4576
- "width" => UAGB_Helper::get_css_value( $attr["widthMobile"], $attr["widthTypeMobile"] ),
4577
- "padding-left" => UAGB_Helper::get_css_value( $attr["hPaddingMobile"], $attr["paddingTypeMobile"] ),
4578
- "padding-right" => UAGB_Helper::get_css_value( $attr["hPaddingMobile"], $attr["paddingTypeMobile"] ),
4579
- "padding-top" => UAGB_Helper::get_css_value( $attr["vPaddingMobile"], $attr["paddingTypeMobile"] ),
4580
- "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPaddingMobile"], $attr["paddingTypeMobile"] ),
4581
- ),
4582
- " .uagb-toc__list-wrap" => array(
4583
- 'column-count' => $attr['tColumnsMobile'],
4584
- ),
4585
- " .uagb-toc__list-wrap > ul.uagb-toc__list > li:first-child" => array(
4586
- "padding-top" => 0
4587
- ),
4588
- " .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child" => array(
4589
- "padding-bottom" => 0
4590
- ),
4591
-
4592
- );
4593
-
4594
- $t_selectors = array(
4595
- ' .uagb-toc__list-wrap ul li a' => array(
4596
- 'font-size' => UAGB_Helper::get_css_value( $attr['fontSizeTablet'], $attr['fontSizeType'] ),
4597
- 'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightTablet'], $attr['lineHeightType'] ),
4598
- ),
4599
- " .uagb-toc__title" => array(
4600
- "font-size" => UAGB_Helper::get_css_value( $attr["headingFontSizeTablet"], $attr["headingFontSizeType"] ),
4601
- "line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeightTablet"], $attr["headingLineHeightType"] ),
4602
- ),
4603
- " .uagb-toc__wrap" => array(
4604
- "width" => UAGB_Helper::get_css_value( $attr["widthTablet"], $attr["widthTypeTablet"] ),
4605
- "padding-left" => UAGB_Helper::get_css_value( $attr["hPaddingTablet"], $attr["paddingTypeTablet"] ),
4606
- "padding-right" => UAGB_Helper::get_css_value( $attr["hPaddingTablet"], $attr["paddingTypeTablet"] ),
4607
- "padding-top" => UAGB_Helper::get_css_value( $attr["vPaddingTablet"], $attr["paddingTypeTablet"] ),
4608
- "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPaddingTablet"], $attr["paddingTypeTablet"] ),
4609
- ),
4610
- " .uagb-toc__list-wrap" => array(
4611
- 'column-count' => $attr['tColumnsTablet'],
4612
- ),
4613
- " .uagb-toc__list-wrap > ul.uagb-toc__list > li:first-child" => array(
4614
- "padding-top" => 0
4615
- ),
4616
- " .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child" => array(
4617
- "padding-bottom" => 0
4618
- ), );
4619
-
4620
- if ( '' != $attr["contentPaddingTablet"] ) {
4621
- $t_selectors[" .uagb-toc__list-wrap ul.uagb-toc__list > li"] = array(
4622
- "padding-top" => "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingTablet'] . $attr['contentPaddingTypeTablet'] ) . " / 2 )",
4623
- "padding-bottom" => "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingTablet'] . $attr['contentPaddingTypeTablet'] ) . " / 2 )",
4624
- );
4625
- }
4626
-
4627
- if ( '' != $attr["contentPaddingMobile"] ) {
4628
- $m_selectors[" .uagb-toc__list-wrap ul.uagb-toc__list > li"] = array(
4629
- "padding-top" => "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingMobile'] . $attr['contentPaddingTypeMobile'] ) . " / 2 )",
4630
- "padding-bottom" => "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingMobile'] . $attr['contentPaddingTypeMobile'] ) . " / 2 )",
4631
- );
4632
- }
4633
-
4634
- // @codingStandardsIgnoreEnd
4635
-
4636
- $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-toc-' . $id );
4637
-
4638
- $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-toc-' . $id );
4639
-
4640
- $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-toc-' . $id );
4641
-
4642
- if ( '' !== $attr['scrollToTopColor'] ) {
4643
- $desktop .= '.uagb-toc__scroll-top { color: ' . $attr['scrollToTopColor'] . '; }';
4644
- }
4645
-
4646
- if ( '' !== $attr['scrollToTopBgColor'] ) {
4647
- $desktop .= '.uagb-toc__scroll-top { background: ' . $attr['scrollToTopBgColor'] . '; }';
4648
- }
4649
-
4650
- $generated_css = array(
4651
- 'desktop' => $desktop,
4652
- 'tablet' => $tablet,
4653
- 'mobile' => $mobile,
4654
- );
4655
-
4656
- return $generated_css;
4657
- }
4658
-
4659
-
4660
- /**
4661
- * Get Testimonial Js
4662
- *
4663
- * @since 1.6.0
4664
- * @param array $attr The block attributes.
4665
- * @param string $id The selector ID.
4666
- */
4667
- public static function get_testimonial_js( $attr, $id ) { // @codingStandardsIgnoreStart.
4668
-
4669
- $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
4670
-
4671
- $attr = array_merge( $defaults, (array) $attr );
4672
-
4673
- $dots = ( "dots" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
4674
- $arrows = ( "arrows" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
4675
-
4676
- $slick_options = apply_filters( 'uagb_testimonials_slick_options',[
4677
- 'slidesToShow' => $attr['columns'],
4678
- 'slidesToScroll' => 1,
4679
- 'autoplaySpeed' => $attr['autoplaySpeed'],
4680
- 'autoplay' => $attr['autoplay'],
4681
- 'infinite' => $attr['infiniteLoop'],
4682
- 'pauseOnHover' => $attr['pauseOnHover'],
4683
- 'speed' => $attr['transitionSpeed'],
4684
- 'arrows' => $arrows,
4685
- 'dots' => $dots,
4686
- 'rtl' => false,
4687
- '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>',
4688
- '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>',
4689
- 'responsive' => [
4690
- [
4691
- 'breakpoint' => 1024,
4692
- 'settings' => [
4693
- 'slidesToShow' => $attr['tcolumns'],
4694
- 'slidesToScroll' => 1,
4695
- ],
4696
- ],
4697
- [
4698
- 'breakpoint' => 767,
4699
- 'settings' => [
4700
- 'slidesToShow' => $attr['mcolumns'],
4701
- 'slidesToScroll' => 1,
4702
- ],
4703
- ]
4704
- ]
4705
- ], $id );
4706
-
4707
- $settings = json_encode($slick_options);
4708
- $selector = '#uagb-testimonial-'. $id;
4709
- $js = '$( document ).ready( function() { if( $( "' . $selector . '" ).length > 0 ){ $( "' . $selector . '" ).find( ".is-carousel" ).slick( ' . $settings .' ); } } );';
4710
-
4711
- return $js;
4712
- // @codingStandardsIgnoreEnd.
4713
- }
4714
-
4715
- /**
4716
- * Get Blockquote Js
4717
- *
4718
- * @since 1.8.2
4719
- * @param array $attr The block attributes.
4720
- * @param string $id The selector ID.
4721
- */
4722
- public static function get_blockquote_js( $attr, $id ) {
4723
- // @codingStandardsIgnoreStart.
4724
-
4725
- $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
4726
-
4727
- $attr = array_merge( $defaults, (array) $attr );
4728
-
4729
- $target = $attr['iconTargetUrl'];
4730
-
4731
- $url = " " ;
4732
-
4733
- if( $target == 'current' ){
4734
- global $wp;
4735
- $url = home_url(add_query_arg(array(),$wp->request));
4736
- }else{
4737
- $url = $attr['customUrl'];
4738
- }
4739
-
4740
- $via = isset( $attr['iconShareVia'] ) ? $attr['iconShareVia'] : '';
4741
-
4742
- $selector = '#uagb-blockquote-'. $id;
4743
-
4744
- $js = 'jQuery( "' . $selector . '" ).find( ".uagb-blockquote__tweet-button" ).click(function(){'.
4745
- 'var content = jQuery("' . $selector . '").find(".uagb-blockquote__content").text();'.
4746
- 'var request_url = "https://twitter.com/share?url="+ encodeURIComponent("' . $url . '")+"&text="+content+"&via="+("' . $via . '");'.
4747
- 'window.open( request_url );'.
4748
- '});';
4749
-
4750
- return $js;
4751
- // @codingStandardsIgnoreEnd.
4752
- }
4753
-
4754
- /**
4755
- * Get Social Share JS
4756
- *
4757
- * @since 1.8.1
4758
- * @param string $id The selector ID.
4759
- */
4760
- public static function get_social_share_js( $id ) {
4761
-
4762
- $selector = '#uagb-social-share-' . $id;
4763
- $js = 'const ssLink = document.querySelector( "' . $selector . '" ).querySelectorAll( ".uagb-ss__link" );';
4764
- $js .= 'for (let i = 0; i < ssLink.length; i++) {
4765
- ssLink[i].addEventListener( "click", function() {' .
4766
- 'var social_url = this.dataset.href; ' .
4767
- 'var target = ""; ' .
4768
- 'if( social_url == "mailto:?body=" ){ ' .
4769
- 'target = "_self";' .
4770
- '}' .
4771
- 'var request_url = social_url + window.location.href ;' .
4772
- 'window.open( request_url,target );' .
4773
- '});' . '}';
4774
-
4775
- return $js;
4776
- }
4777
-
4778
- /**
4779
- * Get Table of Contents Js
4780
- *
4781
- * @since 1.13.0
4782
- * @param array $attr The block attributes.
4783
- * @param string $id The selector ID.
4784
- */
4785
- public static function get_table_of_contents_js( $attr, $id ) {
4786
- // @codingStandardsIgnoreStart.
4787
-
4788
- $defaults = UAGB_Helper::$block_list['uagb/table-of-contents']['attributes'];
4789
-
4790
- $attr = array_merge( $defaults, (array) $attr );
4791
-
4792
- $selector = '#uagb-toc-'. $id;
4793
-
4794
- $js = 'jQuery( document ).ready(function() { ' .
4795
- 'UAGBTableOfContents._run( ' . json_encode( $attr ) . ', "'. $selector .'" ); '.
4796
- '});';
4797
-
4798
- return $js;
4799
- // @codingStandardsIgnoreEnd.
4800
- }
4801
-
4802
- /**
4803
- * Adds Google fonts for Advanced Heading block.
4804
- *
4805
- * @since 1.9.1
4806
- * @param array $attr the blocks attr.
4807
- */
4808
- public static function blocks_advanced_heading_gfont( $attr ) {
4809
-
4810
- $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4811
- $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4812
- $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4813
- $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4814
-
4815
- $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4816
- $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4817
- $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4818
- $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4819
-
4820
- UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
4821
- UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
4822
- }
4823
-
4824
-
4825
- /**
4826
- * Adds Google fonts for CF7 Styler block.
4827
- *
4828
- * @since 1.10.0
4829
- * @param array $attr the blocks attr.
4830
- */
4831
- public static function blocks_cf7_styler_gfont( $attr ) {
4832
-
4833
- $label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
4834
- $label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
4835
- $label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
4836
- $label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
4837
-
4838
- $input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
4839
- $input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
4840
- $input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
4841
- $input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
4842
-
4843
- $radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
4844
- $radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
4845
- $radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
4846
- $radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
4847
-
4848
- $button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
4849
- $button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
4850
- $button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
4851
- $button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
4852
-
4853
- $msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
4854
- $msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
4855
- $msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
4856
- $msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
4857
-
4858
- $validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
4859
- $validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
4860
- $validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
4861
- $validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
4862
-
4863
- UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
4864
- UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
4865
-
4866
- UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
4867
- UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
4868
-
4869
- UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
4870
- UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
4871
- }
4872
-
4873
-
4874
- /**
4875
- * Adds Google fonts for Gravity Form Styler block.
4876
- *
4877
- * @since 1.12.0
4878
- * @param array $attr the blocks attr.
4879
- */
4880
- public static function blocks_gf_styler_gfont( $attr ) {
4881
-
4882
- $label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
4883
- $label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
4884
- $label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
4885
- $label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
4886
-
4887
- $input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
4888
- $input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
4889
- $input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
4890
- $input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
4891
-
4892
- $radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
4893
- $radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
4894
- $radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
4895
- $radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
4896
-
4897
- $button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
4898
- $button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
4899
- $button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
4900
- $button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
4901
-
4902
- $msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
4903
- $msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
4904
- $msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
4905
- $msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
4906
-
4907
- $validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
4908
- $validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
4909
- $validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
4910
- $validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
4911
-
4912
- UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
4913
- UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
4914
-
4915
- UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
4916
- UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
4917
-
4918
- UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
4919
- UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
4920
- }
4921
-
4922
- /**
4923
- * Adds Google fonts for Marketing Button block.
4924
- *
4925
- * @since 1.11.0
4926
- * @param array $attr the blocks attr.
4927
- */
4928
- public static function blocks_marketing_btn_gfont( $attr ) {
4929
-
4930
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4931
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4932
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4933
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4934
-
4935
- $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
4936
- $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
4937
- $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
4938
- $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
4939
-
4940
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4941
- UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
4942
- }
4943
-
4944
- /**
4945
- * Adds Google fonts for Table Of Contents block.
4946
- *
4947
- * @since 1.13.0
4948
- * @param array $attr the blocks attr.
4949
- */
4950
- public static function blocks_table_of_contents_gfont( $attr ) {
4951
- $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
4952
- $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
4953
- $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
4954
- $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
4955
- $heading_load_google_font = isset( $attr['headingLoadGoogleFonts'] ) ? $attr['headingLoadGoogleFonts'] : '';
4956
- $heading_font_family = isset( $attr['headingFontFamily'] ) ? $attr['headingFontFamily'] : '';
4957
- $heading_font_weight = isset( $attr['headingFontWeight'] ) ? $attr['headingFontWeight'] : '';
4958
- $heading_font_subset = isset( $attr['headingFontSubset'] ) ? $attr['headingFontSubset'] : '';
4959
- UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
4960
- UAGB_Helper::blocks_google_font( $heading_load_google_font, $heading_font_family, $heading_font_weight, $heading_font_subset );
4961
- }
4962
-
4963
- /**
4964
- * Adds Google fonts for Blockquote.
4965
- *
4966
- * @since 1.9.1
4967
- * @param array $attr the blocks attr.
4968
- */
4969
- public static function blocks_blockquote_gfont( $attr ) {
4970
-
4971
- $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4972
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4973
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4974
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4975
-
4976
- $author_load_google_font = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
4977
- $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
4978
- $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
4979
- $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
4980
-
4981
- $tweet_btn_load_google_font = isset( $attr['tweetBtnLoadGoogleFonts'] ) ? $attr['tweetBtnLoadGoogleFonts'] : '';
4982
- $tweet_btn_font_family = isset( $attr['tweetBtnFontFamily'] ) ? $attr['tweetBtnFontFamily'] : '';
4983
- $tweet_btn_font_weight = isset( $attr['tweetBtnFontWeight'] ) ? $attr['tweetBtnFontWeight'] : '';
4984
- $tweet_btn_font_subset = isset( $attr['tweetBtnFontSubset'] ) ? $attr['tweetBtnFontSubset'] : '';
4985
-
4986
- UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
4987
- UAGB_Helper::blocks_google_font( $author_load_google_font, $author_font_family, $author_font_weight, $author_font_subset );
4988
- UAGB_Helper::blocks_google_font( $tweet_btn_load_google_font, $tweet_btn_font_family, $tweet_btn_font_weight, $tweet_btn_font_subset );
4989
- }
4990
-
4991
- /**
4992
- * Adds Google fonts for Testimonial block.
4993
- *
4994
- * @since 1.9.1
4995
- * @param array $attr the blocks attr.
4996
- */
4997
- public static function blocks_testimonial_gfont( $attr ) {
4998
- $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4999
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
5000
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
5001
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
5002
-
5003
- $name_load_google_fonts = isset( $attr['nameLoadGoogleFonts'] ) ? $attr['nameLoadGoogleFonts'] : '';
5004
- $name_font_family = isset( $attr['nameFontFamily'] ) ? $attr['nameFontFamily'] : '';
5005
- $name_font_weight = isset( $attr['nameFontWeight'] ) ? $attr['nameFontWeight'] : '';
5006
- $name_font_subset = isset( $attr['nameFontSubset'] ) ? $attr['nameFontSubset'] : '';
5007
-
5008
- $company_load_google_fonts = isset( $attr['companyLoadGoogleFonts'] ) ? $attr['companyLoadGoogleFonts'] : '';
5009
- $company_font_family = isset( $attr['companyFontFamily'] ) ? $attr['companyFontFamily'] : '';
5010
- $company_font_weight = isset( $attr['companyFontWeight'] ) ? $attr['companyFontWeight'] : '';
5011
- $company_font_subset = isset( $attr['companyFontSubset'] ) ? $attr['companyFontSubset'] : '';
5012
-
5013
- UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
5014
- UAGB_Helper::blocks_google_font( $name_load_google_fonts, $name_font_family, $name_font_family, $name_font_subset );
5015
- UAGB_Helper::blocks_google_font( $company_load_google_fonts, $company_font_family, $company_font_family, $company_font_subset );
5016
- }
5017
-
5018
- /**
5019
- * Adds Google fonts for Advanced Heading block.
5020
- *
5021
- * @since 1.9.1
5022
- * @param array $attr the blocks attr.
5023
- */
5024
- public static function blocks_team_gfont( $attr ) {
5025
-
5026
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
5027
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
5028
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
5029
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
5030
-
5031
- $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
5032
- $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
5033
- $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
5034
- $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
5035
-
5036
- $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
5037
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
5038
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
5039
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
5040
-
5041
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
5042
- UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
5043
- UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
5044
- }
5045
-
5046
- /**
5047
- *
5048
- * Adds Google fonts for Restaurant Menu block.
5049
- *
5050
- * @since 1.9.1
5051
- * @param array $attr the blocks attr.
5052
- */
5053
- public static function blocks_restaurant_menu_gfont( $attr ) {
5054
- $title_load_google_fonts = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
5055
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
5056
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
5057
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
5058
-
5059
- $price_load_google_fonts = isset( $attr['priceLoadGoogleFonts'] ) ? $attr['priceLoadGoogleFonts'] : '';
5060
- $price_font_family = isset( $attr['priceFontFamily'] ) ? $attr['priceFontFamily'] : '';
5061
- $price_font_weight = isset( $attr['priceFontWeight'] ) ? $attr['priceFontWeight'] : '';
5062
- $price_font_subset = isset( $attr['priceFontSubset'] ) ? $attr['priceFontSubset'] : '';
5063
-
5064
- $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
5065
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
5066
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
5067
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
5068
-
5069
- UAGB_Helper::blocks_google_font( $title_load_google_fonts, $title_font_family, $title_font_weight, $title_font_subset );
5070
- UAGB_Helper::blocks_google_font( $price_load_google_fonts, $price_font_family, $price_font_weight, $price_font_subset );
5071
- UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
5072
- }
5073
-
5074
- /**
5075
- * Adds Google fonts for Content Timeline block.
5076
- *
5077
- * @since 1.9.1
5078
- * @param array $attr the blocks attr.
5079
- */
5080
- public static function blocks_content_timeline_gfont( $attr ) {
5081
- $head_load_google_fonts = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
5082
- $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
5083
- $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
5084
- $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
5085
-
5086
- $subheadload_google_fonts = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
5087
- $subheadfont_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
5088
- $subheadfont_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
5089
- $subheadfont_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
5090
-
5091
- $date_load_google_fonts = isset( $attr['dateLoadGoogleFonts'] ) ? $attr['dateLoadGoogleFonts'] : '';
5092
- $date_font_family = isset( $attr['dateFontFamily'] ) ? $attr['dateFontFamily'] : '';
5093
- $date_font_weight = isset( $attr['dateFontWeight'] ) ? $attr['dateFontWeight'] : '';
5094
- $date_font_subset = isset( $attr['dateFontSubset'] ) ? $attr['dateFontSubset'] : '';
5095
-
5096
- UAGB_Helper::blocks_google_font( $head_load_google_fonts, $head_font_family, $head_font_weight, $head_font_subset );
5097
- UAGB_Helper::blocks_google_font( $subheadload_google_fonts, $subheadfont_family, $subheadfont_weight, $subheadfont_subset );
5098
- UAGB_Helper::blocks_google_font( $date_load_google_fonts, $date_font_family, $date_font_weight, $date_font_subset );
5099
- }
5100
-
5101
- /**
5102
- * Adds Google fonts for Post Timeline block.
5103
- *
5104
- * @since 1.9.1
5105
- * @param array $attr the blocks attr.
5106
- */
5107
- public static function blocks_post_timeline_gfont( $attr ) {
5108
- self::blocks_content_timeline_gfont( $attr );
5109
-
5110
- $author_load_google_fonts = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
5111
- $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
5112
- $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
5113
- $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
5114
-
5115
- $cta_load_google_fonts = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
5116
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
5117
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
5118
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
5119
-
5120
- UAGB_Helper::blocks_google_font( $author_load_google_fonts, $author_font_family, $author_font_weight, $author_font_subset );
5121
- UAGB_Helper::blocks_google_font( $cta_load_google_fonts, $cta_font_family, $cta_font_weight, $cta_font_subset );
5122
- }
5123
-
5124
- /**
5125
- * Adds Google fonts for Mulit Button's block.
5126
- *
5127
- * @since 1.9.1
5128
- * @param array $attr the blocks attr.
5129
- */
5130
- public static function blocks_buttons_gfont( $attr ) {
5131
-
5132
- $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
5133
- $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
5134
- $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
5135
- $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
5136
-
5137
- UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
5138
- }
5139
-
5140
- /**
5141
- * Adds Google fonts for Icon List block
5142
- *
5143
- * @since 1.9.1
5144
- * @param array $attr the blocks attr.
5145
- */
5146
- public static function blocks_icon_list_gfont( $attr ) {
5147
-
5148
- $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
5149
- $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
5150
- $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
5151
- $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
5152
-
5153
- UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
5154
- }
5155
-
5156
- /**
5157
- * Adds Google fonts for Post block.
5158
- *
5159
- * @since 1.9.1
5160
- * @param array $attr the blocks attr.
5161
- */
5162
- public static function blocks_post_gfont( $attr ) {
5163
-
5164
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
5165
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
5166
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
5167
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
5168
-
5169
- $meta_load_google_font = isset( $attr['metaLoadGoogleFonts'] ) ? $attr['metaLoadGoogleFonts'] : '';
5170
- $meta_font_family = isset( $attr['metaFontFamily'] ) ? $attr['metaFontFamily'] : '';
5171
- $meta_font_weight = isset( $attr['metaFontWeight'] ) ? $attr['metaFontWeight'] : '';
5172
- $meta_font_subset = isset( $attr['metaFontSubset'] ) ? $attr['metaFontSubset'] : '';
5173
-
5174
- $excerpt_load_google_font = isset( $attr['excerptLoadGoogleFonts'] ) ? $attr['excerptLoadGoogleFonts'] : '';
5175
- $excerpt_font_family = isset( $attr['excerptFontFamily'] ) ? $attr['excerptFontFamily'] : '';
5176
- $excerpt_font_weight = isset( $attr['excerptFontWeight'] ) ? $attr['excerptFontWeight'] : '';
5177
- $excerpt_font_subset = isset( $attr['excerptFontSubset'] ) ? $attr['excerptFontSubset'] : '';
5178
-
5179
- $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
5180
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
5181
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
5182
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
5183
-
5184
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
5185
-
5186
- UAGB_Helper::blocks_google_font( $meta_load_google_font, $meta_font_family, $meta_font_weight, $meta_font_subset );
5187
-
5188
- UAGB_Helper::blocks_google_font( $excerpt_load_google_font, $excerpt_font_family, $excerpt_font_weight, $excerpt_font_subset );
5189
-
5190
- UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
5191
- }
5192
-
5193
- /**
5194
- * Adds Google fonts for Advanced Heading block.
5195
- *
5196
- * @since 1.9.1
5197
- * @param array $attr the blocks attr.
5198
- */
5199
- public static function blocks_info_box_gfont( $attr ) {
5200
-
5201
- $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
5202
- $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
5203
- $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
5204
- $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
5205
-
5206
- $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
5207
- $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
5208
- $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
5209
- $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
5210
-
5211
- $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
5212
- $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
5213
- $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
5214
- $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
5215
-
5216
- $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
5217
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
5218
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
5219
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
5220
-
5221
- UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
5222
- UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
5223
- UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
5224
- UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
5225
- }
5226
-
5227
- /**
5228
- * Adds Google fonts for Call To Action block.
5229
- *
5230
- * @since 1.9.1
5231
- * @param array $attr the blocks attr.
5232
- */
5233
- public static function blocks_call_to_action_gfont( $attr ) {
5234
-
5235
- $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
5236
- $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
5237
- $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
5238
- $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
5239
-
5240
- $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
5241
- $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
5242
- $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
5243
- $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
5244
-
5245
- $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
5246
- $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
5247
- $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
5248
- $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
5249
-
5250
- UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
5251
- UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
5252
- UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
5253
- }
5254
- }
5255
- }
1
+ <?php
2
+ /**
3
+ * UAGB Block Helper.
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit; // Exit if accessed directly.
10
+ }
11
+
12
+ if ( ! class_exists( 'UAGB_Block_Helper' ) ) {
13
+
14
+ /**
15
+ * Class UAGB_Block_Helper.
16
+ */
17
+ class UAGB_Block_Helper {
18
+
19
+ /**
20
+ * Get Section Block CSS
21
+ *
22
+ * @since 0.0.1
23
+ * @param array $attr The block attributes.
24
+ * @param string $id The selector ID.
25
+ * @return array The Widget List.
26
+ */
27
+ public static function get_section_css( $attr, $id ) { // @codingStandardsIgnoreStart
28
+
29
+ global $content_width;
30
+
31
+ $defaults = UAGB_Helper::$block_list['uagb/section']['attributes'];
32
+
33
+ $attr = array_merge( $defaults, $attr );
34
+
35
+ $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
36
+ $overlay_type = ( isset( $attr['overlayType'] ) ) ? $attr['overlayType'] : 'color';
37
+ $gradientOverlayPosition = ( isset( $attr['gradientOverlayPosition'] ) ) ? $attr['gradientOverlayPosition'] : 'center center';
38
+ $gradientPosition = ( isset( $attr['gradientPosition'] ) ) ? $attr['gradientPosition'] : 'center center';
39
+
40
+ $style = array(
41
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], $attr['desktopPaddingType'] ),
42
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], $attr['desktopPaddingType'] ),
43
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], $attr['desktopPaddingType'] ),
44
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], $attr['desktopPaddingType'] ),
45
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' )
46
+ );
47
+
48
+ $m_selectors = array();
49
+ $t_selectors = array();
50
+
51
+ if ( 'right' == $attr['align'] ) {
52
+ $style['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMargin'], $attr['desktopMarginType'] );
53
+ $style['margin-left'] = 'auto';
54
+ $style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] );
55
+ $style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] );
56
+ } elseif ( 'left' == $attr['align'] ) {
57
+ $style['margin-right'] = 'auto';
58
+ $style['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMargin'], $attr['desktopMarginType'] );
59
+ $style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] );
60
+ $style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] );
61
+ } elseif ( 'center' == $attr['align'] ) {
62
+ $style['margin-right'] = 'auto';
63
+ $style['margin-left'] = 'auto';
64
+ $style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] );
65
+ $style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] );
66
+ } else {
67
+ $style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] );
68
+ $style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] );
69
+ }
70
+
71
+ if ( "none" != $attr['borderStyle'] ) {
72
+ $style["border-style"] = $attr['borderStyle'];
73
+ $style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
74
+ $style["border-color"] = $attr['borderColor'];
75
+ }
76
+
77
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
78
+
79
+ $section_width = '100%';
80
+
81
+ if ( isset( $attr['contentWidth'] ) ) {
82
+
83
+ if ( 'boxed' == $attr['contentWidth'] ) {
84
+ if ( isset( $attr['width'] ) ) {
85
+ $section_width = UAGB_Helper::get_css_value( $attr['width'], 'px' );
86
+ }
87
+ }
88
+ }
89
+
90
+ if ( 'wide' != $attr['align'] && 'full' != $attr['align'] ) {
91
+ $style['max-width'] = $section_width;
92
+ }
93
+
94
+ if ( 'image' === $bg_type ) {
95
+
96
+ $style['background-image'] = ( isset( $attr['backgroundImage'] ) && isset( $attr['backgroundImage']['url'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
97
+ $style['background-position'] = $position;
98
+ $style['background-attachment'] = $attr['backgroundAttachment'];
99
+ $style['background-repeat'] = $attr['backgroundRepeat'];
100
+ $style['background-size'] = $attr['backgroundSize'];
101
+
102
+ }
103
+
104
+ $inner_width = '100%';
105
+
106
+ if ( isset( $attr['contentWidth'] ) ) {
107
+ if ( 'boxed' != $attr['contentWidth'] ) {
108
+ if ( isset( $attr['themeWidth'] ) && $attr['themeWidth'] == true ) {
109
+ $inner_width = UAGB_Helper::get_css_value( $content_width, 'px' );
110
+ } else {
111
+ if ( isset( $attr['innerWidth'] ) ) {
112
+ $inner_width = UAGB_Helper::get_css_value( $attr['innerWidth'], $attr['innerWidthType'] );
113
+ }
114
+ }
115
+ }
116
+ }
117
+
118
+ $selectors = array(
119
+ '.uagb-section__wrap' => $style,
120
+ ' > .uagb-section__video-wrap' => array(
121
+ 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
122
+ ),
123
+ ' > .uagb-section__inner-wrap' => array(
124
+ 'max-width' => $inner_width,
125
+ ),
126
+ );
127
+
128
+ if ( 'video' == $bg_type ) {
129
+ $selectors[' > .uagb-section__overlay'] = array(
130
+ 'opacity' => 1,
131
+ 'background-color' => $attr['backgroundVideoColor'],
132
+ );
133
+ } else if ( 'image' == $bg_type ) {
134
+ if( 'color' == $overlay_type ){
135
+ $selectors[' > .uagb-section__overlay'] = array(
136
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
137
+ 'background-color' => $attr['backgroundImageColor'],
138
+ );
139
+ }else{
140
+ $selectors[' > .uagb-section__overlay']['background-color'] = 'transparent';
141
+ $selectors[' > .uagb-section__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
142
+
143
+ if ( 'linear' === $attr['gradientOverlayType'] ) {
144
+
145
+ $selectors[' > .uagb-section__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientOverlayAngle'] . 'deg, ' . $attr['gradientOverlayColor1'] . ' ' . $attr['gradientOverlayLocation1'] . '%, ' . $attr['gradientOverlayColor2'] . ' ' . $attr['gradientOverlayLocation2'] . '%)';
146
+ } else {
147
+
148
+ $selectors[' > .uagb-section__overlay']['background-image'] = 'radial-gradient( at ' . $gradientOverlayPosition . ', ' . $attr['gradientOverlayColor1'] . ' ' . $attr['gradientOverlayLocation1'] . '%, ' . $attr['gradientOverlayColor2'] . ' ' . $attr['gradientOverlayLocation2'] . '%)';
149
+ }
150
+ }
151
+ } else if ( 'color' == $bg_type ) {
152
+ $selectors[' > .uagb-section__overlay'] = array(
153
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
154
+ 'background-color' => $attr['backgroundColor'],
155
+ );
156
+ } else if ( 'gradient' === $bg_type ) {
157
+ $selectors[' > .uagb-section__overlay']['background-color'] = 'transparent';
158
+ $selectors[' > .uagb-section__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
159
+
160
+ if ( 'linear' === $attr['gradientType'] ) {
161
+
162
+ $selectors[' > .uagb-section__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
163
+ } else {
164
+ $selectors[' > .uagb-section__overlay']['background-image'] = 'radial-gradient( at ' . $gradientPosition . ', ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
165
+ }
166
+ }
167
+
168
+ $selectors[' > .uagb-section__overlay']["border-radius"] = UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' );
169
+
170
+ $m_selectors = array(
171
+ '.uagb-section__wrap' => array(
172
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], $attr['mobilePaddingType'] ),
173
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], $attr['mobilePaddingType'] ),
174
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], $attr['mobilePaddingType'] ),
175
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], $attr['mobilePaddingType'] ),
176
+ )
177
+ );
178
+
179
+ $t_selectors = array(
180
+ '.uagb-section__wrap' => array(
181
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], $attr['tabletPaddingType'] ),
182
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], $attr['tabletPaddingType'] ),
183
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], $attr['tabletPaddingType'] ),
184
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], $attr['tabletPaddingType'] ),
185
+ )
186
+ );
187
+
188
+ if ( 'right' == $attr['align'] ) {
189
+ $t_selectors['.uagb-section__wrap']['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMarginTablet'], $attr['tabletMarginType'] );
190
+ $t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], $attr['tabletMarginType'] );
191
+ $t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], $attr['tabletMarginType'] );
192
+
193
+ $m_selectors['.uagb-section__wrap']['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMarginMobile'], $attr['mobileMarginType'] );
194
+ $m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], $attr['mobileMarginType'] );
195
+ $m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], $attr['mobileMarginType'] );
196
+ } elseif ( 'left' == $attr['align'] ) {
197
+ $t_selectors['.uagb-section__wrap']['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMarginTablet'], $attr['tabletMarginType'] );
198
+ $t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], $attr['tabletMarginType'] );
199
+ $t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], $attr['tabletMarginType'] );
200
+
201
+ $m_selectors['.uagb-section__wrap']['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMarginMobile'], $attr['mobileMarginType'] );
202
+ $m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], $attr['mobileMarginType'] );
203
+ $m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], $attr['mobileMarginType'] );
204
+ } else {
205
+ $t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], $attr['tabletMarginType'] );
206
+ $t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], $attr['tabletMarginType'] );
207
+
208
+ $m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], $attr['mobileMarginType'] );
209
+ $m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], $attr['mobileMarginType'] );
210
+ }
211
+
212
+ // @codingStandardsIgnoreEnd
213
+
214
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-section-' . $id );
215
+
216
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-section-' . $id );
217
+
218
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-section-' . $id );
219
+
220
+ $generated_css = array(
221
+ 'desktop' => $desktop,
222
+ 'tablet' => $tablet,
223
+ 'mobile' => $mobile,
224
+ );
225
+
226
+ return $generated_css;
227
+ }
228
+
229
+ /**
230
+ * Get Columns Block CSS
231
+ *
232
+ * @since 1.8.0
233
+ * @param array $attr The block attributes.
234
+ * @param string $id The selector ID.
235
+ * @return array The Widget List.
236
+ */
237
+ public static function get_columns_css( $attr, $id ) { // @codingStandardsIgnoreStart
238
+
239
+ global $content_width;
240
+
241
+ $defaults = UAGB_Helper::$block_list['uagb/columns']['attributes'];
242
+
243
+ $attr = array_merge( $defaults, $attr );
244
+
245
+ $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
246
+
247
+ $m_selectors = array();
248
+ $t_selectors = array();
249
+
250
+ $style = array(
251
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], $attr['desktopPaddingType'] ),
252
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], $attr['desktopPaddingType'] ),
253
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], $attr['desktopPaddingType'] ),
254
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], $attr['desktopPaddingType'] ),
255
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] ),
256
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] ),
257
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], $attr['desktopMarginType'] ),
258
+ );
259
+
260
+ if ( "none" != $attr['borderStyle'] ) {
261
+ $style["border-style"] = $attr['borderStyle'];
262
+ $style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
263
+ $style["border-color"] = $attr['borderColor'];
264
+ }
265
+
266
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
267
+
268
+ if ( 'image' === $bg_type ) {
269
+
270
+ $style['background-image'] = ( isset( $attr['backgroundImage'] ) && isset( $attr['backgroundImage']['url'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
271
+ $style['background-position'] = $position;
272
+ $style['background-attachment'] = $attr['backgroundAttachment'];
273
+ $style['background-repeat'] = $attr['backgroundRepeat'];
274
+ $style['background-size'] = $attr['backgroundSize'];
275
+
276
+ }
277
+
278
+ $inner_width = '100%';
279
+
280
+ if ( isset( $attr['contentWidth'] ) ) {
281
+ if ( 'theme' == $attr['contentWidth'] ) {
282
+ $inner_width = UAGB_Helper::get_css_value( $content_width, 'px' );
283
+ } else if ( 'custom' == $attr['contentWidth'] ) {
284
+ $inner_width = UAGB_Helper::get_css_value( $attr['width'], $attr['widthType'] );
285
+ }
286
+ }
287
+
288
+ $selectors = array(
289
+ '.uagb-columns__wrap' => $style,
290
+ ' .uagb-columns__video-wrap' => array(
291
+ 'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
292
+ ),
293
+ ' > .uagb-columns__inner-wrap' => array(
294
+ 'max-width' => $inner_width,
295
+ ),
296
+ ' .uagb-column__inner-wrap' => array(
297
+ 'padding' => UAGB_Helper::get_css_value( $attr['columnGap'], 'px' )
298
+ ),
299
+ ' .uagb-columns__shape-top svg' => array(
300
+ 'height' => UAGB_Helper::get_css_value( $attr['topHeight'], 'px' )
301
+ ),
302
+ ' .uagb-columns__shape-top .uagb-columns__shape-fill' => array(
303
+ 'fill' => $attr['topColor'],
304
+ 'opacity' => ( isset( $attr['topDividerOpacity'] ) && '' != $attr['topDividerOpacity'] ) ? ( ( $attr['topDividerOpacity'] ) / 100 ) : ""
305
+ ),
306
+ ' .uagb-columns__shape-bottom svg' => array(
307
+ 'height' => UAGB_Helper::get_css_value( $attr['bottomHeight'], 'px' )
308
+ ),
309
+ ' .uagb-columns__shape-bottom .uagb-columns__shape-fill' => array(
310
+ 'fill' => $attr['bottomColor'],
311
+ 'opacity' => ( isset( $attr['bottomDividerOpacity'] ) && '' != $attr['bottomDividerOpacity'] ) ? ( ( $attr['bottomDividerOpacity'] ) / 100 ) : ""
312
+ ),
313
+ );
314
+
315
+ if ( '' !== $attr['topWidth'] ) {
316
+ $selectors[' .uagb-columns__shape-top svg']['width'] = "calc( " . $attr['topWidth'] . "% + 1.3px )";
317
+ }
318
+
319
+ if ( '' !== $attr['bottomWidth'] ) {
320
+ $selectors[' .uagb-columns__shape-bottom svg']['width'] = "calc( " . $attr['bottomWidth'] . "% + 1.3px )";
321
+ }
322
+
323
+ if ( 'video' == $bg_type ) {
324
+ $selectors[' > .uagb-columns__overlay'] = array(
325
+ 'opacity' => 1,
326
+ 'background-color' => $attr['backgroundVideoColor'],
327
+ );
328
+ } else if ( 'image' == $bg_type ) {
329
+ $selectors[' > .uagb-columns__overlay'] = array(
330
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
331
+ 'background-color' => $attr['backgroundImageColor'],
332
+ );
333
+ } else if ( 'color' == $bg_type ) {
334
+ $selectors[' > .uagb-columns__overlay'] = array(
335
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
336
+ 'background-color' => $attr['backgroundColor'],
337
+ );
338
+ } elseif ( 'gradient' === $bg_type ) {
339
+ $selectors[' > .uagb-columns__overlay']['background-color'] = 'transparent';
340
+ $selectors[' > .uagb-columns__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
341
+
342
+ if ( 'linear' === $attr['gradientType'] ) {
343
+
344
+ $selectors[' > .uagb-columns__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
345
+ } else {
346
+
347
+ $selectors[' > .uagb-columns__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
348
+ }
349
+ }
350
+
351
+ $selectors[' > .uagb-columns__overlay']["border-radius"] = UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' );
352
+
353
+ $m_selectors = array(
354
+ '.uagb-columns__wrap' => array(
355
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], $attr['mobilePaddingType'] ),
356
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], $attr['mobilePaddingType'] ),
357
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], $attr['mobilePaddingType'] ),
358
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], $attr['mobilePaddingType'] ),
359
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginMobile'], $attr['mobileMarginType'] ),
360
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], $attr['mobileMarginType'] ),
361
+ ),
362
+ ' .uagb-columns__shape-bottom svg' => array(
363
+ 'height' => UAGB_Helper::get_css_value( $attr['bottomHeightMobile'], 'px' )
364
+ ),
365
+ ' .uagb-columns__shape-top svg' => array(
366
+ 'height' => UAGB_Helper::get_css_value( $attr['topHeightMobile'], 'px' )
367
+ ),
368
+ );
369
+
370
+ $t_selectors = array(
371
+ '.uagb-columns__wrap' => array(
372
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], $attr['tabletPaddingType'] ),
373
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], $attr['tabletPaddingType'] ),
374
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], $attr['tabletPaddingType'] ),
375
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], $attr['tabletPaddingType'] ),
376
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginTablet'], $attr['tabletMarginType'] ),
377
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], $attr['tabletMarginType'] ),
378
+ ),
379
+ ' .uagb-columns__shape-bottom svg' => array(
380
+ 'height' => UAGB_Helper::get_css_value( $attr['bottomHeightTablet'], 'px' )
381
+ ),
382
+ ' .uagb-columns__shape-top svg' => array(
383
+ 'height' => UAGB_Helper::get_css_value( $attr['topHeightTablet'], 'px' )
384
+ ),
385
+ );
386
+
387
+ // @codingStandardsIgnoreEnd
388
+
389
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-columns-' . $id );
390
+
391
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-columns-' . $id );
392
+
393
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-columns-' . $id );
394
+
395
+ $generated_css = array(
396
+ 'desktop' => $desktop,
397
+ 'tablet' => $tablet,
398
+ 'mobile' => $mobile,
399
+ );
400
+
401
+ return $generated_css;
402
+ }
403
+
404
+ /**
405
+ * Get Single Column Block CSS
406
+ *
407
+ * @since 1.8.0
408
+ * @param array $attr The block attributes.
409
+ * @param string $id The selector ID.
410
+ * @return array The Widget List.
411
+ */
412
+ public static function get_column_css( $attr, $id ) { // @codingStandardsIgnoreStart
413
+
414
+ global $content_width;
415
+
416
+ $defaults = UAGB_Helper::$block_list['uagb/column']['attributes'];
417
+
418
+ $attr = array_merge( $defaults, $attr );
419
+
420
+ $bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
421
+ $overlay_type = ( isset( $attr['overlayType'] ) ) ? $attr['overlayType'] : 'none';
422
+
423
+ $style = array(
424
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], $attr['desktopPaddingType'] ),
425
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], $attr['desktopPaddingType'] ),
426
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], $attr['desktopPaddingType'] ),
427
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], $attr['desktopPaddingType'] ),
428
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['topMargin'], $attr['desktopMarginType'] ),
429
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMargin'], $attr['desktopMarginType'] ),
430
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['leftMargin'], $attr['desktopMarginType'] ),
431
+ 'margin-right' => UAGB_Helper::get_css_value( $attr['rightMargin'], $attr['desktopMarginType'] ),
432
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
433
+ );
434
+
435
+ $m_selectors = array();
436
+ $t_selectors = array();
437
+
438
+ if ( "none" != $attr['borderStyle'] ) {
439
+ $style["border-style"] = $attr['borderStyle'];
440
+ $style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
441
+ $style["border-color"] = $attr['borderColor'];
442
+ }
443
+
444
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
445
+
446
+ if ( 'image' === $bg_type ) {
447
+
448
+ $style['background-image'] = ( isset( $attr['backgroundImage'] ) && isset( $attr['backgroundImage']['url'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
449
+ $style['background-position'] = $position;
450
+ $style['background-attachment'] = $attr['backgroundAttachment'];
451
+ $style['background-repeat'] = $attr['backgroundRepeat'];
452
+ $style['background-size'] = $attr['backgroundSize'];
453
+
454
+ }
455
+
456
+ $selectors = array(
457
+ '.uagb-column__wrap' => $style
458
+ );
459
+
460
+ if ( 'image' == $bg_type ) {
461
+ if( 'color' == $overlay_type ){
462
+ $selectors[' > .uagb-column__overlay'] = array(
463
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
464
+ 'background-color' => $attr['backgroundImageColor'],
465
+ );
466
+ }else{
467
+ $selectors[' > .uagb-column__overlay']['background-color'] = 'transparent';
468
+ $selectors[' > .uagb-column__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
469
+
470
+ if ( 'linear' === $attr['gradientOverlayType'] ) {
471
+
472
+ $selectors[' > .uagb-column__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientOverlayAngle'] . 'deg, ' . $attr['gradientOverlayColor1'] . ' ' . $attr['gradientOverlayLocation1'] . '%, ' . $attr['gradientOverlayColor2'] . ' ' . $attr['gradientOverlayLocation2'] . '%)';
473
+ } else {
474
+
475
+ $selectors[' > .uagb-column__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientOverlayColor1'] . ' ' . $attr['gradientOverlayLocation1'] . '%, ' . $attr['gradientOverlayColor2'] . ' ' . $attr['gradientOverlayLocation2'] . '%)';
476
+ }
477
+ }
478
+
479
+ } else if ( 'color' == $bg_type ) {
480
+ $selectors[' > .uagb-column__overlay'] = array(
481
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
482
+ 'background-color' => $attr['backgroundColor'],
483
+ );
484
+ } elseif ( 'gradient' === $bg_type ) {
485
+ $selectors[' > .uagb-column__overlay']['background-color'] = 'transparent';
486
+ $selectors[' > .uagb-column__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
487
+
488
+ if ( 'linear' === $attr['gradientType'] ) {
489
+
490
+ $selectors[' > .uagb-column__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
491
+ } else {
492
+
493
+ $selectors[' > .uagb-column__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
494
+ }
495
+ }
496
+
497
+ if ( '' != $attr['colWidth'] && 0 != $attr['colWidth'] ) {
498
+
499
+ $selectors[''] = array(
500
+ "width" => UAGB_Helper::get_css_value( $attr['colWidth'], "%" )
501
+ );
502
+ }
503
+
504
+ $m_selectors = array(
505
+ '.uagb-column__wrap' => array(
506
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], $attr['tabletPaddingType'] ),
507
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], $attr['tabletPaddingType'] ),
508
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], $attr['tabletPaddingType'] ),
509
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], $attr['tabletPaddingType'] ),
510
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginMobile'], $attr['tabletMarginType'] ),
511
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], $attr['tabletMarginType'] ),
512
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['leftMarginMobile'], $attr['tabletMarginType'] ),
513
+ 'margin-right' => UAGB_Helper::get_css_value( $attr['rightMarginMobile'], $attr['tabletMarginType'] ),
514
+ )
515
+ );
516
+
517
+ $t_selectors = array(
518
+ '.uagb-column__wrap' => array(
519
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], $attr['mobilePaddingType'] ),
520
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], $attr['mobilePaddingType'] ),
521
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], $attr['mobilePaddingType'] ),
522
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], $attr['mobilePaddingType'] ),
523
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginTablet'], $attr['mobileMarginType'] ),
524
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], $attr['mobileMarginType'] ),
525
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['leftMarginTablet'], $attr['mobileMarginType'] ),
526
+ 'margin-right' => UAGB_Helper::get_css_value( $attr['rightMarginTablet'], $attr['mobileMarginType'] ),
527
+ )
528
+ );
529
+
530
+ if ( '' != $attr['colWidthTablet'] && 0 != $attr['colWidthTablet'] ) {
531
+
532
+ $t_selectors[''] = array(
533
+ "width" => UAGB_Helper::get_css_value( $attr['colWidthTablet'], '%' )
534
+ );
535
+ }
536
+
537
+ if ( '' != $attr['colWidthMobile'] && 0 != $attr['colWidthMobile'] ) {
538
+
539
+ $m_selectors[''] = array(
540
+ "width" => UAGB_Helper::get_css_value( $attr['colWidthMobile'], '%' )
541
+ );
542
+ }
543
+
544
+ // @codingStandardsIgnoreEnd
545
+
546
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-column-' . $id );
547
+
548
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-column-' . $id );
549
+
550
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-column-' . $id );
551
+
552
+ $generated_css = array(
553
+ 'desktop' => $desktop,
554
+ 'tablet' => $tablet,
555
+ 'mobile' => $mobile,
556
+ );
557
+
558
+ return $generated_css;
559
+ }
560
+
561
+ /**
562
+ * Get Advanced Heading Block CSS
563
+ *
564
+ * @since 0.0.1
565
+ * @param array $attr The block attributes.
566
+ * @param string $id The selector ID.
567
+ * @return array The Widget List.
568
+ */
569
+ public static function get_adv_heading_css( $attr, $id ) { // @codingStandardsIgnoreStart
570
+
571
+ $defaults = UAGB_Helper::$block_list['uagb/advanced-heading']['attributes'];
572
+
573
+ $attr = array_merge( $defaults, (array) $attr );
574
+
575
+ $m_selectors = array();
576
+ $t_selectors = array();
577
+
578
+ $selectors = array(
579
+ ' .uagb-heading-text' => array(
580
+ 'text-align' => $attr['headingAlign'],
581
+ 'font-family' => $attr['headFontFamily'],
582
+ 'font-weight' => $attr['headFontWeight'],
583
+ 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
584
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
585
+ 'color' => $attr['headingColor'],
586
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['headSpace'], "px" ),
587
+ ),
588
+ ' .uagb-separator-wrap' => array(
589
+ 'text-align' => $attr['headingAlign'],
590
+ ),
591
+ ' .uagb-desc-text' => array(
592
+ 'text-align' => $attr['headingAlign'],
593
+ 'font-family' => $attr['subHeadFontFamily'],
594
+ 'font-weight' => $attr['subHeadFontWeight'],
595
+ 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ),
596
+ 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
597
+ 'color' => $attr['subHeadingColor'],
598
+ )
599
+
600
+ );
601
+
602
+ $m_selectors = array(
603
+ ' .uagb-heading-text' => array(
604
+ 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
605
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
606
+ ),
607
+ ' .uagb-desc-text' => array(
608
+ 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
609
+ 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
610
+ )
611
+
612
+ );
613
+
614
+ $t_selectors = array(
615
+ ' .uagb-heading-text' => array(
616
+ 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
617
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
618
+
619
+ ),
620
+ ' .uagb-desc-text' => array(
621
+ 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
622
+ 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
623
+ )
624
+
625
+ );
626
+
627
+ $seperatorStyle = isset( $attr['seperatorStyle'] ) ? $attr['seperatorStyle'] : '';
628
+
629
+ if( 'none' !== $seperatorStyle ){
630
+ $selectors[' .uagb-separator'] = array (
631
+ 'border-top-style' => $attr['seperatorStyle'] ,
632
+ 'border-top-width' => UAGB_Helper::get_css_value( $attr['separatorHeight'], "px" ),
633
+ 'width' => UAGB_Helper::get_css_value( $attr['separatorWidth'], $attr['separatorWidthType'] ),
634
+ 'border-color' => $attr['separatorColor'],
635
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['separatorSpace'], "px" ),
636
+ );
637
+
638
+ }
639
+ // @codingStandardsIgnoreEnd
640
+
641
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-adv-heading-' . $id );
642
+
643
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-adv-heading-' . $id );
644
+
645
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-adv-heading-' . $id );
646
+
647
+ $generated_css = array(
648
+ 'desktop' => $desktop,
649
+ 'tablet' => $tablet,
650
+ 'mobile' => $mobile,
651
+ );
652
+
653
+ return $generated_css;
654
+ }
655
+
656
+ /**
657
+ * Get Multi Buttons Block CSS
658
+ *
659
+ * @since 0.0.1
660
+ * @param array $attr The block attributes.
661
+ * @param string $id The selector ID.
662
+ * @return array The Widget List.
663
+ */
664
+ public static function get_buttons_css( $attr, $id ) { // @codingStandardsIgnoreStart
665
+
666
+ $defaults = UAGB_Helper::$block_list['uagb/buttons']['attributes'];
667
+
668
+ $attr = array_merge( $defaults, (array) $attr );
669
+
670
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
671
+
672
+ $m_selectors = array();
673
+ $t_selectors = array();
674
+
675
+ $selectors = array(
676
+ ' .uagb-button__wrapper' => array(
677
+ 'margin-left' => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
678
+ 'margin-right' => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
679
+ ),
680
+ ' .uagb-button__wrapper:first-child' => array (
681
+ 'margin-left' => 0
682
+ ),
683
+ ' .uagb-button__wrapper:last-child' => array (
684
+ 'margin-right' => 0
685
+ ),
686
+ );
687
+
688
+ if( 'full' === $attr['align'] ) {
689
+ $selectors[' .uagb-buttons__wrap .uagb-button__wrapper'] = array (
690
+ 'justify-content' => 'center',
691
+ '-webkit-box-pack'=> 'center',
692
+ '-ms-flex-pack' => 'center',
693
+ 'justify-content' => 'center',
694
+ '-webkit-box-align' => 'center',
695
+ '-ms-flex-align' => 'center',
696
+ 'align-items' => 'center',
697
+ 'width' => '100%',
698
+ 'text-align' => 'center',
699
+ );
700
+ } else {
701
+ $selectors[' .uagb-buttons__wrap'] = array (
702
+ 'justify-content' => $alignment,
703
+ '-webkit-box-pack'=> $alignment,
704
+ '-ms-flex-pack' => $alignment,
705
+ 'justify-content' => $alignment,
706
+ '-webkit-box-align' => $alignment,
707
+ '-ms-flex-align' => $alignment,
708
+ 'align-items' => $alignment,
709
+ );
710
+ }
711
+
712
+ foreach ( $attr['buttons'] as $key => $button ) {
713
+
714
+ $button['size'] = ( isset( $button['size'] ) ) ? $button['size'] : '';
715
+ $button['borderWidth'] = ( isset( $button['borderWidth'] ) ) ? $button['borderWidth'] : '';
716
+ $button['borderStyle'] = ( isset( $button['borderStyle'] ) ) ? $button['borderStyle'] : '';
717
+ $button['borderColor'] = ( isset( $button['borderColor'] ) ) ? $button['borderColor'] : '';
718
+ $button['borderRadius'] = ( isset( $button['borderRadius'] ) ) ? $button['borderRadius'] : '';
719
+ $button['background'] = ( isset( $button['background'] ) ) ? $button['background'] : '';
720
+ $button['hBackground'] = ( isset( $button['hBackground'] ) ) ? $button['hBackground'] : '';
721
+ $button['borderHColor'] = ( isset( $button['borderHColor'] ) ) ? $button['borderHColor'] : '';
722
+ $button['vPadding'] = ( isset( $button['vPadding'] ) ) ? $button['vPadding'] : '';
723
+ $button['hPadding'] = ( isset( $button['hPadding'] ) ) ? $button['hPadding'] : '';
724
+ $button['color'] = ( isset( $button['color'] ) ) ? $button['color'] : '';
725
+ $button['hColor'] = ( isset( $button['hColor'] ) ) ? $button['hColor'] : '';
726
+ $button['sizeType'] = ( isset( $button['sizeType'] ) ) ? $button['sizeType'] : 'px';
727
+ $button['sizeMobile'] = ( isset( $button['sizeMobile'] ) ) ? $button['sizeMobile'] : '';
728
+ $button['sizeTablet'] = ( isset( $button['sizeTablet'] ) ) ? $button['sizeTablet'] : '';
729
+ $button['lineHeight'] = ( isset( $button['lineHeight'] ) ) ? $button['lineHeight'] : '';
730
+ $button['lineHeightType'] = ( isset( $button['lineHeightType'] ) ) ? $button['lineHeightType'] : '';
731
+ $button['lineHeightMobile'] = ( isset( $button['lineHeightMobile'] ) ) ? $button['lineHeightMobile'] : '';
732
+ $button['lineHeightTablet'] = ( isset( $button['lineHeightTablet'] ) ) ? $button['lineHeightTablet'] : '';
733
+
734
+
735
+ if ( $attr['btn_count'] <= $key ) {
736
+ break;
737
+ }
738
+
739
+ $selectors[' .uagb-buttons-repeater-' . $key] = array (
740
+ 'font-size' => $button['size'] . $button['sizeType'],
741
+ 'line-height' => $button['lineHeight'] . $button['lineHeightType'],
742
+ 'font-family' => $attr['fontFamily'],
743
+ 'font-weight' => $attr['fontWeight'],
744
+ 'border-width' => UAGB_Helper::get_css_value( $button['borderWidth'], 'px' ),
745
+ 'border-color' => $button['borderColor'],
746
+ 'border-style' => $button['borderStyle'],
747
+ 'border-radius' => UAGB_Helper::get_css_value( $button['borderRadius'], 'px' ),
748
+ 'background' => $button['background']
749
+ );
750
+
751
+ $selectors[' .uagb-buttons-repeater-' . $key . ':hover'] = array (
752
+ 'background' => $button['hBackground'],
753
+ 'border-width' => UAGB_Helper::get_css_value( $button['borderWidth'], 'px' ),
754
+ 'border-color' => $button['borderHColor'],
755
+ 'border-style' => $button['borderStyle'],
756
+ );
757
+
758
+ $selectors[' .uagb-buttons-repeater-' . $key . ' a.uagb-button__link'] = array (
759
+ 'padding' => $button['vPadding'] . 'px ' . $button['hPadding'] . 'px',
760
+ 'color' => $button['color']
761
+ );
762
+
763
+ $selectors[' .uagb-buttons-repeater-' . $key . ':hover a.uagb-button__link'] = array (
764
+ 'color' => $button['hColor']
765
+ );
766
+
767
+ $m_selectors[' .uagb-buttons-repeater-' . $key] = array (
768
+ 'font-size' => UAGB_Helper::get_css_value( $button['sizeMobile'], $button['sizeType'] ),
769
+ 'line-height' => UAGB_Helper::get_css_value( $button['lineHeightMobile'], $button['lineHeightType'] ),
770
+ );
771
+
772
+ $t_selectors[' .uagb-buttons-repeater-' . $key] = array (
773
+ 'font-size' => UAGB_Helper::get_css_value( $button['sizeTablet'], $button['sizeType'] ),
774
+ 'line-height' => UAGB_Helper::get_css_value( $button['lineHeightTablet'], $button['lineHeightType'] ),
775
+ );
776
+ }
777
+
778
+ if ( "desktop" == $attr['stack'] ) {
779
+
780
+ $selectors[" .uagb-button__wrapper"] = array (
781
+ 'margin-left' => 0,
782
+ 'margin-right' => 0,
783
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
784
+ );
785
+
786
+ $selectors[" .uagb-buttons__wrap"] = array (
787
+ "flex-direction" => "column"
788
+ );
789
+
790
+ $selectors[" .uagb-button__wrapper:last-child"] = array (
791
+ "margin-bottom" => 0
792
+ );
793
+
794
+ } else if ( "tablet" == $attr['stack'] ) {
795
+
796
+ $t_selectors[" .uagb-button__wrapper"] = array (
797
+ 'margin-left' => 0,
798
+ 'margin-right' => 0,
799
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
800
+ );
801
+
802
+ $t_selectors[" .uagb-buttons__wrap"] = array (
803
+ "flex-direction" => "column"
804
+ );
805
+
806
+ $t_selectors[" .uagb-button__wrapper:last-child"] = array (
807
+ "margin-bottom" => 0
808
+ );
809
+
810
+ } else if ( "mobile" == $attr['stack'] ) {
811
+
812
+ $m_selectors[" .uagb-button__wrapper"] = array (
813
+ 'margin-left' => 0,
814
+ 'margin-right' => 0,
815
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
816
+ );
817
+
818
+ $m_selectors[" .uagb-buttons__wrap"] = array (
819
+ "flex-direction" => "column"
820
+ );
821
+
822
+ $m_selectors[" .uagb-button__wrapper:last-child"] = array (
823
+ "margin-bottom" => 0
824
+ );
825
+ }
826
+
827
+ // @codingStandardsIgnoreEnd
828
+
829
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-buttons-' . $id );
830
+
831
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-buttons-' . $id );
832
+
833
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-buttons-' . $id );
834
+
835
+ $generated_css = array(
836
+ 'desktop' => $desktop,
837
+ 'tablet' => $tablet,
838
+ 'mobile' => $mobile,
839
+ );
840
+
841
+ return $generated_css;
842
+ }
843
+
844
+ /**
845
+ * Get Info Box CSS
846
+ *
847
+ * @since 0.0.1
848
+ * @param array $attr The block attributes.
849
+ * @param string $id The selector ID.
850
+ * @return array The Widget List.
851
+ */
852
+ public static function get_info_box_css( $attr, $id ) { // @codingStandardsIgnoreStart.
853
+ $defaults = UAGB_Helper::$block_list['uagb/info-box']['attributes'];
854
+
855
+ $attr = array_merge( $defaults, (array) $attr );
856
+
857
+ $m_selectors = array();
858
+ $t_selectors = array();
859
+
860
+ $selectors = array(
861
+ ' .uagb-ifb-icon' => array(
862
+ 'height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
863
+ 'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
864
+ 'line-height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
865
+ ),
866
+ ' .uagb-ifb-icon > span' => array(
867
+ 'font-size' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
868
+ 'height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
869
+ 'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
870
+ 'line-height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
871
+ 'color' => $attr['iconColor'],
872
+ ),
873
+ ' .uagb-ifb-icon svg' => array(
874
+ 'fill' => $attr['iconColor'],
875
+ ),
876
+ ' .uagb-ifb-icon:hover > span' => array(
877
+ 'color' => $attr['iconHover'] ,
878
+ ),
879
+ ' .uagb-ifb-icon:hover svg' => array(
880
+ 'fill' => $attr['iconHover'] ,
881
+ ),
882
+
883
+ ' .uagb-infbox__link-to-all:hover ~ .uagb-infobox__content-wrap .uagb-ifb-icon svg' => array(
884
+ 'fill' => $attr['iconHover'] ,
885
+ ),
886
+
887
+ ' .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap' => array(
888
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['iconLeftMargin'], 'px' ),
889
+ 'margin-right' => UAGB_Helper::get_css_value( $attr['iconRightMargin'], 'px' ),
890
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['iconTopMargin'], 'px' ),
891
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['iconBottomMargin'], 'px' ),
892
+ ),
893
+ ' .uagb-infobox .uagb-ifb-image-content img' => array(
894
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['iconimgBorderRadius'], 'px' ),
895
+ ),
896
+ // CTA style .
897
+ ' .uagb-infobox-cta-link' => array(
898
+ 'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
899
+ 'font-family' => $attr['ctaFontFamily'],
900
+ 'font-weight' => $attr['ctaFontWeight'],
901
+ 'color' => $attr['ctaLinkColor'],
902
+ ),
903
+ ' .uagb-infobox-cta-link:hover' => array(
904
+ 'color' => $attr['ctaLinkHoverColor'],
905
+ ),
906
+ ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
907
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
908
+ 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
909
+ 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
910
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
911
+ ),
912
+ ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
913
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
914
+ 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
915
+ 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
916
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
917
+ ),
918
+ ' .uagb-infobox-cta-link svg' => array(
919
+ 'fill' => $attr['ctaLinkColor'],
920
+ ),
921
+ ' .uagb-infobox-cta-link:hover svg' => array(
922
+ 'fill' => $attr['ctaLinkHoverColor'],
923
+ ),
924
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link' => array(
925
+ 'color' => $attr['ctaBtnLinkColor'],
926
+ 'background-color' => $attr['ctaBgColor'],
927
+ 'border-style' => $attr['ctaBorderStyle'],
928
+ 'border-color' => $attr['ctaBorderColor'],
929
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['ctaBorderRadius'], 'px' ),
930
+ 'border-width' => UAGB_Helper::get_css_value( $attr['ctaBorderWidth'], 'px' ),
931
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
932
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
933
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
934
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
935
+
936
+ ),
937
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg' => array(
938
+ 'fill' => $attr['ctaBtnLinkColor'],
939
+ ),
940
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover' => array(
941
+ 'color' => $attr['ctaLinkHoverColor'],
942
+ 'background-color' => $attr['ctaBgHoverColor'],
943
+ 'border-color' => $attr['ctaBorderhoverColor'],
944
+ ),
945
+ ' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg' => array(
946
+ 'fill' => $attr['ctaLinkHoverColor'],
947
+ ),
948
+ // Prefix Style.
949
+ ' .uagb-ifb-title-prefix' => array(
950
+ 'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSize'], $attr['prefixFontSizeType'] ),
951
+ 'font-family' => $attr['prefixFontFamily'],
952
+ 'font-weight' => $attr['prefixFontWeight'],
953
+ 'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeight'], $attr['prefixLineHeightType'] ),
954
+ 'color' => $attr['prefixColor'],
955
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['prefixSpace'], 'px' ),
956
+ ),
957
+ // Title Style.
958
+ ' .uagb-ifb-title' => array(
959
+ 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
960
+ 'font-family' => $attr['headFontFamily'],
961
+ 'font-weight' => $attr['headFontWeight'],
962
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
963
+ 'color' => $attr['headingColor'],
964
+ 'margin-bottom' => $attr['headSpace'] . 'px',
965
+ ),
966
+ // Description Style.
967
+ ' .uagb-ifb-desc' => array(
968
+ 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ) ,
969
+ 'font-family' => $attr['subHeadFontFamily'],
970
+ 'font-weight' => $attr['subHeadFontWeight'],
971
+ 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
972
+ 'color' => $attr['subHeadingColor'],
973
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['subHeadSpace'], 'px' ),
974
+ ),
975
+ // Seperator.
976
+ ' .uagb-ifb-separator' => array(
977
+ 'width' => UAGB_Helper::get_css_value( $attr['seperatorWidth'], $attr['separatorWidthType'] ),
978
+ 'border-top-width' => UAGB_Helper::get_css_value( $attr['seperatorThickness'], 'px' ),
979
+ 'border-top-color' => $attr['seperatorColor'],
980
+ 'border-top-style' => $attr['seperatorStyle'],
981
+ ),
982
+ ' .uagb-ifb-separator-parent' => array(
983
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['seperatorSpace'], 'px' ),
984
+ ),
985
+ // CTA icon space.
986
+ ' .uagb-ifb-align-icon-after' => array(
987
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
988
+ ),
989
+ ' .uagb-ifb-align-icon-before' => array(
990
+ 'margin-right' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
991
+ ),
992
+ );
993
+
994
+ if ( $attr['imageWidthType'] ) {
995
+ // Image.
996
+ $selectors[' .uagb-ifb-image-content > img'] = array(
997
+ 'width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
998
+ 'max-width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
999
+ );
1000
+ }
1001
+
1002
+ if( 'above-title' === $attr['iconimgPosition'] || 'below-title' === $attr['iconimgPosition'] ){
1003
+ $selectors[' .uagb-infobox__content-wrap'] = array(
1004
+ 'text-align' => $attr['headingAlign'],
1005
+ );
1006
+ }
1007
+
1008
+ $m_selectors = array(
1009
+ ' .uagb-ifb-title-prefix' => array(
1010
+ 'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
1011
+ 'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightMobile'], $attr['prefixLineHeightType'] ),
1012
+ ),
1013
+ ' .uagb-ifb-title' => array(
1014
+ 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
1015
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
1016
+ ),
1017
+ ' .uagb-ifb-desc' => array(
1018
+ 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
1019
+ 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
1020
+ ),
1021
+ ' .uagb-infobox-cta-link' => array(
1022
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1023
+ ),
1024
+ ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
1025
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1026
+ 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1027
+ 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1028
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1029
+ ),
1030
+ ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
1031
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1032
+ 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1033
+ 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1034
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
1035
+ ),
1036
+ );
1037
+
1038
+ $t_selectors = array(
1039
+ ' .uagb-ifb-title-prefix' => array(
1040
+ 'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
1041
+ ),
1042
+ ' .uagb-ifb-title' => array(
1043
+ 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
1044
+ ),
1045
+ ' .uagb-ifb-desc' => array(
1046
+ 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
1047
+ ),
1048
+ ' .uagb-infobox-cta-link' => array(
1049
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1050
+ ),
1051
+ ' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
1052
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1053
+ 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1054
+ 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1055
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1056
+ ),
1057
+ ' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
1058
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1059
+ 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1060
+ 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1061
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1062
+ ),
1063
+ );
1064
+
1065
+ // @codingStandardsIgnoreEnd.
1066
+
1067
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-infobox-' . $id );
1068
+
1069
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-infobox-' . $id );
1070
+
1071
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-infobox-' . $id );
1072
+
1073
+ $generated_css = array(
1074
+ 'desktop' => $desktop,
1075
+ 'tablet' => $tablet,
1076
+ 'mobile' => $mobile,
1077
+ );
1078
+
1079
+ return $generated_css;
1080
+ }
1081
+
1082
+ /**
1083
+ * Get CTA CSS
1084
+ *
1085
+ * @since 1.7.0
1086
+ * @param array $attr The block attributes.
1087
+ * @param string $id The selector ID.
1088
+ * @return array The Widget List.
1089
+ */
1090
+ public static function get_call_to_action_css( $attr, $id ) { // @codingStandardsIgnoreStart.
1091
+ $defaults = UAGB_Helper::$block_list['uagb/call-to-action']['attributes'];
1092
+
1093
+ $attr = array_merge( $defaults, (array) $attr );
1094
+
1095
+ $t_selectors = array();
1096
+ $m_selectors = array();
1097
+
1098
+ $selectors = array(
1099
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1100
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
1101
+ 'font-family' => $attr['ctaFontFamily'],
1102
+ 'font-weight' => $attr['ctaFontWeight'],
1103
+ 'color' => $attr['ctaBtnLinkColor'],
1104
+ ),
1105
+ ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-text ' => array(
1106
+ 'color' => $attr['ctaLinkHoverColor'],
1107
+ ),
1108
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1109
+ 'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
1110
+ 'font-family' => $attr['ctaFontFamily'],
1111
+ 'font-weight' => $attr['ctaFontWeight'],
1112
+ 'color' => $attr['ctaBtnLinkColor'],
1113
+ 'background-color' => $attr['ctaBgColor'],
1114
+ 'border-style' => $attr['ctaBorderStyle'],
1115
+ 'border-color' => $attr['ctaBorderColor'],
1116
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['ctaBorderRadius'], 'px' ),
1117
+ 'border-width' => UAGB_Helper::get_css_value( $attr['ctaBorderWidth'], 'px' ),
1118
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
1119
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
1120
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
1121
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
1122
+ ),
1123
+ ' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-button' => array(
1124
+ 'color' => $attr['ctaLinkHoverColor'],
1125
+ 'background-color' => $attr['ctaBgHoverColor'],
1126
+ 'border-color' => $attr['ctaBorderhoverColor'],
1127
+ ),
1128
+ ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1129
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
1130
+ 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
1131
+ 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
1132
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
1133
+ ),
1134
+ ' .uagb-cta__button-wrapper .uagb-cta__block-link svg' => array(
1135
+ 'fill' => $attr['ctaBtnLinkColor'],
1136
+ ),
1137
+ ' .uagb-cta__button-wrapper:hover .uagb-cta__block-link svg' => array(
1138
+ 'fill' => $attr['ctaLinkHoverColor'],
1139
+ ),
1140
+ ' .uagb-cta__title' => array(
1141
+ 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
1142
+ 'font-family' => $attr['titleFontFamily'],
1143
+ 'font-weight' => $attr['titleFontWeight'],
1144
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
1145
+ 'color' => $attr['titleColor'],
1146
+ 'margin-bottom' => $attr['titleSpace']. "px",
1147
+ ),
1148
+ ' .uagb-cta__desc' => array(
1149
+ 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
1150
+ 'font-family' => $attr['descFontFamily'],
1151
+ 'font-weight' => $attr['descFontWeight'],
1152
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
1153
+ 'color' => $attr['descColor'],
1154
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
1155
+ ),
1156
+ ' .uagb-cta__align-button-after' => array(
1157
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
1158
+ ),
1159
+ ' .uagb-cta__align-button-before' => array(
1160
+ 'margin-right' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
1161
+ ),
1162
+ );
1163
+
1164
+ $selectors[' .uagb-cta__content-wrap'] = array(
1165
+ 'text-align' => $attr['textAlign'],
1166
+ );
1167
+
1168
+ if( 'left' === $attr['textAlign'] && "right" === $attr['ctaPosition'] ){
1169
+ $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1170
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['ctaLeftSpace'], 'px' ),
1171
+ 'margin-right' => '0',
1172
+ );
1173
+ }
1174
+
1175
+ if( 'right' === $attr['textAlign'] && 'right' === $attr['ctaPosition'] ){
1176
+ $selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
1177
+ 'margin-right' => UAGB_Helper::get_css_value( $attr['ctaRightSpace'], 'px' ),
1178
+ 'margin-left' => '0',
1179
+ );
1180
+ }
1181
+
1182
+ if( $attr['ctaPosition'] === "right" && ( $attr['ctaType'] === 'text' || $attr['ctaType'] === 'button' ) ){
1183
+ $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
1184
+ "width" => UAGB_Helper::get_css_value( $attr['contentWidth'], '%' ),
1185
+ );
1186
+
1187
+ $selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
1188
+ "width" => UAGB_Helper::get_css_value( (100 - $attr['contentWidth'] ), '%' ),
1189
+ );
1190
+ }
1191
+
1192
+ $t_selectors = array(
1193
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1194
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1195
+ ),
1196
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1197
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1198
+ ),
1199
+ ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1200
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1201
+ 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1202
+ 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1203
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
1204
+ ),
1205
+ ' .uagb-cta__title' => array(
1206
+ 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
1207
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
1208
+ ),
1209
+ ' .uagb-cta__desc' => array(
1210
+ 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
1211
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
1212
+ ),
1213
+ );
1214
+
1215
+ $m_selectors = array(
1216
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
1217
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1218
+ ),
1219
+ ' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
1220
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1221
+ ),
1222
+ ' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
1223
+ 'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1224
+ 'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1225
+ 'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1226
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
1227
+ ),
1228
+ ' .uagb-cta__title' => array(
1229
+ 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'],$attr['titleFontSizeType'] ),
1230
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'],$attr['titleLineHeightType'] ),
1231
+ ),
1232
+ ' .uagb-cta__desc' => array(
1233
+ 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'],$attr['descFontSizeType'] ),
1234
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
1235
+ ),
1236
+ );
1237
+
1238
+ // @codingStandardsIgnoreEnd.
1239
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cta-block-' . $id );
1240
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-cta-block-' . $id );
1241
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-cta-block-' . $id );
1242
+
1243
+ $generated_css = array(
1244
+ 'desktop' => $desktop,
1245
+ 'tablet' => $tablet,
1246
+ 'mobile' => $mobile,
1247
+ );
1248
+
1249
+ return $generated_css;
1250
+ }
1251
+
1252
+ /**
1253
+ * Get Testimonial CSS
1254
+ *
1255
+ * @since 0.0.1
1256
+ * @param array $attr The block attributes.
1257
+ * @param string $id The selector ID.
1258
+ * @return array The Widget List.
1259
+ */
1260
+ public static function get_testimonial_css( $attr, $id ) { // @codingStandardsIgnoreStart.
1261
+
1262
+ $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
1263
+
1264
+ $attr = array_merge( $defaults, (array) $attr );
1265
+
1266
+ $img_align = 'center';
1267
+ if( 'left' === $attr['headingAlign']){
1268
+ $img_align = 'flex-start';
1269
+ }else if( 'right' === $attr['headingAlign']){
1270
+ $img_align = 'flex-end';
1271
+ }
1272
+
1273
+ $position = str_replace( '-', ' ', $attr['backgroundPosition'] );
1274
+
1275
+ $selectors = array(
1276
+ ' .uagb-testimonial__wrap' => array(
1277
+ 'padding-left' => UAGB_Helper::get_css_value( ( ($attr['columnGap']) /2 ), 'px' ),
1278
+ 'padding-right' => UAGB_Helper::get_css_value( ( ($attr['columnGap']) /2 ), 'px' ),
1279
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['rowGap'], 'px' ),
1280
+ ),
1281
+ ' .uagb-testimonial__wrap .uagb-tm__image-content' => array(
1282
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['imgHrPadding'], 'px' ),
1283
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['imgHrPadding'], 'px' ),
1284
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['imgVrPadding'], 'px' ),
1285
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['imgVrPadding'], 'px' ),
1286
+ ),
1287
+ ' .uagb-tm__image img' => array(
1288
+ 'width' => UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
1289
+ 'max-width' => UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
1290
+ ),
1291
+ ' .uagb-tm__content' => array(
1292
+ 'text-align' => $attr['headingAlign'],
1293
+ 'padding' => UAGB_Helper::get_css_value( $attr['contentPadding'], 'px' ),
1294
+ ),
1295
+ ' .uagb-tm__author-name' => array(
1296
+ 'color' => $attr['authorColor'],
1297
+ 'font-size' => $attr['nameFontSize'] . $attr['nameFontSizeType'],
1298
+ 'font-family' => $attr['nameFontFamily'],
1299
+ 'font-weight' => $attr['nameFontWeight'],
1300
+ 'line-height' => $attr['nameLineHeight'] . $attr['nameLineHeightType'],
1301
+ 'margin-bottom' => $attr['nameSpace'] . 'px',
1302
+ ),
1303
+ ' .uagb-tm__company' => array(
1304
+ 'color' => $attr['companyColor'],
1305
+ 'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSize'], $attr['companyFontSizeType'] ),
1306
+ 'font-family' => $attr['companyFontFamily'],
1307
+ 'font-weight' => $attr['companyFontWeight'],
1308
+ 'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeight'], $attr['companyLineHeightType'] ),
1309
+ ),
1310
+ ' .uagb-tm__desc' => array(
1311
+ 'color' => $attr['descColor'],
1312
+ 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
1313
+ 'font-family' => $attr['descFontFamily'],
1314
+ 'font-weight' => $attr['descFontWeight'],
1315
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
1316
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
1317
+ ),
1318
+ ' .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content' => array(
1319
+ 'background-color' => $attr['backgroundColor'],
1320
+ ),
1321
+ ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content' => array(
1322
+ 'background-image' => ( isset( $attr['backgroundImage']['url'] ) && isset( $attr['backgroundImage']['url'] ) ) ? 'url("'.$attr['backgroundImage']['url'].'")' : null,
1323
+ 'background-position'=> $position,
1324
+ 'background-repeat'=> $attr['backgroundRepeat'],
1325
+ 'background-size'=> $attr['backgroundSize'],
1326
+ ),
1327
+ ' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay' => array(
1328
+ 'background-color' => $attr['backgroundImageColor'],
1329
+ 'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? ( ( 100 - $attr['backgroundOpacity'] ) / 100 ) : '0.5',
1330
+ ),
1331
+ ' .uagb-testimonial__wrap .uagb-tm__content' => array(
1332
+ 'border-color' => $attr['borderColor'],
1333
+ 'border-style' => $attr['borderStyle'],
1334
+ 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
1335
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
1336
+ ),
1337
+ ' ul.slick-dots li button:before' => array(
1338
+ 'color' => $attr['arrowColor'],
1339
+ ),
1340
+ ' ul.slick-dots li.slick-active button:before' => array(
1341
+ 'color' => $attr['arrowColor'],
1342
+ ),
1343
+ ' .uagb-tm__image-position-top .uagb-tm__image-content' => array(
1344
+ 'justify-content' => $img_align,
1345
+ ),
1346
+ );
1347
+
1348
+ if( 'dots' === $attr['arrowDots'] ){
1349
+ $selectors['.uagb-slick-carousel'] = array(
1350
+ 'padding' => '0 0 35px 0',
1351
+ );
1352
+ }
1353
+
1354
+ if( '1' === $attr['test_item_count'] || $attr['test_item_count'] === $attr['columns'] ){
1355
+ $selectors['.uagb-slick-carousel'] = array(
1356
+ 'padding' => 0,
1357
+ );
1358
+ }
1359
+
1360
+ $t_selectors = array(
1361
+ ' .uagb-tm__author-name' => array(
1362
+ 'font-size' => UAGB_Helper::get_css_value( $attr['nameFontSizeTablet'], $attr['nameFontSizeType'] ),
1363
+ 'line-height' => UAGB_Helper::get_css_value( $attr['nameLineHeightTablet'], $attr['nameLineHeightType'] ),
1364
+ ),
1365
+ ' .uagb-tm__company' => array(
1366
+ 'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSizeTablet'], $attr['companyFontSizeType'] ),
1367
+ 'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeightTablet'], $attr['companyLineHeightType'] ),
1368
+ ),
1369
+ ' .uagb-tm__desc' => array(
1370
+ 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
1371
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
1372
+ ),
1373
+ );
1374
+
1375
+ $m_selectors = array(
1376
+ ' .uagb-tm__author-name' => array(
1377
+ 'font-size' => UAGB_Helper::get_css_value( $attr['nameFontSizeMobile'], $attr['nameFontSizeType'] ),
1378
+ 'line-height' => UAGB_Helper::get_css_value( $attr['nameLineHeightMobile'], $attr['nameLineHeightType'] ),
1379
+ ),
1380
+ ' .uagb-tm__company' => array(
1381
+ 'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSizeMobile'], $attr['companyFontSizeType'] ),
1382
+ 'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeightMobile'], $attr['companyLineHeightType'] ),
1383
+ ),
1384
+ ' .uagb-tm__desc' => array(
1385
+ 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
1386
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
1387
+ ),
1388
+ ' .uagb-tm__content' => array(
1389
+ 'text-align' => 'center',
1390
+ )
1391
+ );
1392
+
1393
+
1394
+ // @codingStandardsIgnoreEnd.
1395
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-testimonial-' . $id );
1396
+
1397
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-testimonial-' . $id );
1398
+
1399
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-testimonial-' . $id );
1400
+
1401
+ $generated_css = array(
1402
+ 'desktop' => $desktop,
1403
+ 'tablet' => $tablet,
1404
+ 'mobile' => $mobile,
1405
+ );
1406
+
1407
+ return $generated_css;
1408
+ }
1409
+
1410
+ /**
1411
+ * Get Team Block CSS
1412
+ *
1413
+ * @since 0.0.1
1414
+ * @param array $attr The block attributes.
1415
+ * @param string $id The selector ID.
1416
+ * @return array The Widget List.
1417
+ */
1418
+ public static function get_team_css( $attr, $id ) { // @codingStandardsIgnoreStart
1419
+
1420
+ $defaults = UAGB_Helper::$block_list['uagb/team']['attributes'];
1421
+
1422
+ $attr = array_merge( $defaults, (array) $attr );
1423
+
1424
+ $m_selectors = array();
1425
+ $t_selectors = array();
1426
+
1427
+ $selectors = array(
1428
+ " p.uagb-team__desc" => array(
1429
+ "font-family" => $attr['descFontFamily'],
1430
+ "font-weight" => $attr['descFontWeight'],
1431
+ "font-size" => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
1432
+ "line-height" => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
1433
+ "color" => $attr['descColor'],
1434
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
1435
+ ),
1436
+ " .uagb-team__prefix" => array(
1437
+ "font-family" => $attr['prefixFontFamily'],
1438
+ "font-weight" => $attr['prefixFontWeight'],
1439
+ "font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSize'], $attr['prefixFontSizeType'] ),
1440
+ "line-height" => UAGB_Helper::get_css_value( $attr['prefixLineHeight'], $attr['prefixLineHeightType'] ),
1441
+ "color" => $attr['prefixColor'],
1442
+ ),
1443
+ " .uagb-team__desc-wrap" => array(
1444
+ "margin-top" => UAGB_Helper::get_css_value( $attr['prefixSpace'], 'px' ),
1445
+ ),
1446
+ " .uagb-team__social-icon a" => array(
1447
+ "color" => $attr['socialColor'],
1448
+ "font-size" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1449
+ "width" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1450
+ "height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1451
+ "line-height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1452
+ ),
1453
+ " .uagb-team__social-icon svg" => array(
1454
+ "fill" => $attr['socialColor'],
1455
+ "width" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1456
+ "height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
1457
+ ),
1458
+ " .uagb-team__social-icon:hover a" => array(
1459
+ "color" => $attr['socialHoverColor'],
1460
+ ),
1461
+ " .uagb-team__social-icon:hover svg" => array(
1462
+ "fill" => $attr['socialHoverColor'],
1463
+ ),
1464
+ ".uagb-team__image-position-left .uagb-team__social-icon" => array(
1465
+ "margin-right" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
1466
+ "margin-left" => "0",
1467
+ ),
1468
+ ".uagb-team__image-position-right .uagb-team__social-icon" => array(
1469
+ "margin-left" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
1470
+ "margin-right" => "0",
1471
+ ),
1472
+ ".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon" => array(
1473
+ "margin-right" => UAGB_Helper::get_css_value( ( $attr['socialSpace'] / 2 ), 'px' ),
1474
+ "margin-left" => UAGB_Helper::get_css_value( ( $attr['socialSpace'] / 2 ), 'px' ),
1475
+ ),
1476
+ ".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon" => array(
1477
+ "margin-right" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
1478
+ "margin-left" => "0",
1479
+ ),
1480
+ ".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon" => array(
1481
+ "margin-left" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
1482
+ "margin-right" => "0",
1483
+ ),
1484
+ " .uagb-team__image-wrap" => array(
1485
+ "margin-top" => UAGB_Helper::get_css_value( $attr['imgTopMargin'], 'px' ),
1486
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['imgBottomMargin'], 'px' ),
1487
+ "margin-left" => UAGB_Helper::get_css_value( $attr['imgLeftMargin'], 'px' ),
1488
+ "margin-right" => UAGB_Helper::get_css_value( $attr['imgRightMargin'], 'px' ),
1489
+ "width" => UAGB_Helper::get_css_value( $attr['imgWidth'], 'px' )
1490
+ ),
1491
+ );
1492
+
1493
+ if( 'above' == $attr['imgPosition'] ) {
1494
+ if ( 'center' == $attr['align'] ) {
1495
+ $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1496
+ $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1497
+ } else if ( 'left' == $attr['align'] ) {
1498
+ $selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
1499
+ } else if ( 'right' == $attr['align'] ) {
1500
+ $selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
1501
+ }
1502
+ }
1503
+
1504
+ if ( "above" != $attr['imgPosition'] ) {
1505
+ if ( "middle" == $attr['imgAlign'] ) {
1506
+ $selectors[" .uagb-team__image-wrap"]["align-self"] = "center";
1507
+ }
1508
+ }
1509
+
1510
+ $selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1511
+ "font-family" => $attr['titleFontFamily'],
1512
+ "font-weight" => $attr['titleFontWeight'],
1513
+ "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
1514
+ "line-height" => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
1515
+ "color" => $attr['titleColor'],
1516
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['titleSpace'], 'px' ),
1517
+ );
1518
+
1519
+ $m_selectors = array(
1520
+ " p.uagb-team__desc" => array(
1521
+ "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
1522
+ ),
1523
+ " .uagb-team__prefix" => array(
1524
+ "font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
1525
+ ),
1526
+ " .uagb-team__social-icon a" => array(
1527
+ "font-size" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1528
+ "width" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1529
+ "height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1530
+ "line-height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1531
+ ),
1532
+ " .uagb-team__social-icon svg" => array(
1533
+ "width" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1534
+ "height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
1535
+ ),
1536
+ );
1537
+
1538
+ $t_selectors = array(
1539
+ " p.uagb-team__desc" => array(
1540
+ "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
1541
+ ),
1542
+ " .uagb-team__prefix" => array(
1543
+ "font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
1544
+ ),
1545
+ " .uagb-team__social-icon a" => array(
1546
+ "font-size" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1547
+ "width" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1548
+ "height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1549
+ "line-height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1550
+ ),
1551
+ " .uagb-team__social-icon svg" => array(
1552
+ "width" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1553
+ "height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
1554
+ ),
1555
+ );
1556
+
1557
+ $m_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1558
+ "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
1559
+ );
1560
+
1561
+ $t_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
1562
+ "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
1563
+ );
1564
+
1565
+ // @codingStandardsIgnoreEnd
1566
+
1567
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-team-' . $id );
1568
+
1569
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-team-' . $id );
1570
+
1571
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-team-' . $id );
1572
+
1573
+ $generated_css = array(
1574
+ 'desktop' => $desktop,
1575
+ 'tablet' => $tablet,
1576
+ 'mobile' => $mobile,
1577
+ );
1578
+
1579
+ return $generated_css;
1580
+ }
1581
+
1582
+ /**
1583
+ * Get Social Share Block CSS
1584
+ *
1585
+ * @since 0.0.1
1586
+ * @param array $attr The block attributes.
1587
+ * @param string $id The selector ID.
1588
+ * @return array The Widget List.
1589
+ */
1590
+ public static function get_social_share_css( $attr, $id ) { // @codingStandardsIgnoreStart
1591
+
1592
+ $defaults = UAGB_Helper::$block_list['uagb/social-share']['attributes'];
1593
+
1594
+ $attr = array_merge( $defaults, (array) $attr );
1595
+
1596
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1597
+
1598
+ $m_selectors = array();
1599
+ $t_selectors = array();
1600
+
1601
+ $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper"] = array(
1602
+ "margin-left" => 0,
1603
+ "margin-right" => 0,
1604
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
1605
+ );
1606
+
1607
+ $selectors[".uagb-social-share__layout-vertical .uagb-social-share__wrap"] = array(
1608
+ "flex-direction" => "column"
1609
+ );
1610
+
1611
+ $selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper:last-child"] = array(
1612
+ "margin-bottom" => 0
1613
+ );
1614
+
1615
+ $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1616
+ "margin-left" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
1617
+ "margin-right" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
1618
+ );
1619
+
1620
+ $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:first-child"] = array(
1621
+ "margin-left" => 0
1622
+ );
1623
+
1624
+ $selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:last-child"] = array(
1625
+ "margin-right" => 0
1626
+ );
1627
+
1628
+ $selectors[" .uagb-ss__wrapper"] = array(
1629
+ "border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' )
1630
+ );
1631
+
1632
+ $selectors[" .uagb-ss__source-wrap"] = array(
1633
+ "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1634
+ );
1635
+
1636
+ $selectors[" .uagb-ss__source-wrap svg"] = array(
1637
+ "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1638
+ "height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1639
+ );
1640
+
1641
+ $selectors[" .uagb-ss__source-image"] = array(
1642
+ "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
1643
+ );
1644
+
1645
+ $selectors[" .uagb-ss__source-icon"] = array(
1646
+ "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1647
+ "height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1648
+ "font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1649
+ "line-height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
1650
+ );
1651
+
1652
+
1653
+ $t_selectors[" .uagb-ss__source-wrap"] = array(
1654
+ "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1655
+ "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1656
+ "line-height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1657
+ );
1658
+
1659
+ $t_selectors[" .uagb-ss__source-wrap svg"] = array(
1660
+ "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1661
+ "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1662
+ );
1663
+
1664
+ $t_selectors[" .uagb-ss__source-image"] = array(
1665
+ "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1666
+ );
1667
+
1668
+ $t_selectors[" .uagb-ss__source-icon"] = array(
1669
+ "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1670
+ "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1671
+ "font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1672
+ "line-height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1673
+ );
1674
+ $t_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1675
+ "margin-left" => 0,
1676
+ "margin-right" => 0
1677
+ );
1678
+
1679
+
1680
+ $m_selectors[" .uagb-ss__source-wrap"] = array(
1681
+ "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1682
+ "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1683
+ "line-height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1684
+ );
1685
+
1686
+ $m_selectors[" .uagb-ss__source-wrap svg"] = array(
1687
+ "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1688
+ "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1689
+ );
1690
+
1691
+ $m_selectors[" .uagb-ss__source-image"] = array(
1692
+ "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1693
+ );
1694
+
1695
+ $m_selectors[" .uagb-ss__source-icon"] = array(
1696
+ "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1697
+ "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1698
+ "font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1699
+ "line-height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1700
+ );
1701
+ $m_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
1702
+ "margin-left" => 0,
1703
+ "margin-right" => 0
1704
+ );
1705
+
1706
+
1707
+ foreach ( $attr['socials'] as $key => $social ) {
1708
+
1709
+ $social['icon_color'] = ( isset( $social['icon_color'] ) ) ? $social['icon_color'] : '';
1710
+ $social['icon_bg_color'] = ( isset( $social['icon_bg_color'] ) ) ? $social['icon_bg_color'] : '';
1711
+ $social['icon_hover_color'] = ( isset( $social['icon_hover_color'] ) ) ? $social['icon_hover_color'] : '';
1712
+ $social['icon_bg_hover_color'] = ( isset( $social['icon_bg_hover_color'] ) ) ? $social['icon_bg_hover_color'] : '';
1713
+
1714
+ if ( $attr['social_count'] <= $key ) {
1715
+ break;
1716
+ }
1717
+
1718
+ $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1719
+ "color" => $social['icon_color'],
1720
+ "padding" => UAGB_Helper::get_css_value( $attr['bgSize'], $attr['bgSizeType'] )
1721
+ );
1722
+
1723
+ $m_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1724
+ "padding" => UAGB_Helper::get_css_value( $attr['bgSizeMobile'], $attr['bgSizeType'] )
1725
+ );
1726
+
1727
+ $t_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
1728
+ "padding" => UAGB_Helper::get_css_value( $attr['bgSizeTablet'], $attr['bgSizeType'] )
1729
+ );
1730
+
1731
+ $selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link svg"] = array (
1732
+ "fill" => $social['icon_color'],
1733
+ );
1734
+
1735
+ $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link"] = array (
1736
+ "color" => $social['icon_hover_color']
1737
+ );
1738
+
1739
+ $selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link svg"] = array (
1740
+ "fill" => $social['icon_hover_color']
1741
+ );
1742
+
1743
+ $selectors[" .uagb-ss-repeater-" . $key] = array (
1744
+ "background" => $social['icon_bg_color']
1745
+ );
1746
+
1747
+ $selectors[" .uagb-ss-repeater-" . $key . ":hover"] = array (
1748
+ "background" => $social['icon_bg_hover_color']
1749
+ );
1750
+ }
1751
+
1752
+ $selectors[" .uagb-social-share__wrap"] = array(
1753
+ "justify-content" => $alignment,
1754
+ "-webkit-box-pack" => $alignment,
1755
+ "-ms-flex-pack" => $alignment,
1756
+ "justify-content" => $alignment,
1757
+ "-webkit-box-align" => $alignment,
1758
+ "-ms-flex-align" => $alignment,
1759
+ "align-items" => $alignment,
1760
+ );
1761
+
1762
+ if ( 'horizontal' == $attr['social_layout'] ) {
1763
+
1764
+ if ( "desktop" == $attr['stack'] ) {
1765
+
1766
+ $selectors[" .uagb-ss__wrapper"] = array (
1767
+ "margin-left" => 0,
1768
+ "margin-right" => 0,
1769
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
1770
+ );
1771
+
1772
+ $selectors[" .uagb-social-share__wrap"] = array (
1773
+ "flex-direction" => "column"
1774
+ );
1775
+
1776
+ $selectors[" .uagb-ss__wrapper:last-child"] = array (
1777
+ "margin-bottom" => 0
1778
+ );
1779
+
1780
+ } else if ( "tablet" == $attr['stack'] ) {
1781
+
1782
+ $t_selectors[" .uagb-ss__wrapper"] = array (
1783
+ "margin-left" => 0,
1784
+ "margin-right" => 0,
1785
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
1786
+ );
1787
+
1788
+ $t_selectors[" .uagb-social-share__wrap"] = array (
1789
+ "flex-direction" => "column"
1790
+ );
1791
+
1792
+ $t_selectors[" .uagb-ss__wrapper:last-child"] = array (
1793
+ "margin-bottom" => 0
1794
+ );
1795
+
1796
+ } else if ( "mobile" == $attr['stack'] ) {
1797
+
1798
+ $m_selectors[" .uagb-ss__wrapper"] = array (
1799
+ "margin-left" => 0,
1800
+ "margin-right" => 0,
1801
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
1802
+ );
1803
+
1804
+ $m_selectors[" .uagb-social-share__wrap"] = array (
1805
+ "flex-direction" => "column"
1806
+ );
1807
+
1808
+ $m_selectors[" .uagb-ss__wrapper:last-child"] = array (
1809
+ "margin-bottom" => 0
1810
+ );
1811
+ }
1812
+ }
1813
+
1814
+ // @codingStandardsIgnoreEnd
1815
+
1816
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-social-share-' . $id );
1817
+
1818
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-social-share-' . $id );
1819
+
1820
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-social-share-' . $id );
1821
+
1822
+ $generated_css = array(
1823
+ 'desktop' => $desktop,
1824
+ 'tablet' => $tablet,
1825
+ 'mobile' => $mobile,
1826
+ );
1827
+
1828
+ return $generated_css;
1829
+ }
1830
+
1831
+ /**
1832
+ * Get Icon List Block CSS
1833
+ *
1834
+ * @since 0.0.1
1835
+ * @param array $attr The block attributes.
1836
+ * @param string $id The selector ID.
1837
+ * @return array The Widget List.
1838
+ */
1839
+ public static function get_icon_list_css( $attr, $id ) { // @codingStandardsIgnoreStart
1840
+
1841
+ $defaults = UAGB_Helper::$block_list['uagb/icon-list']['attributes'];
1842
+
1843
+ $attr = array_merge( $defaults, (array) $attr );
1844
+
1845
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
1846
+
1847
+ $m_selectors = array();
1848
+ $t_selectors = array();
1849
+
1850
+ $selectors = array(
1851
+ ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper" => array(
1852
+ "margin-left" => 0,
1853
+ "margin-right" => 0,
1854
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
1855
+ ),
1856
+ ".uagb-icon-list__layout-vertical .uagb-icon-list__wrap" => array(
1857
+ "flex-direction" => "column"
1858
+ ),
1859
+ ".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper:last-child" => array(
1860
+ "margin-bottom" => 0
1861
+ ),
1862
+ ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper" => array(
1863
+ "margin-left" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
1864
+ "margin-right" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
1865
+ ),
1866
+ ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:first-child" => array(
1867
+ "margin-left" => 0
1868
+ ),
1869
+ ".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:last-child" => array(
1870
+ "margin-right" => 0
1871
+ ),
1872
+ // Desktop Icon Size CSS starts.
1873
+ " .uagb-icon-list__source-image" => array(
1874
+ "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
1875
+ ),
1876
+ " .uagb-icon-list__source-icon" => array(
1877
+ "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1878
+ "height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1879
+ "font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
1880
+ ),
1881
+ " .uagb-icon-list__source-icon svg" => array(
1882
+ "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1883
+ "height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1884
+ ),
1885
+ " .uagb-icon-list__source-icon:before"=> array(
1886
+ "width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1887
+ "height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
1888
+ "font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
1889
+ ),
1890
+ " .uagb-icon-list__label-wrap"=> array(
1891
+ "text-align" => $attr['align']
1892
+ ),
1893
+
1894
+ " .uagb-icon-list__source-wrap"=> array(
1895
+ "padding" => UAGB_Helper::get_css_value( $attr['bgSize'], 'px' ),
1896
+ "border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
1897
+ "border-style" => ( $attr['border'] > 0 ) ? 'solid' : '',
1898
+ "border-width" => UAGB_Helper::get_css_value( $attr['border'], 'px' )
1899
+ ),
1900
+ " .uagb-icon-list__wrap"=> array(
1901
+ "justify-content" => $alignment,
1902
+ "-webkit-box-pack" => $alignment,
1903
+ "-ms-flex-pack" => $alignment,
1904
+ "justify-content" => $alignment,
1905
+ "-webkit-box-align" => $alignment,
1906
+ "-ms-flex-align" => $alignment,
1907
+ "align-items" => $alignment,
1908
+ )
1909
+ );
1910
+
1911
+ if ( 'right' == $attr['align'] ) {
1912
+ $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1913
+ "margin-left" => UAGB_Helper::get_css_value( $attr['inner_gap'], 'px' )
1914
+ );
1915
+ $selectors[" .uagb-icon-list__content-wrap"] = array(
1916
+ "flex-direction" => "row-reverse"
1917
+ );
1918
+ } else {
1919
+ $selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
1920
+ "margin-right" => UAGB_Helper::get_css_value( $attr['inner_gap'], 'px' )
1921
+ );
1922
+ }
1923
+ // Desktop Icon Size CSS ends.
1924
+
1925
+ // Mobile Icon Size CSS starts.
1926
+ $m_selectors = array(
1927
+ " .uagb-icon-list__source-image" => array(
1928
+ "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1929
+ ),
1930
+ " .uagb-icon-list__source-icon" => array(
1931
+ "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1932
+ "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1933
+ "font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1934
+ ),
1935
+ " .uagb-icon-list__source-icon svg" => array(
1936
+ "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1937
+ "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1938
+ ),
1939
+ " .uagb-icon-list__source-icon:before" => array(
1940
+ "width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1941
+ "height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
1942
+ "font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
1943
+ ),
1944
+ );
1945
+ // Mobile Icon Size CSS ends.
1946
+
1947
+ // Tablet Icon Size CSS starts.
1948
+ $t_selectors = array(
1949
+ " .uagb-icon-list__source-image" => array(
1950
+ "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1951
+ ),
1952
+ " .uagb-icon-list__source-icon" => array(
1953
+ "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1954
+ "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1955
+ "font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1956
+ ),
1957
+ " .uagb-icon-list__source-icon svg" => array(
1958
+ "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1959
+ "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1960
+ ),
1961
+ " .uagb-icon-list__source-icon:before" => array(
1962
+ "width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1963
+ "height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
1964
+ "font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
1965
+ ),
1966
+ );
1967
+ // Tablet Icon Size CSS ends.
1968
+
1969
+ foreach ( $attr['icons'] as $key => $icon ) {
1970
+
1971
+ $icon['icon_color'] = ( isset( $icon['icon_color'] ) ) ? $icon['icon_color'] : '';
1972
+ $icon['icon_hover_color'] = ( isset( $icon['icon_hover_color'] ) ) ? $icon['icon_hover_color'] : '';
1973
+ $icon['icon_bg_color'] = ( isset( $icon['icon_bg_color'] ) ) ? $icon['icon_bg_color'] : '';
1974
+ $icon['icon_bg_hover_color'] = ( isset( $icon['icon_bg_hover_color'] ) ) ? $icon['icon_bg_hover_color'] : '';
1975
+ $icon['icon_border_color'] = ( isset( $icon['icon_border_color'] ) ) ? $icon['icon_border_color'] : '';
1976
+ $icon['icon_border_hover_color'] = ( isset( $icon['icon_border_hover_color'] ) ) ? $icon['icon_border_hover_color'] : '';
1977
+ $icon['label_color'] = ( isset( $icon['label_color'] ) ) ? $icon['label_color'] : '';
1978
+ $icon['label_hover_color'] = ( isset( $icon['label_hover_color'] ) ) ? $icon['label_hover_color'] : '';
1979
+
1980
+ if ( $attr['icon_count'] <= $key ) {
1981
+ break;
1982
+ }
1983
+
1984
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon"] = array (
1985
+ "color" => $icon['icon_color']
1986
+ );
1987
+
1988
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon svg"] = array (
1989
+ "fill" => $icon['icon_color']
1990
+ );
1991
+
1992
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon"] = array (
1993
+ "color" => $icon['icon_hover_color']
1994
+ );
1995
+
1996
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon svg"] = array (
1997
+ "fill" => $icon['icon_hover_color']
1998
+ );
1999
+
2000
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
2001
+ "color" => $icon['label_color'],
2002
+ "font-size" => UAGB_Helper::get_css_value( $attr['fontSize'], $attr['fontSizeType'] ),
2003
+ 'font-family' => $attr['fontFamily'],
2004
+ 'font-weight' => $attr['fontWeight'],
2005
+ 'line-height' => $attr['lineHeight'] . $attr['lineHeightType'],
2006
+ );
2007
+
2008
+ $m_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
2009
+ "font-size" => UAGB_Helper::get_css_value( $attr['fontSizeMobile'], $attr['fontSizeType'] ),
2010
+ 'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightMobile'], $attr['lineHeightType'] ),
2011
+ );
2012
+
2013
+ $t_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
2014
+ "font-size" => UAGB_Helper::get_css_value( $attr['fontSizeTablet'], $attr['fontSizeType'] ),
2015
+ 'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightTablet'], $attr['lineHeightType'] ),
2016
+ );
2017
+
2018
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__label"] = array (
2019
+ "color" => $icon['label_hover_color']
2020
+ );
2021
+
2022
+ $selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-wrap"] = array(
2023
+ "background" => $icon['icon_bg_color'],
2024
+ "border-color" => $icon['icon_border_color'],
2025
+ );
2026
+
2027
+ $selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-wrap"] = array(
2028
+ "background" => $icon['icon_bg_hover_color'],
2029
+ "border-color" => $icon['icon_border_hover_color']
2030
+ );
2031
+ }
2032
+
2033
+ if ( 'horizontal' == $attr['icon_layout'] ) {
2034
+
2035
+ if ( "tablet" == $attr['stack'] ) {
2036
+
2037
+ $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
2038
+ "margin-left" => 0,
2039
+ "margin-right" => 0,
2040
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
2041
+ );
2042
+
2043
+ $t_selectors[" .uagb-icon-list__wrap"] = array (
2044
+ "flex-direction" => "column"
2045
+ );
2046
+
2047
+ $t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
2048
+ "margin-bottom" => 0
2049
+ );
2050
+
2051
+ } else if ( "mobile" == $attr['stack'] ) {
2052
+
2053
+ $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
2054
+ "margin-left" => 0,
2055
+ "margin-right" => 0,
2056
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
2057
+ );
2058
+
2059
+ $m_selectors[" .uagb-icon-list__wrap"] = array (
2060
+ "flex-direction" => "column"
2061
+ );
2062
+
2063
+ $m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
2064
+ "margin-bottom" => 0
2065
+ );
2066
+ }
2067
+ }
2068
+
2069
+ // @codingStandardsIgnoreEnd
2070
+
2071
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-icon-list-' . $id );
2072
+
2073
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-icon-list-' . $id );
2074
+
2075
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-icon-list-' . $id );
2076
+
2077
+ $generated_css = array(
2078
+ 'desktop' => $desktop,
2079
+ 'tablet' => $tablet,
2080
+ 'mobile' => $mobile,
2081
+ );
2082
+
2083
+ return $generated_css;
2084
+ }
2085
+
2086
+ /**
2087
+ * Get Content Timeline Block CSS
2088
+ *
2089
+ * @since 0.0.1
2090
+ * @param array $attr The block attributes.
2091
+ * @param string $id The selector ID.
2092
+ * @return array The Widget List.
2093
+ */
2094
+ public static function get_content_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
2095
+
2096
+ $defaults = UAGB_Helper::$block_list['uagb/content-timeline']['attributes'];
2097
+
2098
+ $attr = array_merge( $defaults, (array) $attr );
2099
+
2100
+ $selectors = array();
2101
+ $t_selectors = array();
2102
+ $m_selectors = array();
2103
+
2104
+ $selectors = array(
2105
+ " .uagb-timeline__heading" => array(
2106
+ "text-align" => $attr['align'],
2107
+ "color" => $attr['headingColor'],
2108
+ "font-size" => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
2109
+ 'font-family' => $attr['headFontFamily'],
2110
+ 'font-weight' => $attr['headFontWeight'],
2111
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
2112
+ ),
2113
+ " .uagb-timeline__heading-text" => array(
2114
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
2115
+ ),
2116
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
2117
+ 'color'=> $attr['iconFocus'],
2118
+ ),
2119
+ );
2120
+
2121
+ $desktop_selectors = self::get_timeline_selectors( $attr );
2122
+ $selectors = array_merge( $selectors, $desktop_selectors );
2123
+
2124
+ $t_selectors = array(
2125
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
2126
+ "font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
2127
+ 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
2128
+ ),
2129
+ " .uagb-timeline__date-new" => array(
2130
+ "font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
2131
+ 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
2132
+ ),
2133
+ " .uagb-timeline__heading" => array(
2134
+ "font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
2135
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
2136
+ ),
2137
+ " .uagb-timeline-desc-content" => array(
2138
+ "font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
2139
+ 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
2140
+ ),
2141
+ );
2142
+
2143
+ $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
2144
+ $t_selectors = array_merge( $t_selectors, $tablet_selectors );
2145
+
2146
+ $m_selectors = array(
2147
+ " .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
2148
+ "font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
2149
+ 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
2150
+ ),
2151
+ " .uagb-timeline__date-new" => array(
2152
+ "font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
2153
+ 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
2154
+ ),
2155
+ " .uagb-timeline__heading" => array(
2156
+ "font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
2157
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
2158
+ ),
2159
+ " .uagb-timeline-desc-content" => array(
2160
+ "font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
2161
+ 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
2162
+ ),
2163
+ );
2164
+
2165
+ $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2166
+
2167
+ $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2168
+
2169
+ // @codingStandardsIgnoreEnd
2170
+
2171
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2172
+
2173
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-ctm-' . $id );
2174
+
2175
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-ctm-' . $id );
2176
+
2177
+ $generated_css = array(
2178
+ 'desktop' => $desktop,
2179
+ 'tablet' => $tablet,
2180
+ 'mobile' => $mobile,
2181
+ );
2182
+
2183
+ return $generated_css;
2184
+ }
2185
+
2186
+ /**
2187
+ * Get Content Timeline Block CSS
2188
+ *
2189
+ * @since 0.0.1
2190
+ * @param array $attr The block attributes.
2191
+ * @param string $id The selector ID.
2192
+ * @return array The Widget List.
2193
+ */
2194
+ public static function get_post_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
2195
+
2196
+ $defaults = UAGB_Helper::$block_list['uagb/post-timeline']['attributes'];
2197
+
2198
+ $attr = array_merge( $defaults, (array) $attr );
2199
+ $t_selectors = array();
2200
+
2201
+ $selectors = array(
2202
+ " .uagb-timeline__heading" => array(
2203
+ "text-align" => $attr['align'],
2204
+ ),
2205
+ " .uagb-timeline__author" => array(
2206
+ "text-align" => $attr['align'],
2207
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['authorSpace'], 'px' )
2208
+ ),
2209
+ " .uagb-timeline__link_parent" => array(
2210
+ "text-align" => $attr['align'],
2211
+ ),
2212
+ " .uagb-timeline__image a" => array(
2213
+ "text-align" => $attr['align'],
2214
+ ),
2215
+ " .uagb-timeline__author-link" => array(
2216
+ "color" => $attr['authorColor'],
2217
+ "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
2218
+ 'font-family' => $attr['authorFontFamily'],
2219
+ 'font-weight' => $attr['authorFontWeight'],
2220
+ 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
2221
+ ),
2222
+ " .dashicons-admin-users" => array(
2223
+ "color" => $attr['authorColor'],
2224
+ "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
2225
+ 'font-weight' => $attr['authorFontWeight'],
2226
+ 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
2227
+ ),
2228
+ " .uagb-timeline__link" => array(
2229
+ "color" => $attr['ctaColor'],
2230
+ "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
2231
+ 'font-family' => $attr['ctaFontFamily'],
2232
+ 'font-weight' => $attr['ctaFontWeight'],
2233
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
2234
+ "background-color" => $attr['ctaBackground'],
2235
+ ),
2236
+ " .uagb-timeline__heading a" => array(
2237
+ "text-align" => $attr['align'],
2238
+ "color" => $attr['headingColor'],
2239
+ "font-size" => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
2240
+ 'font-family' => $attr['headFontFamily'],
2241
+ 'font-weight' => $attr['headFontWeight'],
2242
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
2243
+ ),
2244
+ " .uagb-timeline__heading-text" => array(
2245
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
2246
+ ),
2247
+ " .uagb_timeline__cta-enable .uagb-timeline-desc-content" => array(
2248
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['contentSpace'], 'px' ),
2249
+ ),
2250
+ ' .uagb-content' => array(
2251
+ 'padding'=> UAGB_Helper::get_css_value( $attr['contentPadding'], 'px' ),
2252
+ ),
2253
+ );
2254
+
2255
+
2256
+
2257
+ $desktop_selectors = self::get_timeline_selectors( $attr );
2258
+ $selectors = array_merge( $selectors, $desktop_selectors );
2259
+
2260
+ $t_selectors = array(
2261
+ " .uagb-timeline__author-link" => array(
2262
+ "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
2263
+ 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
2264
+ ),
2265
+ " .dashicons-admin-users" => array(
2266
+ "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
2267
+ 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
2268
+ ),
2269
+ " .uagb-timeline__link" => array(
2270
+ "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
2271
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
2272
+ ),
2273
+ " .uagb-timeline__heading a" => array(
2274
+ "font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
2275
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
2276
+ ),
2277
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2278
+ "text-align" => 'left',
2279
+ ),
2280
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2281
+ "text-align" => 'left',
2282
+ ),
2283
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a" => array(
2284
+ 'text-align' => 'left',
2285
+ ),
2286
+ );
2287
+
2288
+ $tablet_selectors = self::get_timeline_tablet_selectors( $attr );
2289
+ $t_selectors = array_merge( $t_selectors, $tablet_selectors );
2290
+
2291
+ // Mobile responsive CSS.
2292
+ $m_selectors = array(
2293
+ " .uagb-timeline__author-link" => array(
2294
+ "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
2295
+ 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
2296
+ ),
2297
+ " .dashicons-admin-users" => array(
2298
+ "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
2299
+ 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
2300
+ ),
2301
+ " .uagb-timeline__link" => array(
2302
+ "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
2303
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
2304
+ ),
2305
+ " .uagb-timeline__heading a" => array(
2306
+ "font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
2307
+ 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
2308
+ ),
2309
+ " .uagb-timeline__heading" => array(
2310
+ "text-align" => $attr['align'],
2311
+ ),
2312
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
2313
+ "text-align" => 'left',
2314
+ ),
2315
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
2316
+ "text-align" => 'left',
2317
+ ),
2318
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a" => array(
2319
+ 'text-align' => 'left',
2320
+ ),
2321
+ );
2322
+
2323
+ $mobile_selectors = self::get_timeline_mobile_selectors( $attr );
2324
+ $m_selectors = array_merge( $m_selectors, $mobile_selectors );
2325
+
2326
+ // @codingStandardsIgnoreEnd
2327
+
2328
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
2329
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-ctm-' . $id );
2330
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-ctm-' . $id );
2331
+
2332
+ $generated_css = array(
2333
+ 'desktop' => $desktop,
2334
+ 'tablet' => $tablet,
2335
+ 'mobile' => $mobile,
2336
+ );
2337
+
2338
+ return $generated_css;
2339
+ }
2340
+
2341
+ /**
2342
+ * Get Restaurant Menu Block CSS
2343
+ *
2344
+ * @since 1.0.2
2345
+ * @param array $attr The block attributes.
2346
+ * @param string $id The selector ID.
2347
+ * @return array The Widget List.
2348
+ */
2349
+ public static function get_restaurant_menu_css( $attr, $id ) { // @codingStandardsIgnoreStart
2350
+
2351
+ $defaults = UAGB_Helper::$block_list['uagb/restaurant-menu']['attributes'];
2352
+
2353
+ $attr = array_merge( $defaults, (array) $attr );
2354
+
2355
+ $m_selectors = array();
2356
+ $t_selectors = array();
2357
+
2358
+ $align = $attr['headingAlign'];
2359
+ if( 'left' === $align ){
2360
+ $align = 'flex-start';
2361
+ }else if( 'right' === $align ){
2362
+ $align = 'flex-end';
2363
+ }
2364
+
2365
+ $selectors = array(
2366
+ " .uagb-rest_menu__wrap" => array(
2367
+ 'padding-left' => UAGB_Helper::get_css_value( ( $attr['columnGap']/2 ), 'px' ),
2368
+ 'padding-right' => UAGB_Helper::get_css_value( ( $attr['columnGap']/2 ), 'px' ),
2369
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['rowGap'], 'px' )
2370
+ ),
2371
+ " .uagb-rest_menu__wrap .uagb-rm__image-content" => array(
2372
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['imgHrPadding'],'px' ),
2373
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['imgHrPadding'],'px' ),
2374
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['imgVrPadding'],'px' ),
2375
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['imgVrPadding'],'px' ),
2376
+ ),
2377
+ " .uagb-rm__image img" => array(
2378
+ 'width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
2379
+ 'max-width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
2380
+ ),
2381
+ " .uagb-rm__separator-parent" => array(
2382
+ 'justify-content' => $align,
2383
+ ),
2384
+ " .uagb-rm__content" => array(
2385
+ 'text-align' => $attr['headingAlign'] ,
2386
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ),
2387
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ),
2388
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ),
2389
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ),
2390
+ ),
2391
+ " .uagb-rm__title" => array(
2392
+ 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
2393
+ 'color' => $attr['titleColor'] ,
2394
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['titleSpace'], 'px' ),
2395
+ 'font-family' => $attr['titleFontFamily'],
2396
+ 'font-weight' => $attr['titleFontWeight'],
2397
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
2398
+ ),
2399
+ " .uagb-rm__price" => array(
2400
+ 'font-size' => UAGB_Helper::get_css_value( $attr['priceFontSize'], $attr['priceFontSizeType'] ),
2401
+ 'font-family' => $attr['priceFontFamily'],
2402
+ 'font-weight' => $attr['priceFontWeight'],
2403
+ 'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeight'], $attr['priceLineHeightType'] ),
2404
+ 'color' => $attr['priceColor'],
2405
+ ),
2406
+ " .uagb-rm__desc" => array(
2407
+ 'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
2408
+ 'font-family' => $attr['descFontFamily'],
2409
+ 'font-weight' => $attr['descFontWeight'],
2410
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
2411
+ 'color'=> $attr['descColor'],
2412
+ 'margin-bottom'=> UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
2413
+ ),
2414
+ );
2415
+
2416
+ if ( $attr["seperatorStyle"] != "none" ) {
2417
+ $selectors[" .uagb-rest_menu__wrap .uagb-rm__separator"] = array(
2418
+ 'border-top-color'=> $attr['seperatorColor'],
2419
+ 'border-top-style'=> $attr['seperatorStyle'],
2420
+ 'border-top-width'=> UAGB_Helper::get_css_value( $attr['seperatorThickness'], 'px' ),
2421
+ 'width'=> UAGB_Helper::get_css_value( $attr['seperatorWidth'], '%' ),
2422
+ );
2423
+ }
2424
+
2425
+ $selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)'] = array(
2426
+ 'margin-left'=> '0',
2427
+ 'clear'=> 'left',
2428
+ );
2429
+
2430
+ $t_selectors = array(
2431
+ ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2432
+ 'margin-left'=> 'unset',
2433
+ 'clear'=> 'unset',
2434
+ ),
2435
+ ' .uagb-rest_menu__wrap.uagb-rm__tablet-column-'.$attr['tcolumns'].':nth-child('.$attr['tcolumns'].'n+1)' => array(
2436
+ 'margin-left'=> '0',
2437
+ 'clear'=> 'left',
2438
+ ),
2439
+ " .uagb-rm__title" => array(
2440
+ "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
2441
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
2442
+ ),
2443
+ " .uagb-rm__desc" => array(
2444
+ "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
2445
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
2446
+ ),
2447
+ " .uagb-rm__price" => array(
2448
+ "font-size" => UAGB_Helper::get_css_value( $attr['priceFontSizeTablet'], $attr['priceFontSizeType'] ),
2449
+ 'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeightTablet'], $attr['priceLineHeightType'] ),
2450
+ )
2451
+ );
2452
+
2453
+ $m_selectors = array(
2454
+ ' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
2455
+ 'margin-left'=> 'unset',
2456
+ 'clear'=> 'unset',
2457
+ ),
2458
+ ' .uagb-rest_menu__wrap.uagb-rm__mobile-column-'.$attr['mcolumns'].':nth-child('.$attr['mcolumns'].'n+1)' => array(
2459
+ 'margin-left'=> '0',
2460
+ 'clear'=> 'left',
2461
+ ),
2462
+ " .uagb-rm__title" => array(
2463
+ "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
2464
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
2465
+ ),
2466
+ " .uagb-rm__desc" => array(
2467
+ "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
2468
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
2469
+ ),
2470
+ " .uagb-rm__price" => array(
2471
+ "font-size" => UAGB_Helper::get_css_value( $attr['priceFontSizeMobile'], $attr['priceFontSizeType'] ),
2472
+ 'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeightMobile'], $attr['priceLineHeightType'] ),
2473
+ )
2474
+ );
2475
+
2476
+ // @codingStandardsIgnoreEnd
2477
+
2478
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-rm-' . $id );
2479
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-rm-' . $id );
2480
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-rm-' . $id );
2481
+
2482
+ $generated_css = array(
2483
+ 'desktop' => $desktop,
2484
+ 'tablet' => $tablet,
2485
+ 'mobile' => $mobile,
2486
+ );
2487
+
2488
+ return $generated_css;
2489
+ }
2490
+
2491
+ /**
2492
+ * Get Post Grid Block CSS
2493
+ *
2494
+ * @since 1.4.0
2495
+ * @param array $attr The block attributes.
2496
+ * @param string $id The selector ID.
2497
+ * @return array The Widget List.
2498
+ */
2499
+ public static function get_post_grid_css( $attr, $id ) { // @codingStandardsIgnoreStart
2500
+
2501
+ $defaults = UAGB_Helper::$block_list['uagb/post-grid']['attributes'];
2502
+
2503
+ $attr = array_merge( $defaults, (array) $attr );
2504
+
2505
+ $selectors = self::get_post_selectors( $attr );
2506
+
2507
+ $m_selectors = self::get_post_mobile_selectors( $attr );
2508
+
2509
+ $t_selectors = self::get_post_tablet_selectors( $attr );
2510
+
2511
+ // @codingStandardsIgnoreEnd
2512
+
2513
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__grid-' . $id );
2514
+
2515
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__grid-' . $id );
2516
+
2517
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__grid-' . $id );
2518
+
2519
+ $generated_css = array(
2520
+ 'desktop' => $desktop,
2521
+ 'tablet' => $tablet,
2522
+ 'mobile' => $mobile,
2523
+ );
2524
+
2525
+ return $generated_css;
2526
+ }
2527
+
2528
+ /**
2529
+ * Get Post Carousel Block CSS
2530
+ *
2531
+ * @since 1.4.0
2532
+ * @param array $attr The block attributes.
2533
+ * @param string $id The selector ID.
2534
+ * @return array The Widget List.
2535
+ */
2536
+ public static function get_post_carousel_css( $attr, $id ) { // @codingStandardsIgnoreStart
2537
+
2538
+ $defaults = UAGB_Helper::$block_list['uagb/post-carousel']['attributes'];
2539
+
2540
+ $attr = array_merge( $defaults, (array) $attr );
2541
+
2542
+ $selectors = self::get_post_selectors( $attr );
2543
+
2544
+ $m_selectors = self::get_post_mobile_selectors( $attr );
2545
+
2546
+ $t_selectors = self::get_post_tablet_selectors( $attr );
2547
+
2548
+ $selectors[" .slick-arrow"] = array(
2549
+ "border-color" => $attr['arrowColor']
2550
+ );
2551
+
2552
+ $selectors[" .slick-arrow span"] = array(
2553
+ "color" => $attr['arrowColor'],
2554
+ "font-size" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
2555
+ "width" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
2556
+ "height" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' )
2557
+ );
2558
+
2559
+ $selectors[" .slick-arrow svg"] = array(
2560
+ "fill" => $attr['arrowColor'],
2561
+ "width" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
2562
+ "height" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' )
2563
+ );
2564
+
2565
+ $selectors[" .slick-arrow"] = array(
2566
+ "border-color" => $attr['arrowColor'],
2567
+ "border-width" => UAGB_Helper::get_css_value( $attr['arrowBorderSize'], 'px' ),
2568
+ "border-radius" => UAGB_Helper::get_css_value( $attr['arrowBorderRadius'], 'px' )
2569
+ );
2570
+
2571
+ $selectors[".uagb-post-grid ul.slick-dots li.slick-active button:before"] = array(
2572
+ "color" => $attr['arrowColor']
2573
+ );
2574
+
2575
+ $selectors[".uagb-slick-carousel ul.slick-dots li button:before"] = array(
2576
+ "color" => $attr['arrowColor']
2577
+ );
2578
+
2579
+ if ( isset( $attr['arrowDots'] ) && 'dots' == $attr['arrowDots'] ) {
2580
+
2581
+ $selectors[".uagb-slick-carousel"] = array(
2582
+ "padding" => "0 0 35px 0"
2583
+ );
2584
+ }
2585
+
2586
+ // @codingStandardsIgnoreEnd
2587
+
2588
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__carousel-' . $id );
2589
+
2590
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__carousel-' . $id );
2591
+
2592
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__carousel-' . $id );
2593
+
2594
+ $generated_css = array(
2595
+ 'desktop' => $desktop,
2596
+ 'tablet' => $tablet,
2597
+ 'mobile' => $mobile,
2598
+ );
2599
+
2600
+ return $generated_css;
2601
+ }
2602
+
2603
+ /**
2604
+ * Get Post Masonry Block CSS
2605
+ *
2606
+ * @since 1.4.0
2607
+ * @param array $attr The block attributes.
2608
+ * @param string $id The selector ID.
2609
+ * @return array The Widget List.
2610
+ */
2611
+ public static function get_post_masonry_css( $attr, $id ) { // @codingStandardsIgnoreStart
2612
+
2613
+ $defaults = UAGB_Helper::$block_list['uagb/post-masonry']['attributes'];
2614
+
2615
+ $attr = array_merge( $defaults, (array) $attr );
2616
+
2617
+ $selectors = self::get_post_selectors( $attr );
2618
+
2619
+ $m_selectors = self::get_post_mobile_selectors( $attr );
2620
+
2621
+ $t_selectors = self::get_post_tablet_selectors( $attr );
2622
+
2623
+ // @codingStandardsIgnoreEnd
2624
+
2625
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__masonry-' . $id );
2626
+
2627
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__masonry-' . $id );
2628
+
2629
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__masonry-' . $id );
2630
+
2631
+ $generated_css = array(
2632
+ 'desktop' => $desktop,
2633
+ 'tablet' => $tablet,
2634
+ 'mobile' => $mobile,
2635
+ );
2636
+
2637
+ return $generated_css;
2638
+ }
2639
+
2640
+ /**
2641
+ * Get Post Block Selectors CSS
2642
+ *
2643
+ * @param array $attr The block attributes.
2644
+ * @since 1.4.0
2645
+ */
2646
+ public static function get_post_selectors( $attr ) { // @codingStandardsIgnoreStart
2647
+ return array(
2648
+ " .uagb-post__items" => array(
2649
+ "margin-right" => UAGB_Helper::get_css_value( ( -$attr['rowGap']/2 ), 'px' ),
2650
+ "margin-left" => UAGB_Helper::get_css_value( ( -$attr['rowGap']/2 ), 'px' ),
2651
+ ),
2652
+ " .uagb-post__items article" => array(
2653
+ "padding-right" => UAGB_Helper::get_css_value( ( $attr['rowGap']/2 ), 'px' ),
2654
+ "padding-left" => UAGB_Helper::get_css_value( ( $attr['rowGap']/2 ), 'px' ),
2655
+ "margin-bottom" => UAGB_Helper::get_css_value( ( $attr['columnGap'] ), 'px' )
2656
+ ),
2657
+ " .uagb-post__inner-wrap" => array(
2658
+ "background" => $attr['bgColor']
2659
+ ),
2660
+ " .uagb-post__text" => array(
2661
+ "padding" => UAGB_Helper::get_css_value( ( $attr['contentPadding'] ), 'px' ),
2662
+ "text-align" => $attr['align']
2663
+ ),
2664
+ " .uagb-post__text .uagb-post__title" => array(
2665
+ "color"=> $attr['titleColor'],
2666
+ "font-size"=> UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
2667
+ 'font-family' => $attr['titleFontFamily'],
2668
+ 'font-weight' => $attr['titleFontWeight'],
2669
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
2670
+ "margin-bottom"=> UAGB_Helper::get_css_value( $attr['titleBottomSpace'], 'px' )
2671
+ ),
2672
+ " .uagb-post__text .uagb-post__title a" => array(
2673
+ "color" => $attr['titleColor'],
2674
+ "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
2675
+ 'font-family' => $attr['titleFontFamily'],
2676
+ 'font-weight' => $attr['titleFontWeight'],
2677
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
2678
+ ),
2679
+ " .uagb-post__text .uagb-post-grid-byline" => array(
2680
+ "color"=> $attr['metaColor'],
2681
+ "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
2682
+ 'font-family' => $attr['metaFontFamily'],
2683
+ 'font-weight' => $attr['metaFontWeight'],
2684
+ 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
2685
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['metaBottomSpace'], 'px' )
2686
+ ),
2687
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2688
+ "color" => $attr['metaColor'],
2689
+ "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
2690
+ 'font-family' => $attr['metaFontFamily'],
2691
+ 'font-weight' => $attr['metaFontWeight'],
2692
+ 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
2693
+ ),
2694
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2695
+ "color" => $attr['metaColor'],
2696
+ "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
2697
+ 'font-family' => $attr['metaFontFamily'],
2698
+ 'font-weight' => $attr['metaFontWeight'],
2699
+ 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
2700
+ ),
2701
+ " .uagb-post__text .uagb-post__excerpt" => array(
2702
+ "color" => $attr['excerptColor'],
2703
+ "font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSize'], $attr['excerptFontSizeType'] ),
2704
+ 'font-family' => $attr['excerptFontFamily'],
2705
+ 'font-weight' => $attr['excerptFontWeight'],
2706
+ 'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeight'], $attr['excerptLineHeightType'] ),
2707
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['excerptBottomSpace'], 'px' )
2708
+ ),
2709
+ " .uagb-post__text .uagb-post__cta" => array(
2710
+ "color" => $attr['ctaColor'],
2711
+ "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
2712
+ 'font-family' => $attr['ctaFontFamily'],
2713
+ 'font-weight' => $attr['ctaFontWeight'],
2714
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
2715
+ "background" => $attr['ctaBgColor'],
2716
+ "border-color" => $attr['borderColor'],
2717
+ "border-width" => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
2718
+ "border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
2719
+ "border-style" => $attr['borderStyle'],
2720
+ ),
2721
+ " .uagb-post__text .uagb-post__cta a" => array(
2722
+ "color"=> $attr['ctaColor'],
2723
+ "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
2724
+ 'font-family' => $attr['ctaFontFamily'],
2725
+ 'font-weight' => $attr['ctaFontWeight'],
2726
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
2727
+ "padding" => ( $attr['btnVPadding'] ) . "px " . ( $attr['btnHPadding'] ) . "px",
2728
+ ),
2729
+ " .uagb-post__text .uagb-post__cta:hover" => array(
2730
+ "color"=> $attr['ctaHColor'],
2731
+ "background"=> $attr['ctaBgHColor'],
2732
+ "border-color"=> $attr['borderHColor']
2733
+ ),
2734
+ " .uagb-post__text .uagb-post__cta:hover a" => array(
2735
+ "color"=> $attr['ctaHColor']
2736
+ ),
2737
+ " .uagb-post__image:before" => array(
2738
+ "background-color" => $attr['bgOverlayColor'],
2739
+ "opacity" => ( $attr['overlayOpacity'] / 100 )
2740
+ ),
2741
+ );
2742
+ // @codingStandardsIgnoreEnd
2743
+ }
2744
+
2745
+ /**
2746
+ * Get Post Block Selectors CSS for Mobile devices
2747
+ *
2748
+ * @param array $attr The block attributes.
2749
+ * @since 1.6.1
2750
+ */
2751
+ public static function get_post_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
2752
+
2753
+ return array(
2754
+ " .uagb-post__text .uagb-post__title" => array(
2755
+ "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
2756
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
2757
+ ),
2758
+ " .uagb-post__text .uagb-post__title a" => array(
2759
+ "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
2760
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
2761
+ ),
2762
+ " .uagb-post__text .uagb-post-grid-byline" => array(
2763
+ "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
2764
+ 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
2765
+ ),
2766
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2767
+ "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
2768
+ 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
2769
+ ),
2770
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2771
+ "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
2772
+ 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
2773
+ ),
2774
+ " .uagb-post__text .uagb-post__excerpt" => array(
2775
+ "font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSizeMobile'], $attr['excerptFontSizeType'] ),
2776
+ 'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeightMobile'], $attr['excerptLineHeightType'] ),
2777
+ ),
2778
+ " .uagb-post__text .uagb-post__cta" => array(
2779
+ "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
2780
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
2781
+ ),
2782
+ " .uagb-post__text .uagb-post__cta a" => array(
2783
+ "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
2784
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
2785
+ ),
2786
+ " .uagb-post__text" => array(
2787
+ "padding" => ( $attr['contentPaddingMobile'] ) . "px",
2788
+ ),
2789
+ );
2790
+ // @codingStandardsIgnoreEnd
2791
+ }
2792
+
2793
+ /**
2794
+ * Get Post Block Selectors CSS for Tablet devices
2795
+ *
2796
+ * @param array $attr The block attributes.
2797
+ * @since 1.8.2
2798
+ */
2799
+ public static function get_post_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
2800
+ return array(
2801
+ " .uagb-post__text .uagb-post__title" => array(
2802
+ "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
2803
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
2804
+ ),
2805
+ " .uagb-post__text .uagb-post__title a" => array(
2806
+ "font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
2807
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
2808
+ ),
2809
+ " .uagb-post__text .uagb-post-grid-byline" => array(
2810
+ "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
2811
+ 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
2812
+ ),
2813
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
2814
+ "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
2815
+ 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
2816
+ ),
2817
+ " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
2818
+ "font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
2819
+ 'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
2820
+ ),
2821
+ " .uagb-post__text .uagb-post__excerpt" => array(
2822
+ "font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSizeTablet'], $attr['excerptFontSizeType'] ),
2823
+ 'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeightTablet'], $attr['excerptLineHeightType'] ),
2824
+ ),
2825
+ " .uagb-post__text .uagb-post__cta" => array(
2826
+ "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
2827
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
2828
+ ),
2829
+ " .uagb-post__text .uagb-post__cta a" => array(
2830
+ "font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
2831
+ 'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
2832
+ ),
2833
+ );
2834
+ // @codingStandardsIgnoreEnd
2835
+ }
2836
+
2837
+ /**
2838
+ * Get Blockquote CSS
2839
+ *
2840
+ * @since 1.8.2
2841
+ * @param array $attr The block attributes.
2842
+ * @param string $id The selector ID.
2843
+ * @return array The Widget List.
2844
+ */
2845
+ public static function get_blockquote_css( $attr, $id ) {
2846
+ // @codingStandardsIgnoreStart
2847
+
2848
+ $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
2849
+
2850
+ $attr = array_merge( $defaults, (array) $attr );
2851
+
2852
+ $alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
2853
+
2854
+ $content_align ="center";
2855
+
2856
+ if( 'left' === $attr['align'] ){
2857
+ $content_align =" flex-start";
2858
+ }
2859
+ if( 'right' === $attr['align'] ){
2860
+ $content_align =" flex-end";
2861
+ }
2862
+
2863
+ $author_space = $attr['authorSpace'];
2864
+
2865
+ if( 'center' !== $attr['align'] || $attr['skinStyle'] == "border" ){
2866
+ $author_space = 0;
2867
+ }
2868
+
2869
+ //Set align to left for border style.
2870
+ $text_align = $attr['align'];
2871
+
2872
+ if( 'border' === $attr['skinStyle'] ){
2873
+ $text_align = 'left';
2874
+ }
2875
+
2876
+ $selectors = array(
2877
+ " .uagb-blockquote__content" => array(
2878
+ "font-size" => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
2879
+ 'font-family' => $attr['descFontFamily'],
2880
+ 'font-weight' => $attr['descFontWeight'],
2881
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
2882
+ "color" => $attr['descColor'],
2883
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
2884
+ "text-align" => $text_align,
2885
+ ),
2886
+ " cite.uagb-blockquote__author" => array(
2887
+ "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
2888
+ 'font-family' => $attr['authorFontFamily'],
2889
+ 'font-weight' => $attr['authorFontWeight'],
2890
+ 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
2891
+ "color" => $attr['authorColor'],
2892
+ "text-align" => $text_align,
2893
+ ),
2894
+ " .uagb-blockquote__skin-border blockquote.uagb-blockquote" => array(
2895
+ "border-color" => $attr['borderColor'],
2896
+ "border-left-style" => $attr['borderStyle'],
2897
+ "border-left-width" => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
2898
+ "padding-left" => UAGB_Helper::get_css_value( $attr['borderGap'], 'px' ),
2899
+ "padding-top" => UAGB_Helper::get_css_value( $attr['verticalPadding'], 'px' ),
2900
+ "padding-bottom" => UAGB_Helper::get_css_value( $attr['verticalPadding'], 'px' ),
2901
+ ),
2902
+
2903
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
2904
+ "background" => $attr['quoteBgColor'],
2905
+ "border-radius" => UAGB_Helper::get_css_value( $attr['quoteBorderRadius'],'%' ),
2906
+ "margin-top" => UAGB_Helper::get_css_value( $attr['quoteTopMargin'], 'px' ),
2907
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['quoteBottomMargin'], 'px' ),
2908
+ "margin-left" => UAGB_Helper::get_css_value( $attr['quoteLeftMargin'], 'px' ),
2909
+ "margin-right" => UAGB_Helper::get_css_value( $attr['quoteRightMargin'], 'px' ),
2910
+ "padding" => UAGB_Helper::get_css_value( $attr['quotePadding'], $attr['quotePaddingType'] ),
2911
+ ),
2912
+
2913
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
2914
+ "width" => UAGB_Helper::get_css_value( $attr['quoteSize'], $attr['quoteSizeType'] ),
2915
+ "height" => UAGB_Helper::get_css_value( $attr['quoteSize'], $attr['quoteSizeType'] ),
2916
+ ),
2917
+
2918
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg" => array(
2919
+ "fill" => $attr['quoteColor'],
2920
+ ),
2921
+
2922
+ " .uagb-blockquote__style-style_1 .uagb-blockquote" => array(
2923
+ "text-align" => $attr['align'],
2924
+ ),
2925
+
2926
+ " .uagb-blockquote__author-wrap" => array(
2927
+ "margin-bottom" => UAGB_Helper::get_css_value( $author_space, 'px' ),
2928
+ ),
2929
+ " .uagb-blockquote__author-image img" => array(
2930
+ "width" => UAGB_Helper::get_css_value( $attr['authorImageWidth'], 'px' ),
2931
+ "height" => UAGB_Helper::get_css_value( $attr['authorImageWidth'], 'px' ),
2932
+ "border-radius" => UAGB_Helper::get_css_value( $attr['authorImgBorderRadius'], '%' )
2933
+ ),
2934
+
2935
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover svg" => array(
2936
+ "fill" => $attr['quoteHoverColor'],
2937
+ ),
2938
+
2939
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover" => array(
2940
+ "background" => $attr['quoteBgHoverColor'],
2941
+ ),
2942
+
2943
+ " .uagb-blockquote__skin-border blockquote.uagb-blockquote:hover" => array(
2944
+ "border-left-color" => $attr['borderHoverColor'],
2945
+ ),
2946
+ );
2947
+
2948
+ if( $attr['enableTweet'] ){
2949
+ $selectors[" a.uagb-blockquote__tweet-button"] = array(
2950
+ "font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
2951
+ 'font-family' => $attr['tweetBtnFontFamily'],
2952
+ 'font-weight' => $attr['tweetBtnFontWeight'],
2953
+ 'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeight'], $attr['tweetBtnLineHeightType'] ),
2954
+ );
2955
+
2956
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"] = array(
2957
+ "color" => $attr['tweetLinkColor'],
2958
+ );
2959
+
2960
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"] = array(
2961
+ "fill" => $attr['tweetLinkColor'],
2962
+ );
2963
+
2964
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"] = array(
2965
+ "color" => $attr['tweetBtnColor'],
2966
+ "background-color" => $attr['tweetBtnBgColor'],
2967
+ "padding-left" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
2968
+ "padding-right" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
2969
+ "padding-top" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
2970
+ "padding-bottom" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
2971
+ );
2972
+
2973
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"] = array(
2974
+ "fill" => $attr['tweetBtnColor'],
2975
+ );
2976
+
2977
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"] = array(
2978
+ "color" => $attr['tweetBtnColor'],
2979
+ "background-color" => $attr['tweetBtnBgColor'],
2980
+ "padding-left" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
2981
+ "padding-right" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
2982
+ "padding-top" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
2983
+ "padding-bottom" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
2984
+ );
2985
+
2986
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"] = array(
2987
+ "fill" => $attr['tweetBtnColor'],
2988
+ );
2989
+
2990
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"] = array(
2991
+ "border-right-color" => $attr['tweetBtnBgColor'],
2992
+ );
2993
+
2994
+ $selectors[" a.uagb-blockquote__tweet-button svg"] = array(
2995
+ "width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
2996
+ "height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
2997
+ );
2998
+
2999
+ $selectors[" .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"] = array(
3000
+ "margin-right" => UAGB_Helper::get_css_value( $attr['tweetIconSpacing'], 'px' ),
3001
+ );
3002
+
3003
+ // Hover CSS.
3004
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"] = array(
3005
+ "color" => $attr['tweetBtnHoverColor'],
3006
+ );
3007
+
3008
+ $selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"] = array(
3009
+ "fill" => $attr['tweetBtnHoverColor'],
3010
+ );
3011
+
3012
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"] = array(
3013
+ "color" => $attr['tweetBtnHoverColor'],
3014
+ "background-color" => $attr['tweetBtnBgHoverColor'],
3015
+ );
3016
+
3017
+ $selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"] = array(
3018
+ "fill" => $attr['tweetBtnHoverColor'],
3019
+ );
3020
+
3021
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover"] = array(
3022
+ "color" => $attr['tweetBtnHoverColor'],
3023
+ "background-color" => $attr['tweetBtnBgHoverColor'],
3024
+ );
3025
+
3026
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"] = array(
3027
+ "fill" => $attr['tweetBtnHoverColor'],
3028
+ );
3029
+
3030
+ $selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"] = array(
3031
+ "border-right-color" => $attr['tweetBtnBgHoverColor'],
3032
+ );
3033
+ }
3034
+
3035
+ $t_selectors = array(
3036
+ " .uagb-blockquote__content" => array(
3037
+ "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
3038
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
3039
+ ),
3040
+ " cite.uagb-blockquote__author" =>array(
3041
+ "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
3042
+ 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
3043
+ ),
3044
+ " a.uagb-blockquote__tweet-button" => array(
3045
+ "font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
3046
+ 'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeightTablet'], $attr['tweetBtnLineHeightType'] ),
3047
+ ),
3048
+ " a.uagb-blockquote__tweet-button svg" => array(
3049
+ "width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
3050
+ "height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
3051
+ ),
3052
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
3053
+ "padding" => UAGB_Helper::get_css_value( $attr['quotePaddingTablet'], $attr['quotePaddingType'] ),
3054
+ ),
3055
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
3056
+ "width" => UAGB_Helper::get_css_value( $attr['quoteSizeTablet'], $attr['quoteSizeType'] ),
3057
+ "height" => UAGB_Helper::get_css_value( $attr['quoteSizeTablet'], $attr['quoteSizeType'] ),
3058
+ ),
3059
+ );
3060
+
3061
+ $m_selectors = array(
3062
+ " .uagb-blockquote__content" => array(
3063
+ "font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
3064
+ 'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
3065
+ ),
3066
+ " cite.uagb-blockquote__author" => array(
3067
+ "font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
3068
+ 'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
3069
+ ),
3070
+ " a.uagb-blockquote__tweet-button" => array(
3071
+ "font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
3072
+ 'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeightMobile'], $attr['tweetBtnLineHeightType'] ),
3073
+ ),
3074
+ " a.uagb-blockquote__tweet-button svg" => array(
3075
+ "width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
3076
+ "height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
3077
+ ),
3078
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
3079
+ "padding" => UAGB_Helper::get_css_value( $attr['quotePaddingMobile'], $attr['quotePaddingType'] ),
3080
+ ),
3081
+ " .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
3082
+ "width" => UAGB_Helper::get_css_value( $attr['quoteSizeMobile'], $attr['quoteSizeType'] ),
3083
+ "height" => UAGB_Helper::get_css_value( $attr['quoteSizeMobile'], $attr['quoteSizeType'] ),
3084
+ ),
3085
+ );
3086
+
3087
+ // @codingStandardsIgnoreEnd
3088
+
3089
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-blockquote-' . $id );
3090
+
3091
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-blockquote-' . $id );
3092
+
3093
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-blockquote-' . $id );
3094
+
3095
+ $generated_css = array(
3096
+ 'desktop' => $desktop,
3097
+ 'tablet' => $tablet,
3098
+ 'mobile' => $mobile,
3099
+ );
3100
+
3101
+ return $generated_css;
3102
+ }
3103
+
3104
+ /**
3105
+ * Get Timeline Block Desktop Selectors CSS
3106
+ *
3107
+ * @param array $attr The block attributes.
3108
+ * @since 1.8.2
3109
+ */
3110
+ public static function get_timeline_selectors( $attr ) { // @codingStandardsIgnoreStart
3111
+ $selectors = array(
3112
+ " .uagb-timeline__heading-text" => array(
3113
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
3114
+ ),
3115
+ " .uagb-timeline-desc-content" => array(
3116
+ "text-align" => $attr['align'],
3117
+ "color" => $attr['subHeadingColor'],
3118
+ "font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ),
3119
+ 'font-family' => $attr['subHeadFontFamily'],
3120
+ 'font-weight' => $attr['subHeadFontWeight'],
3121
+ 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
3122
+ ),
3123
+ ' .uagb-timeline__events-new' => array(
3124
+ 'text-align' => $attr['align']
3125
+ ),
3126
+ ' .uagb-timeline__date-inner' => array(
3127
+ 'text-align' => $attr['align']
3128
+ ),
3129
+ ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
3130
+ 'border-left-color' => $attr['backgroundColor']
3131
+ ),
3132
+ ' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
3133
+ 'border-left-color' => $attr['backgroundColor']
3134
+ ),
3135
+ ' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
3136
+ 'border-right-color' => $attr['backgroundColor']
3137
+ ),
3138
+ ' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
3139
+ 'border-right-color' => $attr['backgroundColor']
3140
+ ),
3141
+ ' .uagb-timeline__line__inner' => array(
3142
+ 'background-color' => $attr['separatorFillColor']
3143
+ ),
3144
+ ' .uagb-timeline__line' => array(
3145
+ 'background-color' => $attr['separatorColor'],
3146
+ 'width' => UAGB_Helper::get_css_value( $attr['separatorwidth'], 'px' )
3147
+ ),
3148
+ ' .uagb-timeline__right-block .uagb-timeline__line' => array(
3149
+ 'right' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
3150
+ ),
3151
+ ' .uagb-timeline__left-block .uagb-timeline__line' => array(
3152
+ 'left' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
3153
+ ),
3154
+ ' .uagb-timeline__center-block .uagb-timeline__line' => array(
3155
+ 'right' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
3156
+ ),
3157
+ ' .uagb-timeline__marker' => array(
3158
+ 'background-color' => $attr['separatorBg'],
3159
+ 'min-height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3160
+ 'min-width' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3161
+ 'line-height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3162
+ 'border' => $attr['borderwidth'].'px solid'.$attr['separatorBorder'],
3163
+ ),
3164
+ ' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow' => array(
3165
+ 'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3166
+ ),
3167
+ ' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow' => array(
3168
+ 'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3169
+ ),
3170
+ ' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow' => array(
3171
+ 'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3172
+ ),
3173
+ ' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow' => array(
3174
+ 'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
3175
+ ),
3176
+ ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3177
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3178
+ 'margin-right'=> UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3179
+ ),
3180
+ ' .uagb-timeline__field:not(:last-child)' => array(
3181
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['verticalSpace'], 'px' ),
3182
+ ),
3183
+ ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3184
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['dateBottomspace'], 'px' ),
3185
+ 'color' => $attr['dateColor'],
3186
+ 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ),
3187
+ 'font-family' => $attr['dateFontFamily'],
3188
+ 'font-weight' => $attr['dateFontWeight'],
3189
+ 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeight'], $attr['dateLineHeightType'] ),
3190
+ 'text-align' => $attr['align'],
3191
+ ),
3192
+ ' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
3193
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3194
+ ),
3195
+ ' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3196
+ 'margin-right' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3197
+ ),
3198
+ ' .uagb-timeline__date-new' => array(
3199
+ 'color' => $attr['dateColor'],
3200
+ 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ),
3201
+ 'font-family' => $attr['dateFontFamily'],
3202
+ 'font-weight' => $attr['dateFontWeight'],
3203
+ 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeight'], $attr['dateLineHeightType'] ),
3204
+ ),
3205
+ ' .uagb-timeline__events-inner-new' => array(
3206
+ 'background-color' => $attr['backgroundColor'],
3207
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
3208
+ 'padding'=> UAGB_Helper::get_css_value( $attr['bgPadding'], 'px' ),
3209
+ ),
3210
+ ' .uagb-timeline__main .uagb-timeline__icon-new' => array(
3211
+ 'color' => $attr['iconColor'],
3212
+ 'font-size' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
3213
+ 'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
3214
+ ),
3215
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg' => array(
3216
+ 'fill'=> $attr['iconFocus'],
3217
+ ),
3218
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
3219
+ 'color'=> $attr['iconFocus'],
3220
+ ),
3221
+ ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon' => array(
3222
+ 'background' => $attr['iconBgFocus'],
3223
+ 'border-color'=> $attr['borderFocus'],
3224
+ ),
3225
+ ' .uagb-timeline__main .uagb-timeline__icon-new svg' => array(
3226
+ 'fill'=> $attr['iconColor'],
3227
+ ),
3228
+ );
3229
+
3230
+ return $selectors;
3231
+ // @codingStandardsIgnoreEnd
3232
+ }
3233
+
3234
+ /**
3235
+ * Get Timeline Block Tablet Selectors CSS.
3236
+ *
3237
+ * @param array $attr The block attributes.
3238
+ * @since 1.8.2
3239
+ */
3240
+ public static function get_timeline_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
3241
+ $tablet_selector = array(
3242
+ " .uagb-timeline-desc-content" => array(
3243
+ "font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
3244
+ 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
3245
+ ),
3246
+ ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3247
+ 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
3248
+ 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
3249
+ ),
3250
+ ' .uagb-timeline__date-new' => array(
3251
+ 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
3252
+ 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
3253
+ ),
3254
+ ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3255
+ 'margin-left' => 0,
3256
+ 'margin-right' => 0,
3257
+ ),
3258
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading" => array(
3259
+ "text-align" => 'left',
3260
+ ),
3261
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content" => array(
3262
+ "text-align" => 'left',
3263
+ ),
3264
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new' => array(
3265
+ 'text-align' => 'left'
3266
+ ),
3267
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner' => array(
3268
+ 'text-align' => 'left'
3269
+ ),
3270
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3271
+ 'text-align'=> 'left',
3272
+ ),
3273
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3274
+ "border-right-color" => $attr['backgroundColor'],
3275
+ ),
3276
+ " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line" => array(
3277
+ 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3278
+ ),
3279
+ );
3280
+
3281
+ return $tablet_selector;
3282
+ // @codingStandardsIgnoreEnd
3283
+ }
3284
+
3285
+ /**
3286
+ * Get Timeline Block Mobile Selectors CSS.
3287
+ *
3288
+ * @param array $attr The block attributes.
3289
+ * @since 1.8.2
3290
+ */
3291
+ public static function get_timeline_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
3292
+ $m_selectors = array(
3293
+ " .uagb-timeline-desc-content" => array(
3294
+ "font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
3295
+ 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
3296
+ ),
3297
+ ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3298
+ 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
3299
+ 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
3300
+ ),
3301
+ ' .uagb-timeline__date-new' => array(
3302
+ 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
3303
+ 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
3304
+ ),
3305
+ ' .uagb-timeline__center-block .uagb-timeline__marker' => array(
3306
+ 'margin-left' => 0,
3307
+ 'margin-right' => 0,
3308
+ ),
3309
+ ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
3310
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3311
+ ),
3312
+ ' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
3313
+ 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
3314
+ ),
3315
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading" => array(
3316
+ "text-align" => 'left',
3317
+ ),
3318
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content" => array(
3319
+ "text-align" => 'left',
3320
+ ),
3321
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new' => array(
3322
+ 'text-align' => 'left'
3323
+ ),
3324
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner' => array(
3325
+ 'text-align' => 'left'
3326
+ ),
3327
+ ' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
3328
+ 'text-align'=> 'left',
3329
+ ),
3330
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
3331
+ "border-right-color" => $attr['backgroundColor'],
3332
+ ),
3333
+ " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line" => array(
3334
+ 'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
3335
+ ),
3336
+ );
3337
+ return $m_selectors;
3338
+ // @codingStandardsIgnoreEnd
3339
+ }
3340
+
3341
+ /**
3342
+ * Get Contact Form 7 CSS
3343
+ *
3344
+ * @param array $attr The block attributes.
3345
+ * @param string $id The selector ID.
3346
+ * @since 1.10.0
3347
+ */
3348
+ public static function get_cf7_styler_css( $attr, $id ) {
3349
+ $defaults = UAGB_Helper::$block_list['uagb/cf7-styler']['attributes'];
3350
+
3351
+ $attr = array_merge( $defaults, (array) $attr );
3352
+
3353
+ $selectors = array(
3354
+ ' .wpcf7 .wpcf7-form' => array(
3355
+ 'text-align' => $attr['align'],
3356
+ ),
3357
+ ' .wpcf7 form.wpcf7-form:not(input)' => array(
3358
+ 'color' => $attr['fieldLabelColor'],
3359
+ ),
3360
+ ' .wpcf7 input:not([type=submit])' => array(
3361
+ 'background-color' => $attr['fieldBgColor'],
3362
+ 'color' => $attr['fieldInputColor'],
3363
+ 'border-style' => $attr['fieldBorderStyle'],
3364
+ 'border-color' => $attr['fieldBorderColor'],
3365
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3366
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3367
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3368
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3369
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3370
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3371
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3372
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3373
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3374
+ 'font-family' => $attr['inputFontFamily'],
3375
+ 'font-weight' => $attr['inputFontWeight'],
3376
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3377
+ 'text-align' => $attr['align'],
3378
+ ),
3379
+ ' .wpcf7 select' => array(
3380
+ 'background-color' => $attr['fieldBgColor'],
3381
+ 'color' => $attr['fieldLabelColor'],
3382
+ 'border-style' => $attr['fieldBorderStyle'],
3383
+ 'border-color' => $attr['fieldBorderColor'],
3384
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3385
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3386
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3387
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3388
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3389
+ 'font-family' => $attr['inputFontFamily'],
3390
+ 'font-weight' => $attr['inputFontWeight'],
3391
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3392
+ 'text-align' => $attr['align'],
3393
+ ),
3394
+ ' .wpcf7 select.wpcf7-form-control.wpcf7-select:not([multiple="multiple"])' => array(
3395
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3396
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3397
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3398
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3399
+ ),
3400
+ ' .wpcf7 select.wpcf7-select[multiple="multiple"] option' => array(
3401
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3402
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3403
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3404
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3405
+ ),
3406
+ ' .wpcf7 textarea' => array(
3407
+ 'background-color' => $attr['fieldBgColor'],
3408
+ 'color' => $attr['fieldInputColor'],
3409
+ 'border-color' => $attr['fieldBorderColor'],
3410
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3411
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3412
+ 'border-style' => $attr['fieldBorderStyle'],
3413
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3414
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3415
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3416
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3417
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3418
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3419
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3420
+ 'font-family' => $attr['inputFontFamily'],
3421
+ 'font-weight' => $attr['inputFontWeight'],
3422
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3423
+ 'text-align' => $attr['align'],
3424
+ ),
3425
+ ' .wpcf7 textarea::placeholder' => array(
3426
+ 'color' => $attr['fieldInputColor'],
3427
+ 'text-align' => $attr['align'],
3428
+ ),
3429
+ ' .wpcf7 input::placeholder' => array(
3430
+ 'color' => $attr['fieldInputColor'],
3431
+ 'text-align' => $attr['align'],
3432
+ ),
3433
+ ' .wpcf7 form label' => array(
3434
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
3435
+ 'font-family' => $attr['labelFontFamily'],
3436
+ 'font-weight' => $attr['labelFontWeight'],
3437
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
3438
+ ),
3439
+ ' .wpcf7 form .wpcf7-list-item-label' => array(
3440
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
3441
+ 'font-family' => $attr['labelFontFamily'],
3442
+ 'font-weight' => $attr['labelFontWeight'],
3443
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
3444
+ ),
3445
+
3446
+ // Focus.
3447
+ ' .wpcf7 form input:not([type=submit]):focus' => array(
3448
+ 'border-color' => $attr['fieldBorderFocusColor'],
3449
+ ),
3450
+ ' .wpcf7 form select:focus' => array(
3451
+ 'border-color' => $attr['fieldBorderFocusColor'],
3452
+ ),
3453
+ ' .wpcf7 textarea:focus' => array(
3454
+ 'border-color' => $attr['fieldBorderFocusColor'],
3455
+ ),
3456
+
3457
+ // Submit button.
3458
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3459
+ 'color' => $attr['buttonTextColor'],
3460
+ 'background-color' => $attr['buttonBgColor'],
3461
+ 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSize'], $attr['buttonFontSizeType'] ),
3462
+ 'font-family' => $attr['buttonFontFamily'],
3463
+ 'font-weight' => $attr['buttonFontWeight'],
3464
+ 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeight'], $attr['buttonLineHeightType'] ),
3465
+ 'border-color' => $attr['buttonBorderColor'],
3466
+ 'border-style' => $attr['buttonBorderStyle'],
3467
+ 'border-width' => UAGB_Helper::get_css_value( $attr['buttonBorderWidth'], 'px' ),
3468
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['buttonBorderRadius'], $attr['buttonBorderRadiusType'] ),
3469
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
3470
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
3471
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
3472
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
3473
+ ),
3474
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover' => array(
3475
+ 'color' => $attr['buttonTextHoverColor'],
3476
+ 'background-color' => $attr['buttonBgHoverColor'],
3477
+ 'border-color' => $attr['buttonBorderHoverColor'],
3478
+ ),
3479
+
3480
+ // Check box Radio.
3481
+ ' .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3482
+ 'background-color' => $attr['fieldBgColor'],
3483
+ 'color' => $attr['fieldInputColor'],
3484
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3485
+ 'border-color' => $attr['fieldBorderFocusColor'],
3486
+ ),
3487
+ ' .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3488
+ 'background-color' => $attr['fieldBgColor'],
3489
+ 'color' => $attr['fieldInputColor'],
3490
+ 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3491
+ 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3492
+ 'border-style' => $attr['fieldBorderStyle'],
3493
+ 'border-color' => $attr['fieldBorderColor'],
3494
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3495
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3496
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3497
+ ),
3498
+ ' .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3499
+ 'background-color' => $attr['fieldBgColor'],
3500
+ 'color' => $attr['fieldInputColor'],
3501
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3502
+ 'border-color' => $attr['fieldBorderFocusColor'],
3503
+ ),
3504
+ ' .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3505
+ 'background-color' => $attr['fieldBgColor'],
3506
+ 'color' => $attr['fieldInputColor'],
3507
+ 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3508
+ 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3509
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3510
+ 'border-color' => $attr['fieldBorderColor'],
3511
+ 'border-style' => $attr['fieldBorderStyle'],
3512
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3513
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3514
+ ),
3515
+ ' .wpcf7 .wpcf7-radio input[type="radio"] + span:before' => array(
3516
+ 'background-color' => $attr['fieldBgColor'],
3517
+ 'color' => $attr['fieldInputColor'],
3518
+ 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3519
+ 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3520
+ 'border-style' => $attr['fieldBorderStyle'],
3521
+ 'border-color' => $attr['fieldBorderColor'],
3522
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3523
+ ),
3524
+ ' .wpcf7 .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3525
+ 'border-color' => $attr['fieldBorderFocusColor'],
3526
+ ),
3527
+
3528
+ // Underline border.
3529
+ ' .uagb-cf7-styler__field-style-underline .wpcf7 input:not([type=submit])' => array(
3530
+ 'border-style' => 'none',
3531
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3532
+ 'border-bottom-style' => 'solid',
3533
+ 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3534
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3535
+ ),
3536
+ ' .uagb-cf7-styler__field-style-underline textarea' => array(
3537
+ 'border-style' => 'none',
3538
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3539
+ 'border-bottom-style' => 'solid',
3540
+ 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3541
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3542
+ ),
3543
+ ' .uagb-cf7-styler__field-style-underline select' => array(
3544
+ 'border-style' => 'none',
3545
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3546
+ 'border-bottom-style' => 'solid',
3547
+ 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3548
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3549
+ ),
3550
+ ' .uagb-cf7-styler__field-style-underline textarea' => array(
3551
+ 'border-style' => 'none',
3552
+ 'border-bottom-color' => $attr['fieldBorderColor'],
3553
+ 'border-bottom-style' => 'solid',
3554
+ 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3555
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3556
+ ),
3557
+ ' .uagb-cf7-styler__field-style-underline .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3558
+ 'border-style' => 'solid',
3559
+ ),
3560
+ ' .uagb-cf7-styler__field-style-underline .wpcf7 input[type="radio"] + span:before' => array(
3561
+ 'border-style' => 'solid',
3562
+ ),
3563
+ ' .uagb-cf7-styler__field-style-underline .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3564
+ 'border-style' => 'solid',
3565
+ ),
3566
+ ' .uagb-cf7-styler__field-style-box .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3567
+ 'border-style' => $attr['fieldBorderStyle'],
3568
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3569
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3570
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3571
+ ),
3572
+ ' .uagb-cf7-styler__field-style-box .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3573
+ 'border-style' => $attr['fieldBorderStyle'],
3574
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3575
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3576
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3577
+ ),
3578
+ ' .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3579
+ 'background-color' => $attr['fieldInputColor'],
3580
+ ),
3581
+
3582
+ // Override check box.
3583
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
3584
+ 'background-color' => $attr['radioCheckBgColor'],
3585
+ 'color' => $attr['radioCheckSelectColor'],
3586
+ 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3587
+ 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3588
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3589
+ 'border-color' => $attr['radioCheckBorderColor'],
3590
+ 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
3591
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
3592
+ ),
3593
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
3594
+ 'border-color' => $attr['fieldBorderFocusColor'],
3595
+ ),
3596
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
3597
+ 'background-color' => $attr['radioCheckBgColor'],
3598
+ 'color' => $attr['radioCheckSelectColor'],
3599
+ 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3600
+ 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3601
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3602
+ 'border-color' => $attr['radioCheckBorderColor'],
3603
+ 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
3604
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
3605
+ ),
3606
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
3607
+ 'border-color' => $attr['fieldBorderFocusColor'],
3608
+ ),
3609
+
3610
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 input[type="radio"] + span:before' => array(
3611
+ 'background-color' => $attr['radioCheckBgColor'],
3612
+ 'color' => $attr['radioCheckSelectColor'],
3613
+ 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3614
+ 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
3615
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
3616
+ 'border-color' => $attr['radioCheckBorderColor'],
3617
+ 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
3618
+ ),
3619
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7-radio input[type="radio"]:checked + span:before' => array(
3620
+ 'background-color' => $attr['radioCheckSelectColor'],
3621
+ ),
3622
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3623
+ 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
3624
+ 'font-family' => $attr['radioCheckFontFamily'],
3625
+ 'font-weight' => $attr['radioCheckFontWeight'],
3626
+ 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
3627
+ 'color' => $attr['radioCheckLableColor'],
3628
+ ),
3629
+ ' span.wpcf7-not-valid-tip' => array(
3630
+ 'color' => $attr['validationMsgColor'],
3631
+ 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSize'], $attr['validationMsgFontSizeType'] ),
3632
+ 'font-family' => $attr['validationMsgFontFamily'],
3633
+ 'font-weight' => $attr['validationMsgFontWeight'],
3634
+ 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeight'], $attr['validationMsgLineHeightType'] ),
3635
+ ),
3636
+ ' .uagb-cf7-styler__highlight-border input.wpcf7-form-control.wpcf7-not-valid' => array(
3637
+ 'border-color' => $attr['highlightBorderColor'],
3638
+ ),
3639
+ ' .uagb-cf7-styler__highlight-border .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item-label:before' => array(
3640
+ 'border-color' => $attr['highlightBorderColor'] . '!important',
3641
+ ),
3642
+ ' .uagb-cf7-styler__highlight-style-bottom_right .wpcf7-not-valid-tip' => array(
3643
+ 'background-color' => $attr['validationMsgBgColor'],
3644
+ ),
3645
+ ' .wpcf7-response-output' => array(
3646
+ 'border-width' => UAGB_Helper::get_css_value( $attr['msgBorderSize'], 'px' ),
3647
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['msgBorderRadius'], $attr['msgBorderRadiusType'] ),
3648
+ 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSize'], $attr['msgFontSizeType'] ),
3649
+ 'font-family' => $attr['msgFontFamily'],
3650
+ 'font-weight' => $attr['msgFontWeight'],
3651
+ 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeight'], $attr['msgLineHeightType'] ),
3652
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['msgVrPadding'], 'px' ),
3653
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['msgVrPadding'], 'px' ),
3654
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['msgHrPadding'], 'px' ),
3655
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['msgHrPadding'], 'px' ),
3656
+ ),
3657
+ ' .wpcf7-response-output.wpcf7-validation-errors' => array(
3658
+ 'background-color' => $attr['errorMsgBgColor'],
3659
+ 'border-color' => $attr['errorMsgBorderColor'],
3660
+ 'color' => $attr['errorMsgColor'],
3661
+ ),
3662
+ ' .wpcf7-response-output.wpcf7-validation- success' => array(
3663
+ 'background-color' => $attr['successMsgBgColor'],
3664
+ 'border-color' => $attr['successMsgBorderColor'],
3665
+ 'color' => $attr['successMsgColor'],
3666
+ ),
3667
+
3668
+ );
3669
+
3670
+ $t_selectors = array(
3671
+ ' .wpcf7 form.wpcf7-form:not(input)' => array(
3672
+ 'color' => $attr['fieldLabelColor'],
3673
+ ),
3674
+ ' .wpcf7 input:not([type=submit])' => array(
3675
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
3676
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
3677
+ ),
3678
+ ' .wpcf7 select' => array(
3679
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
3680
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
3681
+ ),
3682
+ ' .wpcf7 textarea' => array(
3683
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
3684
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
3685
+ ),
3686
+ ' .wpcf7 form label' => array(
3687
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
3688
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
3689
+ ),
3690
+
3691
+ ' .wpcf7 form .wpcf7-list-item-label' => array(
3692
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
3693
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
3694
+ ),
3695
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3696
+ 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeTablet'], $attr['buttonFontSizeType'] ),
3697
+ 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightTablet'], $attr['buttonLineHeightType'] ),
3698
+ ),
3699
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3700
+ 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
3701
+ 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
3702
+ ),
3703
+ ' span.wpcf7-not-valid-tip' => array(
3704
+ 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
3705
+ 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
3706
+ ),
3707
+ ' .wpcf7-response-output' => array(
3708
+ 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
3709
+ 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
3710
+ ),
3711
+ );
3712
+
3713
+ $m_selectors = array(
3714
+ ' .wpcf7 input:not([type=submit])' => array(
3715
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
3716
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
3717
+ ),
3718
+ ' .wpcf7 select' => array(
3719
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
3720
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
3721
+ ),
3722
+ ' .wpcf7 textarea' => array(
3723
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
3724
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
3725
+ ),
3726
+ ' .wpcf7 form label' => array(
3727
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
3728
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
3729
+ ),
3730
+
3731
+ ' .wpcf7 form .wpcf7-list-item-label' => array(
3732
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
3733
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
3734
+ ),
3735
+ ' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
3736
+ 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeMobile'], $attr['buttonFontSizeType'] ),
3737
+ 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightMobile'], $attr['buttonLineHeightType'] ),
3738
+ ),
3739
+ ' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
3740
+ 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
3741
+ 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
3742
+ ),
3743
+ ' span.wpcf7-not-valid-tip' => array(
3744
+ 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
3745
+ 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
3746
+ ),
3747
+ ' .wpcf7-response-output' => array(
3748
+ 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
3749
+ 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
3750
+ ),
3751
+ );
3752
+
3753
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cf7-styler-' . $id );
3754
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-cf7-styler-' . $id );
3755
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-cf7-styler-' . $id );
3756
+
3757
+ $generated_css = array(
3758
+ 'desktop' => $desktop,
3759
+ 'tablet' => $tablet,
3760
+ 'mobile' => $mobile,
3761
+ );
3762
+
3763
+ return $generated_css;
3764
+ }
3765
+
3766
+
3767
+
3768
+ /**
3769
+ * Get Gravity Form Styler CSS
3770
+ *
3771
+ * @param array $attr The block attributes.
3772
+ * @param string $id The selector ID.
3773
+ * @since 1.12.0
3774
+ */
3775
+ public static function get_gf_styler_css( $attr, $id ) {
3776
+ $defaults = UAGB_Helper::$block_list['uagb/gf-styler']['attributes'];
3777
+
3778
+ $attr = array_merge( $defaults, (array) $attr );
3779
+
3780
+ $attr['msgVrPadding'] = ( '' === $attr['msgVrPadding'] ) ? '0' : $attr['msgVrPadding'];
3781
+ $attr['msgHrPadding'] = ( '' === $attr['msgHrPadding'] ) ? '0' : $attr['msgHrPadding'];
3782
+ $attr['textAreaHeight'] = ( 'auto' === $attr['msgHrPadding'] ) ? $attr['textAreaHeight'] : $attr['textAreaHeight'] . 'px';
3783
+
3784
+ $selectors = array(
3785
+ ' .gform_wrapper form' => array(
3786
+ 'text-align' => $attr['align'],
3787
+ ),
3788
+ ' .wp-block-uagb-gf-styler form:not(input)' => array(
3789
+ 'color' => $attr['fieldLabelColor'],
3790
+ ),
3791
+ ' .gform_heading' => array(
3792
+ 'text-align' => $attr['titleDescAlignment'],
3793
+ ),
3794
+ ' input:not([type=submit])' => array(
3795
+ 'background-color' => $attr['fieldBgColor'],
3796
+ 'color' => $attr['fieldInputColor'],
3797
+ 'border-style' => $attr['fieldBorderStyle'],
3798
+ 'border-color' => $attr['fieldBorderColor'],
3799
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3800
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3801
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3802
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3803
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3804
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3805
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3806
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3807
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3808
+ 'font-family' => $attr['inputFontFamily'],
3809
+ 'font-weight' => $attr['inputFontWeight'],
3810
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3811
+ 'text-align' => $attr['align'],
3812
+ ),
3813
+ ' select' => array(
3814
+ 'background-color' => $attr['fieldBgColor'],
3815
+ 'border-style' => $attr['fieldBorderStyle'],
3816
+ 'border-color' => $attr['fieldBorderColor'],
3817
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3818
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3819
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3820
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3821
+ 'color' => $attr['fieldInputColor'],
3822
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3823
+ 'font-family' => $attr['inputFontFamily'],
3824
+ 'font-weight' => $attr['inputFontWeight'],
3825
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3826
+ 'text-align' => $attr['align'],
3827
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3828
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3829
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3830
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3831
+ ),
3832
+ ' .chosen-container-single span' => array(
3833
+ 'background-color' => $attr['fieldBgColor'],
3834
+ 'border-style' => $attr['fieldBorderStyle'],
3835
+ 'border-color' => $attr['fieldBorderColor'],
3836
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3837
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3838
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3839
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3840
+ 'color' => $attr['fieldInputColor'],
3841
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3842
+ 'font-family' => $attr['inputFontFamily'],
3843
+ 'font-weight' => $attr['inputFontWeight'],
3844
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3845
+ 'text-align' => $attr['align'],
3846
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3847
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3848
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3849
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3850
+ ),
3851
+ ' .chosen-container-single.chosen-container-active .chosen-single span' => array(
3852
+ 'margin-bottom' => 0,
3853
+ ),
3854
+ ' select.wpgf-form-control.wpgf-select:not([multiple="multiple"])' => array(
3855
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3856
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3857
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3858
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3859
+ ),
3860
+ ' select.wpgf-select[multiple="multiple"] option' => array(
3861
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3862
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3863
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3864
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3865
+ ),
3866
+ ' textarea' => array(
3867
+ 'background-color' => $attr['fieldBgColor'],
3868
+ 'color' => $attr['fieldInputColor'],
3869
+ 'border-color' => $attr['fieldBorderColor'],
3870
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3871
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3872
+ 'border-style' => $attr['fieldBorderStyle'],
3873
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3874
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
3875
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3876
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3877
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3878
+ 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
3879
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
3880
+ 'font-family' => $attr['inputFontFamily'],
3881
+ 'font-weight' => $attr['inputFontWeight'],
3882
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
3883
+ 'text-align' => $attr['align'],
3884
+ 'height' => $attr['textAreaHeight'],
3885
+ ),
3886
+ ' textarea::placeholder' => array(
3887
+ 'color' => $attr['fieldInputColor'],
3888
+ 'text-align' => $attr['align'],
3889
+ ),
3890
+ ' input::placeholder' => array(
3891
+ 'color' => $attr['fieldInputColor'],
3892
+ 'text-align' => $attr['align'],
3893
+ ),
3894
+ ' form label' => array(
3895
+ 'color' => $attr['fieldLabelColor'],
3896
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
3897
+ 'font-family' => $attr['labelFontFamily'],
3898
+ 'font-weight' => $attr['labelFontWeight'],
3899
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
3900
+ ),
3901
+ ' form .gfield_radio label' => array(
3902
+ 'color' => $attr['fieldLabelColor'],
3903
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
3904
+ 'font-family' => $attr['labelFontFamily'],
3905
+ 'font-weight' => $attr['labelFontWeight'],
3906
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
3907
+ ),
3908
+ ' form .gfield_checkbox label' => array(
3909
+ 'color' => $attr['fieldLabelColor'],
3910
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
3911
+ 'font-family' => $attr['labelFontFamily'],
3912
+ 'font-weight' => $attr['labelFontWeight'],
3913
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
3914
+ ),
3915
+ ' .wpgf .gfield_checkbox input[type="checkbox"] + label, .wpgf .gfield_checkbox input[type="checkbox"] + label' => array(
3916
+ 'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
3917
+ ),
3918
+
3919
+ // Focus.
3920
+ ' form input:not([type=submit]):focus' => array(
3921
+ 'border-color' => $attr['fieldBorderFocusColor'],
3922
+ ),
3923
+ ' form select:focus' => array(
3924
+ 'border-color' => $attr['fieldBorderFocusColor'],
3925
+ ),
3926
+ ' textarea:focus' => array(
3927
+ 'border-color' => $attr['fieldBorderFocusColor'],
3928
+ ),
3929
+
3930
+ // Submit button.
3931
+ ' input.gform_button' => array(
3932
+ 'color' => $attr['buttonTextColor'],
3933
+ 'background-color' => $attr['buttonBgColor'],
3934
+ 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSize'], $attr['buttonFontSizeType'] ),
3935
+ 'font-family' => $attr['buttonFontFamily'],
3936
+ 'font-weight' => $attr['buttonFontWeight'],
3937
+ 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeight'], $attr['buttonLineHeightType'] ),
3938
+ 'border-color' => $attr['buttonBorderColor'],
3939
+ 'border-style' => $attr['buttonBorderStyle'],
3940
+ 'border-width' => UAGB_Helper::get_css_value( $attr['buttonBorderWidth'], 'px' ),
3941
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['buttonBorderRadius'], $attr['buttonBorderRadiusType'] ),
3942
+ 'padding-left' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
3943
+ 'padding-right' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
3944
+ 'padding-top' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
3945
+ 'padding-bottom' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
3946
+ ),
3947
+ ' input.gform_button:hover' => array(
3948
+ 'color' => $attr['buttonTextHoverColor'],
3949
+ 'background-color' => $attr['buttonBgHoverColor'],
3950
+ 'border-color' => $attr['buttonBorderHoverColor'],
3951
+ ),
3952
+
3953
+ // Check box Radio.
3954
+ ' .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
3955
+ 'background-color' => $attr['fieldBgColor'],
3956
+ 'color' => $attr['fieldInputColor'],
3957
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3958
+ 'border-color' => $attr['fieldBorderFocusColor'],
3959
+ ),
3960
+ ' .gfield_checkbox input[type="checkbox"] + label:before' => array(
3961
+ 'background-color' => $attr['fieldBgColor'],
3962
+ 'color' => $attr['fieldInputColor'],
3963
+ 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3964
+ 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3965
+ 'border-style' => $attr['fieldBorderStyle'],
3966
+ 'border-color' => $attr['fieldBorderColor'],
3967
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3968
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3969
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3970
+ ),
3971
+ ' input[type="checkbox"]:checked + label:before' => array(
3972
+ 'background-color' => $attr['fieldBgColor'],
3973
+ 'color' => $attr['fieldInputColor'],
3974
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3975
+ 'border-color' => $attr['fieldBorderFocusColor'],
3976
+ ),
3977
+ ' input[type="checkbox"] + label:before' => array(
3978
+ 'background-color' => $attr['fieldBgColor'],
3979
+ 'color' => $attr['fieldInputColor'],
3980
+ 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3981
+ 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3982
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
3983
+ 'border-color' => $attr['fieldBorderColor'],
3984
+ 'border-style' => $attr['fieldBorderStyle'],
3985
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3986
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
3987
+ ),
3988
+ ' .gfield_radio input[type="radio"] + label:before' => array(
3989
+ 'background-color' => $attr['fieldBgColor'],
3990
+ 'color' => $attr['fieldInputColor'],
3991
+ 'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3992
+ 'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
3993
+ 'border-style' => $attr['fieldBorderStyle'],
3994
+ 'border-color' => $attr['fieldBorderColor'],
3995
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
3996
+ ),
3997
+ ' .gfield_radio input[type="radio"]:checked + label:before' => array(
3998
+ 'border-color' => $attr['fieldBorderFocusColor'],
3999
+ ),
4000
+
4001
+ // Underline border.
4002
+ ' .uagb-gf-styler__field-style-underline input:not([type=submit])' => array(
4003
+ 'border-style' => 'none',
4004
+ 'border-bottom-color' => $attr['fieldBorderColor'],
4005
+ 'border-bottom-style' => 'solid',
4006
+ 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4007
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4008
+ ),
4009
+ ' .uagb-gf-styler__field-style-underline textarea' => array(
4010
+ 'border-style' => 'none',
4011
+ 'border-bottom-color' => $attr['fieldBorderColor'],
4012
+ 'border-bottom-style' => 'solid',
4013
+ 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4014
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4015
+ ),
4016
+ ' .uagb-gf-styler__field-style-underline select' => array(
4017
+ 'border-style' => 'none',
4018
+ 'border-bottom-color' => $attr['fieldBorderColor'],
4019
+ 'border-bottom-style' => 'solid',
4020
+ 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4021
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4022
+ ),
4023
+ ' .uagb-gf-styler__field-style-underline textarea' => array(
4024
+ 'border-style' => 'none',
4025
+ 'border-bottom-color' => $attr['fieldBorderColor'],
4026
+ 'border-bottom-style' => 'solid',
4027
+ 'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4028
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4029
+ ),
4030
+ ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
4031
+ 'border-style' => 'solid',
4032
+ ),
4033
+ ' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
4034
+ 'border-style' => 'solid',
4035
+ ),
4036
+ ' .uagb-gf-styler__field-style-box .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
4037
+ 'border-style' => 'solid',
4038
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4039
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4040
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
4041
+ ),
4042
+ ' .uagb-gf-styler__field-style-box input[type="checkbox"]:checked + label:before' => array(
4043
+ 'border-style' => 'solid',
4044
+ 'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
4045
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
4046
+ 'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
4047
+ ),
4048
+ ' .gfield_radio input[type="radio"]:checked + label:before' => array(
4049
+ 'background-color' => $attr['fieldInputColor'],
4050
+ ),
4051
+
4052
+ // Override check box.
4053
+ ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
4054
+ 'background-color' => $attr['radioCheckBgColor'],
4055
+ 'color' => $attr['radioCheckSelectColor'],
4056
+ 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4057
+ 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4058
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
4059
+ 'border-color' => $attr['radioCheckBorderColor'],
4060
+ 'border-style' => 'solid',
4061
+ 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
4062
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
4063
+ ),
4064
+ ' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
4065
+ 'border-color' => $attr['fieldBorderFocusColor'],
4066
+ ),
4067
+ ' .uagb-gf-styler__check-style-enabled input[type="checkbox"] + label:before' => array(
4068
+ 'background-color' => $attr['radioCheckBgColor'],
4069
+ 'color' => $attr['radioCheckSelectColor'],
4070
+ 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4071
+ 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4072
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
4073
+ 'border-color' => $attr['radioCheckBorderColor'],
4074
+ 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
4075
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
4076
+ ),
4077
+ ' .uagb-gf-styler__check-style-enabled input[type="checkbox"]:checked + label:before' => array(
4078
+ 'border-color' => $attr['fieldBorderFocusColor'],
4079
+ ),
4080
+
4081
+ ' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
4082
+ 'background-color' => $attr['radioCheckBgColor'],
4083
+ 'color' => $attr['radioCheckSelectColor'],
4084
+ 'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4085
+ 'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
4086
+ 'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
4087
+ 'border-color' => $attr['radioCheckBorderColor'],
4088
+ 'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
4089
+ ),
4090
+ ' .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]:checked + label:before' => array(
4091
+ 'background-color' => $attr['radioCheckSelectColor'],
4092
+ ),
4093
+ ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
4094
+ 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
4095
+ 'font-family' => $attr['radioCheckFontFamily'],
4096
+ 'font-weight' => $attr['radioCheckFontWeight'],
4097
+ 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
4098
+ 'color' => $attr['radioCheckLableColor'],
4099
+ ),
4100
+ ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
4101
+ 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
4102
+ 'font-family' => $attr['radioCheckFontFamily'],
4103
+ 'font-weight' => $attr['radioCheckFontWeight'],
4104
+ 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
4105
+ 'color' => $attr['radioCheckLableColor'],
4106
+ ),
4107
+ // Validation Errors.
4108
+ ' .gform_wrapper .gfield_description.validation_message' => array(
4109
+ 'color' => $attr['validationMsgColor'],
4110
+ ),
4111
+ ' .gform_wrapper .validation_message' => array(
4112
+ 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSize'], $attr['validationMsgFontSizeType'] ),
4113
+ 'font-family' => $attr['validationMsgFontFamily'],
4114
+ 'font-weight' => $attr['validationMsgFontWeight'],
4115
+ 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeight'], $attr['validationMsgLineHeightType'] ),
4116
+ ),
4117
+ ' .uagb-gf-styler__error-yes .gform_wrapper .gfield.gfield_error' => array(
4118
+ 'background-color' => $attr['validationMsgBgColor'],
4119
+ ),
4120
+
4121
+ ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input:not([type="submit"]):not([type="button"]):not([type="image"])' => array(
4122
+ 'border-color' => $attr['highlightBorderColor'],
4123
+ ),
4124
+
4125
+ ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container select' => array(
4126
+ 'border-color' => $attr['highlightBorderColor'],
4127
+ ),
4128
+
4129
+ ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container .chosen-single' => array(
4130
+ 'border-color' => $attr['highlightBorderColor'],
4131
+ ),
4132
+
4133
+ ' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container textarea' => array(
4134
+ 'border-color' => $attr['highlightBorderColor'],
4135
+ ),
4136
+
4137
+ ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error' => array(
4138
+ 'border-color' => $attr['highlightBorderColor'],
4139
+ ),
4140
+
4141
+ ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning' => array(
4142
+ 'border-color' => $attr['highlightBorderColor'],
4143
+ ),
4144
+
4145
+ ' .uagb-gf-styler__error-yes li.gfield_error .gfield_checkbox input[type="checkbox"] + label:before' => array(
4146
+ 'border-color' => $attr['highlightBorderColor'],
4147
+ ),
4148
+
4149
+ ' .uagb-gf-styler__error-yes li.gfield_error .ginput_container_consent input[type="checkbox"] + label:before' => array(
4150
+ 'border-color' => $attr['highlightBorderColor'],
4151
+ ),
4152
+
4153
+ ' .uagb-gf-styler__error-yes li.gfield_error .gfield_radio input[type="radio"] + label:before' => array(
4154
+ 'border-color' => $attr['highlightBorderColor'],
4155
+ ),
4156
+
4157
+ ' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
4158
+ 'border' => $attr['fieldBorderWidth'] . 'px ' . $attr['fieldBorderStyle'] . ' ' . $attr['fieldBorderColor'] . '!important',
4159
+ ),
4160
+
4161
+ ' .uael-gf-style-underline.uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
4162
+ 'border-width' => $attr['fieldBorderWidth'] . 'px' . '!important',
4163
+ 'border-style' => 'solid' . '!important',
4164
+ 'border-color' => $attr['fieldBorderColor'] . '!important',
4165
+ ),
4166
+
4167
+ ' .gform_wrapper div.validation_error' => array(
4168
+ 'color' => $attr['errorMsgColor'],
4169
+ 'background-color' => $attr['errorMsgBgColor'],
4170
+ 'border-color' => $attr['errorMsgBorderColor'],
4171
+ 'border-style' => 'solid',
4172
+ 'border-width' => UAGB_Helper::get_css_value( $attr['msgBorderSize'], 'px' ),
4173
+ 'border-radius' => UAGB_Helper::get_css_value( $attr['msgBorderRadius'], $attr['msgBorderRadiusType'] ),
4174
+ 'padding' => $attr['msgVrPadding'] . 'px ' . $attr['msgHrPadding'] . 'px',
4175
+ 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSize'], $attr['msgFontSizeType'] ),
4176
+ 'font-family' => $attr['msgFontFamily'],
4177
+ 'font-weight' => $attr['msgFontWeight'],
4178
+ 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeight'], $attr['msgLineHeightType'] ),
4179
+ ),
4180
+
4181
+ ' .gform_confirmation_message' => array(
4182
+ 'color' => $attr['successMsgColor'],
4183
+ 'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSize'], $attr['successMsgFontSizeType'] ),
4184
+ 'font-family' => $attr['successMsgFontFamily'],
4185
+ 'font-weight' => $attr['successMsgFontWeight'],
4186
+ 'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeight'], $attr['successMsgLineHeightType'] ),
4187
+ ),
4188
+ );
4189
+
4190
+ $t_selectors = array(
4191
+ ' form.wpgf-form:not(input)' => array(
4192
+ 'color' => $attr['fieldLabelColor'],
4193
+ ),
4194
+ ' input:not([type=submit])' => array(
4195
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
4196
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
4197
+ ),
4198
+ ' textarea' => array(
4199
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
4200
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
4201
+ ),
4202
+ ' form label' => array(
4203
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
4204
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
4205
+ ),
4206
+
4207
+ ' form .gfield_radio label' => array(
4208
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
4209
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
4210
+ ),
4211
+ ' form .gfield_checkbox label' => array(
4212
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
4213
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
4214
+ ),
4215
+ ' input.gform_button' => array(
4216
+ 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeTablet'], $attr['buttonFontSizeType'] ),
4217
+ 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightTablet'], $attr['buttonLineHeightType'] ),
4218
+ ),
4219
+ ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
4220
+ 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
4221
+ 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
4222
+ ),
4223
+ ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
4224
+ 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
4225
+ 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
4226
+ ),
4227
+ ' span.wpgf-not-valid-tip' => array(
4228
+ 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
4229
+ 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
4230
+ ),
4231
+ ' .wpgf-response-output' => array(
4232
+ 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
4233
+ 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
4234
+ ),
4235
+ ' .gform_wrapper .validation_message' => array(
4236
+ 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
4237
+ 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
4238
+ ),
4239
+ ' .gform_wrapper div.validation_error' => array(
4240
+ 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
4241
+ 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
4242
+ ),
4243
+ ' .gform_confirmation_message' => array(
4244
+ 'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSizeTablet'], $attr['successMsgFontSizeType'] ),
4245
+ 'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeightTablet'], $attr['successMsgLineHeightType'] ),
4246
+ 'color' => $attr['successMsgColor'],
4247
+ ),
4248
+ );
4249
+
4250
+ $m_selectors = array(
4251
+ ' input:not([type=submit])' => array(
4252
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
4253
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
4254
+ ),
4255
+ ' textarea' => array(
4256
+ 'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
4257
+ 'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
4258
+ ),
4259
+ ' form label' => array(
4260
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
4261
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
4262
+ ),
4263
+
4264
+ ' form .gfield_radio label' => array(
4265
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
4266
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
4267
+ ),
4268
+ ' form .gfield_checkbox label' => array(
4269
+ 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
4270
+ 'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
4271
+ ),
4272
+ ' input.gform_button' => array(
4273
+ 'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeMobile'], $attr['buttonFontSizeType'] ),
4274
+ 'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightMobile'], $attr['buttonLineHeightType'] ),
4275
+ ),
4276
+ ' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
4277
+ 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
4278
+ 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
4279
+ ),
4280
+ ' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
4281
+ 'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
4282
+ 'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
4283
+ ),
4284
+ ' span.wpgf-not-valid-tip' => array(
4285
+ 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
4286
+ 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
4287
+ ),
4288
+ ' .wpgf-response-output' => array(
4289
+ 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
4290
+ 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
4291
+ ),
4292
+ ' .gform_wrapper .validation_message' => array(
4293
+ 'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
4294
+ 'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
4295
+ ),
4296
+ ' .gform_wrapper div.validation_error' => array(
4297
+ 'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
4298
+ 'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
4299
+ ),
4300
+ ' .gform_confirmation_message' => array(
4301
+ 'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSizeMobile'], $attr['successMsgFontSizeType'] ),
4302
+ 'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeightMobile'], $attr['successMsgLineHeightType'] ),
4303
+ 'color' => $attr['successMsgColor'],
4304
+ ),
4305
+ );
4306
+
4307
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-gf-styler-' . $id );
4308
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-gf-styler-' . $id );
4309
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-gf-styler-' . $id );
4310
+ $generated_css = array(
4311
+ 'desktop' => $desktop,
4312
+ 'tablet' => $tablet,
4313
+ 'mobile' => $mobile,
4314
+ );
4315
+
4316
+ return $generated_css;
4317
+ }
4318
+
4319
+ /*
4320
+ * Get Marketing Button Block CSS
4321
+ *
4322
+ * @since 1.11.0
4323
+ * @param array $attr The block attributes.
4324
+ * @param string $id The selector ID.
4325
+ * @return array The Widget List.
4326
+ */
4327
+ public static function get_marketing_btn_css( $attr, $id ) { // @codingStandardsIgnoreStart
4328
+
4329
+ $defaults = UAGB_Helper::$block_list['uagb/marketing-button']['attributes'];
4330
+
4331
+ $attr = array_merge( $defaults, (array) $attr );
4332
+
4333
+ $m_selectors = array();
4334
+ $t_selectors = array();
4335
+
4336
+ $icon_color = ( "" == $attr["iconColor"] ) ? $attr["titleColor"] : $attr["iconColor"];
4337
+ $icon_hover_color = ( "" == $attr["iconHoverColor"] ) ? $attr["titleHoverColor"] : $attr["iconHoverColor"];
4338
+
4339
+ $selectors = array(
4340
+ " .uagb-marketing-btn__title-wrap" => array(
4341
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr["titleSpace"], 'px' )
4342
+ ),
4343
+ " .uagb-marketing-btn__title" => array(
4344
+ "font-size" => UAGB_Helper::get_css_value( $attr["titleFontSize"], $attr["titleFontSizeType"] ),
4345
+ "line-height" => UAGB_Helper::get_css_value( $attr["titleLineHeight"], $attr["titleLineHeightType"] ),
4346
+ "font-family" => $attr["titleFontFamily"],
4347
+ "font-weight" => $attr["titleFontWeight"],
4348
+ "color" => $attr["titleColor"],
4349
+ ),
4350
+ " .uagb-marketing-btn__icon-wrap" => array(
4351
+ "width" => UAGB_Helper::get_css_value( $attr["iconFontSize"], $attr["iconFontSizeType"] ),
4352
+ "height" => UAGB_Helper::get_css_value( $attr["iconFontSize"], $attr["iconFontSizeType"] ),
4353
+ ),
4354
+ " .uagb-marketing-btn__icon-wrap svg" => array(
4355
+ "fill" => $icon_color
4356
+ ),
4357
+ " .uagb-marketing-btn__prefix" => array(
4358
+ "font-size" => UAGB_Helper::get_css_value( $attr["prefixFontSize"], $attr["prefixFontSizeType"] ),
4359
+ "line-height" => UAGB_Helper::get_css_value( $attr["prefixLineHeight"], $attr["prefixLineHeightType"] ),
4360
+ "font-family" => $attr["prefixFontFamily"],
4361
+ "font-weight" => $attr["prefixFontWeight"],
4362
+ "color" => $attr["prefixColor"],
4363
+ ),
4364
+ " .uagb-marketing-btn__link:hover .uagb-marketing-btn__title" => array(
4365
+ "color" => $attr["titleHoverColor"],
4366
+ ),
4367
+ " .uagb-marketing-btn__link:hover .uagb-marketing-btn__prefix" => array(
4368
+ "color" => $attr["prefixHoverColor"],
4369
+ ),
4370
+ " .uagb-marketing-btn__link:hover .uagb-marketing-btn__icon-wrap svg" => array(
4371
+ "fill" => $icon_hover_color
4372
+ ),
4373
+ " .uagb-marketing-btn__link" => array(
4374
+ "padding-left" => UAGB_Helper::get_css_value( $attr["hPadding"], $attr['paddingType'] ),
4375
+ "padding-right" => UAGB_Helper::get_css_value( $attr["hPadding"], $attr['paddingType'] ),
4376
+ "padding-top" => UAGB_Helper::get_css_value( $attr["vPadding"], $attr['paddingType'] ),
4377
+ "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPadding"], $attr['paddingType'] ),
4378
+ "border-style" => $attr["borderStyle"],
4379
+ "border-width" => UAGB_Helper::get_css_value( $attr["borderWidth"], 'px' ),
4380
+ "border-color" => $attr["borderColor"],
4381
+ "border-radius" => UAGB_Helper::get_css_value( $attr["borderRadius"], 'px' ),
4382
+ ),
4383
+ " .uagb-marketing-btn__link:hover" => array(
4384
+ "border-color" => $attr["borderHoverColor"]
4385
+ ),
4386
+ );
4387
+
4388
+ if ( "transparent" == $attr["backgroundType"] ) {
4389
+
4390
+ $selectors[" .uagb-marketing-btn__link"]["background"] = "transparent";
4391
+
4392
+ } else if ( "color" == $attr["backgroundType"] ) {
4393
+
4394
+ $selectors[" .uagb-marketing-btn__link"]["background"] = UAGB_Helper::hex2rgba( $attr["backgroundColor"], $attr['backgroundOpacity'] );
4395
+
4396
+ // Hover Background
4397
+ $selectors[" .uagb-marketing-btn__link:hover"] = array(
4398
+ "background" => UAGB_Helper::hex2rgba( $attr["backgroundHoverColor"], $attr['backgroundHoverOpacity'] ),
4399
+ );
4400
+
4401
+ } else if ( "gradient" == $attr["backgroundType"] ) {
4402
+
4403
+ $selectors[' .uagb-marketing-btn__link']['background-color'] = 'transparent';
4404
+
4405
+ if ( 'linear' === $attr['gradientType'] ) {
4406
+
4407
+ $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'] . '%)';
4408
+ } else {
4409
+
4410
+ $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'] . '%)';
4411
+ }
4412
+ }
4413
+
4414
+ $margin_type = ( "after" == $attr["iconPosition"] ) ? "margin-left" : "margin-right";
4415
+
4416
+ $selectors[" .uagb-marketing-btn__icon-wrap"][$margin_type] = UAGB_Helper::get_css_value( $attr["iconSpace"], "px" );
4417
+
4418
+ $m_selectors = array(
4419
+ ' .uagb-marketing-btn__title' => array(
4420
+ 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
4421
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
4422
+ ),
4423
+ ' .uagb-marketing-btn__prefix' => array(
4424
+ 'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
4425
+ 'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightMobile'], $attr['prefixLineHeightType'] ),
4426
+ ),
4427
+ ' .uagb-marketing-btn__icon-wrap' => array(
4428
+ "width" => UAGB_Helper::get_css_value( $attr["iconFontSizeMobile"], $attr["iconFontSizeType"] ),
4429
+ "height" => UAGB_Helper::get_css_value( $attr["iconFontSizeMobile"], $attr["iconFontSizeType"] ),
4430
+ ),
4431
+ " .uagb-marketing-btn__link" => array(
4432
+ "padding-left" => UAGB_Helper::get_css_value( $attr["hPaddingMobile"], $attr['paddingType'] ),
4433
+ "padding-right" => UAGB_Helper::get_css_value( $attr["hPaddingMobile"], $attr['paddingType'] ),
4434
+ "padding-top" => UAGB_Helper::get_css_value( $attr["vPaddingMobile"], $attr['paddingType'] ),
4435
+ "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPaddingMobile"], $attr['paddingType'] ),
4436
+ ),
4437
+
4438
+ );
4439
+
4440
+ $t_selectors = array(
4441
+ ' .uagb-marketing-btn__title' => array(
4442
+ 'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
4443
+ 'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
4444
+ ),
4445
+ ' .uagb-marketing-btn__prefix' => array(
4446
+ 'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
4447
+ 'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightTablet'], $attr['prefixLineHeightType'] ),
4448
+ ),
4449
+ ' .uagb-marketing-btn__icon-wrap' => array(
4450
+ "width" => UAGB_Helper::get_css_value( $attr["iconFontSizeTablet"], $attr["iconFontSizeType"] ),
4451
+ "height" => UAGB_Helper::get_css_value( $attr["iconFontSizeTablet"], $attr["iconFontSizeType"] ),
4452
+ ),
4453
+ " .uagb-marketing-btn__link" => array(
4454
+ "padding-left" => UAGB_Helper::get_css_value( $attr["hPaddingTablet"], $attr['paddingType'] ),
4455
+ "padding-right" => UAGB_Helper::get_css_value( $attr["hPaddingTablet"], $attr['paddingType'] ),
4456
+ "padding-top" => UAGB_Helper::get_css_value( $attr["vPaddingTablet"], $attr['paddingType'] ),
4457
+ "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPaddingTablet"], $attr['paddingType'] ),
4458
+ ),
4459
+
4460
+ );
4461
+
4462
+ // @codingStandardsIgnoreEnd
4463
+
4464
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-marketing-btn-' . $id );
4465
+
4466
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-marketing-btn-' . $id );
4467
+
4468
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-marketing-btn-' . $id );
4469
+
4470
+ $generated_css = array(
4471
+ 'desktop' => $desktop,
4472
+ 'tablet' => $tablet,
4473
+ 'mobile' => $mobile,
4474
+ );
4475
+
4476
+ return $generated_css;
4477
+ }
4478
+
4479
+ /**
4480
+ * Get Table of Contents Block CSS
4481
+ *
4482
+ * @since 1.13.0
4483
+ * @param array $attr The block attributes.
4484
+ * @param string $id The selector ID.
4485
+ * @return array The Widget List.
4486
+ */
4487
+ public static function get_table_of_contents_css( $attr, $id ) { // @codingStandardsIgnoreStart
4488
+
4489
+ $defaults = UAGB_Helper::$block_list['uagb/table-of-contents']['attributes'];
4490
+
4491
+ $attr = array_merge( $defaults, (array) $attr );
4492
+ $m_selectors = array();
4493
+ $t_selectors = array();
4494
+
4495
+ $selectors = array(
4496
+ " .uagb-toc__list-wrap ul li a:hover" => array(
4497
+ "color" => $attr["linkHoverColor"],
4498
+ ),
4499
+ " .uagb-toc__list-wrap ul li a" => array(
4500
+ "font-size" => UAGB_Helper::get_css_value( $attr["fontSize"], $attr["fontSizeType"] ),
4501
+ "line-height" => UAGB_Helper::get_css_value( $attr["lineHeight"], $attr["lineHeightType"] ),
4502
+ "font-family" => $attr["fontFamily"],
4503
+ "font-weight" => $attr["fontWeight"],
4504
+ "color" => $attr["linkColor"],
4505
+ ),
4506
+ " .uagb-toc__title" => array(
4507
+ "font-size" => UAGB_Helper::get_css_value( $attr["headingFontSize"], $attr["headingFontSizeType"] ),
4508
+ "line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeight"], $attr["headingLineHeightType"] ),
4509
+ "font-family" => $attr["headingFontFamily"],
4510
+ "font-weight" => $attr["headingFontWeight"],
4511
+ "color" => $attr["headingColor"],
4512
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr["headingBottom"], "px"),
4513
+ ),
4514
+ " .uagb-toc__wrap" => array(
4515
+ "border-style" => $attr["borderStyle"],
4516
+ "border-width" => UAGB_Helper::get_css_value( $attr["borderWidth"], "px" ),
4517
+ "border-color" => $attr["borderColor"],
4518
+ "border-radius" => UAGB_Helper::get_css_value( $attr["borderRadius"], "px" ),
4519
+ "padding-left" => UAGB_Helper::get_css_value( $attr["hPaddingDesktop"], $attr["paddingTypeDesktop"] ),
4520
+ "padding-right" => UAGB_Helper::get_css_value( $attr["hPaddingDesktop"], $attr["paddingTypeDesktop"] ),
4521
+ "padding-top" => UAGB_Helper::get_css_value( $attr["vPaddingDesktop"], $attr["paddingTypeDesktop"] ),
4522
+ "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPaddingDesktop"], $attr["paddingTypeDesktop"] ),
4523
+ "background" => $attr["backgroundColor"],
4524
+ ),
4525
+ " .uagb-toc__list-wrap" => array(
4526
+ 'column-count' => $attr['tColumnsDesktop'],
4527
+ ),
4528
+ " .uagb-toc__list-wrap > ul.uagb-toc__list > li:first-child" => array(
4529
+ "padding-top" => 0
4530
+ ),
4531
+ " .uagb-toc__list-wrap ul.uagb-toc__list:first-child" => array(
4532
+ "margin-left" => UAGB_Helper::get_css_value( $attr["hMarginDesktop"], $attr["marginTypeDesktop"] ),
4533
+ "margin-right" => UAGB_Helper::get_css_value( $attr["hMarginDesktop"], $attr["marginTypeDesktop"] ),
4534
+ "margin-top" => UAGB_Helper::get_css_value( $attr["vMarginDesktop"], $attr["marginTypeDesktop"] ),
4535
+ "margin-bottom" => UAGB_Helper::get_css_value( $attr["vMarginDesktop"], $attr["marginTypeDesktop"] ),
4536
+ ),
4537
+ " .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child" => array(
4538
+ "padding-bottom" => 0
4539
+ ),
4540
+ " .uag-toc__collapsible-wrap svg" => array(
4541
+ "width" => UAGB_Helper::get_css_value( $attr["iconSize"], "px" ),
4542
+ "height" => UAGB_Helper::get_css_value( $attr["iconSize"], "px" ),
4543
+ "fill" => $attr["iconColor"]
4544
+ ),
4545
+ );
4546
+
4547
+ if ( '' != $attr["contentPaddingDesktop"] ) {
4548
+ $selectors[" .uagb-toc__list-wrap ul.uagb-toc__list > li"]["padding-top"] = "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingDesktop'] . $attr['contentPaddingTypeDesktop'] ) . " / 2 )";
4549
+ $selectors[" .uagb-toc__list-wrap ul.uagb-toc__list > li"]["padding-bottom"] = "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingDesktop'] . $attr['contentPaddingTypeDesktop'] ) . " / 2 )";
4550
+ }
4551
+
4552
+ if ( $attr["customWidth"] ) {
4553
+ $selectors[" .uagb-toc__wrap"]["width"] = UAGB_Helper::get_css_value( $attr["widthDesktop"], $attr["widthTypeDesktop"] );
4554
+ }
4555
+
4556
+ if ( $attr["disableBullets"] ) {
4557
+ $selectors[" .uagb-toc__list"] = array(
4558
+ "list-style-type" => 'none'
4559
+ );
4560
+ $selectors[" .uagb-toc__list .uagb-toc__list"] = array(
4561
+ "list-style-type" => 'none'
4562
+ );
4563
+ }
4564
+
4565
+
4566
+ $m_selectors = array(
4567
+ ' .uagb-toc__list-wrap ul li a' => array(
4568
+ 'font-size' => UAGB_Helper::get_css_value( $attr['fontSizeMobile'], $attr['fontSizeType'] ),
4569
+ 'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightMobile'], $attr['lineHeightType'] ),
4570
+ ),
4571
+ " .uagb-toc__title" => array(
4572
+ "font-size" => UAGB_Helper::get_css_value( $attr["headingFontSizeMobile"], $attr["headingFontSizeType"] ),
4573
+ "line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeightMobile"], $attr["headingLineHeightType"] ),
4574
+ ),
4575
+ " .uagb-toc__wrap" => array(
4576
+ "width" => UAGB_Helper::get_css_value( $attr["widthMobile"], $attr["widthTypeMobile"] ),
4577
+ "padding-left" => UAGB_Helper::get_css_value( $attr["hPaddingMobile"], $attr["paddingTypeMobile"] ),
4578
+ "padding-right" => UAGB_Helper::get_css_value( $attr["hPaddingMobile"], $attr["paddingTypeMobile"] ),
4579
+ "padding-top" => UAGB_Helper::get_css_value( $attr["vPaddingMobile"], $attr["paddingTypeMobile"] ),
4580
+ "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPaddingMobile"], $attr["paddingTypeMobile"] ),
4581
+ ),
4582
+ " .uagb-toc__list-wrap" => array(
4583
+ 'column-count' => $attr['tColumnsMobile'],
4584
+ ),
4585
+ " .uagb-toc__list-wrap > ul.uagb-toc__list > li:first-child" => array(
4586
+ "padding-top" => 0
4587
+ ),
4588
+ " .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child" => array(
4589
+ "padding-bottom" => 0
4590
+ ),
4591
+
4592
+ );
4593
+
4594
+ $t_selectors = array(
4595
+ ' .uagb-toc__list-wrap ul li a' => array(
4596
+ 'font-size' => UAGB_Helper::get_css_value( $attr['fontSizeTablet'], $attr['fontSizeType'] ),
4597
+ 'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightTablet'], $attr['lineHeightType'] ),
4598
+ ),
4599
+ " .uagb-toc__title" => array(
4600
+ "font-size" => UAGB_Helper::get_css_value( $attr["headingFontSizeTablet"], $attr["headingFontSizeType"] ),
4601
+ "line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeightTablet"], $attr["headingLineHeightType"] ),
4602
+ ),
4603
+ " .uagb-toc__wrap" => array(
4604
+ "width" => UAGB_Helper::get_css_value( $attr["widthTablet"], $attr["widthTypeTablet"] ),
4605
+ "padding-left" => UAGB_Helper::get_css_value( $attr["hPaddingTablet"], $attr["paddingTypeTablet"] ),
4606
+ "padding-right" => UAGB_Helper::get_css_value( $attr["hPaddingTablet"], $attr["paddingTypeTablet"] ),
4607
+ "padding-top" => UAGB_Helper::get_css_value( $attr["vPaddingTablet"], $attr["paddingTypeTablet"] ),
4608
+ "padding-bottom" => UAGB_Helper::get_css_value( $attr["vPaddingTablet"], $attr["paddingTypeTablet"] ),
4609
+ ),
4610
+ " .uagb-toc__list-wrap" => array(
4611
+ 'column-count' => $attr['tColumnsTablet'],
4612
+ ),
4613
+ " .uagb-toc__list-wrap > ul.uagb-toc__list > li:first-child" => array(
4614
+ "padding-top" => 0
4615
+ ),
4616
+ " .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child" => array(
4617
+ "padding-bottom" => 0
4618
+ ), );
4619
+
4620
+ if ( '' != $attr["contentPaddingTablet"] ) {
4621
+ $t_selectors[" .uagb-toc__list-wrap ul.uagb-toc__list > li"] = array(
4622
+ "padding-top" => "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingTablet'] . $attr['contentPaddingTypeTablet'] ) . " / 2 )",
4623
+ "padding-bottom" => "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingTablet'] . $attr['contentPaddingTypeTablet'] ) . " / 2 )",
4624
+ );
4625
+ }
4626
+
4627
+ if ( '' != $attr["contentPaddingMobile"] ) {
4628
+ $m_selectors[" .uagb-toc__list-wrap ul.uagb-toc__list > li"] = array(
4629
+ "padding-top" => "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingMobile'] . $attr['contentPaddingTypeMobile'] ) . " / 2 )",
4630
+ "padding-bottom" => "calc( " . UAGB_Helper::get_css_value( $attr['contentPaddingMobile'] . $attr['contentPaddingTypeMobile'] ) . " / 2 )",
4631
+ );
4632
+ }
4633
+
4634
+ // @codingStandardsIgnoreEnd
4635
+
4636
+ $desktop = UAGB_Helper::generate_css( $selectors, '#uagb-toc-' . $id );
4637
+
4638
+ $tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-toc-' . $id );
4639
+
4640
+ $mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-toc-' . $id );
4641
+
4642
+ if ( '' !== $attr['scrollToTopColor'] ) {
4643
+ $desktop .= '.uagb-toc__scroll-top { color: ' . $attr['scrollToTopColor'] . '; }';
4644
+ }
4645
+
4646
+ if ( '' !== $attr['scrollToTopBgColor'] ) {
4647
+ $desktop .= '.uagb-toc__scroll-top { background: ' . $attr['scrollToTopBgColor'] . '; }';
4648
+ }
4649
+
4650
+ $generated_css = array(
4651
+ 'desktop' => $desktop,
4652
+ 'tablet' => $tablet,
4653
+ 'mobile' => $mobile,
4654
+ );
4655
+
4656
+ return $generated_css;
4657
+ }
4658
+
4659
+
4660
+ /**
4661
+ * Get Testimonial Js
4662
+ *
4663
+ * @since 1.6.0
4664
+ * @param array $attr The block attributes.
4665
+ * @param string $id The selector ID.
4666
+ */
4667
+ public static function get_testimonial_js( $attr, $id ) { // @codingStandardsIgnoreStart.
4668
+
4669
+ $defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
4670
+
4671
+ $attr = array_merge( $defaults, (array) $attr );
4672
+
4673
+ $dots = ( "dots" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
4674
+ $arrows = ( "arrows" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
4675
+
4676
+ $slick_options = apply_filters( 'uagb_testimonials_slick_options',[
4677
+ 'slidesToShow' => $attr['columns'],
4678
+ 'slidesToScroll' => 1,
4679
+ 'autoplaySpeed' => $attr['autoplaySpeed'],
4680
+ 'autoplay' => $attr['autoplay'],
4681
+ 'infinite' => $attr['infiniteLoop'],
4682
+ 'pauseOnHover' => $attr['pauseOnHover'],
4683
+ 'speed' => $attr['transitionSpeed'],
4684
+ 'arrows' => $arrows,
4685
+ 'dots' => $dots,
4686
+ 'rtl' => false,
4687
+ '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>',
4688
+ '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>',
4689
+ 'responsive' => [
4690
+ [
4691
+ 'breakpoint' => 1024,
4692
+ 'settings' => [
4693
+ 'slidesToShow' => $attr['tcolumns'],
4694
+ 'slidesToScroll' => 1,
4695
+ ],
4696
+ ],
4697
+ [
4698
+ 'breakpoint' => 767,
4699
+ 'settings' => [
4700
+ 'slidesToShow' => $attr['mcolumns'],
4701
+ 'slidesToScroll' => 1,
4702
+ ],
4703
+ ]
4704
+ ]
4705
+ ], $id );
4706
+
4707
+ $settings = json_encode($slick_options);
4708
+ $selector = '#uagb-testimonial-'. $id;
4709
+ $js = '$( document ).ready( function() { if( $( "' . $selector . '" ).length > 0 ){ $( "' . $selector . '" ).find( ".is-carousel" ).slick( ' . $settings .' ); } } );';
4710
+
4711
+ return $js;
4712
+ // @codingStandardsIgnoreEnd.
4713
+ }
4714
+
4715
+ /**
4716
+ * Get Blockquote Js
4717
+ *
4718
+ * @since 1.8.2
4719
+ * @param array $attr The block attributes.
4720
+ * @param string $id The selector ID.
4721
+ */
4722
+ public static function get_blockquote_js( $attr, $id ) {
4723
+ // @codingStandardsIgnoreStart.
4724
+
4725
+ $defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
4726
+
4727
+ $attr = array_merge( $defaults, (array) $attr );
4728
+
4729
+ $target = $attr['iconTargetUrl'];
4730
+
4731
+ $url = " " ;
4732
+
4733
+ if( $target == 'current' ){
4734
+ global $wp;
4735
+ $url = home_url(add_query_arg(array(),$wp->request));
4736
+ }else{
4737
+ $url = $attr['customUrl'];
4738
+ }
4739
+
4740
+ $via = isset( $attr['iconShareVia'] ) ? $attr['iconShareVia'] : '';
4741
+
4742
+ $selector = '#uagb-blockquote-'. $id;
4743
+
4744
+ $js = 'jQuery( "' . $selector . '" ).find( ".uagb-blockquote__tweet-button" ).click(function(){'.
4745
+ 'var content = jQuery("' . $selector . '").find(".uagb-blockquote__content").text();'.
4746
+ 'var request_url = "https://twitter.com/share?url="+ encodeURIComponent("' . $url . '")+"&text="+content+"&via="+("' . $via . '");'.
4747
+ 'window.open( request_url );'.
4748
+ '});';
4749
+
4750
+ return $js;
4751
+ // @codingStandardsIgnoreEnd.
4752
+ }
4753
+
4754
+ /**
4755
+ * Get Social Share JS
4756
+ *
4757
+ * @since 1.8.1
4758
+ * @param string $id The selector ID.
4759
+ */
4760
+ public static function get_social_share_js( $id ) {
4761
+
4762
+ $selector = '#uagb-social-share-' . $id;
4763
+ $js = 'const ssLink = document.querySelector( "' . $selector . '" ).querySelectorAll( ".uagb-ss__link" );';
4764
+ $js .= 'for (let i = 0; i < ssLink.length; i++) {
4765
+ ssLink[i].addEventListener( "click", function() {' .
4766
+ 'var social_url = this.dataset.href; ' .
4767
+ 'var target = ""; ' .
4768
+ 'if( social_url == "mailto:?body=" ){ ' .
4769
+ 'target = "_self";' .
4770
+ '}' .
4771
+ 'var request_url = social_url + window.location.href ;' .
4772
+ 'window.open( request_url,target );' .
4773
+ '});' . '}';
4774
+
4775
+ return $js;
4776
+ }
4777
+
4778
+ /**
4779
+ * Get Table of Contents Js
4780
+ *
4781
+ * @since 1.13.0
4782
+ * @param array $attr The block attributes.
4783
+ * @param string $id The selector ID.
4784
+ */
4785
+ public static function get_table_of_contents_js( $attr, $id ) {
4786
+ // @codingStandardsIgnoreStart.
4787
+
4788
+ $defaults = UAGB_Helper::$block_list['uagb/table-of-contents']['attributes'];
4789
+
4790
+ $attr = array_merge( $defaults, (array) $attr );
4791
+
4792
+ $selector = '#uagb-toc-'. $id;
4793
+
4794
+ $js = 'jQuery( document ).ready(function() { ' .
4795
+ 'UAGBTableOfContents._run( ' . json_encode( $attr ) . ', "'. $selector .'" ); '.
4796
+ '});';
4797
+
4798
+ return $js;
4799
+ // @codingStandardsIgnoreEnd.
4800
+ }
4801
+
4802
+ /**
4803
+ * Adds Google fonts for Advanced Heading block.
4804
+ *
4805
+ * @since 1.9.1
4806
+ * @param array $attr the blocks attr.
4807
+ */
4808
+ public static function blocks_advanced_heading_gfont( $attr ) {
4809
+
4810
+ $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
4811
+ $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
4812
+ $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
4813
+ $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
4814
+
4815
+ $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
4816
+ $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
4817
+ $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
4818
+ $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
4819
+
4820
+ UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
4821
+ UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
4822
+ }
4823
+
4824
+
4825
+ /**
4826
+ * Adds Google fonts for CF7 Styler block.
4827
+ *
4828
+ * @since 1.10.0
4829
+ * @param array $attr the blocks attr.
4830
+ */
4831
+ public static function blocks_cf7_styler_gfont( $attr ) {
4832
+
4833
+ $label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
4834
+ $label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
4835
+ $label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
4836
+ $label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
4837
+
4838
+ $input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
4839
+ $input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
4840
+ $input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
4841
+ $input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
4842
+
4843
+ $radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
4844
+ $radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
4845
+ $radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
4846
+ $radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
4847
+
4848
+ $button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
4849
+ $button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
4850
+ $button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
4851
+ $button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
4852
+
4853
+ $msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
4854
+ $msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
4855
+ $msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
4856
+ $msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
4857
+
4858
+ $validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
4859
+ $validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
4860
+ $validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
4861
+ $validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
4862
+
4863
+ UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
4864
+ UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
4865
+
4866
+ UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
4867
+ UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
4868
+
4869
+ UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
4870
+ UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
4871
+ }
4872
+
4873
+
4874
+ /**
4875
+ * Adds Google fonts for Gravity Form Styler block.
4876
+ *
4877
+ * @since 1.12.0
4878
+ * @param array $attr the blocks attr.
4879
+ */
4880
+ public static function blocks_gf_styler_gfont( $attr ) {
4881
+
4882
+ $label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
4883
+ $label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
4884
+ $label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
4885
+ $label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
4886
+
4887
+ $input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
4888
+ $input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
4889
+ $input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
4890
+ $input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
4891
+
4892
+ $radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
4893
+ $radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
4894
+ $radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
4895
+ $radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
4896
+
4897
+ $button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
4898
+ $button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
4899
+ $button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
4900
+ $button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
4901
+
4902
+ $msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
4903
+ $msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
4904
+ $msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
4905
+ $msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
4906
+
4907
+ $validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
4908
+ $validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
4909
+ $validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
4910
+ $validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
4911
+
4912
+ UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
4913
+ UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
4914
+
4915
+ UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
4916
+ UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
4917
+
4918
+ UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
4919
+ UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
4920
+ }
4921
+
4922
+ /**
4923
+ * Adds Google fonts for Marketing Button block.
4924
+ *
4925
+ * @since 1.11.0
4926
+ * @param array $attr the blocks attr.
4927
+ */
4928
+ public static function blocks_marketing_btn_gfont( $attr ) {
4929
+
4930
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
4931
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
4932
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
4933
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
4934
+
4935
+ $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
4936
+ $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
4937
+ $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
4938
+ $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
4939
+
4940
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
4941
+ UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
4942
+ }
4943
+
4944
+ /**
4945
+ * Adds Google fonts for Table Of Contents block.
4946
+ *
4947
+ * @since 1.13.0
4948
+ * @param array $attr the blocks attr.
4949
+ */
4950
+ public static function blocks_table_of_contents_gfont( $attr ) {
4951
+ $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
4952
+ $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
4953
+ $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
4954
+ $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
4955
+ $heading_load_google_font = isset( $attr['headingLoadGoogleFonts'] ) ? $attr['headingLoadGoogleFonts'] : '';
4956
+ $heading_font_family = isset( $attr['headingFontFamily'] ) ? $attr['headingFontFamily'] : '';
4957
+ $heading_font_weight = isset( $attr['headingFontWeight'] ) ? $attr['headingFontWeight'] : '';
4958
+ $heading_font_subset = isset( $attr['headingFontSubset'] ) ? $attr['headingFontSubset'] : '';
4959
+ UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
4960
+ UAGB_Helper::blocks_google_font( $heading_load_google_font, $heading_font_family, $heading_font_weight, $heading_font_subset );
4961
+ }
4962
+
4963
+ /**
4964
+ * Adds Google fonts for Blockquote.
4965
+ *
4966
+ * @since 1.9.1
4967
+ * @param array $attr the blocks attr.
4968
+ */
4969
+ public static function blocks_blockquote_gfont( $attr ) {
4970
+
4971
+ $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4972
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
4973
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
4974
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
4975
+
4976
+ $author_load_google_font = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
4977
+ $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
4978
+ $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
4979
+ $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
4980
+
4981
+ $tweet_btn_load_google_font = isset( $attr['tweetBtnLoadGoogleFonts'] ) ? $attr['tweetBtnLoadGoogleFonts'] : '';
4982
+ $tweet_btn_font_family = isset( $attr['tweetBtnFontFamily'] ) ? $attr['tweetBtnFontFamily'] : '';
4983
+ $tweet_btn_font_weight = isset( $attr['tweetBtnFontWeight'] ) ? $attr['tweetBtnFontWeight'] : '';
4984
+ $tweet_btn_font_subset = isset( $attr['tweetBtnFontSubset'] ) ? $attr['tweetBtnFontSubset'] : '';
4985
+
4986
+ UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
4987
+ UAGB_Helper::blocks_google_font( $author_load_google_font, $author_font_family, $author_font_weight, $author_font_subset );
4988
+ UAGB_Helper::blocks_google_font( $tweet_btn_load_google_font, $tweet_btn_font_family, $tweet_btn_font_weight, $tweet_btn_font_subset );
4989
+ }
4990
+
4991
+ /**
4992
+ * Adds Google fonts for Testimonial block.
4993
+ *
4994
+ * @since 1.9.1
4995
+ * @param array $attr the blocks attr.
4996
+ */
4997
+ public static function blocks_testimonial_gfont( $attr ) {
4998
+ $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
4999
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
5000
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
5001
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
5002
+
5003
+ $name_load_google_fonts = isset( $attr['nameLoadGoogleFonts'] ) ? $attr['nameLoadGoogleFonts'] : '';
5004
+ $name_font_family = isset( $attr['nameFontFamily'] ) ? $attr['nameFontFamily'] : '';
5005
+ $name_font_weight = isset( $attr['nameFontWeight'] ) ? $attr['nameFontWeight'] : '';
5006
+ $name_font_subset = isset( $attr['nameFontSubset'] ) ? $attr['nameFontSubset'] : '';
5007
+
5008
+ $company_load_google_fonts = isset( $attr['companyLoadGoogleFonts'] ) ? $attr['companyLoadGoogleFonts'] : '';
5009
+ $company_font_family = isset( $attr['companyFontFamily'] ) ? $attr['companyFontFamily'] : '';
5010
+ $company_font_weight = isset( $attr['companyFontWeight'] ) ? $attr['companyFontWeight'] : '';
5011
+ $company_font_subset = isset( $attr['companyFontSubset'] ) ? $attr['companyFontSubset'] : '';
5012
+
5013
+ UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
5014
+ UAGB_Helper::blocks_google_font( $name_load_google_fonts, $name_font_family, $name_font_family, $name_font_subset );
5015
+ UAGB_Helper::blocks_google_font( $company_load_google_fonts, $company_font_family, $company_font_family, $company_font_subset );
5016
+ }
5017
+
5018
+ /**
5019
+ * Adds Google fonts for Advanced Heading block.
5020
+ *
5021
+ * @since 1.9.1
5022
+ * @param array $attr the blocks attr.
5023
+ */
5024
+ public static function blocks_team_gfont( $attr ) {
5025
+
5026
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
5027
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
5028
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
5029
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
5030
+
5031
+ $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
5032
+ $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
5033
+ $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
5034
+ $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
5035
+
5036
+ $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
5037
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
5038
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
5039
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
5040
+
5041
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
5042
+ UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
5043
+ UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
5044
+ }
5045
+
5046
+ /**
5047
+ *
5048
+ * Adds Google fonts for Restaurant Menu block.
5049
+ *
5050
+ * @since 1.9.1
5051
+ * @param array $attr the blocks attr.
5052
+ */
5053
+ public static function blocks_restaurant_menu_gfont( $attr ) {
5054
+ $title_load_google_fonts = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
5055
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
5056
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
5057
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
5058
+
5059
+ $price_load_google_fonts = isset( $attr['priceLoadGoogleFonts'] ) ? $attr['priceLoadGoogleFonts'] : '';
5060
+ $price_font_family = isset( $attr['priceFontFamily'] ) ? $attr['priceFontFamily'] : '';
5061
+ $price_font_weight = isset( $attr['priceFontWeight'] ) ? $attr['priceFontWeight'] : '';
5062
+ $price_font_subset = isset( $attr['priceFontSubset'] ) ? $attr['priceFontSubset'] : '';
5063
+
5064
+ $desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
5065
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
5066
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
5067
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
5068
+
5069
+ UAGB_Helper::blocks_google_font( $title_load_google_fonts, $title_font_family, $title_font_weight, $title_font_subset );
5070
+ UAGB_Helper::blocks_google_font( $price_load_google_fonts, $price_font_family, $price_font_weight, $price_font_subset );
5071
+ UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
5072
+ }
5073
+
5074
+ /**
5075
+ * Adds Google fonts for Content Timeline block.
5076
+ *
5077
+ * @since 1.9.1
5078
+ * @param array $attr the blocks attr.
5079
+ */
5080
+ public static function blocks_content_timeline_gfont( $attr ) {
5081
+ $head_load_google_fonts = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
5082
+ $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
5083
+ $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
5084
+ $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
5085
+
5086
+ $subheadload_google_fonts = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
5087
+ $subheadfont_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
5088
+ $subheadfont_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
5089
+ $subheadfont_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
5090
+
5091
+ $date_load_google_fonts = isset( $attr['dateLoadGoogleFonts'] ) ? $attr['dateLoadGoogleFonts'] : '';
5092
+ $date_font_family = isset( $attr['dateFontFamily'] ) ? $attr['dateFontFamily'] : '';
5093
+ $date_font_weight = isset( $attr['dateFontWeight'] ) ? $attr['dateFontWeight'] : '';
5094
+ $date_font_subset = isset( $attr['dateFontSubset'] ) ? $attr['dateFontSubset'] : '';
5095
+
5096
+ UAGB_Helper::blocks_google_font( $head_load_google_fonts, $head_font_family, $head_font_weight, $head_font_subset );
5097
+ UAGB_Helper::blocks_google_font( $subheadload_google_fonts, $subheadfont_family, $subheadfont_weight, $subheadfont_subset );
5098
+ UAGB_Helper::blocks_google_font( $date_load_google_fonts, $date_font_family, $date_font_weight, $date_font_subset );
5099
+ }
5100
+
5101
+ /**
5102
+ * Adds Google fonts for Post Timeline block.
5103
+ *
5104
+ * @since 1.9.1
5105
+ * @param array $attr the blocks attr.
5106
+ */
5107
+ public static function blocks_post_timeline_gfont( $attr ) {
5108
+ self::blocks_content_timeline_gfont( $attr );
5109
+
5110
+ $author_load_google_fonts = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
5111
+ $author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
5112
+ $author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
5113
+ $author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
5114
+
5115
+ $cta_load_google_fonts = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
5116
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
5117
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
5118
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
5119
+
5120
+ UAGB_Helper::blocks_google_font( $author_load_google_fonts, $author_font_family, $author_font_weight, $author_font_subset );
5121
+ UAGB_Helper::blocks_google_font( $cta_load_google_fonts, $cta_font_family, $cta_font_weight, $cta_font_subset );
5122
+ }
5123
+
5124
+ /**
5125
+ * Adds Google fonts for Mulit Button's block.
5126
+ *
5127
+ * @since 1.9.1
5128
+ * @param array $attr the blocks attr.
5129
+ */
5130
+ public static function blocks_buttons_gfont( $attr ) {
5131
+
5132
+ $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
5133
+ $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
5134
+ $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
5135
+ $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
5136
+
5137
+ UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
5138
+ }
5139
+
5140
+ /**
5141
+ * Adds Google fonts for Icon List block
5142
+ *
5143
+ * @since 1.9.1
5144
+ * @param array $attr the blocks attr.
5145
+ */
5146
+ public static function blocks_icon_list_gfont( $attr ) {
5147
+
5148
+ $load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
5149
+ $font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
5150
+ $font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
5151
+ $font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
5152
+
5153
+ UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
5154
+ }
5155
+
5156
+ /**
5157
+ * Adds Google fonts for Post block.
5158
+ *
5159
+ * @since 1.9.1
5160
+ * @param array $attr the blocks attr.
5161
+ */
5162
+ public static function blocks_post_gfont( $attr ) {
5163
+
5164
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
5165
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
5166
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
5167
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
5168
+
5169
+ $meta_load_google_font = isset( $attr['metaLoadGoogleFonts'] ) ? $attr['metaLoadGoogleFonts'] : '';
5170
+ $meta_font_family = isset( $attr['metaFontFamily'] ) ? $attr['metaFontFamily'] : '';
5171
+ $meta_font_weight = isset( $attr['metaFontWeight'] ) ? $attr['metaFontWeight'] : '';
5172
+ $meta_font_subset = isset( $attr['metaFontSubset'] ) ? $attr['metaFontSubset'] : '';
5173
+
5174
+ $excerpt_load_google_font = isset( $attr['excerptLoadGoogleFonts'] ) ? $attr['excerptLoadGoogleFonts'] : '';
5175
+ $excerpt_font_family = isset( $attr['excerptFontFamily'] ) ? $attr['excerptFontFamily'] : '';
5176
+ $excerpt_font_weight = isset( $attr['excerptFontWeight'] ) ? $attr['excerptFontWeight'] : '';
5177
+ $excerpt_font_subset = isset( $attr['excerptFontSubset'] ) ? $attr['excerptFontSubset'] : '';
5178
+
5179
+ $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
5180
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
5181
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
5182
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
5183
+
5184
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
5185
+
5186
+ UAGB_Helper::blocks_google_font( $meta_load_google_font, $meta_font_family, $meta_font_weight, $meta_font_subset );
5187
+
5188
+ UAGB_Helper::blocks_google_font( $excerpt_load_google_font, $excerpt_font_family, $excerpt_font_weight, $excerpt_font_subset );
5189
+
5190
+ UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
5191
+ }
5192
+
5193
+ /**
5194
+ * Adds Google fonts for Advanced Heading block.
5195
+ *
5196
+ * @since 1.9.1
5197
+ * @param array $attr the blocks attr.
5198
+ */
5199
+ public static function blocks_info_box_gfont( $attr ) {
5200
+
5201
+ $head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
5202
+ $head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
5203
+ $head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
5204
+ $head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
5205
+
5206
+ $prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
5207
+ $prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
5208
+ $prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
5209
+ $prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
5210
+
5211
+ $subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
5212
+ $subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
5213
+ $subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
5214
+ $subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
5215
+
5216
+ $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
5217
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
5218
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
5219
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
5220
+
5221
+ UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
5222
+ UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
5223
+ UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
5224
+ UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
5225
+ }
5226
+
5227
+ /**
5228
+ * Adds Google fonts for Call To Action block.
5229
+ *
5230
+ * @since 1.9.1
5231
+ * @param array $attr the blocks attr.
5232
+ */
5233
+ public static function blocks_call_to_action_gfont( $attr ) {
5234
+
5235
+ $title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
5236
+ $title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
5237
+ $title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
5238
+ $title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
5239
+
5240
+ $desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
5241
+ $desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
5242
+ $desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
5243
+ $desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
5244
+
5245
+ $cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
5246
+ $cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
5247
+ $cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
5248
+ $cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
5249
+
5250
+ UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
5251
+ UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
5252
+ UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
5253
+ }
5254
+ }
5255
+ }
classes/class-uagb-config.php CHANGED
@@ -1,1847 +1,1847 @@
1
- <?php
2
- /**
3
- * UAGB Config.
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit; // Exit if accessed directly.
10
- }
11
-
12
- if ( ! class_exists( 'UAGB_Config' ) ) {
13
-
14
- /**
15
- * Class UAGB_Config.
16
- */
17
- class UAGB_Config {
18
-
19
- /**
20
- * Block Attributes
21
- *
22
- * @var block_attributes
23
- */
24
- public static $block_attributes = null;
25
-
26
- /**
27
- * Block Assets
28
- *
29
- * @var block_attributes
30
- */
31
- public static $block_assets = null;
32
-
33
- /**
34
- * Get Widget List.
35
- *
36
- * @since 0.0.1
37
- *
38
- * @return array The Widget List.
39
- */
40
- public static function get_block_attributes() {
41
-
42
- if ( null === self::$block_attributes ) {
43
- self::$block_attributes = array(
44
- 'uagb/advanced-heading' => array(
45
- 'slug' => '',
46
- 'title' => __( 'Advanced Heading', 'ultimate-addons-for-gutenberg' ),
47
- 'description' => __( 'This block lets you add a combination of a heading and a sub-heading with a separator in between.', 'ultimate-addons-for-gutenberg' ),
48
- 'default' => true,
49
- 'attributes' => array(
50
- 'headingAlign' => 'center',
51
- 'headingColor' => '',
52
- 'subHeadingColor' => '',
53
- 'separatorColor' => '',
54
- 'seperatorStyle' => 'solid',
55
- 'separatorHeight' => '',
56
- 'separatorWidth' => '',
57
- 'separatorWidthType' => '%',
58
- 'headFontFamily' => '',
59
- 'headLoadGoogleFonts' => false,
60
- 'headFontWeight' => '',
61
- 'headFontSubset' => '',
62
- 'headFontSize' => '',
63
- 'headFontSizeType' => 'px',
64
- 'headFontSizeTablet' => '',
65
- 'headFontSizeMobile' => '',
66
- 'headLineHeight' => '',
67
- 'headLineHeightType' => 'em',
68
- 'headLineHeightTablet' => '',
69
- 'headLineHeightMobile' => '',
70
- 'subHeadFontFamily' => '',
71
- 'subHeadLoadGoogleFonts' => false,
72
- 'subHeadFontWeight' => '',
73
- 'subHeadFontSubset' => '',
74
- 'subHeadFontSize' => '',
75
- 'subHeadFontSizeType' => 'px',
76
- 'subHeadFontSizeTablet' => '',
77
- 'subHeadFontSizeMobile' => '',
78
- 'subHeadLineHeight' => '',
79
- 'subHeadLineHeightType' => 'em',
80
- 'subHeadLineHeightTablet' => '',
81
- 'subHeadLineHeightMobile' => '',
82
- 'headSpace' => 15,
83
- 'separatorSpace' => 15,
84
- ),
85
- ),
86
- 'uagb/columns' => array(
87
- 'slug' => '',
88
- 'title' => __( 'Advanced Columns', 'ultimate-addons-for-gutenberg' ),
89
- 'description' => __( 'This block gives you advanced options to insert a number of columns within a single row.', 'ultimate-addons-for-gutenberg' ),
90
- 'default' => true,
91
- 'attributes' => array(
92
- 'block_id' => '',
93
- 'columns' => '2',
94
- 'align' => '',
95
- 'vAlign' => '',
96
- 'stack' => 'mobile',
97
- 'topPadding' => '20',
98
- 'bottomPadding' => '20',
99
- 'leftPadding' => '20',
100
- 'rightPadding' => '20',
101
- 'topMargin' => '0',
102
- 'bottomMargin' => '0',
103
- 'topPaddingTablet' => '',
104
- 'bottomPaddingTablet' => '',
105
- 'leftPaddingTablet' => '',
106
- 'rightPaddingTablet' => '',
107
- 'topPaddingMobile' => '',
108
- 'bottomPaddingMobile' => '',
109
- 'leftPaddingMobile' => '',
110
- 'rightPaddingMobile' => '',
111
- 'topMarginMobile' => '',
112
- 'bottomMarginMobile' => '',
113
- 'topMarginTablet' => '',
114
- 'bottomMarginTablet' => '',
115
- 'contentWidth' => 'theme',
116
- 'width' => '900',
117
- 'widthType' => 'px',
118
- 'tag' => 'section',
119
- 'backgroundType' => 'none',
120
- 'backgroundImage' => '',
121
- 'backgroundPosition' => 'center-center',
122
- 'backgroundSize' => 'cover',
123
- 'backgroundRepeat' => 'no-repeat',
124
- 'backgroundAttachment' => 'scroll',
125
- 'backgroundVideo' => '',
126
- 'backgroundColor' => '',
127
- 'gradientColor1' => '',
128
- 'gradientColor2' => '',
129
- 'gradientType' => 'linear',
130
- 'gradientLocation1' => '0',
131
- 'gradientLocation2' => '100',
132
- 'gradientAngle' => '0',
133
- 'gradientPosition' => 'center center',
134
- 'backgroundOpacity' => '',
135
- 'backgroundVideoOpacity' => '50',
136
- 'backgroundVideoColor' => '',
137
- 'backgroundImageColor' => '',
138
- 'borderStyle' => 'none',
139
- 'borderWidth' => '1',
140
- 'borderRadius' => '',
141
- 'borderColor' => '',
142
- 'columnGap' => '10',
143
- 'bottomType' => 'none',
144
- 'bottomColor' => '#333',
145
- 'bottomHeight' => '',
146
- 'bottomHeightTablet' => '',
147
- 'bottomHeightMobile' => '',
148
- 'bottomWidth' => '',
149
- 'topType' => 'none',
150
- 'topColor' => '#333',
151
- 'topHeight' => '',
152
- 'topHeightTablet' => '',
153
- 'topHeightMobile' => '',
154
- 'topWidth' => '',
155
- 'bottomFlip' => '',
156
- 'topFlip' => '',
157
- 'mobileMarginType' => 'px',
158
- 'tabletMarginType' => 'px',
159
- 'desktopMarginType' => 'px',
160
- 'mobilePaddingType' => 'px',
161
- 'tabletPaddingType' => 'px',
162
- 'desktopPaddingType' => 'px',
163
- ),
164
- ),
165
- 'uagb/column' => array(
166
- 'slug' => '',
167
- 'title' => __( 'Column', 'ultimate-addons-for-gutenberg' ),
168
- 'description' => __( 'This block is an immediate child of Advanced Columns.', 'ultimate-addons-for-gutenberg' ),
169
- 'default' => true,
170
- 'is_child' => true,
171
- 'attributes' => array(
172
- 'block_id' => '',
173
- 'topPadding' => '',
174
- 'bottomPadding' => '',
175
- 'leftPadding' => '',
176
- 'rightPadding' => '',
177
- 'topMargin' => '',
178
- 'bottomMargin' => '',
179
- 'leftMargin' => '',
180
- 'rightMargin' => '',
181
- 'topPaddingTablet' => '',
182
- 'bottomPaddingTablet' => '',
183
- 'leftPaddingTablet' => '',
184
- 'rightPaddingTablet' => '',
185
- 'topPaddingMobile' => '',
186
- 'bottomPaddingMobile' => '',
187
- 'leftPaddingMobile' => '',
188
- 'rightPaddingMobile' => '',
189
- 'topMarginMobile' => '',
190
- 'bottomMarginMobile' => '',
191
- 'leftMarginMobile' => '',
192
- 'rightMarginMobile' => '',
193
- 'topMarginTablet' => '',
194
- 'bottomMarginTablet' => '',
195
- 'leftMarginTablet' => '',
196
- 'rightMarginTablet' => '',
197
- 'colWidth' => '',
198
- 'colWidthTablet' => '',
199
- 'colWidthMobile' => '',
200
- 'backgroundType' => 'none',
201
- 'backgroundImage' => '',
202
- 'backgroundPosition' => 'center-center',
203
- 'backgroundSize' => 'cover',
204
- 'backgroundRepeat' => 'no-repeat',
205
- 'backgroundAttachment' => 'scroll',
206
- 'backgroundColor' => '',
207
- 'gradientColor1' => '',
208
- 'gradientColor2' => '',
209
- 'gradientType' => 'linear',
210
- 'gradientLocation1' => 0,
211
- 'gradientLocation2' => 100,
212
- 'gradientAngle' => 0,
213
- 'backgroundOpacity' => '',
214
- 'backgroundImageColor' => '',
215
- 'borderStyle' => 'none',
216
- 'borderWidth' => 1,
217
- 'borderRadius' => '',
218
- 'borderColor' => '',
219
- 'align' => 'center',
220
- 'alignMobile' => '',
221
- 'alignTablet' => '',
222
- 'mobileMarginType' => 'px',
223
- 'tabletMarginType' => 'px',
224
- 'desktopMarginType' => 'px',
225
- 'mobilePaddingType' => 'px',
226
- 'tabletPaddingType' => 'px',
227
- 'desktopPaddingType' => 'px',
228
- 'overlayType' => 'color',
229
- 'gradientOverlayColor1' => '',
230
- 'gradientOverlayColor2' => '',
231
- 'gradientOverlayType' => 'linear',
232
- 'gradientOverlayLocation1' => '0',
233
- 'gradientOverlayLocation2' => '100',
234
- 'gradientOverlayAngle' => '0',
235
- ),
236
- ),
237
- 'uagb/blockquote' => array(
238
- 'slug' => '',
239
- 'title' => __( 'Blockquote', 'ultimate-addons-for-gutenberg' ),
240
- 'description' => __( 'This block allows you to display your Blockquote.', 'ultimate-addons-for-gutenberg' ),
241
- 'default' => true,
242
- 'attributes' => array(
243
- 'block_id ' => '',
244
- 'skinStyle' => 'border',
245
- 'align' => 'left',
246
- 'descColor' => '',
247
- 'descFontSize' => '',
248
- 'descFontSizeType' => 'px',
249
- 'descFontSizeTablet' => '',
250
- 'descFontSizeMobile' => '',
251
- 'descFontFamily' => '',
252
- 'descFontWeight' => '',
253
- 'descFontSubset' => '',
254
- 'descLineHeightType' => 'em
255
- ',
256
- 'descLineHeight' => '',
257
- 'descLineHeightTablet' => '',
258
- 'descLineHeightMobile' => '',
259
- 'descLoadGoogleFonts' => false,
260
- 'descSpace' => 20,
261
- 'authorColor' => '#888888',
262
- 'authorFontSize' => '',
263
- 'authorFontSizeType' => 'px',
264
- 'authorFontSizeTablet' => '',
265
- 'authorFontSizeMobile' => '',
266
- 'authorFontFamily' => '',
267
- 'authorFontWeight' => '',
268
- 'authorFontSubset' => '',
269
- 'authorLineHeightType' => 'em
270
- ',
271
- 'authorLineHeight' => '',
272
- 'authorLineHeightTablet' => '',
273
- 'authorLineHeightMobile' => '',
274
- 'authorLoadGoogleFonts' => false,
275
- 'authorSpace' => 10,
276
- 'authorImageWidth' => 40,
277
- 'authorImgBorderRadius' => 100,
278
- 'authorImgPosition' => 'right',
279
- 'stack' => 'tablet',
280
- 'enableTweet' => true,
281
- 'iconView' => 'icon_text',
282
- 'iconSkin' => 'link',
283
- 'tweetLinkColor' => '#1DA1F2',
284
- 'tweetBtnColor' => '#fff',
285
- 'tweetBtnBgColor' => '#1DA1F2',
286
- 'tweetBtnHoverColor' => '',
287
- 'tweetBtnBgHoverColor' => '#1DA1F2',
288
- 'tweetBtnFontSize' => 15,
289
- 'tweetBtnFontSizeType' => 'px',
290
- 'tweetBtnFontSizeTablet' => '',
291
- 'tweetBtnFontSizeMobile' => '',
292
- 'tweetBtnFontFamily' => '',
293
- 'tweetBtnFontWeight' => '',
294
- 'tweetBtnFontSubset' => '',
295
- 'tweetBtnLineHeightType' => 'em',
296
- 'tweetBtnLineHeight' => '',
297
- 'tweetBtnLineHeightTablet' => '',
298
- 'tweetBtnLineHeightMobile' => '',
299
- 'tweetBtnLoadGoogleFonts' => false,
300
- 'tweetBtnHrPadding' => 10,
301
- 'tweetBtnVrPadding' => 10,
302
- 'tweetIconSpacing' => 10,
303
- 'borderColor' => '#abb8c3',
304
- 'borderStyle' => 'solid',
305
- 'borderWidth' => 4,
306
- 'borderGap' => 15,
307
- 'verticalPadding' => '',
308
- 'quoteStyle' => 'style_1',
309
- 'quoteColor' => '#abb8c3',
310
- 'quoteSize' => 25,
311
- 'quoteSizeType' => 'px',
312
- 'quoteSizeTablet' => '',
313
- 'quoteSizeMobile' => '',
314
- 'quoteTopMargin' => '',
315
- 'quoteBottomMargin' => '',
316
- 'quoteLeftMargin' => '',
317
- 'quoteRightMargin' => 20,
318
- 'quoteBorderRadius' => 100,
319
- 'quoteBgColor' => '#333',
320
- 'quoteHoverColor' => '',
321
- 'quoteBgHoverColor' => '',
322
- 'borderHoverColor' => '',
323
- 'iconTargetUrl' => 'current',
324
- 'customUrl' => '',
325
- 'iconShareVia' => '',
326
- 'quotePadding' => 10,
327
- 'quotePaddingType' => 'px',
328
- 'quotePaddingTablet' => '',
329
- 'quotePaddingMobile' => '',
330
- ),
331
- ),
332
- 'uagb/call-to-action' => array(
333
- 'slug' => '',
334
- 'title' => __( 'Call To Action', 'ultimate-addons-for-gutenberg' ),
335
- 'description' => __( 'This block allows you to place an CTA along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
336
- 'default' => true,
337
- 'attributes' => array(
338
- 'textAlign' => 'left',
339
- 'titleColor' => '',
340
- 'descColor' => '',
341
- 'ctaPosition' => 'right',
342
- 'titleTag' => '',
343
- 'titleFontSize' => '',
344
- 'titleFontSizeType' => 'px',
345
- 'titleFontSizeMobile' => '',
346
- 'titleFontSizeTablet' => '',
347
- 'titleFontFamily' => '',
348
- 'titleFontWeight' => '',
349
- 'titleFontSubset' => '',
350
- 'titleLineHeightType' => 'em',
351
- 'titleLineHeight' => '',
352
- 'titleLineHeightTablet' => '',
353
- 'titleLineHeightMobile' => '',
354
- 'titleLoadGoogleFonts' => false,
355
- 'descFontSize' => '',
356
- 'descFontSizeType' => 'px',
357
- 'descFontSizeMobile' => '',
358
- 'descFontSizeTablet' => '',
359
- 'descFontFamily' => '',
360
- 'descFontWeight' => '',
361
- 'descFontSubset' => '',
362
- 'descLineHeightType' => 'em',
363
- 'descLineHeight' => '',
364
- 'descLineHeightTablet' => '',
365
- 'descLineHeightMobile' => '',
366
- 'descLoadGoogleFonts' => false,
367
- 'titleSpace' => 10,
368
- 'descSpace' => 10,
369
- 'buttonAlign' => 'top',
370
- 'ctaTarget' => false,
371
- 'ctaIconPosition' => 'after',
372
- 'ctaIconSpace' => 5,
373
- 'ctaType' => 'button',
374
- 'ctaLink' => '#',
375
- 'ctaFontSize' => '',
376
- 'ctaFontSizeType' => 'px',
377
- 'ctaFontSizeMobile' => '',
378
- 'ctaFontSizeTablet' => '',
379
- 'ctaFontFamily' => '',
380
- 'ctaFontWeight' => '',
381
- 'ctaFontSubset' => '',
382
- 'ctaLoadGoogleFonts' => false,
383
- 'ctaBtnLinkColor' => '#333',
384
- 'ctaBgColor' => 'transparent',
385
- 'ctaBgHoverColor' => 'transparent',
386
- 'ctaBorderColor' => '#333',
387
- 'ctaBorderhoverColor' => '',
388
- 'ctaBorderStyle' => 'solid',
389
- 'ctaBtnVertPadding' => 10,
390
- 'ctaBtnHrPadding' => 14,
391
- 'ctaBorderWidth' => 1,
392
- 'ctaBorderRadius' => 0,
393
- 'stack' => 'tablet',
394
- 'showTitle' => true,
395
- 'showDesc' => true,
396
- 'ctaLeftSpace' => 5,
397
- 'ctaRightSpace' => 5,
398
- 'contentWidth' => 70,
399
- 'ctaLinkHoverColor' => '',
400
- ),
401
- ),
402
- 'uagb/cf7-styler' => array(
403
- 'slug' => '',
404
- 'title' => __( 'Contact Form 7 Styler', 'ultimate-addons-for-gutenberg' ),
405
- 'description' => __( 'This block allows you to add and style your Contact Form 7 forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
406
- 'is_active' => class_exists( 'WPCF7_ContactForm' ),
407
- 'default' => true,
408
- 'attributes' => array(
409
- 'block_id' => '',
410
- 'align' => 'left',
411
- 'formId' => '0',
412
- 'fieldStyle' => 'box',
413
- 'fieldHrPadding' => 10,
414
- 'fieldVrPadding' => 10,
415
- 'fieldBgColor' => '#fafafa',
416
- 'fieldLabelColor' => '#333',
417
- 'fieldInputColor' => '#333',
418
- 'fieldBorderStyle' => 'solid',
419
- 'fieldBorderWidth' => 1,
420
- 'fieldBorderRadius' => 0,
421
- 'fieldBorderColor' => '#eeeeee',
422
- 'fieldBorderFocusColor' => '',
423
- 'buttonAlignment' => 'left',
424
- 'buttonVrPadding' => 10,
425
- 'buttonHrPadding' => 25,
426
- 'buttonTextColor' => '#333',
427
- 'buttonBgColor' => 'transparent',
428
- 'buttonTextHoverColor' => '',
429
- 'buttonBgHoverColor' => '',
430
- 'buttonBorderStyle' => 'solid',
431
- 'buttonBorderWidth' => 1,
432
- 'buttonBorderRadius' => 0,
433
- 'buttonBorderColor' => '#333',
434
- 'buttonBorderHoverColor' => '',
435
- 'fieldSpacing' => '',
436
- 'fieldLabelSpacing' => '',
437
- 'labelFontSize' => '',
438
- 'labelFontSizeType' => 'px',
439
- 'labelFontSizeTablet' => '',
440
- 'labelFontSizeMobile' => '',
441
- 'labelFontFamily' => '',
442
- 'labelFontWeight' => '',
443
- 'labelFontSubset' => '',
444
- 'labelLineHeightType' => 'px',
445
- 'labelLineHeight' => '',
446
- 'labelLineHeightTablet' => '',
447
- 'labelLineHeightMobile' => '',
448
- 'labelLoadGoogleFonts' => false,
449
- 'inputFontSize' => '',
450
- 'inputFontSizeType' => 'px',
451
- 'inputFontSizeTablet' => '',
452
- 'inputFontSizeMobile' => '',
453
- 'inputFontFamily' => '',
454
- 'inputFontWeight' => '',
455
- 'inputFontSubset' => '',
456
- 'inputLineHeightType' => 'px',
457
- 'inputLineHeight' => '',
458
- 'inputLineHeightTablet' => '',
459
- 'inputLineHeightMobile' => '',
460
- 'inputLoadGoogleFonts' => false,
461
- 'buttonFontSize' => '',
462
- 'buttonFontSizeType' => 'px',
463
- 'buttonFontSizeTablet' => '',
464
- 'buttonFontSizeMobile' => '',
465
- 'buttonFontFamily' => '',
466
- 'buttonFontWeight' => '',
467
- 'buttonFontSubset' => '',
468
- 'buttonLineHeightType' => 'px',
469
- 'buttonLineHeight' => '',
470
- 'buttonLineHeightTablet' => '',
471
- 'buttonLineHeightMobile' => '',
472
- 'buttonLoadGoogleFonts' => false,
473
- 'enableOveride' => true,
474
- 'radioCheckSize' => '',
475
- 'radioCheckBgColor' => '',
476
- 'radioCheckSelectColor' => '',
477
- 'radioCheckLableColor' => '',
478
- 'radioCheckBorderColor' => '#abb8c3',
479
- 'radioCheckBorderWidth' => '',
480
- 'radioCheckBorderRadius' => '',
481
- 'radioCheckFontSize' => '',
482
- 'radioCheckFontSizeType' => 'px',
483
- 'radioCheckFontSizeTablet' => '',
484
- 'radioCheckFontSizeMobile' => '',
485
- 'radioCheckFontFamily' => '',
486
- 'radioCheckFontWeight' => '',
487
- 'radioCheckFontSubset' => '',
488
- 'radioCheckLineHeightType' => 'px',
489
- 'radioCheckLineHeight' => '',
490
- 'radioCheckLineHeightTablet' => '',
491
- 'radioCheckLineHeightMobile' => '',
492
- 'radioCheckLoadGoogleFonts' => false,
493
- 'validationMsgPosition' => 'default',
494
- 'validationMsgColor' => '#ff0000',
495
- 'validationMsgBgColor' => '',
496
- 'enableHighlightBorder' => false,
497
- 'highlightBorderColor' => '#ff0000',
498
- 'validationMsgFontSize' => '',
499
- 'validationMsgFontSizeType' => 'px',
500
- 'validationMsgFontSizeTablet' => '',
501
- 'validationMsgFontSizeMobile' => '',
502
- 'validationMsgFontFamily' => '',
503
- 'validationMsgFontWeight' => '',
504
- 'validationMsgFontSubset' => '',
505
- 'validationMsgLineHeightType' => 'em',
506
- 'validationMsgLineHeight' => '',
507
- 'validationMsgLineHeightTablet' => '',
508
- 'validationMsgLineHeightMobile' => '',
509
- 'validationMsgLoadGoogleFonts' => false,
510
- 'successMsgColor' => '',
511
- 'successMsgBgColor' => '',
512
- 'successMsgBorderColor' => '',
513
- 'errorMsgColor' => '',
514
- 'errorMsgBgColor' => '',
515
- 'errorMsgBorderColor' => '',
516
- 'msgBorderSize' => '',
517
- 'msgBorderRadius' => '',
518
- 'msgVrPadding' => '',
519
- 'msgHrPadding' => '',
520
- 'msgFontSize' => '',
521
- 'msgFontSizeType' => 'px',
522
- 'msgFontSizeTablet' => '',
523
- 'msgFontSizeMobile' => '',
524
- 'msgFontFamily' => '',
525
- 'msgFontWeight' => '',
526
- 'msgFontSubset' => '',
527
- 'msgLineHeightType' => 'em',
528
- 'msgLineHeight' => '',
529
- 'msgLineHeightTablet' => '',
530
- 'msgLineHeightMobile' => '',
531
- 'msgLoadGoogleFonts' => false,
532
- 'radioCheckBorderRadiusType' => 'px',
533
- 'msgBorderRadiusType' => 'px',
534
- 'fieldBorderRadiusType' => 'px',
535
- 'buttonBorderRadiusType' => 'px',
536
- ),
537
- ),
538
- 'uagb/gf-styler' => array(
539
- 'slug' => '',
540
- 'title' => __( 'Gravity Form Styler', 'ultimate-addons-for-gutenberg' ),
541
- 'description' => __( 'This block allows you to add and style your Gravity Forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
542
- 'default' => true,
543
- 'is_active' => class_exists( 'GFForms' ),
544
- 'attributes' => array(
545
- 'block_id' => '',
546
- 'align' => 'left',
547
- 'enableAjax' => false,
548
- 'enableTabSupport' => false,
549
- 'formTabIndex' => '0',
550
- 'formId' => '0',
551
- 'titleDescStyle' => 'yes',
552
- 'titleDescAlignment' => 'left',
553
- 'fieldStyle' => 'box',
554
- 'fieldHrPadding' => 10,
555
- 'fieldVrPadding' => 10,
556
- 'fieldBgColor' => '#fafafa',
557
- 'fieldLabelColor' => '#333',
558
- 'fieldInputColor' => '#333',
559
- 'fieldBorderStyle' => 'solid',
560
- 'fieldBorderWidth' => 1,
561
- 'fieldBorderRadius' => 0,
562
- 'fieldBorderColor' => '#eeeeee',
563
- 'fieldBorderFocusColor' => '',
564
- 'buttonAlignment' => 'left',
565
- 'buttonVrPadding' => 10,
566
- 'buttonHrPadding' => 25,
567
- 'buttonTextColor' => '#333',
568
- 'buttonBgColor' => 'transparent',
569
- 'buttonTextHoverColor' => '',
570
- 'buttonBgHoverColor' => '',
571
- 'buttonBorderStyle' => 'solid',
572
- 'buttonBorderWidth' => 1,
573
- 'buttonBorderRadius' => 0,
574
- 'buttonBorderColor' => '#333',
575
- 'buttonBorderHoverColor' => '',
576
- 'fieldSpacing' => '',
577
- 'fieldLabelSpacing' => '',
578
- 'enableLabel' => false,
579
- 'textAreaHeight' => 'auto',
580
- 'labelFontSize' => '',
581
- 'labelFontSizeType' => 'px',
582
- 'labelFontSizeTablet' => '',
583
- 'labelFontSizeMobile' => '',
584
- 'labelFontFamily' => '',
585
- 'labelFontWeight' => '',
586
- 'labelFontSubset' => '',
587
- 'labelLineHeightType' => 'px',
588
- 'labelLineHeight' => '',
589
- 'labelLineHeightTablet' => '',
590
- 'labelLineHeightMobile' => '',
591
- 'labelLoadGoogleFonts' => false,
592
- 'inputFontSize' => '',
593
- 'inputFontSizeType' => 'px',
594
- 'inputFontSizeTablet' => '',
595
- 'inputFontSizeMobile' => '',
596
- 'inputFontFamily' => '',
597
- 'inputFontWeight' => '',
598
- 'inputFontSubset' => '',
599
- 'inputLineHeightType' => 'px',
600
- 'inputLineHeight' => '',
601
- 'inputLineHeightTablet' => '',
602
- 'inputLineHeightMobile' => '',
603
- 'inputLoadGoogleFonts' => false,
604
- 'buttonFontSize' => '',
605
- 'buttonFontSizeType' => 'px',
606
- 'buttonFontSizeTablet' => '',
607
- 'buttonFontSizeMobile' => '',
608
- 'buttonFontFamily' => '',
609
- 'buttonFontWeight' => '',
610
- 'buttonFontSubset' => '',
611
- 'buttonLineHeightType' => 'px',
612
- 'buttonLineHeight' => '',
613
- 'buttonLineHeightTablet' => '',
614
- 'buttonLineHeightMobile' => '',
615
- 'buttonLoadGoogleFonts' => false,
616
- 'enableOveride' => true,
617
- 'radioCheckSize' => '20',
618
- 'radioCheckBgColor' => '#fafafa',
619
- 'radioCheckSelectColor' => '',
620
- 'radioCheckLableColor' => '',
621
- 'radioCheckBorderColor' => '#cbcbcb',
622
- 'radioCheckBorderWidth' => '1',
623
- 'radioCheckBorderRadius' => '',
624
- 'radioCheckFontSize' => '',
625
- 'radioCheckFontSizeType' => 'px',
626
- 'radioCheckFontSizeTablet' => '',
627
- 'radioCheckFontSizeMobile' => '',
628
- 'radioCheckFontFamily' => '',
629
- 'radioCheckFontWeight' => '',
630
- 'radioCheckFontSubset' => '',
631
- 'radioCheckLineHeightType' => 'px',
632
- 'radioCheckLineHeight' => '',
633
- 'radioCheckLineHeightTablet' => '',
634
- 'radioCheckLineHeightMobile' => '',
635
- 'radioCheckLoadGoogleFonts' => false,
636
- 'validationMsgColor' => '#ff0000',
637
- 'advancedValidationSettings' => false,
638
- 'highlightBorderColor' => '#ff0000',
639
- 'validationMsgFontSize' => '',
640
- 'validationMsgBgColor' => '',
641
- 'validationMsgFontSizeType' => 'px',
642
- 'validationMsgFontSizeTablet' => '',
643
- 'validationMsgFontSizeMobile' => '',
644
- 'validationMsgFontFamily' => '',
645
- 'validationMsgFontWeight' => '',
646
- 'validationMsgFontSubset' => '',
647
- 'validationMsgLineHeightType' => 'em',
648
- 'validationMsgLineHeight' => '',
649
- 'validationMsgLineHeightTablet' => '',
650
- 'validationMsgLineHeightMobile' => '',
651
- 'validationMsgLoadGoogleFonts' => false,
652
- 'successMsgBorderColor' => '',
653
- 'errorMsgColor' => '',
654
- 'errorMsgBgColor' => '',
655
- 'errorMsgBorderColor' => '',
656
- 'msgBorderSize' => '',
657
- 'msgBorderRadius' => '',
658
- 'msgVrPadding' => '',
659
- 'msgHrPadding' => '',
660
- 'msgFontSize' => '',
661
- 'msgFontSizeType' => 'px',
662
- 'msgFontSizeTablet' => '',
663
- 'msgFontSizeMobile' => '',
664
- 'msgFontFamily' => '',
665
- 'msgFontWeight' => '',
666
- 'msgFontSubset' => '',
667
- 'msgLineHeightType' => 'em',
668
- 'msgLineHeight' => '',
669
- 'msgLineHeightTablet' => '',
670
- 'msgLineHeightMobile' => '',
671
- 'msgLoadGoogleFonts' => false,
672
- 'radioCheckBorderRadiusType' => 'px',
673
- 'msgBorderRadiusType' => 'px',
674
- 'fieldBorderRadiusType' => 'px',
675
- 'buttonBorderRadiusType' => 'px',
676
- 'successMsgColor' => '',
677
- 'successMsgFontSize' => '',
678
- 'successMsgFontSizeType' => 'px',
679
- 'successMsgFontSizeTablet' => '',
680
- 'successMsgFontSizeMobile' => '',
681
- 'successMsgFontFamily' => '',
682
- 'successMsgFontWeight' => '',
683
- 'successMsgFontSubset' => '',
684
- 'successMsgLineHeightType' => 'em',
685
- 'successMsgLineHeight' => '',
686
- 'successMsgLineHeightTablet' => '',
687
- 'successMsgLineHeightMobile' => '',
688
- 'successMsgLoadGoogleFonts' => false,
689
- ),
690
- ),
691
- 'uagb/content-timeline' => array(
692
- 'slug' => '',
693
- 'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ),
694
- 'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ),
695
- 'default' => true,
696
- 'js_assets' => array( 'uagb-timeline-js' ),
697
- 'attributes' => array(
698
- 'align' => 'center',
699
- 'headingColor' => '',
700
- 'subHeadingColor' => '',
701
- 'separatorBg' => '#eee',
702
- 'backgroundColor' => '#eee',
703
- 'separatorColor' => '#eee',
704
- 'separatorFillColor' => '#61ce70',
705
- 'separatorBorder' => '#eee',
706
- 'borderFocus' => '#5cb85c',
707
- 'horizontalSpace' => 10,
708
- 'verticalSpace' => 15,
709
- 'headFontSizeType' => 'px',
710
- 'headFontSize' => '',
711
- 'headFontSizeTablet' => '',
712
- 'headFontSizeMobile' => '',
713
- 'headFontFamily' => '',
714
- 'headFontWeight' => '',
715
- 'headFontSubset' => '',
716
- 'headLineHeightType' => 'em',
717
- 'headLineHeight' => '',
718
- 'headLineHeightTablet' => '',
719
- 'headLineHeightMobile' => '',
720
- 'headLoadGoogleFonts' => false,
721
- 'timelinAlignment' => 'center',
722
- 'arrowlinAlignment' => 'center',
723
- 'subHeadFontSizeType' => 'px',
724
- 'subHeadFontSize' => '',
725
- 'subHeadFontSizeTablet' => '',
726
- 'subHeadFontSizeMobile' => '',
727
- 'subHeadFontFamily' => '',
728
- 'subHeadFontWeight' => '',
729
- 'subHeadFontSubset' => '',
730
- 'subHeadLineHeightType' => 'em',
731
- 'subHeadLineHeight' => '',
732
- 'subHeadLineHeightTablet' => '',
733
- 'subHeadLineHeightMobile' => '',
734
- 'subHeadLoadGoogleFonts' => false,
735
- 'headSpace' => 5,
736
- 'separatorwidth' => 3,
737
- 'borderwidth' => 0,
738
- 'iconColor' => '#333',
739
- 'iconFocus' => '#fff',
740
- 'iconBgFocus' => '#61ce70',
741
- 'dateColor' => '#333',
742
- 'dateFontsizeType' => 'px',
743
- 'dateFontsize' => '12',
744
- 'dateFontsizeTablet' => '',
745
- 'dateFontsizeMobile' => '',
746
- 'dateFontFamily' => '',
747
- 'dateFontWeight' => '',
748
- 'dateFontSubset' => '',
749
- 'dateLineHeightType' => 'em',
750
- 'dateLineHeight' => '',
751
- 'dateLineHeightTablet' => '',
752
- 'dateLineHeightMobile' => '',
753
- 'dateLoadGoogleFonts' => false,
754
- 'connectorBgsize' => 35,
755
- 'dateBottomspace' => 5,
756
- 'borderRadius' => 2,
757
- 'bgPadding' => 20,
758
- 'iconSize' => 12,
759
- 'stack' => 'tablet',
760
- ),
761
- ),
762
- 'uagb/google-map' => array(
763
- 'slug' => '',
764
- 'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ),
765
- 'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ),
766
- 'default' => true,
767
- 'attributes' => array(
768
- 'block_id' => '',
769
- 'height' => '300',
770
- ),
771
- ),
772
- 'uagb/icon-list' => array(
773
- 'slug' => '',
774
- 'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ),
775
- 'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ),
776
- 'default' => true,
777
- 'attributes' => array(
778
- 'align' => 'left',
779
- 'icon_count' => '1',
780
- 'icons' => array(
781
- array(
782
- 'label' => __( 'Label #1', 'ultimate-addons-for-gutenberg' ),
783
- 'image_icon' => 'icon',
784
- 'icon' => 'fab fa-facebook',
785
- 'image' => '',
786
- 'icon_color' => '#3a3a3a',
787
- 'icon_hover_color' => '#3a3a3a',
788
- 'icon_bg_color' => '',
789
- 'icon_bg_hover_color' => '',
790
- 'icon_border_color' => '',
791
- 'icon_border_hover_color' => '',
792
- 'label_color' => '',
793
- 'label_hover_color' => '',
794
- 'link' => '#',
795
- 'target' => false,
796
- ),
797
- ),
798
- 'gap' => '10',
799
- 'inner_gap' => '15',
800
- 'size' => '16',
801
- 'sizeType' => 'px',
802
- 'sizeMobile' => '',
803
- 'sizeTablet' => '',
804
- 'bgSize' => '0',
805
- 'border' => '0',
806
- 'borderRadius' => '0',
807
- 'fontSize' => '',
808
- 'fontSizeType' => 'px',
809
- 'fontSizeMobile' => '',
810
- 'fontSizeTablet' => '',
811
- 'lineHeight' => '',
812
- 'lineHeightType' => 'em',
813
- 'lineHeightMobile' => '',
814
- 'lineHeightTablet' => '',
815
- 'fontFamily' => '',
816
- 'fontWeight' => '',
817
- 'fontSubset' => '',
818
- 'loadGoogleFonts' => false,
819
- 'icon_layout' => 'vertical',
820
- 'stack' => 'none',
821
- ),
822
- ),
823
- 'uagb/info-box' => array(
824
- 'slug' => '',
825
- 'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ),
826
- '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' ),
827
- 'default' => true,
828
- 'attributes' => array(
829
- 'headingAlign' => 'center',
830
- 'headingColor' => '',
831
- 'subHeadingColor' => '',
832
- 'prefixColor' => '',
833
- 'prefixFontSize' => '',
834
- 'prefixFontSizeType' => 'px',
835
- 'prefixFontSizeTablet' => '',
836
- 'prefixFontSizeMobile' => '',
837
- 'prefixFontFamily' => '',
838
- 'prefixFontWeight' => '',
839
- 'prefixFontSubset' => '',
840
- 'prefixLineHeightType' => 'em',
841
- 'prefixLineHeight' => '',
842
- 'prefixLineHeightTablet' => '',
843
- 'prefixLineHeightMobile' => '',
844
- 'prefixLoadGoogleFonts' => false,
845
- 'headFontSize' => '',
846
- 'headFontSizeType' => 'px',
847
- 'headFontSizeTablet' => '',
848
- 'headFontSizeMobile' => '',
849
- 'headFontFamily' => '',
850
- 'headFontWeight' => '',
851
- 'headFontSubset' => '',
852
- 'headLineHeightType' => 'em',
853
- 'headLineHeight' => '',
854
- 'headLineHeightTablet' => '',
855
- 'headLineHeightMobile' => '',
856
- 'headLoadGoogleFonts' => false,
857
- 'subHeadFontSize' => '',
858
- 'subHeadFontSizeType' => 'px',
859
- 'subHeadFontSizeTablet' => '',
860
- 'subHeadFontSizeMobile' => '',
861
- 'subHeadFontFamily' => '',
862
- 'subHeadFontWeight' => '',
863
- 'subHeadFontSubset' => '',
864
- 'subHeadLineHeightType' => 'em',
865
- 'subHeadLineHeight' => '',
866
- 'subHeadLineHeightTablet' => '',
867
- 'subHeadLineHeightMobile' => '',
868
- 'subHeadLoadGoogleFonts' => false,
869
- 'separatorWidth' => '',
870
- 'separatorHeight' => '',
871
- 'separatorWidthType' => '%',
872
- 'headSpace' => '10',
873
- 'separatorSpace' => '10',
874
- 'subHeadSpace' => '10',
875
- 'icon' => '',
876
- 'iconColor' => '#333',
877
- 'iconSize' => '40',
878
- 'iconimgPosition' => 'above-title',
879
- 'block_id' => '',
880
- 'iconHover' => '',
881
- 'iconimgBorderRadius' => '0',
882
- 'seperatorStyle' => 'solid',
883
- 'seperatorWidth' => '30',
884
- 'seperatorColor' => '#333',
885
- 'seperatorThickness' => '2',
886
- 'ctaLinkColor' => '#333',
887
- 'ctaFontSize' => '',
888
- 'ctaFontSizeType' => 'px',
889
- 'ctaFontSizeMobile' => '',
890
- 'ctaFontSizeTablet' => '',
891
- 'ctaFontFamily' => '',
892
- 'ctaFontWeight' => '',
893
- 'ctaFontSubset' => '',
894
- 'ctaLoadGoogleFonts' => false,
895
- 'ctaBtnLinkColor' => '#333',
896
- 'ctaBgColor' => 'transparent',
897
- 'ctaBtnVertPadding' => '10',
898
- 'ctaBtnHrPadding' => '14',
899
- 'ctaBorderStyle' => 'solid',
900
- 'ctaBorderColor' => '#333',
901
- 'ctaBorderWidth' => '1',
902
- 'ctaBorderRadius' => '0',
903
- 'prefixSpace' => '5',
904
- 'iconLeftMargin' => '5',
905
- 'iconRightMargin' => '10',
906
- 'iconTopMargin' => '5',
907
- 'iconBottomMargin' => '5',
908
- 'imageSize' => 'thumbnail',
909
- 'imageWidthType' => true,
910
- 'imageWidth' => '120',
911
- 'seperatorSpace' => '15',
912
- 'ctaLinkHoverColor' => '',
913
- 'ctaBgHoverColor' => '',
914
- 'ctaBorderhoverColor' => '',
915
- 'ctaIconSpace' => '5',
916
- ),
917
- ),
918
- 'uagb/marketing-button' => array(
919
- 'slug' => '',
920
- 'title' => __( 'Marketing Button', 'ultimate-addons-for-gutenberg' ),
921
- 'description' => __( 'This block allows you to place a Marketing Button with small description.', 'ultimate-addons-for-gutenberg' ),
922
- 'default' => true,
923
- 'attributes' => array(
924
- 'block_id' => '',
925
- 'align' => 'center',
926
- 'textAlign' => 'center',
927
- 'link' => '#',
928
- 'linkTarget' => false,
929
- 'titleSpace' => 0,
930
- 'borderStyle' => 'solid',
931
- 'borderWidth' => 1,
932
- 'borderRadius' => '',
933
- 'borderColor' => '#333',
934
- 'borderHoverColor' => '',
935
- 'vPadding' => 8,
936
- 'hPadding' => 20,
937
- 'vPaddingMobile' => '',
938
- 'hPaddingMobile' => '',
939
- 'vPaddingTablet' => '',
940
- 'hPaddingTablet' => '',
941
- 'paddingType' => 'px',
942
- 'backgroundType' => 'color',
943
- 'backgroundColor' => '#eeeeee',
944
- 'backgroundHoverColor' => '',
945
- 'gradientColor1' => '',
946
- 'gradientColor2' => '',
947
- 'gradientType' => 'linear',
948
- 'gradientLocation1' => 0,
949
- 'gradientLocation2' => 100,
950
- 'gradientAngle' => 0,
951
- 'backgroundOpacity' => '',
952
- 'backgroundHoverOpacity' => '',
953
- 'titleColor' => '#333',
954
- 'titleHoverColor' => '',
955
- 'iconColor' => '#333',
956
- 'iconHoverColor' => '',
957
- 'iconPosition' => 'before',
958
- 'prefixColor' => '#333',
959
- 'prefixHoverColor' => '',
960
- 'iconSpace' => 10,
961
- 'titleLoadGoogleFonts' => false,
962
- 'titleFontFamily' => '',
963
- 'titleFontWeight' => '',
964
- 'titleFontSubset' => '',
965
- 'titleFontSize' => 20,
966
- 'titleFontSizeType' => 'px',
967
- 'titleFontSizeTablet' => 20,
968
- 'titleFontSizeMobile' => 20,
969
- 'titleLineHeightType' => 'em',
970
- 'titleLineHeight' => '',
971
- 'titleLineHeightTablet' => '',
972
- 'titleLineHeightMobile' => '',
973
- 'prefixLoadGoogleFonts' => false,
974
- 'prefixFontFamily' => '',
975
- 'prefixFontWeight' => '',
976
- 'prefixFontSubset' => '',
977
- 'prefixFontSize' => 14,
978
- 'prefixFontSizeType' => 'px',
979
- 'prefixFontSizeTablet' => 14,
980
- 'prefixFontSizeMobile' => 14,
981
- 'prefixLineHeightType' => 'em',
982
- 'prefixLineHeight' => '',
983
- 'prefixLineHeightTablet' => '',
984
- 'prefixLineHeightMobile' => '',
985
- 'iconFontSize' => 20,
986
- 'iconFontSizeType' => 'px',
987
- 'iconFontSizeTablet' => 20,
988
- 'iconFontSizeMobile' => 20,
989
- ),
990
- ),
991
- 'uagb/buttons' => array(
992
- 'slug' => '',
993
- 'title' => __( 'Multi Buttons', 'ultimate-addons-for-gutenberg' ),
994
- 'description' => __( 'This block allows you to add multiple buttons with a single block.', 'ultimate-addons-for-gutenberg' ),
995
- 'default' => true,
996
- 'attributes' => array(
997
- 'block_id' => '',
998
- 'align' => 'center',
999
- 'btn_count' => '2',
1000
- 'buttons' => UAGB_Helper::get_button_defaults(),
1001
- 'gap' => 10,
1002
- 'stack' => 'none',
1003
- 'fontFamily' => '',
1004
- 'fontWeight' => '',
1005
- 'loadGoogleFonts' => false,
1006
- 'fontSubset' => '',
1007
- ),
1008
- ),
1009
- 'uagb/post-carousel' => array(
1010
- 'slug' => '',
1011
- 'title' => __( 'Post Carousel', 'ultimate-addons-for-gutenberg' ),
1012
- 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a carousel layout.', 'ultimate-addons-for-gutenberg' ),
1013
- 'default' => true,
1014
- 'js_assets' => array( 'uagb-slick-js', 'uagb-carousel-js', 'uagb-imagesloaded' ),
1015
- 'css_assets' => array( 'uagb-slick-css' ),
1016
- 'attributes' => array(
1017
- 'align' => 'left',
1018
- 'rowGap' => '20',
1019
- 'columnGap' => '20',
1020
- 'bgColor' => '#e4e4e4',
1021
- 'titleColor' => '#3b3b3b',
1022
- 'titleTag' => 'h3',
1023
- 'titleFontSize' => '',
1024
- 'titleFontSizeType' => 'px',
1025
- 'titleFontSizeMobile' => '',
1026
- 'titleFontSizeTablet' => '',
1027
- 'titleFontFamily' => '',
1028
- 'titleFontWeight' => '',
1029
- 'titleFontSubset' => '',
1030
- 'titleLineHeightType' => 'em',
1031
- 'titleLineHeight' => '',
1032
- 'titleLineHeightTablet' => '',
1033
- 'titleLineHeightMobile' => '',
1034
- 'titleLoadGoogleFonts' => false,
1035
- 'metaFontSize' => '',
1036
- 'metaFontSizeType' => 'px',
1037
- 'metaFontSizeMobile' => '',
1038
- 'metaFontSizeTablet' => '',
1039
- 'metaFontFamily' => '',
1040
- 'metaFontWeight' => '',
1041
- 'metaFontSubset' => '',
1042
- 'metaLineHeightType' => 'em',
1043
- 'metaLineHeight' => '',
1044
- 'metaLineHeightTablet' => '',
1045
- 'metaLineHeightMobile' => '',
1046
- 'metaLoadGoogleFonts' => false,
1047
- 'excerptFontSize' => '',
1048
- 'excerptFontSizeType' => 'px',
1049
- 'excerptFontSizeMobile' => '',
1050
- 'excerptFontSizeTablet' => '',
1051
- 'excerptFontFamily' => '',
1052
- 'excerptFontWeight' => '',
1053
- 'excerptFontSubset' => '',
1054
- 'excerptLineHeightType' => 'em',
1055
- 'excerptLineHeight' => '',
1056
- 'excerptLineHeightTablet' => '',
1057
- 'excerptLineHeightMobile' => '',
1058
- 'excerptLoadGoogleFonts' => false,
1059
- 'ctaFontSize' => '',
1060
- 'ctaFontSizeType' => 'px',
1061
- 'ctaFontSizeTablet' => '',
1062
- 'ctaFontSizeMobile' => '',
1063
- 'ctaFontFamily' => '',
1064
- 'ctaFontWeight' => '',
1065
- 'ctaFontSubset' => '',
1066
- 'ctaLineHeightType' => 'em',
1067
- 'ctaLineHeight' => '',
1068
- 'ctaLineHeightTablet' => '',
1069
- 'ctaLineHeightMobile' => '',
1070
- 'ctaLoadGoogleFonts' => false,
1071
- 'metaColor' => '#777777',
1072
- 'excerptColor' => '',
1073
- 'ctaColor' => '#ffffff',
1074
- 'ctaBgColor' => '#333333',
1075
- 'ctaHColor' => '',
1076
- 'ctaBgHColor' => '',
1077
- 'contentPadding' => '20',
1078
- 'contentPaddingMobile' => '',
1079
- 'btnVPadding' => '5',
1080
- 'btnHPadding' => '10',
1081
- 'titleBottomSpace' => '15',
1082
- 'metaBottomSpace' => '15',
1083
- 'excerptBottomSpace' => '25',
1084
- 'arrowSize' => '20',
1085
- 'arrowColor' => '#aaaaaa',
1086
- 'arrowDots' => '',
1087
- 'arrowBorderSize' => '1',
1088
- 'arrowBorderRadius' => '0',
1089
- 'overlayOpacity' => '50',
1090
- 'bgOverlayColor' => '#ffffff',
1091
- 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1092
- 'borderWidth' => '1',
1093
- 'borderStyle' => 'none',
1094
- 'borderColor' => '',
1095
- 'borderHColor' => '',
1096
- 'borderRadius' => '0',
1097
- ),
1098
- ),
1099
- 'uagb/post-grid' => array(
1100
- 'slug' => '',
1101
- 'title' => __( 'Post Grid', 'ultimate-addons-for-gutenberg' ),
1102
- 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a grid layout.', 'ultimate-addons-for-gutenberg' ),
1103
- 'default' => true,
1104
- 'attributes' => array(
1105
- 'align' => 'left',
1106
- 'rowGap' => '20',
1107
- 'columnGap' => '20',
1108
- 'bgColor' => '#e4e4e4',
1109
- 'titleColor' => '#3b3b3b',
1110
- 'titleTag' => 'h3',
1111
- 'titleFontSize' => '',
1112
- 'titleFontSizeType' => 'px',
1113
- 'titleFontSizeMobile' => '',
1114
- 'titleFontSizeTablet' => '',
1115
- 'titleFontFamily' => '',
1116
- 'titleFontWeight' => '',
1117
- 'titleFontSubset' => '',
1118
- 'titleLineHeightType' => 'em',
1119
- 'titleLineHeight' => '',
1120
- 'titleLineHeightTablet' => '',
1121
- 'titleLineHeightMobile' => '',
1122
- 'titleLoadGoogleFonts' => false,
1123
- 'metaFontSize' => '',
1124
- 'metaFontSizeType' => 'px',
1125
- 'metaFontSizeMobile' => '',
1126
- 'metaFontSizeTablet' => '',
1127
- 'metaFontFamily' => '',
1128
- 'metaFontWeight' => '',
1129
- 'metaFontSubset' => '',
1130
- 'metaLineHeightType' => 'em',
1131
- 'metaLineHeight' => '',
1132
- 'metaLineHeightTablet' => '',
1133
- 'metaLineHeightMobile' => '',
1134
- 'metaLoadGoogleFonts' => false,
1135
- 'excerptFontSize' => '',
1136
- 'excerptFontSizeType' => 'px',
1137
- 'excerptFontSizeMobile' => '',
1138
- 'excerptFontSizeTablet' => '',
1139
- 'excerptFontFamily' => '',
1140
- 'excerptFontWeight' => '',
1141
- 'excerptFontSubset' => '',
1142
- 'excerptLineHeightType' => 'em',
1143
- 'excerptLineHeight' => '',
1144
- 'excerptLineHeightTablet' => '',
1145
- 'excerptLineHeightMobile' => '',
1146
- 'excerptLoadGoogleFonts' => false,
1147
- 'ctaFontSize' => '',
1148
- 'ctaFontSizeType' => 'px',
1149
- 'ctaFontSizeTablet' => '',
1150
- 'ctaFontSizeMobile' => '',
1151
- 'ctaFontFamily' => '',
1152
- 'ctaFontWeight' => '',
1153
- 'ctaFontSubset' => '',
1154
- 'ctaLineHeightType' => 'em',
1155
- 'ctaLineHeight' => '',
1156
- 'ctaLineHeightTablet' => '',
1157
- 'ctaLineHeightMobile' => '',
1158
- 'ctaLoadGoogleFonts' => false,
1159
- 'metaColor' => '#777777',
1160
- 'excerptColor' => '',
1161
- 'ctaColor' => '#ffffff',
1162
- 'ctaBgColor' => '#333333',
1163
- 'ctaHColor' => '',
1164
- 'ctaBgHColor' => '',
1165
- 'contentPadding' => '20',
1166
- 'contentPaddingMobile' => '',
1167
- 'btnVPadding' => '5',
1168
- 'btnHPadding' => '10',
1169
- 'titleBottomSpace' => '15',
1170
- 'metaBottomSpace' => '15',
1171
- 'excerptBottomSpace' => '25',
1172
- 'overlayOpacity' => '50',
1173
- 'bgOverlayColor' => '#ffffff',
1174
- 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1175
- 'borderWidth' => '1',
1176
- 'borderStyle' => 'none',
1177
- 'borderColor' => '',
1178
- 'borderHColor' => '',
1179
- 'borderRadius' => '0',
1180
- ),
1181
- ),
1182
- 'uagb/post-masonry' => array(
1183
- 'slug' => '',
1184
- 'title' => __( 'Post Masonry', 'ultimate-addons-for-gutenberg' ),
1185
- 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a masonry layout.', 'ultimate-addons-for-gutenberg' ),
1186
- 'default' => true,
1187
- 'js_assets' => array( 'uagb-masonry', 'uagb-imagesloaded' ),
1188
- 'attributes' => array(
1189
- 'align' => 'left',
1190
- 'rowGap' => '20',
1191
- 'columnGap' => '20',
1192
- 'bgColor' => '#e4e4e4',
1193
- 'titleColor' => '#3b3b3b',
1194
- 'titleTag' => 'h3',
1195
- 'titleFontSize' => '',
1196
- 'titleFontSizeType' => 'px',
1197
- 'titleFontSizeMobile' => '',
1198
- 'titleFontSizeTablet' => '',
1199
- 'titleFontFamily' => '',
1200
- 'titleFontWeight' => '',
1201
- 'titleFontSubset' => '',
1202
- 'titleLineHeightType' => 'em',
1203
- 'titleLineHeight' => '',
1204
- 'titleLineHeightTablet' => '',
1205
- 'titleLineHeightMobile' => '',
1206
- 'titleLoadGoogleFonts' => false,
1207
- 'metaFontSize' => '',
1208
- 'metaFontSizeType' => 'px',
1209
- 'metaFontSizeMobile' => '',
1210
- 'metaFontSizeTablet' => '',
1211
- 'metaFontFamily' => '',
1212
- 'metaFontWeight' => '',
1213
- 'metaFontSubset' => '',
1214
- 'metaLineHeightType' => 'em',
1215
- 'metaLineHeight' => '',
1216
- 'metaLineHeightTablet' => '',
1217
- 'metaLineHeightMobile' => '',
1218
- 'metaLoadGoogleFonts' => false,
1219
- 'excerptFontSize' => '',
1220
- 'excerptFontSizeType' => 'px',
1221
- 'excerptFontSizeMobile' => '',
1222
- 'excerptFontSizeTablet' => '',
1223
- 'excerptFontFamily' => '',
1224
- 'excerptFontWeight' => '',
1225
- 'excerptFontSubset' => '',
1226
- 'excerptLineHeightType' => 'em',
1227
- 'excerptLineHeight' => '',
1228
- 'excerptLineHeightTablet' => '',
1229
- 'excerptLineHeightMobile' => '',
1230
- 'excerptLoadGoogleFonts' => false,
1231
- 'ctaFontSize' => '',
1232
- 'ctaFontSizeType' => 'px',
1233
- 'ctaFontSizeTablet' => '',
1234
- 'ctaFontSizeMobile' => '',
1235
- 'ctaFontFamily' => '',
1236
- 'ctaFontWeight' => '',
1237
- 'ctaFontSubset' => '',
1238
- 'ctaLineHeightType' => 'em',
1239
- 'ctaLineHeight' => '',
1240
- 'ctaLineHeightTablet' => '',
1241
- 'ctaLineHeightMobile' => '',
1242
- 'ctaLoadGoogleFonts' => false,
1243
- 'metaColor' => '#777777',
1244
- 'excerptColor' => '',
1245
- 'ctaColor' => '#ffffff',
1246
- 'ctaBgColor' => '#333333',
1247
- 'ctaHColor' => '',
1248
- 'ctaBgHColor' => '',
1249
- 'contentPadding' => '20',
1250
- 'contentPaddingMobile' => '',
1251
- 'btnVPadding' => '5',
1252
- 'btnHPadding' => '10',
1253
- 'titleBottomSpace' => '15',
1254
- 'metaBottomSpace' => '15',
1255
- 'excerptBottomSpace' => '25',
1256
- 'overlayOpacity' => '50',
1257
- 'bgOverlayColor' => '#ffffff',
1258
- 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1259
- 'borderWidth' => '1',
1260
- 'borderStyle' => 'none',
1261
- 'borderColor' => '',
1262
- 'borderHColor' => '',
1263
- 'borderRadius' => '0',
1264
- ),
1265
- ),
1266
- 'uagb/post-timeline' => array(
1267
- 'slug' => '',
1268
- 'title' => __( 'Post Timeline', 'ultimate-addons-for-gutenberg' ),
1269
- 'description' => __( 'The Timeline block lets you create beautiful timelines of Posts on your website.', 'ultimate-addons-for-gutenberg' ),
1270
- 'default' => true,
1271
- 'js_assets' => array( 'uagb-timeline-js' ),
1272
- 'attributes' => array(
1273
- 'align' => 'center',
1274
- 'headingColor' => '',
1275
- 'subHeadingColor' => '',
1276
- 'separatorBg' => '#eee',
1277
- 'backgroundColor' => '#eee',
1278
- 'separatorColor' => '#eee',
1279
- 'separatorFillColor' => '#61ce70',
1280
- 'separatorBorder' => '#eee',
1281
- 'borderFocus' => '#5cb85c',
1282
- 'horizontalSpace' => 10,
1283
- 'verticalSpace' => 15,
1284
- 'headFontSizeType' => 'px',
1285
- 'headFontSize' => '',
1286
- 'headFontSizeTablet' => '',
1287
- 'headFontSizeMobile' => '',
1288
- 'headFontFamily' => '',
1289
- 'headFontWeight' => '',
1290
- 'headFontSubset' => '',
1291
- 'headLineHeightType' => 'em',
1292
- 'headLineHeight' => '',
1293
- 'headLineHeightTablet' => '',
1294
- 'headLineHeightMobile' => '',
1295
- 'headLoadGoogleFonts' => false,
1296
- 'timelinAlignment' => 'center',
1297
- 'arrowlinAlignment' => 'center',
1298
- 'subHeadFontSizeType' => 'px',
1299
- 'subHeadFontSize' => '',
1300
- 'subHeadFontSizeTablet' => '',
1301
- 'subHeadFontSizeMobile' => '',
1302
- 'subHeadFontFamily' => '',
1303
- 'subHeadFontWeight' => '',
1304
- 'subHeadFontSubset' => '',
1305
- 'subHeadLineHeightType' => 'em',
1306
- 'subHeadLineHeight' => '',
1307
- 'subHeadLineHeightTablet' => '',
1308
- 'subHeadLineHeightMobile' => '',
1309
- 'subHeadLoadGoogleFonts' => false,
1310
- 'headSpace' => 5,
1311
- 'contentSpace' => 5,
1312
- 'authorSpace' => 5,
1313
- 'separatorwidth' => 3,
1314
- 'borderwidth' => 0,
1315
- 'iconColor' => '#333',
1316
- 'iconFocus' => '#fff',
1317
- 'iconBgFocus' => '#61ce70',
1318
- 'dateColor' => '#333',
1319
- 'dateFontsizeType' => 'px',
1320
- 'dateFontsize' => 12,
1321
- 'dateFontsizeTablet' => '',
1322
- 'dateFontsizeMobile' => '',
1323
- 'dateFontFamily' => '',
1324
- 'dateFontWeight' => '',
1325
- 'dateFontSubset' => '',
1326
- 'dateLineHeightType' => 'em',
1327
- 'dateLineHeight' => '',
1328
- 'dateLineHeightTablet' => '',
1329
- 'dateLineHeightMobile' => '',
1330
- 'dateLoadGoogleFonts' => false,
1331
- 'connectorBgsize' => 35,
1332
- 'dateBottomspace' => 5,
1333
- 'borderRadius' => 2,
1334
- 'bgPadding' => 20,
1335
- 'contentPadding' => 10,
1336
- 'iconSize' => 12,
1337
- 'stack' => 'tablet',
1338
- 'ctaColor' => '#fff',
1339
- 'authorColor' => '#333',
1340
- 'ctaFontSizeType' => 'px',
1341
- 'ctaFontSize' => '',
1342
- 'ctaFontSizeTablet' => '',
1343
- 'ctaFontSizeMobile' => '',
1344
- 'ctaFontFamily' => '',
1345
- 'ctaFontWeight' => '',
1346
- 'ctaFontSubset' => '',
1347
- 'ctaLineHeightType' => 'em',
1348
- 'ctaLineHeight' => '',
1349
- 'ctaLineHeightTablet' => '',
1350
- 'ctaLineHeightMobile' => '',
1351
- 'ctaLoadGoogleFonts' => false,
1352
- 'authorFontSizeType' => 'px',
1353
- 'authorFontSize' => 11,
1354
- 'authorFontSizeTablet' => '',
1355
- 'authorFontSizeMobile' => '',
1356
- 'authorFontFamily' => '',
1357
- 'authorFontWeight' => '',
1358
- 'authorFontSubset' => '',
1359
- 'authorLineHeightType' => 'em',
1360
- 'authorLineHeight' => '',
1361
- 'authorLineHeightTablet' => '',
1362
- 'authorLineHeightMobile' => '',
1363
- 'authorLoadGoogleFonts' => false,
1364
- 'ctaBackground' => '#333',
1365
- ),
1366
- ),
1367
- 'uagb/restaurant-menu' => array(
1368
- 'slug' => '',
1369
- 'title' => __( 'Price List', 'ultimate-addons-for-gutenberg' ),
1370
- 'description' => __( 'This block allows you to add attractive Price List.', 'ultimate-addons-for-gutenberg' ),
1371
- 'default' => true,
1372
- 'attributes' => array(
1373
- 'block_id' => '',
1374
- 'headingAlign' => 'left',
1375
- 'descColor' => '#333',
1376
- 'priceColor' => '#888888',
1377
- 'titleColor' => '#333',
1378
- 'imagePosition' => 'top',
1379
- 'imageAlignment' => 'top',
1380
- 'titleFontSize' => '',
1381
- 'titleFontSizeType' => 'px',
1382
- 'titleFontSizeMobile' => '',
1383
- 'titleFontSizeTablet' => '',
1384
- 'titleFontFamily' => '',
1385
- 'titleFontWeight' => '',
1386
- 'titleFontSubset' => '',
1387
- 'titleLineHeightType' => 'em',
1388
- 'titleLineHeight' => '',
1389
- 'titleLineHeightTablet' => '',
1390
- 'titleLineHeightMobile' => '',
1391
- 'titleLoadGoogleFonts' => false,
1392
- 'priceFontSize' => '',
1393
- 'priceFontSizeType' => 'px',
1394
- 'priceFontSizeMobile' => '',
1395
- 'priceFontSizeTablet' => '',
1396
- 'priceFontFamily' => '',
1397
- 'priceFontWeight' => '',
1398
- 'priceFontSubset' => '',
1399
- 'priceLineHeightType' => 'em',
1400
- 'priceLineHeight' => '',
1401
- 'priceLineHeightTablet' => '',
1402
- 'priceLineHeightMobile' => '',
1403
- 'priceLoadGoogleFonts' => false,
1404
- 'descFontSize' => '',
1405
- 'descFontSizeType' => 'px',
1406
- 'descFontSizeMobile' => '',
1407
- 'descFontSizeTablet' => '',
1408
- 'descFontFamily' => '',
1409
- 'descFontWeight' => '',
1410
- 'descFontSubset' => '',
1411
- 'descLineHeightType' => 'em',
1412
- 'descLineHeight' => '',
1413
- 'descLineHeightTablet' => '',
1414
- 'descLineHeightMobile' => '',
1415
- 'descLoadGoogleFonts' => false,
1416
- 'priceSpace' => 5,
1417
- 'descSpace' => 15,
1418
- 'titleSpace' => 10,
1419
- 'imgVrPadding' => 0,
1420
- 'imgHrPadding' => 0,
1421
- 'imgTopPadding' => 0,
1422
- 'imgBottomPadding' => 0,
1423
- 'iconImage' => '',
1424
- 'imageSize' => 'medium',
1425
- 'imageWidth' => '',
1426
- 'columns' => 2,
1427
- 'tcolumns' => 2,
1428
- 'mcolumns' => 1,
1429
- 'rowGap' => 10,
1430
- 'columnGap' => 10,
1431
- 'contentHrPadding' => 5,
1432
- 'contentVrPadding' => 5,
1433
- 'seperatorStyle' => 'dashed',
1434
- 'seperatorWidth' => '100',
1435
- 'seperatorThickness' => '1',
1436
- 'seperatorColor' => '#b2b4b5',
1437
- ),
1438
- ),
1439
- 'uagb/section' => array(
1440
- 'slug' => '',
1441
- 'title' => __( 'Section', 'ultimate-addons-for-gutenberg' ),
1442
- 'description' => __( 'This block is an outer wrap section that allows you to add other blocks within it.', 'ultimate-addons-for-gutenberg' ),
1443
- 'default' => true,
1444
- 'attributes' => array(
1445
- 'topPadding' => '20',
1446
- 'bottomPadding' => '20',
1447
- 'leftPadding' => '20',
1448
- 'rightPadding' => '20',
1449
- 'topMargin' => '0',
1450
- 'bottomMargin' => '0',
1451
- 'leftMargin' => '0',
1452
- 'rightMargin' => '0',
1453
- 'topPaddingTablet' => '',
1454
- 'bottomPaddingTablet' => '',
1455
- 'leftPaddingTablet' => '',
1456
- 'rightPaddingTablet' => '',
1457
- 'topPaddingMobile' => '',
1458
- 'bottomPaddingMobile' => '',
1459
- 'leftPaddingMobile' => '',
1460
- 'rightPaddingMobile' => '',
1461
- 'topMarginMobile' => '',
1462
- 'bottomMarginMobile' => '',
1463
- 'leftMarginMobile' => '',
1464
- 'rightMarginMobile' => '',
1465
- 'topMarginTablet' => '',
1466
- 'bottomMarginTablet' => '',
1467
- 'leftMarginTablet' => '',
1468
- 'rightMarginTablet' => '',
1469
- 'contentWidth' => 'boxed',
1470
- 'width' => '900',
1471
- 'innerWidth' => '1140',
1472
- 'innerWidthType' => 'px',
1473
- 'tag' => 'section',
1474
- 'backgroundType' => 'none',
1475
- 'gradientColor1' => '',
1476
- 'gradientColor2' => '',
1477
- 'backgroundVideoColor' => '',
1478
- 'backgroundPosition' => 'center-center',
1479
- 'backgroundSize' => 'cover',
1480
- 'backgroundRepeat' => 'no-repeat',
1481
- 'backgroundAttachment' => 'scroll',
1482
- 'gradientType' => 'linear',
1483
- 'gradientLocation1' => '0',
1484
- 'gradientLocation2' => '100',
1485
- 'gradientAngle' => '0',
1486
- 'gradientPosition' => 'center center',
1487
- 'backgroundColor' => '',
1488
- 'backgroundOpacity' => '',
1489
- 'backgroundVideoOpacity' => '50',
1490
- 'backgroundImageColor' => '',
1491
- 'align' => 'center',
1492
- 'borderStyle' => 'none',
1493
- 'borderWidth' => '1',
1494
- 'borderRadius' => '',
1495
- 'borderColor' => '',
1496
- 'themeWidth' => false,
1497
- 'mobileMarginType' => 'px',
1498
- 'tabletMarginType' => 'px',
1499
- 'desktopMarginType' => 'px',
1500
- 'mobilePaddingType' => 'px',
1501
- 'tabletPaddingType' => 'px',
1502
- 'desktopPaddingType' => 'px',
1503
- 'overlayType' => 'color',
1504
- 'gradientOverlayColor1' => '',
1505
- 'gradientOverlayColor2' => '',
1506
- 'gradientOverlayType' => 'linear',
1507
- 'gradientOverlayLocation1' => '0',
1508
- 'gradientOverlayLocation2' => '100',
1509
- 'gradientOverlayAngle' => '0',
1510
- 'gradientOverlayPosition' => 'center center',
1511
- ),
1512
- ),
1513
- 'uagb/social-share' => array(
1514
- 'slug' => '',
1515
- 'title' => __( 'Social Share', 'ultimate-addons-for-gutenberg' ),
1516
- 'description' => __( 'This block allows you to let users share your content across various social networking sites.', 'ultimate-addons-for-gutenberg' ),
1517
- 'default' => true,
1518
- 'attributes' => array(
1519
- 'align' => 'center',
1520
- 'social_count' => '1',
1521
- 'socials' => array(
1522
- array(
1523
- 'type' => 'facebook',
1524
- 'image_icon' => 'icon',
1525
- 'icon' => 'fab fa-facebook',
1526
- 'image' => '',
1527
- 'icon_color' => '#3a3a3a',
1528
- 'icon_hover_color' => '#3a3a3a',
1529
- 'icon_bg_color' => '',
1530
- 'icon_bg_hover_color' => '',
1531
- ),
1532
- ),
1533
- 'gap' => '10',
1534
- 'size' => '40',
1535
- 'sizeType' => 'px',
1536
- 'sizeMobile' => '',
1537
- 'sizeTablet' => '',
1538
- 'bgSize' => '0',
1539
- 'bgSizeType' => 'px',
1540
- 'bgSizeMobile' => '',
1541
- 'bgSizeTablet' => '',
1542
- 'borderRadius' => '0',
1543
- 'social_layout' => 'horizontal',
1544
- 'stack' => 'none',
1545
- ),
1546
- ),
1547
- 'uagb/table-of-contents' => array(
1548
- 'slug' => '',
1549
- 'title' => __( 'Table of Contents', 'ultimate-addons-for-gutenberg' ),
1550
- 'description' => __( 'This block allows you to place a Table of Contents for Pages/Posts.', 'ultimate-addons-for-gutenberg' ),
1551
- 'default' => true,
1552
- 'js_assets' => array( 'uagb-table-of-contents' ),
1553
- 'attributes' => array(
1554
- 'block_id' => '',
1555
- 'heading' => 'Table Of Contents',
1556
- 'disableBullets' => false,
1557
- 'smoothScroll' => true,
1558
- 'smoothScrollOffset' => 30,
1559
- 'scrollToTop' => false,
1560
- 'scrollToTopColor' => '',
1561
- 'scrollToTopBgColor' => '',
1562
- 'considerH1' => true,
1563
- 'considerH2' => true,
1564
- 'considerH3' => true,
1565
- 'considerH4' => true,
1566
- 'considerH5' => true,
1567
- 'considerH6' => true,
1568
- 'customWidth' => false,
1569
- 'widthDesktop' => 100,
1570
- 'widthTablet' => '',
1571
- 'widthMobile' => '',
1572
- 'tColumnsDesktop' => 1,
1573
- 'tColumnsTablet' => 1,
1574
- 'tColumnsMobile' => 1,
1575
- 'widthTypeDesktop' => '%',
1576
- 'widthTypeTablet' => '%',
1577
- 'widthTypeMobile' => '%',
1578
- 'makeCollapsible' => false,
1579
- 'initialCollapse' => false,
1580
- 'icon' => 'fa-angle-down',
1581
- 'iconColor' => '',
1582
- 'iconSize' => '',
1583
- 'align' => 'left',
1584
- 'linkColor' => '#333',
1585
- 'vPaddingDesktop' => 30,
1586
- 'vPaddingTablet' => '',
1587
- 'vPaddingMobile' => '',
1588
- 'hPaddingDesktop' => 30,
1589
- 'hPaddingTablet' => '',
1590
- 'hPaddingMobile' => '',
1591
- 'paddingTypeDesktop' => 'px',
1592
- 'paddingTypeTablet' => 'px',
1593
- 'paddingTypeMobile' => 'px',
1594
- 'vMarginDesktop' => '',
1595
- 'vMarginTablet' => '',
1596
- 'vMarginMobile' => '',
1597
- 'hMarginDesktop' => '',
1598
- 'hMarginTablet' => '',
1599
- 'hMarginMobile' => '',
1600
- 'marginTypeDesktop' => 'px',
1601
- 'marginTypeTablet' => 'px',
1602
- 'marginTypeMobile' => 'px',
1603
- 'contentPaddingDesktop' => '',
1604
- 'contentPaddingTablet' => '',
1605
- 'contentPaddingMobile' => '',
1606
- 'contentPaddingTypeDesktop' => 'px',
1607
- 'contentPaddingTypeTablet' => 'px',
1608
- 'contentPaddingTypeMobile' => 'px',
1609
- 'headingBottom' => '',
1610
- 'backgroundColor' => '#eee',
1611
- 'linkHoverColor' => '',
1612
- 'headingColor' => '',
1613
- 'borderStyle' => 'solid',
1614
- 'borderWidth' => 1,
1615
- 'borderRadius' => '',
1616
- 'borderColor' => '#333',
1617
- 'loadGoogleFonts' => false,
1618
- 'fontFamily' => '',
1619
- 'fontWeight' => '',
1620
- 'fontSubset' => '',
1621
- 'fontSize' => '',
1622
- 'fontSizeType' => 'px',
1623
- 'fontSizeTablet' => '',
1624
- 'fontSizeMobile' => '',
1625
- 'lineHeightType' => 'em',
1626
- 'lineHeight' => '',
1627
- 'lineHeightTablet' => '',
1628
- 'lineHeightMobile' => '',
1629
- 'headingLoadGoogleFonts' => false,
1630
- 'headingFontFamily' => '',
1631
- 'headingFontWeight' => '500',
1632
- 'headingFontSubset' => '',
1633
- 'headingFontSize' => 20,
1634
- 'headingFontSizeType' => 'px',
1635
- 'headingFontSizeTablet' => '',
1636
- 'headingFontSizeMobile' => '',
1637
- 'headingLineHeightType' => 'em',
1638
- 'headingLineHeight' => '',
1639
- 'headingLineHeightTablet' => '',
1640
- 'headingLineHeightMobile' => '',
1641
- ),
1642
- ),
1643
- 'uagb/team' => array(
1644
- 'slug' => '',
1645
- 'title' => __( 'Team', 'ultimate-addons-for-gutenberg' ),
1646
- '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' ),
1647
- 'default' => true,
1648
- 'attributes' => array(
1649
- 'block_id' => '',
1650
- 'align' => 'center',
1651
- 'tag' => 'h3',
1652
- 'titleColor' => '',
1653
- 'prefixColor' => '#888888',
1654
- 'descColor' => '',
1655
- 'socialColor' => '#333',
1656
- 'socialHoverColor' => '',
1657
- 'titleFontFamily' => '',
1658
- 'titleLoadGoogleFonts' => false,
1659
- 'titleFontWeight' => '',
1660
- 'titleFontSubset' => '',
1661
- 'titleFontSize' => '',
1662
- 'titleFontSizeType' => 'px',
1663
- 'titleFontSizeTablet' => '',
1664
- 'titleFontSizeMobile' => '',
1665
- 'titleLineHeight' => '',
1666
- 'titleLineHeightType' => 'em',
1667
- 'titleLineHeightTablet' => '',
1668
- 'titleLineHeightMobile' => '',
1669
- 'prefixFontFamily' => '',
1670
- 'prefixLoadGoogleFonts' => false,
1671
- 'prefixFontWeight' => '',
1672
- 'prefixFontSubset' => '',
1673
- 'prefixFontSize' => 15,
1674
- 'prefixFontSizeType' => 'px',
1675
- 'prefixFontSizeTablet' => '',
1676
- 'prefixFontSizeMobile' => '',
1677
- 'prefixLineHeight' => '',
1678
- 'prefixLineHeightType' => 'em',
1679
- 'prefixLineHeightTablet' => '',
1680
- 'prefixLineHeightMobile' => '',
1681
- 'descFontFamily' => '',
1682
- 'descLoadGoogleFonts' => false,
1683
- 'descFontWeight' => '',
1684
- 'descFontSubset' => '',
1685
- 'descFontSize' => 15,
1686
- 'descFontSizeType' => 'px',
1687
- 'descFontSizeTablet' => '',
1688
- 'descFontSizeMobile' => '',
1689
- 'descLineHeight' => '',
1690
- 'descLineHeightType' => 'em',
1691
- 'descLineHeightTablet' => '',
1692
- 'descLineHeightMobile' => '',
1693
- 'socialFontSize' => 20,
1694
- 'socialFontSizeType' => 'px',
1695
- 'socialFontSizeMobile' => '',
1696
- 'socialFontSizeTablet' => '',
1697
- 'image' => '',
1698
- 'imgStyle' => 'normal',
1699
- 'imgPosition' => 'above',
1700
- 'imgAlign' => 'top',
1701
- 'imgSiz' => 'thumbnail',
1702
- 'imgWidth' => 120,
1703
- 'titleSpace' => '',
1704
- 'prefixSpace' => '',
1705
- 'descSpace' => 10,
1706
- 'imgLeftMargin' => 20,
1707
- 'imgRightMargin' => 20,
1708
- 'imgTopMargin' => 15,
1709
- 'imgBottomMargin' => 15,
1710
- 'socialSpace' => 20,
1711
- 'headingTag' => 'h3',
1712
- ),
1713
- ),
1714
- 'uagb/testimonial' => array(
1715
- 'slug' => '',
1716
- 'title' => __( 'Testimonial', 'ultimate-addons-for-gutenberg' ),
1717
- 'description' => __( 'This block helps your display some amazing client feedback within your website.', 'ultimate-addons-for-gutenberg' ),
1718
- 'default' => true,
1719
- 'js_assets' => array( 'uagb-slick-js' ),
1720
- 'css_assets' => array( 'uagb-slick-css' ),
1721
- 'attributes' => array(
1722
- 'headingAlign' => 'center',
1723
- 'companyColor' => '#888888',
1724
- 'descColor' => '#333',
1725
- 'authorColor' => '#333',
1726
- 'nameFontSizeType' => 'px',
1727
- 'nameFontSize' => '',
1728
- 'nameFontSizeTablet' => '',
1729
- 'nameFontSizeMobile' => '',
1730
- 'nameFontFamily' => '',
1731
- 'nameFontWeight' => '',
1732
- 'nameFontSubset' => '',
1733
- 'nameLineHeightType' => 'em',
1734
- 'nameLineHeight' => '',
1735
- 'nameLineHeightTablet' => '',
1736
- 'nameLineHeightMobile' => '',
1737
- 'nameLoadGoogleFonts' => false,
1738
- 'companyFontSizeType' => 'px',
1739
- 'companyFontSize' => '',
1740
- 'companyFontSizeTablet' => '',
1741
- 'companyFontSizeMobile' => '',
1742
- 'companyFontFamily' => '',
1743
- 'companyFontWeight' => '',
1744
- 'companyFontSubset' => '',
1745
- 'companyLineHeightType' => 'em',
1746
- 'companyLineHeight' => '',
1747
- 'companyLineHeightTablet' => '',
1748
- 'companyLineHeightMobile' => '',
1749
- 'companyLoadGoogleFonts' => false,
1750
- 'descFontSizeType' => 'px',
1751
- 'descFontSize' => '',
1752
- 'descFontSizeTablet' => '',
1753
- 'descFontSizeMobile' => '',
1754
- 'descFontFamily' => '',
1755
- 'descFontWeight' => '',
1756
- 'descFontSubset' => '',
1757
- 'descLineHeightType' => 'em',
1758
- 'descLineHeight' => '',
1759
- 'descLineHeightTablet' => '',
1760
- 'descLineHeightMobile' => '',
1761
- 'descLoadGoogleFonts' => false,
1762
- 'descSpace' => 15,
1763
- 'block_id' => '',
1764
- 'nameSpace' => 5,
1765
- 'imgVrPadding' => 10,
1766
- 'imgHrPadding' => 10,
1767
- 'imageWidth' => 60,
1768
- 'rowGap' => 10,
1769
- 'columnGap' => 10,
1770
- 'contentPadding' => 5,
1771
- 'backgroundColor' => '',
1772
- 'backgroundImage' => '',
1773
- 'backgroundPosition' => 'center-center',
1774
- 'backgroundSize' => 'cover',
1775
- 'backgroundRepeat' => 'no-repeat',
1776
- 'backgroundImageColor' => '',
1777
- 'backgroundOpacity' => 0,
1778
- 'borderStyle' => 'none',
1779
- 'borderWidth' => 1,
1780
- 'borderRadius' => 0,
1781
- 'borderColor' => '#333',
1782
- 'arrowColor' => '#333',
1783
- 'arrowDots' => 'arrowDots',
1784
- 'arrowBorderSize' => 1,
1785
- 'arrowBorderRadius' => 0,
1786
- 'columns' => 1,
1787
- 'autoplaySpeed' => 2000,
1788
- 'autoplay' => true,
1789
- 'infiniteLoop' => true,
1790
- 'pauseOnHover' => true,
1791
- 'transitionSpeed' => 500,
1792
- 'tcolumns' => 1,
1793
- 'mcolumns' => 1,
1794
- 'arrowSize' => 20,
1795
- 'test_item_count' => 3,
1796
- ),
1797
- ),
1798
- );
1799
- }
1800
- return self::$block_attributes;
1801
- }
1802
-
1803
- /**
1804
- * Get Block Assets.
1805
- *
1806
- * @since 1.13.4
1807
- *
1808
- * @return array The Asset List.
1809
- */
1810
- public static function get_block_assets() {
1811
-
1812
- if ( null === self::$block_assets ) {
1813
- self::$block_assets = array(
1814
- 'uagb-timeline-js' => array(
1815
- 'src' => UAGB_URL . 'assets/js/timeline.js',
1816
- 'dep' => array( 'jquery' ),
1817
- ),
1818
- 'uagb-masonry' => array(
1819
- 'src' => UAGB_URL . 'assets/js/isotope.min.js',
1820
- 'dep' => array( 'jquery' ),
1821
- ),
1822
- 'uagb-imagesloaded' => array(
1823
- 'src' => UAGB_URL . 'assets/js/imagesloaded.min.js',
1824
- 'dep' => array( 'jquery' ),
1825
- ),
1826
- 'uagb-table-of-contents' => array(
1827
- 'src' => UAGB_URL . 'assets/js/table-of-contents.js',
1828
- 'dep' => array( 'jquery' ),
1829
- ),
1830
- 'uagb-slick-js' => array(
1831
- 'src' => UAGB_URL . 'assets/js/slick.min.js',
1832
- 'dep' => array( 'jquery' ),
1833
- ),
1834
- 'uagb-slick-css' => array(
1835
- 'src' => UAGB_URL . 'assets/css/slick.css',
1836
- 'dep' => array(),
1837
- ),
1838
- 'uagb-carousel-js' => array(
1839
- 'src' => UAGB_URL . 'assets/js/post-carousel.js',
1840
- 'dep' => array( 'jquery', 'uagb-slick-js' ),
1841
- ),
1842
- );
1843
- }
1844
- return self::$block_assets;
1845
- }
1846
- }
1847
- }
1
+ <?php
2
+ /**
3
+ * UAGB Config.
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit; // Exit if accessed directly.
10
+ }
11
+
12
+ if ( ! class_exists( 'UAGB_Config' ) ) {
13
+
14
+ /**
15
+ * Class UAGB_Config.
16
+ */
17
+ class UAGB_Config {
18
+
19
+ /**
20
+ * Block Attributes
21
+ *
22
+ * @var block_attributes
23
+ */
24
+ public static $block_attributes = null;
25
+
26
+ /**
27
+ * Block Assets
28
+ *
29
+ * @var block_attributes
30
+ */
31
+ public static $block_assets = null;
32
+
33
+ /**
34
+ * Get Widget List.
35
+ *
36
+ * @since 0.0.1
37
+ *
38
+ * @return array The Widget List.
39
+ */
40
+ public static function get_block_attributes() {
41
+
42
+ if ( null === self::$block_attributes ) {
43
+ self::$block_attributes = array(
44
+ 'uagb/advanced-heading' => array(
45
+ 'slug' => '',
46
+ 'title' => __( 'Advanced Heading', 'ultimate-addons-for-gutenberg' ),
47
+ 'description' => __( 'This block lets you add a combination of a heading and a sub-heading with a separator in between.', 'ultimate-addons-for-gutenberg' ),
48
+ 'default' => true,
49
+ 'attributes' => array(
50
+ 'headingAlign' => 'center',
51
+ 'headingColor' => '',
52
+ 'subHeadingColor' => '',
53
+ 'separatorColor' => '',
54
+ 'seperatorStyle' => 'solid',
55
+ 'separatorHeight' => '',
56
+ 'separatorWidth' => '',
57
+ 'separatorWidthType' => '%',
58
+ 'headFontFamily' => '',
59
+ 'headLoadGoogleFonts' => false,
60
+ 'headFontWeight' => '',
61
+ 'headFontSubset' => '',
62
+ 'headFontSize' => '',
63
+ 'headFontSizeType' => 'px',
64
+ 'headFontSizeTablet' => '',
65
+ 'headFontSizeMobile' => '',
66
+ 'headLineHeight' => '',
67
+ 'headLineHeightType' => 'em',
68
+ 'headLineHeightTablet' => '',
69
+ 'headLineHeightMobile' => '',
70
+ 'subHeadFontFamily' => '',
71
+ 'subHeadLoadGoogleFonts' => false,
72
+ 'subHeadFontWeight' => '',
73
+ 'subHeadFontSubset' => '',
74
+ 'subHeadFontSize' => '',
75
+ 'subHeadFontSizeType' => 'px',
76
+ 'subHeadFontSizeTablet' => '',
77
+ 'subHeadFontSizeMobile' => '',
78
+ 'subHeadLineHeight' => '',
79
+ 'subHeadLineHeightType' => 'em',
80
+ 'subHeadLineHeightTablet' => '',
81
+ 'subHeadLineHeightMobile' => '',
82
+ 'headSpace' => 15,
83
+ 'separatorSpace' => 15,
84
+ ),
85
+ ),
86
+ 'uagb/columns' => array(
87
+ 'slug' => '',
88
+ 'title' => __( 'Advanced Columns', 'ultimate-addons-for-gutenberg' ),
89
+ 'description' => __( 'This block gives you advanced options to insert a number of columns within a single row.', 'ultimate-addons-for-gutenberg' ),
90
+ 'default' => true,
91
+ 'attributes' => array(
92
+ 'block_id' => '',
93
+ 'columns' => '2',
94
+ 'align' => '',
95
+ 'vAlign' => '',
96
+ 'stack' => 'mobile',
97
+ 'topPadding' => '20',
98
+ 'bottomPadding' => '20',
99
+ 'leftPadding' => '20',
100
+ 'rightPadding' => '20',
101
+ 'topMargin' => '0',
102
+ 'bottomMargin' => '0',
103
+ 'topPaddingTablet' => '',
104
+ 'bottomPaddingTablet' => '',
105
+ 'leftPaddingTablet' => '',
106
+ 'rightPaddingTablet' => '',
107
+ 'topPaddingMobile' => '',
108
+ 'bottomPaddingMobile' => '',
109
+ 'leftPaddingMobile' => '',
110
+ 'rightPaddingMobile' => '',
111
+ 'topMarginMobile' => '',
112
+ 'bottomMarginMobile' => '',
113
+ 'topMarginTablet' => '',
114
+ 'bottomMarginTablet' => '',
115
+ 'contentWidth' => 'theme',
116
+ 'width' => '900',
117
+ 'widthType' => 'px',
118
+ 'tag' => 'section',
119
+ 'backgroundType' => 'none',
120
+ 'backgroundImage' => '',
121
+ 'backgroundPosition' => 'center-center',
122
+ 'backgroundSize' => 'cover',
123
+ 'backgroundRepeat' => 'no-repeat',
124
+ 'backgroundAttachment' => 'scroll',
125
+ 'backgroundVideo' => '',
126
+ 'backgroundColor' => '',
127
+ 'gradientColor1' => '',
128
+ 'gradientColor2' => '',
129
+ 'gradientType' => 'linear',
130
+ 'gradientLocation1' => '0',
131
+ 'gradientLocation2' => '100',
132
+ 'gradientAngle' => '0',
133
+ 'gradientPosition' => 'center center',
134
+ 'backgroundOpacity' => '',
135
+ 'backgroundVideoOpacity' => '50',
136
+ 'backgroundVideoColor' => '',
137
+ 'backgroundImageColor' => '',
138
+ 'borderStyle' => 'none',
139
+ 'borderWidth' => '1',
140
+ 'borderRadius' => '',
141
+ 'borderColor' => '',
142
+ 'columnGap' => '10',
143
+ 'bottomType' => 'none',
144
+ 'bottomColor' => '#333',
145
+ 'bottomHeight' => '',
146
+ 'bottomHeightTablet' => '',
147
+ 'bottomHeightMobile' => '',
148
+ 'bottomWidth' => '',
149
+ 'topType' => 'none',
150
+ 'topColor' => '#333',
151
+ 'topHeight' => '',
152
+ 'topHeightTablet' => '',
153
+ 'topHeightMobile' => '',
154
+ 'topWidth' => '',
155
+ 'bottomFlip' => '',
156
+ 'topFlip' => '',
157
+ 'mobileMarginType' => 'px',
158
+ 'tabletMarginType' => 'px',
159
+ 'desktopMarginType' => 'px',
160
+ 'mobilePaddingType' => 'px',
161
+ 'tabletPaddingType' => 'px',
162
+ 'desktopPaddingType' => 'px',
163
+ ),
164
+ ),
165
+ 'uagb/column' => array(
166
+ 'slug' => '',
167
+ 'title' => __( 'Column', 'ultimate-addons-for-gutenberg' ),
168
+ 'description' => __( 'This block is an immediate child of Advanced Columns.', 'ultimate-addons-for-gutenberg' ),
169
+ 'default' => true,
170
+ 'is_child' => true,
171
+ 'attributes' => array(
172
+ 'block_id' => '',
173
+ 'topPadding' => '',
174
+ 'bottomPadding' => '',
175
+ 'leftPadding' => '',
176
+ 'rightPadding' => '',
177
+ 'topMargin' => '',
178
+ 'bottomMargin' => '',
179
+ 'leftMargin' => '',
180
+ 'rightMargin' => '',
181
+ 'topPaddingTablet' => '',
182
+ 'bottomPaddingTablet' => '',
183
+ 'leftPaddingTablet' => '',
184
+ 'rightPaddingTablet' => '',
185
+ 'topPaddingMobile' => '',
186
+ 'bottomPaddingMobile' => '',
187
+ 'leftPaddingMobile' => '',
188
+ 'rightPaddingMobile' => '',
189
+ 'topMarginMobile' => '',
190
+ 'bottomMarginMobile' => '',
191
+ 'leftMarginMobile' => '',
192
+ 'rightMarginMobile' => '',
193
+ 'topMarginTablet' => '',
194
+ 'bottomMarginTablet' => '',
195
+ 'leftMarginTablet' => '',
196
+ 'rightMarginTablet' => '',
197
+ 'colWidth' => '',
198
+ 'colWidthTablet' => '',
199
+ 'colWidthMobile' => '',
200
+ 'backgroundType' => 'none',
201
+ 'backgroundImage' => '',
202
+ 'backgroundPosition' => 'center-center',
203
+ 'backgroundSize' => 'cover',
204
+ 'backgroundRepeat' => 'no-repeat',
205
+ 'backgroundAttachment' => 'scroll',
206
+ 'backgroundColor' => '',
207
+ 'gradientColor1' => '',
208
+ 'gradientColor2' => '',
209
+ 'gradientType' => 'linear',
210
+ 'gradientLocation1' => 0,
211
+ 'gradientLocation2' => 100,
212
+ 'gradientAngle' => 0,
213
+ 'backgroundOpacity' => '',
214
+ 'backgroundImageColor' => '',
215
+ 'borderStyle' => 'none',
216
+ 'borderWidth' => 1,
217
+ 'borderRadius' => '',
218
+ 'borderColor' => '',
219
+ 'align' => 'center',
220
+ 'alignMobile' => '',
221
+ 'alignTablet' => '',
222
+ 'mobileMarginType' => 'px',
223
+ 'tabletMarginType' => 'px',
224
+ 'desktopMarginType' => 'px',
225
+ 'mobilePaddingType' => 'px',
226
+ 'tabletPaddingType' => 'px',
227
+ 'desktopPaddingType' => 'px',
228
+ 'overlayType' => 'color',
229
+ 'gradientOverlayColor1' => '',
230
+ 'gradientOverlayColor2' => '',
231
+ 'gradientOverlayType' => 'linear',
232
+ 'gradientOverlayLocation1' => '0',
233
+ 'gradientOverlayLocation2' => '100',
234
+ 'gradientOverlayAngle' => '0',
235
+ ),
236
+ ),
237
+ 'uagb/blockquote' => array(
238
+ 'slug' => '',
239
+ 'title' => __( 'Blockquote', 'ultimate-addons-for-gutenberg' ),
240
+ 'description' => __( 'This block allows you to display your Blockquote.', 'ultimate-addons-for-gutenberg' ),
241
+ 'default' => true,
242
+ 'attributes' => array(
243
+ 'block_id ' => '',
244
+ 'skinStyle' => 'border',
245
+ 'align' => 'left',
246
+ 'descColor' => '',
247
+ 'descFontSize' => '',
248
+ 'descFontSizeType' => 'px',
249
+ 'descFontSizeTablet' => '',
250
+ 'descFontSizeMobile' => '',
251
+ 'descFontFamily' => '',
252
+ 'descFontWeight' => '',
253
+ 'descFontSubset' => '',
254
+ 'descLineHeightType' => 'em
255
+ ',
256
+ 'descLineHeight' => '',
257
+ 'descLineHeightTablet' => '',
258
+ 'descLineHeightMobile' => '',
259
+ 'descLoadGoogleFonts' => false,
260
+ 'descSpace' => 20,
261
+ 'authorColor' => '#888888',
262
+ 'authorFontSize' => '',
263
+ 'authorFontSizeType' => 'px',
264
+ 'authorFontSizeTablet' => '',
265
+ 'authorFontSizeMobile' => '',
266
+ 'authorFontFamily' => '',
267
+ 'authorFontWeight' => '',
268
+ 'authorFontSubset' => '',
269
+ 'authorLineHeightType' => 'em
270
+ ',
271
+ 'authorLineHeight' => '',
272
+ 'authorLineHeightTablet' => '',
273
+ 'authorLineHeightMobile' => '',
274
+ 'authorLoadGoogleFonts' => false,
275
+ 'authorSpace' => 10,
276
+ 'authorImageWidth' => 40,
277
+ 'authorImgBorderRadius' => 100,
278
+ 'authorImgPosition' => 'right',
279
+ 'stack' => 'tablet',
280
+ 'enableTweet' => true,
281
+ 'iconView' => 'icon_text',
282
+ 'iconSkin' => 'link',
283
+ 'tweetLinkColor' => '#1DA1F2',
284
+ 'tweetBtnColor' => '#fff',
285
+ 'tweetBtnBgColor' => '#1DA1F2',
286
+ 'tweetBtnHoverColor' => '',
287
+ 'tweetBtnBgHoverColor' => '#1DA1F2',
288
+ 'tweetBtnFontSize' => 15,
289
+ 'tweetBtnFontSizeType' => 'px',
290
+ 'tweetBtnFontSizeTablet' => '',
291
+ 'tweetBtnFontSizeMobile' => '',
292
+ 'tweetBtnFontFamily' => '',
293
+ 'tweetBtnFontWeight' => '',
294
+ 'tweetBtnFontSubset' => '',
295
+ 'tweetBtnLineHeightType' => 'em',
296
+ 'tweetBtnLineHeight' => '',
297
+ 'tweetBtnLineHeightTablet' => '',
298
+ 'tweetBtnLineHeightMobile' => '',
299
+ 'tweetBtnLoadGoogleFonts' => false,
300
+ 'tweetBtnHrPadding' => 10,
301
+ 'tweetBtnVrPadding' => 10,
302
+ 'tweetIconSpacing' => 10,
303
+ 'borderColor' => '#abb8c3',
304
+ 'borderStyle' => 'solid',
305
+ 'borderWidth' => 4,
306
+ 'borderGap' => 15,
307
+ 'verticalPadding' => '',
308
+ 'quoteStyle' => 'style_1',
309
+ 'quoteColor' => '#abb8c3',
310
+ 'quoteSize' => 25,
311
+ 'quoteSizeType' => 'px',
312
+ 'quoteSizeTablet' => '',
313
+ 'quoteSizeMobile' => '',
314
+ 'quoteTopMargin' => '',
315
+ 'quoteBottomMargin' => '',
316
+ 'quoteLeftMargin' => '',
317
+ 'quoteRightMargin' => 20,
318
+ 'quoteBorderRadius' => 100,
319
+ 'quoteBgColor' => '#333',
320
+ 'quoteHoverColor' => '',
321
+ 'quoteBgHoverColor' => '',
322
+ 'borderHoverColor' => '',
323
+ 'iconTargetUrl' => 'current',
324
+ 'customUrl' => '',
325
+ 'iconShareVia' => '',
326
+ 'quotePadding' => 10,
327
+ 'quotePaddingType' => 'px',
328
+ 'quotePaddingTablet' => '',
329
+ 'quotePaddingMobile' => '',
330
+ ),
331
+ ),
332
+ 'uagb/call-to-action' => array(
333
+ 'slug' => '',
334
+ 'title' => __( 'Call To Action', 'ultimate-addons-for-gutenberg' ),
335
+ 'description' => __( 'This block allows you to place an CTA along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
336
+ 'default' => true,
337
+ 'attributes' => array(
338
+ 'textAlign' => 'left',
339
+ 'titleColor' => '',
340
+ 'descColor' => '',
341
+ 'ctaPosition' => 'right',
342
+ 'titleTag' => '',
343
+ 'titleFontSize' => '',
344
+ 'titleFontSizeType' => 'px',
345
+ 'titleFontSizeMobile' => '',
346
+ 'titleFontSizeTablet' => '',
347
+ 'titleFontFamily' => '',
348
+ 'titleFontWeight' => '',
349
+ 'titleFontSubset' => '',
350
+ 'titleLineHeightType' => 'em',
351
+ 'titleLineHeight' => '',
352
+ 'titleLineHeightTablet' => '',
353
+ 'titleLineHeightMobile' => '',
354
+ 'titleLoadGoogleFonts' => false,
355
+ 'descFontSize' => '',
356
+ 'descFontSizeType' => 'px',
357
+ 'descFontSizeMobile' => '',
358
+ 'descFontSizeTablet' => '',
359
+ 'descFontFamily' => '',
360
+ 'descFontWeight' => '',
361
+ 'descFontSubset' => '',
362
+ 'descLineHeightType' => 'em',
363
+ 'descLineHeight' => '',
364
+ 'descLineHeightTablet' => '',
365
+ 'descLineHeightMobile' => '',
366
+ 'descLoadGoogleFonts' => false,
367
+ 'titleSpace' => 10,
368
+ 'descSpace' => 10,
369
+ 'buttonAlign' => 'top',
370
+ 'ctaTarget' => false,
371
+ 'ctaIconPosition' => 'after',
372
+ 'ctaIconSpace' => 5,
373
+ 'ctaType' => 'button',
374
+ 'ctaLink' => '#',
375
+ 'ctaFontSize' => '',
376
+ 'ctaFontSizeType' => 'px',
377
+ 'ctaFontSizeMobile' => '',
378
+ 'ctaFontSizeTablet' => '',
379
+ 'ctaFontFamily' => '',
380
+ 'ctaFontWeight' => '',
381
+ 'ctaFontSubset' => '',
382
+ 'ctaLoadGoogleFonts' => false,
383
+ 'ctaBtnLinkColor' => '#333',
384
+ 'ctaBgColor' => 'transparent',
385
+ 'ctaBgHoverColor' => 'transparent',
386
+ 'ctaBorderColor' => '#333',
387
+ 'ctaBorderhoverColor' => '',
388
+ 'ctaBorderStyle' => 'solid',
389
+ 'ctaBtnVertPadding' => 10,
390
+ 'ctaBtnHrPadding' => 14,
391
+ 'ctaBorderWidth' => 1,
392
+ 'ctaBorderRadius' => 0,
393
+ 'stack' => 'tablet',
394
+ 'showTitle' => true,
395
+ 'showDesc' => true,
396
+ 'ctaLeftSpace' => 5,
397
+ 'ctaRightSpace' => 5,
398
+ 'contentWidth' => 70,
399
+ 'ctaLinkHoverColor' => '',
400
+ ),
401
+ ),
402
+ 'uagb/cf7-styler' => array(
403
+ 'slug' => '',
404
+ 'title' => __( 'Contact Form 7 Styler', 'ultimate-addons-for-gutenberg' ),
405
+ 'description' => __( 'This block allows you to add and style your Contact Form 7 forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
406
+ 'is_active' => class_exists( 'WPCF7_ContactForm' ),
407
+ 'default' => true,
408
+ 'attributes' => array(
409
+ 'block_id' => '',
410
+ 'align' => 'left',
411
+ 'formId' => '0',
412
+ 'fieldStyle' => 'box',
413
+ 'fieldHrPadding' => 10,
414
+ 'fieldVrPadding' => 10,
415
+ 'fieldBgColor' => '#fafafa',
416
+ 'fieldLabelColor' => '#333',
417
+ 'fieldInputColor' => '#333',
418
+ 'fieldBorderStyle' => 'solid',
419
+ 'fieldBorderWidth' => 1,
420
+ 'fieldBorderRadius' => 0,
421
+ 'fieldBorderColor' => '#eeeeee',
422
+ 'fieldBorderFocusColor' => '',
423
+ 'buttonAlignment' => 'left',
424
+ 'buttonVrPadding' => 10,
425
+ 'buttonHrPadding' => 25,
426
+ 'buttonTextColor' => '#333',
427
+ 'buttonBgColor' => 'transparent',
428
+ 'buttonTextHoverColor' => '',
429
+ 'buttonBgHoverColor' => '',
430
+ 'buttonBorderStyle' => 'solid',
431
+ 'buttonBorderWidth' => 1,
432
+ 'buttonBorderRadius' => 0,
433
+ 'buttonBorderColor' => '#333',
434
+ 'buttonBorderHoverColor' => '',
435
+ 'fieldSpacing' => '',
436
+ 'fieldLabelSpacing' => '',
437
+ 'labelFontSize' => '',
438
+ 'labelFontSizeType' => 'px',
439
+ 'labelFontSizeTablet' => '',
440
+ 'labelFontSizeMobile' => '',
441
+ 'labelFontFamily' => '',
442
+ 'labelFontWeight' => '',
443
+ 'labelFontSubset' => '',
444
+ 'labelLineHeightType' => 'px',
445
+ 'labelLineHeight' => '',
446
+ 'labelLineHeightTablet' => '',
447
+ 'labelLineHeightMobile' => '',
448
+ 'labelLoadGoogleFonts' => false,
449
+ 'inputFontSize' => '',
450
+ 'inputFontSizeType' => 'px',
451
+ 'inputFontSizeTablet' => '',
452
+ 'inputFontSizeMobile' => '',
453
+ 'inputFontFamily' => '',
454
+ 'inputFontWeight' => '',
455
+ 'inputFontSubset' => '',
456
+ 'inputLineHeightType' => 'px',
457
+ 'inputLineHeight' => '',
458
+ 'inputLineHeightTablet' => '',
459
+ 'inputLineHeightMobile' => '',
460
+ 'inputLoadGoogleFonts' => false,
461
+ 'buttonFontSize' => '',
462
+ 'buttonFontSizeType' => 'px',
463
+ 'buttonFontSizeTablet' => '',
464
+ 'buttonFontSizeMobile' => '',
465
+ 'buttonFontFamily' => '',
466
+ 'buttonFontWeight' => '',
467
+ 'buttonFontSubset' => '',
468
+ 'buttonLineHeightType' => 'px',
469
+ 'buttonLineHeight' => '',
470
+ 'buttonLineHeightTablet' => '',
471
+ 'buttonLineHeightMobile' => '',
472
+ 'buttonLoadGoogleFonts' => false,
473
+ 'enableOveride' => true,
474
+ 'radioCheckSize' => '',
475
+ 'radioCheckBgColor' => '',
476
+ 'radioCheckSelectColor' => '',
477
+ 'radioCheckLableColor' => '',
478
+ 'radioCheckBorderColor' => '#abb8c3',
479
+ 'radioCheckBorderWidth' => '',
480
+ 'radioCheckBorderRadius' => '',
481
+ 'radioCheckFontSize' => '',
482
+ 'radioCheckFontSizeType' => 'px',
483
+ 'radioCheckFontSizeTablet' => '',
484
+ 'radioCheckFontSizeMobile' => '',
485
+ 'radioCheckFontFamily' => '',
486
+ 'radioCheckFontWeight' => '',
487
+ 'radioCheckFontSubset' => '',
488
+ 'radioCheckLineHeightType' => 'px',
489
+ 'radioCheckLineHeight' => '',
490
+ 'radioCheckLineHeightTablet' => '',
491
+ 'radioCheckLineHeightMobile' => '',
492
+ 'radioCheckLoadGoogleFonts' => false,
493
+ 'validationMsgPosition' => 'default',
494
+ 'validationMsgColor' => '#ff0000',
495
+ 'validationMsgBgColor' => '',
496
+ 'enableHighlightBorder' => false,
497
+ 'highlightBorderColor' => '#ff0000',
498
+ 'validationMsgFontSize' => '',
499
+ 'validationMsgFontSizeType' => 'px',
500
+ 'validationMsgFontSizeTablet' => '',
501
+ 'validationMsgFontSizeMobile' => '',
502
+ 'validationMsgFontFamily' => '',
503
+ 'validationMsgFontWeight' => '',
504
+ 'validationMsgFontSubset' => '',
505
+ 'validationMsgLineHeightType' => 'em',
506
+ 'validationMsgLineHeight' => '',
507
+ 'validationMsgLineHeightTablet' => '',
508
+ 'validationMsgLineHeightMobile' => '',
509
+ 'validationMsgLoadGoogleFonts' => false,
510
+ 'successMsgColor' => '',
511
+ 'successMsgBgColor' => '',
512
+ 'successMsgBorderColor' => '',
513
+ 'errorMsgColor' => '',
514
+ 'errorMsgBgColor' => '',
515
+ 'errorMsgBorderColor' => '',
516
+ 'msgBorderSize' => '',
517
+ 'msgBorderRadius' => '',
518
+ 'msgVrPadding' => '',
519
+ 'msgHrPadding' => '',
520
+ 'msgFontSize' => '',
521
+ 'msgFontSizeType' => 'px',
522
+ 'msgFontSizeTablet' => '',
523
+ 'msgFontSizeMobile' => '',
524
+ 'msgFontFamily' => '',
525
+ 'msgFontWeight' => '',
526
+ 'msgFontSubset' => '',
527
+ 'msgLineHeightType' => 'em',
528
+ 'msgLineHeight' => '',
529
+ 'msgLineHeightTablet' => '',
530
+ 'msgLineHeightMobile' => '',
531
+ 'msgLoadGoogleFonts' => false,
532
+ 'radioCheckBorderRadiusType' => 'px',
533
+ 'msgBorderRadiusType' => 'px',
534
+ 'fieldBorderRadiusType' => 'px',
535
+ 'buttonBorderRadiusType' => 'px',
536
+ ),
537
+ ),
538
+ 'uagb/gf-styler' => array(
539
+ 'slug' => '',
540
+ 'title' => __( 'Gravity Form Styler', 'ultimate-addons-for-gutenberg' ),
541
+ 'description' => __( 'This block allows you to add and style your Gravity Forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
542
+ 'default' => true,
543
+ 'is_active' => class_exists( 'GFForms' ),
544
+ 'attributes' => array(
545
+ 'block_id' => '',
546
+ 'align' => 'left',
547
+ 'enableAjax' => false,
548
+ 'enableTabSupport' => false,
549
+ 'formTabIndex' => '0',
550
+ 'formId' => '0',
551
+ 'titleDescStyle' => 'yes',
552
+ 'titleDescAlignment' => 'left',
553
+ 'fieldStyle' => 'box',
554
+ 'fieldHrPadding' => 10,
555
+ 'fieldVrPadding' => 10,
556
+ 'fieldBgColor' => '#fafafa',
557
+ 'fieldLabelColor' => '#333',
558
+ 'fieldInputColor' => '#333',
559
+ 'fieldBorderStyle' => 'solid',
560
+ 'fieldBorderWidth' => 1,
561
+ 'fieldBorderRadius' => 0,
562
+ 'fieldBorderColor' => '#eeeeee',
563
+ 'fieldBorderFocusColor' => '',
564
+ 'buttonAlignment' => 'left',
565
+ 'buttonVrPadding' => 10,
566
+ 'buttonHrPadding' => 25,
567
+ 'buttonTextColor' => '#333',
568
+ 'buttonBgColor' => 'transparent',
569
+ 'buttonTextHoverColor' => '',
570
+ 'buttonBgHoverColor' => '',
571
+ 'buttonBorderStyle' => 'solid',
572
+ 'buttonBorderWidth' => 1,
573
+ 'buttonBorderRadius' => 0,
574
+ 'buttonBorderColor' => '#333',
575
+ 'buttonBorderHoverColor' => '',
576
+ 'fieldSpacing' => '',
577
+ 'fieldLabelSpacing' => '',
578
+ 'enableLabel' => false,
579
+ 'textAreaHeight' => 'auto',
580
+ 'labelFontSize' => '',
581
+ 'labelFontSizeType' => 'px',
582
+ 'labelFontSizeTablet' => '',
583
+ 'labelFontSizeMobile' => '',
584
+ 'labelFontFamily' => '',
585
+ 'labelFontWeight' => '',
586
+ 'labelFontSubset' => '',
587
+ 'labelLineHeightType' => 'px',
588
+ 'labelLineHeight' => '',
589
+ 'labelLineHeightTablet' => '',
590
+ 'labelLineHeightMobile' => '',
591
+ 'labelLoadGoogleFonts' => false,
592
+ 'inputFontSize' => '',
593
+ 'inputFontSizeType' => 'px',
594
+ 'inputFontSizeTablet' => '',
595
+ 'inputFontSizeMobile' => '',
596
+ 'inputFontFamily' => '',
597
+ 'inputFontWeight' => '',
598
+ 'inputFontSubset' => '',
599
+ 'inputLineHeightType' => 'px',
600
+ 'inputLineHeight' => '',
601
+ 'inputLineHeightTablet' => '',
602
+ 'inputLineHeightMobile' => '',
603
+ 'inputLoadGoogleFonts' => false,
604
+ 'buttonFontSize' => '',
605
+ 'buttonFontSizeType' => 'px',
606
+ 'buttonFontSizeTablet' => '',
607
+ 'buttonFontSizeMobile' => '',
608
+ 'buttonFontFamily' => '',
609
+ 'buttonFontWeight' => '',
610
+ 'buttonFontSubset' => '',
611
+ 'buttonLineHeightType' => 'px',
612
+ 'buttonLineHeight' => '',
613
+ 'buttonLineHeightTablet' => '',
614
+ 'buttonLineHeightMobile' => '',
615
+ 'buttonLoadGoogleFonts' => false,
616
+ 'enableOveride' => true,
617
+ 'radioCheckSize' => '20',
618
+ 'radioCheckBgColor' => '#fafafa',
619
+ 'radioCheckSelectColor' => '',
620
+ 'radioCheckLableColor' => '',
621
+ 'radioCheckBorderColor' => '#cbcbcb',
622
+ 'radioCheckBorderWidth' => '1',
623
+ 'radioCheckBorderRadius' => '',
624
+ 'radioCheckFontSize' => '',
625
+ 'radioCheckFontSizeType' => 'px',
626
+ 'radioCheckFontSizeTablet' => '',
627
+ 'radioCheckFontSizeMobile' => '',
628
+ 'radioCheckFontFamily' => '',
629
+ 'radioCheckFontWeight' => '',
630
+ 'radioCheckFontSubset' => '',
631
+ 'radioCheckLineHeightType' => 'px',
632
+ 'radioCheckLineHeight' => '',
633
+ 'radioCheckLineHeightTablet' => '',
634
+ 'radioCheckLineHeightMobile' => '',
635
+ 'radioCheckLoadGoogleFonts' => false,
636
+ 'validationMsgColor' => '#ff0000',
637
+ 'advancedValidationSettings' => false,
638
+ 'highlightBorderColor' => '#ff0000',
639
+ 'validationMsgFontSize' => '',
640
+ 'validationMsgBgColor' => '',
641
+ 'validationMsgFontSizeType' => 'px',
642
+ 'validationMsgFontSizeTablet' => '',
643
+ 'validationMsgFontSizeMobile' => '',
644
+ 'validationMsgFontFamily' => '',
645
+ 'validationMsgFontWeight' => '',
646
+ 'validationMsgFontSubset' => '',
647
+ 'validationMsgLineHeightType' => 'em',
648
+ 'validationMsgLineHeight' => '',
649
+ 'validationMsgLineHeightTablet' => '',
650
+ 'validationMsgLineHeightMobile' => '',
651
+ 'validationMsgLoadGoogleFonts' => false,
652
+ 'successMsgBorderColor' => '',
653
+ 'errorMsgColor' => '',
654
+ 'errorMsgBgColor' => '',
655
+ 'errorMsgBorderColor' => '',
656
+ 'msgBorderSize' => '',
657
+ 'msgBorderRadius' => '',
658
+ 'msgVrPadding' => '',
659
+ 'msgHrPadding' => '',
660
+ 'msgFontSize' => '',
661
+ 'msgFontSizeType' => 'px',
662
+ 'msgFontSizeTablet' => '',
663
+ 'msgFontSizeMobile' => '',
664
+ 'msgFontFamily' => '',
665
+ 'msgFontWeight' => '',
666
+ 'msgFontSubset' => '',
667
+ 'msgLineHeightType' => 'em',
668
+ 'msgLineHeight' => '',
669
+ 'msgLineHeightTablet' => '',
670
+ 'msgLineHeightMobile' => '',
671
+ 'msgLoadGoogleFonts' => false,
672
+ 'radioCheckBorderRadiusType' => 'px',
673
+ 'msgBorderRadiusType' => 'px',
674
+ 'fieldBorderRadiusType' => 'px',
675
+ 'buttonBorderRadiusType' => 'px',
676
+ 'successMsgColor' => '',
677
+ 'successMsgFontSize' => '',
678
+ 'successMsgFontSizeType' => 'px',
679
+ 'successMsgFontSizeTablet' => '',
680
+ 'successMsgFontSizeMobile' => '',
681
+ 'successMsgFontFamily' => '',
682
+ 'successMsgFontWeight' => '',
683
+ 'successMsgFontSubset' => '',
684
+ 'successMsgLineHeightType' => 'em',
685
+ 'successMsgLineHeight' => '',
686
+ 'successMsgLineHeightTablet' => '',
687
+ 'successMsgLineHeightMobile' => '',
688
+ 'successMsgLoadGoogleFonts' => false,
689
+ ),
690
+ ),
691
+ 'uagb/content-timeline' => array(
692
+ 'slug' => '',
693
+ 'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ),
694
+ 'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ),
695
+ 'default' => true,
696
+ 'js_assets' => array( 'uagb-timeline-js' ),
697
+ 'attributes' => array(
698
+ 'align' => 'center',
699
+ 'headingColor' => '',
700
+ 'subHeadingColor' => '',
701
+ 'separatorBg' => '#eee',
702
+ 'backgroundColor' => '#eee',
703
+ 'separatorColor' => '#eee',
704
+ 'separatorFillColor' => '#61ce70',
705
+ 'separatorBorder' => '#eee',
706
+ 'borderFocus' => '#5cb85c',
707
+ 'horizontalSpace' => 10,
708
+ 'verticalSpace' => 15,
709
+ 'headFontSizeType' => 'px',
710
+ 'headFontSize' => '',
711
+ 'headFontSizeTablet' => '',
712
+ 'headFontSizeMobile' => '',
713
+ 'headFontFamily' => '',
714
+ 'headFontWeight' => '',
715
+ 'headFontSubset' => '',
716
+ 'headLineHeightType' => 'em',
717
+ 'headLineHeight' => '',
718
+ 'headLineHeightTablet' => '',
719
+ 'headLineHeightMobile' => '',
720
+ 'headLoadGoogleFonts' => false,
721
+ 'timelinAlignment' => 'center',
722
+ 'arrowlinAlignment' => 'center',
723
+ 'subHeadFontSizeType' => 'px',
724
+ 'subHeadFontSize' => '',
725
+ 'subHeadFontSizeTablet' => '',
726
+ 'subHeadFontSizeMobile' => '',
727
+ 'subHeadFontFamily' => '',
728
+ 'subHeadFontWeight' => '',
729
+ 'subHeadFontSubset' => '',
730
+ 'subHeadLineHeightType' => 'em',
731
+ 'subHeadLineHeight' => '',
732
+ 'subHeadLineHeightTablet' => '',
733
+ 'subHeadLineHeightMobile' => '',
734
+ 'subHeadLoadGoogleFonts' => false,
735
+ 'headSpace' => 5,
736
+ 'separatorwidth' => 3,
737
+ 'borderwidth' => 0,
738
+ 'iconColor' => '#333',
739
+ 'iconFocus' => '#fff',
740
+ 'iconBgFocus' => '#61ce70',
741
+ 'dateColor' => '#333',
742
+ 'dateFontsizeType' => 'px',
743
+ 'dateFontsize' => '12',
744
+ 'dateFontsizeTablet' => '',
745
+ 'dateFontsizeMobile' => '',
746
+ 'dateFontFamily' => '',
747
+ 'dateFontWeight' => '',
748
+ 'dateFontSubset' => '',
749
+ 'dateLineHeightType' => 'em',
750
+ 'dateLineHeight' => '',
751
+ 'dateLineHeightTablet' => '',
752
+ 'dateLineHeightMobile' => '',
753
+ 'dateLoadGoogleFonts' => false,
754
+ 'connectorBgsize' => 35,
755
+ 'dateBottomspace' => 5,
756
+ 'borderRadius' => 2,
757
+ 'bgPadding' => 20,
758
+ 'iconSize' => 12,
759
+ 'stack' => 'tablet',
760
+ ),
761
+ ),
762
+ 'uagb/google-map' => array(
763
+ 'slug' => '',
764
+ 'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ),
765
+ 'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ),
766
+ 'default' => true,
767
+ 'attributes' => array(
768
+ 'block_id' => '',
769
+ 'height' => '300',
770
+ ),
771
+ ),
772
+ 'uagb/icon-list' => array(
773
+ 'slug' => '',
774
+ 'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ),
775
+ 'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ),
776
+ 'default' => true,
777
+ 'attributes' => array(
778
+ 'align' => 'left',
779
+ 'icon_count' => '1',
780
+ 'icons' => array(
781
+ array(
782
+ 'label' => __( 'Label #1', 'ultimate-addons-for-gutenberg' ),
783
+ 'image_icon' => 'icon',
784
+ 'icon' => 'fab fa-facebook',
785
+ 'image' => '',
786
+ 'icon_color' => '#3a3a3a',
787
+ 'icon_hover_color' => '#3a3a3a',
788
+ 'icon_bg_color' => '',
789
+ 'icon_bg_hover_color' => '',
790
+ 'icon_border_color' => '',
791
+ 'icon_border_hover_color' => '',
792
+ 'label_color' => '',
793
+ 'label_hover_color' => '',
794
+ 'link' => '#',
795
+ 'target' => false,
796
+ ),
797
+ ),
798
+ 'gap' => '10',
799
+ 'inner_gap' => '15',
800
+ 'size' => '16',
801
+ 'sizeType' => 'px',
802
+ 'sizeMobile' => '',
803
+ 'sizeTablet' => '',
804
+ 'bgSize' => '0',
805
+ 'border' => '0',
806
+ 'borderRadius' => '0',
807
+ 'fontSize' => '',
808
+ 'fontSizeType' => 'px',
809
+ 'fontSizeMobile' => '',
810
+ 'fontSizeTablet' => '',
811
+ 'lineHeight' => '',
812
+ 'lineHeightType' => 'em',
813
+ 'lineHeightMobile' => '',
814
+ 'lineHeightTablet' => '',
815
+ 'fontFamily' => '',
816
+ 'fontWeight' => '',
817
+ 'fontSubset' => '',
818
+ 'loadGoogleFonts' => false,
819
+ 'icon_layout' => 'vertical',
820
+ 'stack' => 'none',
821
+ ),
822
+ ),
823
+ 'uagb/info-box' => array(
824
+ 'slug' => '',
825
+ 'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ),
826
+ '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' ),
827
+ 'default' => true,
828
+ 'attributes' => array(
829
+ 'headingAlign' => 'center',
830
+ 'headingColor' => '',
831
+ 'subHeadingColor' => '',
832
+ 'prefixColor' => '',
833
+ 'prefixFontSize' => '',
834
+ 'prefixFontSizeType' => 'px',
835
+ 'prefixFontSizeTablet' => '',
836
+ 'prefixFontSizeMobile' => '',
837
+ 'prefixFontFamily' => '',
838
+ 'prefixFontWeight' => '',
839
+ 'prefixFontSubset' => '',
840
+ 'prefixLineHeightType' => 'em',
841
+ 'prefixLineHeight' => '',
842
+ 'prefixLineHeightTablet' => '',
843
+ 'prefixLineHeightMobile' => '',
844
+ 'prefixLoadGoogleFonts' => false,
845
+ 'headFontSize' => '',
846
+ 'headFontSizeType' => 'px',
847
+ 'headFontSizeTablet' => '',
848
+ 'headFontSizeMobile' => '',
849
+ 'headFontFamily' => '',
850
+ 'headFontWeight' => '',
851
+ 'headFontSubset' => '',
852
+ 'headLineHeightType' => 'em',
853
+ 'headLineHeight' => '',
854
+ 'headLineHeightTablet' => '',
855
+ 'headLineHeightMobile' => '',
856
+ 'headLoadGoogleFonts' => false,
857
+ 'subHeadFontSize' => '',
858
+ 'subHeadFontSizeType' => 'px',
859
+ 'subHeadFontSizeTablet' => '',
860
+ 'subHeadFontSizeMobile' => '',
861
+ 'subHeadFontFamily' => '',
862
+ 'subHeadFontWeight' => '',
863
+ 'subHeadFontSubset' => '',
864
+ 'subHeadLineHeightType' => 'em',
865
+ 'subHeadLineHeight' => '',
866
+ 'subHeadLineHeightTablet' => '',
867
+ 'subHeadLineHeightMobile' => '',
868
+ 'subHeadLoadGoogleFonts' => false,
869
+ 'separatorWidth' => '',
870
+ 'separatorHeight' => '',
871
+ 'separatorWidthType' => '%',
872
+ 'headSpace' => '10',
873
+ 'separatorSpace' => '10',
874
+ 'subHeadSpace' => '10',
875
+ 'icon' => '',
876
+ 'iconColor' => '#333',
877
+ 'iconSize' => '40',
878
+ 'iconimgPosition' => 'above-title',
879
+ 'block_id' => '',
880
+ 'iconHover' => '',
881
+ 'iconimgBorderRadius' => '0',
882
+ 'seperatorStyle' => 'solid',
883
+ 'seperatorWidth' => '30',
884
+ 'seperatorColor' => '#333',
885
+ 'seperatorThickness' => '2',
886
+ 'ctaLinkColor' => '#333',
887
+ 'ctaFontSize' => '',
888
+ 'ctaFontSizeType' => 'px',
889
+ 'ctaFontSizeMobile' => '',
890
+ 'ctaFontSizeTablet' => '',
891
+ 'ctaFontFamily' => '',
892
+ 'ctaFontWeight' => '',
893
+ 'ctaFontSubset' => '',
894
+ 'ctaLoadGoogleFonts' => false,
895
+ 'ctaBtnLinkColor' => '#333',
896
+ 'ctaBgColor' => 'transparent',
897
+ 'ctaBtnVertPadding' => '10',
898
+ 'ctaBtnHrPadding' => '14',
899
+ 'ctaBorderStyle' => 'solid',
900
+ 'ctaBorderColor' => '#333',
901
+ 'ctaBorderWidth' => '1',
902
+ 'ctaBorderRadius' => '0',
903
+ 'prefixSpace' => '5',
904
+ 'iconLeftMargin' => '5',
905
+ 'iconRightMargin' => '10',
906
+ 'iconTopMargin' => '5',
907
+ 'iconBottomMargin' => '5',
908
+ 'imageSize' => 'thumbnail',
909
+ 'imageWidthType' => true,
910
+ 'imageWidth' => '120',
911
+ 'seperatorSpace' => '15',
912
+ 'ctaLinkHoverColor' => '',
913
+ 'ctaBgHoverColor' => '',
914
+ 'ctaBorderhoverColor' => '',
915
+ 'ctaIconSpace' => '5',
916
+ ),
917
+ ),
918
+ 'uagb/marketing-button' => array(
919
+ 'slug' => '',
920
+ 'title' => __( 'Marketing Button', 'ultimate-addons-for-gutenberg' ),
921
+ 'description' => __( 'This block allows you to place a Marketing Button with small description.', 'ultimate-addons-for-gutenberg' ),
922
+ 'default' => true,
923
+ 'attributes' => array(
924
+ 'block_id' => '',
925
+ 'align' => 'center',
926
+ 'textAlign' => 'center',
927
+ 'link' => '#',
928
+ 'linkTarget' => false,
929
+ 'titleSpace' => 0,
930
+ 'borderStyle' => 'solid',
931
+ 'borderWidth' => 1,
932
+ 'borderRadius' => '',
933
+ 'borderColor' => '#333',
934
+ 'borderHoverColor' => '',
935
+ 'vPadding' => 8,
936
+ 'hPadding' => 20,
937
+ 'vPaddingMobile' => '',
938
+ 'hPaddingMobile' => '',
939
+ 'vPaddingTablet' => '',
940
+ 'hPaddingTablet' => '',
941
+ 'paddingType' => 'px',
942
+ 'backgroundType' => 'color',
943
+ 'backgroundColor' => '#eeeeee',
944
+ 'backgroundHoverColor' => '',
945
+ 'gradientColor1' => '',
946
+ 'gradientColor2' => '',
947
+ 'gradientType' => 'linear',
948
+ 'gradientLocation1' => 0,
949
+ 'gradientLocation2' => 100,
950
+ 'gradientAngle' => 0,
951
+ 'backgroundOpacity' => '',
952
+ 'backgroundHoverOpacity' => '',
953
+ 'titleColor' => '#333',
954
+ 'titleHoverColor' => '',
955
+ 'iconColor' => '#333',
956
+ 'iconHoverColor' => '',
957
+ 'iconPosition' => 'before',
958
+ 'prefixColor' => '#333',
959
+ 'prefixHoverColor' => '',
960
+ 'iconSpace' => 10,
961
+ 'titleLoadGoogleFonts' => false,
962
+ 'titleFontFamily' => '',
963
+ 'titleFontWeight' => '',
964
+ 'titleFontSubset' => '',
965
+ 'titleFontSize' => 20,
966
+ 'titleFontSizeType' => 'px',
967
+ 'titleFontSizeTablet' => 20,
968
+ 'titleFontSizeMobile' => 20,
969
+ 'titleLineHeightType' => 'em',
970
+ 'titleLineHeight' => '',
971
+ 'titleLineHeightTablet' => '',
972
+ 'titleLineHeightMobile' => '',
973
+ 'prefixLoadGoogleFonts' => false,
974
+ 'prefixFontFamily' => '',
975
+ 'prefixFontWeight' => '',
976
+ 'prefixFontSubset' => '',
977
+ 'prefixFontSize' => 14,
978
+ 'prefixFontSizeType' => 'px',
979
+ 'prefixFontSizeTablet' => 14,
980
+ 'prefixFontSizeMobile' => 14,
981
+ 'prefixLineHeightType' => 'em',
982
+ 'prefixLineHeight' => '',
983
+ 'prefixLineHeightTablet' => '',
984
+ 'prefixLineHeightMobile' => '',
985
+ 'iconFontSize' => 20,
986
+ 'iconFontSizeType' => 'px',
987
+ 'iconFontSizeTablet' => 20,
988
+ 'iconFontSizeMobile' => 20,
989
+ ),
990
+ ),
991
+ 'uagb/buttons' => array(
992
+ 'slug' => '',
993
+ 'title' => __( 'Multi Buttons', 'ultimate-addons-for-gutenberg' ),
994
+ 'description' => __( 'This block allows you to add multiple buttons with a single block.', 'ultimate-addons-for-gutenberg' ),
995
+ 'default' => true,
996
+ 'attributes' => array(
997
+ 'block_id' => '',
998
+ 'align' => 'center',
999
+ 'btn_count' => '2',
1000
+ 'buttons' => UAGB_Helper::get_button_defaults(),
1001
+ 'gap' => 10,
1002
+ 'stack' => 'none',
1003
+ 'fontFamily' => '',
1004
+ 'fontWeight' => '',
1005
+ 'loadGoogleFonts' => false,
1006
+ 'fontSubset' => '',
1007
+ ),
1008
+ ),
1009
+ 'uagb/post-carousel' => array(
1010
+ 'slug' => '',
1011
+ 'title' => __( 'Post Carousel', 'ultimate-addons-for-gutenberg' ),
1012
+ 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a carousel layout.', 'ultimate-addons-for-gutenberg' ),
1013
+ 'default' => true,
1014
+ 'js_assets' => array( 'uagb-slick-js', 'uagb-carousel-js', 'uagb-imagesloaded' ),
1015
+ 'css_assets' => array( 'uagb-slick-css' ),
1016
+ 'attributes' => array(
1017
+ 'align' => 'left',
1018
+ 'rowGap' => '20',
1019
+ 'columnGap' => '20',
1020
+ 'bgColor' => '#e4e4e4',
1021
+ 'titleColor' => '#3b3b3b',
1022
+ 'titleTag' => 'h3',
1023
+ 'titleFontSize' => '',
1024
+ 'titleFontSizeType' => 'px',
1025
+ 'titleFontSizeMobile' => '',
1026
+ 'titleFontSizeTablet' => '',
1027
+ 'titleFontFamily' => '',
1028
+ 'titleFontWeight' => '',
1029
+ 'titleFontSubset' => '',
1030
+ 'titleLineHeightType' => 'em',
1031
+ 'titleLineHeight' => '',
1032
+ 'titleLineHeightTablet' => '',
1033
+ 'titleLineHeightMobile' => '',
1034
+ 'titleLoadGoogleFonts' => false,
1035
+ 'metaFontSize' => '',
1036
+ 'metaFontSizeType' => 'px',
1037
+ 'metaFontSizeMobile' => '',
1038
+ 'metaFontSizeTablet' => '',
1039
+ 'metaFontFamily' => '',
1040
+ 'metaFontWeight' => '',
1041
+ 'metaFontSubset' => '',
1042
+ 'metaLineHeightType' => 'em',
1043
+ 'metaLineHeight' => '',
1044
+ 'metaLineHeightTablet' => '',
1045
+ 'metaLineHeightMobile' => '',
1046
+ 'metaLoadGoogleFonts' => false,
1047
+ 'excerptFontSize' => '',
1048
+ 'excerptFontSizeType' => 'px',
1049
+ 'excerptFontSizeMobile' => '',
1050
+ 'excerptFontSizeTablet' => '',
1051
+ 'excerptFontFamily' => '',
1052
+ 'excerptFontWeight' => '',
1053
+ 'excerptFontSubset' => '',
1054
+ 'excerptLineHeightType' => 'em',
1055
+ 'excerptLineHeight' => '',
1056
+ 'excerptLineHeightTablet' => '',
1057
+ 'excerptLineHeightMobile' => '',
1058
+ 'excerptLoadGoogleFonts' => false,
1059
+ 'ctaFontSize' => '',
1060
+ 'ctaFontSizeType' => 'px',
1061
+ 'ctaFontSizeTablet' => '',
1062
+ 'ctaFontSizeMobile' => '',
1063
+ 'ctaFontFamily' => '',
1064
+ 'ctaFontWeight' => '',
1065
+ 'ctaFontSubset' => '',
1066
+ 'ctaLineHeightType' => 'em',
1067
+ 'ctaLineHeight' => '',
1068
+ 'ctaLineHeightTablet' => '',
1069
+ 'ctaLineHeightMobile' => '',
1070
+ 'ctaLoadGoogleFonts' => false,
1071
+ 'metaColor' => '#777777',
1072
+ 'excerptColor' => '',
1073
+ 'ctaColor' => '#ffffff',
1074
+ 'ctaBgColor' => '#333333',
1075
+ 'ctaHColor' => '',
1076
+ 'ctaBgHColor' => '',
1077
+ 'contentPadding' => '20',
1078
+ 'contentPaddingMobile' => '',
1079
+ 'btnVPadding' => '5',
1080
+ 'btnHPadding' => '10',
1081
+ 'titleBottomSpace' => '15',
1082
+ 'metaBottomSpace' => '15',
1083
+ 'excerptBottomSpace' => '25',
1084
+ 'arrowSize' => '20',
1085
+ 'arrowColor' => '#aaaaaa',
1086
+ 'arrowDots' => '',
1087
+ 'arrowBorderSize' => '1',
1088
+ 'arrowBorderRadius' => '0',
1089
+ 'overlayOpacity' => '50',
1090
+ 'bgOverlayColor' => '#ffffff',
1091
+ 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1092
+ 'borderWidth' => '1',
1093
+ 'borderStyle' => 'none',
1094
+ 'borderColor' => '',
1095
+ 'borderHColor' => '',
1096
+ 'borderRadius' => '0',
1097
+ ),
1098
+ ),
1099
+ 'uagb/post-grid' => array(
1100
+ 'slug' => '',
1101
+ 'title' => __( 'Post Grid', 'ultimate-addons-for-gutenberg' ),
1102
+ 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a grid layout.', 'ultimate-addons-for-gutenberg' ),
1103
+ 'default' => true,
1104
+ 'attributes' => array(
1105
+ 'align' => 'left',
1106
+ 'rowGap' => '20',
1107
+ 'columnGap' => '20',
1108
+ 'bgColor' => '#e4e4e4',
1109
+ 'titleColor' => '#3b3b3b',
1110
+ 'titleTag' => 'h3',
1111
+ 'titleFontSize' => '',
1112
+ 'titleFontSizeType' => 'px',
1113
+ 'titleFontSizeMobile' => '',
1114
+ 'titleFontSizeTablet' => '',
1115
+ 'titleFontFamily' => '',
1116
+ 'titleFontWeight' => '',
1117
+ 'titleFontSubset' => '',
1118
+ 'titleLineHeightType' => 'em',
1119
+ 'titleLineHeight' => '',
1120
+ 'titleLineHeightTablet' => '',
1121
+ 'titleLineHeightMobile' => '',
1122
+ 'titleLoadGoogleFonts' => false,
1123
+ 'metaFontSize' => '',
1124
+ 'metaFontSizeType' => 'px',
1125
+ 'metaFontSizeMobile' => '',
1126
+ 'metaFontSizeTablet' => '',
1127
+ 'metaFontFamily' => '',
1128
+ 'metaFontWeight' => '',
1129
+ 'metaFontSubset' => '',
1130
+ 'metaLineHeightType' => 'em',
1131
+ 'metaLineHeight' => '',
1132
+ 'metaLineHeightTablet' => '',
1133
+ 'metaLineHeightMobile' => '',
1134
+ 'metaLoadGoogleFonts' => false,
1135
+ 'excerptFontSize' => '',
1136
+ 'excerptFontSizeType' => 'px',
1137
+ 'excerptFontSizeMobile' => '',
1138
+ 'excerptFontSizeTablet' => '',
1139
+ 'excerptFontFamily' => '',
1140
+ 'excerptFontWeight' => '',
1141
+ 'excerptFontSubset' => '',
1142
+ 'excerptLineHeightType' => 'em',
1143
+ 'excerptLineHeight' => '',
1144
+ 'excerptLineHeightTablet' => '',
1145
+ 'excerptLineHeightMobile' => '',
1146
+ 'excerptLoadGoogleFonts' => false,
1147
+ 'ctaFontSize' => '',
1148
+ 'ctaFontSizeType' => 'px',
1149
+ 'ctaFontSizeTablet' => '',
1150
+ 'ctaFontSizeMobile' => '',
1151
+ 'ctaFontFamily' => '',
1152
+ 'ctaFontWeight' => '',
1153
+ 'ctaFontSubset' => '',
1154
+ 'ctaLineHeightType' => 'em',
1155
+ 'ctaLineHeight' => '',
1156
+ 'ctaLineHeightTablet' => '',
1157
+ 'ctaLineHeightMobile' => '',
1158
+ 'ctaLoadGoogleFonts' => false,
1159
+ 'metaColor' => '#777777',
1160
+ 'excerptColor' => '',
1161
+ 'ctaColor' => '#ffffff',
1162
+ 'ctaBgColor' => '#333333',
1163
+ 'ctaHColor' => '',
1164
+ 'ctaBgHColor' => '',
1165
+ 'contentPadding' => '20',
1166
+ 'contentPaddingMobile' => '',
1167
+ 'btnVPadding' => '5',
1168
+ 'btnHPadding' => '10',
1169
+ 'titleBottomSpace' => '15',
1170
+ 'metaBottomSpace' => '15',
1171
+ 'excerptBottomSpace' => '25',
1172
+ 'overlayOpacity' => '50',
1173
+ 'bgOverlayColor' => '#ffffff',
1174
+ 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1175
+ 'borderWidth' => '1',
1176
+ 'borderStyle' => 'none',
1177
+ 'borderColor' => '',
1178
+ 'borderHColor' => '',
1179
+ 'borderRadius' => '0',
1180
+ ),
1181
+ ),
1182
+ 'uagb/post-masonry' => array(
1183
+ 'slug' => '',
1184
+ 'title' => __( 'Post Masonry', 'ultimate-addons-for-gutenberg' ),
1185
+ 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a masonry layout.', 'ultimate-addons-for-gutenberg' ),
1186
+ 'default' => true,
1187
+ 'js_assets' => array( 'uagb-masonry', 'uagb-imagesloaded' ),
1188
+ 'attributes' => array(
1189
+ 'align' => 'left',
1190
+ 'rowGap' => '20',
1191
+ 'columnGap' => '20',
1192
+ 'bgColor' => '#e4e4e4',
1193
+ 'titleColor' => '#3b3b3b',
1194
+ 'titleTag' => 'h3',
1195
+ 'titleFontSize' => '',
1196
+ 'titleFontSizeType' => 'px',
1197
+ 'titleFontSizeMobile' => '',
1198
+ 'titleFontSizeTablet' => '',
1199
+ 'titleFontFamily' => '',
1200
+ 'titleFontWeight' => '',
1201
+ 'titleFontSubset' => '',
1202
+ 'titleLineHeightType' => 'em',
1203
+ 'titleLineHeight' => '',
1204
+ 'titleLineHeightTablet' => '',
1205
+ 'titleLineHeightMobile' => '',
1206
+ 'titleLoadGoogleFonts' => false,
1207
+ 'metaFontSize' => '',
1208
+ 'metaFontSizeType' => 'px',
1209
+ 'metaFontSizeMobile' => '',
1210
+ 'metaFontSizeTablet' => '',
1211
+ 'metaFontFamily' => '',
1212
+ 'metaFontWeight' => '',
1213
+ 'metaFontSubset' => '',
1214
+ 'metaLineHeightType' => 'em',
1215
+ 'metaLineHeight' => '',
1216
+ 'metaLineHeightTablet' => '',
1217
+ 'metaLineHeightMobile' => '',
1218
+ 'metaLoadGoogleFonts' => false,
1219
+ 'excerptFontSize' => '',
1220
+ 'excerptFontSizeType' => 'px',
1221
+ 'excerptFontSizeMobile' => '',
1222
+ 'excerptFontSizeTablet' => '',
1223
+ 'excerptFontFamily' => '',
1224
+ 'excerptFontWeight' => '',
1225
+ 'excerptFontSubset' => '',
1226
+ 'excerptLineHeightType' => 'em',
1227
+ 'excerptLineHeight' => '',
1228
+ 'excerptLineHeightTablet' => '',
1229
+ 'excerptLineHeightMobile' => '',
1230
+ 'excerptLoadGoogleFonts' => false,
1231
+ 'ctaFontSize' => '',
1232
+ 'ctaFontSizeType' => 'px',
1233
+ 'ctaFontSizeTablet' => '',
1234
+ 'ctaFontSizeMobile' => '',
1235
+ 'ctaFontFamily' => '',
1236
+ 'ctaFontWeight' => '',
1237
+ 'ctaFontSubset' => '',
1238
+ 'ctaLineHeightType' => 'em',
1239
+ 'ctaLineHeight' => '',
1240
+ 'ctaLineHeightTablet' => '',
1241
+ 'ctaLineHeightMobile' => '',
1242
+ 'ctaLoadGoogleFonts' => false,
1243
+ 'metaColor' => '#777777',
1244
+ 'excerptColor' => '',
1245
+ 'ctaColor' => '#ffffff',
1246
+ 'ctaBgColor' => '#333333',
1247
+ 'ctaHColor' => '',
1248
+ 'ctaBgHColor' => '',
1249
+ 'contentPadding' => '20',
1250
+ 'contentPaddingMobile' => '',
1251
+ 'btnVPadding' => '5',
1252
+ 'btnHPadding' => '10',
1253
+ 'titleBottomSpace' => '15',
1254
+ 'metaBottomSpace' => '15',
1255
+ 'excerptBottomSpace' => '25',
1256
+ 'overlayOpacity' => '50',
1257
+ 'bgOverlayColor' => '#ffffff',
1258
+ 'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
1259
+ 'borderWidth' => '1',
1260
+ 'borderStyle' => 'none',
1261
+ 'borderColor' => '',
1262
+ 'borderHColor' => '',
1263
+ 'borderRadius' => '0',
1264
+ ),
1265
+ ),
1266
+ 'uagb/post-timeline' => array(
1267
+ 'slug' => '',
1268
+ 'title' => __( 'Post Timeline', 'ultimate-addons-for-gutenberg' ),
1269
+ 'description' => __( 'The Timeline block lets you create beautiful timelines of Posts on your website.', 'ultimate-addons-for-gutenberg' ),
1270
+ 'default' => true,
1271
+ 'js_assets' => array( 'uagb-timeline-js' ),
1272
+ 'attributes' => array(
1273
+ 'align' => 'center',
1274
+ 'headingColor' => '',
1275
+ 'subHeadingColor' => '',
1276
+ 'separatorBg' => '#eee',
1277
+ 'backgroundColor' => '#eee',
1278
+ 'separatorColor' => '#eee',
1279
+ 'separatorFillColor' => '#61ce70',
1280
+ 'separatorBorder' => '#eee',
1281
+ 'borderFocus' => '#5cb85c',
1282
+ 'horizontalSpace' => 10,
1283
+ 'verticalSpace' => 15,
1284
+ 'headFontSizeType' => 'px',
1285
+ 'headFontSize' => '',
1286
+ 'headFontSizeTablet' => '',
1287
+ 'headFontSizeMobile' => '',
1288
+ 'headFontFamily' => '',
1289
+ 'headFontWeight' => '',
1290
+ 'headFontSubset' => '',
1291
+ 'headLineHeightType' => 'em',
1292
+ 'headLineHeight' => '',
1293
+ 'headLineHeightTablet' => '',
1294
+ 'headLineHeightMobile' => '',
1295
+ 'headLoadGoogleFonts' => false,
1296
+ 'timelinAlignment' => 'center',
1297
+ 'arrowlinAlignment' => 'center',
1298
+ 'subHeadFontSizeType' => 'px',
1299
+ 'subHeadFontSize' => '',
1300
+ 'subHeadFontSizeTablet' => '',
1301
+ 'subHeadFontSizeMobile' => '',
1302
+ 'subHeadFontFamily' => '',
1303
+ 'subHeadFontWeight' => '',
1304
+ 'subHeadFontSubset' => '',
1305
+ 'subHeadLineHeightType' => 'em',
1306
+ 'subHeadLineHeight' => '',
1307
+ 'subHeadLineHeightTablet' => '',
1308
+ 'subHeadLineHeightMobile' => '',
1309
+ 'subHeadLoadGoogleFonts' => false,
1310
+ 'headSpace' => 5,
1311
+ 'contentSpace' => 5,
1312
+ 'authorSpace' => 5,
1313
+ 'separatorwidth' => 3,
1314
+ 'borderwidth' => 0,
1315
+ 'iconColor' => '#333',
1316
+ 'iconFocus' => '#fff',
1317
+ 'iconBgFocus' => '#61ce70',
1318
+ 'dateColor' => '#333',
1319
+ 'dateFontsizeType' => 'px',
1320
+ 'dateFontsize' => 12,
1321
+ 'dateFontsizeTablet' => '',
1322
+ 'dateFontsizeMobile' => '',
1323
+ 'dateFontFamily' => '',
1324
+ 'dateFontWeight' => '',
1325
+ 'dateFontSubset' => '',
1326
+ 'dateLineHeightType' => 'em',
1327
+ 'dateLineHeight' => '',
1328
+ 'dateLineHeightTablet' => '',
1329
+ 'dateLineHeightMobile' => '',
1330
+ 'dateLoadGoogleFonts' => false,
1331
+ 'connectorBgsize' => 35,
1332
+ 'dateBottomspace' => 5,
1333
+ 'borderRadius' => 2,
1334
+ 'bgPadding' => 20,
1335
+ 'contentPadding' => 10,
1336
+ 'iconSize' => 12,
1337
+ 'stack' => 'tablet',
1338
+ 'ctaColor' => '#fff',
1339
+ 'authorColor' => '#333',
1340
+ 'ctaFontSizeType' => 'px',
1341
+ 'ctaFontSize' => '',
1342
+ 'ctaFontSizeTablet' => '',
1343
+ 'ctaFontSizeMobile' => '',
1344
+ 'ctaFontFamily' => '',
1345
+ 'ctaFontWeight' => '',
1346
+ 'ctaFontSubset' => '',
1347
+ 'ctaLineHeightType' => 'em',
1348
+ 'ctaLineHeight' => '',
1349
+ 'ctaLineHeightTablet' => '',
1350
+ 'ctaLineHeightMobile' => '',
1351
+ 'ctaLoadGoogleFonts' => false,
1352
+ 'authorFontSizeType' => 'px',
1353
+ 'authorFontSize' => 11,
1354
+ 'authorFontSizeTablet' => '',
1355
+ 'authorFontSizeMobile' => '',
1356
+ 'authorFontFamily' => '',
1357
+ 'authorFontWeight' => '',
1358
+ 'authorFontSubset' => '',
1359
+ 'authorLineHeightType' => 'em',
1360
+ 'authorLineHeight' => '',
1361
+ 'authorLineHeightTablet' => '',
1362
+ 'authorLineHeightMobile' => '',
1363
+ 'authorLoadGoogleFonts' => false,
1364
+ 'ctaBackground' => '#333',
1365
+ ),
1366
+ ),
1367
+ 'uagb/restaurant-menu' => array(
1368
+ 'slug' => '',
1369
+ 'title' => __( 'Price List', 'ultimate-addons-for-gutenberg' ),
1370
+ 'description' => __( 'This block allows you to add attractive Price List.', 'ultimate-addons-for-gutenberg' ),
1371
+ 'default' => true,
1372
+ 'attributes' => array(
1373
+ 'block_id' => '',
1374
+ 'headingAlign' => 'left',
1375
+ 'descColor' => '#333',
1376
+ 'priceColor' => '#888888',
1377
+ 'titleColor' => '#333',
1378
+ 'imagePosition' => 'top',
1379
+ 'imageAlignment' => 'top',
1380
+ 'titleFontSize' => '',
1381
+ 'titleFontSizeType' => 'px',
1382
+ 'titleFontSizeMobile' => '',
1383
+ 'titleFontSizeTablet' => '',
1384
+ 'titleFontFamily' => '',
1385
+ 'titleFontWeight' => '',
1386
+ 'titleFontSubset' => '',
1387
+ 'titleLineHeightType' => 'em',
1388
+ 'titleLineHeight' => '',
1389
+ 'titleLineHeightTablet' => '',
1390
+ 'titleLineHeightMobile' => '',
1391
+ 'titleLoadGoogleFonts' => false,
1392
+ 'priceFontSize' => '',
1393
+ 'priceFontSizeType' => 'px',
1394
+ 'priceFontSizeMobile' => '',
1395
+ 'priceFontSizeTablet' => '',
1396
+ 'priceFontFamily' => '',
1397
+ 'priceFontWeight' => '',
1398
+ 'priceFontSubset' => '',
1399
+ 'priceLineHeightType' => 'em',
1400
+ 'priceLineHeight' => '',
1401
+ 'priceLineHeightTablet' => '',
1402
+ 'priceLineHeightMobile' => '',
1403
+ 'priceLoadGoogleFonts' => false,
1404
+ 'descFontSize' => '',
1405
+ 'descFontSizeType' => 'px',
1406
+ 'descFontSizeMobile' => '',
1407
+ 'descFontSizeTablet' => '',
1408
+ 'descFontFamily' => '',
1409
+ 'descFontWeight' => '',
1410
+ 'descFontSubset' => '',
1411
+ 'descLineHeightType' => 'em',
1412
+ 'descLineHeight' => '',
1413
+ 'descLineHeightTablet' => '',
1414
+ 'descLineHeightMobile' => '',
1415
+ 'descLoadGoogleFonts' => false,
1416
+ 'priceSpace' => 5,
1417
+ 'descSpace' => 15,
1418
+ 'titleSpace' => 10,
1419
+ 'imgVrPadding' => 0,
1420
+ 'imgHrPadding' => 0,
1421
+ 'imgTopPadding' => 0,
1422
+ 'imgBottomPadding' => 0,
1423
+ 'iconImage' => '',
1424
+ 'imageSize' => 'medium',
1425
+ 'imageWidth' => '',
1426
+ 'columns' => 2,
1427
+ 'tcolumns' => 2,
1428
+ 'mcolumns' => 1,
1429
+ 'rowGap' => 10,
1430
+ 'columnGap' => 10,
1431
+ 'contentHrPadding' => 5,
1432
+ 'contentVrPadding' => 5,
1433
+ 'seperatorStyle' => 'dashed',
1434
+ 'seperatorWidth' => '100',
1435
+ 'seperatorThickness' => '1',
1436
+ 'seperatorColor' => '#b2b4b5',
1437
+ ),
1438
+ ),
1439
+ 'uagb/section' => array(
1440
+ 'slug' => '',
1441
+ 'title' => __( 'Section', 'ultimate-addons-for-gutenberg' ),
1442
+ 'description' => __( 'This block is an outer wrap section that allows you to add other blocks within it.', 'ultimate-addons-for-gutenberg' ),
1443
+ 'default' => true,
1444
+ 'attributes' => array(
1445
+ 'topPadding' => '20',
1446
+ 'bottomPadding' => '20',
1447
+ 'leftPadding' => '20',
1448
+ 'rightPadding' => '20',
1449
+ 'topMargin' => '0',
1450
+ 'bottomMargin' => '0',
1451
+ 'leftMargin' => '0',
1452
+ 'rightMargin' => '0',
1453
+ 'topPaddingTablet' => '',
1454
+ 'bottomPaddingTablet' => '',
1455
+ 'leftPaddingTablet' => '',
1456
+ 'rightPaddingTablet' => '',
1457
+ 'topPaddingMobile' => '',
1458
+ 'bottomPaddingMobile' => '',
1459
+ 'leftPaddingMobile' => '',
1460
+ 'rightPaddingMobile' => '',
1461
+ 'topMarginMobile' => '',
1462
+ 'bottomMarginMobile' => '',
1463
+ 'leftMarginMobile' => '',
1464
+ 'rightMarginMobile' => '',
1465
+ 'topMarginTablet' => '',
1466
+ 'bottomMarginTablet' => '',
1467
+ 'leftMarginTablet' => '',
1468
+ 'rightMarginTablet' => '',
1469
+ 'contentWidth' => 'boxed',
1470
+ 'width' => '900',
1471
+ 'innerWidth' => '1140',
1472
+ 'innerWidthType' => 'px',
1473
+ 'tag' => 'section',
1474
+ 'backgroundType' => 'none',
1475
+ 'gradientColor1' => '',
1476
+ 'gradientColor2' => '',
1477
+ 'backgroundVideoColor' => '',
1478
+ 'backgroundPosition' => 'center-center',
1479
+ 'backgroundSize' => 'cover',
1480
+ 'backgroundRepeat' => 'no-repeat',
1481
+ 'backgroundAttachment' => 'scroll',
1482
+ 'gradientType' => 'linear',
1483
+ 'gradientLocation1' => '0',
1484
+ 'gradientLocation2' => '100',
1485
+ 'gradientAngle' => '0',
1486
+ 'gradientPosition' => 'center center',
1487
+ 'backgroundColor' => '',
1488
+ 'backgroundOpacity' => '',
1489
+ 'backgroundVideoOpacity' => '50',
1490
+ 'backgroundImageColor' => '',
1491
+ 'align' => 'center',
1492
+ 'borderStyle' => 'none',
1493
+ 'borderWidth' => '1',
1494
+ 'borderRadius' => '',
1495
+ 'borderColor' => '',
1496
+ 'themeWidth' => false,
1497
+ 'mobileMarginType' => 'px',
1498
+ 'tabletMarginType' => 'px',
1499
+ 'desktopMarginType' => 'px',
1500
+ 'mobilePaddingType' => 'px',
1501
+ 'tabletPaddingType' => 'px',
1502
+ 'desktopPaddingType' => 'px',
1503
+ 'overlayType' => 'color',
1504
+ 'gradientOverlayColor1' => '',
1505
+ 'gradientOverlayColor2' => '',
1506
+ 'gradientOverlayType' => 'linear',
1507
+ 'gradientOverlayLocation1' => '0',
1508
+ 'gradientOverlayLocation2' => '100',
1509
+ 'gradientOverlayAngle' => '0',
1510
+ 'gradientOverlayPosition' => 'center center',
1511
+ ),
1512
+ ),
1513
+ 'uagb/social-share' => array(
1514
+ 'slug' => '',
1515
+ 'title' => __( 'Social Share', 'ultimate-addons-for-gutenberg' ),
1516
+ 'description' => __( 'This block allows you to let users share your content across various social networking sites.', 'ultimate-addons-for-gutenberg' ),
1517
+ 'default' => true,
1518
+ 'attributes' => array(
1519
+ 'align' => 'center',
1520
+ 'social_count' => '1',
1521
+ 'socials' => array(
1522
+ array(
1523
+ 'type' => 'facebook',
1524
+ 'image_icon' => 'icon',
1525
+ 'icon' => 'fab fa-facebook',
1526
+ 'image' => '',
1527
+ 'icon_color' => '#3a3a3a',
1528
+ 'icon_hover_color' => '#3a3a3a',
1529
+ 'icon_bg_color' => '',
1530
+ 'icon_bg_hover_color' => '',
1531
+ ),
1532
+ ),
1533
+ 'gap' => '10',
1534
+ 'size' => '40',
1535
+ 'sizeType' => 'px',
1536
+ 'sizeMobile' => '',
1537
+ 'sizeTablet' => '',
1538
+ 'bgSize' => '0',
1539
+ 'bgSizeType' => 'px',
1540
+ 'bgSizeMobile' => '',
1541
+ 'bgSizeTablet' => '',
1542
+ 'borderRadius' => '0',
1543
+ 'social_layout' => 'horizontal',
1544
+ 'stack' => 'none',
1545
+ ),
1546
+ ),
1547
+ 'uagb/table-of-contents' => array(
1548
+ 'slug' => '',
1549
+ 'title' => __( 'Table of Contents', 'ultimate-addons-for-gutenberg' ),
1550
+ 'description' => __( 'This block allows you to place a Table of Contents for Pages/Posts.', 'ultimate-addons-for-gutenberg' ),
1551
+ 'default' => true,
1552
+ 'js_assets' => array( 'uagb-table-of-contents' ),
1553
+ 'attributes' => array(
1554
+ 'block_id' => '',
1555
+ 'heading' => 'Table Of Contents',
1556
+ 'disableBullets' => false,
1557
+ 'smoothScroll' => true,
1558
+ 'smoothScrollOffset' => 30,
1559
+ 'scrollToTop' => false,
1560
+ 'scrollToTopColor' => '',
1561
+ 'scrollToTopBgColor' => '',
1562
+ 'considerH1' => true,
1563
+ 'considerH2' => true,
1564
+ 'considerH3' => true,
1565
+ 'considerH4' => true,
1566
+ 'considerH5' => true,
1567
+ 'considerH6' => true,
1568
+ 'customWidth' => false,
1569
+ 'widthDesktop' => 100,
1570
+ 'widthTablet' => '',
1571
+ 'widthMobile' => '',
1572
+ 'tColumnsDesktop' => 1,
1573
+ 'tColumnsTablet' => 1,
1574
+ 'tColumnsMobile' => 1,
1575
+ 'widthTypeDesktop' => '%',
1576
+ 'widthTypeTablet' => '%',
1577
+ 'widthTypeMobile' => '%',
1578
+ 'makeCollapsible' => false,
1579
+ 'initialCollapse' => false,
1580
+ 'icon' => 'fa-angle-down',
1581
+ 'iconColor' => '',
1582
+ 'iconSize' => '',
1583
+ 'align' => 'left',
1584
+ 'linkColor' => '#333',
1585
+ 'vPaddingDesktop' => 30,
1586
+ 'vPaddingTablet' => '',
1587
+ 'vPaddingMobile' => '',
1588
+ 'hPaddingDesktop' => 30,
1589
+ 'hPaddingTablet' => '',
1590
+ 'hPaddingMobile' => '',
1591
+ 'paddingTypeDesktop' => 'px',
1592
+ 'paddingTypeTablet' => 'px',
1593
+ 'paddingTypeMobile' => 'px',
1594
+ 'vMarginDesktop' => '',
1595
+ 'vMarginTablet' => '',
1596
+ 'vMarginMobile' => '',
1597
+ 'hMarginDesktop' => '',
1598
+ 'hMarginTablet' => '',
1599
+ 'hMarginMobile' => '',
1600
+ 'marginTypeDesktop' => 'px',
1601
+ 'marginTypeTablet' => 'px',
1602
+ 'marginTypeMobile' => 'px',
1603
+ 'contentPaddingDesktop' => '',
1604
+ 'contentPaddingTablet' => '',
1605
+ 'contentPaddingMobile' => '',
1606
+ 'contentPaddingTypeDesktop' => 'px',
1607
+ 'contentPaddingTypeTablet' => 'px',
1608
+ 'contentPaddingTypeMobile' => 'px',
1609
+ 'headingBottom' => '',
1610
+ 'backgroundColor' => '#eee',
1611
+ 'linkHoverColor' => '',
1612
+ 'headingColor' => '',
1613
+ 'borderStyle' => 'solid',
1614
+ 'borderWidth' => 1,
1615
+ 'borderRadius' => '',
1616
+ 'borderColor' => '#333',
1617
+ 'loadGoogleFonts' => false,
1618
+ 'fontFamily' => '',
1619
+ 'fontWeight' => '',
1620
+ 'fontSubset' => '',
1621
+ 'fontSize' => '',
1622
+ 'fontSizeType' => 'px',
1623
+ 'fontSizeTablet' => '',
1624
+ 'fontSizeMobile' => '',
1625
+ 'lineHeightType' => 'em',
1626
+ 'lineHeight' => '',
1627
+ 'lineHeightTablet' => '',
1628
+ 'lineHeightMobile' => '',
1629
+ 'headingLoadGoogleFonts' => false,
1630
+ 'headingFontFamily' => '',
1631
+ 'headingFontWeight' => '500',
1632
+ 'headingFontSubset' => '',
1633
+ 'headingFontSize' => 20,
1634
+ 'headingFontSizeType' => 'px',
1635
+ 'headingFontSizeTablet' => '',
1636
+ 'headingFontSizeMobile' => '',
1637
+ 'headingLineHeightType' => 'em',
1638
+ 'headingLineHeight' => '',
1639
+ 'headingLineHeightTablet' => '',
1640
+ 'headingLineHeightMobile' => '',
1641
+ ),
1642
+ ),
1643
+ 'uagb/team' => array(
1644
+ 'slug' => '',
1645
+ 'title' => __( 'Team', 'ultimate-addons-for-gutenberg' ),
1646
+ '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' ),
1647
+ 'default' => true,
1648
+ 'attributes' => array(
1649
+ 'block_id' => '',
1650
+ 'align' => 'center',
1651
+ 'tag' => 'h3',
1652
+ 'titleColor' => '',
1653
+ 'prefixColor' => '#888888',
1654
+ 'descColor' => '',
1655
+ 'socialColor' => '#333',
1656
+ 'socialHoverColor' => '',
1657
+ 'titleFontFamily' => '',
1658
+ 'titleLoadGoogleFonts' => false,
1659
+ 'titleFontWeight' => '',
1660
+ 'titleFontSubset' => '',
1661
+ 'titleFontSize' => '',
1662
+ 'titleFontSizeType' => 'px',
1663
+ 'titleFontSizeTablet' => '',
1664
+ 'titleFontSizeMobile' => '',
1665
+ 'titleLineHeight' => '',
1666
+ 'titleLineHeightType' => 'em',
1667
+ 'titleLineHeightTablet' => '',
1668
+ 'titleLineHeightMobile' => '',
1669
+ 'prefixFontFamily' => '',
1670
+ 'prefixLoadGoogleFonts' => false,
1671
+ 'prefixFontWeight' => '',
1672
+ 'prefixFontSubset' => '',
1673
+ 'prefixFontSize' => 15,
1674
+ 'prefixFontSizeType' => 'px',
1675
+ 'prefixFontSizeTablet' => '',
1676
+ 'prefixFontSizeMobile' => '',
1677
+ 'prefixLineHeight' => '',
1678
+ 'prefixLineHeightType' => 'em',
1679
+ 'prefixLineHeightTablet' => '',
1680
+ 'prefixLineHeightMobile' => '',
1681
+ 'descFontFamily' => '',
1682
+ 'descLoadGoogleFonts' => false,
1683
+ 'descFontWeight' => '',
1684
+ 'descFontSubset' => '',
1685
+ 'descFontSize' => 15,
1686
+ 'descFontSizeType' => 'px',
1687
+ 'descFontSizeTablet' => '',
1688
+ 'descFontSizeMobile' => '',
1689
+ 'descLineHeight' => '',
1690
+ 'descLineHeightType' => 'em',
1691
+ 'descLineHeightTablet' => '',
1692
+ 'descLineHeightMobile' => '',
1693
+ 'socialFontSize' => 20,
1694
+ 'socialFontSizeType' => 'px',
1695
+ 'socialFontSizeMobile' => '',
1696
+ 'socialFontSizeTablet' => '',
1697
+ 'image' => '',
1698
+ 'imgStyle' => 'normal',
1699
+ 'imgPosition' => 'above',
1700
+ 'imgAlign' => 'top',
1701
+ 'imgSiz' => 'thumbnail',
1702
+ 'imgWidth' => 120,
1703
+ 'titleSpace' => '',
1704
+ 'prefixSpace' => '',
1705
+ 'descSpace' => 10,
1706
+ 'imgLeftMargin' => 20,
1707
+ 'imgRightMargin' => 20,
1708
+ 'imgTopMargin' => 15,
1709
+ 'imgBottomMargin' => 15,
1710
+ 'socialSpace' => 20,
1711
+ 'headingTag' => 'h3',
1712
+ ),
1713
+ ),
1714
+ 'uagb/testimonial' => array(
1715
+ 'slug' => '',
1716
+ 'title' => __( 'Testimonial', 'ultimate-addons-for-gutenberg' ),
1717
+ 'description' => __( 'This block helps your display some amazing client feedback within your website.', 'ultimate-addons-for-gutenberg' ),
1718
+ 'default' => true,
1719
+ 'js_assets' => array( 'uagb-slick-js' ),
1720
+ 'css_assets' => array( 'uagb-slick-css' ),
1721
+ 'attributes' => array(
1722
+ 'headingAlign' => 'center',
1723
+ 'companyColor' => '#888888',
1724
+ 'descColor' => '#333',
1725
+ 'authorColor' => '#333',
1726
+ 'nameFontSizeType' => 'px',
1727
+ 'nameFontSize' => '',
1728
+ 'nameFontSizeTablet' => '',
1729
+ 'nameFontSizeMobile' => '',
1730
+ 'nameFontFamily' => '',
1731
+ 'nameFontWeight' => '',
1732
+ 'nameFontSubset' => '',
1733
+ 'nameLineHeightType' => 'em',
1734
+ 'nameLineHeight' => '',
1735
+ 'nameLineHeightTablet' => '',
1736
+ 'nameLineHeightMobile' => '',
1737
+ 'nameLoadGoogleFonts' => false,
1738
+ 'companyFontSizeType' => 'px',
1739
+ 'companyFontSize' => '',
1740
+ 'companyFontSizeTablet' => '',
1741
+ 'companyFontSizeMobile' => '',
1742
+ 'companyFontFamily' => '',
1743
+ 'companyFontWeight' => '',
1744
+ 'companyFontSubset' => '',
1745
+ 'companyLineHeightType' => 'em',
1746
+ 'companyLineHeight' => '',
1747
+ 'companyLineHeightTablet' => '',
1748
+ 'companyLineHeightMobile' => '',
1749
+ 'companyLoadGoogleFonts' => false,
1750
+ 'descFontSizeType' => 'px',
1751
+ 'descFontSize' => '',
1752
+ 'descFontSizeTablet' => '',
1753
+ 'descFontSizeMobile' => '',
1754
+ 'descFontFamily' => '',
1755
+ 'descFontWeight' => '',
1756
+ 'descFontSubset' => '',
1757
+ 'descLineHeightType' => 'em',
1758
+ 'descLineHeight' => '',
1759
+ 'descLineHeightTablet' => '',
1760
+ 'descLineHeightMobile' => '',
1761
+ 'descLoadGoogleFonts' => false,
1762
+ 'descSpace' => 15,
1763
+ 'block_id' => '',
1764
+ 'nameSpace' => 5,
1765
+ 'imgVrPadding' => 10,
1766
+ 'imgHrPadding' => 10,
1767
+ 'imageWidth' => 60,
1768
+ 'rowGap' => 10,
1769
+ 'columnGap' => 10,
1770
+ 'contentPadding' => 5,
1771
+ 'backgroundColor' => '',
1772
+ 'backgroundImage' => '',
1773
+ 'backgroundPosition' => 'center-center',
1774
+ 'backgroundSize' => 'cover',
1775
+ 'backgroundRepeat' => 'no-repeat',
1776
+ 'backgroundImageColor' => '',
1777
+ 'backgroundOpacity' => 0,
1778
+ 'borderStyle' => 'none',
1779
+ 'borderWidth' => 1,
1780
+ 'borderRadius' => 0,
1781
+ 'borderColor' => '#333',
1782
+ 'arrowColor' => '#333',
1783
+ 'arrowDots' => 'arrowDots',
1784
+ 'arrowBorderSize' => 1,
1785
+ 'arrowBorderRadius' => 0,
1786
+ 'columns' => 1,
1787
+ 'autoplaySpeed' => 2000,
1788
+ 'autoplay' => true,
1789
+ 'infiniteLoop' => true,
1790
+ 'pauseOnHover' => true,
1791
+ 'transitionSpeed' => 500,
1792
+ 'tcolumns' => 1,
1793
+ 'mcolumns' => 1,
1794
+ 'arrowSize' => 20,
1795
+ 'test_item_count' => 3,
1796
+ ),
1797
+ ),
1798
+ );
1799
+ }
1800
+ return self::$block_attributes;
1801
+ }
1802
+
1803
+ /**
1804
+ * Get Block Assets.
1805
+ *
1806
+ * @since 1.13.4
1807
+ *
1808
+ * @return array The Asset List.
1809
+ */
1810
+ public static function get_block_assets() {
1811
+
1812
+ if ( null === self::$block_assets ) {
1813
+ self::$block_assets = array(
1814
+ 'uagb-timeline-js' => array(
1815
+ 'src' => UAGB_URL . 'assets/js/timeline.js',
1816
+ 'dep' => array( 'jquery' ),
1817
+ ),
1818
+ 'uagb-masonry' => array(
1819
+ 'src' => UAGB_URL . 'assets/js/isotope.min.js',
1820
+ 'dep' => array( 'jquery' ),
1821
+ ),
1822
+ 'uagb-imagesloaded' => array(
1823
+ 'src' => UAGB_URL . 'assets/js/imagesloaded.min.js',
1824
+ 'dep' => array( 'jquery' ),
1825
+ ),
1826
+ 'uagb-table-of-contents' => array(
1827
+ 'src' => UAGB_URL . 'assets/js/table-of-contents.js',
1828
+ 'dep' => array( 'jquery' ),
1829
+ ),
1830
+ 'uagb-slick-js' => array(
1831
+ 'src' => UAGB_URL . 'assets/js/slick.min.js',
1832
+ 'dep' => array( 'jquery' ),
1833
+ ),
1834
+ 'uagb-slick-css' => array(
1835
+ 'src' => UAGB_URL . 'assets/css/slick.css',
1836
+ 'dep' => array(),
1837
+ ),
1838
+ 'uagb-carousel-js' => array(
1839
+ 'src' => UAGB_URL . 'assets/js/post-carousel.js',
1840
+ 'dep' => array( 'jquery', 'uagb-slick-js' ),
1841
+ ),
1842
+ );
1843
+ }
1844
+ return self::$block_assets;
1845
+ }
1846
+ }
1847
+ }
classes/class-uagb-helper.php CHANGED
@@ -1,1565 +1,1565 @@
1
- <?php
2
- /**
3
- * UAGB Helper.
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit; // Exit if accessed directly.
10
- }
11
-
12
- if ( ! class_exists( 'UAGB_Helper' ) ) {
13
-
14
- /**
15
- * Class UAGB_Helper.
16
- */
17
- final class UAGB_Helper {
18
-
19
-
20
- /**
21
- * Member Variable
22
- *
23
- * @since 0.0.1
24
- * @var instance
25
- */
26
- private static $instance;
27
-
28
- /**
29
- * Member Variable
30
- *
31
- * @since 0.0.1
32
- * @var instance
33
- */
34
- public static $block_list;
35
-
36
- /**
37
- * Current Block List
38
- *
39
- * @since 1.13.4
40
- * @var current_block_list
41
- */
42
- public static $current_block_list = array();
43
-
44
- /**
45
- * UAG Block Flag
46
- *
47
- * @since 1.13.4
48
- * @var uag_flag
49
- */
50
- public static $uag_flag = false;
51
-
52
- /**
53
- * UAG File Generation Flag
54
- *
55
- * @since 1.14.0
56
- * @var file_generation
57
- */
58
- public static $file_generation = 'disabled';
59
-
60
- /**
61
- * Enque Style and Script Variable
62
- *
63
- * @since 1.14.0
64
- * @var instance
65
- */
66
- public static $css_file_handler;
67
-
68
- /**
69
- * Stylesheet
70
- *
71
- * @since 1.13.4
72
- * @var stylesheet
73
- */
74
- public static $stylesheet;
75
-
76
- /**
77
- * Script
78
- *
79
- * @since 1.13.4
80
- * @var script
81
- */
82
- public static $script;
83
-
84
- /**
85
- * Store Json variable
86
- *
87
- * @since 1.8.1
88
- * @var instance
89
- */
90
- public static $icon_json;
91
-
92
- /**
93
- * Page Blocks Variable
94
- *
95
- * @since 1.6.0
96
- * @var instance
97
- */
98
- public static $page_blocks;
99
-
100
- /**
101
- * Google fonts to enqueue
102
- *
103
- * @var array
104
- */
105
- public static $gfonts = array();
106
-
107
- /**
108
- * Initiator
109
- *
110
- * @since 0.0.1
111
- */
112
- public static function get_instance() {
113
- if ( ! isset( self::$instance ) ) {
114
- self::$instance = new self;
115
- }
116
- return self::$instance;
117
- }
118
-
119
- /**
120
- * Constructor
121
- */
122
- public function __construct() {
123
-
124
- require( UAGB_DIR . 'classes/class-uagb-config.php' );
125
- require( UAGB_DIR . 'classes/class-uagb-block-helper.php' );
126
-
127
- self::$block_list = UAGB_Config::get_block_attributes();
128
- self::$file_generation = self::allow_file_generation();
129
-
130
- add_action( 'wp_enqueue_scripts', array( $this, 'block_assets' ) );
131
- add_action( 'wp', array( $this, 'generate_stylesheet' ), 99 );
132
- add_action( 'wp', array( $this, 'generate_script' ), 100 );
133
- add_action( 'wp_head', array( $this, 'frontend_gfonts' ), 120 );
134
- add_action( 'wp_head', array( $this, 'print_stylesheet' ), 80 );
135
- add_action( 'wp_footer', array( $this, 'print_script' ), 1000 );
136
- }
137
-
138
- /**
139
- * Enqueue Gutenberg block assets for both frontend + backend.
140
- *
141
- * @since 1.13.4
142
- */
143
- public function block_assets() {
144
-
145
- $block_list_for_assets = self::$current_block_list;
146
-
147
- $blocks = UAGB_Config::get_block_attributes();
148
-
149
- foreach ( $block_list_for_assets as $key => $curr_block_name ) {
150
-
151
- $js_assets = ( isset( $blocks[ $curr_block_name ]['js_assets'] ) ) ? $blocks[ $curr_block_name ]['js_assets'] : array();
152
-
153
- $css_assets = ( isset( $blocks[ $curr_block_name ]['css_assets'] ) ) ? $blocks[ $curr_block_name ]['css_assets'] : array();
154
-
155
- foreach ( $js_assets as $asset_handle => $val ) {
156
- // Scripts.
157
- wp_enqueue_script( $val );
158
- }
159
-
160
- foreach ( $css_assets as $asset_handle => $val ) {
161
- // Styles.
162
- wp_enqueue_style( $val );
163
- }
164
- }
165
-
166
- if ( 'enabled' === self::$file_generation ) {
167
- $file_handler = self::$css_file_handler;
168
-
169
- if ( isset( $file_handler['css_url'] ) ) {
170
- wp_enqueue_style( 'uag-style', $file_handler['css_url'], array(), '', 'all' );
171
- }
172
- if ( isset( $file_handler['js_url'] ) ) {
173
- wp_enqueue_script( 'uag-script', $file_handler['js_url'], array(), UAGB_VER, true );
174
- }
175
- }
176
-
177
- }
178
-
179
- /**
180
- * Print the Script in footer.
181
- */
182
- public function print_script() {
183
-
184
- if ( 'enabled' === self::$file_generation ) {
185
- return;
186
- }
187
-
188
- if ( is_null( self::$script ) || '' === self::$script ) {
189
- return;
190
- }
191
-
192
- self::file_write( self::$script, 'js' );
193
-
194
- ob_start();
195
- ?>
196
- <script type="text/javascript" id="uagb-script-frontend">( function( $ ) { <?php echo self::$script; ?> })(jQuery) </script>
197
- <?php
198
- ob_end_flush();
199
- }
200
-
201
- /**
202
- * Print the Stylesheet in header.
203
- */
204
- public function print_stylesheet() {
205
-
206
- if ( 'enabled' === self::$file_generation ) {
207
- return;
208
- }
209
-
210
- global $content_width;
211
-
212
- if ( is_null( self::$stylesheet ) || '' === self::$stylesheet ) {
213
- return;
214
- }
215
-
216
- self::$stylesheet = str_replace( '#CONTENT_WIDTH#', $content_width . 'px', self::$stylesheet );
217
-
218
- self::file_write( self::$stylesheet, 'css' );
219
-
220
- ob_start();
221
- ?>
222
- <style type="text/css" media="all" id="uagb-style-frontend"><?php echo self::$stylesheet; ?></style>
223
- <?php
224
- ob_end_flush();
225
- }
226
-
227
- /**
228
- * Load the front end Google Fonts.
229
- */
230
- public function frontend_gfonts() {
231
- if ( empty( self::$gfonts ) ) {
232
- return;
233
- }
234
- $show_google_fonts = apply_filters( 'uagb_blocks_show_google_fonts', true );
235
- if ( ! $show_google_fonts ) {
236
- return;
237
- }
238
- $link = '';
239
- $subsets = array();
240
- foreach ( self::$gfonts as $key => $gfont_values ) {
241
- if ( ! empty( $link ) ) {
242
- $link .= '%7C'; // Append a new font to the string.
243
- }
244
- $link .= $gfont_values['fontfamily'];
245
- if ( ! empty( $gfont_values['fontvariants'] ) ) {
246
- $link .= ':';
247
- $link .= implode( ',', $gfont_values['fontvariants'] );
248
- }
249
- if ( ! empty( $gfont_values['fontsubsets'] ) ) {
250
- foreach ( $gfont_values['fontsubsets'] as $subset ) {
251
- if ( ! in_array( $subset, $subsets, true ) ) {
252
- array_push( $subsets, $subset );
253
- }
254
- }
255
- }
256
- }
257
- if ( ! empty( $subsets ) ) {
258
- $link .= '&amp;subset=' . implode( ',', $subsets );
259
- }
260
- echo '<link href="//fonts.googleapis.com/css?family=' . esc_attr( str_replace( '|', '%7C', $link ) ) . '" rel="stylesheet">';
261
- }
262
-
263
-
264
- /**
265
- * Parse CSS into correct CSS syntax.
266
- *
267
- * @param array $selectors The block selectors.
268
- * @param string $id The selector ID.
269
- * @since 0.0.1
270
- */
271
- public static function generate_css( $selectors, $id ) {
272
-
273
- $styling_css = '';
274
- $styling_css = '';
275
-
276
- if ( empty( $selectors ) ) {
277
- return;
278
- }
279
-
280
- foreach ( $selectors as $key => $value ) {
281
-
282
- $css = '';
283
-
284
- foreach ( $value as $j => $val ) {
285
-
286
- if ( 'font-family' === $j && 'Default' === $val ) {
287
- continue;
288
- }
289
-
290
- if ( ! empty( $val ) || 0 === $val ) {
291
- $css .= $j . ': ' . $val . ';';
292
- }
293
- }
294
-
295
- if ( ! empty( $css ) ) {
296
- $styling_css .= $id;
297
- $styling_css .= $key . '{';
298
- $styling_css .= $css . '}';
299
- }
300
- }
301
-
302
- return $styling_css;
303
- }
304
-
305
- /**
306
- * Get CSS value
307
- *
308
- * Syntax:
309
- *
310
- * get_css_value( VALUE, UNIT );
311
- *
312
- * E.g.
313
- *
314
- * get_css_value( VALUE, 'em' );
315
- *
316
- * @param string $value CSS value.
317
- * @param string $unit CSS unit.
318
- * @since 1.13.4
319
- */
320
- public static function get_css_value( $value = '', $unit = '' ) {
321
-
322
- // @codingStandardsIgnoreStart
323
-
324
- if ( '' == $value ) {
325
- return $value;
326
- }
327
- // @codingStandardsIgnoreEnd
328
-
329
- $css_val = '';
330
-
331
- if ( ! empty( $value ) ) {
332
- $css_val = esc_attr( $value ) . $unit;
333
- }
334
-
335
- return $css_val;
336
- }
337
-
338
- /**
339
- * Generates CSS recurrsively.
340
- *
341
- * @param object $block The block object.
342
- * @since 0.0.1
343
- */
344
- public function get_block_css( $block ) {
345
-
346
- // @codingStandardsIgnoreStart
347
-
348
- $block = ( array ) $block;
349
-
350
- $name = $block['blockName'];
351
- $css = array();
352
- $block_id = '';
353
-
354
- if( ! isset( $name ) ) {
355
- return;
356
- }
357
-
358
- if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
359
- $blockattr = $block['attrs'];
360
- if ( isset( $blockattr['block_id'] ) ) {
361
- $block_id = $blockattr['block_id'];
362
- }
363
- }
364
-
365
- self::$current_block_list[] = $name;
366
-
367
- if ( strpos( $name, 'uagb/' ) !== false ) {
368
- self::$uag_flag = true;
369
- }
370
-
371
- switch ( $name ) {
372
- case 'uagb/section':
373
- $css += UAGB_Block_Helper::get_section_css( $blockattr, $block_id );
374
- break;
375
-
376
- case 'uagb/advanced-heading':
377
- $css += UAGB_Block_Helper::get_adv_heading_css( $blockattr, $block_id );
378
- UAGB_Block_Helper::blocks_advanced_heading_gfont( $blockattr );
379
- break;
380
-
381
- case 'uagb/info-box':
382
- $css += UAGB_Block_Helper::get_info_box_css( $blockattr, $block_id );
383
- UAGB_Block_Helper::blocks_info_box_gfont( $blockattr );
384
- break;
385
-
386
- case 'uagb/buttons':
387
- $css += UAGB_Block_Helper::get_buttons_css( $blockattr, $block_id );
388
- UAGB_Block_Helper::blocks_buttons_gfont( $blockattr );
389
- break;
390
-
391
- case 'uagb/blockquote':
392
- $css += UAGB_Block_Helper::get_blockquote_css( $blockattr, $block_id );
393
- UAGB_Block_Helper::blocks_blockquote_gfont( $blockattr );
394
- break;
395
-
396
- case 'uagb/testimonial':
397
- $css += UAGB_Block_Helper::get_testimonial_css( $blockattr, $block_id );
398
- UAGB_Block_Helper::blocks_testimonial_gfont( $blockattr );
399
- break;
400
-
401
- case 'uagb/team':
402
- $css += UAGB_Block_Helper::get_team_css( $blockattr, $block_id );
403
- UAGB_Block_Helper::blocks_team_gfont( $blockattr );
404
- break;
405
-
406
- case 'uagb/social-share':
407
- $css += UAGB_Block_Helper::get_social_share_css( $blockattr, $block_id );
408
- break;
409
-
410
- case 'uagb/content-timeline':
411
- $css += UAGB_Block_Helper::get_content_timeline_css( $blockattr, $block_id );
412
- UAGB_Block_Helper::blocks_content_timeline_gfont( $blockattr );
413
- break;
414
-
415
- case 'uagb/restaurant-menu':
416
- $css += UAGB_Block_Helper::get_restaurant_menu_css( $blockattr, $block_id );
417
- UAGB_Block_Helper::blocks_restaurant_menu_gfont( $blockattr );
418
- break;
419
-
420
- case 'uagb/call-to-action':
421
- $css += UAGB_Block_Helper::get_call_to_action_css( $blockattr, $block_id );
422
- UAGB_Block_Helper::blocks_call_to_action_gfont( $blockattr );
423
- break;
424
-
425
- case 'uagb/post-timeline':
426
- $css += UAGB_Block_Helper::get_post_timeline_css( $blockattr, $block_id );
427
- UAGB_Block_Helper::blocks_post_timeline_gfont( $blockattr );
428
- break;
429
-
430
- case 'uagb/icon-list':
431
- $css += UAGB_Block_Helper::get_icon_list_css( $blockattr, $block_id );
432
- UAGB_Block_Helper::blocks_icon_list_gfont( $blockattr );
433
- break;
434
-
435
- case 'uagb/post-grid':
436
- $css += UAGB_Block_Helper::get_post_grid_css( $blockattr, $block_id );
437
- UAGB_Block_Helper::blocks_post_gfont( $blockattr );
438
- break;
439
-
440
- case 'uagb/post-carousel':
441
- $css += UAGB_Block_Helper::get_post_carousel_css( $blockattr, $block_id );
442
- UAGB_Block_Helper::blocks_post_gfont( $blockattr );
443
- break;
444
-
445
- case 'uagb/post-masonry':
446
- $css += UAGB_Block_Helper::get_post_masonry_css( $blockattr, $block_id );
447
- UAGB_Block_Helper::blocks_post_gfont( $blockattr );
448
- break;
449
-
450
- case 'uagb/columns':
451
- $css += UAGB_Block_Helper::get_columns_css( $blockattr, $block_id );
452
- break;
453
-
454
- case 'uagb/column':
455
- $css += UAGB_Block_Helper::get_column_css( $blockattr, $block_id );
456
- break;
457
-
458
- case 'uagb/cf7-styler':
459
- $css += UAGB_Block_Helper::get_cf7_styler_css( $blockattr, $block_id );
460
- UAGB_Block_Helper::blocks_cf7_styler_gfont( $blockattr );
461
- break;
462
-
463
- case 'uagb/marketing-button':
464
- $css += UAGB_Block_Helper::get_marketing_btn_css( $blockattr, $block_id );
465
- UAGB_Block_Helper::blocks_marketing_btn_gfont( $blockattr );
466
- break;
467
-
468
- case 'uagb/gf-styler':
469
- $css += UAGB_Block_Helper::get_gf_styler_css( $blockattr, $block_id );
470
- UAGB_Block_Helper::blocks_gf_styler_gfont( $blockattr );
471
- break;
472
-
473
- case 'uagb/table-of-contents':
474
- $css += UAGB_Block_Helper::get_table_of_contents_css( $blockattr, $block_id );
475
- UAGB_Block_Helper::blocks_table_of_contents_gfont( $blockattr );
476
- break;
477
-
478
- default:
479
- // Nothing to do here.
480
- break;
481
- }
482
-
483
- if ( isset( $block['innerBlocks'] ) ) {
484
- foreach ( $block['innerBlocks'] as $j => $inner_block ) {
485
- if ( 'core/block' == $inner_block['blockName'] ) {
486
- $id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
487
-
488
- if ( $id ) {
489
- $content = get_post_field( 'post_content', $id );
490
-
491
- $reusable_blocks = $this->parse( $content );
492
-
493
- self::$stylesheet .= $this->get_stylesheet( $reusable_blocks );
494
- }
495
- } else {
496
- // Get CSS for the Block.
497
- $inner_block_css = $this->get_block_css( $inner_block );
498
-
499
- $css_desktop = ( isset( $css['desktop'] ) ? $css['desktop'] : '' );
500
- $css_tablet = ( isset( $css['tablet'] ) ? $css['tablet'] : '' );
501
- $css_mobile = ( isset( $css['mobile'] ) ? $css['mobile'] : '' );
502
-
503
- if( isset( $inner_block_css['desktop'] ) ){
504
- $css['desktop'] = $css_desktop . $inner_block_css['desktop'];
505
- $css['tablet'] = $css_tablet . $inner_block_css['tablet'];
506
- $css['mobile'] = $css_mobile . $inner_block_css['mobile'];
507
- }
508
- }
509
- }
510
- }
511
-
512
- self::$current_block_list = array_unique( self::$current_block_list );
513
-
514
- return $css;
515
-
516
- // @codingStandardsIgnoreEnd
517
- }
518
-
519
- /**
520
- * Adds Google fonts all blocks.
521
- *
522
- * @param array $load_google_font the blocks attr.
523
- * @param array $font_family the blocks attr.
524
- * @param array $font_weight the blocks attr.
525
- * @param array $font_subset the blocks attr.
526
- */
527
- public static function blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset ) {
528
-
529
- if ( true === $load_google_font ) {
530
- if ( ! array_key_exists( $font_family, self::$gfonts ) ) {
531
- $add_font = array(
532
- 'fontfamily' => $font_family,
533
- 'fontvariants' => ( isset( $font_weight ) && ! empty( $font_weight ) ? array( $font_weight ) : array() ),
534
- 'fontsubsets' => ( isset( $font_subset ) && ! empty( $font_subset ) ? array( $font_subset ) : array() ),
535
- );
536
- self::$gfonts[ $font_family ] = $add_font;
537
- } else {
538
- if ( isset( $font_weight ) && ! empty( $font_weight ) ) {
539
- if ( ! in_array( $font_weight, self::$gfonts[ $font_family ]['fontvariants'], true ) ) {
540
- array_push( self::$gfonts[ $font_family ]['fontvariants'], $font_weight );
541
- }
542
- }
543
- if ( isset( $font_subset ) && ! empty( $font_subset ) ) {
544
- if ( ! in_array( $font_subset, self::$gfonts[ $font_family ]['fontsubsets'], true ) ) {
545
- array_push( self::$gfonts[ $font_family ]['fontsubsets'], $font_subset );
546
- }
547
- }
548
- }
549
- }
550
- }
551
-
552
- /**
553
- * Generates Js recurrsively.
554
- *
555
- * @param object $block The block object.
556
- * @since 1.6.0
557
- */
558
- public function get_block_js( $block ) {
559
-
560
- // @codingStandardsIgnoreStart
561
-
562
- $block = ( array ) $block;
563
-
564
- $name = $block['blockName'];
565
- $js = '';
566
-
567
- if( ! isset( $name ) ) {
568
- return;
569
- }
570
-
571
- if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
572
- $blockattr = $block['attrs'];
573
- if ( isset( $blockattr['block_id'] ) ) {
574
- $block_id = $blockattr['block_id'];
575
- }
576
- }
577
-
578
- switch ( $name ) {
579
- case 'uagb/testimonial':
580
- $js .= UAGB_Block_Helper::get_testimonial_js( $blockattr, $block_id );
581
- break;
582
-
583
- case 'uagb/blockquote':
584
- $js .= UAGB_Block_Helper::get_blockquote_js( $blockattr, $block_id );
585
- break;
586
-
587
- case 'uagb/social-share':
588
- $js .= UAGB_Block_Helper::get_social_share_js( $block_id );
589
- break;
590
-
591
- case 'uagb/table-of-contents':
592
- $js .= UAGB_Block_Helper::get_table_of_contents_js( $blockattr, $block_id );
593
- break;
594
-
595
- default:
596
- // Nothing to do here.
597
- break;
598
- }
599
-
600
- if ( isset( $block['innerBlocks'] ) ) {
601
-
602
- foreach ( $block['innerBlocks'] as $j => $inner_block ) {
603
-
604
- if ( 'core/block' == $inner_block['blockName'] ) {
605
- $id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
606
-
607
- if ( $id ) {
608
- $content = get_post_field( 'post_content', $id );
609
-
610
- $reusable_blocks = $this->parse( $content );
611
-
612
- $this->get_scripts( $reusable_blocks );
613
- }
614
- } else {
615
- // Get JS for the Block.
616
- $js .= $this->get_block_js( $inner_block );
617
- }
618
- }
619
- }
620
-
621
- return $js;
622
-
623
- // @codingStandardsIgnoreEnd
624
- }
625
-
626
- /**
627
- * Generates stylesheet and appends in head tag.
628
- *
629
- * @since 0.0.1
630
- */
631
- public function generate_stylesheet() {
632
-
633
- $this_post = array();
634
-
635
- if ( class_exists( 'WooCommerce' ) ) {
636
-
637
- if ( is_cart() ) {
638
-
639
- $id = get_option( 'woocommerce_cart_page_id' );
640
- $this_post = get_post( $id );
641
-
642
- } elseif ( is_account_page() ) {
643
-
644
- $id = get_option( 'woocommerce_myaccount_page_id' );
645
- $this_post = get_post( $id );
646
-
647
- } elseif ( is_checkout() ) {
648
-
649
- $id = get_option( 'woocommerce_checkout_page_id' );
650
- $this_post = get_post( $id );
651
-
652
- } elseif ( is_checkout_pay_page() ) {
653
-
654
- $id = get_option( 'woocommerce_pay_page_id' );
655
- $this_post = get_post( $id );
656
-
657
- } elseif ( is_shop() ) {
658
-
659
- $id = get_option( 'woocommerce_shop_page_id' );
660
- $this_post = get_post( $id );
661
- }
662
-
663
- if ( is_object( $this_post ) ) {
664
- $this->_generate_stylesheet( $this_post );
665
- return;
666
- }
667
- }
668
-
669
- if ( is_single() || is_page() || is_404() ) {
670
-
671
- global $post;
672
- $this_post = $post;
673
-
674
- if ( ! is_object( $this_post ) ) {
675
- return;
676
- }
677
-
678
- $this->_generate_stylesheet( $this_post );
679
-
680
- } elseif ( is_archive() || is_home() || is_search() ) {
681
-
682
- global $wp_query;
683
-
684
- foreach ( $wp_query as $post ) {
685
- $this->_generate_stylesheet( $post );
686
- }
687
- }
688
-
689
- self::file_write( self::$stylesheet, 'css' );
690
- }
691
-
692
- /**
693
- * Generates stylesheet in loop.
694
- *
695
- * @param object $this_post Current Post Object.
696
- * @since 1.7.0
697
- */
698
- public function _generate_stylesheet( $this_post ) {
699
-
700
- if ( ! is_object( $this_post ) ) {
701
- return;
702
- }
703
-
704
- if ( ! isset( $this_post->ID ) ) {
705
- return;
706
- }
707
-
708
- if ( has_blocks( $this_post->ID ) ) {
709
-
710
- if ( isset( $this_post->post_content ) ) {
711
-
712
- $blocks = $this->parse( $this_post->post_content );
713
- self::$page_blocks = $blocks;
714
-
715
- if ( ! is_array( $blocks ) || empty( $blocks ) ) {
716
- return;
717
- }
718
-
719
- self::$stylesheet .= $this->get_stylesheet( $blocks );
720
- }
721
- }
722
- }
723
-
724
- /**
725
- * Generates scripts and appends in footer tag.
726
- *
727
- * @since 1.5.0
728
- */
729
- public function generate_script() {
730
-
731
- $blocks = self::$page_blocks;
732
-
733
- if ( ! is_array( $blocks ) || empty( $blocks ) ) {
734
- return;
735
- }
736
-
737
- $this->get_scripts( $blocks );
738
-
739
- if ( ! empty( self::$script ) ) {
740
- self::file_write( self::$script, 'js' );
741
- }
742
-
743
- }
744
-
745
- /**
746
- * Parse Guten Block.
747
- *
748
- * @param string $content the content string.
749
- * @since 1.1.0
750
- */
751
- public function parse( $content ) {
752
-
753
- global $wp_version;
754
-
755
- return ( version_compare( $wp_version, '5', '>=' ) ) ? parse_blocks( $content ) : gutenberg_parse_blocks( $content );
756
- }
757
-
758
- /**
759
- * Generates stylesheet for reusable blocks.
760
- *
761
- * @param array $blocks Blocks array.
762
- * @since 1.1.0
763
- */
764
- public function get_stylesheet( $blocks ) {
765
-
766
- $desktop = '';
767
- $tablet = '';
768
- $mobile = '';
769
-
770
- $tab_styling_css = '';
771
- $mob_styling_css = '';
772
-
773
- foreach ( $blocks as $i => $block ) {
774
-
775
- if ( is_array( $block ) ) {
776
-
777
- if ( '' === $block['blockName'] ) {
778
- continue;
779
- }
780
- if ( 'core/block' === $block['blockName'] ) {
781
- $id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
782
-
783
- if ( $id ) {
784
- $content = get_post_field( 'post_content', $id );
785
-
786
- $reusable_blocks = $this->parse( $content );
787
-
788
- self::$stylesheet .= $this->get_stylesheet( $reusable_blocks );
789
-
790
- }
791
- } else {
792
- // Get CSS for the Block.
793
- $css = $this->get_block_css( $block );
794
-
795
- if ( isset( $css['desktop'] ) ) {
796
- $desktop .= $css['desktop'];
797
- $tablet .= $css['tablet'];
798
- $mobile .= $css['mobile'];
799
- }
800
- }
801
- }
802
- }
803
-
804
- if ( ! empty( $tablet ) ) {
805
- $tab_styling_css .= '@media only screen and (max-width: ' . UAGB_TABLET_BREAKPOINT . 'px) {';
806
- $tab_styling_css .= $tablet;
807
- $tab_styling_css .= '}';
808
- }
809
-
810
- if ( ! empty( $mobile ) ) {
811
- $mob_styling_css .= '@media only screen and (max-width: ' . UAGB_MOBILE_BREAKPOINT . 'px) {';
812
- $mob_styling_css .= $mobile;
813
- $mob_styling_css .= '}';
814
- }
815
-
816
- return $desktop . $tab_styling_css . $mob_styling_css;
817
- }
818
-
819
-
820
- /**
821
- * Generates scripts for reusable blocks.
822
- *
823
- * @param array $blocks Blocks array.
824
- * @since 1.6.0
825
- */
826
- public function get_scripts( $blocks ) {
827
-
828
- foreach ( $blocks as $i => $block ) {
829
- if ( is_array( $block ) ) {
830
- if ( 'core/block' === $block['blockName'] ) {
831
- $id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
832
-
833
- if ( $id ) {
834
- $content = get_post_field( 'post_content', $id );
835
-
836
- $reusable_blocks = $this->parse( $content );
837
-
838
- $this->get_scripts( $reusable_blocks );
839
- }
840
- } else {
841
- // Get JS for the Block.
842
- self::$script .= $this->get_block_js( $block );
843
- }
844
- }
845
- }
846
-
847
- if ( ! empty( self::$script ) ) {
848
- self::$script = '( function( $ ) { ' . self::$script . '})(jQuery)';
849
- }
850
- }
851
-
852
- /**
853
- * Get Buttons default array.
854
- *
855
- * @since 0.0.1
856
- */
857
- public static function get_button_defaults() {
858
-
859
- $default = array();
860
-
861
- for ( $i = 1; $i <= 2; $i++ ) {
862
- array_push(
863
- $default,
864
- array(
865
- 'size' => '',
866
- 'vPadding' => 10,
867
- 'hPadding' => 14,
868
- 'borderWidth' => 1,
869
- 'borderRadius' => 2,
870
- 'borderStyle' => 'solid',
871
- 'borderColor' => '#333',
872
- 'borderHColor' => '#333',
873
- 'color' => '#333',
874
- 'background' => '',
875
- 'hColor' => '#333',
876
- 'hBackground' => '',
877
- 'sizeType' => 'px',
878
- 'sizeMobile' => '',
879
- 'sizeTablet' => '',
880
- 'lineHeightType' => 'em',
881
- 'lineHeight' => '',
882
- 'lineHeightMobile' => '',
883
- 'lineHeightTablet' => '',
884
- )
885
- );
886
- }
887
-
888
- return $default;
889
- }
890
-
891
- /**
892
- * Returns an option from the database for
893
- * the admin settings page.
894
- *
895
- * @param string $key The option key.
896
- * @param mixed $default Option default value if option is not available.
897
- * @param boolean $network_override Whether to allow the network admin setting to be overridden on subsites.
898
- * @return string Return the option value
899
- */
900
- public static function get_admin_settings_option( $key, $default = false, $network_override = false ) {
901
-
902
- // Get the site-wide option if we're in the network admin.
903
- if ( $network_override && is_multisite() ) {
904
- $value = get_site_option( $key, $default );
905
- } else {
906
- $value = get_option( $key, $default );
907
- }
908
-
909
- return $value;
910
- }
911
-
912
- /**
913
- * Updates an option from the admin settings page.
914
- *
915
- * @param string $key The option key.
916
- * @param mixed $value The value to update.
917
- * @param bool $network Whether to allow the network admin setting to be overridden on subsites.
918
- * @return mixed
919
- */
920
- public static function update_admin_settings_option( $key, $value, $network = false ) {
921
-
922
- // Update the site-wide option since we're in the network admin.
923
- if ( $network && is_multisite() ) {
924
- update_site_option( $key, $value );
925
- } else {
926
- update_option( $key, $value );
927
- }
928
- }
929
-
930
- /**
931
- * Is Knowledgebase.
932
- *
933
- * @return string
934
- * @since 0.0.1
935
- */
936
- public static function knowledgebase_data() {
937
-
938
- $knowledgebase = array(
939
- 'enable_knowledgebase' => true,
940
- 'knowledgebase_url' => 'https://www.ultimategutenberg.com/docs/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard',
941
- );
942
-
943
- return $knowledgebase;
944
- }
945
-
946
- /**
947
- * Is Knowledgebase.
948
- *
949
- * @return string
950
- * @since 0.0.1
951
- */
952
- public static function support_data() {
953
-
954
- $support = array(
955
- 'enable_support' => true,
956
- 'support_url' => 'https://www.ultimategutenberg.com/support/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard',
957
- );
958
-
959
- return $support;
960
- }
961
-
962
- /**
963
- * Provide Widget settings.
964
- *
965
- * @return array()
966
- * @since 0.0.1
967
- */
968
- public static function get_block_options() {
969
-
970
- $blocks = self::$block_list;
971
- $saved_blocks = self::get_admin_settings_option( '_uagb_blocks' );
972
- if ( is_array( $blocks ) ) {
973
- foreach ( $blocks as $slug => $data ) {
974
- $_slug = str_replace( 'uagb/', '', $slug );
975
-
976
- if ( isset( $saved_blocks[ $_slug ] ) ) {
977
- if ( 'disabled' === $saved_blocks[ $_slug ] ) {
978
- $blocks[ $slug ]['is_activate'] = false;
979
- } else {
980
- $blocks[ $slug ]['is_activate'] = true;
981
- }
982
- } else {
983
- $blocks[ $slug ]['is_activate'] = ( isset( $data['default'] ) ) ? $data['default'] : false;
984
- }
985
- }
986
- }
987
-
988
- self::$block_list = $blocks;
989
-
990
- return apply_filters( 'uagb_enabled_blocks', self::$block_list );
991
- }
992
-
993
- /**
994
- * Get Json Data.
995
- *
996
- * @since 1.8.1
997
- * @return Array
998
- */
999
- public static function backend_load_font_awesome_icons() {
1000
-
1001
- $json_file = UAGB_DIR . 'dist/blocks/uagb-controls/UAGBIcon.json';
1002
- if ( ! file_exists( $json_file ) ) {
1003
- return array();
1004
- }
1005
-
1006
- // Function has already run.
1007
- if ( null !== self::$icon_json ) {
1008
- return self::$icon_json;
1009
- }
1010
-
1011
- $str = file_get_contents( $json_file );
1012
- self::$icon_json = json_decode( $str, true );
1013
- return self::$icon_json;
1014
- }
1015
-
1016
- /**
1017
- * Generate SVG.
1018
- *
1019
- * @since 1.8.1
1020
- * @param array $icon Decoded fontawesome json file data.
1021
- * @return string
1022
- */
1023
- public static function render_svg_html( $icon ) {
1024
- $icon = str_replace( 'far', '', $icon );
1025
- $icon = str_replace( 'fas', '', $icon );
1026
- $icon = str_replace( 'fab', '', $icon );
1027
- $icon = str_replace( 'fa-', '', $icon );
1028
- $icon = str_replace( 'fa', '', $icon );
1029
- $icon = sanitize_text_field( esc_attr( $icon ) );
1030
-
1031
- $json = UAGB_Helper::backend_load_font_awesome_icons();
1032
- $path = isset( $json[ $icon ]['svg']['brands'] ) ? $json[ $icon ]['svg']['brands']['path'] : $json[ $icon ]['svg']['solid']['path'];
1033
- $view = isset( $json[ $icon ]['svg']['brands'] ) ? $json[ $icon ]['svg']['brands']['viewBox'] : $json[ $icon ]['svg']['solid']['viewBox'];
1034
- if ( $view ) {
1035
- $view = implode( ' ', $view );
1036
- }
1037
- $htm = '<svg xmlns="http://www.w3.org/2000/svg" viewBox= "' . $view . '"><path d="' . $path . '"></path></svg>';
1038
- return $htm;
1039
- }
1040
-
1041
- /**
1042
- * Returns Query.
1043
- *
1044
- * @param array $attributes The block attributes.
1045
- * @param string $block_type The Block Type.
1046
- * @since 1.8.2
1047
- */
1048
- public static function get_query( $attributes, $block_type ) {
1049
-
1050
- // Block type is grid/masonry/carousel/timeline.
1051
- $query_args = array(
1052
- 'posts_per_page' => ( isset( $attributes['postsToShow'] ) ) ? $attributes['postsToShow'] : 6,
1053
- 'post_status' => 'publish',
1054
- 'post_type' => ( isset( $attributes['postType'] ) ) ? $attributes['postType'] : 'post',
1055
- 'order' => ( isset( $attributes['order'] ) ) ? $attributes['order'] : 'desc',
1056
- 'orderby' => ( isset( $attributes['orderBy'] ) ) ? $attributes['orderBy'] : 'date',
1057
- 'ignore_sticky_posts' => 1,
1058
- );
1059
-
1060
- if ( isset( $attributes['categories'] ) && '' !== $attributes['categories'] ) {
1061
- $query_args['tax_query'][] = array(
1062
- 'taxonomy' => ( isset( $attributes['taxonomyType'] ) ) ? $attributes['taxonomyType'] : 'category',
1063
- 'field' => 'id',
1064
- 'terms' => $attributes['categories'],
1065
- 'operator' => 'IN',
1066
- );
1067
- }
1068
-
1069
- $query_args = apply_filters( "uagb_post_query_args_{$block_type}", $query_args, $attributes );
1070
-
1071
- return new WP_Query( $query_args );
1072
- }
1073
-
1074
- /**
1075
- * Get size information for all currently-registered image sizes.
1076
- *
1077
- * @global $_wp_additional_image_sizes
1078
- * @uses get_intermediate_image_sizes()
1079
- * @link https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
1080
- * @since 1.9.0
1081
- * @return array $sizes Data for all currently-registered image sizes.
1082
- */
1083
- public static function get_image_sizes() {
1084
-
1085
- global $_wp_additional_image_sizes;
1086
-
1087
- $sizes = get_intermediate_image_sizes();
1088
- $image_sizes = array();
1089
-
1090
- $image_sizes[] = array(
1091
- 'value' => 'full',
1092
- 'label' => esc_html__( 'Full', 'ultimate-addons-for-gutenberg' ),
1093
- );
1094
-
1095
- foreach ( $sizes as $size ) {
1096
- if ( in_array( $size, array( 'thumbnail', 'medium', 'medium_large', 'large' ), true ) ) {
1097
- $image_sizes[] = array(
1098
- 'value' => $size,
1099
- 'label' => ucwords( trim( str_replace( array( '-', '_' ), array( ' ', ' ' ), $size ) ) ),
1100
- );
1101
- } else {
1102
- $image_sizes[] = array(
1103
- 'value' => $size,
1104
- 'label' => sprintf(
1105
- '%1$s (%2$sx%3$s)',
1106
- ucwords( trim( str_replace( array( '-', '_' ), array( ' ', ' ' ), $size ) ) ),
1107
- $_wp_additional_image_sizes[ $size ]['width'],
1108
- $_wp_additional_image_sizes[ $size ]['height']
1109
- ),
1110
- );
1111
- }
1112
- }
1113
-
1114
- $image_sizes = apply_filters( 'uagb_post_featured_image_sizes', $image_sizes );
1115
-
1116
- return $image_sizes;
1117
- }
1118
-
1119
- /**
1120
- * Get Post Types.
1121
- *
1122
- * @since 1.11.0
1123
- * @access public
1124
- */
1125
- public static function get_post_types() {
1126
-
1127
- $post_types = get_post_types(
1128
- array(
1129
- 'public' => true,
1130
- 'show_in_rest' => true,
1131
- ),
1132
- 'objects'
1133
- );
1134
-
1135
- $options = array();
1136
-
1137
- foreach ( $post_types as $post_type ) {
1138
- if ( 'product' === $post_type->name ) {
1139
- continue;
1140
- }
1141
-
1142
- if ( 'attachment' === $post_type->name ) {
1143
- continue;
1144
- }
1145
-
1146
- $options[] = array(
1147
- 'value' => $post_type->name,
1148
- 'label' => $post_type->label,
1149
- );
1150
- }
1151
-
1152
- return apply_filters( 'uagb_loop_post_types', $options );
1153
- }
1154
-
1155
- /**
1156
- * Get all taxonomies.
1157
- *
1158
- * @since 1.11.0
1159
- * @access public
1160
- */
1161
- public static function get_related_taxonomy() {
1162
-
1163
- $post_types = self::get_post_types();
1164
-
1165
- $return_array = array();
1166
-
1167
- foreach ( $post_types as $key => $value ) {
1168
- $post_type = $value['value'];
1169
-
1170
- $taxonomies = get_object_taxonomies( $post_type, 'objects' );
1171
- $data = array();
1172
-
1173
- foreach ( $taxonomies as $tax_slug => $tax ) {
1174
- if ( ! $tax->public || ! $tax->show_ui ) {
1175
- continue;
1176
- }
1177
-
1178
- $data[ $tax_slug ] = $tax;
1179
-
1180
- $terms = get_terms( $tax_slug );
1181
-
1182
- $related_tax = array();
1183
-
1184
- if ( ! empty( $terms ) ) {
1185
- foreach ( $terms as $t_index => $t_obj ) {
1186
- $related_tax[] = array(
1187
- 'id' => $t_obj->term_id,
1188
- 'name' => $t_obj->name,
1189
- );
1190
- }
1191
-
1192
- $return_array[ $post_type ]['terms'][ $tax_slug ] = $related_tax;
1193
- }
1194
- }
1195
-
1196
- $return_array[ $post_type ]['taxonomy'] = $data;
1197
- }
1198
-
1199
- return apply_filters( 'uagb_post_loop_taxonomies', $return_array );
1200
- }
1201
-
1202
- /**
1203
- * Get flag if more than 5 pages are build using UAG.
1204
- *
1205
- * @since 1.10.0
1206
- * @return boolean true/false Flag if more than 5 pages are build using UAG.
1207
- */
1208
- public static function show_rating_notice() {
1209
-
1210
- $posts_created_with_uag = get_option( 'posts-created-with-uagb' );
1211
-
1212
- if ( false === $posts_created_with_uag ) {
1213
- $query_args = array(
1214
- 'posts_per_page' => 100,
1215
- 'post_status' => 'publish',
1216
- 'post_type' => 'any',
1217
- );
1218
-
1219
- $query = new WP_Query( $query_args );
1220
-
1221
- $uag_post_count = 0;
1222
-
1223
- if ( isset( $query->post_count ) && $query->post_count > 0 ) {
1224
- foreach ( $query->posts as $key => $post ) {
1225
- if ( $uag_post_count >= 5 ) {
1226
- break;
1227
- }
1228
-
1229
- if ( false !== strpos( $post->post_content, '<!-- wp:uagb/' ) ) {
1230
- $uag_post_count++;
1231
- }
1232
- }
1233
- }
1234
-
1235
- if ( $uag_post_count >= 5 ) {
1236
- update_option( 'posts-created-with-uagb', $uag_post_count );
1237
-
1238
- $posts_created_with_uag = $uag_post_count;
1239
- }
1240
- }
1241
-
1242
- return ( $posts_created_with_uag >= 5 );
1243
- }
1244
-
1245
- /**
1246
- * Get - RGBA Color
1247
- *
1248
- * Get HEX color and return RGBA. Default return RGB color.
1249
- *
1250
- * @param var $color Gets the color value.
1251
- * @param var $opacity Gets the opacity value.
1252
- * @param array $is_array Gets an array of the value.
1253
- * @since 1.11.0
1254
- */
1255
- public static function hex2rgba( $color, $opacity = false, $is_array = false ) {
1256
-
1257
- $default = $color;
1258
-
1259
- // Return default if no color provided.
1260
- if ( empty( $color ) ) {
1261
- return $default;
1262
- }
1263
-
1264
- // Sanitize $color if "#" is provided.
1265
- if ( '#' === $color[0] ) {
1266
- $color = substr( $color, 1 );
1267
- }
1268
-
1269
- // Check if color has 6 or 3 characters and get values.
1270
- if ( strlen( $color ) === 6 ) {
1271
- $hex = array( $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] );
1272
- } elseif ( strlen( $color ) === 3 ) {
1273
- $hex = array( $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] );
1274
- } else {
1275
- return $default;
1276
- }
1277
-
1278
- // Convert hexadec to rgb.
1279
- $rgb = array_map( 'hexdec', $hex );
1280
-
1281
- // Check if opacity is set(rgba or rgb).
1282
- if ( false !== $opacity && '' !== $opacity ) {
1283
- if ( abs( $opacity ) >= 1 ) {
1284
- $opacity = $opacity / 100;
1285
- }
1286
- $output = 'rgba(' . implode( ',', $rgb ) . ',' . $opacity . ')';
1287
- } else {
1288
- $output = 'rgb(' . implode( ',', $rgb ) . ')';
1289
- }
1290
-
1291
- if ( $is_array ) {
1292
- return $rgb;
1293
- } else {
1294
- // Return rgb(a) color string.
1295
- return $output;
1296
- }
1297
- }
1298
-
1299
- /**
1300
- * Get Specific Stylesheet
1301
- *
1302
- * @since 1.13.4
1303
- */
1304
- public static function create_specific_stylesheet() {
1305
-
1306
- $saved_blocks = self::get_admin_settings_option( '_uagb_blocks' );
1307
- $combined = array();
1308
- $is_already_post = false;
1309
- $is_already_timeline = false;
1310
- $is_already_column = false;
1311
-
1312
- foreach ( UAGB_Config::$block_attributes as $key => $block ) {
1313
-
1314
- $block_name = str_replace( 'uagb/', '', $key );
1315
- $slug = $block_name;
1316
-
1317
- if ( isset( $saved_blocks[ $block_name ] ) && 'disabled' === $saved_blocks[ $block_name ] ) {
1318
- continue;
1319
- }
1320
-
1321
- switch ( $block_name ) {
1322
-
1323
- case 'post-grid':
1324
- case 'post-carousel':
1325
- case 'post-masonry':
1326
- if ( ! $is_already_post ) {
1327
- $combined[] = 'post';
1328
- $is_already_post = true;
1329
- }
1330
- break;
1331
-
1332
- case 'columns':
1333
- case 'column':
1334
- if ( ! $is_already_column ) {
1335
- $combined[] = 'column';
1336
- $combined[] = 'columns';
1337
- $is_already_column = true;
1338
- }
1339
- break;
1340
-
1341
- case 'post-timeline':
1342
- case 'content-timeline':
1343
- if ( ! $is_already_timeline ) {
1344
- $combined[] = 'timeline';
1345
- $is_already_timeline = true;
1346
- }
1347
- break;
1348
-
1349
- case 'restaurant-menu':
1350
- $combined[] = 'price-list';
1351
- break;
1352
-
1353
- default:
1354
- $combined[] = $block_name;
1355
- break;
1356
- }
1357
- }
1358
-
1359
- $combined_path = plugin_dir_path( UAGB_FILE ) . 'dist/blocks.style.css';
1360
- wp_delete_file( $combined_path );
1361
-
1362
- $handle = fopen( $combined_path, 'a' );
1363
-
1364
- foreach ( $combined as $key => $c_block ) {
1365
-
1366
- $c_handle = fopen( plugin_dir_path( UAGB_FILE ) . 'assets/css/blocks/' . $c_block . '.css', 'r' );
1367
- $style = fread( $c_handle, filesize( plugin_dir_path( UAGB_FILE ) . 'assets/css/blocks/' . $c_block . '.css' ) );
1368
- fclose( $c_handle );
1369
- fwrite( $handle, $style );
1370
- }
1371
-
1372
- fclose( $handle );
1373
- }
1374
-
1375
- /**
1376
- * Returns an array of paths for the upload directory
1377
- * of the current site.
1378
- *
1379
- * @since 1.14.0
1380
- * @return array
1381
- */
1382
- public static function get_upload_dir() {
1383
-
1384
- $wp_info = wp_upload_dir( null, false );
1385
-
1386
- $dir_name = basename( UAGB_DIR );
1387
- if ( 'ultimate-addons-for-gutenberg' === $dir_name ) {
1388
- $dir_name = 'uag-plugin';
1389
- }
1390
- // SSL workaround.
1391
- if ( self::is_ssl() ) {
1392
- $wp_info['baseurl'] = str_ireplace( 'http://', 'https://', $wp_info['baseurl'] );
1393
- }
1394
- // Build the paths.
1395
- $dir_info = array(
1396
- 'path' => trailingslashit( trailingslashit( $wp_info['basedir'] ) . $dir_name ),
1397
- 'url' => trailingslashit( trailingslashit( $wp_info['baseurl'] ) . $dir_name ),
1398
- );
1399
- // Create the upload dir if it doesn't exist.
1400
- if ( ! file_exists( $dir_info['path'] ) ) {
1401
- // Create the directory.
1402
- mkdir( $dir_info['path'] );
1403
- // Add an index file for security.
1404
- file_put_contents( $dir_info['path'] . 'index.html', '' );
1405
- }
1406
-
1407
- return apply_filters( 'uag_get_upload_dir', $dir_info );
1408
- }
1409
- /**
1410
- * Checks to see if the site has SSL enabled or not.
1411
- *
1412
- * @since 1.14.0
1413
- * @return bool
1414
- */
1415
- public static function is_ssl() {
1416
- if ( is_ssl() ) {
1417
- return true;
1418
- } elseif ( 0 === stripos( get_option( 'siteurl' ), 'https://' ) ) {
1419
- return true;
1420
- } elseif ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) {
1421
- return true;
1422
- }
1423
- return false;
1424
- }
1425
-
1426
- /**
1427
- * Returns an array of paths for the CSS and JS assets
1428
- * of the current post.
1429
- *
1430
- * @param var $data Gets the CSS\JS for the current Page.
1431
- * @param var $type Gets the CSS\JS type.
1432
- * @param var $timestamp Timestamp.
1433
- * @since 1.14.0
1434
- * @return array
1435
- */
1436
- public static function get_asset_info( $data, $type, $timestamp ) {
1437
-
1438
- $post_id = get_the_ID();
1439
- $uploads_dir = self::get_upload_dir();
1440
- $css_suffix = 'uag-style';
1441
- $js_suffix = 'uag-script';
1442
- $info = array();
1443
-
1444
- if ( ! empty( $data ) && 'css' === $type ) {
1445
-
1446
- $info['css'] = $uploads_dir['path'] . $css_suffix . '-' . $post_id . '-' . $timestamp . '.css';
1447
- $info['css_url'] = $uploads_dir['url'] . $css_suffix . '-' . $post_id . '-' . $timestamp . '.css';
1448
-
1449
- } elseif ( ! empty( $data ) && 'js' === $type ) {
1450
-
1451
- $info['js'] = $uploads_dir['path'] . $js_suffix . '-' . $post_id . '-' . $timestamp . '.js';
1452
- $info['js_url'] = $uploads_dir['url'] . $js_suffix . '-' . $post_id . '-' . $timestamp . '.js';
1453
-
1454
- }
1455
-
1456
- return $info;
1457
- }
1458
-
1459
- /**
1460
- * Creates css and js files.
1461
- *
1462
- * @param var $style_data Gets the CSS\JS for the current Page.
1463
- * @param var $type Gets the CSS\JS type.
1464
- * @since 1.14.0
1465
- */
1466
- public static function file_write( $style_data, $type ) {
1467
-
1468
- $post_timestamp = get_post_meta( get_the_ID(), 'uagb_style_timestamp-' . $type, true );
1469
-
1470
- $var = ( 'css' === $type ) ? 'css' : 'js';
1471
-
1472
- if ( '' === $post_timestamp || false === $post_timestamp ) {
1473
- // File not created yet.
1474
- $date = new DateTime();
1475
- $timestamp = $date->getTimestamp();
1476
-
1477
- $assets_info = self::get_asset_info( $style_data, $type, $timestamp );
1478
-
1479
- if ( isset( $assets_info[ $var ] ) ) {
1480
- // Create a new file.
1481
- $handle = fopen( $assets_info[ $var ], 'a' );
1482
- file_put_contents( $assets_info[ $var ], $style_data );
1483
- fclose( $handle );
1484
-
1485
- // Update the post meta.
1486
- update_post_meta( get_the_ID(), 'uagb_style_timestamp-' . $type, $timestamp );
1487
-
1488
- if ( is_array( self::$css_file_handler ) ) {
1489
- self::$css_file_handler = array_merge( self::$css_file_handler, $assets_info );
1490
- } else {
1491
- self::$css_file_handler = $assets_info;
1492
- }
1493
- } else {
1494
- self::$css_file_handler = $assets_info;
1495
- }
1496
- } else {
1497
-
1498
- // File already created.
1499
- $timestamp = $post_timestamp;
1500
- $assets_info = self::get_asset_info( $style_data, $type, $timestamp );
1501
- if ( isset( $assets_info[ $var ] ) ) {
1502
-
1503
- if ( file_exists( $assets_info[ $var ] ) ) {
1504
-
1505
- $handle = fopen( $assets_info[ $var ], 'r' );
1506
- $old_data = file_get_contents( $assets_info[ $var ] );
1507
- fclose( $handle );
1508
-
1509
- if ( $old_data !== $style_data ) {
1510
-
1511
- // File needs a change in content.
1512
- $date = new DateTime();
1513
- $new_timestamp = $date->getTimestamp();
1514
- $new_assets_info = self::get_asset_info( $style_data, $type, $new_timestamp );
1515
-
1516
- // Create a new file.
1517
- $new_handle = fopen( $new_assets_info[ $var ], 'a' );
1518
- file_put_contents( $new_assets_info[ $var ], $style_data );
1519
- fclose( $new_handle );
1520
-
1521
- // Update the post meta.
1522
- update_post_meta( get_the_ID(), 'uagb_style_timestamp-' . $type, $new_timestamp );
1523
-
1524
- // Delete old file.
1525
- wp_delete_file( $assets_info[ $var ] );
1526
-
1527
- if ( is_array( self::$css_file_handler ) ) {
1528
- self::$css_file_handler = array_merge( self::$css_file_handler, $new_assets_info );
1529
- } else {
1530
- self::$css_file_handler = $new_assets_info;
1531
- }
1532
- } else {
1533
-
1534
- // Do nothing.
1535
- if ( is_array( self::$css_file_handler ) ) {
1536
- self::$css_file_handler = array_merge( self::$css_file_handler, $assets_info );
1537
- } else {
1538
- self::$css_file_handler = $assets_info;
1539
- }
1540
- }
1541
- } else {
1542
- self::$css_file_handler = $assets_info;
1543
- }
1544
- } else {
1545
- self::$css_file_handler = $assets_info;
1546
- }
1547
- }
1548
- }
1549
-
1550
- /**
1551
- * Allow File Geranation flag.
1552
- *
1553
- * @since 1.14.0
1554
- */
1555
- public static function allow_file_generation() {
1556
- return get_option( '_uagb_allow_file_generation', 'disabled' );
1557
- }
1558
- }
1559
-
1560
- /**
1561
- * Prepare if class 'UAGB_Helper' exist.
1562
- * Kicking this off by calling 'get_instance()' method
1563
- */
1564
- UAGB_Helper::get_instance();
1565
- }
1
+ <?php
2
+ /**
3
+ * UAGB Helper.
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit; // Exit if accessed directly.
10
+ }
11
+
12
+ if ( ! class_exists( 'UAGB_Helper' ) ) {
13
+
14
+ /**
15
+ * Class UAGB_Helper.
16
+ */
17
+ final class UAGB_Helper {
18
+
19
+
20
+ /**
21
+ * Member Variable
22
+ *
23
+ * @since 0.0.1
24
+ * @var instance
25
+ */
26
+ private static $instance;
27
+
28
+ /**
29
+ * Member Variable
30
+ *
31
+ * @since 0.0.1
32
+ * @var instance
33
+ */
34
+ public static $block_list;
35
+
36
+ /**
37
+ * Current Block List
38
+ *
39
+ * @since 1.13.4
40
+ * @var current_block_list
41
+ */
42
+ public static $current_block_list = array();
43
+
44
+ /**
45
+ * UAG Block Flag
46
+ *
47
+ * @since 1.13.4
48
+ * @var uag_flag
49
+ */
50
+ public static $uag_flag = false;
51
+
52
+ /**
53
+ * UAG File Generation Flag
54
+ *
55
+ * @since 1.14.0
56
+ * @var file_generation
57
+ */
58
+ public static $file_generation = 'disabled';
59
+
60
+ /**
61
+ * Enque Style and Script Variable
62
+ *
63
+ * @since 1.14.0
64
+ * @var instance
65
+ */
66
+ public static $css_file_handler;
67
+
68
+ /**
69
+ * Stylesheet
70
+ *
71
+ * @since 1.13.4
72
+ * @var stylesheet
73
+ */
74
+ public static $stylesheet;
75
+
76
+ /**
77
+ * Script
78
+ *
79
+ * @since 1.13.4
80
+ * @var script
81
+ */
82
+ public static $script;
83
+
84
+ /**
85
+ * Store Json variable
86
+ *
87
+ * @since 1.8.1
88
+ * @var instance
89
+ */
90
+ public static $icon_json;
91
+
92
+ /**
93
+ * Page Blocks Variable
94
+ *
95
+ * @since 1.6.0
96
+ * @var instance
97
+ */
98
+ public static $page_blocks;
99
+
100
+ /**
101
+ * Google fonts to enqueue
102
+ *
103
+ * @var array
104
+ */
105
+ public static $gfonts = array();
106
+
107
+ /**
108
+ * Initiator
109
+ *
110
+ * @since 0.0.1
111
+ */
112
+ public static function get_instance() {
113
+ if ( ! isset( self::$instance ) ) {
114
+ self::$instance = new self;
115
+ }
116
+ return self::$instance;
117
+ }
118
+
119
+ /**
120
+ * Constructor
121
+ */
122
+ public function __construct() {
123
+
124
+ require( UAGB_DIR . 'classes/class-uagb-config.php' );
125
+ require( UAGB_DIR . 'classes/class-uagb-block-helper.php' );
126
+
127
+ self::$block_list = UAGB_Config::get_block_attributes();
128
+ self::$file_generation = self::allow_file_generation();
129
+
130
+ add_action( 'wp_enqueue_scripts', array( $this, 'block_assets' ) );
131
+ add_action( 'wp', array( $this, 'generate_stylesheet' ), 99 );
132
+ add_action( 'wp', array( $this, 'generate_script' ), 100 );
133
+ add_action( 'wp_head', array( $this, 'frontend_gfonts' ), 120 );
134
+ add_action( 'wp_head', array( $this, 'print_stylesheet' ), 80 );
135
+ add_action( 'wp_footer', array( $this, 'print_script' ), 1000 );
136
+ }
137
+
138
+ /**
139
+ * Enqueue Gutenberg block assets for both frontend + backend.
140
+ *
141
+ * @since 1.13.4
142
+ */
143
+ public function block_assets() {
144
+
145
+ $block_list_for_assets = self::$current_block_list;
146
+
147
+ $blocks = UAGB_Config::get_block_attributes();
148
+
149
+ foreach ( $block_list_for_assets as $key => $curr_block_name ) {
150
+
151
+ $js_assets = ( isset( $blocks[ $curr_block_name ]['js_assets'] ) ) ? $blocks[ $curr_block_name ]['js_assets'] : array();
152
+
153
+ $css_assets = ( isset( $blocks[ $curr_block_name ]['css_assets'] ) ) ? $blocks[ $curr_block_name ]['css_assets'] : array();
154
+
155
+ foreach ( $js_assets as $asset_handle => $val ) {
156
+ // Scripts.
157
+ wp_enqueue_script( $val );
158
+ }
159
+
160
+ foreach ( $css_assets as $asset_handle => $val ) {
161
+ // Styles.
162
+ wp_enqueue_style( $val );
163
+ }
164
+ }
165
+
166
+ if ( 'enabled' === self::$file_generation ) {
167
+ $file_handler = self::$css_file_handler;
168
+
169
+ if ( isset( $file_handler['css_url'] ) ) {
170
+ wp_enqueue_style( 'uag-style', $file_handler['css_url'], array(), '', 'all' );
171
+ }
172
+ if ( isset( $file_handler['js_url'] ) ) {
173
+ wp_enqueue_script( 'uag-script', $file_handler['js_url'], array(), UAGB_VER, true );
174
+ }
175
+ }
176
+
177
+ }
178
+
179
+ /**
180
+ * Print the Script in footer.
181
+ */
182
+ public function print_script() {
183
+
184
+ if ( 'enabled' === self::$file_generation ) {
185
+ return;
186
+ }
187
+
188
+ if ( is_null( self::$script ) || '' === self::$script ) {
189
+ return;
190
+ }
191
+
192
+ self::file_write( self::$script, 'js' );
193
+
194
+ ob_start();
195
+ ?>
196
+ <script type="text/javascript" id="uagb-script-frontend">( function( $ ) { <?php echo self::$script; ?> })(jQuery) </script>
197
+ <?php
198
+ ob_end_flush();
199
+ }
200
+
201
+ /**
202
+ * Print the Stylesheet in header.
203
+ */
204
+ public function print_stylesheet() {
205
+
206
+ if ( 'enabled' === self::$file_generation ) {
207
+ return;
208
+ }
209
+
210
+ global $content_width;
211
+
212
+ if ( is_null( self::$stylesheet ) || '' === self::$stylesheet ) {
213
+ return;
214
+ }
215
+
216
+ self::$stylesheet = str_replace( '#CONTENT_WIDTH#', $content_width . 'px', self::$stylesheet );
217
+
218
+ self::file_write( self::$stylesheet, 'css' );
219
+
220
+ ob_start();
221
+ ?>
222
+ <style type="text/css" media="all" id="uagb-style-frontend"><?php echo self::$stylesheet; ?></style>
223
+ <?php
224
+ ob_end_flush();
225
+ }
226
+
227
+ /**
228
+ * Load the front end Google Fonts.
229
+ */
230
+ public function frontend_gfonts() {
231
+ if ( empty( self::$gfonts ) ) {
232
+ return;
233
+ }
234
+ $show_google_fonts = apply_filters( 'uagb_blocks_show_google_fonts', true );
235
+ if ( ! $show_google_fonts ) {
236
+ return;
237
+ }
238
+ $link = '';
239
+ $subsets = array();
240
+ foreach ( self::$gfonts as $key => $gfont_values ) {
241
+ if ( ! empty( $link ) ) {
242
+ $link .= '%7C'; // Append a new font to the string.
243
+ }
244
+ $link .= $gfont_values['fontfamily'];
245
+ if ( ! empty( $gfont_values['fontvariants'] ) ) {
246
+ $link .= ':';
247
+ $link .= implode( ',', $gfont_values['fontvariants'] );
248
+ }
249
+ if ( ! empty( $gfont_values['fontsubsets'] ) ) {
250
+ foreach ( $gfont_values['fontsubsets'] as $subset ) {
251
+ if ( ! in_array( $subset, $subsets, true ) ) {
252
+ array_push( $subsets, $subset );
253
+ }
254
+ }
255
+ }
256
+ }
257
+ if ( ! empty( $subsets ) ) {
258
+ $link .= '&amp;subset=' . implode( ',', $subsets );
259
+ }
260
+ echo '<link href="//fonts.googleapis.com/css?family=' . esc_attr( str_replace( '|', '%7C', $link ) ) . '" rel="stylesheet">';
261
+ }
262
+
263
+
264
+ /**
265
+ * Parse CSS into correct CSS syntax.
266
+ *
267
+ * @param array $selectors The block selectors.
268
+ * @param string $id The selector ID.
269
+ * @since 0.0.1
270
+ */
271
+ public static function generate_css( $selectors, $id ) {
272
+
273
+ $styling_css = '';
274
+ $styling_css = '';
275
+
276
+ if ( empty( $selectors ) ) {
277
+ return;
278
+ }
279
+
280
+ foreach ( $selectors as $key => $value ) {
281
+
282
+ $css = '';
283
+
284
+ foreach ( $value as $j => $val ) {
285
+
286
+ if ( 'font-family' === $j && 'Default' === $val ) {
287
+ continue;
288
+ }
289
+
290
+ if ( ! empty( $val ) || 0 === $val ) {
291
+ $css .= $j . ': ' . $val . ';';
292
+ }
293
+ }
294
+
295
+ if ( ! empty( $css ) ) {
296
+ $styling_css .= $id;
297
+ $styling_css .= $key . '{';
298
+ $styling_css .= $css . '}';
299
+ }
300
+ }
301
+
302
+ return $styling_css;
303
+ }
304
+
305
+ /**
306
+ * Get CSS value
307
+ *
308
+ * Syntax:
309
+ *
310
+ * get_css_value( VALUE, UNIT );
311
+ *
312
+ * E.g.
313
+ *
314
+ * get_css_value( VALUE, 'em' );
315
+ *
316
+ * @param string $value CSS value.
317
+ * @param string $unit CSS unit.
318
+ * @since 1.13.4
319
+ */
320
+ public static function get_css_value( $value = '', $unit = '' ) {
321
+
322
+ // @codingStandardsIgnoreStart
323
+
324
+ if ( '' == $value ) {
325
+ return $value;
326
+ }
327
+ // @codingStandardsIgnoreEnd
328
+
329
+ $css_val = '';
330
+
331
+ if ( ! empty( $value ) ) {
332
+ $css_val = esc_attr( $value ) . $unit;
333
+ }
334
+
335
+ return $css_val;
336
+ }
337
+
338
+ /**
339
+ * Generates CSS recurrsively.
340
+ *
341
+ * @param object $block The block object.
342
+ * @since 0.0.1
343
+ */
344
+ public function get_block_css( $block ) {
345
+
346
+ // @codingStandardsIgnoreStart
347
+
348
+ $block = ( array ) $block;
349
+
350
+ $name = $block['blockName'];
351
+ $css = array();
352
+ $block_id = '';
353
+
354
+ if( ! isset( $name ) ) {
355
+ return;
356
+ }
357
+
358
+ if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
359
+ $blockattr = $block['attrs'];
360
+ if ( isset( $blockattr['block_id'] ) ) {
361
+ $block_id = $blockattr['block_id'];
362
+ }
363
+ }
364
+
365
+ self::$current_block_list[] = $name;
366
+
367
+ if ( strpos( $name, 'uagb/' ) !== false ) {
368
+ self::$uag_flag = true;
369
+ }
370
+
371
+ switch ( $name ) {
372
+ case 'uagb/section':
373
+ $css += UAGB_Block_Helper::get_section_css( $blockattr, $block_id );
374
+ break;
375
+
376
+ case 'uagb/advanced-heading':
377
+ $css += UAGB_Block_Helper::get_adv_heading_css( $blockattr, $block_id );
378
+ UAGB_Block_Helper::blocks_advanced_heading_gfont( $blockattr );
379
+ break;
380
+
381
+ case 'uagb/info-box':
382
+ $css += UAGB_Block_Helper::get_info_box_css( $blockattr, $block_id );
383
+ UAGB_Block_Helper::blocks_info_box_gfont( $blockattr );
384
+ break;
385
+
386
+ case 'uagb/buttons':
387
+ $css += UAGB_Block_Helper::get_buttons_css( $blockattr, $block_id );
388
+ UAGB_Block_Helper::blocks_buttons_gfont( $blockattr );
389
+ break;
390
+
391
+ case 'uagb/blockquote':
392
+ $css += UAGB_Block_Helper::get_blockquote_css( $blockattr, $block_id );
393
+ UAGB_Block_Helper::blocks_blockquote_gfont( $blockattr );
394
+ break;
395
+
396
+ case 'uagb/testimonial':
397
+ $css += UAGB_Block_Helper::get_testimonial_css( $blockattr, $block_id );
398
+ UAGB_Block_Helper::blocks_testimonial_gfont( $blockattr );
399
+ break;
400
+
401
+ case 'uagb/team':
402
+ $css += UAGB_Block_Helper::get_team_css( $blockattr, $block_id );
403
+ UAGB_Block_Helper::blocks_team_gfont( $blockattr );
404
+ break;
405
+
406
+ case 'uagb/social-share':
407
+ $css += UAGB_Block_Helper::get_social_share_css( $blockattr, $block_id );
408
+ break;
409
+
410
+ case 'uagb/content-timeline':
411
+ $css += UAGB_Block_Helper::get_content_timeline_css( $blockattr, $block_id );
412
+ UAGB_Block_Helper::blocks_content_timeline_gfont( $blockattr );
413
+ break;
414
+
415
+ case 'uagb/restaurant-menu':
416
+ $css += UAGB_Block_Helper::get_restaurant_menu_css( $blockattr, $block_id );
417
+ UAGB_Block_Helper::blocks_restaurant_menu_gfont( $blockattr );
418
+ break;
419
+
420
+ case 'uagb/call-to-action':
421
+ $css += UAGB_Block_Helper::get_call_to_action_css( $blockattr, $block_id );
422
+ UAGB_Block_Helper::blocks_call_to_action_gfont( $blockattr );
423
+ break;
424
+
425
+ case 'uagb/post-timeline':
426
+ $css += UAGB_Block_Helper::get_post_timeline_css( $blockattr, $block_id );
427
+ UAGB_Block_Helper::blocks_post_timeline_gfont( $blockattr );
428
+ break;
429
+
430
+ case 'uagb/icon-list':
431
+ $css += UAGB_Block_Helper::get_icon_list_css( $blockattr, $block_id );
432
+ UAGB_Block_Helper::blocks_icon_list_gfont( $blockattr );
433
+ break;
434
+
435
+ case 'uagb/post-grid':
436
+ $css += UAGB_Block_Helper::get_post_grid_css( $blockattr, $block_id );
437
+ UAGB_Block_Helper::blocks_post_gfont( $blockattr );
438
+ break;
439
+
440
+ case 'uagb/post-carousel':
441
+ $css += UAGB_Block_Helper::get_post_carousel_css( $blockattr, $block_id );
442
+ UAGB_Block_Helper::blocks_post_gfont( $blockattr );
443
+ break;
444
+
445
+ case 'uagb/post-masonry':
446
+ $css += UAGB_Block_Helper::get_post_masonry_css( $blockattr, $block_id );
447
+ UAGB_Block_Helper::blocks_post_gfont( $blockattr );
448
+ break;
449
+
450
+ case 'uagb/columns':
451
+ $css += UAGB_Block_Helper::get_columns_css( $blockattr, $block_id );
452
+ break;
453
+
454
+ case 'uagb/column':
455
+ $css += UAGB_Block_Helper::get_column_css( $blockattr, $block_id );
456
+ break;
457
+
458
+ case 'uagb/cf7-styler':
459
+ $css += UAGB_Block_Helper::get_cf7_styler_css( $blockattr, $block_id );
460
+ UAGB_Block_Helper::blocks_cf7_styler_gfont( $blockattr );
461
+ break;
462
+
463
+ case 'uagb/marketing-button':
464
+ $css += UAGB_Block_Helper::get_marketing_btn_css( $blockattr, $block_id );
465
+ UAGB_Block_Helper::blocks_marketing_btn_gfont( $blockattr );
466
+ break;
467
+
468
+ case 'uagb/gf-styler':
469
+ $css += UAGB_Block_Helper::get_gf_styler_css( $blockattr, $block_id );
470
+ UAGB_Block_Helper::blocks_gf_styler_gfont( $blockattr );
471
+ break;
472
+
473
+ case 'uagb/table-of-contents':
474
+ $css += UAGB_Block_Helper::get_table_of_contents_css( $blockattr, $block_id );
475
+ UAGB_Block_Helper::blocks_table_of_contents_gfont( $blockattr );
476
+ break;
477
+
478
+ default:
479
+ // Nothing to do here.
480
+ break;
481
+ }
482
+
483
+ if ( isset( $block['innerBlocks'] ) ) {
484
+ foreach ( $block['innerBlocks'] as $j => $inner_block ) {
485
+ if ( 'core/block' == $inner_block['blockName'] ) {
486
+ $id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
487
+
488
+ if ( $id ) {
489
+ $content = get_post_field( 'post_content', $id );
490
+
491
+ $reusable_blocks = $this->parse( $content );
492
+
493
+ self::$stylesheet .= $this->get_stylesheet( $reusable_blocks );
494
+ }
495
+ } else {
496
+ // Get CSS for the Block.
497
+ $inner_block_css = $this->get_block_css( $inner_block );
498
+
499
+ $css_desktop = ( isset( $css['desktop'] ) ? $css['desktop'] : '' );
500
+ $css_tablet = ( isset( $css['tablet'] ) ? $css['tablet'] : '' );
501
+ $css_mobile = ( isset( $css['mobile'] ) ? $css['mobile'] : '' );
502
+
503
+ if( isset( $inner_block_css['desktop'] ) ){
504
+ $css['desktop'] = $css_desktop . $inner_block_css['desktop'];
505
+ $css['tablet'] = $css_tablet . $inner_block_css['tablet'];
506
+ $css['mobile'] = $css_mobile . $inner_block_css['mobile'];
507
+ }
508
+ }
509
+ }
510
+ }
511
+
512
+ self::$current_block_list = array_unique( self::$current_block_list );
513
+
514
+ return $css;
515
+
516
+ // @codingStandardsIgnoreEnd
517
+ }
518
+
519
+ /**
520
+ * Adds Google fonts all blocks.
521
+ *
522
+ * @param array $load_google_font the blocks attr.
523
+ * @param array $font_family the blocks attr.
524
+ * @param array $font_weight the blocks attr.
525
+ * @param array $font_subset the blocks attr.
526
+ */
527
+ public static function blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset ) {
528
+
529
+ if ( true === $load_google_font ) {
530
+ if ( ! array_key_exists( $font_family, self::$gfonts ) ) {
531
+ $add_font = array(
532
+ 'fontfamily' => $font_family,
533
+ 'fontvariants' => ( isset( $font_weight ) && ! empty( $font_weight ) ? array( $font_weight ) : array() ),
534
+ 'fontsubsets' => ( isset( $font_subset ) && ! empty( $font_subset ) ? array( $font_subset ) : array() ),
535
+ );
536
+ self::$gfonts[ $font_family ] = $add_font;
537
+ } else {
538
+ if ( isset( $font_weight ) && ! empty( $font_weight ) ) {
539
+ if ( ! in_array( $font_weight, self::$gfonts[ $font_family ]['fontvariants'], true ) ) {
540
+ array_push( self::$gfonts[ $font_family ]['fontvariants'], $font_weight );
541
+ }
542
+ }
543
+ if ( isset( $font_subset ) && ! empty( $font_subset ) ) {
544
+ if ( ! in_array( $font_subset, self::$gfonts[ $font_family ]['fontsubsets'], true ) ) {
545
+ array_push( self::$gfonts[ $font_family ]['fontsubsets'], $font_subset );
546
+ }
547
+ }
548
+ }
549
+ }
550
+ }
551
+
552
+ /**
553
+ * Generates Js recurrsively.
554
+ *
555
+ * @param object $block The block object.
556
+ * @since 1.6.0
557
+ */
558
+ public function get_block_js( $block ) {
559
+
560
+ // @codingStandardsIgnoreStart
561
+
562
+ $block = ( array ) $block;
563
+
564
+ $name = $block['blockName'];
565
+ $js = '';
566
+
567
+ if( ! isset( $name ) ) {
568
+ return;
569
+ }
570
+
571
+ if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
572
+ $blockattr = $block['attrs'];
573
+ if ( isset( $blockattr['block_id'] ) ) {
574
+ $block_id = $blockattr['block_id'];
575
+ }
576
+ }
577
+
578
+ switch ( $name ) {
579
+ case 'uagb/testimonial':
580
+ $js .= UAGB_Block_Helper::get_testimonial_js( $blockattr, $block_id );
581
+ break;
582
+
583
+ case 'uagb/blockquote':
584
+ $js .= UAGB_Block_Helper::get_blockquote_js( $blockattr, $block_id );
585
+ break;
586
+
587
+ case 'uagb/social-share':
588
+ $js .= UAGB_Block_Helper::get_social_share_js( $block_id );
589
+ break;
590
+
591
+ case 'uagb/table-of-contents':
592
+ $js .= UAGB_Block_Helper::get_table_of_contents_js( $blockattr, $block_id );
593
+ break;
594
+
595
+ default:
596
+ // Nothing to do here.
597
+ break;
598
+ }
599
+
600
+ if ( isset( $block['innerBlocks'] ) ) {
601
+
602
+ foreach ( $block['innerBlocks'] as $j => $inner_block ) {
603
+
604
+ if ( 'core/block' == $inner_block['blockName'] ) {
605
+ $id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
606
+
607
+ if ( $id ) {
608
+ $content = get_post_field( 'post_content', $id );
609
+
610
+ $reusable_blocks = $this->parse( $content );
611
+
612
+ $this->get_scripts( $reusable_blocks );
613
+ }
614
+ } else {
615
+ // Get JS for the Block.
616
+ $js .= $this->get_block_js( $inner_block );
617
+ }
618
+ }
619
+ }
620
+
621
+ return $js;
622
+
623
+ // @codingStandardsIgnoreEnd
624
+ }
625
+
626
+ /**
627
+ * Generates stylesheet and appends in head tag.
628
+ *
629
+ * @since 0.0.1
630
+ */
631
+ public function generate_stylesheet() {
632
+
633
+ $this_post = array();
634
+
635
+ if ( class_exists( 'WooCommerce' ) ) {
636
+
637
+ if ( is_cart() ) {
638
+
639
+ $id = get_option( 'woocommerce_cart_page_id' );
640
+ $this_post = get_post( $id );
641
+
642
+ } elseif ( is_account_page() ) {
643
+
644
+ $id = get_option( 'woocommerce_myaccount_page_id' );
645
+ $this_post = get_post( $id );
646
+
647
+ } elseif ( is_checkout() ) {
648
+
649
+ $id = get_option( 'woocommerce_checkout_page_id' );
650
+ $this_post = get_post( $id );
651
+
652
+ } elseif ( is_checkout_pay_page() ) {
653
+
654
+ $id = get_option( 'woocommerce_pay_page_id' );
655
+ $this_post = get_post( $id );
656
+
657
+ } elseif ( is_shop() ) {
658
+
659
+ $id = get_option( 'woocommerce_shop_page_id' );
660
+ $this_post = get_post( $id );
661
+ }
662
+
663
+ if ( is_object( $this_post ) ) {
664
+ $this->_generate_stylesheet( $this_post );
665
+ return;
666
+ }
667
+ }
668
+
669
+ if ( is_single() || is_page() || is_404() ) {
670
+
671
+ global $post;
672
+ $this_post = $post;
673
+
674
+ if ( ! is_object( $this_post ) ) {
675
+ return;
676
+ }
677
+
678
+ $this->_generate_stylesheet( $this_post );
679
+
680
+ } elseif ( is_archive() || is_home() || is_search() ) {
681
+
682
+ global $wp_query;
683
+
684
+ foreach ( $wp_query as $post ) {
685
+ $this->_generate_stylesheet( $post );
686
+ }
687
+ }
688
+
689
+ self::file_write( self::$stylesheet, 'css' );
690
+ }
691
+
692
+ /**
693
+ * Generates stylesheet in loop.
694
+ *
695
+ * @param object $this_post Current Post Object.
696
+ * @since 1.7.0
697
+ */
698
+ public function _generate_stylesheet( $this_post ) {
699
+
700
+ if ( ! is_object( $this_post ) ) {
701
+ return;
702
+ }
703
+
704
+ if ( ! isset( $this_post->ID ) ) {
705
+ return;
706
+ }
707
+
708
+ if ( has_blocks( $this_post->ID ) ) {
709
+
710
+ if ( isset( $this_post->post_content ) ) {
711
+
712
+ $blocks = $this->parse( $this_post->post_content );
713
+ self::$page_blocks = $blocks;
714
+
715
+ if ( ! is_array( $blocks ) || empty( $blocks ) ) {
716
+ return;
717
+ }
718
+
719
+ self::$stylesheet .= $this->get_stylesheet( $blocks );
720
+ }
721
+ }
722
+ }
723
+
724
+ /**
725
+ * Generates scripts and appends in footer tag.
726
+ *
727
+ * @since 1.5.0
728
+ */
729
+ public function generate_script() {
730
+
731
+ $blocks = self::$page_blocks;
732
+
733
+ if ( ! is_array( $blocks ) || empty( $blocks ) ) {
734
+ return;
735
+ }
736
+
737
+ $this->get_scripts( $blocks );
738
+
739
+ if ( ! empty( self::$script ) ) {
740
+ self::file_write( self::$script, 'js' );
741
+ }
742
+
743
+ }
744
+
745
+ /**
746
+ * Parse Guten Block.
747
+ *
748
+ * @param string $content the content string.
749
+ * @since 1.1.0
750
+ */
751
+ public function parse( $content ) {
752
+
753
+ global $wp_version;
754
+
755
+ return ( version_compare( $wp_version, '5', '>=' ) ) ? parse_blocks( $content ) : gutenberg_parse_blocks( $content );
756
+ }
757
+
758
+ /**
759
+ * Generates stylesheet for reusable blocks.
760
+ *
761
+ * @param array $blocks Blocks array.
762
+ * @since 1.1.0
763
+ */
764
+ public function get_stylesheet( $blocks ) {
765
+
766
+ $desktop = '';
767
+ $tablet = '';
768
+ $mobile = '';
769
+
770
+ $tab_styling_css = '';
771
+ $mob_styling_css = '';
772
+
773
+ foreach ( $blocks as $i => $block ) {
774
+
775
+ if ( is_array( $block ) ) {
776
+
777
+ if ( '' === $block['blockName'] ) {
778
+ continue;
779
+ }
780
+ if ( 'core/block' === $block['blockName'] ) {
781
+ $id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
782
+
783
+ if ( $id ) {
784
+ $content = get_post_field( 'post_content', $id );
785
+
786
+ $reusable_blocks = $this->parse( $content );
787
+
788
+ self::$stylesheet .= $this->get_stylesheet( $reusable_blocks );
789
+
790
+ }
791
+ } else {
792
+ // Get CSS for the Block.
793
+ $css = $this->get_block_css( $block );
794
+
795
+ if ( isset( $css['desktop'] ) ) {
796
+ $desktop .= $css['desktop'];
797
+ $tablet .= $css['tablet'];
798
+ $mobile .= $css['mobile'];
799
+ }
800
+ }
801
+ }
802
+ }
803
+
804
+ if ( ! empty( $tablet ) ) {
805
+ $tab_styling_css .= '@media only screen and (max-width: ' . UAGB_TABLET_BREAKPOINT . 'px) {';
806
+ $tab_styling_css .= $tablet;
807
+ $tab_styling_css .= '}';
808
+ }
809
+
810
+ if ( ! empty( $mobile ) ) {
811
+ $mob_styling_css .= '@media only screen and (max-width: ' . UAGB_MOBILE_BREAKPOINT . 'px) {';
812
+ $mob_styling_css .= $mobile;
813
+ $mob_styling_css .= '}';
814
+ }
815
+
816
+ return $desktop . $tab_styling_css . $mob_styling_css;
817
+ }
818
+
819
+
820
+ /**
821
+ * Generates scripts for reusable blocks.
822
+ *
823
+ * @param array $blocks Blocks array.
824
+ * @since 1.6.0
825
+ */
826
+ public function get_scripts( $blocks ) {
827
+
828
+ foreach ( $blocks as $i => $block ) {
829
+ if ( is_array( $block ) ) {
830
+ if ( 'core/block' === $block['blockName'] ) {
831
+ $id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
832
+
833
+ if ( $id ) {
834
+ $content = get_post_field( 'post_content', $id );
835
+
836
+ $reusable_blocks = $this->parse( $content );
837
+
838
+ $this->get_scripts( $reusable_blocks );
839
+ }
840
+ } else {
841
+ // Get JS for the Block.
842
+ self::$script .= $this->get_block_js( $block );
843
+ }
844
+ }
845
+ }
846
+
847
+ if ( ! empty( self::$script ) ) {
848
+ self::$script = '( function( $ ) { ' . self::$script . '})(jQuery)';
849
+ }
850
+ }
851
+
852
+ /**
853
+ * Get Buttons default array.
854
+ *
855
+ * @since 0.0.1
856
+ */
857
+ public static function get_button_defaults() {
858
+
859
+ $default = array();
860
+
861
+ for ( $i = 1; $i <= 2; $i++ ) {
862
+ array_push(
863
+ $default,
864
+ array(
865
+ 'size' => '',
866
+ 'vPadding' => 10,
867
+ 'hPadding' => 14,
868
+ 'borderWidth' => 1,
869
+ 'borderRadius' => 2,
870
+ 'borderStyle' => 'solid',
871
+ 'borderColor' => '#333',
872
+ 'borderHColor' => '#333',
873
+ 'color' => '#333',
874
+ 'background' => '',
875
+ 'hColor' => '#333',
876
+ 'hBackground' => '',
877
+ 'sizeType' => 'px',
878
+ 'sizeMobile' => '',
879
+ 'sizeTablet' => '',
880
+ 'lineHeightType' => 'em',
881
+ 'lineHeight' => '',
882
+ 'lineHeightMobile' => '',
883
+ 'lineHeightTablet' => '',
884
+ )
885
+ );
886
+ }
887
+
888
+ return $default;
889
+ }
890
+
891
+ /**
892
+ * Returns an option from the database for
893
+ * the admin settings page.
894
+ *
895
+ * @param string $key The option key.
896
+ * @param mixed $default Option default value if option is not available.
897
+ * @param boolean $network_override Whether to allow the network admin setting to be overridden on subsites.
898
+ * @return string Return the option value
899
+ */
900
+ public static function get_admin_settings_option( $key, $default = false, $network_override = false ) {
901
+
902
+ // Get the site-wide option if we're in the network admin.
903
+ if ( $network_override && is_multisite() ) {
904
+ $value = get_site_option( $key, $default );
905
+ } else {
906
+ $value = get_option( $key, $default );
907
+ }
908
+
909
+ return $value;
910
+ }
911
+
912
+ /**
913
+ * Updates an option from the admin settings page.
914
+ *
915
+ * @param string $key The option key.
916
+ * @param mixed $value The value to update.
917
+ * @param bool $network Whether to allow the network admin setting to be overridden on subsites.
918
+ * @return mixed
919
+ */
920
+ public static function update_admin_settings_option( $key, $value, $network = false ) {
921
+
922
+ // Update the site-wide option since we're in the network admin.
923
+ if ( $network && is_multisite() ) {
924
+ update_site_option( $key, $value );
925
+ } else {
926
+ update_option( $key, $value );
927
+ }
928
+ }
929
+
930
+ /**
931
+ * Is Knowledgebase.
932
+ *
933
+ * @return string
934
+ * @since 0.0.1
935
+ */
936
+ public static function knowledgebase_data() {
937
+
938
+ $knowledgebase = array(
939
+ 'enable_knowledgebase' => true,
940
+ 'knowledgebase_url' => 'https://www.ultimategutenberg.com/docs/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard',
941
+ );
942
+
943
+ return $knowledgebase;
944
+ }
945
+
946
+ /**
947
+ * Is Knowledgebase.
948
+ *
949
+ * @return string
950
+ * @since 0.0.1
951
+ */
952
+ public static function support_data() {
953
+
954
+ $support = array(
955
+ 'enable_support' => true,
956
+ 'support_url' => 'https://www.ultimategutenberg.com/support/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard',
957
+ );
958
+
959
+ return $support;
960
+ }
961
+
962
+ /**
963
+ * Provide Widget settings.
964
+ *
965
+ * @return array()
966
+ * @since 0.0.1
967
+ */
968
+ public static function get_block_options() {
969
+
970
+ $blocks = self::$block_list;
971
+ $saved_blocks = self::get_admin_settings_option( '_uagb_blocks' );
972
+ if ( is_array( $blocks ) ) {
973
+ foreach ( $blocks as $slug => $data ) {
974
+ $_slug = str_replace( 'uagb/', '', $slug );
975
+
976
+ if ( isset( $saved_blocks[ $_slug ] ) ) {
977
+ if ( 'disabled' === $saved_blocks[ $_slug ] ) {
978
+ $blocks[ $slug ]['is_activate'] = false;
979
+ } else {
980
+ $blocks[ $slug ]['is_activate'] = true;
981
+ }
982
+ } else {
983
+ $blocks[ $slug ]['is_activate'] = ( isset( $data['default'] ) ) ? $data['default'] : false;
984
+ }
985
+ }
986
+ }
987
+
988
+ self::$block_list = $blocks;
989
+
990
+ return apply_filters( 'uagb_enabled_blocks', self::$block_list );
991
+ }
992
+
993
+ /**
994
+ * Get Json Data.
995
+ *
996
+ * @since 1.8.1
997
+ * @return Array
998
+ */
999
+ public static function backend_load_font_awesome_icons() {
1000
+
1001
+ $json_file = UAGB_DIR . 'dist/blocks/uagb-controls/UAGBIcon.json';
1002
+ if ( ! file_exists( $json_file ) ) {
1003
+ return array();
1004
+ }
1005
+
1006
+ // Function has already run.
1007
+ if ( null !== self::$icon_json ) {
1008
+ return self::$icon_json;
1009
+ }
1010
+
1011
+ $str = file_get_contents( $json_file );
1012
+ self::$icon_json = json_decode( $str, true );
1013
+ return self::$icon_json;
1014
+ }
1015
+
1016
+ /**
1017
+ * Generate SVG.
1018
+ *
1019
+ * @since 1.8.1
1020
+ * @param array $icon Decoded fontawesome json file data.
1021
+ * @return string
1022
+ */
1023
+ public static function render_svg_html( $icon ) {
1024
+ $icon = str_replace( 'far', '', $icon );
1025
+ $icon = str_replace( 'fas', '', $icon );
1026
+ $icon = str_replace( 'fab', '', $icon );
1027
+ $icon = str_replace( 'fa-', '', $icon );
1028
+ $icon = str_replace( 'fa', '', $icon );
1029
+ $icon = sanitize_text_field( esc_attr( $icon ) );
1030
+
1031
+ $json = UAGB_Helper::backend_load_font_awesome_icons();
1032
+ $path = isset( $json[ $icon ]['svg']['brands'] ) ? $json[ $icon ]['svg']['brands']['path'] : $json[ $icon ]['svg']['solid']['path'];
1033
+ $view = isset( $json[ $icon ]['svg']['brands'] ) ? $json[ $icon ]['svg']['brands']['viewBox'] : $json[ $icon ]['svg']['solid']['viewBox'];
1034
+ if ( $view ) {
1035
+ $view = implode( ' ', $view );
1036
+ }
1037
+ $htm = '<svg xmlns="http://www.w3.org/2000/svg" viewBox= "' . $view . '"><path d="' . $path . '"></path></svg>';
1038
+ return $htm;
1039
+ }
1040
+
1041
+ /**
1042
+ * Returns Query.
1043
+ *
1044
+ * @param array $attributes The block attributes.
1045
+ * @param string $block_type The Block Type.
1046
+ * @since 1.8.2
1047
+ */
1048
+ public static function get_query( $attributes, $block_type ) {
1049
+
1050
+ // Block type is grid/masonry/carousel/timeline.
1051
+ $query_args = array(
1052
+ 'posts_per_page' => ( isset( $attributes['postsToShow'] ) ) ? $attributes['postsToShow'] : 6,
1053
+ 'post_status' => 'publish',
1054
+ 'post_type' => ( isset( $attributes['postType'] ) ) ? $attributes['postType'] : 'post',
1055
+ 'order' => ( isset( $attributes['order'] ) ) ? $attributes['order'] : 'desc',
1056
+ 'orderby' => ( isset( $attributes['orderBy'] ) ) ? $attributes['orderBy'] : 'date',
1057
+ 'ignore_sticky_posts' => 1,
1058
+ );
1059
+
1060
+ if ( isset( $attributes['categories'] ) && '' !== $attributes['categories'] ) {
1061
+ $query_args['tax_query'][] = array(
1062
+ 'taxonomy' => ( isset( $attributes['taxonomyType'] ) ) ? $attributes['taxonomyType'] : 'category',
1063
+ 'field' => 'id',
1064
+ 'terms' => $attributes['categories'],
1065
+ 'operator' => 'IN',
1066
+ );
1067
+ }
1068
+
1069
+ $query_args = apply_filters( "uagb_post_query_args_{$block_type}", $query_args, $attributes );
1070
+
1071
+ return new WP_Query( $query_args );
1072
+ }
1073
+
1074
+ /**
1075
+ * Get size information for all currently-registered image sizes.
1076
+ *
1077
+ * @global $_wp_additional_image_sizes
1078
+ * @uses get_intermediate_image_sizes()
1079
+ * @link https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
1080
+ * @since 1.9.0
1081
+ * @return array $sizes Data for all currently-registered image sizes.
1082
+ */
1083
+ public static function get_image_sizes() {
1084
+
1085
+ global $_wp_additional_image_sizes;
1086
+
1087
+ $sizes = get_intermediate_image_sizes();
1088
+ $image_sizes = array();
1089
+
1090
+ $image_sizes[] = array(
1091
+ 'value' => 'full',
1092
+ 'label' => esc_html__( 'Full', 'ultimate-addons-for-gutenberg' ),
1093
+ );
1094
+
1095
+ foreach ( $sizes as $size ) {
1096
+ if ( in_array( $size, array( 'thumbnail', 'medium', 'medium_large', 'large' ), true ) ) {
1097
+ $image_sizes[] = array(
1098
+ 'value' => $size,
1099
+ 'label' => ucwords( trim( str_replace( array( '-', '_' ), array( ' ', ' ' ), $size ) ) ),
1100
+ );
1101
+ } else {
1102
+ $image_sizes[] = array(
1103
+ 'value' => $size,
1104
+ 'label' => sprintf(
1105
+ '%1$s (%2$sx%3$s)',
1106
+ ucwords( trim( str_replace( array( '-', '_' ), array( ' ', ' ' ), $size ) ) ),
1107
+ $_wp_additional_image_sizes[ $size ]['width'],
1108
+ $_wp_additional_image_sizes[ $size ]['height']
1109
+ ),
1110
+ );
1111
+ }
1112
+ }
1113
+
1114
+ $image_sizes = apply_filters( 'uagb_post_featured_image_sizes', $image_sizes );
1115
+
1116
+ return $image_sizes;
1117
+ }
1118
+
1119
+ /**
1120
+ * Get Post Types.
1121
+ *
1122
+ * @since 1.11.0
1123
+ * @access public
1124
+ */
1125
+ public static function get_post_types() {
1126
+
1127
+ $post_types = get_post_types(
1128
+ array(
1129
+ 'public' => true,
1130
+ 'show_in_rest' => true,
1131
+ ),
1132
+ 'objects'
1133
+ );
1134
+
1135
+ $options = array();
1136
+
1137
+ foreach ( $post_types as $post_type ) {
1138
+ if ( 'product' === $post_type->name ) {
1139
+ continue;
1140
+ }
1141
+
1142
+ if ( 'attachment' === $post_type->name ) {
1143
+ continue;
1144
+ }
1145
+
1146
+ $options[] = array(
1147
+ 'value' => $post_type->name,
1148
+ 'label' => $post_type->label,
1149
+ );
1150
+ }
1151
+
1152
+ return apply_filters( 'uagb_loop_post_types', $options );
1153
+ }
1154
+
1155
+ /**
1156
+ * Get all taxonomies.
1157
+ *
1158
+ * @since 1.11.0
1159
+ * @access public
1160
+ */
1161
+ public static function get_related_taxonomy() {
1162
+
1163
+ $post_types = self::get_post_types();
1164
+
1165
+ $return_array = array();
1166
+
1167
+ foreach ( $post_types as $key => $value ) {
1168
+ $post_type = $value['value'];
1169
+
1170
+ $taxonomies = get_object_taxonomies( $post_type, 'objects' );
1171
+ $data = array();
1172
+
1173
+ foreach ( $taxonomies as $tax_slug => $tax ) {
1174
+ if ( ! $tax->public || ! $tax->show_ui ) {
1175
+ continue;
1176
+ }
1177
+
1178
+ $data[ $tax_slug ] = $tax;
1179
+
1180
+ $terms = get_terms( $tax_slug );
1181
+
1182
+ $related_tax = array();
1183
+
1184
+ if ( ! empty( $terms ) ) {
1185
+ foreach ( $terms as $t_index => $t_obj ) {
1186
+ $related_tax[] = array(
1187
+ 'id' => $t_obj->term_id,
1188
+ 'name' => $t_obj->name,
1189
+ );
1190
+ }
1191
+
1192
+ $return_array[ $post_type ]['terms'][ $tax_slug ] = $related_tax;
1193
+ }
1194
+ }
1195
+
1196
+ $return_array[ $post_type ]['taxonomy'] = $data;
1197
+ }
1198
+
1199
+ return apply_filters( 'uagb_post_loop_taxonomies', $return_array );
1200
+ }
1201
+
1202
+ /**
1203
+ * Get flag if more than 5 pages are build using UAG.
1204
+ *
1205
+ * @since 1.10.0
1206
+ * @return boolean true/false Flag if more than 5 pages are build using UAG.
1207
+ */
1208
+ public static function show_rating_notice() {
1209
+
1210
+ $posts_created_with_uag = get_option( 'posts-created-with-uagb' );
1211
+
1212
+ if ( false === $posts_created_with_uag ) {
1213
+ $query_args = array(
1214
+ 'posts_per_page' => 100,
1215
+ 'post_status' => 'publish',
1216
+ 'post_type' => 'any',
1217
+ );
1218
+
1219
+ $query = new WP_Query( $query_args );
1220
+
1221
+ $uag_post_count = 0;
1222
+
1223
+ if ( isset( $query->post_count ) && $query->post_count > 0 ) {
1224
+ foreach ( $query->posts as $key => $post ) {
1225
+ if ( $uag_post_count >= 5 ) {
1226
+ break;
1227
+ }
1228
+
1229
+ if ( false !== strpos( $post->post_content, '<!-- wp:uagb/' ) ) {
1230
+ $uag_post_count++;
1231
+ }
1232
+ }
1233
+ }
1234
+
1235
+ if ( $uag_post_count >= 5 ) {
1236
+ update_option( 'posts-created-with-uagb', $uag_post_count );
1237
+
1238
+ $posts_created_with_uag = $uag_post_count;
1239
+ }
1240
+ }
1241
+
1242
+ return ( $posts_created_with_uag >= 5 );
1243
+ }
1244
+
1245
+ /**
1246
+ * Get - RGBA Color
1247
+ *
1248
+ * Get HEX color and return RGBA. Default return RGB color.
1249
+ *
1250
+ * @param var $color Gets the color value.
1251
+ * @param var $opacity Gets the opacity value.
1252
+ * @param array $is_array Gets an array of the value.
1253
+ * @since 1.11.0
1254
+ */
1255
+ public static function hex2rgba( $color, $opacity = false, $is_array = false ) {
1256
+
1257
+ $default = $color;
1258
+
1259
+ // Return default if no color provided.
1260
+ if ( empty( $color ) ) {
1261
+ return $default;
1262
+ }
1263
+
1264
+ // Sanitize $color if "#" is provided.
1265
+ if ( '#' === $color[0] ) {
1266
+ $color = substr( $color, 1 );
1267
+ }
1268
+
1269
+ // Check if color has 6 or 3 characters and get values.
1270
+ if ( strlen( $color ) === 6 ) {
1271
+ $hex = array( $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] );
1272
+ } elseif ( strlen( $color ) === 3 ) {
1273
+ $hex = array( $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] );
1274
+ } else {
1275
+ return $default;
1276
+ }
1277
+
1278
+ // Convert hexadec to rgb.
1279
+ $rgb = array_map( 'hexdec', $hex );
1280
+
1281
+ // Check if opacity is set(rgba or rgb).
1282
+ if ( false !== $opacity && '' !== $opacity ) {
1283
+ if ( abs( $opacity ) >= 1 ) {
1284
+ $opacity = $opacity / 100;
1285
+ }
1286
+ $output = 'rgba(' . implode( ',', $rgb ) . ',' . $opacity . ')';
1287
+ } else {
1288
+ $output = 'rgb(' . implode( ',', $rgb ) . ')';
1289
+ }
1290
+
1291
+ if ( $is_array ) {
1292
+ return $rgb;
1293
+ } else {
1294
+ // Return rgb(a) color string.
1295
+ return $output;
1296
+ }
1297
+ }
1298
+
1299
+ /**
1300
+ * Get Specific Stylesheet
1301
+ *
1302
+ * @since 1.13.4
1303
+ */
1304
+ public static function create_specific_stylesheet() {
1305
+
1306
+ $saved_blocks = self::get_admin_settings_option( '_uagb_blocks' );
1307
+ $combined = array();
1308
+ $is_already_post = false;
1309
+ $is_already_timeline = false;
1310
+ $is_already_column = false;
1311
+
1312
+ foreach ( UAGB_Config::$block_attributes as $key => $block ) {
1313
+
1314
+ $block_name = str_replace( 'uagb/', '', $key );
1315
+ $slug = $block_name;
1316
+
1317
+ if ( isset( $saved_blocks[ $block_name ] ) && 'disabled' === $saved_blocks[ $block_name ] ) {
1318
+ continue;
1319
+ }
1320
+
1321
+ switch ( $block_name ) {
1322
+
1323
+ case 'post-grid':
1324
+ case 'post-carousel':
1325
+ case 'post-masonry':
1326
+ if ( ! $is_already_post ) {
1327
+ $combined[] = 'post';
1328
+ $is_already_post = true;
1329
+ }
1330
+ break;
1331
+
1332
+ case 'columns':
1333
+ case 'column':
1334
+ if ( ! $is_already_column ) {
1335
+ $combined[] = 'column';
1336
+ $combined[] = 'columns';
1337
+ $is_already_column = true;
1338
+ }
1339
+ break;
1340
+
1341
+ case 'post-timeline':
1342
+ case 'content-timeline':
1343
+ if ( ! $is_already_timeline ) {
1344
+ $combined[] = 'timeline';
1345
+ $is_already_timeline = true;
1346
+ }
1347
+ break;
1348
+
1349
+ case 'restaurant-menu':
1350
+ $combined[] = 'price-list';
1351
+ break;
1352
+
1353
+ default:
1354
+ $combined[] = $block_name;
1355
+ break;
1356
+ }
1357
+ }
1358
+
1359
+ $combined_path = plugin_dir_path( UAGB_FILE ) . 'dist/blocks.style.css';
1360
+ wp_delete_file( $combined_path );
1361
+
1362
+ $handle = fopen( $combined_path, 'a' );
1363
+
1364
+ foreach ( $combined as $key => $c_block ) {
1365
+
1366
+ $c_handle = fopen( plugin_dir_path( UAGB_FILE ) . 'assets/css/blocks/' . $c_block . '.css', 'r' );
1367
+ $style = fread( $c_handle, filesize( plugin_dir_path( UAGB_FILE ) . 'assets/css/blocks/' . $c_block . '.css' ) );
1368
+ fclose( $c_handle );
1369
+ fwrite( $handle, $style );
1370
+ }
1371
+
1372
+ fclose( $handle );
1373
+ }
1374
+
1375
+ /**
1376
+ * Returns an array of paths for the upload directory
1377
+ * of the current site.
1378
+ *
1379
+ * @since 1.14.0
1380
+ * @return array
1381
+ */
1382
+ public static function get_upload_dir() {
1383
+
1384
+ $wp_info = wp_upload_dir( null, false );
1385
+
1386
+ $dir_name = basename( UAGB_DIR );
1387
+ if ( 'ultimate-addons-for-gutenberg' === $dir_name ) {
1388
+ $dir_name = 'uag-plugin';
1389
+ }
1390
+ // SSL workaround.
1391
+ if ( self::is_ssl() ) {
1392
+ $wp_info['baseurl'] = str_ireplace( 'http://', 'https://', $wp_info['baseurl'] );
1393
+ }
1394
+ // Build the paths.
1395
+ $dir_info = array(
1396
+ 'path' => trailingslashit( trailingslashit( $wp_info['basedir'] ) . $dir_name ),
1397
+ 'url' => trailingslashit( trailingslashit( $wp_info['baseurl'] ) . $dir_name ),
1398
+ );
1399
+ // Create the upload dir if it doesn't exist.
1400
+ if ( ! file_exists( $dir_info['path'] ) ) {
1401
+ // Create the directory.
1402
+ mkdir( $dir_info['path'] );
1403
+ // Add an index file for security.
1404
+ file_put_contents( $dir_info['path'] . 'index.html', '' );
1405
+ }
1406
+
1407
+ return apply_filters( 'uag_get_upload_dir', $dir_info );
1408
+ }
1409
+ /**
1410
+ * Checks to see if the site has SSL enabled or not.
1411
+ *
1412
+ * @since 1.14.0
1413
+ * @return bool
1414
+ */
1415
+ public static function is_ssl() {
1416
+ if ( is_ssl() ) {
1417
+ return true;
1418
+ } elseif ( 0 === stripos( get_option( 'siteurl' ), 'https://' ) ) {
1419
+ return true;
1420
+ } elseif ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) {
1421
+ return true;
1422
+ }
1423
+ return false;
1424
+ }
1425
+
1426
+ /**
1427
+ * Returns an array of paths for the CSS and JS assets
1428
+ * of the current post.
1429
+ *
1430
+ * @param var $data Gets the CSS\JS for the current Page.
1431
+ * @param var $type Gets the CSS\JS type.
1432
+ * @param var $timestamp Timestamp.
1433
+ * @since 1.14.0
1434
+ * @return array
1435
+ */
1436
+ public static function get_asset_info( $data, $type, $timestamp ) {
1437
+
1438
+ $post_id = get_the_ID();
1439
+ $uploads_dir = self::get_upload_dir();
1440
+ $css_suffix = 'uag-style';
1441
+ $js_suffix = 'uag-script';
1442
+ $info = array();
1443
+
1444
+ if ( ! empty( $data ) && 'css' === $type ) {
1445
+
1446
+ $info['css'] = $uploads_dir['path'] . $css_suffix . '-' . $post_id . '-' . $timestamp . '.css';
1447
+ $info['css_url'] = $uploads_dir['url'] . $css_suffix . '-' . $post_id . '-' . $timestamp . '.css';
1448
+
1449
+ } elseif ( ! empty( $data ) && 'js' === $type ) {
1450
+
1451
+ $info['js'] = $uploads_dir['path'] . $js_suffix . '-' . $post_id . '-' . $timestamp . '.js';
1452
+ $info['js_url'] = $uploads_dir['url'] . $js_suffix . '-' . $post_id . '-' . $timestamp . '.js';
1453
+
1454
+ }
1455
+
1456
+ return $info;
1457
+ }
1458
+
1459
+ /**
1460
+ * Creates css and js files.
1461
+ *
1462
+ * @param var $style_data Gets the CSS\JS for the current Page.
1463
+ * @param var $type Gets the CSS\JS type.
1464
+ * @since 1.14.0
1465
+ */
1466
+ public static function file_write( $style_data, $type ) {
1467
+
1468
+ $post_timestamp = get_post_meta( get_the_ID(), 'uagb_style_timestamp-' . $type, true );
1469
+
1470
+ $var = ( 'css' === $type ) ? 'css' : 'js';
1471
+
1472
+ if ( '' === $post_timestamp || false === $post_timestamp ) {
1473
+ // File not created yet.
1474
+ $date = new DateTime();
1475
+ $timestamp = $date->getTimestamp();
1476
+
1477
+ $assets_info = self::get_asset_info( $style_data, $type, $timestamp );
1478
+
1479
+ if ( isset( $assets_info[ $var ] ) ) {
1480
+ // Create a new file.
1481
+ $handle = fopen( $assets_info[ $var ], 'a' );
1482
+ file_put_contents( $assets_info[ $var ], $style_data );
1483
+ fclose( $handle );
1484
+
1485
+ // Update the post meta.
1486
+ update_post_meta( get_the_ID(), 'uagb_style_timestamp-' . $type, $timestamp );
1487
+
1488
+ if ( is_array( self::$css_file_handler ) ) {
1489
+ self::$css_file_handler = array_merge( self::$css_file_handler, $assets_info );
1490
+ } else {
1491
+ self::$css_file_handler = $assets_info;
1492
+ }
1493
+ } else {
1494
+ self::$css_file_handler = $assets_info;
1495
+ }
1496
+ } else {
1497
+
1498
+ // File already created.
1499
+ $timestamp = $post_timestamp;
1500
+ $assets_info = self::get_asset_info( $style_data, $type, $timestamp );
1501
+ if ( isset( $assets_info[ $var ] ) ) {
1502
+
1503
+ if ( file_exists( $assets_info[ $var ] ) ) {
1504
+
1505
+ $handle = fopen( $assets_info[ $var ], 'r' );
1506
+ $old_data = file_get_contents( $assets_info[ $var ] );
1507
+ fclose( $handle );
1508
+
1509
+ if ( $old_data !== $style_data ) {
1510
+
1511
+ // File needs a change in content.
1512
+ $date = new DateTime();
1513
+ $new_timestamp = $date->getTimestamp();
1514
+ $new_assets_info = self::get_asset_info( $style_data, $type, $new_timestamp );
1515
+
1516
+ // Create a new file.
1517
+ $new_handle = fopen( $new_assets_info[ $var ], 'a' );
1518
+ file_put_contents( $new_assets_info[ $var ], $style_data );
1519
+ fclose( $new_handle );
1520
+
1521
+ // Update the post meta.
1522
+ update_post_meta( get_the_ID(), 'uagb_style_timestamp-' . $type, $new_timestamp );
1523
+
1524
+ // Delete old file.
1525
+ wp_delete_file( $assets_info[ $var ] );
1526
+
1527
+ if ( is_array( self::$css_file_handler ) ) {
1528
+ self::$css_file_handler = array_merge( self::$css_file_handler, $new_assets_info );
1529
+ } else {
1530
+ self::$css_file_handler = $new_assets_info;
1531
+ }
1532
+ } else {
1533
+
1534
+ // Do nothing.
1535
+ if ( is_array( self::$css_file_handler ) ) {
1536
+ self::$css_file_handler = array_merge( self::$css_file_handler, $assets_info );
1537
+ } else {
1538
+ self::$css_file_handler = $assets_info;
1539
+ }
1540
+ }
1541
+ } else {
1542
+ self::$css_file_handler = $assets_info;
1543
+ }
1544
+ } else {
1545
+ self::$css_file_handler = $assets_info;
1546
+ }
1547
+ }
1548
+ }
1549
+
1550
+ /**
1551
+ * Allow File Geranation flag.
1552
+ *
1553
+ * @since 1.14.0
1554
+ */
1555
+ public static function allow_file_generation() {
1556
+ return get_option( '_uagb_allow_file_generation', 'disabled' );
1557
+ }
1558
+ }
1559
+
1560
+ /**
1561
+ * Prepare if class 'UAGB_Helper' exist.
1562
+ * Kicking this off by calling 'get_instance()' method
1563
+ */
1564
+ UAGB_Helper::get_instance();
1565
+ }
classes/class-uagb-loader.php CHANGED
@@ -1,215 +1,215 @@
1
- <?php
2
- /**
3
- * UAGB Loader.
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit; // Exit if accessed directly.
10
- }
11
-
12
- if ( ! class_exists( 'UAGB_Loader' ) ) {
13
-
14
- /**
15
- * Class UAGB_Loader.
16
- */
17
- final class UAGB_Loader {
18
-
19
- /**
20
- * Member Variable
21
- *
22
- * @var instance
23
- */
24
- private static $instance;
25
-
26
- /**
27
- * Initiator
28
- */
29
- public static function get_instance() {
30
- if ( ! isset( self::$instance ) ) {
31
- self::$instance = new self;
32
- }
33
- return self::$instance;
34
- }
35
-
36
- /**
37
- * Constructor
38
- */
39
- public function __construct() {
40
-
41
- // Activation hook.
42
- register_activation_hook( UAGB_FILE, array( $this, 'activation_reset' ) );
43
-
44
- // deActivation hook.
45
- register_deactivation_hook( UAGB_FILE, array( $this, 'deactivation_reset' ) );
46
-
47
- if ( ! $this->is_gutenberg_active() ) {
48
- /* TO DO */
49
- add_action( 'admin_notices', array( $this, 'uagb_fails_to_load' ) );
50
- return;
51
- }
52
-
53
- $this->define_constants();
54
-
55
- $this->loader();
56
-
57
- add_action( 'plugins_loaded', array( $this, 'load_plugin' ) );
58
- }
59
-
60
- /**
61
- * Loads Other files.
62
- *
63
- * @since 1.0.0
64
- *
65
- * @return void
66
- */
67
- public function loader() {
68
- require_once UAGB_DIR . 'classes/class-uagb-helper.php';
69
- require_once UAGB_DIR . 'classes/class-uagb-update.php';
70
- }
71
-
72
- /**
73
- * Defines all constants
74
- *
75
- * @since 1.0.0
76
- */
77
- public function define_constants() {
78
- define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
79
- define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
80
- define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
81
- define( 'UAGB_VER', '1.14.0' );
82
- define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
83
- define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
84
- define( 'UAGB_SLUG', 'uag' );
85
- define( 'UAGB_TABLET_BREAKPOINT', '976' );
86
- define( 'UAGB_MOBILE_BREAKPOINT', '767' );
87
- }
88
-
89
- /**
90
- * Loads plugin files.
91
- *
92
- * @since 1.0.0
93
- *
94
- * @return void
95
- */
96
- function load_plugin() {
97
-
98
- $this->load_textdomain();
99
-
100
- require_once UAGB_DIR . 'classes/class-uagb-core-plugin.php';
101
- require_once UAGB_DIR . 'dist/blocks/post/index.php';
102
- require_once UAGB_DIR . 'dist/blocks/post-timeline/index.php';
103
- require_once UAGB_DIR . 'dist/blocks/cf7-styler/index.php';
104
- require_once UAGB_DIR . 'dist/blocks/gf-styler/index.php';
105
- }
106
-
107
- /**
108
- * Check if Gutenberg is active
109
- *
110
- * @since 1.1.0
111
- *
112
- * @return boolean
113
- */
114
- public function is_gutenberg_active() {
115
- return function_exists( 'register_block_type' );
116
- }
117
-
118
- /**
119
- * Load Ultimate Gutenberg Text Domain.
120
- * This will load the translation textdomain depending on the file priorities.
121
- * 1. Global Languages /wp-content/languages/ultimate-addons-for-gutenberg/ folder
122
- * 2. Local dorectory /wp-content/plugins/ultimate-addons-for-gutenberg/languages/ folder
123
- *
124
- * @since 1.0.0
125
- * @return void
126
- */
127
- public function load_textdomain() {
128
-
129
- /**
130
- * Filters the languages directory path to use for AffiliateWP.
131
- *
132
- * @param string $lang_dir The languages directory path.
133
- */
134
- $lang_dir = apply_filters( 'uagb_languages_directory', UAGB_ROOT . '/languages/' );
135
-
136
- load_plugin_textdomain( 'ultimate-addons-for-gutenberg', false, $lang_dir );
137
- }
138
-
139
- /**
140
- * Fires admin notice when Gutenberg is not installed and activated.
141
- *
142
- * @since 1.0.0
143
- *
144
- * @return void
145
- */
146
- public function uagb_fails_to_load() {
147
- $class = 'notice notice-error';
148
- /* translators: %s: html tags */
149
- $message = sprintf( __( 'The %1$sUltimate Addon for Gutenberg%2$s plugin requires %1$sGutenberg%2$s plugin installed & activated.', 'ultimate-addons-for-gutenberg' ), '<strong>', '</strong>' );
150
-
151
- $plugin = 'gutenberg/gutenberg.php';
152
-
153
- if ( _is_gutenberg_installed( $plugin ) ) {
154
- if ( ! current_user_can( 'activate_plugins' ) ) {
155
- return;
156
- }
157
-
158
- $action_url = wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . $plugin . '&amp;plugin_status=all&amp;paged=1&amp;s', 'activate-plugin_' . $plugin );
159
- $button_label = __( 'Activate Gutenberg', 'ultimate-addons-for-gutenberg' );
160
- } else {
161
- if ( ! current_user_can( 'install_plugins' ) ) {
162
- return;
163
- }
164
-
165
- $action_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=gutenberg' ), 'install-plugin_gutenberg' );
166
- $button_label = __( 'Install Gutenberg', 'ultimate-addons-for-gutenberg' );
167
- }
168
-
169
- $button = '<p><a href="' . $action_url . '" class="button-primary">' . $button_label . '</a></p><p></p>';
170
-
171
- printf( '<div class="%1$s"><p>%2$s</p>%3$s</div>', esc_attr( $class ), $message, $button );
172
- }
173
-
174
- /**
175
- * Activation Reset
176
- */
177
- function activation_reset() {
178
- update_option( '__uagb_do_redirect', true );
179
- }
180
-
181
- /**
182
- * Deactivation Reset
183
- */
184
- function deactivation_reset() {
185
- update_option( '__uagb_do_redirect', false );
186
- }
187
- }
188
-
189
- /**
190
- * Prepare if class 'UAGB_Loader' exist.
191
- * Kicking this off by calling 'get_instance()' method
192
- */
193
- UAGB_Loader::get_instance();
194
- }
195
-
196
- /**
197
- * Is Gutenberg plugin installed.
198
- */
199
- if ( ! function_exists( '_is_gutenberg_installed' ) ) {
200
-
201
- /**
202
- * Check if Gutenberg Pro is installed
203
- *
204
- * @since 1.0.0
205
- *
206
- * @param string $plugin_path Plugin path.
207
- * @return boolean true | false
208
- * @access public
209
- */
210
- function _is_gutenberg_installed( $plugin_path ) {
211
- $plugins = get_plugins();
212
-
213
- return isset( $plugins[ $plugin_path ] );
214
- }
215
- }
1
+ <?php
2
+ /**
3
+ * UAGB Loader.
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit; // Exit if accessed directly.
10
+ }
11
+
12
+ if ( ! class_exists( 'UAGB_Loader' ) ) {
13
+
14
+ /**
15
+ * Class UAGB_Loader.
16
+ */
17
+ final class UAGB_Loader {
18
+
19
+ /**
20
+ * Member Variable
21
+ *
22
+ * @var instance
23
+ */
24
+ private static $instance;
25
+
26
+ /**
27
+ * Initiator
28
+ */
29
+ public static function get_instance() {
30
+ if ( ! isset( self::$instance ) ) {
31
+ self::$instance = new self;
32
+ }
33
+ return self::$instance;
34
+ }
35
+
36
+ /**
37
+ * Constructor
38
+ */
39
+ public function __construct() {
40
+
41
+ // Activation hook.
42
+ register_activation_hook( UAGB_FILE, array( $this, 'activation_reset' ) );
43
+
44
+ // deActivation hook.
45
+ register_deactivation_hook( UAGB_FILE, array( $this, 'deactivation_reset' ) );
46
+
47
+ if ( ! $this->is_gutenberg_active() ) {
48
+ /* TO DO */
49
+ add_action( 'admin_notices', array( $this, 'uagb_fails_to_load' ) );
50
+ return;
51
+ }
52
+
53
+ $this->define_constants();
54
+
55
+ $this->loader();
56
+
57
+ add_action( 'plugins_loaded', array( $this, 'load_plugin' ) );
58
+ }
59
+
60
+ /**
61
+ * Loads Other files.
62
+ *
63
+ * @since 1.0.0
64
+ *
65
+ * @return void
66
+ */
67
+ public function loader() {
68
+ require_once UAGB_DIR . 'classes/class-uagb-helper.php';
69
+ require_once UAGB_DIR . 'classes/class-uagb-update.php';
70
+ }
71
+
72
+ /**
73
+ * Defines all constants
74
+ *
75
+ * @since 1.0.0
76
+ */
77
+ public function define_constants() {
78
+ define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
79
+ define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
80
+ define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
81
+ define( 'UAGB_VER', '1.14.1' );
82
+ define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
83
+ define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
84
+ define( 'UAGB_SLUG', 'uag' );
85
+ define( 'UAGB_TABLET_BREAKPOINT', '976' );
86
+ define( 'UAGB_MOBILE_BREAKPOINT', '767' );
87
+ }
88
+
89
+ /**
90
+ * Loads plugin files.
91
+ *
92
+ * @since 1.0.0
93
+ *
94
+ * @return void
95
+ */
96
+ function load_plugin() {
97
+
98
+ $this->load_textdomain();
99
+
100
+ require_once UAGB_DIR . 'classes/class-uagb-core-plugin.php';
101
+ require_once UAGB_DIR . 'dist/blocks/post/index.php';
102
+ require_once UAGB_DIR . 'dist/blocks/post-timeline/index.php';
103
+ require_once UAGB_DIR . 'dist/blocks/cf7-styler/index.php';
104
+ require_once UAGB_DIR . 'dist/blocks/gf-styler/index.php';
105
+ }
106
+
107
+ /**
108
+ * Check if Gutenberg is active
109
+ *
110
+ * @since 1.1.0
111
+ *
112
+ * @return boolean
113
+ */
114
+ public function is_gutenberg_active() {
115
+ return function_exists( 'register_block_type' );
116
+ }
117
+
118
+ /**
119
+ * Load Ultimate Gutenberg Text Domain.
120
+ * This will load the translation textdomain depending on the file priorities.
121
+ * 1. Global Languages /wp-content/languages/ultimate-addons-for-gutenberg/ folder
122
+ * 2. Local dorectory /wp-content/plugins/ultimate-addons-for-gutenberg/languages/ folder
123
+ *
124
+ * @since 1.0.0
125
+ * @return void
126
+ */
127
+ public function load_textdomain() {
128
+
129
+ /**
130
+ * Filters the languages directory path to use for AffiliateWP.
131
+ *
132
+ * @param string $lang_dir The languages directory path.
133
+ */
134
+ $lang_dir = apply_filters( 'uagb_languages_directory', UAGB_ROOT . '/languages/' );
135
+
136
+ load_plugin_textdomain( 'ultimate-addons-for-gutenberg', false, $lang_dir );
137
+ }
138
+
139
+ /**
140
+ * Fires admin notice when Gutenberg is not installed and activated.
141
+ *
142
+ * @since 1.0.0
143
+ *
144
+ * @return void
145
+ */
146
+ public function uagb_fails_to_load() {
147
+ $class = 'notice notice-error';
148
+ /* translators: %s: html tags */
149
+ $message = sprintf( __( 'The %1$sUltimate Addon for Gutenberg%2$s plugin requires %1$sGutenberg%2$s plugin installed & activated.', 'ultimate-addons-for-gutenberg' ), '<strong>', '</strong>' );
150
+
151
+ $plugin = 'gutenberg/gutenberg.php';
152
+
153
+ if ( _is_gutenberg_installed( $plugin ) ) {
154
+ if ( ! current_user_can( 'activate_plugins' ) ) {
155
+ return;
156
+ }
157
+
158
+ $action_url = wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . $plugin . '&amp;plugin_status=all&amp;paged=1&amp;s', 'activate-plugin_' . $plugin );
159
+ $button_label = __( 'Activate Gutenberg', 'ultimate-addons-for-gutenberg' );
160
+ } else {
161
+ if ( ! current_user_can( 'install_plugins' ) ) {
162
+ return;
163
+ }
164
+
165
+ $action_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=gutenberg' ), 'install-plugin_gutenberg' );
166
+ $button_label = __( 'Install Gutenberg', 'ultimate-addons-for-gutenberg' );
167
+ }
168
+
169
+ $button = '<p><a href="' . $action_url . '" class="button-primary">' . $button_label . '</a></p><p></p>';
170
+
171
+ printf( '<div class="%1$s"><p>%2$s</p>%3$s</div>', esc_attr( $class ), $message, $button );
172
+ }
173
+
174
+ /**
175
+ * Activation Reset
176
+ */
177
+ function activation_reset() {
178
+ update_option( '__uagb_do_redirect', true );
179
+ }
180
+
181
+ /**
182
+ * Deactivation Reset
183
+ */
184
+ function deactivation_reset() {
185
+ update_option( '__uagb_do_redirect', false );
186
+ }
187
+ }
188
+
189
+ /**
190
+ * Prepare if class 'UAGB_Loader' exist.
191
+ * Kicking this off by calling 'get_instance()' method
192
+ */
193
+ UAGB_Loader::get_instance();
194
+ }
195
+
196
+ /**
197
+ * Is Gutenberg plugin installed.
198
+ */
199
+ if ( ! function_exists( '_is_gutenberg_installed' ) ) {
200
+
201
+ /**
202
+ * Check if Gutenberg Pro is installed
203
+ *
204
+ * @since 1.0.0
205
+ *
206
+ * @param string $plugin_path Plugin path.
207
+ * @return boolean true | false
208
+ * @access public
209
+ */
210
+ function _is_gutenberg_installed( $plugin_path ) {
211
+ $plugins = get_plugins();
212
+
213
+ return isset( $plugins[ $plugin_path ] );
214
+ }
215
+ }
classes/class-uagb-update.php CHANGED
@@ -1,84 +1,84 @@
1
- <?php
2
- /**
3
- * Update Compatibility
4
- *
5
- * @package UAGB
6
- */
7
-
8
- if ( ! defined( 'ABSPATH' ) ) {
9
- exit; // Exit if accessed directly.
10
- }
11
-
12
- if ( ! class_exists( 'UAGB_Update' ) ) :
13
-
14
- /**
15
- * UAGB Update initial setup
16
- *
17
- * @since 1.13.4
18
- */
19
- class UAGB_Update {
20
-
21
- /**
22
- * Class instance.
23
- *
24
- * @access private
25
- * @var $instance Class instance.
26
- */
27
- private static $instance;
28
-
29
- /**
30
- * Initiator
31
- */
32
- public static function get_instance() {
33
- if ( ! isset( self::$instance ) ) {
34
- self::$instance = new self();
35
- }
36
- return self::$instance;
37
- }
38
-
39
- /**
40
- * Constructor
41
- */
42
- public function __construct() {
43
- add_action( 'admin_init', __CLASS__ . '::init' );
44
- }
45
-
46
- /**
47
- * Init
48
- *
49
- * @since 1.13.4
50
- * @return void
51
- */
52
- static public function init() {
53
-
54
- do_action( 'uagb_update_before' );
55
-
56
- // Get auto saved version number.
57
- $saved_version = get_option( 'uagb-version', false );
58
-
59
- // Update auto saved version number.
60
- if ( ! $saved_version ) {
61
- update_option( 'uagb-version', UAGB_VER );
62
- return;
63
- }
64
-
65
- // If equals then return.
66
- if ( version_compare( $saved_version, UAGB_VER, '=' ) ) {
67
- return;
68
- }
69
-
70
- UAGB_Helper::create_specific_stylesheet();
71
-
72
- // Update auto saved version number.
73
- update_option( 'uagb-version', UAGB_VER );
74
-
75
- do_action( 'uagb_update_after' );
76
- }
77
- }
78
-
79
- /**
80
- * Kicking this off by calling 'get_instance()' method
81
- */
82
- UAGB_Update::get_instance();
83
-
84
- endif;
1
+ <?php
2
+ /**
3
+ * Update Compatibility
4
+ *
5
+ * @package UAGB
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit; // Exit if accessed directly.
10
+ }
11
+
12
+ if ( ! class_exists( 'UAGB_Update' ) ) :
13
+
14
+ /**
15
+ * UAGB Update initial setup
16
+ *
17
+ * @since 1.13.4
18
+ */
19
+ class UAGB_Update {
20
+
21
+ /**
22
+ * Class instance.
23
+ *
24
+ * @access private
25
+ * @var $instance Class instance.
26
+ */
27
+ private static $instance;
28
+
29
+ /**
30
+ * Initiator
31
+ */
32
+ public static function get_instance() {
33
+ if ( ! isset( self::$instance ) ) {
34
+ self::$instance = new self();
35
+ }
36
+ return self::$instance;
37
+ }
38
+
39
+ /**
40
+ * Constructor
41
+ */
42
+ public function __construct() {
43
+ add_action( 'admin_init', __CLASS__ . '::init' );
44
+ }
45
+
46
+ /**
47
+ * Init
48
+ *
49
+ * @since 1.13.4
50
+ * @return void
51
+ */
52
+ static public function init() {
53
+
54
+ do_action( 'uagb_update_before' );
55
+
56
+ // Get auto saved version number.
57
+ $saved_version = get_option( 'uagb-version', false );
58
+
59
+ // Update auto saved version number.
60
+ if ( ! $saved_version ) {
61
+ update_option( 'uagb-version', UAGB_VER );
62
+ return;
63
+ }
64
+
65
+ // If equals then return.
66
+ if ( version_compare( $saved_version, UAGB_VER, '=' ) ) {
67
+ return;
68
+ }
69
+
70
+ UAGB_Helper::create_specific_stylesheet();
71
+
72
+ // Update auto saved version number.
73
+ update_option( 'uagb-version', UAGB_VER );
74
+
75
+ do_action( 'uagb_update_after' );
76
+ }
77
+ }
78
+
79
+ /**
80
+ * Kicking this off by calling 'get_instance()' method
81
+ */
82
+ UAGB_Update::get_instance();
83
+
84
+ endif;
dist/blocks.build.js CHANGED
@@ -1 +1,99508 @@
1
- !function(e){function t(a){if(n[a])return n[a].exports;var l=n[a]={i:a,l:!1,exports:{}};return e[a].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=148)}([function(e,t,n){var a,l;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var l=typeof a;if("string"===l||"number"===l)e.push(a);else if(Array.isArray(a)&&a.length){var i=n.apply(null,a);i&&e.push(i)}else if("object"===l)for(var o in a)r.call(a,o)&&a[o]&&e.push(o)}}return e.join(" ")}var r={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(a=[],void 0!==(l=function(){return n}.apply(t,a))&&(e.exports=l))}()},function(e,t,n){"use strict";var a=wp.element.createElement,l={section:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M20 18.008h-20v-16.016h20v16.016zM1.172 16.836h17.656v-13.672h-17.656v13.672z"}),a("path",{fill:"#4a00e0",d:"M7.617 4.604h4.766v1.172h-4.766v-1.172z"}),a("path",{fill:"#4a00e0",d:"M8.998 14.385h-6.237v-6.238h6.238v6.238zM3.932 13.213h3.894v-3.894h-3.894v3.894z"}),a("path",{fill:"#4a00e0",d:"M17.24 11.852h-6.237v-3.705h6.238v3.705zM12.174 10.68h3.894v-1.361h-3.894v1.361z"}),a("path",{fill:"#4a00e0",d:"M11.588 13.024h5.066v1.172h-5.066v-1.172z"})),buttons:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M20 18.008h-20v-16.016h20v16.016zM1.172 16.836h17.656v-13.672h-17.656v13.672z"}),a("path",{fill:"#4a00e0",d:"M10.758 6.289h-7.421v7.421l12.987 0.001v-7.422h-5.566zM5.192 11.855v-3.711h3.711v3.711h-3.711zM14.469 11.855h-3.711v-3.711h3.711v3.711z"})),advanced_heading:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M0 18h20v2h-20v-2z"}),a("path",{fill:"#4a00e0",d:"M11 0h-2l-7.25 16h2.25l2.21-5h7.59l2.2 5h2.25l-7.25-16zM7.090 9l2.91-6.59 2.91 6.59h-5.82z"})),google_map:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M10 0c-4.112 0-7.458 3.347-7.458 7.461 0 6.13 6.716 12.115 7.002 12.367 0.131 0.115 0.293 0.172 0.456 0.172s0.326-0.058 0.456-0.172c0.286-0.252 7.002-6.237 7.002-12.367 0-4.114-3.345-7.461-7.458-7.461v0zM10 18.363c-1.485-1.439-6.077-6.265-6.077-10.902 0-3.353 2.726-6.080 6.077-6.080s6.077 2.728 6.077 6.080c0 4.637-4.592 9.463-6.077 10.902v0z"}),a("path",{fill:"#4a00e0",d:"M10 3.986c-1.904 0-3.453 1.559-3.453 3.475s1.549 3.476 3.453 3.476c1.904 0 3.453-1.559 3.453-3.476s-1.549-3.475-3.453-3.475v0zM10 9.555c-1.142 0-2.071-0.939-2.071-2.094s0.929-2.095 2.071-2.095 2.072 0.94 2.072 2.095c0 1.155-0.93 2.094-2.072 2.094v0z"})),info_box:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M0 1.992v16.016h20v-16.016h-20zM11.406 16.836h-10.234v-10.898h10.234v10.898zM18.828 16.836h-6.25v-2.852h6.25v2.852zM18.828 12.813h-6.25v-6.875h6.25v6.875zM1.172 4.766v-1.602h17.656v1.602h-17.656z"}),a("path",{fill:"#4a00e0",d:"M2.652 15.325h7.274v-7.877h-7.274v7.877zM3.824 8.62h4.931v5.534h-4.931v-5.534z"}),a("path",{fill:"#4a00e0",d:"M13.486 10.13h4.434v1.172h-4.434v-1.172z"}),a("path",{fill:"#4a00e0",d:"M13.486 7.448h4.434v1.172h-4.434v-1.172z"})),post_carousel:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M7.554 12.936h4.893v-5.871h-4.893v5.871zM8.888 8.399h2.224v3.202h-2.224v-3.202z"}),a("path",{fill:"#4a00e0",d:"M13.913 8.868l1.132 1.132-1.132 1.132 0.944 0.944 2.076-2.076-2.076-2.076-0.943 0.943z"}),a("path",{fill:"#4a00e0",d:"M5.144 7.924l-2.076 2.076 2.076 2.076 0.943-0.944-1.132-1.132 1.132-1.132-0.944-0.943z"}),a("path",{fill:"#4a00e0",d:"M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM1.32 18.62v-17.301h17.3v17.3h-17.3z"})),post_masonry:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM18.62 6.206h-4.825v-4.825h4.825v4.825zM18.62 12.413h-4.825v-4.825h4.825v4.825zM7.588 5.788h4.825v8.825h-4.825v-8.825zM12.413 1.381v3.025h-4.825v-3.025h4.825zM6.206 1.381v11.025h-4.825v-11.025h4.825zM1.381 13.794h4.825v4.826h-4.825v-4.826zM7.588 18.62v-2.826h4.825v2.826h-4.825zM13.794 18.62v-4.826h4.825v4.826h-4.825z"})),post_grid:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM18.62 6.206h-4.825v-4.825h4.825v4.825zM18.62 12.413h-4.825v-4.825h4.825v4.825zM1.381 7.588h4.825v4.825h-4.825v-4.825zM7.588 7.588h4.825v4.825h-4.825v-4.825zM12.413 1.381v4.825h-4.825v-4.825h4.825zM6.206 1.381v4.825h-4.825v-4.825h4.825zM1.381 13.794h4.825v4.826h-4.825v-4.826zM7.588 18.62v-4.826h4.825v4.826h-4.825zM13.794 18.62v-4.826h4.825v4.826h-4.825z"})),testimonial:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M9.996 0c-5.516 0-9.996 4.479-9.996 9.997 0 5.523 4.48 10.003 9.996 10.003 5.524 0 10.004-4.48 10.004-10.003 0-5.518-4.48-9.997-10.004-9.997v0zM9.996 18.749c-4.821 0-8.745-3.926-8.745-8.752 0-4.822 3.923-8.746 8.745-8.746 4.829 0 8.753 3.924 8.753 8.746 0 4.826-3.924 8.752-8.753 8.752v0z"}),a("path",{fill:"#4a00e0",d:"M8.007 6.732l-0.292-0.201-0.006-0.012-0.019-0.006-0.214-0.098 0.006 0.012c-0.201-0.079-0.416-0.14-0.641-0.14-1.018 0-1.843 0.854-1.843 1.91s0.825 1.917 1.843 1.917c0.323 0 0.622-0.098 0.891-0.25-0.091 1.019-0.605 2.514-2.491 4.034-0.267 0.212-0.317 0.604-0.109 0.879 0.121 0.159 0.3 0.243 0.476 0.243 0.134 0 0.263-0.041 0.372-0.134 2.319-1.866 2.894-3.784 2.971-5.070 0.134-1.636-0.365-2.502-0.817-2.948l-0.128-0.134z"}),a("path",{fill:"#4a00e0",d:"M14.068 6.732l-0.293-0.201-0.008-0.012-0.017-0.006-0.214-0.098 0.006 0.012c-0.202-0.079-0.415-0.14-0.641-0.14-1.019 0-1.843 0.854-1.843 1.91s0.824 1.917 1.843 1.917c0.324 0 0.623-0.098 0.891-0.25-0.092 1.019-0.604 2.514-2.496 4.034-0.262 0.212-0.311 0.604-0.104 0.879 0.116 0.159 0.299 0.243 0.476 0.243 0.134 0 0.263-0.041 0.372-0.134 2.319-1.866 2.893-3.784 2.972-5.070 0.134-1.636-0.366-2.502-0.818-2.948l-0.128-0.134z"})),cf7_styler:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M0 2.969v14.063h20v-14.063h-20zM18.828 15.859h-17.656v-11.719h17.656v11.719z"}),a("path",{fill:"#4a00e0",d:"M11.758 13.516h5.898v1.172h-5.898v-1.172z"}),a("path",{fill:"#4a00e0",d:"M11.758 11.172h5.898v1.172h-5.898v-1.172z"}),a("path",{fill:"#4a00e0",d:"M11.758 8.828h5.898v1.172h-5.898v-1.172z"}),a("path",{fill:"#4a00e0",d:"M11.758 6.484h3.555v1.172h-3.555v-1.172z"}),a("path",{fill:"#4a00e0",d:"M16.484 6.484h1.172v1.172h-1.172v-1.172z"}),a("path",{fill:"#4a00e0",d:"M8.386 10.468c0.629-0.538 1.028-1.336 1.028-2.226 0-1.615-1.314-2.93-2.93-2.93s-2.93 1.314-2.93 2.93c0 0.89 0.4 1.688 1.028 2.226-1.307 0.687-2.2 2.057-2.2 3.633v0.586h8.203v-0.586c0-1.576-0.893-2.947-2.2-3.633zM6.484 6.484c0.969 0 1.758 0.789 1.758 1.758s-0.789 1.758-1.758 1.758-1.758-0.789-1.758-1.758 0.789-1.758 1.758-1.758zM3.614 13.516c0.272-1.336 1.456-2.344 2.871-2.344s2.599 1.008 2.871 2.344h-5.742z"})),gf_styler:a("svg",{width:20,height:20,viewBox:"0 0 100 100"},a("path",{fill:"#4a00e0",d:"M20.509,26.661H38.2c1.783,0,3.229-1.447,3.229-3.226c0-1.784-1.447-3.227-3.229-3.227H20.509 c-1.783,0-3.229,1.443-3.229,3.227C17.28,25.214,18.726,26.661,20.509,26.661L20.509,26.661z M20.509,26.661"}),a("path",{fill:"#4a00e0",d:"M20.509,38.465h41.285c1.78,0,3.229-1.442,3.229-3.223c0-1.783-1.449-3.227-3.229-3.227H20.509 c-1.783,0-3.229,1.444-3.229,3.227C17.28,37.022,18.726,38.465,20.509,38.465L20.509,38.465z M20.509,38.465"}),a("path",{fill:"#4a00e0",d:"M38.2,49.727H20.509c-1.783,0-3.229,1.443-3.229,3.227c0,1.78,1.446,3.224,3.229,3.224H38.2 c1.783,0,3.229-1.443,3.229-3.224C41.429,51.17,39.982,49.727,38.2,49.727L38.2,49.727z M38.2,49.727"}),a("path",{fill:"#4a00e0",d:"M92.334,14.48c-1.304-0.447-2.744-0.014-3.593,1.071l-6.021,7.754V5.723c0-1.778-1.446-3.223-3.23-3.223H8.71 c-1.783,0-3.226,1.445-3.226,3.223v88.552c0,1.78,1.443,3.226,3.226,3.226h70.78c1.784,0,3.23-1.445,3.23-3.226V51.129 l11.088-13.875c0.456-0.57,0.707-1.279,0.707-2.012V17.531C94.516,16.153,93.637,14.928,92.334,14.48L92.334,14.48z M76.267,91.045 h-64.33V8.951h64.33v22.653L47.452,68.679c-1.096,1.409-0.835,3.432,0.568,4.527c0.59,0.457,1.286,0.677,1.975,0.677 c0.962,0,1.915-0.424,2.547-1.241l3.619-4.657h11.534c0.979,0,1.906-0.446,2.518-1.214l6.054-7.572V91.045z M88.062,34.11 L66.144,61.53H61.18l26.882-34.591V34.11z M88.062,34.11"})),content_timeline:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M9.375 0h1.25v20h-1.25v-20z"}),a("path",{fill:"#4a00e0",d:"M1.875 3.125h5v2.5h-5v-2.5zM0.625 6.875h7.5v-5h-7.5v5z"}),a("path",{fill:"#4a00e0",d:"M1.875 14.592h5v2.5h-5v-2.5zM0.625 18.342h7.5v-5h-7.5v5z"}),a("path",{fill:"#4a00e0",d:"M18.125 11.25h-5v-2.5h5v2.5zM11.875 7.5v5h7.5v-5h-7.5z"})),call_to_action:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M19.304 16.848l-2.352-2.352 1.192-1.192c0.154-0.154 0.224-0.373 0.187-0.588s-0.177-0.398-0.374-0.491l-9.486-4.494c-0.256-0.122-0.561-0.068-0.761 0.132s-0.253 0.505-0.132 0.761l4.494 9.485c0.093 0.197 0.277 0.336 0.492 0.373s0.434-0.033 0.588-0.187l1.192-1.192 2.353 2.352c0.131 0.131 0.303 0.196 0.474 0.196s0.343-0.065 0.474-0.196l1.659-1.659c0.262-0.262 0.262-0.686 0-0.948v0zM17.17 18.033l-2.353-2.352c-0.131-0.131-0.303-0.196-0.474-0.196s-0.343 0.065-0.474 0.196l-0.993 0.993-3.283-6.929 6.929 3.282-0.993 0.994c-0.262 0.262-0.262 0.686 0 0.948l2.352 2.352-0.711 0.711z"}),a("path",{fill:"#4a00e0",d:"M7.645 10.992h-5.804v-9.303h9.303v6.647c0 0.37 0.3 0.671 0.671 0.671s0.671-0.3 0.671-0.671v-7.317c0-0.37-0.3-0.671-0.671-0.671h-10.644c-0.37 0-0.671 0.3-0.671 0.671v10.644c0 0.371 0.3 0.671 0.671 0.671h6.474c0.37 0 0.671-0.3 0.671-0.671s-0.3-0.671-0.671-0.671v0z"})),post_timeline:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M7.048 8.364c-0.001 0.019-0.001 0.037 0 0.056 0.016 0.286 0.26 0.505 0.545 0.489h9.134c0.019 0.001 0.037 0.001 0.056 0 0.286-0.015 0.505-0.26 0.489-0.545v-5.453c0.001-0.019 0.001-0.037 0-0.056-0.016-0.286-0.26-0.505-0.545-0.489h-9.134c-0.019-0.001-0.037-0.001-0.056 0-0.286 0.015-0.505 0.26-0.489 0.545v5.453zM8.138 3.456h8.044v4.363h-8.044v-4.363z"}),a("path",{fill:"#4a00e0",d:"M19.999 17.089v-5.453c0.001-0.019 0.001-0.037 0-0.056-0.015-0.286-0.26-0.505-0.545-0.489h-11.861c-0.019-0.001-0.037-0.001-0.056 0-0.286 0.015-0.505 0.26-0.489 0.545v5.453c-0.001 0.019-0.001 0.037 0 0.056 0.016 0.286 0.26 0.505 0.545 0.489h11.861c0.019 0.001 0.037 0.001 0.056 0 0.286-0.016 0.505-0.26 0.489-0.546zM18.909 16.544h-10.77v-4.363h10.77v4.363z"}),a("path",{fill:"#4a00e0",d:"M4.754 4.795c-0.286-1.279-1.554-2.083-2.833-1.797-1.083 0.242-1.853 1.203-1.854 2.312-0.028 1.102 0.725 2.071 1.8 2.318v4.417c-1.28 0.279-2.091 1.543-1.812 2.823 0.198 0.906 0.906 1.614 1.812 1.812h1.091c1.080-0.245 1.841-1.211 1.827-2.318 0.014-1.107-0.747-2.073-1.827-2.318v-4.417c1.279-0.286 2.083-1.555 1.797-2.833zM3.722 14.362c0 0.708-0.573 1.282-1.281 1.282-0 0-0.001 0-0.002 0-0.697-0.015-1.254-0.584-1.254-1.281s0.557-1.267 1.254-1.282c0.708-0.001 1.282 0.573 1.282 1.281zM2.44 6.592c-0.697-0.015-1.254-0.584-1.254-1.281s0.557-1.267 1.254-1.281c0.712-0 1.294 0.569 1.309 1.281-0.015 0.712-0.597 1.282-1.309 1.281z"}),a("path",{fill:"#4a00e0",d:"M9.229 5.365h3.136c0.301 0 0.545-0.244 0.545-0.545s-0.244-0.545-0.545-0.545h-3.136c-0.301 0-0.545 0.244-0.545 0.545s0.244 0.545 0.545 0.545z"}),a("path",{fill:"#4a00e0",d:"M15.091 5.91h-5.862c-0.301 0-0.545 0.244-0.545 0.545s0.244 0.546 0.545 0.546h5.863c0.301 0 0.545-0.244 0.545-0.546s-0.245-0.545-0.546-0.545z"}),a("path",{fill:"#4a00e0",d:"M9.229 14.090h3.136c0.301 0 0.545-0.244 0.545-0.545s-0.244-0.545-0.545-0.545h-3.136c-0.301 0-0.545 0.244-0.545 0.545s0.244 0.545 0.545 0.545z"}),a("path",{fill:"#4a00e0",d:"M9.229 15.726h5.863c0.301 0 0.545-0.244 0.545-0.545s-0.244-0.545-0.545-0.545h-5.863c-0.301 0-0.545 0.244-0.545 0.545s0.244 0.545 0.545 0.545z"})),icon_list:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M1.44 15.48c-0.76 0-1.44 0.64-1.44 1.4s0.68 1.44 1.44 1.44 1.4-0.68 1.4-1.44c0-0.76-0.64-1.4-1.4-1.4v0z"}),a("path",{fill:"#4a00e0",d:"M1.44 8.6c-0.76 0-1.44 0.64-1.44 1.4s0.68 1.4 1.44 1.4 1.4-0.64 1.4-1.4c0-0.76-0.64-1.4-1.4-1.4v0z"}),a("path",{fill:"#4a00e0",d:"M6.56 4.4h12.12c0.72 0 1.32-0.56 1.32-1.28s-0.6-1.32-1.32-1.32h-12.12c-0.72 0-1.32 0.6-1.32 1.32s0.6 1.28 1.32 1.28v0z"}),a("path",{fill:"#4a00e0",d:"M1.44 1.68c-0.76 0-1.44 0.68-1.44 1.44s0.68 1.4 1.44 1.4 1.4-0.64 1.4-1.4-0.64-1.44-1.4-1.44v0z"}),a("path",{fill:"#4a00e0",d:"M18.68 8.68h-12.12c-0.72 0-1.32 0.6-1.32 1.32s0.6 1.32 1.32 1.32h12.12c0.72 0 1.32-0.6 1.32-1.32s-0.6-1.32-1.32-1.32v0z"}),a("path",{fill:"#4a00e0",d:"M18.68 15.56h-12.12c-0.72 0-1.32 0.6-1.32 1.32s0.6 1.32 1.32 1.32h12.12c0.72 0 1.32-0.6 1.32-1.32s-0.6-1.32-1.32-1.32v0z"})),team:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M20 14.124c0-1.17-0.35-2.3-1.013-3.268-0.477-0.696-1.091-1.274-1.803-1.703 0.838-0.794 1.362-1.915 1.362-3.158 0-2.399-1.952-4.351-4.351-4.351-1.423 0-2.755 0.704-3.565 1.859-0.206-0.030-0.416-0.046-0.63-0.046s-0.424 0.016-0.63 0.046c-0.81-1.155-2.142-1.859-3.565-1.859-2.399 0-4.351 1.952-4.351 4.351 0 1.242 0.524 2.364 1.362 3.158-0.712 0.429-1.326 1.008-1.803 1.703-0.663 0.968-1.014 2.098-1.014 3.268v2.42h4.195v1.813h11.611v-1.813h4.194v-2.42h-0zM14.195 2.717c1.807 0 3.277 1.47 3.277 3.278s-1.47 3.277-3.277 3.277c-0.032 0-0.065-0-0.097-0.001 0.002-0.007 0.005-0.014 0.007-0.021 0.056-0.159 0.102-0.322 0.14-0.488 0.003-0.012 0.006-0.024 0.008-0.035 0.010-0.045 0.018-0.090 0.027-0.136 0.004-0.021 0.008-0.043 0.012-0.064 0.007-0.041 0.013-0.081 0.018-0.122 0.004-0.029 0.008-0.057 0.011-0.085 0.004-0.036 0.009-0.072 0.012-0.109s0.006-0.074 0.008-0.111c0.002-0.029 0.004-0.059 0.006-0.088 0.003-0.063 0.004-0.127 0.005-0.19 0-0.004 0-0.009 0-0.014 0-0.002-0-0.005-0-0.007 0-0.065-0.002-0.129-0.005-0.193-0.001-0.019-0.002-0.037-0.003-0.056-0.003-0.054-0.007-0.109-0.012-0.163-0.001-0.012-0.002-0.024-0.004-0.037-0.162-1.568-1.153-2.911-2.582-3.531 0.616-0.692 1.507-1.103 2.45-1.103v0zM8.866 4.732c0.010-0.004 0.021-0.008 0.031-0.011 0.033-0.012 0.066-0.023 0.099-0.033 0.025-0.008 0.050-0.016 0.075-0.023 0.018-0.005 0.037-0.011 0.055-0.016 0.033-0.009 0.066-0.018 0.1-0.026 0.248-0.060 0.507-0.093 0.773-0.093s0.525 0.033 0.773 0.094c0.033 0.008 0.066 0.017 0.099 0.026 0.019 0.005 0.038 0.010 0.056 0.016 0.025 0.007 0.050 0.015 0.075 0.023 0.033 0.011 0.066 0.022 0.1 0.034 0.010 0.004 0.020 0.007 0.030 0.011 1.096 0.405 1.918 1.381 2.104 2.565 0.002 0.009 0.003 0.019 0.004 0.028 0.006 0.040 0.011 0.080 0.015 0.121 0.002 0.015 0.003 0.030 0.005 0.045 0.004 0.037 0.006 0.074 0.009 0.112 0.001 0.016 0.002 0.032 0.003 0.048 0.002 0.048 0.003 0.096 0.004 0.144 0 0.004 0 0.008 0 0.012 0 0.002-0 0.004-0 0.006 0 0.047-0.002 0.093-0.003 0.139-0.001 0.015-0.001 0.029-0.002 0.044-0.002 0.045-0.006 0.089-0.010 0.133-0.002 0.017-0.004 0.034-0.006 0.051-0.003 0.029-0.007 0.057-0.011 0.085-0.003 0.022-0.006 0.044-0.010 0.066-0.005 0.033-0.011 0.066-0.018 0.1-0.006 0.029-0.012 0.059-0.019 0.088-0.004 0.018-0.008 0.035-0.012 0.053-0.010 0.044-0.022 0.087-0.034 0.13-0.005 0.017-0.010 0.034-0.014 0.051-0.008 0.025-0.016 0.049-0.024 0.074-0.006 0.020-0.013 0.039-0.020 0.058-0.007 0.022-0.015 0.044-0.023 0.066-0.014 0.037-0.029 0.074-0.044 0.111-0.007 0.016-0.014 0.032-0.021 0.049-0.013 0.031-0.027 0.061-0.041 0.091l-0.005 0.011c-0.005 0.011-0.010 0.021-0.015 0.032-0.016 0.032-0.032 0.064-0.049 0.096-0.007 0.012-0.013 0.025-0.020 0.037-0 0.001-0.001 0.002-0.001 0.002-0.019 0.034-0.038 0.067-0.058 0.1-0.008 0.013-0.016 0.026-0.024 0.039-0.021 0.035-0.044 0.070-0.066 0.103-0.014 0.021-0.029 0.042-0.043 0.063-0.013 0.018-0.025 0.035-0.038 0.052-0.017 0.023-0.033 0.045-0.050 0.067-0.012 0.015-0.023 0.030-0.035 0.045-0.018 0.022-0.036 0.045-0.055 0.067-0.012 0.014-0.023 0.027-0.035 0.041-0.020 0.022-0.039 0.044-0.059 0.066-0.012 0.013-0.024 0.025-0.036 0.038-0.032 0.034-0.065 0.067-0.099 0.1-0.020 0.019-0.040 0.039-0.061 0.058-0.014 0.013-0.029 0.026-0.043 0.038-0.024 0.021-0.047 0.041-0.071 0.062-0.012 0.011-0.025 0.021-0.037 0.031-0.029 0.024-0.059 0.047-0.089 0.070-0.008 0.006-0.016 0.012-0.025 0.019-0.545 0.405-1.221 0.646-1.951 0.646s-1.406-0.24-1.951-0.646c-0.008-0.006-0.016-0.012-0.024-0.018-0.030-0.023-0.060-0.046-0.089-0.070-0.012-0.010-0.025-0.020-0.037-0.030-0.024-0.021-0.048-0.041-0.072-0.062-0.014-0.013-0.029-0.025-0.043-0.038-0.021-0.019-0.041-0.038-0.061-0.058-0.034-0.033-0.067-0.066-0.1-0.101-0.012-0.012-0.024-0.025-0.036-0.037-0.020-0.022-0.039-0.044-0.058-0.066-0.012-0.013-0.024-0.027-0.035-0.040-0.019-0.022-0.037-0.045-0.055-0.067-0.012-0.015-0.024-0.030-0.035-0.045-0.017-0.022-0.034-0.044-0.050-0.067-0.013-0.017-0.025-0.035-0.037-0.053-0.015-0.021-0.029-0.041-0.044-0.062-0.023-0.034-0.045-0.069-0.066-0.104-0.008-0.013-0.016-0.026-0.023-0.039-0.020-0.034-0.040-0.067-0.058-0.102-0.007-0.013-0.013-0.025-0.020-0.038-0.017-0.032-0.034-0.064-0.050-0.096-0.006-0.012-0.011-0.023-0.017-0.035-0.001-0.002-0.002-0.003-0.003-0.005-0.015-0.031-0.029-0.063-0.043-0.095-0.007-0.015-0.013-0.030-0.020-0.046-0.015-0.038-0.030-0.075-0.045-0.113-0.008-0.021-0.015-0.041-0.022-0.062s-0.015-0.043-0.022-0.064c-0.008-0.023-0.015-0.046-0.022-0.069-0.010-0.035-0.020-0.070-0.030-0.105-0.007-0.025-0.013-0.049-0.019-0.074-0.005-0.020-0.009-0.039-0.014-0.059-0.005-0.024-0.011-0.048-0.016-0.073-0.007-0.038-0.014-0.076-0.020-0.114-0.003-0.020-0.006-0.041-0.009-0.062-0.004-0.030-0.008-0.061-0.012-0.092-0.002-0.015-0.004-0.030-0.005-0.046-0.004-0.046-0.008-0.091-0.010-0.137-0.001-0.013-0.001-0.026-0.002-0.039-0.002-0.049-0.004-0.098-0.004-0.148 0-0.053 0.002-0.105 0.004-0.158 0-0.014 0.002-0.028 0.003-0.042 0.002-0.039 0.005-0.079 0.009-0.118 0.001-0.014 0.003-0.027 0.004-0.041 0.005-0.042 0.010-0.084 0.016-0.126 0.001-0.008 0.002-0.016 0.004-0.024 0.186-1.185 1.008-2.161 2.105-2.566v0zM2.528 5.995c0-1.807 1.47-3.278 3.277-3.278 0.943 0 1.834 0.411 2.45 1.103-1.43 0.621-2.421 1.964-2.582 3.533-0.001 0.011-0.002 0.021-0.003 0.032-0.005 0.056-0.009 0.112-0.013 0.168-0.001 0.017-0.002 0.034-0.003 0.052-0.003 0.067-0.005 0.135-0.005 0.202s0.002 0.137 0.005 0.205c0.001 0.027 0.003 0.055 0.005 0.082 0.003 0.039 0.005 0.079 0.009 0.118 0.003 0.035 0.007 0.070 0.011 0.104 0.004 0.030 0.007 0.060 0.012 0.090 0.005 0.040 0.011 0.079 0.018 0.118 0.004 0.023 0.008 0.046 0.013 0.070 0.008 0.044 0.016 0.088 0.025 0.131 0.003 0.014 0.007 0.028 0.010 0.043 0.036 0.161 0.082 0.319 0.136 0.473 0.003 0.010 0.007 0.020 0.010 0.030-0.032 0.001-0.065 0.001-0.097 0.001-1.807-0-3.277-1.47-3.277-3.277v0zM5.095 12.841c-0.012 0.019-0.023 0.038-0.035 0.056-0.025 0.040-0.049 0.079-0.072 0.12-0.013 0.022-0.026 0.045-0.039 0.067-0.021 0.037-0.042 0.075-0.062 0.112-0.013 0.024-0.025 0.047-0.038 0.071-0.019 0.037-0.039 0.075-0.057 0.113-0.012 0.024-0.024 0.048-0.035 0.071-0.019 0.040-0.037 0.080-0.055 0.12-0.010 0.022-0.020 0.044-0.030 0.065-0.021 0.048-0.041 0.097-0.060 0.145-0.006 0.014-0.012 0.028-0.018 0.043-0.025 0.063-0.048 0.127-0.071 0.191-0.005 0.015-0.010 0.029-0.015 0.044-0.017 0.049-0.034 0.098-0.049 0.148-0.007 0.023-0.014 0.046-0.021 0.069-0.013 0.042-0.025 0.084-0.037 0.127-0.007 0.025-0.014 0.051-0.020 0.076-0.010 0.041-0.021 0.082-0.030 0.122-0.006 0.026-0.012 0.052-0.018 0.078-0.009 0.041-0.018 0.083-0.026 0.125-0.005 0.025-0.010 0.050-0.015 0.075-0.008 0.046-0.016 0.091-0.023 0.137-0.003 0.021-0.007 0.043-0.011 0.064-0.010 0.067-0.019 0.134-0.027 0.202 0 0.001-0 0.002-0 0.002-0.007 0.062-0.013 0.123-0.018 0.185h-3.139v-1.346c0-1.839 1.057-3.491 2.714-4.276 0.604 0.317 1.29 0.498 2.017 0.498 0.211 0 0.422-0.015 0.631-0.046 0.033 0.047 0.066 0.093 0.1 0.138 0.012 0.015 0.024 0.030 0.036 0.045 0.034 0.043 0.068 0.086 0.104 0.128 0.014 0.017 0.029 0.034 0.044 0.051 0.033 0.038 0.067 0.076 0.102 0.113 0.018 0.020 0.036 0.039 0.055 0.058 0.031 0.032 0.064 0.065 0.096 0.096 0.012 0.012 0.024 0.024 0.036 0.036-0.047 0.028-0.093 0.057-0.139 0.087-0.008 0.005-0.015 0.010-0.022 0.015-0.046 0.030-0.091 0.060-0.136 0.091-0.016 0.011-0.031 0.021-0.046 0.032-0.040 0.028-0.079 0.057-0.119 0.086-0.012 0.009-0.025 0.018-0.037 0.028-0.050 0.038-0.099 0.076-0.148 0.116-0.011 0.008-0.021 0.017-0.032 0.026-0.039 0.032-0.077 0.064-0.115 0.097-0.015 0.013-0.029 0.025-0.044 0.038-0.038 0.034-0.075 0.067-0.113 0.102-0.010 0.009-0.020 0.018-0.029 0.027-0.046 0.043-0.091 0.087-0.135 0.131-0.012 0.012-0.023 0.023-0.034 0.035-0.034 0.035-0.067 0.070-0.1 0.105-0.013 0.014-0.026 0.028-0.039 0.043-0.037 0.041-0.074 0.081-0.11 0.123-0.006 0.006-0.012 0.013-0.017 0.019-0.041 0.048-0.081 0.097-0.121 0.146-0.011 0.014-0.022 0.028-0.033 0.042-0.029 0.038-0.059 0.076-0.088 0.115-0.011 0.015-0.023 0.030-0.034 0.045-0.038 0.052-0.075 0.104-0.111 0.157-0.039 0.057-0.076 0.114-0.113 0.172v0zM5.268 17.283v-1.346c0-0.060 0.001-0.119 0.003-0.178 0.001-0.020 0.002-0.039 0.003-0.058 0.002-0.039 0.004-0.079 0.007-0.118 0.002-0.024 0.004-0.048 0.007-0.071 0.003-0.035 0.006-0.070 0.010-0.104 0.003-0.025 0.007-0.050 0.010-0.076 0.004-0.033 0.008-0.065 0.013-0.098 0.004-0.026 0.009-0.052 0.013-0.078 0.005-0.031 0.010-0.063 0.016-0.094 0.005-0.027 0.011-0.053 0.016-0.079 0.006-0.030 0.012-0.061 0.019-0.091 0.006-0.027 0.013-0.053 0.019-0.079 0.007-0.030 0.014-0.059 0.022-0.089 0.007-0.027 0.015-0.053 0.023-0.080 0.008-0.029 0.016-0.058 0.025-0.086 0.008-0.027 0.017-0.053 0.026-0.079 0.009-0.028 0.018-0.056 0.028-0.084 0.009-0.026 0.019-0.053 0.029-0.079 0.010-0.028 0.020-0.055 0.030-0.082s0.021-0.052 0.031-0.078c0.011-0.027 0.022-0.054 0.033-0.081s0.023-0.051 0.034-0.077c0.012-0.026 0.024-0.053 0.036-0.079s0.025-0.051 0.037-0.076c0.013-0.026 0.025-0.051 0.039-0.077s0.026-0.050 0.040-0.075c0.014-0.025 0.027-0.050 0.041-0.075s0.028-0.049 0.043-0.073c0.014-0.025 0.029-0.049 0.044-0.074s0.030-0.048 0.046-0.072c0.015-0.024 0.031-0.048 0.046-0.072s0.032-0.047 0.048-0.071c0.016-0.024 0.032-0.047 0.049-0.070s0.034-0.046 0.051-0.069c0.017-0.023 0.034-0.046 0.051-0.068s0.036-0.045 0.054-0.067c0.018-0.022 0.036-0.044 0.054-0.066s0.037-0.044 0.056-0.065 0.038-0.043 0.056-0.064 0.039-0.042 0.058-0.063c0.019-0.021 0.039-0.042 0.058-0.062s0.040-0.041 0.061-0.061c0.020-0.020 0.041-0.040 0.061-0.060s0.041-0.039 0.063-0.059c0.021-0.020 0.042-0.039 0.063-0.058s0.043-0.038 0.065-0.057c0.022-0.019 0.044-0.038 0.066-0.056s0.045-0.036 0.067-0.054c0.023-0.018 0.045-0.036 0.068-0.054s0.046-0.035 0.069-0.052c0.023-0.017 0.047-0.035 0.071-0.052s0.047-0.033 0.071-0.050c0.024-0.016 0.049-0.033 0.073-0.049s0.048-0.031 0.072-0.047c0.025-0.016 0.050-0.032 0.075-0.047s0.049-0.029 0.074-0.044c0.026-0.015 0.052-0.030 0.078-0.045 0.025-0.014 0.050-0.028 0.075-0.041 0.027-0.014 0.054-0.028 0.080-0.042 0.025-0.013 0.051-0.026 0.077-0.039 0.020-0.010 0.041-0.020 0.061-0.029 0.603 0.317 1.289 0.498 2.017 0.498s1.414-0.18 2.017-0.498c0.021 0.010 0.041 0.019 0.061 0.029 0.026 0.013 0.052 0.026 0.078 0.039s0.053 0.028 0.079 0.042c0.026 0.014 0.051 0.028 0.077 0.042s0.052 0.029 0.077 0.044c0.025 0.015 0.050 0.030 0.075 0.045s0.050 0.031 0.075 0.047c0.025 0.015 0.049 0.031 0.073 0.047s0.048 0.032 0.072 0.049c0.024 0.017 0.048 0.033 0.071 0.050s0.047 0.034 0.070 0.051c0.023 0.017 0.047 0.035 0.069 0.053s0.046 0.035 0.068 0.053c0.022 0.018 0.045 0.036 0.067 0.055s0.044 0.037 0.066 0.055c0.022 0.019 0.043 0.038 0.065 0.057s0.042 0.039 0.063 0.058c0.021 0.020 0.042 0.039 0.063 0.059s0.041 0.040 0.061 0.060c0.020 0.021 0.041 0.041 0.061 0.062s0.039 0.041 0.058 0.062c0.020 0.021 0.039 0.043 0.058 0.064s0.038 0.043 0.056 0.064c0.019 0.022 0.038 0.043 0.056 0.066s0.036 0.043 0.054 0.065c0.018 0.022 0.036 0.045 0.054 0.068s0.034 0.045 0.051 0.067c0.017 0.023 0.034 0.046 0.051 0.070s0.032 0.046 0.049 0.070c0.016 0.023 0.033 0.047 0.048 0.071s0.031 0.047 0.046 0.071c0.015 0.024 0.031 0.048 0.046 0.072s0.029 0.049 0.044 0.073c0.014 0.024 0.029 0.049 0.043 0.074s0.027 0.050 0.041 0.075c0.013 0.025 0.027 0.050 0.040 0.075s0.026 0.051 0.038 0.077c0.013 0.025 0.025 0.050 0.037 0.076s0.024 0.052 0.036 0.079c0.012 0.026 0.023 0.051 0.034 0.077s0.022 0.054 0.033 0.080c0.011 0.026 0.021 0.052 0.032 0.079s0.020 0.055 0.030 0.082c0.010 0.026 0.020 0.052 0.029 0.079 0.010 0.028 0.019 0.056 0.028 0.084 0.009 0.027 0.017 0.053 0.026 0.079 0.009 0.029 0.017 0.058 0.025 0.087 0.008 0.026 0.015 0.053 0.022 0.079 0.008 0.029 0.015 0.059 0.022 0.089 0.006 0.027 0.013 0.053 0.019 0.079 0.007 0.030 0.013 0.061 0.019 0.091 0.005 0.026 0.011 0.053 0.016 0.079 0.006 0.031 0.011 0.062 0.016 0.094 0.004 0.026 0.009 0.052 0.013 0.079 0.005 0.032 0.009 0.065 0.013 0.097 0.003 0.025 0.007 0.051 0.010 0.076 0.004 0.034 0.007 0.069 0.010 0.104 0.002 0.024 0.005 0.047 0.007 0.071 0.003 0.040 0.005 0.079 0.006 0.119 0.001 0.019 0.003 0.039 0.003 0.058 0.002 0.059 0.003 0.119 0.003 0.178v1.346h-9.463zM15.787 15.47c-0.010-0.13-0.026-0.261-0.045-0.39-0.003-0.021-0.007-0.041-0.010-0.061-0.008-0.047-0.015-0.094-0.024-0.14-0.005-0.024-0.010-0.049-0.014-0.074-0.008-0.042-0.017-0.085-0.027-0.127-0.006-0.025-0.012-0.051-0.018-0.076-0.010-0.041-0.020-0.083-0.031-0.124-0.007-0.025-0.013-0.050-0.020-0.075-0.012-0.043-0.024-0.086-0.037-0.128-0.007-0.023-0.013-0.045-0.020-0.067-0.016-0.050-0.033-0.101-0.050-0.151-0.005-0.014-0.009-0.028-0.014-0.042-0.023-0.064-0.047-0.128-0.072-0.191-0.005-0.013-0.011-0.027-0.017-0.041-0.020-0.049-0.040-0.098-0.061-0.147-0.009-0.021-0.019-0.043-0.029-0.064-0.018-0.041-0.037-0.081-0.056-0.121-0.011-0.024-0.023-0.047-0.034-0.070-0.019-0.038-0.038-0.076-0.058-0.114-0.012-0.023-0.025-0.047-0.038-0.071-0.021-0.038-0.041-0.075-0.063-0.113-0.013-0.022-0.025-0.045-0.038-0.067-0.023-0.040-0.048-0.080-0.073-0.12-0.012-0.019-0.022-0.038-0.034-0.056-0.037-0.058-0.074-0.115-0.113-0.172-0.037-0.053-0.074-0.105-0.111-0.157-0.011-0.015-0.022-0.029-0.033-0.045-0.029-0.039-0.058-0.077-0.088-0.115-0.011-0.014-0.021-0.028-0.032-0.041-0.040-0.049-0.080-0.098-0.121-0.146-0.005-0.006-0.011-0.012-0.016-0.018-0.036-0.042-0.073-0.084-0.111-0.125-0.013-0.014-0.026-0.028-0.039-0.042-0.033-0.036-0.067-0.071-0.101-0.105-0.011-0.012-0.022-0.023-0.034-0.034-0.044-0.044-0.089-0.088-0.135-0.131-0.010-0.009-0.019-0.018-0.029-0.027-0.037-0.035-0.075-0.069-0.113-0.102-0.015-0.013-0.029-0.025-0.044-0.038-0.038-0.033-0.076-0.065-0.115-0.097-0.011-0.009-0.021-0.018-0.032-0.026-0.048-0.039-0.098-0.078-0.148-0.116-0.012-0.009-0.025-0.018-0.037-0.028-0.039-0.029-0.079-0.057-0.119-0.085-0.015-0.011-0.031-0.022-0.047-0.033-0.044-0.031-0.089-0.061-0.134-0.090-0.008-0.005-0.016-0.011-0.024-0.016-0.046-0.029-0.092-0.058-0.138-0.086 0.012-0.012 0.023-0.024 0.035-0.035 0.033-0.032 0.066-0.065 0.098-0.098 0.018-0.019 0.036-0.037 0.054-0.056 0.035-0.038 0.070-0.076 0.103-0.115 0.014-0.017 0.029-0.033 0.043-0.050 0.036-0.043 0.071-0.086 0.105-0.13 0.011-0.014 0.023-0.029 0.034-0.043 0.034-0.046 0.068-0.092 0.101-0.138 0.21 0.031 0.421 0.046 0.631 0.046 0.728 0 1.414-0.18 2.017-0.498 1.657 0.785 2.714 2.436 2.714 4.276v1.346h-3.139z"})),social_share:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M13.751 4.999l1.25 1.25-8.753 8.753-1.25-1.25 8.753-8.753z"}),a("path",{fill:"#4a00e0",d:"M13.749 12.502l-1.874-1.874 1.255-1.256 0.619 0.628 3.749-3.749-3.749-3.749-3.749 3.749 0.628 0.619-1.256 1.255-1.874-1.874 6.251-6.251 6.251 6.251-6.251 6.251z"}),a("path",{fill:"#4a00e0",d:"M6.251 20l-6.251-6.251 6.251-6.251 1.874 1.874-1.255 1.256-0.619-0.628-3.749 3.749 3.749 3.749 3.749-3.749-0.628-0.619 1.256-1.256 1.874 1.874-6.251 6.251z"})),restaurant_menu:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M0 2.136v15.729h20v-15.729h-20zM18.828 7.038h-8.242v-3.73h8.242v3.73zM1.172 3.307h8.242v13.385h-8.242v-13.385zM10.586 16.693v-8.483h8.242v8.483h-8.242z"}),a("path",{fill:"#4a00e0",d:"M2.742 4.661v4.492c0 1.188 0.826 2.185 1.934 2.45v2.563h-0.898v1.172h2.969v-1.172h-0.898v-2.563c1.108-0.265 1.934-1.263 1.934-2.45v-4.492h-5.039zM6.61 9.154c0 0.743-0.605 1.348-1.348 1.348s-1.348-0.604-1.348-1.348v-3.32h2.695v3.32z"}),a("path",{fill:"#4a00e0",d:"M13.050 4.661h3.275v1.172h-3.275v-1.172z"}),a("path",{fill:"#4a00e0",d:"M12.109 9.414h5.156v1.172h-5.156v-1.172z"}),a("path",{fill:"#4a00e0",d:"M12.109 11.79h5.156v1.172h-5.156v-1.172z"}),a("path",{fill:"#4a00e0",d:"M12.109 14.167h5.156v1.172h-5.156v-1.172z"})),blockquote:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M6.347 8.539h-0.62c0.471-0.817 1.061-1.648 1.557-2.233 0.783-0.921 0.674-2.305-0.249-3.089-0.412-0.351-0.917-0.524-1.42-0.524-0.619 0-1.233 0.26-1.667 0.769-0.577 0.674-3.448 3.615-3.448 7.269v3.654c0 1.614 1.309 2.923 2.923 2.923h2.923c1.613 0 2.922-1.309 2.922-2.923v-2.924c0.001-1.613-1.308-2.922-2.921-2.922v0zM7.808 14.385c0 0.806-0.655 1.462-1.461 1.462h-2.923c-0.806 0-1.462-0.656-1.462-1.462v-3.655c0-2.822 2.192-5.296 2.912-6.108l0.187-0.211c0.19-0.223 0.43-0.257 0.555-0.257 0.122 0 0.303 0.032 0.475 0.177 0.305 0.26 0.343 0.722 0.080 1.029-0.579 0.683-1.219 1.599-1.708 2.449-0.262 0.454-0.262 1.009 0.001 1.462 0.26 0.452 0.742 0.73 1.264 0.73h0.62c0.806 0 1.461 0.656 1.461 1.461v2.923zM16.576 8.539h-0.618c0.471-0.817 1.060-1.648 1.557-2.233 0.783-0.921 0.674-2.305-0.248-3.089-0.412-0.351-0.919-0.524-1.422-0.524-0.618 0-1.232 0.26-1.666 0.769-0.576 0.674-3.448 3.615-3.448 7.269v3.654c0 1.614 1.31 2.923 2.924 2.923h2.923c1.614 0 2.923-1.309 2.923-2.923v-2.924c-0.001-1.613-1.31-2.922-2.925-2.922v0zM18.038 14.385c0 0.806-0.655 1.462-1.462 1.462h-2.922c-0.807 0-1.463-0.656-1.463-1.462v-3.655c0-2.824 2.193-5.297 2.913-6.109l0.186-0.211c0.191-0.223 0.429-0.256 0.555-0.256 0.122 0 0.303 0.032 0.475 0.177 0.307 0.26 0.343 0.723 0.082 1.029-0.581 0.683-1.221 1.599-1.71 2.449-0.261 0.453-0.261 1.009 0 1.462s0.743 0.73 1.267 0.73h0.618c0.807 0 1.462 0.656 1.462 1.461v2.923z"})),quote_1:a("svg",{width:20,height:20},a("path",{d:"M15.581 10.226h-15.162c-0.233 0-0.419 0.37-0.419 0.826 0 0.458 0.186 0.828 0.419 0.828h15.161c0.233 0 0.419-0.37 0.419-0.828 0.001-0.455-0.186-0.826-0.418-0.826v0z"}),a("path",{d:"M15.581 14.285h-15.162c-0.233 0-0.419 0.373-0.419 0.827 0 0.458 0.186 0.826 0.419 0.826h15.161c0.233 0 0.419-0.369 0.419-0.826 0.001-0.454-0.186-0.827-0.418-0.827v0z"}),a("path",{d:"M15.581 18.346h-15.162c-0.233 0-0.419 0.37-0.419 0.826 0 0.459 0.186 0.828 0.419 0.828h15.161c0.233 0 0.419-0.369 0.419-0.828 0.001-0.455-0.186-0.826-0.418-0.826v0z"}),a("path",{d:"M9.126 0.595c-0.46 0.465-0.974 1.35-0.835 3.042 0.081 1.319 0.666 3.29 3.048 5.216 0.112 0.090 0.241 0.136 0.38 0.136 0.183 0 0.362-0.086 0.487-0.251 0.214-0.283 0.164-0.683-0.113-0.902-1.935-1.566-2.458-3.105-2.551-4.154 0.274 0.156 0.582 0.258 0.913 0.258 1.045 0 1.89-0.886 1.89-1.972 0-1.088-0.846-1.966-1.89-1.966-0.233 0-0.451 0.062-0.657 0.143l0.004-0.011-0.218 0.101-0.018 0.011-0.007 0.006-0.299 0.214-0.134 0.131z"}),a("path",{d:"M4.517 0.595c-0.465 0.465-0.974 1.35-0.841 3.042 0.085 1.319 0.671 3.29 3.049 5.216 0.116 0.090 0.245 0.136 0.383 0.136 0.178 0 0.366-0.086 0.487-0.251 0.214-0.283 0.165-0.683-0.108-0.902-1.939-1.566-2.467-3.105-2.56-4.154 0.278 0.156 0.584 0.258 0.92 0.258 1.046 0 1.885-0.886 1.885-1.972 0-1.088-0.845-1.966-1.885-1.966-0.236 0-0.447 0.062-0.657 0.143l0.010-0.011-0.218 0.101-0.022 0.011-0.009 0.006-0.305 0.214-0.129 0.13z"})),quote_2:a("svg",{width:20,height:20},a("path",{d:"M4.599 6.686c-0.39 0.397-0.822 1.149-0.705 2.586 0.068 1.123 0.561 2.799 2.561 4.434 0.096 0.080 0.205 0.115 0.321 0.115 0.153 0 0.306-0.071 0.409-0.214 0.181-0.239 0.135-0.58-0.095-0.766-1.626-1.332-2.066-2.639-2.144-3.531 0.231 0.132 0.488 0.218 0.769 0.218 0.874 0 1.587-0.753 1.587-1.677s-0.711-1.672-1.587-1.672c-0.196 0-0.38 0.054-0.552 0.121l0.003-0.010-0.184 0.085-0.016 0.010-0.006 0.006-0.252 0.181-0.109 0.114z"}),a("path",{d:"M0.725 6.686c-0.389 0.397-0.821 1.149-0.706 2.586 0.068 1.123 0.562 2.799 2.56 4.434 0.094 0.077 0.204 0.114 0.322 0.114 0.151 0 0.31-0.073 0.409-0.213 0.177-0.239 0.136-0.582-0.090-0.767-1.63-1.332-2.072-2.639-2.149-3.531 0.23 0.132 0.486 0.218 0.772 0.218 0.879 0 1.583-0.753 1.583-1.677s-0.71-1.672-1.583-1.672c-0.199 0-0.378 0.054-0.554 0.121l0.008-0.010-0.184 0.085-0.018 0.010-0.009 0.006-0.253 0.182-0.108 0.114z"}),a("path",{d:"M19.25 6.929h-10.041c-0.414 0-0.75-0.336-0.75-0.75s0.336-0.75 0.75-0.75h10.041c0.414 0 0.75 0.336 0.75 0.75s-0.336 0.75-0.75 0.75z"}),a("path",{d:"M19.25 10.75h-10.041c-0.414 0-0.75-0.336-0.75-0.75s0.336-0.75 0.75-0.75h10.041c0.414 0 0.75 0.336 0.75 0.75s-0.336 0.75-0.75 0.75z"}),a("path",{d:"M19.25 14.571h-10.041c-0.414 0-0.75-0.336-0.75-0.75s0.336-0.75 0.75-0.75h10.041c0.414 0 0.75 0.336 0.75 0.75s-0.336 0.75-0.75 0.75z"})),quote_inline_icon:a("svg",{width:20,height:20,viewBox:"0 0 32 32"},a("path",{d:"M7.031 14c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7l-0.031-1c0-7.732 6.268-14 14-14v4c-2.671 0-5.182 1.040-7.071 2.929-0.364 0.364-0.695 0.751-0.995 1.157 0.357-0.056 0.724-0.086 1.097-0.086zM25.031 14c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7l-0.031-1c0-7.732 6.268-14 14-14v4c-2.671 0-5.182 1.040-7.071 2.929-0.364 0.364-0.695 0.751-0.995 1.157 0.358-0.056 0.724-0.086 1.097-0.086z"})),quote_tweet_icon:a("svg",{width:20,height:20,viewBox:"0 0 512 512"},a("path",{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})),at_the_rate:a("svg",{width:30,height:30},a("path",{d:"M5.605 17.2c0-2.131 0.499-4.074 1.499-5.829 1-1.754 2.395-3.136 4.19-4.15 1.794-1.013 3.81-1.52 6.046-1.52 2.712 0 4.901 0.773 6.562 2.323 1.662 1.549 2.493 3.589 2.493 6.118 0 2.051-0.542 3.786-1.626 5.202-1.088 1.418-2.304 2.125-3.656 2.125-0.781 0-1.355-0.232-1.717-0.696-0.365-0.462-0.533-1.037-0.506-1.726-1.006 1.614-2.378 2.422-4.11 2.422-1.39 0-2.507-0.539-3.347-1.619-0.842-1.077-1.142-2.442-0.904-4.088 0.237-1.65 0.946-2.982 2.125-4.002 1.179-1.021 2.509-1.53 3.992-1.53s2.638 0.518 3.467 1.558c0.829 1.040 1.122 2.322 0.883 3.843l-0.494 3.2c-0.094 0.739 0.165 1.11 0.77 1.11 0.77 0 1.502-0.56 2.205-1.678 0.701-1.12 1.054-2.493 1.054-4.122 0-2.106-0.656-3.787-1.966-5.046-1.312-1.258-3.133-1.886-5.462-1.886-2.794 0-5.098 0.96-6.91 2.88-1.814 1.92-2.722 4.29-2.722 7.109 0 2.382 0.738 4.227 2.214 5.533 1.477 1.302 3.459 1.989 5.947 2.056l-0.376 1.509c-2.862-0.069-5.184-0.899-6.971-2.494-1.787-1.594-2.68-3.794-2.68-6.602zM19.15 15.85c0.17-1.15-0.014-2.118-0.558-2.899-0.542-0.781-1.28-1.173-2.214-1.173-0.933 0-1.79 0.392-2.571 1.173s-1.259 1.749-1.43 2.899c-0.171 1.152 0.013 2.122 0.557 2.91 0.542 0.787 1.282 1.181 2.214 1.181s1.79-0.394 2.573-1.181c0.781-0.789 1.256-1.758 1.43-2.91z"})),columns:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M19.091 0.301h-18.182c-0.503 0-0.909 0.408-0.909 0.908v17.576c0 0.504 0.406 0.913 0.909 0.913h18.182c0.504 0 0.909-0.409 0.909-0.913v-17.576c0-0.5-0.405-0.908-0.909-0.908v0zM9.091 17.877h-7.275v-14.343h7.275v14.343zM18.183 17.877h-7.273v-14.343h7.273v14.343z"})),column:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M19.091 0.301h-18.182c-0.503 0-0.909 0.408-0.909 0.908v17.576c0 0.504 0.406 0.913 0.909 0.913h18.182c0.504 0 0.909-0.409 0.909-0.913v-17.576c0-0.5-0.405-0.908-0.909-0.908zM18.304 17.21h-16.608v-14.343h16.608v14.343z"}),a("path",{fill:"#4a00e0",d:"M15.667 8.5h-11.333c-0.553 0-1-0.447-1-1s0.447-1 1-1h11.333c0.552 0 1 0.447 1 1s-0.448 1-1 1z"}),a("path",{fill:"#4a00e0",d:"M15.667 13.5h-11.333c-0.553 0-1-0.448-1-1s0.447-1 1-1h11.333c0.552 0 1 0.448 1 1s-0.448 1-1 1z"})),top_align:a("svg",{width:20,height:20},a("path",{d:"M1.5 0.438v2.125h17v-2.125h-17zM5.75 8.938h3.188v10.625h2.125v-10.625h3.187l-4.25-4.25-4.25 4.25z"})),middle_align:a("svg",{width:20,height:20},a("path",{d:"M18.5 11.063v-2.125h-17v2.125h17z"}),a("path",{d:"M12.707 3.519l-2.707-2.707-2.707 2.707h2.030v4.368h1.354v-4.368h2.030z"}),a("path",{d:"M7.293 16.48l2.707 2.707 2.707-2.707h-2.030v-4.368h-1.354v4.368h-2.030z"})),bottom_align:a("svg",{width:20,height:20},a("path",{d:"M18.5 20v-2.125h-17v2.125h17zM14.25 11.5h-3.187v-10.625h-2.125v10.625h-3.188l4.25 4.25 4.25-4.25z"})),carousel_left:a("svg",{width:20,height:20,viewBox:"0 0 256 512"},a("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"})),carousel_right:a("svg",{width:20,height:20,viewBox:"0 0 256 512"},a("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"})),top_margin:a("svg",{width:20,height:20},a("path",{fill:"#999",d:"M17 1c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17 0h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),a("path",{fill:"#575E67",d:"M17 0.984h-14c-1.103 0-2 0.897-2 2v0.797h18v-0.797c0-1.103-0.897-2-2-2z"})),bottom_margin:a("svg",{width:20,height:20},a("path",{fill:"#999",d:"M17 1c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17 0h-14c-1.657 0-3 1.343-3 3v14c0 1.656 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),a("path",{fill:"#575E67",d:"M3 19.016h14c1.103 0 2-0.896 2-2v-0.797h-18v0.797c0 1.103 0.897 2 2 2z"})),left_margin:a("svg",{width:20,height:20},a("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.656 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),a("path",{fill:"#575E67",d:"M0.984 2.999v14c0 1.103 0.896 2 2 2h0.797v-18h-0.797c-1.104 0-2 0.897-2 2z"})),right_margin:a("svg",{width:20,height:20},a("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.656 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),a("path",{fill:"#575E67",d:"M19.015 16.999v-14c0-1.103-0.896-2-2-2h-0.797v18h0.797c1.104 0 2-0.896 2-2z"})),vertical_spacing:a("svg",{width:20,height:20},a("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.656-1.343-3-3-3v0z"}),a("path",{fill:"#575E67",d:"M17 0.983h-14c-1.103 0-2 0.896-2 2v0.797h18v-0.797c0-1.103-0.896-2-2-2z"}),a("path",{fill:"#575E67",d:"M3 19.031h14c1.103 0 2-0.896 2-2v-0.797h-18v0.797c0 1.104 0.896 2 2 2z"})),horizontal_spacing:a("svg",{width:20,height:20},a("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.656 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),a("path",{fill:"#575E67",d:"M19.016 16.999v-14c0-1.103-0.896-2-2-2h-0.797v18h0.797c1.103 0 2-0.896 2-2z"}),a("path",{fill:"#575E67",d:"M0.968 2.999v14c0 1.103 0.896 2 2 2h0.797v-18h-0.797c-1.104 0-2 0.897-2 2z"})),logo:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M10 0.858c5.039 0 9.139 4.102 9.139 9.142s-4.1 9.142-9.139 9.142c-5.040 0-9.139-4.101-9.139-9.142s4.1-9.142 9.139-9.142zM10 0c-5.524 0-10 4.478-10 10s4.476 10 10 10c5.523 0 10-4.478 10-10s-4.477-10-10-10v0z"}),a("path",{fill:"#4a00e0",d:"M6.405 12.326c0.252 0 0.465-0.053 0.639-0.157s0.314-0.244 0.422-0.418 0.185-0.373 0.229-0.598c0.045-0.226 0.067-0.454 0.067-0.688v-3.264h1.475v3.264c0 0.444-0.056 0.857-0.167 1.241s-0.282 0.719-0.513 1.007c-0.23 0.288-0.524 0.515-0.881 0.679s-0.78 0.248-1.271 0.248c-0.509 0-0.944-0.087-1.304-0.261s-0.652-0.406-0.876-0.697c-0.225-0.291-0.39-0.628-0.495-1.012s-0.158-0.785-0.158-1.205v-3.264h1.475v3.264c0 0.246 0.024 0.479 0.072 0.702s0.126 0.419 0.234 0.593 0.247 0.312 0.418 0.413c0.171 0.102 0.382 0.153 0.634 0.153z"}),a("path",{fill:"#4a00e0",d:"M14.768 12.956c-0.486 0.449-1.047 0.674-1.682 0.674-0.42 0-0.815-0.079-1.188-0.238-0.371-0.158-0.696-0.382-0.975-0.67-0.279-0.287-0.5-0.634-0.661-1.038s-0.243-0.85-0.243-1.336c0-0.437 0.082-0.851 0.243-1.24s0.385-0.729 0.67-1.017c0.284-0.287 0.622-0.515 1.011-0.683 0.391-0.168 0.81-0.252 1.26-0.252 0.593 0 1.111 0.125 1.555 0.373s0.777 0.589 0.998 1.021l-1.097 0.827c-0.144-0.288-0.353-0.512-0.624-0.67-0.273-0.158-0.568-0.238-0.887-0.238-0.246 0-0.469 0.049-0.67 0.148s-0.373 0.236-0.517 0.414c-0.144 0.177-0.255 0.382-0.333 0.615s-0.117 0.485-0.117 0.755c0 0.276 0.042 0.531 0.127 0.765 0.083 0.233 0.2 0.437 0.35 0.607s0.328 0.304 0.535 0.399c0.207 0.097 0.436 0.145 0.688 0.145 0.576 0 1.095-0.267 1.557-0.801v-0.197h-1.241v-1.069h2.464v3.335h-1.223v-0.629z"})),marketing_button:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M12.997 2.99c-0.050-0.153-0.158-0.28-0.302-0.353s-0.31-0.086-0.463-0.036l-2.54 0.825c-0.319 0.104-0.493 0.446-0.39 0.765l0.127 0.391-6.461 4.746-2.549 0.828c-0.153 0.050-0.28 0.158-0.353 0.302s-0.086 0.31-0.036 0.463l1.548 4.765c0.083 0.257 0.321 0.42 0.577 0.42 0.062 0 0.125-0.010 0.188-0.030l2.548-0.828 1.309 0.007c0.263 1.241 1.367 2.176 2.686 2.176 1.308 0 2.405-0.92 2.679-2.148l1.343 0.007 0.127 0.391c0.050 0.153 0.158 0.28 0.302 0.353 0.086 0.044 0.181 0.066 0.276 0.066 0.063 0 0.127-0.010 0.188-0.030l2.54-0.825c0.319-0.104 0.493-0.446 0.39-0.765l-3.733-11.489zM2.545 14.732l-1.173-3.61 1.487-0.483 1.173 3.61-1.486 0.483zM8.886 16.215c-0.64 0-1.189-0.396-1.418-0.955l2.83 0.015c-0.232 0.552-0.777 0.94-1.412 0.94zM5.239 14.034l-1.277-3.93 5.862-4.306 2.689 8.275-7.274-0.038zM14.002 14.727l-0.075-0.229c-0-0-0-0.001-0-0.001l-3.283-10.104 1.385-0.45 3.358 10.335-1.385 0.45z"}),a("path",{fill:"#4a00e0",d:"M15.041 5.941c0.088 0.045 0.182 0.066 0.275 0.066 0.221 0 0.434-0.121 0.541-0.332l1.090-2.138c0.152-0.299 0.034-0.664-0.265-0.817s-0.664-0.034-0.817 0.265l-1.090 2.138c-0.152 0.299-0.034 0.664 0.265 0.817z"}),a("path",{fill:"#4a00e0",d:"M19.604 11.714l-2.138-1.089c-0.299-0.152-0.664-0.033-0.817 0.265s-0.033 0.664 0.265 0.817l2.138 1.089c0.088 0.045 0.182 0.066 0.275 0.066 0.221 0 0.434-0.121 0.541-0.332 0.152-0.299 0.033-0.664-0.265-0.817z"}),a("path",{fill:"#4a00e0",d:"M16.533 8.193c0.083 0.257 0.321 0.42 0.577 0.42 0.062 0 0.125-0.010 0.188-0.030l2.282-0.742c0.319-0.104 0.493-0.446 0.39-0.765s-0.446-0.493-0.765-0.39l-2.282 0.742c-0.319 0.104-0.493 0.446-0.39 0.765z"})),table_of_contents:a("svg",{width:20,height:20},a("path",{fill:"#4a00e0",d:"M0 0h1.25v20h-1.25v-20zM18.75 0h1.25v20h-1.25v-20zM1.25 1.25v-1.25h17.5v1.25h-17.5zM1.25 20v-1.25h17.5v1.25h-17.5zM1.25 4.063v-1.25h17.5v1.25h-17.5zM13.75 1.25h1.25v1.563h-1.25v-1.563zM4.375 5c-0.938 0-1.875 0.938-1.875 1.875s0.938 1.875 1.875 1.875c0.938 0 1.875-0.938 1.875-1.875s-0.938-1.875-1.875-1.875zM4.375 5.938c0.625 0 0.938 0.313 0.938 0.938s-0.313 0.938-0.938 0.938c-0.625 0-0.938-0.313-0.938-0.938s0.313-0.938 0.938-0.938zM7.813 7.5h9.688v-1.25h-9.688v1.25zM4.375 9.688c-0.938 0-1.875 0.625-1.875 1.875 0 0.938 0.938 1.875 1.875 1.875s1.875-0.938 1.875-1.875c0-1.25-0.938-1.875-1.875-1.875zM4.375 10.313c0.625 0 0.938 0.625 0.938 1.25 0 0.313-0.313 0.938-0.938 0.938s-0.938-0.625-0.938-0.938c0-0.625 0.313-1.25 0.938-1.25zM7.813 12.188h9.688v-1.25h-9.688v1.25zM4.375 14.063c0.938 0 1.875 0.938 1.875 1.875s-0.938 1.875-1.875 1.875c-0.938 0-1.875-0.938-1.875-1.875s0.938-1.875 1.875-1.875zM4.375 15c-0.625 0-0.938 0.313-0.938 0.938s0.313 0.938 0.938 0.938c0.625 0 0.938-0.313 0.938-0.938s-0.313-0.938-0.938-0.938zM7.813 16.563h9.688v-1.25h-9.688v1.25z"}))};t.a=l},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function r(e){if(p===clearTimeout)return clearTimeout(e);if((p===a||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function i(){g&&d&&(g=!1,d.length?h=d.concat(h):b=-1,h.length&&o())}function o(){if(!g){var e=l(i);g=!0;for(var t=h.length;t;){for(d=h,h=[];++b<t;)d&&d[b].run();b=-1,t=h.length}d=null,g=!1,r(e)}}function c(e,t){this.fun=e,this.array=t}function s(){}var u,p,m=e.exports={};!function(){try{u="function"===typeof setTimeout?setTimeout:n}catch(e){u=n}try{p="function"===typeof clearTimeout?clearTimeout:a}catch(e){p=a}}();var d,h=[],g=!1,b=-1;m.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new c(e,t)),1!==h.length||g||l(o)},c.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=s,m.addListener=s,m.once=s,m.off=s,m.removeListener=s,m.removeAllListeners=s,m.emit=s,m.prependListener=s,m.prependOnceListener=s,m.listeners=function(e){return[]},m.binding=function(e){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(e){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},function(e,t,n){"use strict";function a(e,t){var n="";return"undefined"!=typeof e&&(n+=e+t),n}t.a=a},function(e,t,n){function a(e,t){return(o(e)?l:i)(e,r(t,3))}var l=n(29),r=n(75),i=n(212),o=n(12);e.exports=a},function(e,t,n){"use strict";(function(t){"production"===t.env.NODE_ENV?e.exports=n(222):e.exports=n(223)}).call(t,n(2))},function(e,t,n){"use strict";function a(e){e=Object(i.a)(e);var t=r.a[e];if("undefined"!=typeof t){var n=t.svg.hasOwnProperty("brands")?t.svg.brands.viewBox:t.svg.solid.viewBox,a=t.svg.hasOwnProperty("brands")?t.svg.brands.path:t.svg.solid.path,l=n.join(" ");return wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l},wp.element.createElement("path",{d:a}))}}var l=n(14),r=n.n(l),i=n(374);t.a=a},function(e,t,n){"use strict";function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",l="",r="",i="";"tablet"==a?l=uagb_blocks_info.tablet_breakpoint:"mobile"==a&&(l=uagb_blocks_info.mobile_breakpoint);for(var o in e){var c=e[o],s="";for(var u in c){var p=!0;"string"===typeof c[u]&&0===c[u].length&&(p=!1),"font-family"===u&&"undefined"!=typeof c[u]&&"Default"===c[u]||"undefined"!=typeof c[u]&&p&&(s+=u+": "+c[u]+";")}0!==s.length&&(r+=t,r+=o+"{",r+=s,r+="}")}return n&&"undefined"!==typeof r&&0!==r.length&&(i+="@media only screen and (max-width: "+l+"px) {",i+=r,i+="}"),n?i:r}t.a=a},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n(219),c=n(253),s=(n(254),n(255)),u=(n.n(s),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),m=wp.i18n.__,d=wp.components,h=d.Button,g=d.Dashicon,b=wp.element,v=b.Component,f=b.Fragment,y=function(e){function t(){l(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onAdvancedControlClick=e.onAdvancedControlClick.bind(e),e.onAdvancedControlReset=e.onAdvancedControlReset.bind(e),e}return i(t,e),p(t,[{key:"onAdvancedControlClick",value:function(){var e=!0,t=m("Hide Advanced");null!==this.state&&!0===this.state.showAdvancedControls&&(e=!1,t=m("Advanced")),this.setState({showAdvancedControls:e,showAdvancedControlsLabel:t})}},{key:"onAdvancedControlReset",value:function(){var e=this.props.setAttributes;e(a({},this.props.fontFamily.label,"")),e(a({},this.props.fontWeight.label,"")),e(a({},this.props.fontSubset.label,"")),e(a({},this.props.fontSize.label,"")),e(a({},this.props.fontSizeType.label,"px")),e(a({},this.props.fontSizeMobile.label,"")),e(a({},this.props.fontSizeTablet.label,"")),e(a({},this.props.lineHeight.label,"")),e(a({},this.props.lineHeightType.label,"em")),e(a({},this.props.lineHeightMobile.label,"")),e(a({},this.props.lineHeightTablet.label,"")),e(a({},this.props.loadGoogleFonts.label,!1))}},{key:"render",value:function(){var e=void 0,t=void 0,n=void 0,a=void 0,l=void 0,r=void 0,i=void 0,s=this.props,p=s.disableFontFamily,d=s.disableFontSize,b=s.disableLineHeight,v=s.disableAdvancedOptions,y=void 0!==v&&v;return!0!==p&&(n=wp.element.createElement(o.a,this.props)),!0!==b&&(t=wp.element.createElement(c.a,u({type:this.props.lineHeightType,typeLabel:this.props.lineHeightType.label,sizeMobile:this.props.lineHeightMobile,sizeMobileLabel:this.props.lineHeightMobile.label,sizeTablet:this.props.lineHeightTablet,sizeTabletLabel:this.props.lineHeightTablet.label,size:this.props.lineHeight,sizeLabel:this.props.lineHeight.label,sizeMobileText:m("Line Height"),sizeTabletText:m("Line Height"),sizeText:m("Line Height"),steps:.1},this.props))),!0!==d&&(e=wp.element.createElement(c.a,u({type:this.props.fontSizeType,typeLabel:this.props.fontSizeType.label,sizeMobile:this.props.fontSizeMobile,sizeMobileLabel:this.props.fontSizeMobile.label,sizeTablet:this.props.fontSizeTablet,sizeTabletLabel:this.props.fontSizeTablet.label,size:this.props.fontSize,sizeLabel:this.props.fontSize.label,sizeMobileText:this.props.fontSizeLabel?this.props.fontSizeLabel:m("Font Size"),sizeTabletText:this.props.fontSizeLabel?this.props.fontSizeLabel:m("Font Size"),sizeText:this.props.fontSizeLabel?this.props.fontSizeLabel:m("Font Size"),steps:.1},this.props))),!0!==p&&!0!==d?(a=wp.element.createElement(h,{className:"uagb-size-btn uagb-typography-control-btn",isSmall:!0,"aria-pressed":null!==this.state,onClick:this.onAdvancedControlClick},wp.element.createElement(g,{icon:"admin-tools"})),i=wp.element.createElement(h,{className:"uagb-size-btn uagb-typography-reset-btn",isSmall:!0,"aria-pressed":null!==this.state,onClick:this.onAdvancedControlReset},wp.element.createElement(g,{icon:"image-rotate"}))):r=wp.element.createElement(f,null,e,n,t),null!==this.state&&!0===this.state.showAdvancedControls&&(r=wp.element.createElement("div",{className:"uagb-typography-advanced"},e,n,t)),!0!==p&&!0!==d&&(l=wp.element.createElement("div",{className:"uag-typography-option-actions"},wp.element.createElement("span",null,this.props.label),a,i)),wp.element.createElement("div",{className:"uag-typography-options"},!y&&wp.element.createElement(f,null,l,r))}}]),t}(v);t.a=y},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(13),o=n.n(i),c=n(256),s=n.n(c),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();if(void 0===m)var m=[];var d=wp.element.Component,h={inactive:"inactive",active:"active",loading:"loading"},g=function(){},b=function(e){function t(e){a(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={status:void 0},n.handleLoading=function(){n.setState({status:h.loading})},n.addFont=function(e){m.includes(e)||m.push(e)},n.handleActive=function(){n.setState({status:h.active})},n.handleInactive=function(){n.setState({status:h.inactive})},n.loadFonts=function(){m.includes(n.props.config.google.families[0])||(s.a.load(u({},n.props.config,{loading:n.handleLoading,active:n.handleActive,inactive:n.handleInactive})),n.addFont(n.props.config.google.families[0]))},n}return r(t,e),p(t,[{key:"componentDidMount",value:function(){this.loadFonts()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,a=n.onStatus,l=n.config;t.status!==this.state.status&&a(this.state.status),e.config!==l&&this.loadFonts()}},{key:"render",value:function(){return this.props.children||null}}]),t}(d);b.propTypes={config:o.a.object.isRequired,children:o.a.element,onStatus:o.a.func.isRequired},b.defaultProps={onStatus:g},t.a=b},function(e,t,n){var a=n(77),l="object"==typeof self&&self&&self.Object===Object&&self,r=a||l||Function("return this")();e.exports=r},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var a=n(96);e.exports=n(241)(a.isElement,!0)}else e.exports=n(242)()}).call(t,n(2))},function(e,t){e.exports={"500px":{search:{terms:[]},styles:["brands"],label:"500px",svg:{brands:{viewBox:["0","0","448","512"],path:"M103.3 344.3c-6.5-14.2-6.9-18.3 7.4-23.1 25.6-8 8 9.2 43.2 49.2h.3v-93.9c1.2-50.2 44-92.2 97.7-92.2 53.9 0 97.7 43.5 97.7 96.8 0 63.4-60.8 113.2-128.5 93.3-10.5-4.2-2.1-31.7 8.5-28.6 53 0 89.4-10.1 89.4-64.4 0-61-77.1-89.6-116.9-44.6-23.5 26.4-17.6 42.1-17.6 157.6 50.7 31 118.3 22 160.4-20.1 24.8-24.8 38.5-58 38.5-93 0-35.2-13.8-68.2-38.8-93.3-24.8-24.8-57.8-38.5-93.3-38.5s-68.8 13.8-93.5 38.5c-.3.3-16 16.5-21.2 23.9l-.5.6c-3.3 4.7-6.3 9.1-20.1 6.1-6.9-1.7-14.3-5.8-14.3-11.8V20c0-5 3.9-10.5 10.5-10.5h241.3c8.3 0 8.3 11.6 8.3 15.1 0 3.9 0 15.1-8.3 15.1H130.3v132.9h.3c104.2-109.8 282.8-36 282.8 108.9 0 178.1-244.8 220.3-310.1 62.8zm63.3-260.8c-.5 4.2 4.6 24.5 14.6 20.6C306 56.6 384 144.5 390.6 144.5c4.8 0 22.8-15.3 14.3-22.8-93.2-89-234.5-57-238.3-38.2zM393 414.7C283 524.6 94 475.5 61 310.5c0-12.2-30.4-7.4-28.9 3.3 24 173.4 246 256.9 381.6 121.3 6.9-7.8-12.6-28.4-20.7-20.4zM213.6 306.6c0 4 4.3 7.3 5.5 8.5 3 3 6.1 4.4 8.5 4.4 3.8 0 2.6.2 22.3-19.5 19.6 19.3 19.1 19.5 22.3 19.5 5.4 0 18.5-10.4 10.7-18.2L265.6 284l18.2-18.2c6.3-6.8-10.1-21.8-16.2-15.7L249.7 268c-18.6-18.8-18.4-19.5-21.5-19.5-5 0-18 11.7-12.4 17.3L234 284c-18.1 17.9-20.4 19.2-20.4 22.6z"}}},"accessible-icon":{search:{terms:["accessibility","handicap","person","wheelchair","wheelchair-alt"]},styles:["brands"],label:"Accessible Icon",svg:{brands:{viewBox:["0","0","448","512"],path:"M423.9 255.8L411 413.1c-3.3 40.7-63.9 35.1-60.6-4.9l10-122.5-41.1 2.3c10.1 20.7 15.8 43.9 15.8 68.5 0 41.2-16.1 78.7-42.3 106.5l-39.3-39.3c57.9-63.7 13.1-167.2-74-167.2-25.9 0-49.5 9.9-67.2 26L73 243.2c22-20.7 50.1-35.1 81.4-40.2l75.3-85.7-42.6-24.8-51.6 46c-30 26.8-70.6-18.5-40.5-45.4l68-60.7c9.8-8.8 24.1-10.2 35.5-3.6 0 0 139.3 80.9 139.5 81.1 16.2 10.1 20.7 36 6.1 52.6L285.7 229l106.1-5.9c18.5-1.1 33.6 14.4 32.1 32.7zm-64.9-154c28.1 0 50.9-22.8 50.9-50.9C409.9 22.8 387.1 0 359 0c-28.1 0-50.9 22.8-50.9 50.9 0 28.1 22.8 50.9 50.9 50.9zM179.6 456.5c-80.6 0-127.4-90.6-82.7-156.1l-39.7-39.7C36.4 287 24 320.3 24 356.4c0 130.7 150.7 201.4 251.4 122.5l-39.7-39.7c-16 10.9-35.3 17.3-56.1 17.3z"}}},accusoft:{search:{terms:[]},styles:["brands"],label:"Accusoft",svg:{brands:{viewBox:["0","0","640","512"],path:"M482.2 372.1C476.5 365.2 250 75 242.3 65.5c-13.7-17.2 0-16.8 19.2-16.9 9.7-.1 106.3-.6 116.5-.6 24.1-.1 28.7.6 38.4 12.8 2.1 2.7 205.1 245.8 207.2 248.3 5.5 6.7 15.2 19.1 7.2 23.4-2.4 1.3-114.6 47.7-117.8 48.9-10.1 4-17.5 6.8-30.8-9.3m114.7-5.6s-115 50.4-117.5 51.6c-16 7.3-26.9-3.2-36.7-14.6l-57.1-74c-5.4-.9-60.4-9.6-65.3-9.3-3.1.2-9.6.8-14.4 2.9-4.9 2.1-145.2 52.8-150.2 54.7-5.1 2-11.4 3.6-11.1 7.6.2 2.5 2 2.6 4.6 3.5 2.7.8 300.9 67.6 308 69.1 15.6 3.3 38.5 10.5 53.6 1.7 2.1-1.2 123.8-76.4 125.8-77.8 5.4-4 4.3-6.8-1.7-8.2-2.3-.3-24.6-4.7-38-7.2m-326-181.3s-12 1.6-25 15.1c-9 9.3-242.1 239.1-243.4 240.9-7 10 1.6 6.8 15.7 1.7.8 0 114.5-36.6 114.5-36.6.5-.6-.1-.1.6-.6-.4-5.1-.8-26.2-1-27.7-.6-5.2 2.2-6.9 7-8.9l92.6-33.8c.6-.8 88.5-81.7 90.2-83.3v-1l-51.2-65.8"}}},"acquisitions-incorporated":{search:{terms:["Dungeons & Dragons","d&d","dnd","fantasy","game","gaming","tabletop"]},styles:["brands"],label:"Acquisitions Incorporated",svg:{brands:{viewBox:["0","0","344.76","512"],path:"M344 0c-.81 5.47-1.63 10.79-2.39 16.12-1.39 9.74-2.9 19.48-4.05 29.25-.35 2.96-1.21 4.32-4.3 4.33-20.61.11-41.21.14-61.82.53-18.76.35-37.58.28-56.23 2-13.42 1.24-23.28 12.67-18.88 26.64 8.55 27.11 27.65 69.1 36.37 89.45 65.72 154.14 61.43 156.99 84 158.56 6.67.46 13.4.07 20.43.07 1.39 9.4 2.66 18.04 4.05 27.51H225.17v-27c10.33 0 20.36-.12 30.38.06 3.52.06 5.05-.63 3.44-4.37-4.44-10.29-8.77-20.63-13.25-30.9-1.62-3.72-4.06-4.78-8.4-3.52-12.32 3.59-24.79 6.69-37.26 9.69-4.25 1.02-5.93 2.77-5.86 7.46.85 57.47.95 127.53 1 129.12.4 12.54 8.75 21.41 21.03 23.07.89.12 12.89 2.72 112.68 2.56 8.25-.01 8.41-.17 9.57 7.56 2.15 14.34 4.14 28.7 6.26 43.53-367.75 0-153.93.61-337.09 0-3.95-.01-6.08-.69-5.28-5.74 2.04-12.86 3.5-25.82 4.97-38.76.55-4.81 2.29-6.81 7.63-6.77 118.09.99 114.93.35 121.43-2.39 9.42-3.98 14.98-12.85 14.95-23.07-.12-42.93-.33-85.86-.25-128.79.01-3.87-1.16-5.99-4.56-6.84-15.64-3.92-31.31-7.71-47.58-11.7-5.23 12.27-10.39 24.37-15.66 36.7 1.83 3.35 28.38 2.93 35.28 2.93v27.64H4.34c1.03-8.61 1.77-16.81 3.23-24.88.25-1.41 3.53-3.14 5.47-3.22 8.46-.35 16.95-.29 25.43-.09 3.99.09 5.92-1.04 7.61-5.16 16.63-40.7 13.51-31.17 67.31-160.97 31.53-76.09 33.06-76.02 32.64-87.43-.69-18.56-25.37-22.26-37.65-22.11-30.04.38-38.45-.47-101.84-.47C-.62 6.11 2.37 18.54.16 5.32-.55 1.08 1.19.03 4.8.02m113.08 247.19c2.3 1.15 3.97 2.29 5.82 2.87 13.29 4.21 26.64 8.24 39.93 12.46 6.14 1.95 11.98 2.12 18.3.05 13.02-4.28 26.29-7.81 39.43-11.73 1.46-.44 2.74-1.44 3.93-2.09-6.71-17.37-13.12-34.15-19.67-50.88-8.88-22.67-17.63-60.32-26.98-82.81-1.53-.78-1.91 2.36-9.43 0-17.11 44.05-34.14 87.88-51.33 132.13z"}}},ad:{search:{terms:[]},styles:["solid"],label:"Ad",svg:{solid:{viewBox:["0","0","512","512"],path:"M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"}}},"address-book":{search:{terms:[]},styles:["solid","regular"],label:"Address Book",svg:{solid:{viewBox:["0","0","448","512"],path:"M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"},regular:{last_modified:1525209365040,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-68 304H48V48h320v416zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-68 304H48V48h320v416zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z"}}},"address-card":{search:{terms:[]},styles:["solid","regular"],label:"Address Card",svg:{solid:{viewBox:["0","0","576","512"],path:"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"},regular:{last_modified:1525209365041,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H48V80h480v352zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2zM360 320h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8z"/></svg>',viewBox:["0","0","576","512"],width:576,height:512,path:"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H48V80h480v352zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2zM360 320h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8z"}}},adjust:{search:{terms:["contrast"]},styles:["solid"],label:"adjust",svg:{solid:{viewBox:["0","0","512","512"],path:"M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"}}},adn:{search:{terms:[]},styles:["brands"],label:"App.net",svg:{brands:{viewBox:["0","0","496","512"],path:"M248 167.5l64.9 98.8H183.1l64.9-98.8zM496 256c0 136.9-111.1 248-248 248S0 392.9 0 256 111.1 8 248 8s248 111.1 248 248zm-99.8 82.7L248 115.5 99.8 338.7h30.4l33.6-51.7h168.6l33.6 51.7h30.2z"}}},adversal:{search:{terms:[]},styles:["brands"],label:"Adversal",svg:{brands:{viewBox:["0","0","512","512"],path:"M482.1 32H28.7C5.8 32 0 37.9 0 60.9v390.2C0 474.4 5.8 480 28.7 480h453.4c24.4 0 29.9-5.2 29.9-29.7V62.2c0-24.6-5.4-30.2-29.9-30.2zM178.4 220.3c-27.5-20.2-72.1-8.7-84.2 23.4-4.3 11.1-9.3 9.5-17.5 8.3-9.7-1.5-17.2-3.2-22.5-5.5-28.8-11.4 8.6-55.3 24.9-64.3 41.1-21.4 83.4-22.2 125.3-4.8 40.9 16.8 34.5 59.2 34.5 128.5 2.7 25.8-4.3 58.3 9.3 88.8 1.9 4.4.4 7.9-2.7 10.7-8.4 6.7-39.3 2.2-46.6-7.4-1.9-2.2-1.8-3.6-3.9-6.2-3.6-3.9-7.3-2.2-11.9 1-57.4 36.4-140.3 21.4-147-43.3-3.1-29.3 12.4-57.1 39.6-71 38.2-19.5 112.2-11.8 114-30.9 1.1-10.2-1.9-20.1-11.3-27.3zm286.7 222c0 15.1-11.1 9.9-17.8 9.9H52.4c-7.4 0-18.2 4.8-17.8-10.7.4-13.9 10.5-9.1 17.1-9.1 132.3-.4 264.5-.4 396.8 0 6.8 0 16.6-4.4 16.6 9.9zm3.8-340.5v291c0 5.7-.7 13.9-8.1 13.9-12.4-.4-27.5 7.1-36.1-5.6-5.8-8.7-7.8-4-12.4-1.2-53.4 29.7-128.1 7.1-144.4-85.2-6.1-33.4-.7-67.1 15.7-100 11.8-23.9 56.9-76.1 136.1-30.5v-71c0-26.2-.1-26.2 26-26.2 3.1 0 6.6.4 9.7 0 10.1-.8 13.6 4.4 13.6 14.3-.1.2-.1.3-.1.5zm-51.5 232.3c-19.5 47.6-72.9 43.3-90 5.2-15.1-33.3-15.5-68.2.4-101.5 16.3-34.1 59.7-35.7 81.5-4.8 20.6 28.8 14.9 84.6 8.1 101.1zm-294.8 35.3c-7.5-1.3-33-3.3-33.7-27.8-.4-13.9 7.8-23 19.8-25.8 24.4-5.9 49.3-9.9 73.7-14.7 8.9-2 7.4 4.4 7.8 9.5 1.4 33-26.1 59.2-67.6 58.8z"}}},affiliatetheme:{search:{terms:[]},styles:["brands"],label:"affiliatetheme",svg:{brands:{viewBox:["0","0","512","512"],path:"M159.7 237.4C108.4 308.3 43.1 348.2 14 326.6-15.2 304.9 2.8 230 54.2 159.1c51.3-70.9 116.6-110.8 145.7-89.2 29.1 21.6 11.1 96.6-40.2 167.5zm351.2-57.3C437.1 303.5 319 367.8 246.4 323.7c-25-15.2-41.3-41.2-49-73.8-33.6 64.8-92.8 113.8-164.1 133.2 49.8 59.3 124.1 96.9 207 96.9 150 0 271.6-123.1 271.6-274.9.1-8.5-.3-16.8-1-25z"}}},"air-freshener":{search:{terms:[]},styles:["solid"],label:"Air Freshener",svg:{solid:{viewBox:["0","0","384","512"],path:"M378.94 321.41L284.7 224h49.22c15.3 0 23.66-16.6 13.86-27.53L234.45 69.96c3.43-6.61 5.55-14 5.55-21.96 0-26.51-21.49-48-48-48s-48 21.49-48 48c0 7.96 2.12 15.35 5.55 21.96L36.22 196.47C26.42 207.4 34.78 224 50.08 224H99.3L5.06 321.41C-6.69 333.56 3.34 352 21.7 352H160v32H48c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h288c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16H224v-32h138.3c18.36 0 28.39-18.44 16.64-30.59zM192 31.98c8.85 0 16.02 7.17 16.02 16.02 0 8.84-7.17 16.02-16.02 16.02S175.98 56.84 175.98 48c0-8.85 7.17-16.02 16.02-16.02zM304 432v32H80v-32h224z"}}},algolia:{search:{terms:[]},styles:["brands"],label:"Algolia",svg:{brands:{viewBox:["0","0","448","512"],path:"M229.3 182.6c-49.3 0-89.2 39.9-89.2 89.2 0 49.3 39.9 89.2 89.2 89.2s89.2-39.9 89.2-89.2c0-49.3-40-89.2-89.2-89.2zm62.7 56.6l-58.9 30.6c-1.8.9-3.8-.4-3.8-2.3V201c0-1.5 1.3-2.7 2.7-2.6 26.2 1 48.9 15.7 61.1 37.1.7 1.3.2 3-1.1 3.7zM389.1 32H58.9C26.4 32 0 58.4 0 90.9V421c0 32.6 26.4 59 58.9 59H389c32.6 0 58.9-26.4 58.9-58.9V90.9C448 58.4 421.6 32 389.1 32zm-202.6 84.7c0-10.8 8.7-19.5 19.5-19.5h45.3c10.8 0 19.5 8.7 19.5 19.5v15.4c0 1.8-1.7 3-3.3 2.5-12.3-3.4-25.1-5.1-38.1-5.1-13.5 0-26.7 1.8-39.4 5.5-1.7.5-3.4-.8-3.4-2.5v-15.8zm-84.4 37l9.2-9.2c7.6-7.6 19.9-7.6 27.5 0l7.7 7.7c1.1 1.1 1 3-.3 4-6.2 4.5-12.1 9.4-17.6 14.9-5.4 5.4-10.4 11.3-14.8 17.4-1 1.3-2.9 1.5-4 .3l-7.7-7.7c-7.6-7.5-7.6-19.8 0-27.4zm127.2 244.8c-70 0-126.6-56.7-126.6-126.6s56.7-126.6 126.6-126.6c70 0 126.6 56.6 126.6 126.6 0 69.8-56.7 126.6-126.6 126.6z"}}},"align-center":{search:{terms:["middle","text"]},styles:["solid"],label:"align-center",svg:{solid:{viewBox:["0","0","448","512"],path:"M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm320-200H112c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"}}},"align-justify":{search:{terms:["text"]},styles:["solid"],label:"align-justify",svg:{solid:{viewBox:["0","0","448","512"],path:"M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0-128h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}},"align-left":{search:{terms:["text"]},styles:["solid"],label:"align-left",svg:{solid:{viewBox:["0","0","448","512"],path:"M288 44v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16zM0 172v40c0 8.837 7.163 16 16 16h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16zm16 312h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm256-200H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"}}},"align-right":{search:{terms:["text"]},styles:["solid"],label:"align-right",svg:{solid:{viewBox:["0","0","448","512"],path:"M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}},alipay:{search:{terms:[]},styles:["brands"],label:"Alipay",svg:{brands:{viewBox:["0","0","448","512"],path:"M377.74 32H70.26C31.41 32 0 63.41 0 102.26v307.48C0 448.59 31.41 480 70.26 480h307.48c38.52 0 69.76-31.08 70.26-69.6-45.96-25.62-110.59-60.34-171.6-88.44-32.07 43.97-84.14 81-148.62 81-70.59 0-93.73-45.3-97.04-76.37-3.97-39.01 14.88-81.5 99.52-81.5 35.38 0 79.35 10.25 127.13 24.96 16.53-30.09 26.45-60.34 26.45-60.34h-178.2v-16.7h92.08v-31.24H88.28v-19.01h109.44V92.34h50.92v50.42h109.44v19.01H248.63v31.24h88.77s-15.21 46.62-38.35 90.92c48.93 16.7 100.01 36.04 148.62 52.74V102.26C447.83 63.57 416.43 32 377.74 32zM47.28 322.95c.99 20.17 10.25 53.73 69.93 53.73 52.07 0 92.58-39.68 117.87-72.9-44.63-18.68-84.48-31.41-109.44-31.41-67.45 0-79.35 33.06-78.36 50.58z"}}},allergies:{search:{terms:["freckles","hand","intolerances","pox","spots"]},styles:["solid"],label:"Allergies",svg:{solid:{viewBox:["0","0","448","512"],path:"M416 112c-17.6 0-32 14.4-32 32v72c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v152c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V32c0-17.6-14.4-32-32-32s-32 14.4-32 32v184c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32S96 46.4 96 64v241l-23.6-32.5c-13-17.9-38-21.8-55.9-8.8s-21.8 38-8.8 55.9l125.6 172.7c9 12.4 23.5 19.8 38.8 19.8h197.6c22.3 0 41.6-15.3 46.7-37l26.5-112.7c3.2-13.7 4.9-28.3 5.1-42.3V144c0-17.6-14.4-32-32-32zM176 416c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 32c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32-128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"}}},amazon:{search:{terms:[]},styles:["brands"],label:"Amazon",svg:{brands:{viewBox:["0","0","448","512"],path:"M257.2 162.7c-48.7 1.8-169.5 15.5-169.5 117.5 0 109.5 138.3 114 183.5 43.2 6.5 10.2 35.4 37.5 45.3 46.8l56.8-56S341 288.9 341 261.4V114.3C341 89 316.5 32 228.7 32 140.7 32 94 87 94 136.3l73.5 6.8c16.3-49.5 54.2-49.5 54.2-49.5 40.7-.1 35.5 29.8 35.5 69.1zm0 86.8c0 80-84.2 68-84.2 17.2 0-47.2 50.5-56.7 84.2-57.8v40.6zm136 163.5c-7.7 10-70 67-174.5 67S34.2 408.5 9.7 379c-6.8-7.7 1-11.3 5.5-8.3C88.5 415.2 203 488.5 387.7 401c7.5-3.7 13.3 2 5.5 12zm39.8 2.2c-6.5 15.8-16 26.8-21.2 31-5.5 4.5-9.5 2.7-6.5-3.8s19.3-46.5 12.7-55c-6.5-8.3-37-4.3-48-3.2-10.8 1-13 2-14-.3-2.3-5.7 21.7-15.5 37.5-17.5 15.7-1.8 41-.8 46 5.7 3.7 5.1 0 27.1-6.5 43.1z"}}},"amazon-pay":{search:{terms:[]},styles:["brands"],label:"Amazon Pay",svg:{brands:{viewBox:["0","0","611.2","512"],path:"M0 325.2c2.3-4.2 5.2-4.9 9.7-2.5 10.4 5.6 20.6 11.4 31.2 16.7 40.7 20.4 83.2 35.6 127.4 46.3 20.9 5 41.9 9 63.2 11.8 31.5 4.2 63.2 6 95 5.2 17.4-.4 34.8-1.8 52.1-3.8 56.4-6.7 110.9-20.8 163.3-42.8 2.9-1.2 5.9-2 9.1-1.2 6.7 1.8 9 9 4.1 13.9-2.8 2.8-6.3 5.1-9.6 7.4-30.7 21.1-64.2 36.4-99.6 47.9-24.6 7.9-49.6 13.8-75.1 17.6-17.6 2.6-35.4 4.4-53.2 4.8-.8 0-1.7.2-2.5.3H294c-.8-.1-1.7-.3-2.5-.3-3.6-.2-7.2-.3-10.7-.4-16.9-.7-33.7-2.6-50.4-5.3-27.4-4.5-54.2-11.4-80.4-20.9-54.1-19.6-102.6-48.6-145.6-87-1.8-1.6-3-3.8-4.4-5.7v-2zM158 65c-1.4.2-2.9.4-4.3.6-14 1.7-26.6 6.9-38 15.1-2.4 1.7-4.6 3.5-7.1 5.4-.2-.5-.4-1-.4-1.4-.4-2.7-.8-5.5-1.3-8.2-.7-4.6-3-6.6-7.6-6.6H87.8c-6.9 0-8.2 1.3-8.2 8.2v209.3c0 1 0 2 .1 3 .2 3 2 4.9 4.9 5 7 .1 14.1.1 21.1 0 2.9 0 4.7-2 5-5 .1-1 .1-2 .1-3V215c1.1.9 1.7 1.4 2.2 1.9 17.9 14.9 38.5 19.8 61 15.4 20.4-4 34.6-16.5 43.8-34.9 7-13.9 9.9-28.7 10.3-44.1.5-17.1-1.2-33.9-8.1-49.8-8.5-19.6-22.6-32.5-43.9-36.9-3.2-.7-6.5-1-9.8-1.5-2.8-.1-5.5-.1-8.3-.1zm-47.4 41.9c0-1.5.4-2.4 1.7-3.3 13.7-9.5 28.8-14.5 45.6-13.2 14.9 1.1 27.1 8.4 33.5 25.9 3.9 10.7 4.9 21.8 4.9 33 0 10.4-.8 20.6-4 30.6-6.8 21.3-22.4 29.4-42.6 28.5-14-.6-26.2-6-37.4-13.9-1.2-.9-1.7-1.7-1.7-3.3.1-14.1 0-28.1 0-42.2 0-14 .1-28 0-42.1zM316.3 65c-1 .1-2 .3-2.9.4-9.8.5-19.4 1.7-28.9 4.1-6.1 1.6-12 3.8-17.9 5.8-3.6 1.2-5.4 3.8-5.3 7.7.1 3.3-.1 6.6 0 9.9.1 4.8 2.1 6.1 6.8 4.9 7.8-2 15.6-4.2 23.5-5.7 12.3-2.3 24.7-3.3 37.2-1.4 6.5 1 12.6 2.9 16.8 8.4 3.7 4.8 5.1 10.5 5.3 16.4.3 8.3.2 16.6.3 24.9 0 .4-.1.9-.2 1.4-.5-.1-.9 0-1.3-.1-10.5-2.5-21.1-4.3-32-4.9-11.3-.6-22.5.1-33.3 3.9-12.9 4.5-23.3 12.3-29.4 24.9-4.7 9.8-5.4 20.2-3.9 30.7 2 14 9 24.8 21.4 31.7 11.9 6.6 24.8 7.4 37.9 5.4 15.1-2.3 28.5-8.7 40.3-18.4.4-.4.9-.7 1.6-1.1.6 3.8 1.1 7.4 1.8 11 .6 3.1 2.5 5.1 5.4 5.2 5.4.1 10.9.1 16.3 0 2.7-.1 4.5-1.9 4.8-4.7.1-.9.1-1.9.1-2.8v-106c0-4.3-.2-8.6-.9-12.9-1.9-12.9-7.4-23.5-19-30.4-6.7-4-14.1-6-21.8-7.1-3.6-.5-7.2-.8-10.8-1.3-3.9.1-7.9.1-11.9.1zm35 127.7c0 1.3-.4 2.2-1.5 3-11.2 8.1-23.5 13.5-37.4 14.9-5.7.6-11.4.4-16.8-1.8-6.3-2.5-10.4-6.9-12.4-13.3s-2-13-.1-19.4c2.5-8.3 8.4-13 16.4-15.6 8.1-2.6 16.5-3 24.8-2.2 8.4.7 16.6 2.3 25 3.4 1.6.2 2.1 1 2.1 2.6-.1 4.8 0 9.5 0 14.3-.1 4.7-.2 9.4-.1 14.1zm259.9 129.4c-1-5-4.8-6.9-9.1-8.3-6.8-2.3-13.9-3.3-21-3.9-13.1-1.1-26.2-.5-39.2 1.9-14.3 2.7-27.9 7.3-40 15.6-1.4 1-2.8 2.1-3.7 3.5-.7 1.1-.9 2.8-.5 4 .4 1.5 2.1 1.9 3.6 1.8.7 0 1.5 0 2.2-.1 7.8-.8 15.5-1.7 23.3-2.5 11.4-1.1 22.9-1.8 34.3-.9 4.8.3 9.7 1.4 14.4 2.7 5.1 1.4 7.4 5.2 7.6 10.4.4 8-1.4 15.7-3.5 23.3-4.1 15.4-10 30.3-15.8 45.1-.4 1-.8 2-1 3-.5 2.9 1.2 4.8 4.1 4.1 1.7-.4 3.6-1.3 4.8-2.5 4.4-4.3 8.9-8.6 12.7-13.4 12.8-16.4 20.3-35.3 24.7-55.6.8-3.6 1.4-7.3 2.1-10.9v-17.3zM479.1 198.9c-12.9-35.7-25.8-71.5-38.7-107.2-2-5.7-4.2-11.3-6.3-16.9-1.1-2.9-3.2-4.8-6.4-4.8-7.6-.1-15.2-.2-22.9-.1-2.5 0-3.7 2-3.2 4.5.5 2.1 1.1 4.1 1.9 6.1 19.6 48.5 39.3 97.1 59.1 145.5 1.7 4.1 2.1 7.6.2 11.8-3.3 7.3-5.9 15-9.3 22.3-3 6.5-8 11.4-15.2 13.3-5.1 1.4-10.2 1.6-15.4 1.1-2.5-.2-5-.8-7.5-1-3.4-.2-5.1 1.3-5.2 4.8-.1 3.3-.1 6.6 0 9.9.1 5.5 2 8 7.4 8.9 5.6 1 11.3 1.9 16.9 2 17.1.4 30.7-6.5 39.5-21.4 3.5-5.9 6.7-12.1 9.2-18.4 23.7-59.8 47.1-119.7 70.6-179.6.7-1.8 1.3-3.6 1.6-5.5.4-2.8-.9-4.4-3.7-4.4-6.6-.1-13.3 0-19.9 0-3.7 0-6.3 1.6-7.7 5.2-.5 1.4-1.1 2.7-1.6 4.1-11.6 33.3-23.2 66.6-34.8 100-2.5 7.2-5.1 14.5-7.7 22.2-.4-1.1-.6-1.7-.9-2.4z"}}},ambulance:{search:{terms:["help","machine","support","vehicle"]},styles:["solid"],label:"ambulance",svg:{solid:{viewBox:["0","0","640","512"],path:"M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"}}},"american-sign-language-interpreting":{search:{terms:[]},styles:["solid"],label:"American Sign Language Interpreting",svg:{solid:{viewBox:["0","0","640","512"],path:"M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"}}},amilia:{search:{terms:[]},styles:["brands"],label:"Amilia",svg:{brands:{viewBox:["0","0","448","512"],path:"M240.1 32c-61.9 0-131.5 16.9-184.2 55.4-5.1 3.1-9.1 9.2-7.2 19.4 1.1 5.1 5.1 27.4 10.2 39.6 4.1 10.2 14.2 10.2 20.3 6.1 32.5-22.3 96.5-47.7 152.3-47.7 57.9 0 58.9 28.4 58.9 73.1v38.5C203 227.7 78.2 251 46.7 264.2 11.2 280.5 16.3 357.7 16.3 376s15.2 104 124.9 104c47.8 0 113.7-20.7 153.3-42.1v25.4c0 3 2.1 8.2 6.1 9.1 3.1 1 50.7 2 59.9 2s62.5.3 66.5-.7c4.1-1 5.1-6.1 5.1-9.1V168c-.1-80.3-57.9-136-192-136zm-87.9 327.7c0-12.2-3-42.7 18.3-52.9 24.3-13.2 75.1-29.4 119.8-33.5V380c-21.4 13.2-48.7 24.4-79.1 24.4-52.8 0-58.9-33.5-59-44.7"}}},anchor:{search:{terms:["link"]},styles:["solid"],label:"Anchor",svg:{solid:{viewBox:["0","0","576","512"],path:"M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"}}},android:{search:{terms:["robot"]},styles:["brands"],label:"Android",svg:{brands:{viewBox:["0","0","448","512"],path:"M89.6 204.5v115.8c0 15.4-12.1 27.7-27.5 27.7-15.3 0-30.1-12.4-30.1-27.7V204.5c0-15.1 14.8-27.5 30.1-27.5 15.1 0 27.5 12.4 27.5 27.5zm10.8 157c0 16.4 13.2 29.6 29.6 29.6h19.9l.3 61.1c0 36.9 55.2 36.6 55.2 0v-61.1h37.2v61.1c0 36.7 55.5 36.8 55.5 0v-61.1h20.2c16.2 0 29.4-13.2 29.4-29.6V182.1H100.4v179.4zm248-189.1H99.3c0-42.8 25.6-80 63.6-99.4l-19.1-35.3c-2.8-4.9 4.3-8 6.7-3.8l19.4 35.6c34.9-15.5 75-14.7 108.3 0L297.5 34c2.5-4.3 9.5-1.1 6.7 3.8L285.1 73c37.7 19.4 63.3 56.6 63.3 99.4zm-170.7-55.5c0-5.7-4.6-10.5-10.5-10.5-5.7 0-10.2 4.8-10.2 10.5s4.6 10.5 10.2 10.5c5.9 0 10.5-4.8 10.5-10.5zm113.4 0c0-5.7-4.6-10.5-10.2-10.5-5.9 0-10.5 4.8-10.5 10.5s4.6 10.5 10.5 10.5c5.6 0 10.2-4.8 10.2-10.5zm94.8 60.1c-15.1 0-27.5 12.1-27.5 27.5v115.8c0 15.4 12.4 27.7 27.5 27.7 15.4 0 30.1-12.4 30.1-27.7V204.5c0-15.4-14.8-27.5-30.1-27.5z"}}},angellist:{search:{terms:[]},styles:["brands"],label:"AngelList",svg:{brands:{viewBox:["0","0","448","512"],path:"M347.1 215.4c11.7-32.6 45.4-126.9 45.4-157.1 0-26.6-15.7-48.9-43.7-48.9-44.6 0-84.6 131.7-97.1 163.1C242 144 196.6 0 156.6 0c-31.1 0-45.7 22.9-45.7 51.7 0 35.3 34.2 126.8 46.6 162-6.3-2.3-13.1-4.3-20-4.3-23.4 0-48.3 29.1-48.3 52.6 0 8.9 4.9 21.4 8 29.7-36.9 10-51.1 34.6-51.1 71.7C46 435.6 114.4 512 210.6 512c118 0 191.4-88.6 191.4-202.9 0-43.1-6.9-82-54.9-93.7zM311.7 108c4-12.3 21.1-64.3 37.1-64.3 8.6 0 10.9 8.9 10.9 16 0 19.1-38.6 124.6-47.1 148l-34-6 33.1-93.7zM142.3 48.3c0-11.9 14.5-45.7 46.3 47.1l34.6 100.3c-15.6-1.3-27.7-3-35.4 1.4-10.9-28.8-45.5-119.7-45.5-148.8zM140 244c29.3 0 67.1 94.6 67.1 107.4 0 5.1-4.9 11.4-10.6 11.4-20.9 0-76.9-76.9-76.9-97.7.1-7.7 12.7-21.1 20.4-21.1zm184.3 186.3c-29.1 32-66.3 48.6-109.7 48.6-59.4 0-106.3-32.6-128.9-88.3-17.1-43.4 3.8-68.3 20.6-68.3 11.4 0 54.3 60.3 54.3 73.1 0 4.9-7.7 8.3-11.7 8.3-16.1 0-22.4-15.5-51.1-51.4-29.7 29.7 20.5 86.9 58.3 86.9 26.1 0 43.1-24.2 38-42 3.7 0 8.3.3 11.7-.6 1.1 27.1 9.1 59.4 41.7 61.7 0-.9 2-7.1 2-7.4 0-17.4-10.6-32.6-10.6-50.3 0-28.3 21.7-55.7 43.7-71.7 8-6 17.7-9.7 27.1-13.1 9.7-3.7 20-8 27.4-15.4-1.1-11.2-5.7-21.1-16.9-21.1-27.7 0-120.6 4-120.6-39.7 0-6.7.1-13.1 17.4-13.1 32.3 0 114.3 8 138.3 29.1 18.1 16.1 24.3 113.2-31 174.7zm-98.6-126c9.7 3.1 19.7 4 29.7 6-7.4 5.4-14 12-20.3 19.1-2.8-8.5-6.2-16.8-9.4-25.1z"}}},"angle-double-down":{search:{terms:["arrows"]},styles:["solid"],label:"Angle Double Down",svg:{solid:{viewBox:["0","0","320","512"],path:"M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"}}},"angle-double-left":{search:{terms:["arrows","back","laquo","previous","quote"]},styles:["solid"],label:"Angle Double Left",svg:{solid:{viewBox:["0","0","448","512"],path:"M223.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.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 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 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"}}},"angle-double-right":{search:{terms:["arrows","forward","next","quote","raquo"]},styles:["solid"],label:"Angle Double Right",svg:{solid:{viewBox:["0","0","448","512"],path:"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 34zm192-34l-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.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"}}},"angle-double-up":{search:{terms:["arrows"]},styles:["solid"],label:"Angle Double Up",svg:{solid:{viewBox:["0","0","320","512"],path:"M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"}}},"angle-down":{search:{terms:["arrow"]},styles:["solid"],label:"angle-down",svg:{solid:{viewBox:["0","0","320","512"],path:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"}}},"angle-left":{search:{terms:["arrow","back","previous"]},styles:["solid"],label:"angle-left",svg:{solid:{viewBox:["0","0","256","512"],path:"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"}}},"angle-right":{search:{terms:["arrow","forward","next"]},styles:["solid"],label:"angle-right",svg:{solid:{viewBox:["0","0","256","512"],path:"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"}}},"angle-up":{search:{terms:["arrow"]},styles:["solid"],label:"angle-up",svg:{solid:{viewBox:["0","0","320","512"],path:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"}}},angry:{search:{terms:["disapprove","emoticon","face","mad","upset"]},styles:["solid","regular"],label:"Angry Face",svg:{solid:{viewBox:["0","0","496","512"],path:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 240c0-9.3 4.1-17.5 10.5-23.4l-31-9.3c-8.5-2.5-13.3-11.5-10.7-19.9 2.5-8.5 11.4-13.2 19.9-10.7l80 24c8.5 2.5 13.3 11.5 10.7 19.9-2.1 6.9-8.4 11.4-15.3 11.4-.5 0-1.1-.2-1.7-.2.7 2.7 1.7 5.3 1.7 8.2 0 17.7-14.3 32-32 32S136 257.7 136 240zm168 154.2c-27.8-33.4-84.2-33.4-112.1 0-13.5 16.3-38.2-4.2-24.6-20.5 20-24 49.4-37.8 80.6-37.8s60.6 13.8 80.6 37.8c13.8 16.5-11.1 36.6-24.5 20.5zm76.6-186.9l-31 9.3c6.3 5.8 10.5 14.1 10.5 23.4 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.9.9-5.6 1.7-8.2-.6.1-1.1.2-1.7.2-6.9 0-13.2-4.5-15.3-11.4-2.5-8.5 2.3-17.4 10.7-19.9l80-24c8.4-2.5 17.4 2.3 19.9 10.7 2.5 8.5-2.3 17.4-10.8 19.9z"},regular:{last_modified:1529520111607,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512"><path d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm0-144c-33.6 0-65.2 14.8-86.8 40.6-8.5 10.2-7.1 25.3 3.1 33.8s25.3 7.2 33.8-3c24.8-29.7 75-29.7 99.8 0 8.1 9.7 23.2 11.9 33.8 3 10.2-8.5 11.5-23.6 3.1-33.8-21.6-25.8-53.2-40.6-86.8-40.6zm-48-72c10.3 0 19.9-6.7 23-17.1 3.8-12.7-3.4-26.1-16.1-29.9l-80-24c-12.8-3.9-26.1 3.4-29.9 16.1-3.8 12.7 3.4 26.1 16.1 29.9l28.2 8.5c-3.1 4.9-5.3 10.4-5.3 16.6 0 17.7 14.3 32 32 32s32-14.4 32-32.1zm199-54.9c-3.8-12.7-17.1-19.9-29.9-16.1l-80 24c-12.7 3.8-19.9 17.2-16.1 29.9 3.1 10.4 12.7 17.1 23 17.1 0 17.7 14.3 32 32 32s32-14.3 32-32c0-6.2-2.2-11.7-5.3-16.6l28.2-8.5c12.7-3.7 19.9-17.1 16.1-29.8z"/></svg>',viewBox:["0","0","496","512"],width:496,height:512,path:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm0-144c-33.6 0-65.2 14.8-86.8 40.6-8.5 10.2-7.1 25.3 3.1 33.8s25.3 7.2 33.8-3c24.8-29.7 75-29.7 99.8 0 8.1 9.7 23.2 11.9 33.8 3 10.2-8.5 11.5-23.6 3.1-33.8-21.6-25.8-53.2-40.6-86.8-40.6zm-48-72c10.3 0 19.9-6.7 23-17.1 3.8-12.7-3.4-26.1-16.1-29.9l-80-24c-12.8-3.9-26.1 3.4-29.9 16.1-3.8 12.7 3.4 26.1 16.1 29.9l28.2 8.5c-3.1 4.9-5.3 10.4-5.3 16.6 0 17.7 14.3 32 32 32s32-14.4 32-32.1zm199-54.9c-3.8-12.7-17.1-19.9-29.9-16.1l-80 24c-12.7 3.8-19.9 17.2-16.1 29.9 3.1 10.4 12.7 17.1 23 17.1 0 17.7 14.3 32 32 32s32-14.3 32-32c0-6.2-2.2-11.7-5.3-16.6l28.2-8.5c12.7-3.7 19.9-17.1 16.1-29.8z"}}},angrycreative:{search:{terms:[]},styles:["brands"],label:"Angry Creative",svg:{brands:{viewBox:["0","0","640","512"],path:"M640 238.2l-3.2 28.2-34.5 2.3-2 18.1 34.5-2.3-3.2 28.2-34.4 2.2-2.3 20.1 34.4-2.2-3 26.1-64.7 4.1 12.7-113.2L527 365.2l-31.9 2-23.8-117.8 30.3-2 13.6 79.4 31.7-82.4 93.1-6.2zM426.8 371.5l28.3-1.8L468 249.6l-28.4 1.9-12.8 120zM162 388.1l-19.4-36-3.5 37.4-28.2 1.7 2.7-29.1c-11 18-32 34.3-56.9 35.8C23.9 399.9-3 377 .3 339.7c2.6-29.3 26.7-62.8 67.5-65.4 37.7-2.4 47.6 23.2 51.3 28.8l2.8-30.8 38.9-2.5c20.1-1.3 38.7 3.7 42.5 23.7l2.6-26.6 64.8-4.2-2.7 27.9-36.4 2.4-1.7 17.9 36.4-2.3-2.7 27.9-36.4 2.3-1.9 19.9 36.3-2.3-2.1 20.8 55-117.2 23.8-1.6L370.4 369l8.9-85.6-22.3 1.4 2.9-27.9 75-4.9-3 28-24.3 1.6-9.7 91.9-58 3.7-4.3-15.6-39.4 2.5-8 16.3-126.2 7.7zm-44.3-70.2l-26.4 1.7C84.6 307.2 76.9 303 65 303.8c-19 1.2-33.3 17.5-34.6 33.3-1.4 16 7.3 32.5 28.7 31.2 12.8-.8 21.3-8.6 28.9-18.9l27-1.7 2.7-29.8zm56.1-7.7c1.2-12.9-7.6-13.6-26.1-12.4l-2.7 28.5c14.2-.9 27.5-2.1 28.8-16.1zm21.1 70.8l5.8-60c-5 13.5-14.7 21.1-27.9 26.6l22.1 33.4zm135.4-45l-7.9-37.8-15.8 39.3 23.7-1.5zm-170.1-74.6l-4.3-17.5-39.6 2.6-8.1 18.2-31.9 2.1 57-121.9 23.9-1.6 30.7 102 9.9-104.7 27-1.8 37.8 63.6 6.5-66.6 28.5-1.9-4 41.2c7.4-13.5 22.9-44.7 63.6-47.5 40.5-2.8 52.4 29.3 53.4 30.3l3.3-32 39.3-2.7c12.7-.9 27.8.3 36.3 9.7l-4.4-11.9 32.2-2.2 12.9 43.2 23-45.7 31-2.2-43.6 78.4-4.8 44.3-28.4 1.9 4.8-44.3-15.8-43c1 22.3-9.2 40.1-32 49.6l25.2 38.8-36.4 2.4-19.2-36.8-4 38.3-28.4 1.9 3.3-31.5c-6.7 9.3-19.7 35.4-59.6 38-26.2 1.7-45.6-10.3-55.4-39.2l-4 40.3-25 1.6-37.6-63.3-6.3 66.2-56.8 3.7zm276.6-82.1c10.2-.7 17.5-2.1 21.6-4.3 4.5-2.4 7-6.4 7.6-12.1.6-5.3-.6-8.8-3.4-10.4-3.6-2.1-10.6-2.8-22.9-2l-2.9 28.8zM327.7 214c5.6 5.9 12.7 8.5 21.3 7.9 4.7-.3 9.1-1.8 13.3-4.1 5.5-3 10.6-8 15.1-14.3l-34.2 2.3 2.4-23.9 63.1-4.3 1.2-12-31.2 2.1c-4.1-3.7-7.8-6.6-11.1-8.1-4-1.7-8.1-2.8-12.2-2.5-8 .5-15.3 3.6-22 9.2-7.7 6.4-12 14.5-12.9 24.4-1.1 9.6 1.4 17.3 7.2 23.3zm-201.3 8.2l23.8-1.6-8.3-37.6-15.5 39.2z"}}},angular:{search:{terms:[]},styles:["brands"],label:"Angular",svg:{brands:{viewBox:["0","0","415.6","512"],path:"M169.7 268.1h76.2l-38.1-91.6-38.1 91.6zM207.8 32L0 106.4l31.8 275.7 176 97.9 176-97.9 31.8-275.7L207.8 32zM338 373.8h-48.6l-26.2-65.4H152.6l-26.2 65.4H77.7L207.8 81.5 338 373.8z"}}},ankh:{search:{terms:["amulet","copper","coptic christianity","copts","crux ansata","egyptian","venus"]},styles:["solid"],label:"Ankh",svg:{solid:{viewBox:["0","0","320","512"],path:"M296 256h-44.62C272.46 222.01 288 181.65 288 144 288 55.63 230.69 0 160 0S32 55.63 32 144c0 37.65 15.54 78.01 36.62 112H24c-13.25 0-24 10.74-24 24v32c0 13.25 10.75 24 24 24h96v152c0 13.25 10.75 24 24 24h32c13.25 0 24-10.75 24-24V336h96c13.25 0 24-10.75 24-24v-32c0-13.26-10.75-24-24-24zM160 80c29.61 0 48 24.52 48 64 0 34.66-27.14 78.14-48 100.87-20.86-22.72-48-66.21-48-100.87 0-39.48 18.39-64 48-64z"}}},"app-store":{search:{terms:[]},styles:["brands"],label:"App Store",svg:{brands:{viewBox:["0","0","512","512"],path:"M255.9 120.9l9.1-15.7c5.6-9.8 18.1-13.1 27.9-7.5 9.8 5.6 13.1 18.1 7.5 27.9l-87.5 151.5h63.3c20.5 0 32 24.1 23.1 40.8H113.8c-11.3 0-20.4-9.1-20.4-20.4 0-11.3 9.1-20.4 20.4-20.4h52l66.6-115.4-20.8-36.1c-5.6-9.8-2.3-22.2 7.5-27.9 9.8-5.6 22.2-2.3 27.9 7.5l8.9 15.7zm-78.7 218l-19.6 34c-5.6 9.8-18.1 13.1-27.9 7.5-9.8-5.6-13.1-18.1-7.5-27.9l14.6-25.2c16.4-5.1 29.8-1.2 40.4 11.6zm168.9-61.7h53.1c11.3 0 20.4 9.1 20.4 20.4 0 11.3-9.1 20.4-20.4 20.4h-29.5l19.9 34.5c5.6 9.8 2.3 22.2-7.5 27.9-9.8 5.6-22.2 2.3-27.9-7.5-33.5-58.1-58.7-101.6-75.4-130.6-17.1-29.5-4.9-59.1 7.2-69.1 13.4 23 33.4 57.7 60.1 104zM256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm216 248c0 118.7-96.1 216-216 216-118.7 0-216-96.1-216-216 0-118.7 96.1-216 216-216 118.7 0 216 96.1 216 216z"}}},"app-store-ios":{search:{terms:[]},styles:["brands"],label:"iOS App Store",svg:{brands:{viewBox:["0","0","448","512"],path:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM127 384.5c-5.5 9.6-17.8 12.8-27.3 7.3-9.6-5.5-12.8-17.8-7.3-27.3l14.3-24.7c16.1-4.9 29.3-1.1 39.6 11.4L127 384.5zm138.9-53.9H84c-11 0-20-9-20-20s9-20 20-20h51l65.4-113.2-20.5-35.4c-5.5-9.6-2.2-21.8 7.3-27.3 9.6-5.5 21.8-2.2 27.3 7.3l8.9 15.4 8.9-15.4c5.5-9.6 17.8-12.8 27.3-7.3 9.6 5.5 12.8 17.8 7.3 27.3l-85.8 148.6h62.1c20.2 0 31.5 23.7 22.7 40zm98.1 0h-29l19.6 33.9c5.5 9.6 2.2 21.8-7.3 27.3-9.6 5.5-21.8 2.2-27.3-7.3-32.9-56.9-57.5-99.7-74-128.1-16.7-29-4.8-58 7.1-67.8 13.1 22.7 32.7 56.7 58.9 102h52c11 0 20 9 20 20 0 11.1-9 20-20 20z"}}},apper:{search:{terms:[]},styles:["brands"],label:"Apper Systems AB",svg:{brands:{viewBox:["0","0","640","512"],path:"M42.1 239.1c22.2 0 29 2.8 33.5 14.6h.8v-22.9c0-11.3-4.8-15.4-17.9-15.4-11.3 0-14.4 2.5-15.1 12.8H4.8c.3-13.9 1.5-19.1 5.8-24.4C17.9 195 29.5 192 56.7 192c33 0 47.1 5 53.9 18.9 2 4.3 4 15.6 4 23.7v76.3H76.3l1.3-19.1h-1c-5.3 15.6-13.6 20.4-35.5 20.4-30.3 0-41.1-10.1-41.1-37.3 0-25.2 12.3-35.8 42.1-35.8zm17.1 48.1c13.1 0 16.9-3 16.9-13.4 0-9.1-4.3-11.6-19.6-11.6-13.1 0-17.9 3-17.9 12.1-.1 10.4 3.7 12.9 20.6 12.9zm77.8-94.9h38.3l-1.5 20.6h.8c9.1-17.1 15.9-20.9 37.5-20.9 14.4 0 24.7 3 31.5 9.1 9.8 8.6 12.8 20.4 12.8 48.1 0 30-3 43.1-12.1 52.9-6.8 7.3-16.4 10.1-33.2 10.1-20.4 0-29.2-5.5-33.8-21.2h-.8v70.3H137v-169zm80.9 60.7c0-27.5-3.3-32.5-20.7-32.5-16.9 0-20.7 5-20.7 28.7 0 28 3.5 33.5 21.2 33.5 16.4 0 20.2-5.6 20.2-29.7zm57.9-60.7h38.3l-1.5 20.6h.8c9.1-17.1 15.9-20.9 37.5-20.9 14.4 0 24.7 3 31.5 9.1 9.8 8.6 12.8 20.4 12.8 48.1 0 30-3 43.1-12.1 52.9-6.8 7.3-16.4 10.1-33.3 10.1-20.4 0-29.2-5.5-33.8-21.2h-.8v70.3h-39.5v-169zm80.9 60.7c0-27.5-3.3-32.5-20.7-32.5-16.9 0-20.7 5-20.7 28.7 0 28 3.5 33.5 21.2 33.5 16.4 0 20.2-5.6 20.2-29.7zm53.8-3.8c0-25.4 3.3-37.8 12.3-45.8 8.8-8.1 22.2-11.3 45.1-11.3 42.8 0 55.7 12.8 55.7 55.7v11.1h-75.3c-.3 2-.3 4-.3 4.8 0 16.9 4.5 21.9 20.1 21.9 13.9 0 17.9-3 17.9-13.9h37.5v2.3c0 9.8-2.5 18.9-6.8 24.7-7.3 9.8-19.6 13.6-44.3 13.6-27.5 0-41.6-3.3-50.6-12.3-8.5-8.5-11.3-21.3-11.3-50.8zm76.4-11.6c-.3-1.8-.3-3.3-.3-3.8 0-12.3-3.3-14.6-19.6-14.6-14.4 0-17.1 3-18.1 15.1l-.3 3.3h38.3zm55.6-45.3h38.3l-1.8 19.9h.7c6.8-14.9 14.4-20.2 29.7-20.2 10.8 0 19.1 3.3 23.4 9.3 5.3 7.3 6.8 14.4 6.8 34 0 1.5 0 5 .2 9.3h-35c.3-1.8.3-3.3.3-4 0-15.4-2-19.4-10.3-19.4-6.3 0-10.8 3.3-13.1 9.3-1 3-1 4.3-1 12.3v68h-38.3V192.3z"}}},apple:{search:{terms:["food","fruit","mac","osx"]},styles:["brands"],label:"Apple",svg:{brands:{viewBox:["0","0","376.5","512"],path:"M314.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C59.3 141.2 0 184.8 0 273.5c0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"}}},"apple-alt":{search:{terms:["fall","food","fruit","fuji","macintosh","seasonal"]},styles:["solid"],label:"Fruit Apple",svg:{solid:{viewBox:["0","0","448","512"],path:"M350.85 129c25.97 4.67 47.27 18.67 63.92 42 14.65 20.67 24.64 46.67 29.96 78 4.67 28.67 4.32 57.33-1 86-7.99 47.33-23.97 87-47.94 119-28.64 38.67-64.59 58-107.87 58-10.66 0-22.3-3.33-34.96-10-8.66-5.33-18.31-8-28.97-8s-20.3 2.67-28.97 8c-12.66 6.67-24.3 10-34.96 10-43.28 0-79.23-19.33-107.87-58-23.97-32-39.95-71.67-47.94-119-5.32-28.67-5.67-57.33-1-86 5.32-31.33 15.31-57.33 29.96-78 16.65-23.33 37.95-37.33 63.92-42 15.98-2.67 37.95-.33 65.92 7 23.97 6.67 44.28 14.67 60.93 24 16.65-9.33 36.96-17.33 60.93-24 27.98-7.33 49.96-9.67 65.94-7zm-54.94-41c-9.32 8.67-21.65 15-36.96 19-10.66 3.33-22.3 5-34.96 5l-14.98-1c-1.33-9.33-1.33-20 0-32 2.67-24 10.32-42.33 22.97-55 9.32-8.67 21.65-15 36.96-19 10.66-3.33 22.3-5 34.96-5l14.98 1 1 15c0 12.67-1.67 24.33-4.99 35-3.99 15.33-10.31 27.67-18.98 37z"}}},"apple-pay":{search:{terms:[]},styles:["brands"],label:"Apple Pay",svg:{brands:{viewBox:["0","0","640","512"],path:"M116.9 158.5c-7.5 8.9-19.5 15.9-31.5 14.9-1.5-12 4.4-24.8 11.3-32.6 7.5-9.1 20.6-15.6 31.3-16.1 1.2 12.4-3.7 24.7-11.1 33.8m10.9 17.2c-17.4-1-32.3 9.9-40.5 9.9-8.4 0-21-9.4-34.8-9.1-17.9.3-34.5 10.4-43.6 26.5-18.8 32.3-4.9 80 13.3 106.3 8.9 13 19.5 27.3 33.5 26.8 13.3-.5 18.5-8.6 34.5-8.6 16.1 0 20.8 8.6 34.8 8.4 14.5-.3 23.6-13 32.5-26 10.1-14.8 14.3-29.1 14.5-29.9-.3-.3-28-10.9-28.3-42.9-.3-26.8 21.9-39.5 22.9-40.3-12.5-18.6-32-20.6-38.8-21.1m100.4-36.2v194.9h30.3v-66.6h41.9c38.3 0 65.1-26.3 65.1-64.3s-26.4-64-64.1-64h-73.2zm30.3 25.5h34.9c26.3 0 41.3 14 41.3 38.6s-15 38.8-41.4 38.8h-34.8V165zm162.2 170.9c19 0 36.6-9.6 44.6-24.9h.6v23.4h28v-97c0-28.1-22.5-46.3-57.1-46.3-32.1 0-55.9 18.4-56.8 43.6h27.3c2.3-12 13.4-19.9 28.6-19.9 18.5 0 28.9 8.6 28.9 24.5v10.8l-37.8 2.3c-35.1 2.1-54.1 16.5-54.1 41.5.1 25.2 19.7 42 47.8 42zm8.2-23.1c-16.1 0-26.4-7.8-26.4-19.6 0-12.3 9.9-19.4 28.8-20.5l33.6-2.1v11c0 18.2-15.5 31.2-36 31.2zm102.5 74.6c29.5 0 43.4-11.3 55.5-45.4L640 193h-30.8l-35.6 115.1h-.6L537.4 193h-31.6L557 334.9l-2.8 8.6c-4.6 14.6-12.1 20.3-25.5 20.3-2.4 0-7-.3-8.9-.5v23.4c1.8.4 9.3.7 11.6.7z"}}},archive:{search:{terms:["box","package","storage"]},styles:["solid"],label:"Archive",svg:{solid:{viewBox:["0","0","512","512"],path:"M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"}}},archway:{search:{terms:["arc","monument","road","street"]},styles:["solid"],label:"Archway",svg:{solid:{viewBox:["0","0","576","512"],path:"M560 448h-16V96H32v352H16.02c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16H176c8.84 0 16-7.16 16-16V320c0-53.02 42.98-96 96-96s96 42.98 96 96l.02 160v16c0 8.84 7.16 16 16 16H560c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm0-448H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h544c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"}}},"arrow-alt-circle-down":{search:{terms:["arrow-circle-o-down","download"]},styles:["solid","regular"],label:"Alternate Arrow Circle Down",svg:{solid:{viewBox:["0","0","512","512"],path:"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM212 140v116h-70.9c-10.7 0-16.1 13-8.5 20.5l114.9 114.3c4.7 4.7 12.2 4.7 16.9 0l114.9-114.3c7.6-7.6 2.2-20.5-8.5-20.5H300V140c0-6.6-5.4-12-12-12h-64c-6.6 0-12 5.4-12 12z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm-32-316v116h-67c-10.7 0-16 12.9-8.5 20.5l99 99c4.7 4.7 12.3 4.7 17 0l99-99c7.6-7.6 2.2-20.5-8.5-20.5h-67V140c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12z"/></svg>',viewBox:["0","0","512","512"],width:512,height:512,path:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm-32-316v116h-67c-10.7 0-16 12.9-8.5 20.5l99 99c4.7 4.7 12.3 4.7 17 0l99-99c7.6-7.6 2.2-20.5-8.5-20.5h-67V140c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12z"}}},"arrow-alt-circle-left":{search:{terms:["arrow-circle-o-left","back","previous"]},styles:["solid","regular"],label:"Alternate Arrow Circle Left",svg:{solid:{viewBox:["0","0","512","512"],path:"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm116-292H256v-70.9c0-10.7-13-16.1-20.5-8.5L121.2 247.5c-4.7 4.7-4.7 12.2 0 16.9l114.3 114.9c7.6 7.6 20.5 2.2 20.5-8.5V300h116c6.6 0 12-5.4 12-12v-64c0-6.6-5.4-12-12-12z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"/></svg>',viewBox:["0","0","512","512"],width:512,height:512,path:"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z"}}},"arrow-alt-circle-right":{search:{terms:["arrow-circle-o-right","forward","next"]},styles:["solid","regular"],label:"Alternate Arrow Circle Right",svg:{solid:{viewBox:["0","0","512","512"],path:"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z"/></svg>',viewBox:["0","0","512","512"],width:512,height:512,path:"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z"}}},"arrow-alt-circle-up":{search:{terms:["arrow-circle-o-up"]},styles:["solid","regular"],label:"Alternate Arrow Circle Up",svg:{solid:{viewBox:["0","0","512","512"],path:"M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z"/></svg>',viewBox:["0","0","512","512"],width:512,height:512,path:"M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zm0-448c110.5 0 200 89.5 200 200s-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56zm20 328h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12z"}}},"arrow-circle-down":{search:{terms:["download"]},styles:["solid"],label:"Arrow Circle Down",svg:{solid:{viewBox:["0","0","512","512"],path:"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"}}},"arrow-circle-left":{search:{terms:["back","previous"]},styles:["solid"],label:"Arrow Circle Left",svg:{solid:{viewBox:["0","0","512","512"],path:"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"}}},"arrow-circle-right":{search:{terms:["forward","next"]},styles:["solid"],label:"Arrow Circle Right",svg:{solid:{viewBox:["0","0","512","512"],path:"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"}}},"arrow-circle-up":{search:{terms:[]},styles:["solid"],label:"Arrow Circle Up",svg:{solid:{viewBox:["0","0","512","512"],path:"M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"}}},"arrow-down":{search:{terms:["download"]},styles:["solid"],label:"arrow-down",svg:{solid:{viewBox:["0","0","448","512"],path:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"}}},"arrow-left":{search:{terms:["back","previous"]},styles:["solid"],label:"arrow-left",svg:{solid:{viewBox:["0","0","448","512"],path:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}},"arrow-right":{search:{terms:["forward","next"]},styles:["solid"],label:"arrow-right",svg:{solid:{viewBox:["0","0","448","512"],path:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}},"arrow-up":{search:{terms:[]},styles:["solid"],label:"arrow-up",svg:{solid:{viewBox:["0","0","448","512"],path:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"}}},"arrows-alt":{search:{terms:["arrow","arrows","bigger","enlarge","expand","fullscreen","move","position","reorder","resize"]},styles:["solid"],label:"Alternate Arrows",svg:{solid:{viewBox:["0","0","512","512"],path:"M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"}}},"arrows-alt-h":{search:{terms:["arrows-h","resize"]},styles:["solid"],label:"Alternate Arrows Horizontal",svg:{solid:{viewBox:["0","0","512","512"],path:"M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z"}}},"arrows-alt-v":{search:{terms:["arrows-v","resize"]},styles:["solid"],label:"Alternate Arrows Vertical",svg:{solid:{viewBox:["0","0","256","512"],path:"M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z"}}},"assistive-listening-systems":{search:{terms:[]},styles:["solid"],label:"Assistive Listening Systems",svg:{solid:{viewBox:["0","0","512","512"],path:"M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"}}},asterisk:{search:{terms:["details"]},styles:["solid"],label:"asterisk",svg:{solid:{viewBox:["0","0","512","512"],path:"M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"}}},asymmetrik:{search:{terms:[]},styles:["brands"],label:"Asymmetrik, Ltd.",svg:{brands:{viewBox:["0","0","576","512"],path:"M517.5 309.2c38.8-40 58.1-80 58.5-116.1.8-65.5-59.4-118.2-169.4-135C277.9 38.4 118.1 73.6 0 140.5 52 114 110.6 92.3 170.7 82.3c74.5-20.5 153-25.4 221.3-14.8C544.5 91.3 588.8 195 490.8 299.2c-10.2 10.8-22 21.1-35 30.6L304.9 103.4 114.7 388.9c-65.6-29.4-76.5-90.2-19.1-151.2 20.8-22.2 48.3-41.9 79.5-58.1 20-12.2 39.7-22.6 62-30.7-65.1 20.3-122.7 52.9-161.6 92.9-27.7 28.6-41.4 57.1-41.7 82.9-.5 35.1 23.4 65.1 68.4 83l-34.5 51.7h101.6l22-34.4c22.2 1 45.3 0 68.6-2.7l-22.8 37.1h135.5L340 406.3c18.6-5.3 36.9-11.5 54.5-18.7l45.9 71.8H542L468.6 349c18.5-12.1 35-25.5 48.9-39.8zm-187.6 80.5l-25-40.6-32.7 53.3c-23.4 3.5-46.7 5.1-69.2 4.4l101.9-159.3 78.7 123c-17.2 7.4-35.3 13.9-53.7 19.2z"}}},at:{search:{terms:["e-mail","email"]},styles:["solid"],label:"At",svg:{solid:{viewBox:["0","0","512","512"],path:"M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"}}},atlas:{search:{terms:["book","directions","geography","map","wayfinding"]},styles:["solid"],label:"Atlas",svg:{solid:{viewBox:["0","0","448","512"],path:"M318.38 208h-39.09c-1.49 27.03-6.54 51.35-14.21 70.41 27.71-13.24 48.02-39.19 53.3-70.41zm0-32c-5.29-31.22-25.59-57.17-53.3-70.41 7.68 19.06 12.72 43.38 14.21 70.41h39.09zM224 97.31c-7.69 7.45-20.77 34.42-23.43 78.69h46.87c-2.67-44.26-15.75-71.24-23.44-78.69zm-41.08 8.28c-27.71 13.24-48.02 39.19-53.3 70.41h39.09c1.49-27.03 6.53-51.35 14.21-70.41zm0 172.82c-7.68-19.06-12.72-43.38-14.21-70.41h-39.09c5.28 31.22 25.59 57.17 53.3 70.41zM247.43 208h-46.87c2.66 44.26 15.74 71.24 23.43 78.69 7.7-7.45 20.78-34.43 23.44-78.69zM448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM224 64c70.69 0 128 57.31 128 128s-57.31 128-128 128S96 262.69 96 192 153.31 64 224 64zm160 384H96c-19.2 0-32-12.8-32-32s16-32 32-32h288v64z"}}},atom:{search:{terms:["atheism","chemistry","science"]},styles:["solid"],label:"Atom",svg:{solid:{viewBox:["0","0","448","512"],path:"M413.03 256c40.13-54.89 41.51-98.62 25.14-128-10.91-19.52-40.54-50.73-116.33-41.88C300.36 34.89 267.64 0 224 0s-76.36 34.89-97.84 86.12C50.43 77.34 20.73 108.48 9.83 128c-16.38 29.4-15 73.09 25.14 128-40.13 54.89-41.51 98.62-25.14 128 29.21 52.34 101.68 43.58 116.33 41.88C147.63 477.1 180.36 512 224 512s76.37-34.9 97.84-86.12c14.64 1.7 87.11 10.46 116.33-41.88 16.38-29.4 15-73.09-25.14-128zM63.38 352c-4.03-7.21-.19-24.8 14.95-48.29 6.96 6.53 14.2 12.89 21.87 19.18 1.71 13.71 4 27.08 6.76 40.08-24.56.89-39.89-4.37-43.58-10.97zm36.82-162.88c-7.66 6.29-14.9 12.65-21.87 19.18-15.13-23.5-18.97-41.09-14.95-48.3 3.41-6.14 16.39-11.47 37.92-11.47 1.71 0 3.87.3 5.69.37a472.191 472.191 0 0 0-6.79 40.22zM224 64c9.47 0 22.2 13.52 33.86 37.26-11.19 3.7-22.44 8-33.86 12.86-11.42-4.86-22.67-9.16-33.86-12.86C201.8 77.52 214.53 64 224 64zm0 384c-9.47 0-22.2-13.52-33.86-37.26 11.19-3.7 22.44-8 33.86-12.86 11.42 4.86 22.67 9.16 33.86 12.86C246.2 434.48 233.47 448 224 448zm62.5-157.33c-26.7 19.08-46.14 29.33-62.5 37.48-16.35-8.14-35.8-18.41-62.5-37.48-1.99-27.79-1.99-41.54 0-69.33 26.67-19.05 46.13-29.32 62.5-37.48 16.39 8.17 35.86 18.44 62.5 37.48 1.98 27.78 1.99 41.53 0 69.33zM384.62 352c-3.67 6.62-19 11.82-43.58 10.95 2.76-13 5.05-26.37 6.76-40.06 7.66-6.29 14.9-12.65 21.87-19.18 15.13 23.49 18.97 41.08 14.95 48.29zm-14.95-143.71c-6.96-6.53-14.2-12.89-21.87-19.18a473.535 473.535 0 0 0-6.79-40.22c1.82-.07 3.97-.37 5.69-.37 21.52 0 34.51 5.34 37.92 11.47 4.02 7.22.18 24.81-14.95 48.3zM224 224c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"}}},audible:{search:{terms:[]},styles:["brands"],label:"Audible",svg:{brands:{viewBox:["0","0","640","512"],path:"M640 199.9v54l-320 200L0 254v-54l320 200 320-200.1zm-194.5 72l47.1-29.4c-37.2-55.8-100.7-92.6-172.7-92.6-72 0-135.5 36.7-172.6 92.4h.3c2.5-2.3 5.1-4.5 7.7-6.7 89.7-74.4 219.4-58.1 290.2 36.3zm-220.1 18.8c16.9-11.9 36.5-18.7 57.4-18.7 34.4 0 65.2 18.4 86.4 47.6l45.4-28.4c-20.9-29.9-55.6-49.5-94.8-49.5-38.9 0-73.4 19.4-94.4 49zM103.6 161.1c131.8-104.3 318.2-76.4 417.5 62.1l.7 1 48.8-30.4C517.1 112.1 424.8 58.1 319.9 58.1c-103.5 0-196.6 53.5-250.5 135.6 9.9-10.5 22.7-23.5 34.2-32.6zm467 32.7z"}}},"audio-description":{search:{terms:[]},styles:["solid"],label:"Audio Description",svg:{solid:{viewBox:["0","0","512","512"],path:"M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"}}},autoprefixer:{search:{terms:[]},styles:["brands"],label:"Autoprefixer",svg:{brands:{viewBox:["0","0","640","512"],path:"M318.4 16l-161 480h77.5l25.4-81.4h119.5L405 496h77.5L318.4 16zm-40.3 341.9l41.2-130.4h1.5l40.9 130.4h-83.6zM640 405l-10-31.4L462.1 358l19.4 56.5L640 405zm-462.1-47L10 373.7 0 405l158.5 9.4 19.4-56.4z"}}},avianex:{search:{terms:[]},styles:["brands"],label:"avianex",svg:{brands:{viewBox:["0","0","512","512"],path:"M453.1 32h-312c-38.9 0-76.2 31.2-83.3 69.7L1.2 410.3C-5.9 448.8 19.9 480 58.9 480h312c38.9 0 76.2-31.2 83.3-69.7l56.7-308.5c7-38.6-18.8-69.8-57.8-69.8zm-58.2 347.3l-32 13.5-115.4-110c-14.7 10-29.2 19.5-41.7 27.1l22.1 64.2-17.9 12.7-40.6-61-52.4-48.1 15.7-15.4 58 31.1c9.3-10.5 20.8-22.6 32.8-34.9L203 228.9l-68.8-99.8 18.8-28.9 8.9-4.8L265 207.8l4.9 4.5c19.4-18.8 33.8-32.4 33.8-32.4 7.7-6.5 21.5-2.9 30.7 7.9 9 10.5 10.6 24.7 2.7 31.3-1.8 1.3-15.5 11.4-35.3 25.6l4.5 7.3 94.9 119.4-6.3 7.9z"}}},aviato:{search:{terms:[]},styles:["brands"],label:"Aviato",svg:{brands:{viewBox:["0","0","640","512"],path:"M107.2 283.5l-19-41.8H36.1l-19 41.8H0l62.2-131.4 62.2 131.4h-17.2zm-45-98.1l-19.6 42.5h39.2l-19.6-42.5zm112.7 102.4l-62.2-131.4h17.1l45.1 96 45.1-96h17l-62.1 131.4zm80.6-4.3V156.4H271v127.1h-15.5zm209.1-115.6v115.6h-17.3V167.9h-41.2v-11.5h99.6v11.5h-41.1zM640 218.8c0 9.2-1.7 17.8-5.1 25.8-3.4 8-8.2 15.1-14.2 21.1-6 6-13.1 10.8-21.1 14.2-8 3.4-16.6 5.1-25.8 5.1s-17.8-1.7-25.8-5.1c-8-3.4-15.1-8.2-21.1-14.2-6-6-10.8-13-14.2-21.1-3.4-8-5.1-16.6-5.1-25.8s1.7-17.8 5.1-25.8c3.4-8 8.2-15.1 14.2-21.1 6-6 13-8.4 21.1-11.9 8-3.4 16.6-5.1 25.8-5.1s17.8 1.7 25.8 5.1c8 3.4 15.1 5.8 21.1 11.9 6 6 10.7 13.1 14.2 21.1 3.4 8 5.1 16.6 5.1 25.8zm-15.5 0c0-7.3-1.3-14-3.9-20.3-2.6-6.3-6.2-11.7-10.8-16.3-4.6-4.6-10-8.2-16.2-10.9-6.2-2.7-12.8-4-19.8-4s-13.6 1.3-19.8 4c-6.2 2.7-11.6 6.3-16.2 10.9-4.6 4.6-8.2 10-10.8 16.3-2.6 6.3-3.9 13.1-3.9 20.3 0 7.3 1.3 14 3.9 20.3 2.6 6.3 6.2 11.7 10.8 16.3 4.6 4.6 10 8.2 16.2 10.9 6.2 2.7 12.8 4 19.8 4s13.6-1.3 19.8-4c6.2-2.7 11.6-6.3 16.2-10.9 4.6-4.6 8.2-10 10.8-16.3 2.6-6.3 3.9-13.1 3.9-20.3zm-94.8 96.7v-6.3l88.9-10-242.9 13.4c.6-2.2 1.1-4.6 1.4-7.2.3-2 .5-4.2.6-6.5l64.8-8.1-64.9 1.9c0-.4-.1-.7-.1-1.1-2.8-17.2-25.5-23.7-25.5-23.7l-1.1-26.3h23.8l19 41.8h17.1L348.6 152l-62.2 131.4h17.1l19-41.8h23.6L345 268s-22.7 6.5-25.5 23.7c-.1.3-.1.7-.1 1.1l-64.9-1.9 64.8 8.1c.1 2.3.3 4.4.6 6.5.3 2.6.8 5 1.4 7.2L78.4 299.2l88.9 10v6.3c-5.9.9-10.5 6-10.5 12.2 0 6.8 5.6 12.4 12.4 12.4 6.8 0 12.4-5.6 12.4-12.4 0-6.2-4.6-11.3-10.5-12.2v-5.8l80.3 9v5.4c-5.7 1.1-9.9 6.2-9.9 12.1 0 6.8 5.6 10.2 12.4 10.2 6.8 0 12.4-3.4 12.4-10.2 0-6-4.3-11-9.9-12.1v-4.9l28.4 3.2v23.7h-5.9V360h5.9v-6.6h5v6.6h5.9v-13.8h-5.9V323l38.3 4.3c8.1 11.4 19 13.6 19 13.6l-.1 6.7-5.1.2-.1 12.1h4.1l.1-5h5.2l.1 5h4.1l-.1-12.1-5.1-.2-.1-6.7s10.9-2.1 19-13.6l38.3-4.3v23.2h-5.9V360h5.9v-6.6h5v6.6h5.9v-13.8h-5.9v-23.7l28.4-3.2v4.9c-5.7 1.1-9.9 6.2-9.9 12.1 0 6.8 5.6 10.2 12.4 10.2 6.8 0 12.4-3.4 12.4-10.2 0-6-4.3-11-9.9-12.1v-5.4l80.3-9v5.8c-5.9.9-10.5 6-10.5 12.2 0 6.8 5.6 12.4 12.4 12.4 6.8 0 12.4-5.6 12.4-12.4-.2-6.3-4.7-11.4-10.7-12.3zm-200.8-87.6l19.6-42.5 19.6 42.5h-17.9l-1.7-40.3-1.7 40.3h-17.9z"}}},award:{search:{terms:["honor","praise","prize","recognition","ribbon"]},styles:["solid"],label:"Award",svg:{solid:{viewBox:["0","0","384","512"],path:"M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"}}},aws:{search:{terms:[]},styles:["brands"],label:"Amazon Web Services (AWS)",svg:{brands:{viewBox:["0","0","640","512"],path:"M180.41 203.01c-.72 22.65 10.6 32.68 10.88 39.05a8.164 8.164 0 0 1-4.1 6.27l-12.8 8.96a10.66 10.66 0 0 1-5.63 1.92c-.43-.02-8.19 1.83-20.48-25.61a78.608 78.608 0 0 1-62.61 29.45c-16.28.89-60.4-9.24-58.13-56.21-1.59-38.28 34.06-62.06 70.93-60.05 7.1.02 21.6.37 46.99 6.27v-15.62c2.69-26.46-14.7-46.99-44.81-43.91-2.4.01-19.4-.5-45.84 10.11-7.36 3.38-8.3 2.82-10.75 2.82-7.41 0-4.36-21.48-2.94-24.2 5.21-6.4 35.86-18.35 65.94-18.18a76.857 76.857 0 0 1 55.69 17.28 70.285 70.285 0 0 1 17.67 52.36l-.01 69.29zM93.99 235.4c32.43-.47 46.16-19.97 49.29-30.47 2.46-10.05 2.05-16.41 2.05-27.4-9.67-2.32-23.59-4.85-39.56-4.87-15.15-1.14-42.82 5.63-41.74 32.26-1.24 16.79 11.12 31.4 29.96 30.48zm170.92 23.05c-7.86.72-11.52-4.86-12.68-10.37l-49.8-164.65c-.97-2.78-1.61-5.65-1.92-8.58a4.61 4.61 0 0 1 3.86-5.25c.24-.04-2.13 0 22.25 0 8.78-.88 11.64 6.03 12.55 10.37l35.72 140.83 33.16-140.83c.53-3.22 2.94-11.07 12.8-10.24h17.16c2.17-.18 11.11-.5 12.68 10.37l33.42 142.63L420.98 80.1c.48-2.18 2.72-11.37 12.68-10.37h19.72c.85-.13 6.15-.81 5.25 8.58-.43 1.85 3.41-10.66-52.75 169.9-1.15 5.51-4.82 11.09-12.68 10.37h-18.69c-10.94 1.15-12.51-9.66-12.68-10.75L328.67 110.7l-32.78 136.99c-.16 1.09-1.73 11.9-12.68 10.75h-18.3zm273.48 5.63c-5.88.01-33.92-.3-57.36-12.29a12.802 12.802 0 0 1-7.81-11.91v-10.75c0-8.45 6.2-6.9 8.83-5.89 10.04 4.06 16.48 7.14 28.81 9.6 36.65 7.53 52.77-2.3 56.72-4.48 13.15-7.81 14.19-25.68 5.25-34.95-10.48-8.79-15.48-9.12-53.13-21-4.64-1.29-43.7-13.61-43.79-52.36-.61-28.24 25.05-56.18 69.52-55.95 12.67-.01 46.43 4.13 55.57 15.62 1.35 2.09 2.02 4.55 1.92 7.04v10.11c0 4.44-1.62 6.66-4.87 6.66-7.71-.86-21.39-11.17-49.16-10.75-6.89-.36-39.89.91-38.41 24.97-.43 18.96 26.61 26.07 29.7 26.89 36.46 10.97 48.65 12.79 63.12 29.58 17.14 22.25 7.9 48.3 4.35 55.44-19.08 37.49-68.42 34.44-69.26 34.42zm40.2 104.86c-70.03 51.72-171.69 79.25-258.49 79.25A469.127 469.127 0 0 1 2.83 327.46c-6.53-5.89-.77-13.96 7.17-9.47a637.37 637.37 0 0 0 316.88 84.12 630.22 630.22 0 0 0 241.59-49.55c11.78-5 21.77 7.8 10.12 16.38zm29.19-33.29c-8.96-11.52-59.28-5.38-81.81-2.69-6.79.77-7.94-5.12-1.79-9.47 40.07-28.17 105.88-20.1 113.44-10.63 7.55 9.47-2.05 75.41-39.56 106.91-5.76 4.87-11.27 2.3-8.71-4.1 8.44-21.25 27.39-68.49 18.43-80.02z"}}},backspace:{search:{terms:["command","delete","keyboard","undo"]},styles:["solid"],label:"Backspace",svg:{solid:{viewBox:["0","0","640","512"],path:"M576 64H205.26A63.97 63.97 0 0 0 160 82.75L9.37 233.37c-12.5 12.5-12.5 32.76 0 45.25L160 429.25c12 12 28.28 18.75 45.25 18.75H576c35.35 0 64-28.65 64-64V128c0-35.35-28.65-64-64-64zm-84.69 254.06c6.25 6.25 6.25 16.38 0 22.63l-22.62 22.62c-6.25 6.25-16.38 6.25-22.63 0L384 301.25l-62.06 62.06c-6.25 6.25-16.38 6.25-22.63 0l-22.62-22.62c-6.25-6.25-6.25-16.38 0-22.63L338.75 256l-62.06-62.06c-6.25-6.25-6.25-16.38 0-22.63l22.62-22.62c6.25-6.25 16.38-6.25 22.63 0L384 210.75l62.06-62.06c6.25-6.25 16.38-6.25 22.63 0l22.62 22.62c6.25 6.25 6.25 16.38 0 22.63L429.25 256l62.06 62.06z"}}},backward:{search:{terms:["previous","rewind"]},styles:["solid"],label:"backward",svg:{solid:{viewBox:["0","0","512","512"],path:"M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"}}},"balance-scale":{search:{terms:["balanced","justice","legal","measure","weight"]},styles:["solid"],label:"Balance Scale",svg:{solid:{viewBox:["0","0","640","512"],path:"M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"}}},ban:{search:{terms:["abort","ban","block","cancel","delete","hide","prohibit","remove","stop","trash"]},styles:["solid"],label:"ban",svg:{solid:{viewBox:["0","0","512","512"],path:"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"}}},"band-aid":{search:{terms:["bandage","boo boo","ouch"]},styles:["solid"],label:"Band-Aid",svg:{solid:{viewBox:["0","0","640","512"],path:"M0 160v192c0 35.3 28.7 64 64 64h96V96H64c-35.3 0-64 28.7-64 64zm576-64h-96v320h96c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64zM192 416h256V96H192v320zm176-232c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24z"}}},bandcamp:{search:{terms:[]},styles:["brands"],label:"Bandcamp",svg:{brands:{viewBox:["0","0","496","512"],path:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm48.2 326.1h-181L199.9 178h181l-84.7 156.1z"}}},barcode:{search:{terms:["scan"]},styles:["solid"],label:"barcode",svg:{solid:{viewBox:["0","0","512","512"],path:"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"}}},bars:{search:{terms:["checklist","drag","hamburger","list","menu","nav","navigation","ol","reorder","settings","todo","ul"]},styles:["solid"],label:"Bars",svg:{solid:{viewBox:["0","0","448","512"],path:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}},"baseball-ball":{search:{terms:[]},styles:["solid"],label:"Baseball Ball",svg:{solid:{viewBox:["0","0","496","512"],path:"M368.5 363.9l28.8-13.9c11.1 22.9 26 43.2 44.1 60.9 34-42.5 54.5-96.3 54.5-154.9 0-58.5-20.4-112.2-54.2-154.6-17.8 17.3-32.6 37.1-43.6 59.5l-28.7-14.1c12.8-26 30-49 50.8-69C375.6 34.7 315 8 248 8 181.1 8 120.5 34.6 75.9 77.7c20.7 19.9 37.9 42.9 50.7 68.8l-28.7 14.1c-11-22.3-25.7-42.1-43.5-59.4C20.4 143.7 0 197.4 0 256c0 58.6 20.4 112.3 54.4 154.7 18.2-17.7 33.2-38 44.3-61l28.8 13.9c-12.9 26.7-30.3 50.3-51.5 70.7 44.5 43.1 105.1 69.7 172 69.7 66.8 0 127.3-26.5 171.9-69.5-21.1-20.4-38.5-43.9-51.4-70.6zm-228.3-32l-30.5-9.8c14.9-46.4 12.7-93.8-.6-134l30.4-10c15 45.6 18 99.9.7 153.8zm216.3-153.4l30.4 10c-13.2 40.1-15.5 87.5-.6 134l-30.5 9.8c-17.3-54-14.3-108.3.7-153.8z"}}},"basketball-ball":{search:{terms:[]},styles:["solid"],label:"Basketball Ball",svg:{solid:{viewBox:["0","0","496","512"],path:"M212.3 10.3c-43.8 6.3-86.2 24.1-122.2 53.8l77.4 77.4c27.8-35.8 43.3-81.2 44.8-131.2zM248 222L405.9 64.1c-42.4-35-93.6-53.5-145.5-56.1-1.2 63.9-21.5 122.3-58.7 167.7L248 222zM56.1 98.1c-29.7 36-47.5 78.4-53.8 122.2 50-1.5 95.5-17 131.2-44.8L56.1 98.1zm272.2 204.2c45.3-37.1 103.7-57.4 167.7-58.7-2.6-51.9-21.1-103.1-56.1-145.5L282 256l46.3 46.3zM248 290L90.1 447.9c42.4 34.9 93.6 53.5 145.5 56.1 1.3-64 21.6-122.4 58.7-167.7L248 290zm191.9 123.9c29.7-36 47.5-78.4 53.8-122.2-50.1 1.6-95.5 17.1-131.2 44.8l77.4 77.4zM167.7 209.7C122.3 246.9 63.9 267.3 0 268.4c2.6 51.9 21.1 103.1 56.1 145.5L214 256l-46.3-46.3zm116 292c43.8-6.3 86.2-24.1 122.2-53.8l-77.4-77.4c-27.7 35.7-43.2 81.2-44.8 131.2z"}}},bath:{search:{terms:[]},styles:["solid"],label:"Bath",svg:{solid:{viewBox:["0","0","512","512"],path:"M488 256H80V112c0-17.645 14.355-32 32-32 11.351 0 21.332 5.945 27.015 14.88-16.492 25.207-14.687 59.576 6.838 83.035-4.176 4.713-4.021 11.916.491 16.428l11.314 11.314c4.686 4.686 12.284 4.686 16.971 0l95.03-95.029c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.512-4.512-11.715-4.666-16.428-.491-17.949-16.469-42.294-21.429-64.178-15.365C163.281 45.667 139.212 32 112 32c-44.112 0-80 35.888-80 80v144h-8c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h8v32c0 28.43 12.362 53.969 32 71.547V456c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-8h256v8c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-32.453c19.638-17.578 32-43.117 32-71.547v-32h8c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"}}},"battery-empty":{search:{terms:["power","status"]},styles:["solid"],label:"Battery Empty",svg:{solid:{viewBox:["0","0","640","512"],path:"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"}}},"battery-full":{search:{terms:["power","status"]},styles:["solid"],label:"Battery Full",svg:{solid:{viewBox:["0","0","640","512"],path:"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"}}},"battery-half":{search:{terms:["power","status"]},styles:["solid"],label:"Battery 1/2 Full",svg:{solid:{viewBox:["0","0","640","512"],path:"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"}}},"battery-quarter":{search:{terms:["power","status"]},styles:["solid"],label:"Battery 1/4 Full",svg:{solid:{viewBox:["0","0","640","512"],path:"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"}}},"battery-three-quarters":{search:{terms:["power","status"]},styles:["solid"],label:"Battery 3/4 Full",svg:{solid:{viewBox:["0","0","640","512"],path:"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"}}},bed:{search:{terms:["lodging","sleep","travel"]},styles:["solid"],label:"Bed",svg:{solid:{viewBox:["0","0","640","512"],path:"M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"}}},beer:{search:{terms:["alcohol","bar","beverage","drink","liquor","mug","stein"]},styles:["solid"],label:"beer",svg:{solid:{viewBox:["0","0","448","512"],path:"M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"}}},behance:{search:{terms:[]},styles:["brands"],label:"Behance",svg:{brands:{viewBox:["0","0","576","512"],path:"M232 237.2c31.8-15.2 48.4-38.2 48.4-74 0-70.6-52.6-87.8-113.3-87.8H0v354.4h171.8c64.4 0 124.9-30.9 124.9-102.9 0-44.5-21.1-77.4-64.7-89.7zM77.9 135.9H151c28.1 0 53.4 7.9 53.4 40.5 0 30.1-19.7 42.2-47.5 42.2h-79v-82.7zm83.3 233.7H77.9V272h84.9c34.3 0 56 14.3 56 50.6 0 35.8-25.9 47-57.6 47zm358.5-240.7H376V94h143.7v34.9zM576 305.2c0-75.9-44.4-139.2-124.9-139.2-78.2 0-131.3 58.8-131.3 135.8 0 79.9 50.3 134.7 131.3 134.7 61.3 0 101-27.6 120.1-86.3H509c-6.7 21.9-34.3 33.5-55.7 33.5-41.3 0-63-24.2-63-65.3h185.1c.3-4.2.6-8.7.6-13.2zM390.4 274c2.3-33.7 24.7-54.8 58.5-54.8 35.4 0 53.2 20.8 56.2 54.8H390.4z"}}},"behance-square":{search:{terms:[]},styles:["brands"],label:"Behance Square",svg:{brands:{viewBox:["0","0","448","512"],path:"M186.5 293c0 19.3-14 25.4-31.2 25.4h-45.1v-52.9h46c18.6.1 30.3 7.8 30.3 27.5zm-7.7-82.3c0-17.7-13.7-21.9-28.9-21.9h-39.6v44.8H153c15.1 0 25.8-6.6 25.8-22.9zm132.3 23.2c-18.3 0-30.5 11.4-31.7 29.7h62.2c-1.7-18.5-11.3-29.7-30.5-29.7zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM271.7 185h77.8v-18.9h-77.8V185zm-43 110.3c0-24.1-11.4-44.9-35-51.6 17.2-8.2 26.2-17.7 26.2-37 0-38.2-28.5-47.5-61.4-47.5H68v192h93.1c34.9-.2 67.6-16.9 67.6-55.9zM380 280.5c0-41.1-24.1-75.4-67.6-75.4-42.4 0-71.1 31.8-71.1 73.6 0 43.3 27.3 73 71.1 73 33.2 0 54.7-14.9 65.1-46.8h-33.7c-3.7 11.9-18.6 18.1-30.2 18.1-22.4 0-34.1-13.1-34.1-35.3h100.2c.1-2.3.3-4.8.3-7.2z"}}},bell:{search:{terms:["alert","notification","reminder"]},styles:["solid","regular"],label:"bell",svg:{solid:{viewBox:["0","0","448","512"],path:"M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"},regular:{last_modified:1532362831475,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.39 362.29c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71zM67.53 368c21.22-27.97 44.42-74.33 44.53-159.42 0-.2-.06-.38-.06-.58 0-61.86 50.14-112 112-112s112 50.14 112 112c0 .2-.06.38-.06.58.11 85.1 23.31 131.46 44.53 159.42H67.53zM224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M439.39 362.29c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71zM67.53 368c21.22-27.97 44.42-74.33 44.53-159.42 0-.2-.06-.38-.06-.58 0-61.86 50.14-112 112-112s112 50.14 112 112c0 .2-.06.38-.06.58.11 85.1 23.31 131.46 44.53 159.42H67.53zM224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64z"}}},"bell-slash":{search:{terms:[]},styles:["solid","regular"],label:"Bell Slash",svg:{solid:{viewBox:["0","0","640","512"],path:"M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"},regular:{last_modified:1532362831475,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M633.99 471.02L36 3.51C29.1-2.01 19.03-.9 13.51 6l-10 12.49C-2.02 25.39-.9 35.46 6 40.98l598 467.51c6.9 5.52 16.96 4.4 22.49-2.49l10-12.49c5.52-6.9 4.41-16.97-2.5-22.49zM163.53 368c16.71-22.03 34.48-55.8 41.4-110.58l-45.47-35.55c-3.27 90.73-36.47 120.68-54.84 140.42-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h279.66l-61.4-48H163.53zM320 96c61.86 0 112 50.14 112 112 0 .2-.06.38-.06.58.02 16.84 1.16 31.77 2.79 45.73l59.53 46.54c-8.31-22.13-14.34-51.49-14.34-92.85 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-26.02 5.41-49.45 16.94-69.13 32.72l38.17 29.84C275 103.18 296.65 96 320 96zm0 416c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"/></svg>',viewBox:["0","0","640","512"],width:640,height:512,path:"M633.99 471.02L36 3.51C29.1-2.01 19.03-.9 13.51 6l-10 12.49C-2.02 25.39-.9 35.46 6 40.98l598 467.51c6.9 5.52 16.96 4.4 22.49-2.49l10-12.49c5.52-6.9 4.41-16.97-2.5-22.49zM163.53 368c16.71-22.03 34.48-55.8 41.4-110.58l-45.47-35.55c-3.27 90.73-36.47 120.68-54.84 140.42-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h279.66l-61.4-48H163.53zM320 96c61.86 0 112 50.14 112 112 0 .2-.06.38-.06.58.02 16.84 1.16 31.77 2.79 45.73l59.53 46.54c-8.31-22.13-14.34-51.49-14.34-92.85 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-26.02 5.41-49.45 16.94-69.13 32.72l38.17 29.84C275 103.18 296.65 96 320 96zm0 416c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"}}},"bezier-curve":{search:{terms:["curves","illustrator","lines","path","vector"]},styles:["solid"],label:"Bezier Curve",svg:{solid:{viewBox:["0","0","640","512"],path:"M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5.88-16.99-5.88-26.44V88zm-48 232H64c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zM576 48c-26.84 0-49.75 16.56-59.25 40H432v72c0 9.45-2.19 18.36-5.88 26.44 34.27 24.35 59.74 59.95 71.04 101.56h49.4c-13.68-64.68-54.17-119.48-109.54-152h79.73c9.5 23.44 32.41 40 59.25 40 35.34 0 64-28.65 64-64s-28.66-64-64-64zm0 272h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"}}},bible:{search:{terms:["book","catholicism","christianity"]},styles:["solid"],label:"Bible",svg:{solid:{viewBox:["0","0","448","512"],path:"M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM144 144c0-8.84 7.16-16 16-16h48V80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v48h48c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-48v112c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V192h-48c-8.84 0-16-7.16-16-16v-32zm236.8 304H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"}}},bicycle:{search:{terms:["bike","gears","transportation","vehicle"]},styles:["solid"],label:"Bicycle",svg:{solid:{viewBox:["0","0","640","512"],path:"M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"}}},bimobject:{search:{terms:[]},styles:["brands"],label:"BIMobject",svg:{brands:{viewBox:["0","0","448","512"],path:"M416 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32zm-64 257.4c0 49.4-11.4 82.6-103.8 82.6h-16.9c-44.1 0-62.4-14.9-70.4-38.8h-.9V368H96V136h64v74.7h1.1c4.6-30.5 39.7-38.8 69.7-38.8h17.3c92.4 0 103.8 33.1 103.8 82.5v35zm-64-28.9v22.9c0 21.7-3.4 33.8-38.4 33.8h-45.3c-28.9 0-44.1-6.5-44.1-35.7v-19c0-29.3 15.2-35.7 44.1-35.7h45.3c35-.2 38.4 12 38.4 33.7z"}}},binoculars:{search:{terms:[]},styles:["solid"],label:"Binoculars",svg:{solid:{viewBox:["0","0","512","512"],path:"M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"}}},"birthday-cake":{search:{terms:[]},styles:["solid"],label:"Birthday Cake",svg:{solid:{viewBox:["0","0","448","512"],path:"M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"}}},bitbucket:{search:{terms:["bitbucket-square","git"]},styles:["brands"],label:"Bitbucket",svg:{brands:{viewBox:["0","0","512","512"],path:"M23.1 32C14.2 31.9 7 38.9 6.9 47.8c0 .9.1 1.8.2 2.8L74.9 462c1.7 10.4 10.7 18 21.2 18.1h325.1c7.9.1 14.7-5.6 16-13.4l67.8-416c1.4-8.7-4.5-16.9-13.2-18.3-.9-.1-1.8-.2-2.8-.2L23.1 32zm285.3 297.3H204.6l-28.1-146.8h157l-25.1 146.8z"}}},bitcoin:{search:{terms:[]},styles:["brands"],label:"Bitcoin",svg:{brands:{viewBox:["0","0","512","512"],path:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-141.651-35.33c4.937-32.999-20.191-50.739-54.55-62.573l11.146-44.702-27.213-6.781-10.851 43.524c-7.154-1.783-14.502-3.464-21.803-5.13l10.929-43.81-27.198-6.781-11.153 44.686c-5.922-1.349-11.735-2.682-17.377-4.084l.031-.14-37.53-9.37-7.239 29.062s20.191 4.627 19.765 4.913c11.022 2.751 13.014 10.044 12.68 15.825l-12.696 50.925c.76.194 1.744.473 2.829.907-.907-.225-1.876-.473-2.876-.713l-17.796 71.338c-1.349 3.348-4.767 8.37-12.471 6.464.271.395-19.78-4.937-19.78-4.937l-13.51 31.147 35.414 8.827c6.588 1.651 13.045 3.379 19.4 5.006l-11.262 45.213 27.182 6.781 11.153-44.733a1038.209 1038.209 0 0 0 21.687 5.627l-11.115 44.523 27.213 6.781 11.262-45.128c46.404 8.781 81.299 5.239 95.986-36.727 11.836-33.79-.589-53.281-25.004-65.991 17.78-4.098 31.174-15.792 34.747-39.949zm-62.177 87.179c-8.41 33.79-65.308 15.523-83.755 10.943l14.944-59.899c18.446 4.603 77.6 13.717 68.811 48.956zm8.417-87.667c-7.673 30.736-55.031 15.12-70.393 11.292l13.548-54.327c15.363 3.828 64.836 10.973 56.845 43.035z"}}},bity:{search:{terms:[]},styles:["brands"],label:"Bity",svg:{brands:{viewBox:["0","0","496","512"],path:"M78.4 67.2C173.8-22 324.5-24 421.5 71c14.3 14.1-6.4 37.1-22.4 21.5-84.8-82.4-215.8-80.3-298.9-3.2-16.3 15.1-36.5-8.3-21.8-22.1zm98.9 418.6c19.3 5.7 29.3-23.6 7.9-30C73 421.9 9.4 306.1 37.7 194.8c5-19.6-24.9-28.1-30.2-7.1-32.1 127.4 41.1 259.8 169.8 298.1zm148.1-2c121.9-40.2 192.9-166.9 164.4-291-4.5-19.7-34.9-13.8-30 7.9 24.2 107.7-37.1 217.9-143.2 253.4-21.2 7-10.4 36 8.8 29.7zm-62.9-79l.2-71.8c0-8.2-6.6-14.8-14.8-14.8-8.2 0-14.8 6.7-14.8 14.8l-.2 71.8c0 8.2 6.6 14.8 14.8 14.8s14.8-6.6 14.8-14.8zm71-269c2.1 90.9 4.7 131.9-85.5 132.5-92.5-.7-86.9-44.3-85.5-132.5 0-21.8-32.5-19.6-32.5 0v71.6c0 69.3 60.7 90.9 118 90.1 57.3.8 118-20.8 118-90.1v-71.6c0-19.6-32.5-21.8-32.5 0z"}}},"black-tie":{search:{terms:[]},styles:["brands"],label:"Font Awesome Black Tie",svg:{brands:{viewBox:["0","0","448","512"],path:"M0 32v448h448V32H0zm316.5 325.2L224 445.9l-92.5-88.7 64.5-184-64.5-86.6h184.9L252 173.2l64.5 184z"}}},blackberry:{search:{terms:[]},styles:["brands"],label:"BlackBerry",svg:{brands:{viewBox:["0","0","512","512"],path:"M166 116.9c0 23.4-16.4 49.1-72.5 49.1H23.4l21-88.8h67.8c42.1 0 53.8 23.3 53.8 39.7zm126.2-39.7h-67.8L205.7 166h70.1c53.8 0 70.1-25.7 70.1-49.1.1-16.4-11.6-39.7-53.7-39.7zM88.8 208.1H21L0 296.9h70.1c56.1 0 72.5-23.4 72.5-49.1 0-16.3-11.7-39.7-53.8-39.7zm180.1 0h-67.8l-18.7 88.8h70.1c53.8 0 70.1-23.4 70.1-49.1 0-16.3-11.7-39.7-53.7-39.7zm189.3-53.8h-67.8l-18.7 88.8h70.1c53.8 0 70.1-23.4 70.1-49.1.1-16.3-11.6-39.7-53.7-39.7zm-28 137.9h-67.8L343.7 381h70.1c56.1 0 70.1-23.4 70.1-49.1 0-16.3-11.6-39.7-53.7-39.7zM240.8 346H173l-18.7 88.8h70.1c56.1 0 70.1-25.7 70.1-49.1.1-16.3-11.6-39.7-53.7-39.7z"}}},blender:{search:{terms:[]},styles:["solid"],label:"Blender",svg:{solid:{viewBox:["0","0","512","512"],path:"M416 384H160c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-128 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm40-416h166.54L512 0H48C21.49 0 0 21.49 0 48v160c0 26.51 21.49 48 48 48h103.27l8.73 96h256l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H328c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM64 192V64h69.82l11.64 128H64z"}}},"blender-phone":{search:{terms:["appliance","fantasy","silly"]},styles:["solid"],label:"Blender Phone",svg:{solid:{viewBox:["0","0","576","512"],path:"M392 64h166.54L576 0H192v352h288l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H392c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM158.8 335.01l-25.78-63.26c-2.78-6.81-9.8-10.99-17.24-10.26l-45.03 4.42c-17.28-46.94-17.65-99.78 0-147.72l45.03 4.42c7.43.73 14.46-3.46 17.24-10.26l25.78-63.26c3.02-7.39.2-15.85-6.68-20.07l-39.28-24.1C98.51-3.87 80.09-.5 68.95 11.97c-92.57 103.6-92 259.55 2.1 362.49 9.87 10.8 29.12 12.48 41.65 4.8l39.41-24.18c6.89-4.22 9.7-12.67 6.69-20.07zM480 384H192c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-144 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"}}},blind:{search:{terms:[]},styles:["solid"],label:"Blind",svg:{solid:{viewBox:["0","0","384","512"],path:"M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"}}},blogger:{search:{terms:[]},styles:["brands"],label:"Blogger",svg:{brands:{viewBox:["0","0","448","512"],path:"M162.4 196c4.8-4.9 6.2-5.1 36.4-5.1 27.2 0 28.1.1 32.1 2.1 5.8 2.9 8.3 7 8.3 13.6 0 5.9-2.4 10-7.6 13.4-2.8 1.8-4.5 1.9-31.1 2.1-16.4.1-29.5-.2-31.5-.8-10.3-2.9-14.1-17.7-6.6-25.3zm61.4 94.5c-53.9 0-55.8.2-60.2 4.1-3.5 3.1-5.7 9.4-5.1 13.9.7 4.7 4.8 10.1 9.2 12 2.2 1 14.1 1.7 56.3 1.2l47.9-.6 9.2-1.5c9-5.1 10.5-17.4 3.1-24.4-5.3-4.7-5-4.7-60.4-4.7zm223.4 130.1c-3.5 28.4-23 50.4-51.1 57.5-7.2 1.8-9.7 1.9-172.9 1.8-157.8 0-165.9-.1-172-1.8-8.4-2.2-15.6-5.5-22.3-10-5.6-3.8-13.9-11.8-17-16.4-3.8-5.6-8.2-15.3-10-22C.1 423 0 420.3 0 256.3 0 93.2 0 89.7 1.8 82.6 8.1 57.9 27.7 39 53 33.4c7.3-1.6 332.1-1.9 340-.3 21.2 4.3 37.9 17.1 47.6 36.4 7.7 15.3 7-1.5 7.3 180.6.2 115.8 0 164.5-.7 170.5zm-85.4-185.2c-1.1-5-4.2-9.6-7.7-11.5-1.1-.6-8-1.3-15.5-1.7-12.4-.6-13.8-.8-17.8-3.1-6.2-3.6-7.9-7.6-8-18.3 0-20.4-8.5-39.4-25.3-56.5-12-12.2-25.3-20.5-40.6-25.1-3.6-1.1-11.8-1.5-39.2-1.8-42.9-.5-52.5.4-67.1 6.2-27 10.7-46.3 33.4-53.4 62.4-1.3 5.4-1.6 14.2-1.9 64.3-.4 62.8 0 72.1 4 84.5 9.7 30.7 37.1 53.4 64.6 58.4 9.2 1.7 122.2 2.1 133.7.5 20.1-2.7 35.9-10.8 50.7-25.9 10.7-10.9 17.4-22.8 21.8-38.5 3.2-10.9 2.9-88.4 1.7-93.9z"}}},"blogger-b":{search:{terms:[]},styles:["brands"],label:"Blogger B",svg:{brands:{viewBox:["0","0","448","512"],path:"M446.6 222.7c-1.8-8-6.8-15.4-12.5-18.5-1.8-1-13-2.2-25-2.7-20.1-.9-22.3-1.3-28.7-5-10.1-5.9-12.8-12.3-12.9-29.5-.1-33-13.8-63.7-40.9-91.3-19.3-19.7-40.9-33-65.5-40.5-5.9-1.8-19.1-2.4-63.3-2.9-69.4-.8-84.8.6-108.4 10C45.9 59.5 14.7 96.1 3.3 142.9 1.2 151.7.7 165.8.2 246.8c-.6 101.5.1 116.4 6.4 136.5 15.6 49.6 59.9 86.3 104.4 94.3 14.8 2.7 197.3 3.3 216 .8 32.5-4.4 58-17.5 81.9-41.9 17.3-17.7 28.1-36.8 35.2-62.1 4.9-17.6 4.5-142.8 2.5-151.7zm-322.1-63.6c7.8-7.9 10-8.2 58.8-8.2 43.9 0 45.4.1 51.8 3.4 9.3 4.7 13.4 11.3 13.4 21.9 0 9.5-3.8 16.2-12.3 21.6-4.6 2.9-7.3 3.1-50.3 3.3-26.5.2-47.7-.4-50.8-1.2-16.6-4.7-22.8-28.5-10.6-40.8zm191.8 199.8l-14.9 2.4-77.5.9c-68.1.8-87.3-.4-90.9-2-7.1-3.1-13.8-11.7-14.9-19.4-1.1-7.3 2.6-17.3 8.2-22.4 7.1-6.4 10.2-6.6 97.3-6.7 89.6-.1 89.1-.1 97.6 7.8 12.1 11.3 9.5 31.2-4.9 39.4z"}}},bluetooth:{search:{terms:[]},styles:["brands"],label:"Bluetooth",svg:{brands:{viewBox:["0","0","448","512"],path:"M292.6 171.1L249.7 214l-.3-86 43.2 43.1m-43.2 219.8l43.1-43.1-42.9-42.9-.2 86zM416 259.4C416 465 344.1 512 230.9 512S32 465 32 259.4 115.4 0 228.6 0 416 53.9 416 259.4zm-158.5 0l79.4-88.6L211.8 36.5v176.9L138 139.6l-27 26.9 92.7 93-92.7 93 26.9 26.9 73.8-73.8 2.3 170 127.4-127.5-83.9-88.7z"}}},"bluetooth-b":{search:{terms:[]},styles:["brands"],label:"Bluetooth",svg:{brands:{viewBox:["0","0","320","512"],path:"M196.48 260.023l92.626-103.333L143.125 0v206.33l-86.111-86.111-31.406 31.405 108.061 108.399L25.608 368.422l31.406 31.405 86.111-86.111L145.84 512l148.552-148.644-97.912-103.333zm40.86-102.996l-49.977 49.978-.338-100.295 50.315 50.317zM187.363 313.04l49.977 49.978-50.315 50.316.338-100.294z"}}},bold:{search:{terms:[]},styles:["solid"],label:"bold",svg:{solid:{viewBox:["0","0","384","512"],path:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"}}},bolt:{search:{terms:["electricity","lightning","weather","zap"]},styles:["solid"],label:"Lightning Bolt",svg:{solid:{viewBox:["0","0","320","512"],path:"M295.973 160H180.572L215.19 30.184C219.25 14.956 207.756 0 192 0H56C43.971 0 33.8 8.905 32.211 20.828l-31.996 240C-1.704 275.217 9.504 288 24.004 288h118.701L96.646 482.466C93.05 497.649 104.659 512 119.992 512c8.35 0 16.376-4.374 20.778-11.978l175.973-303.997c9.244-15.967-2.288-36.025-20.77-36.025z"}}},bomb:{search:{terms:[]},styles:["solid"],label:"Bomb",svg:{solid:{viewBox:["0","0","512","512"],path:"M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"}}},bone:{search:{terms:[]},styles:["solid"],label:"Bone",svg:{solid:{viewBox:["0","0","640","512"],path:"M598.88 244.56c25.2-12.6 41.12-38.36 41.12-66.53v-7.64C640 129.3 606.7 96 565.61 96c-32.02 0-60.44 20.49-70.57 50.86-7.68 23.03-11.6 45.14-38.11 45.14H183.06c-27.38 0-31.58-25.54-38.11-45.14C134.83 116.49 106.4 96 74.39 96 33.3 96 0 129.3 0 170.39v7.64c0 28.17 15.92 53.93 41.12 66.53 9.43 4.71 9.43 18.17 0 22.88C15.92 280.04 0 305.8 0 333.97v7.64C0 382.7 33.3 416 74.38 416c32.02 0 60.44-20.49 70.57-50.86 7.68-23.03 11.6-45.14 38.11-45.14h273.87c27.38 0 31.58 25.54 38.11 45.14C505.17 395.51 533.6 416 565.61 416c41.08 0 74.38-33.3 74.38-74.39v-7.64c0-28.18-15.92-53.93-41.12-66.53-9.42-4.71-9.42-18.17.01-22.88z"}}},bong:{search:{terms:["aparatus","cannabis","marijuana","pipe","smoke","smoking"]},styles:["solid"],label:"Bong",svg:{solid:{viewBox:["0","0","448","512"],path:"M302.5 512c23.18 0 44.43-12.58 56-32.66C374.69 451.26 384 418.75 384 384c0-36.12-10.08-69.81-27.44-98.62L400 241.94l9.38 9.38c6.25 6.25 16.38 6.25 22.63 0l11.3-11.32c6.25-6.25 6.25-16.38 0-22.63l-52.69-52.69c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l9.38 9.38-39.41 39.41c-11.56-11.37-24.53-21.33-38.65-29.51V63.74l15.97-.02c8.82-.01 15.97-7.16 15.98-15.98l.04-31.72C320 7.17 312.82-.01 303.97 0L80.03.26c-8.82.01-15.97 7.16-15.98 15.98l-.04 31.73c-.01 8.85 7.17 16.02 16.02 16.01L96 63.96v153.93C38.67 251.1 0 312.97 0 384c0 34.75 9.31 67.27 25.5 95.34C37.08 499.42 58.33 512 81.5 512h221zM120.06 259.43L144 245.56V63.91l96-.11v181.76l23.94 13.87c24.81 14.37 44.12 35.73 56.56 60.57h-257c12.45-24.84 31.75-46.2 56.56-60.57z"}}},book:{search:{terms:["documentation","read"]},styles:["solid"],label:"book",svg:{solid:{viewBox:["0","0","448","512"],path:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"}}},"book-dead":{search:{terms:["Dungeons & Dragons","crossbones","d&d","dark arts","death","dnd","documentation","evil","fantasy","halloween","holiday","read","skull","spell"]},styles:["solid"],label:"Book of the Dead",svg:{solid:{viewBox:["0","0","448","512"],path:"M272 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16zm176 222.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM240 56c44.18 0 80 28.65 80 64 0 20.87-12.68 39.23-32 50.91V184c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-13.09c-19.32-11.68-32-30.04-32-50.91 0-35.35 35.82-64 80-64zM129.05 233.85a7.996 7.996 0 0 1-4.2-10.5l6.29-14.7a7.995 7.995 0 0 1 10.51-4.2L240 246.6l98.35-42.15c4.06-1.74 8.77.14 10.51 4.2l6.29 14.7a7.996 7.996 0 0 1-4.2 10.5L280.6 264l70.34 30.15a7.996 7.996 0 0 1 4.2 10.5l-6.29 14.7a8.008 8.008 0 0 1-10.51 4.21L240 281.4l-98.35 42.15a8.003 8.003 0 0 1-10.51-4.21l-6.29-14.7a7.996 7.996 0 0 1 4.2-10.5L199.4 264l-70.35-30.15zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64zM208 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16z"}}},"book-open":{search:{terms:["flyer","notebook","open book","pamphlet","reading"]},styles:["solid"],label:"Book Open",svg:{solid:{viewBox:["0","0","576","512"],path:"M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"}}},"book-reader":{search:{terms:["library"]},styles:["solid"],label:"Book Reader",svg:{solid:{viewBox:["0","0","512","512"],path:"M352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zM233.59 241.1c-59.33-36.32-155.43-46.3-203.79-49.05C13.55 191.13 0 203.51 0 219.14v222.8c0 14.33 11.59 26.28 26.49 27.05 43.66 2.29 131.99 10.68 193.04 41.43 9.37 4.72 20.48-1.71 20.48-11.87V252.56c-.01-4.67-2.32-8.95-6.42-11.46zm248.61-49.05c-48.35 2.74-144.46 12.73-203.78 49.05-4.1 2.51-6.41 6.96-6.41 11.63v245.79c0 10.19 11.14 16.63 20.54 11.9 61.04-30.72 149.32-39.11 192.97-41.4 14.9-.78 26.49-12.73 26.49-27.06V219.14c-.01-15.63-13.56-28.01-29.81-27.09z"}}},bookmark:{search:{terms:["save"]},styles:["solid","regular"],label:"bookmark",svg:{solid:{viewBox:["0","0","384","512"],path:"M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M336 0H48C21.49 0 0 21.49 0 48v464l192-112 192 112V48c0-26.51-21.49-48-48-48zm0 428.43l-144-84-144 84V54a6 6 0 0 1 6-6h276c3.314 0 6 2.683 6 5.996V428.43z"/></svg>',viewBox:["0","0","384","512"],width:384,height:512,path:"M336 0H48C21.49 0 0 21.49 0 48v464l192-112 192 112V48c0-26.51-21.49-48-48-48zm0 428.43l-144-84-144 84V54a6 6 0 0 1 6-6h276c3.314 0 6 2.683 6 5.996V428.43z"}}},"bowling-ball":{search:{terms:[]},styles:["solid"],label:"Bowling Ball",svg:{solid:{viewBox:["0","0","496","512"],path:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM120 192c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64-96c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm48 144c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"}}},box:{search:{terms:["package"]},styles:["solid"],label:"Box",svg:{solid:{viewBox:["0","0","512","512"],path:"M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z"}}},"box-open":{search:{terms:[]},styles:["solid"],label:"Box Open",svg:{solid:{viewBox:["0","0","640","512"],path:"M53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9zm585.1 102.8L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9z"}}},boxes:{search:{terms:[]},styles:["solid"],label:"Boxes",svg:{solid:{viewBox:["0","0","576","512"],path:"M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"}}},braille:{search:{terms:[]},styles:["solid"],label:"Braille",svg:{solid:{viewBox:["0","0","640","512"],path:"M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"}}},brain:{search:{terms:["cerebellum","gray matter","intellect","medulla oblongata","mind","noodle","wit"]},styles:["solid"],label:"Brain",svg:{solid:{viewBox:["0","0","576","512"],path:"M208 0c-29.87 0-54.74 20.55-61.8 48.22-.75-.02-1.45-.22-2.2-.22-35.34 0-64 28.65-64 64 0 4.84.64 9.51 1.66 14.04C52.54 138 32 166.57 32 200c0 12.58 3.16 24.32 8.34 34.91C16.34 248.72 0 274.33 0 304c0 33.34 20.42 61.88 49.42 73.89-.9 4.57-1.42 9.28-1.42 14.11 0 39.76 32.23 72 72 72 4.12 0 8.1-.55 12.03-1.21C141.61 491.31 168.25 512 200 512c39.77 0 72-32.24 72-72V205.45c-10.91 8.98-23.98 15.45-38.36 18.39-4.97 1.02-9.64-2.82-9.64-7.89v-16.18c0-3.57 2.35-6.78 5.8-7.66 24.2-6.16 42.2-27.95 42.2-54.04V64c0-35.35-28.66-64-64-64zm368 304c0-29.67-16.34-55.28-40.34-69.09 5.17-10.59 8.34-22.33 8.34-34.91 0-33.43-20.54-62-49.66-73.96 1.02-4.53 1.66-9.2 1.66-14.04 0-35.35-28.66-64-64-64-.75 0-1.45.2-2.2.22C422.74 20.55 397.87 0 368 0c-35.34 0-64 28.65-64 64v74.07c0 26.09 17.99 47.88 42.2 54.04 3.46.88 5.8 4.09 5.8 7.66v16.18c0 5.07-4.68 8.91-9.64 7.89-14.38-2.94-27.44-9.41-38.36-18.39V440c0 39.76 32.23 72 72 72 31.75 0 58.39-20.69 67.97-49.21 3.93.67 7.91 1.21 12.03 1.21 39.77 0 72-32.24 72-72 0-4.83-.52-9.54-1.42-14.11 29-12.01 49.42-40.55 49.42-73.89z"}}},briefcase:{search:{terms:["bag","business","luggage","office","work"]},styles:["solid"],label:"Briefcase",svg:{solid:{viewBox:["0","0","512","512"],path:"M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"}}},"briefcase-medical":{search:{terms:["health briefcase"]},styles:["solid"],label:"Medical Briefcase",svg:{solid:{viewBox:["0","0","512","512"],path:"M464 128h-80V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V176c0-26.5-21.5-48-48-48zM192 96h128v32H192V96zm160 248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48z"}}},"broadcast-tower":{search:{terms:["airwaves","radio","waves"]},styles:["solid"],label:"Broadcast Tower",svg:{solid:{viewBox:["0","0","640","512"],path:"M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.62-29.24 7.55-42.82C203.29 74.83 195.68 64 184.67 64h-33.73c-7.01 0-13.46 4.49-15.41 11.23C130.64 92.21 128 109.88 128 128c0 18.12 2.64 35.79 7.54 52.76 1.94 6.74 8.39 11.24 15.4 11.24zM89.92 23.34C95.56 12.72 87.97 0 75.96 0H40.63c-6.27 0-12.14 3.59-14.74 9.31C9.4 45.54 0 85.65 0 128c0 24.75 3.12 68.33 26.69 118.86 2.62 5.63 8.42 9.14 14.61 9.14h34.84c12.02 0 19.61-12.74 13.95-23.37-49.78-93.32-16.71-178.15-.17-209.29zM614.06 9.29C611.46 3.58 605.6 0 599.33 0h-35.42c-11.98 0-19.66 12.66-14.02 23.25 18.27 34.29 48.42 119.42.28 209.23-5.72 10.68 1.8 23.52 13.91 23.52h35.23c6.27 0 12.13-3.58 14.73-9.29C630.57 210.48 640 170.36 640 128s-9.42-82.48-25.94-118.71zM489.06 64h-33.73c-11.01 0-18.61 10.83-14.86 21.18 4.93 13.58 7.55 27.98 7.55 42.82s-2.62 29.24-7.55 42.82c-3.76 10.35 3.85 21.18 14.86 21.18h33.73c7.02 0 13.46-4.49 15.41-11.24 4.9-16.97 7.53-34.64 7.53-52.76 0-18.12-2.64-35.79-7.54-52.76-1.94-6.75-8.39-11.24-15.4-11.24zm-116.3 100.12c7.05-10.29 11.2-22.71 11.2-36.12 0-35.35-28.63-64-63.96-64-35.32 0-63.96 28.65-63.96 64 0 13.41 4.15 25.83 11.2 36.12l-130.5 313.41c-3.4 8.15.46 17.52 8.61 20.92l29.51 12.31c8.15 3.4 17.52-.46 20.91-8.61L244.96 384h150.07l49.2 118.15c3.4 8.16 12.76 12.01 20.91 8.61l29.51-12.31c8.15-3.4 12-12.77 8.61-20.92l-130.5-313.41zM271.62 320L320 203.81 368.38 320h-96.76z"}}},broom:{search:{terms:["clean","firebolt","fly","halloween","holiday","nimbus 2000","quidditch","sweep","witch"]},styles:["solid"],label:"Broom",svg:{solid:{viewBox:["0","0","640","512"],path:"M256.47 216.77l86.73 109.18s-16.6 102.36-76.57 150.12C206.66 523.85 0 510.19 0 510.19s3.8-23.14 11-55.43l94.62-112.17c3.97-4.7-.87-11.62-6.65-9.5l-60.4 22.09c14.44-41.66 32.72-80.04 54.6-97.47 59.97-47.76 163.3-40.94 163.3-40.94zM636.53 31.03l-19.86-25c-5.49-6.9-15.52-8.05-22.41-2.56l-232.48 177.8-34.14-42.97c-5.09-6.41-15.14-5.21-18.59 2.21l-25.33 54.55 86.73 109.18 58.8-12.45c8-1.69 11.42-11.2 6.34-17.6l-34.09-42.92 232.48-177.8c6.89-5.48 8.04-15.53 2.55-22.44z"}}},brush:{search:{terms:["bristles","color","handle","painting"]},styles:["solid"],label:"Brush",svg:{solid:{viewBox:["0","0","384","512"],path:"M352 0H32C14.33 0 0 14.33 0 32v224h384V32c0-17.67-14.33-32-32-32zM0 320c0 35.35 28.66 64 64 64h64v64c0 35.35 28.66 64 64 64s64-28.65 64-64v-64h64c35.34 0 64-28.65 64-64v-32H0v32zm192 104c13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24s-24-10.75-24-24c0-13.26 10.75-24 24-24z"}}},btc:{search:{terms:[]},styles:["brands"],label:"BTC",svg:{brands:{viewBox:["0","0","384","512"],path:"M310.204 242.638c27.73-14.18 45.377-39.39 41.28-81.3-5.358-57.351-52.458-76.573-114.85-81.929V0h-48.528v77.203c-12.605 0-25.525.315-38.444.63V0h-48.528v79.409c-17.842.539-38.622.276-97.37 0v51.678c38.314-.678 58.417-3.14 63.023 21.427v217.429c-2.925 19.492-18.524 16.685-53.255 16.071L3.765 443.68c88.481 0 97.37.315 97.37.315V512h48.528v-67.06c13.234.315 26.154.315 38.444.315V512h48.528v-68.005c81.299-4.412 135.647-24.894 142.895-101.467 5.671-61.446-23.32-88.862-69.326-99.89zM150.608 134.553c27.415 0 113.126-8.507 113.126 48.528 0 54.515-85.71 48.212-113.126 48.212v-96.74zm0 251.776V279.821c32.772 0 133.127-9.138 133.127 53.255-.001 60.186-100.355 53.253-133.127 53.253z"}}},bug:{search:{terms:["insect","report"]},styles:["solid"],label:"Bug",svg:{solid:{viewBox:["0","0","512","512"],path:"M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"}}},building:{search:{terms:["apartment","business","company","office","work"]},styles:["solid","regular"],label:"Building",svg:{solid:{viewBox:["0","0","448","512"],path:"M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M128 148v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12zm140 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-128 96h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm128 0h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-76 84v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm76 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm180 124v36H0v-36c0-6.6 5.4-12 12-12h19.5V24c0-13.3 10.7-24 24-24h337c13.3 0 24 10.7 24 24v440H436c6.6 0 12 5.4 12 12zM79.5 463H192v-67c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v67h112.5V49L80 48l-.5 415z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M128 148v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12zm140 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-128 96h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm128 0h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-76 84v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm76 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm180 124v36H0v-36c0-6.6 5.4-12 12-12h19.5V24c0-13.3 10.7-24 24-24h337c13.3 0 24 10.7 24 24v440H436c6.6 0 12 5.4 12 12zM79.5 463H192v-67c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v67h112.5V49L80 48l-.5 415z"}}},bullhorn:{search:{terms:["announcement","broadcast","louder","megaphone","share"]},styles:["solid"],label:"bullhorn",svg:{solid:{viewBox:["0","0","576","512"],path:"M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"}}},bullseye:{search:{terms:["target"]},styles:["solid"],label:"Bullseye",svg:{solid:{viewBox:["0","0","496","512"],path:"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"}}},burn:{search:{terms:["energy"]},styles:["solid"],label:"Burn",svg:{solid:{viewBox:["0","0","384","512"],path:"M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"}}},buromobelexperte:{search:{terms:[]},styles:["brands"],label:"B\xfcrom\xf6bel-Experte GmbH & Co. KG.",svg:{brands:{viewBox:["0","0","448","512"],path:"M0 32v128h128V32H0zm120 120H8V40h112v112zm40-120v128h128V32H160zm120 120H168V40h112v112zm40-120v128h128V32H320zm120 120H328V40h112v112zM0 192v128h128V192H0zm120 120H8V200h112v112zm40-120v128h128V192H160zm120 120H168V200h112v112zm40-120v128h128V192H320zm120 120H328V200h112v112zM0 352v128h128V352H0zm120 120H8V360h112v112zm40-120v128h128V352H160zm120 120H168V360h112v112zm40-120v128h128V352H320z"}}},bus:{search:{terms:["machine","public transportation","transportation","vehicle"]},styles:["solid"],label:"Bus",svg:{solid:{viewBox:["0","0","512","512"],path:"M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"}}},"bus-alt":{search:{terms:["machine","public transportation","transportation","vehicle"]},styles:["solid"],label:"Bus Alt",svg:{solid:{viewBox:["0","0","512","512"],path:"M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM160 72c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H168c-4.42 0-8-3.58-8-8V72zm-48 328c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128-112H128c-17.67 0-32-14.33-32-32v-96c0-17.67 14.33-32 32-32h112v160zm32 0V128h112c17.67 0 32 14.33 32 32v96c0 17.67-14.33 32-32 32H272zm128 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"}}},"business-time":{search:{terms:["briefcase","business socks","clock","flight of the conchords","wednesday"]},styles:["solid"],label:"Business Time",svg:{solid:{viewBox:["0","0","640","512"],path:"M496 224c-79.59 0-144 64.41-144 144s64.41 144 144 144 144-64.41 144-144-64.41-144-144-144zm64 150.29c0 5.34-4.37 9.71-9.71 9.71h-60.57c-5.34 0-9.71-4.37-9.71-9.71v-76.57c0-5.34 4.37-9.71 9.71-9.71h12.57c5.34 0 9.71 4.37 9.71 9.71V352h38.29c5.34 0 9.71 4.37 9.71 9.71v12.58zM496 192c5.4 0 10.72.33 16 .81V144c0-25.6-22.4-48-48-48h-80V48c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h395.12c28.6-20.09 63.35-32 100.88-32zM320 96H192V64h128v32zm6.82 224H208c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h291.43C327.1 423.96 320 396.82 320 368c0-16.66 2.48-32.72 6.82-48z"}}},buysellads:{search:{terms:[]},styles:["brands"],label:"BuySellAds",svg:{brands:{viewBox:["0","0","448","512"],path:"M224 150.7l42.9 160.7h-85.8L224 150.7zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-65.3 325.3l-94.5-298.7H159.8L65.3 405.3H156l111.7-91.6 24.2 91.6h90.8z"}}},calculator:{search:{terms:[]},styles:["solid"],label:"Calculator",svg:{solid:{viewBox:["0","0","448","512"],path:"M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"}}},calendar:{search:{terms:["calendar-o","date","event","schedule","time","when"]},styles:["solid","regular"],label:"Calendar",svg:{solid:{viewBox:["0","0","448","512"],path:"M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 64h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V160h352v298c0 3.3-2.7 6-6 6z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M400 64h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V160h352v298c0 3.3-2.7 6-6 6z"}}},"calendar-alt":{search:{terms:["calendar","date","event","schedule","time","when"]},styles:["solid","regular"],label:"Alternate Calendar",svg:{solid:{viewBox:["0","0","448","512"],path:"M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm116 204c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}}},"calendar-check":{search:{terms:["accept","agree","appointment","confirm","correct","done","ok","select","success","todo"]},styles:["solid","regular"],label:"Calendar Check",svg:{solid:{viewBox:["0","0","448","512"],path:"M436 160H12c-6.627 0-12-5.373-12-12v-36c0-26.51 21.49-48 48-48h48V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h128V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h48c26.51 0 48 21.49 48 48v36c0 6.627-5.373 12-12 12zM12 192h424c6.627 0 12 5.373 12 12v260c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V204c0-6.627 5.373-12 12-12zm333.296 95.947l-28.169-28.398c-4.667-4.705-12.265-4.736-16.97-.068L194.12 364.665l-45.98-46.352c-4.667-4.705-12.266-4.736-16.971-.068l-28.397 28.17c-4.705 4.667-4.736 12.265-.068 16.97l82.601 83.269c4.667 4.705 12.265 4.736 16.97.068l142.953-141.805c4.705-4.667 4.736-12.265.068-16.97z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 64h-48V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H160V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 400H54a6 6 0 0 1-6-6V160h352v298a6 6 0 0 1-6 6zm-52.849-200.65L198.842 404.519c-4.705 4.667-12.303 4.637-16.971-.068l-75.091-75.699c-4.667-4.705-4.637-12.303.068-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l44.104 44.461 111.072-110.181c4.705-4.667 12.303-4.637 16.971.068l22.536 22.718c4.667 4.705 4.636 12.303-.069 16.97z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M400 64h-48V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H160V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 400H54a6 6 0 0 1-6-6V160h352v298a6 6 0 0 1-6 6zm-52.849-200.65L198.842 404.519c-4.705 4.667-12.303 4.637-16.971-.068l-75.091-75.699c-4.667-4.705-4.637-12.303.068-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l44.104 44.461 111.072-110.181c4.705-4.667 12.303-4.637 16.971.068l22.536 22.718c4.667 4.705 4.636 12.303-.069 16.97z"}}},"calendar-minus":{search:{terms:["delete","negative","remove"]},styles:["solid","regular"],label:"Calendar Minus",svg:{solid:{viewBox:["0","0","448","512"],path:"M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm304 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H132c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h184z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M124 328c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v24c0 6.6-5.4 12-12 12H124zm324-216v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M124 328c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v24c0 6.6-5.4 12-12 12H124zm324-216v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}}},"calendar-plus":{search:{terms:["add","create","new","positive"]},styles:["solid","regular"],label:"Calendar Plus",svg:{solid:{viewBox:["0","0","448","512"],path:"M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm316 140c0-6.6-5.4-12-12-12h-60v-60c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v60h-60c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h60v60c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-60h60c6.6 0 12-5.4 12-12v-40z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M336 292v24c0 6.6-5.4 12-12 12h-76v76c0 6.6-5.4 12-12 12h-24c-6.6 0-12-5.4-12-12v-76h-76c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h76v-76c0-6.6 5.4-12 12-12h24c6.6 0 12 5.4 12 12v76h76c6.6 0 12 5.4 12 12zm112-180v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M336 292v24c0 6.6-5.4 12-12 12h-76v76c0 6.6-5.4 12-12 12h-24c-6.6 0-12-5.4-12-12v-76h-76c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h76v-76c0-6.6 5.4-12 12-12h24c6.6 0 12 5.4 12 12v76h76c6.6 0 12 5.4 12 12zm112-180v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}}},"calendar-times":{search:{terms:["archive","delete","remove","x"]},styles:["solid","regular"],label:"Calendar Times",svg:{solid:{viewBox:["0","0","448","512"],path:"M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm257.3 160l48.1-48.1c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0L224 306.7l-48.1-48.1c-4.7-4.7-12.3-4.7-17 0l-28.3 28.3c-4.7 4.7-4.7 12.3 0 17l48.1 48.1-48.1 48.1c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l48.1-48.1 48.1 48.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L269.3 352z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M311.7 374.7l-17 17c-4.7 4.7-12.3 4.7-17 0L224 337.9l-53.7 53.7c-4.7 4.7-12.3 4.7-17 0l-17-17c-4.7-4.7-4.7-12.3 0-17l53.7-53.7-53.7-53.7c-4.7-4.7-4.7-12.3 0-17l17-17c4.7-4.7 12.3-4.7 17 0l53.7 53.7 53.7-53.7c4.7-4.7 12.3-4.7 17 0l17 17c4.7 4.7 4.7 12.3 0 17L257.9 304l53.7 53.7c4.8 4.7 4.8 12.3.1 17zM448 112v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M311.7 374.7l-17 17c-4.7 4.7-12.3 4.7-17 0L224 337.9l-53.7 53.7c-4.7 4.7-12.3 4.7-17 0l-17-17c-4.7-4.7-4.7-12.3 0-17l53.7-53.7-53.7-53.7c-4.7-4.7-4.7-12.3 0-17l17-17c4.7-4.7 12.3-4.7 17 0l53.7 53.7 53.7-53.7c4.7-4.7 12.3-4.7 17 0l17 17c4.7 4.7 4.7 12.3 0 17L257.9 304l53.7 53.7c4.8 4.7 4.8 12.3.1 17zM448 112v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}}},camera:{search:{terms:["photo","picture","record"]},styles:["solid"],label:"camera",svg:{solid:{viewBox:["0","0","512","512"],path:"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"}}},"camera-retro":{search:{terms:["photo","picture","record"]},styles:["solid"],label:"Retro Camera",svg:{solid:{viewBox:["0","0","512","512"],path:"M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"}}},campground:{search:{terms:["camping","fall","outdoors","seasonal","tent"]},styles:["solid"],label:"Campground",svg:{solid:{viewBox:["0","0","640","512"],path:"M624 448h-24.68L359.54 117.75l53.41-73.55c5.19-7.15 3.61-17.16-3.54-22.35l-25.9-18.79c-7.15-5.19-17.15-3.61-22.35 3.55L320 63.3 278.83 6.6c-5.19-7.15-15.2-8.74-22.35-3.55l-25.88 18.8c-7.15 5.19-8.74 15.2-3.54 22.35l53.41 73.55L40.68 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM320 288l116.36 160H203.64L320 288z"}}},cannabis:{search:{terms:["bud","chronic","drugs","endica","endo","ganja","marijuana","mary jane","pot","reefer","sativa","spliff","weed","whacky-tabacky"]},styles:["solid"],label:"Cannabis",svg:{solid:{viewBox:["0","0","512","512"],path:"M503.47 360.25c-1.56-.82-32.39-16.89-76.78-25.81 64.25-75.12 84.05-161.67 84.93-165.64 1.18-5.33-.44-10.9-4.3-14.77-3.03-3.04-7.12-4.7-11.32-4.7-1.14 0-2.29.12-3.44.38-3.88.85-86.54 19.59-160.58 79.76.01-1.46.01-2.93.01-4.4 0-118.79-59.98-213.72-62.53-217.7A15.973 15.973 0 0 0 256 0c-5.45 0-10.53 2.78-13.47 7.37-2.55 3.98-62.53 98.91-62.53 217.7 0 1.47.01 2.94.01 4.4-74.03-60.16-156.69-78.9-160.58-79.76-1.14-.25-2.29-.38-3.44-.38-4.2 0-8.29 1.66-11.32 4.7A15.986 15.986 0 0 0 .38 168.8c.88 3.97 20.68 90.52 84.93 165.64-44.39 8.92-75.21 24.99-76.78 25.81a16.003 16.003 0 0 0-.02 28.29c2.45 1.29 60.76 31.72 133.49 31.72 6.14 0 11.96-.1 17.5-.31-11.37 22.23-16.52 38.31-16.81 39.22-1.8 5.68-.29 11.89 3.91 16.11a16.019 16.019 0 0 0 16.1 3.99c1.83-.57 37.72-11.99 77.3-39.29V504c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-64.01c39.58 27.3 75.47 38.71 77.3 39.29a16.019 16.019 0 0 0 16.1-3.99c4.2-4.22 5.71-10.43 3.91-16.11-.29-.91-5.45-16.99-16.81-39.22 5.54.21 11.37.31 17.5.31 72.72 0 131.04-30.43 133.49-31.72 5.24-2.78 8.52-8.22 8.51-14.15-.01-5.94-3.29-11.39-8.53-14.15z"}}},capsules:{search:{terms:["drugs","medicine"]},styles:["solid"],label:"Capsules",svg:{solid:{viewBox:["0","0","576","512"],path:"M555.3 300.1L424.2 112.8C401.9 81 366.4 64 330.4 64c-22.6 0-45.5 6.7-65.5 20.7-19.7 13.8-33.7 32.8-41.5 53.8C220.5 79.2 172 32 112 32 50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V218.9c3.3 8.6 7.3 17.1 12.8 25L368 431.2c22.2 31.8 57.7 48.8 93.8 48.8 22.7 0 45.5-6.7 65.5-20.7 51.7-36.2 64.2-107.5 28-159.2zM160 256H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm194.8 44.9l-65.6-93.7c-7.7-11-10.7-24.4-8.3-37.6 2.3-13.2 9.7-24.8 20.7-32.5 8.5-6 18.5-9.1 28.8-9.1 16.5 0 31.9 8 41.3 21.5l65.6 93.7-82.5 57.7z"}}},car:{search:{terms:["machine","transportation","vehicle"]},styles:["solid"],label:"Car",svg:{solid:{viewBox:["0","0","512","512"],path:"M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"}}},"car-alt":{search:{terms:[]},styles:["solid"],label:"Alternate Car",svg:{solid:{viewBox:["0","0","480","512"],path:"M438.66 212.33l-11.24-28.1-19.93-49.83C390.38 91.63 349.57 64 303.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4l-19.93 49.83-11.24 28.1C17.22 221.5 0 244.66 0 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-27.34-17.22-50.5-41.34-59.67zm-306.73-54.16c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L368 208H112l19.93-49.83zM80 319.8c-19.2 0-32-12.76-32-31.9S60.8 256 80 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S380.8 256 400 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"}}},"car-battery":{search:{terms:[]},styles:["solid"],label:"Car Battery",svg:{solid:{viewBox:["0","0","512","512"],path:"M480 128h-32V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v48H192V80c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v48H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zM192 264c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm256 0c0 4.42-3.58 8-8 8h-40v40c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-40h-40c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h40v-40c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v40h40c4.42 0 8 3.58 8 8v16z"}}},"car-crash":{search:{terms:[]},styles:["solid"],label:"Car Crash",svg:{solid:{viewBox:["0","0","640","512"],path:"M143.25 220.81l-12.42 46.37c-3.01 11.25-3.63 22.89-2.41 34.39l-35.2 28.98c-6.57 5.41-16.31-.43-14.62-8.77l15.44-76.68c1.06-5.26-2.66-10.28-8-10.79l-77.86-7.55c-8.47-.82-11.23-11.83-4.14-16.54l65.15-43.3c4.46-2.97 5.38-9.15 1.98-13.29L21.46 93.22c-5.41-6.57.43-16.3 8.78-14.62l76.68 15.44c5.26 1.06 10.28-2.66 10.8-8l7.55-77.86c.82-8.48 11.83-11.23 16.55-4.14l43.3 65.14c2.97 4.46 9.15 5.38 13.29 1.98l60.4-49.71c6.57-5.41 16.3.43 14.62 8.77L262.1 86.38c-2.71 3.05-5.43 6.09-7.91 9.4l-32.15 42.97-10.71 14.32c-32.73 8.76-59.18 34.53-68.08 67.74zm494.57 132.51l-12.42 46.36c-3.13 11.68-9.38 21.61-17.55 29.36a66.876 66.876 0 0 1-8.76 7l-13.99 52.23c-1.14 4.27-3.1 8.1-5.65 11.38-7.67 9.84-20.74 14.68-33.54 11.25L515 502.62c-17.07-4.57-27.2-22.12-22.63-39.19l8.28-30.91-247.28-66.26-8.28 30.91c-4.57 17.07-22.12 27.2-39.19 22.63l-30.91-8.28c-12.8-3.43-21.7-14.16-23.42-26.51-.57-4.12-.35-8.42.79-12.68l13.99-52.23a66.62 66.62 0 0 1-4.09-10.45c-3.2-10.79-3.65-22.52-.52-34.2l12.42-46.37c5.31-19.8 19.36-34.83 36.89-42.21a64.336 64.336 0 0 1 18.49-4.72l18.13-24.23 32.15-42.97c3.45-4.61 7.19-8.9 11.2-12.84 8-7.89 17.03-14.44 26.74-19.51 4.86-2.54 9.89-4.71 15.05-6.49 10.33-3.58 21.19-5.63 32.24-6.04 11.05-.41 22.31.82 33.43 3.8l122.68 32.87c11.12 2.98 21.48 7.54 30.85 13.43a111.11 111.11 0 0 1 34.69 34.5c8.82 13.88 14.64 29.84 16.68 46.99l6.36 53.29 3.59 30.05a64.49 64.49 0 0 1 22.74 29.93c4.39 11.88 5.29 25.19 1.75 38.39zM255.58 234.34c-18.55-4.97-34.21 4.04-39.17 22.53-4.96 18.49 4.11 34.12 22.65 39.09 18.55 4.97 45.54 15.51 50.49-2.98 4.96-18.49-15.43-53.67-33.97-58.64zm290.61 28.17l-6.36-53.29c-.58-4.87-1.89-9.53-3.82-13.86-5.8-12.99-17.2-23.01-31.42-26.82l-122.68-32.87a48.008 48.008 0 0 0-50.86 17.61l-32.15 42.97 172 46.08 75.29 20.18zm18.49 54.65c-18.55-4.97-53.8 15.31-58.75 33.79-4.95 18.49 23.69 22.86 42.24 27.83 18.55 4.97 34.21-4.04 39.17-22.53 4.95-18.48-4.11-34.12-22.66-39.09z"}}},"car-side":{search:{terms:[]},styles:["solid"],label:"Car Side",svg:{solid:{viewBox:["0","0","640","512"],path:"M544 192h-16L419.22 56.02A64.025 64.025 0 0 0 369.24 32H155.33c-26.17 0-49.7 15.93-59.42 40.23L48 194.26C20.44 201.4 0 226.21 0 256v112c0 8.84 7.16 16 16 16h48c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h48c8.84 0 16-7.16 16-16v-80c0-53.02-42.98-96-96-96zM160 432c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm72-240H116.93l38.4-96H232v96zm48 0V96h89.24l76.8 96H280zm200 240c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"}}},"caret-down":{search:{terms:["arrow","dropdown","menu","more","triangle down"]},styles:["solid"],label:"Caret Down",svg:{solid:{viewBox:["0","0","320","512"],path:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"}}},"caret-left":{search:{terms:["arrow","back","previous","triangle left"]},styles:["solid"],label:"Caret Left",svg:{solid:{viewBox:["0","0","192","512"],path:"M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"}}},"caret-right":{search:{terms:["arrow","forward","next","triangle right"]},styles:["solid"],label:"Caret Right",svg:{solid:{viewBox:["0","0","192","512"],path:"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"}}},"caret-square-down":{search:{terms:["caret-square-o-down","dropdown","menu","more"]},styles:["solid","regular"],label:"Caret Square Down",svg:{solid:{viewBox:["0","0","448","512"],path:"M448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM92.5 220.5l123 123c4.7 4.7 12.3 4.7 17 0l123-123c7.6-7.6 2.2-20.5-8.5-20.5H101c-10.7 0-16.1 12.9-8.5 20.5z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M125.1 208h197.8c10.7 0 16.1 13 8.5 20.5l-98.9 98.3c-4.7 4.7-12.2 4.7-16.9 0l-98.9-98.3c-7.7-7.5-2.3-20.5 8.4-20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M125.1 208h197.8c10.7 0 16.1 13 8.5 20.5l-98.9 98.3c-4.7 4.7-12.2 4.7-16.9 0l-98.9-98.3c-7.7-7.5-2.3-20.5 8.4-20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}}},"caret-square-left":{search:{terms:["back","caret-square-o-left","previous"]},styles:["solid","regular"],label:"Caret Square Left",svg:{solid:{viewBox:["0","0","448","512"],path:"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM259.515 124.485l-123.03 123.03c-4.686 4.686-4.686 12.284 0 16.971l123.029 123.029c7.56 7.56 20.485 2.206 20.485-8.485V132.971c.001-10.691-12.925-16.045-20.484-8.486z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M272 157.1v197.8c0 10.7-13 16.1-20.5 8.5l-98.3-98.9c-4.7-4.7-4.7-12.2 0-16.9l98.3-98.9c7.5-7.7 20.5-2.3 20.5 8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M272 157.1v197.8c0 10.7-13 16.1-20.5 8.5l-98.3-98.9c-4.7-4.7-4.7-12.2 0-16.9l98.3-98.9c7.5-7.7 20.5-2.3 20.5 8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}}},"caret-square-right":{search:{terms:["caret-square-o-right","forward","next"]},styles:["solid","regular"],label:"Caret Square Right",svg:{solid:{viewBox:["0","0","448","512"],path:"M48 32h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48zm140.485 355.515l123.029-123.029c4.686-4.686 4.686-12.284 0-16.971l-123.029-123.03c-7.56-7.56-20.485-2.206-20.485 8.485v246.059c0 10.691 12.926 16.045 20.485 8.486z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M176 354.9V157.1c0-10.7 13-16.1 20.5-8.5l98.3 98.9c4.7 4.7 4.7 12.2 0 16.9l-98.3 98.9c-7.5 7.7-20.5 2.3-20.5-8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M176 354.9V157.1c0-10.7 13-16.1 20.5-8.5l98.3 98.9c4.7 4.7 4.7 12.2 0 16.9l-98.3 98.9c-7.5 7.7-20.5 2.3-20.5-8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}}},"caret-square-up":{search:{terms:["caret-square-o-up"]},styles:["solid","regular"],label:"Caret Square Up",svg:{solid:{viewBox:["0","0","448","512"],path:"M0 432V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48zm355.515-140.485l-123.03-123.03c-4.686-4.686-12.284-4.686-16.971 0L92.485 291.515c-7.56 7.56-2.206 20.485 8.485 20.485h246.059c10.691 0 16.045-12.926 8.486-20.485z"},regular:{last_modified:150092788e4,raw:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M322.9 304H125.1c-10.7 0-16.1-13-8.5-20.5l98.9-98.3c4.7-4.7 12.2-4.7 16.9 0l98.9 98.3c7.7 7.5 2.3 20.5-8.4 20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>',viewBox:["0","0","448","512"],width:448,height:512,path:"M322.9 304H125.1c-10.7 0-16.1-13-8.5-20.5l98.9-98.3c4.7-4.7 12.2-4.7 16.9 0l98.9 98.3c7.7 7.5 2.3 20.5-8.4 20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}}},"caret-up":{search:{terms:["arrow","triangle up"]},styles:["solid"],label:"Caret Up",svg:{solid:{viewBox:["0","0","320","512"],path:"M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"}}},"cart-arrow-down":{search:{terms:["shopping"]},styles:["solid"],label:"Shopping Cart Arrow Down",svg:{solid:{viewBox:["0","0","576","512"],path:"M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"}}},"cart-plus":{search:{terms:["add","create","new","positive","shopping"]},styles:["solid"],label:"Add to Shopping Cart",svg:{solid:{viewBox:["0","0","576","512"],path:"M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"}}},cat:{search:{terms:["feline","halloween","holiday","kitten","kitty","meow","pet"]},styles:["solid"],label:"Cat",svg:{solid:{viewBox:["0","0","512","512"],path:"M290.59 192c-20.18 0-106.82 1.98-162.59 85.95V192c0-52.94-43.06-96-96-96-17.67 0-32 14.33-32 32s14.33 32 32 32c17.64 0 32 14.36 32 32v256c0 35.3 28.7 64 64 64h176c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-32l128-96v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V289.86c-10.29 2.67-20.89 4.54-32 4.54-61.81 0-113.52-44.05-125.41-102.4zM448 96h-64l-64-64v134.4c0 53.02 42.98 96 96 96s96-42.98 96-96V32l-64 64zm-72 80c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm80 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"}}},"cc-amazon-pay":{search:{terms:[]},styles:["brands"],label:"Amazon Pay Credit Card",svg:{brands:{viewBox:["0","0","576","512"],path:"M124.7 201.8c.1-11.8 0-23.5 0-35.3v-35.3c0-1.3.4-2 1.4-2.7 11.5-8 24.1-12.1 38.2-11.1 12.5.9 22.7 7 28.1 21.7 3.3 8.9 4.1 18.2 4.1 27.7 0 8.7-.7 17.3-3.4 25.6-5.7 17.8-18.7 24.7-35.7 23.9-11.7-.5-21.9-5-31.4-11.7-.9-.8-1.4-1.6-1.3-2.8zm154.9 14.6c4.6 1.8 9.3 2 14.1 1.5 11.6-1.2 21.9-5.7 31.3-12.5.9-.6 1.3-1.3 1.3-2.5-.1-3.9 0-7.9 0-11.8 0-4-.1-8 0-12 0-1.4-.4-2-1.8-2.2-7-.9-13.9-2.2-20.9-2.9-7-.6-14-.3-20.8 1.9-6.7 2.2-11.7 6.2-13.7 13.1-1.6 5.4-1.6 10.8.1 16.2 1.6 5.5 5.2 9.2 10.4 11.2zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zm-207.5 23.9c.4 1.7.9 3.4 1.6 5.1 16.5 40.6 32.9 81.3 49.5 121.9 1.4 3.5 1.7 6.4.2 9.9-2.8 6.2-4.9 12.6-7.8 18.7-2.6 5.5-6.7 9.5-12.7 11.2-4.2 1.1-8.5 1.3-12.9.9-2.1-.2-4.2-.7-6.3-.8-2.8-.2-4.2 1.1-4.3 4-.1 2.8-.1 5.6 0 8.3.1 4.6 1.6 6.7 6.2 7.5 4.7.8 9.4 1.6 14.2 1.7 14.3.3 25.7-5.4 33.1-17.9 2.9-4.9 5.6-10.1 7.7-15.4 19.8-50.1 39.5-100.3 59.2-150.5.6-1.5 1.1-3 1.3-4.6.4-2.4-.7-3.6-3.1-3.7-5.6-.1-11.1 0-16.7 0-3.1 0-5.3 1.4-6.4 4.3-.4 1.1-.9 2.3-1.3 3.4l-29.1 83.7c-2.1 6.1-4.2 12.1-6.5 18.6-.4-.9-.6-1.4-.8-1.9-10.8-29.9-21.6-59.9-32.4-89.8-1.7-4.7-3.5-9.5-5.3-14.2-.9-2.5-2.7-4-5.4-4-6.4-.1-12.8-.2-19.2-.1-2.2 0-3.3 1.6-2.8 3.7zM242.4 206c1.7 11.7 7.6 20.8 18 26.6 9.9 5.5 20.7 6.2 31.7 4.6 12.7-1.9 23.9-7.3 33.8-15.5.4-.3.8-.6 1.4-1 .5 3.2.9 6.2 1.5 9.2.5 2.6 2.1 4.3 4.5 4.4 4.6.1 9.1.1 13.7 0 2.3-.1 3.8-1.6 4-3.9.1-.8.1-1.6.1-2.3v-88.8c0-3.6-.2-7.2-.7-10.8-1.6-10.8-6.2-19.7-15.9-25.4-5.6-3.3-11.8-5-18.2-5.9-3-.4-6-.7-9.1-1.1h-10c-.8.1-1.6.3-2.5.3-8.2.4-16.3 1.4-24.2 3.5-5.1 1.3-10 3.2-15 4.9-3 1-4.5 3.2-4.4 6.5.1 2.8-.1 5.6 0 8.3.1 4.1 1.8 5.2 5.7 4.1 6.5-1.7 13.1-3.5 19.7-4.8 10.3-1.9 20.7-2.7 31.1-1.2 5.4.8 10.5 2.4 14.1 7 3.1 4 4.2 8.8 4.4 13.7.3 6.9.2 13.9.3 20.8 0 .4-.1.7-.2 1.2-.4 0-.8 0-1.1-.1-8.8-2.1-17.7-3.6-26.8-4.1-9.5-.5-18.9.1-27.9 3.2-10.8 3.8-19.5 10.3-24.6 20.8-4.1 8.3-4.6 17-3.4 25.8zM98.7 106.9v175.3c0 .8 0 1.7.1 2.5.2 2.5 1.7 4.1 4.1 4.2 5.9.1 11.8.1 17.7 0 2.5 0 4-1.7 4.1-4.1.1-.8.1-1.7.1-2.5v-60.7c.9.7 1.4 1.2 1.9 1.6 15 12.5 32.2 16.6 51.1 12.9 17.1-3.4 28.9-13.9 36.7-29.2 5.8-11.6 8.3-24.1 8.7-37 .5-14.3-1-28.4-6.8-41.7-7.1-16.4-18.9-27.3-36.7-30.9-2.7-.6-5.5-.8-8.2-1.2h-7c-1.2.2-2.4.3-3.6.5-11.7 1.4-22.3 5.8-31.8 12.7-2 1.4-3.9 3-5.9 4.5-.1-.5-.3-.8-.4-1.2-.4-2.3-.7-4.6-1.1-6.9-.6-3.9-2.5-5.5-6.4-5.6h-9.7c-5.9-.1-6.9 1-6.9 6.8zM493.6 339c-2.7-.7-5.1 0-7.6 1-43.9 18.4-89.5 30.2-136.8 35.8-14.5 1.7-29.1 2.8-43.7 3.2-26.6.7-53.2-.8-79.6-4.3-17.8-2.4-35.5-5.7-53-9.9-37-8.9-72.7-21.7-106.7-38.8-8.8-4.4-17.4-9.3-26.1-14-3.8-2.1-6.2-1.5-8.2 2.1v1.7c1.2 1.6 2.2 3.4 3.7 4.8 36 32.2 76.6 56.5 122 72.9 21.9 7.9 44.4 13.7 67.3 17.5 14 2.3 28 3.8 42.2 4.5 3 .1 6 .2 9 .4.7 0 1.4.2 2.1.3h17.7c.7-.1 1.4-.3 2.1-.3 14.9-.4 29.8-1.8 44.6-4 21.4-3.2 42.4-8.1 62.9-14.7 29.6-9.6 57.7-22.4 83.4-40.1 2.8-1.9 5.7-3.8 8-6.2 4.3-4.4 2.3-10.4-3.3-11.9zm50.4-27.7c-.8-4.2-4-5.8-7.6-7-5.7-1.9-11.6-2.8-17.6-3.3-11-.9-22-.4-32.8 1.6-12 2.2-23.4 6.1-33.5 13.1-1.2.8-2.4 1.8-3.1 3-.6.9-.7 2.3-.5 3.4.3 1.3 1.7 1.6 3 1.5.6 0 1.2 0 1.8-.1l19.5-2.1c9.6-.9 19.2-1.5 28.8-.8 4.1.3 8.1 1.2 12 2.2 4.3 1.1 6.2 4.4 6.4 8.7.3 6.7-1.2 13.1-2.9 19.5-3.5 12.9-8.3 25.4-13.3 37.8-.3.8-.7 1.7-.8 2.5-.4 2.5 1 4 3.4 3.5 1.4-.3 3-1.1 4-2.1 3.7-3.6 7.5-7.2 10.6-11.2 10.7-13.8 17-29.6 20.7-46.6.7-3 1.2-6.1 1.7-9.1.2-4.7.2-9.6.2-14.5z"}}},"cc-amex":{search:{terms:["amex"]},styles:["brands"],label:"American Express Credit Card",svg:{brands:{viewBox:["0","0","576","512"],path:"M576 255.4c-37.9-.2-44.2-.9-54.5 5v-5c-45.3 0-53.5-1.7-64.9 5.2v-5.2h-78.2v5.1c-11.4-6.5-21.4-5.1-75.7-5.1v5.6c-6.3-3.7-14.5-5.6-24.3-5.6h-58c-3.5 3.8-12.5 13.7-15.7 17.2-12.7-14.1-10.5-11.6-15.5-17.2h-83.1v92.3h82c3.3-3.5 12.9-13.9 16.1-17.4 12.7 14.3 10.3 11.7 15.4 17.4h48.9c0-14.7.1-8.3.1-23 11.5.2 24.3-.2 34.3-6.2 0 13.9-.1 17.1-.1 29.2h39.6c0-18.5.1-7.4.1-25.3 6.2 0 7.7 0 9.4.1.1 1.3 0 0 0 25.2 152.8 0 145.9 1.1 156.7-4.5v4.5c34.8 0 54.8 2.2 67.5-6.1V432c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V228.3h26.6c4.2-10.1 2.2-5.3 6.4-15.3h19.2c4.2 10 2.2 5.2 6.4 15.3h52.9v-11.4c2.2 5 1.1 2.5 5.1 11.4h29.5c2.4-5.5 2.6-5.8 5.1-11.4v11.4h135.5v-25.1c6.4 0 8-.1 9.8.2 0 0-.2 10.9.1 24.8h66.5v-8.9c7.4 5.9 17.4 8.9 29.7 8.9h26.8c4.2-10.1 2.2-5.3 6.4-15.3h19c6.5 15 .2.5 6.6 15.3h52.8v-21.9c11.8 19.7 7.8 12.9 13.2 21.9h41.6v-92h-39.9v18.4c-12.2-20.2-6.3-10.4-11.2-18.4h-43.3v20.6c-6.2-14.6-4.6-10.8-8.8-20.6h-32.4c-.4 0-2.3.2-2.3-.3h-27.6c-12.8 0-23.1 3.2-30.7 9.3v-9.3h-39.9v5.3c-10.8-6.1-20.7-5.1-64.4-5.3-.1 0-11.6-.1-11.6 0h-103c-2.5 6.1-6.8 16.4-12.6 30-2.8-6-11-23.8-13.9-30h-46V157c-7.4-17.4-4.7-11-9-21.1H22.9c-3.4 7.9-13.7 32-23.1 53.9V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48v175.4zm-186.6-80.6c-.3.2-1.4 2.2-1.4 7.6 0 6 .9 7.7 1.1 7.9.2.1 1.1.5 3.4.5l7.3-16.9c-1.1 0-2.1-.1-3.1-.1-5.6 0-7 .7-7.3 1zm-19.9 130.9c9.2 3.3 11 9.5 11 18.4l-.1 13.8h-16.6l.1-11.5c0-11.8-3.8-13.8-14.8-13.8h-17.6l-.1 25.3h-16.6l.1-69.3h39.4c13 0 27.1 2.3 27.1 18.7-.1 7.6-4.2 15.3-11.9 18.4zm-6.3-15.4c0-6.4-5.6-7.4-10.7-7.4h-21v15.6h20.7c5.6 0 11-1.3 11-8.2zm181.7-7.1H575v-14.6h-32.9c-12.8 0-23.8 6.6-23.8 20.7 0 33 42.7 12.8 42.7 27.4 0 5.1-4.3 6.4-8.4 6.4h-32l-.1 14.8h32c8.4 0 17.6-1.8 22.5-8.9v-25.8c-10.5-13.8-39.3-1.3-39.3-13.5 0-5.8 4.6-6.5 9.2-6.5zm-99.2-.3v-14.3h-55.2l-.1 69.3h55.2l.1-14.3-38.6-.3v-13.8H445v-14.1h-37.8v-12.5h38.5zm42.2 40.1h-32.2l-.1 14.8h32.2c14.8 0 26.2-5.6 26.2-22 0-33.2-42.9-11.2-42.9-26.3 0-5.6 4.9-6.4 9.2-6.4h30.4v-14.6h-33.2c-12.8 0-23.5 6.6-23.5 20.7 0 33 42.7 12.5 42.7 27.4-.1 5.4-4.7 6.4-8.8 6.4zm-78.1-158.7c-17.4-.3-33.2-4.1-33.2 19.7 0 11.8 2.8 19.9 16.1 19.9h7.4l23.5-54.5h24.8l27.9 65.4v-65.4h25.3l29.1 48.1v-48.1h16.9v69H524l-31.2-51.9v51.9h-33.7l-6.6-15.3h-34.3l-6.4 15.3h-19.2c-22.8 0-33-11.8-33-34 0-23.3 10.5-35.3 34-35.3h16.1v15.2zm14.3 24.5h22.8l-11.2-27.6-11.6 27.6zm-72.6-39.6h-16.9v69.3h16.9v-69.3zm-38.1 37.3c9.5 3.3 11 9.2 11 18.4v13.5h-16.6c-.3-14.8 3.6-25.1-14.8-25.1h-18v25.1h-16.4v-69.3l39.1.3c13.3 0 27.4 2 27.4 18.4.1 8-4.3 15.7-11.7 18.7zm-6.7-15.3c0-6.4-5.6-7.4-10.7-7.4h-21v15.3h20.7c5.7 0 11-1.3 11-7.9zm-59.5-7.4v-14.6h-55.5v69.3h55.5v-14.3h-38.9v-13.8h37.8v-14.1h-37.8v-12.5h38.9zm-84.6 54.7v-54.2l-24 54.2H124l-24-54.2v54.2H66.2l-6.4-15.3H25.3l-6.4 15.3H1l29.7-69.3h24.5l28.1 65.7v-65.7h27.1l21.7 47 19.7-47h27.6v69.3h-16.8zM53.9 188.8l-11.5-27.6-11.2 27.6h22.7zm253 102.5c0 27.9-30.4 23.3-49.3 23.3l-.1 23.3h-32.2l-20.4-23-21.3 23h-65.4l.1-69.3h66.5l20.5 22.8 21-22.8H279c15.6 0 27.9 5.4 27.9 22.7zm-112.7 11.8l-17.9-20.2h-41.7v12.5h36.3v14.1h-36.3v13.8h40.6l19-20.2zM241 276l-25.3 27.4 25.3 28.1V276zm48.3 15.3c0-6.1-4.6-8.4-10.2-8.4h-21.5v17.6h21.2c5.9 0 10.5-2.8 10.5-9.2z"}}},"cc-apple-pay":{search:{terms:[]},styles:["brands"],label:"Apple Pay Credit Card",svg:{brands:{viewBox:["0","0","576","512"],path:"M302.2 218.4c0 17.2-10.5 27.1-29 27.1h-24.3v-54.2h24.4c18.4 0 28.9 9.8 28.9 27.1zm47.5 62.6c0 8.3 7.2 13.7 18.5 13.7 14.4 0 25.2-9.1 25.2-21.9v-7.7l-23.5 1.5c-13.3.9-20.2 5.8-20.2 14.4zM576 79v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM127.8 197.2c8.4.7 16.8-4.2 22.1-10.4 5.2-6.4 8.6-15 7.7-23.7-7.4.3-16.6 4.9-21.9 11.3-4.8 5.5-8.9 14.4-7.9 22.8zm60.6 74.5c-.2-.2-19.6-7.6-19.8-30-.2-18.7 15.3-27.7 16-28.2-8.8-13-22.4-14.4-27.1-14.7-12.2-.7-22.6 6.9-28.4 6.9-5.9 0-14.7-6.6-24.3-6.4-12.5.2-24.2 7.3-30.5 18.6-13.1 22.6-3.4 56 9.3 74.4 6.2 9.1 13.7 19.1 23.5 18.7 9.3-.4 13-6 24.2-6 11.3 0 14.5 6 24.3 5.9 10.2-.2 16.5-9.1 22.8-18.2 6.9-10.4 9.8-20.4 10-21zm135.4-53.4c0-26.6-18.5-44.8-44.9-44.8h-51.2v136.4h21.2v-46.6h29.3c26.8 0 45.6-18.4 45.6-45zm90 23.7c0-19.7-15.8-32.4-40-32.4-22.5 0-39.1 12.9-39.7 30.5h19.1c1.6-8.4 9.4-13.9 20-13.9 13 0 20.2 6 20.2 17.2v7.5l-26.4 1.6c-24.6 1.5-37.9 11.6-37.9 29.1 0 17.7 13.7 29.4 33.4 29.4 13.3 0 25.6-6.7 31.2-17.4h.4V310h19.6v-68zM516 210.9h-21.5l-24.9 80.6h-.4l-24.9-80.6H422l35.9 99.3-1.9 6c-3.2 10.2-8.5 14.2-17.9 14.2-1.7 0-4.9-.2-6.2-.3v16.4c1.2.4 6.5.5 8.1.5 20.7 0 30.4-7.9 38.9-31.8L516 210.9z"}}},"cc-diners-club":{search:{terms:[]},styles:["brands"],label:"Diner's Club Credit Card",svg:{brands:{viewBox:["0","0","576","512"],path:"M239.7 79.9c-96.9 0-175.8 78.6-175.8 175.8 0 96.9 78.9 175.8 175.8 175.8 97.2 0 175.8-78.9 175.8-175.8 0-97.2-78.6-175.8-175.8-175.8zm-39.9 279.6c-41.7-15.9-71.4-56.4-71.4-103.8s29.7-87.9 71.4-104.1v207.9zm79.8.3V151.6c41.7 16.2 71.4 56.7 71.4 104.1s-29.7 87.9-71.4 104.1zM528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM329.7 448h-90.3c-106.2 0-193.8-85.5-193.8-190.2C45.6 143.2 133.2 64 239.4 64h90.3c105 0 200.7 79.2 200.7 193.8 0 104.7-95.7 190.2-200.7 190.2z"}}},"cc-discover":{search:{terms:[]},styles:["brands"],label:"Discover Credit Card",svg:{brands:{viewBox:["0","0","576","512"],path:"M83 212.1c0 7.9-3.2 15.5-8.9 20.7-4.9 4.4-11.6 6.4-21.9 6.4H48V185h4.2c10.3 0 16.7 1.7 21.9 6.6 5.7 5 8.9 12.6 8.9 20.5zM504.8 184h-4.9v24.9h4.7c10.3 0 15.8-4.4 15.8-12.8 0-7.9-5.5-12.1-15.6-12.1zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM428 253h45.3v-13.8H444V217h28.3v-13.8H444V185h29.3v-14H428v82zm-86.2-82l35 84.2h8.6l35.5-84.2h-17.5l-22.2 55.2-21.9-55.2h-17.5zm-83 41.6c0 24.6 19.9 44.6 44.6 44.6 24.6 0 44.6-19.9 44.6-44.6 0-24.6-19.9-44.6-44.6-44.6-24.6 0-44.6 19.9-44.6 44.6zm-68-.5c0 32.5 33.6 52.5 63.3 38.2v-19c-19.3 19.3-46.8 5.8-46.8-19.2 0-23.7 26.7-39.1 46.8-19v-19c-30.2-15-63.3 6.8-63.3 38zm-33.9 28.3c-7.6 0-13.8-3.7-17.5-10.8l-10.3 9.9c17.8 26.1 56.6 18.2 56.6-11.3 0-13.1-5.4-19-23.6-25.6-9.6-3.4-12.3-5.9-12.3-10.3 0-8.7 14.5-14.1 24.9-2.5l8.4-10.8c-19.1-17.1-49.7-8.9-49.7 14.3 0 11.3 5.2 17.2 20.2 22.7 25.7 9.1 14.7 24.4 3.3 24.4zm-57.4-28.3c0-24.1-18-41.1-44.1-41.1H32v82h23.4c30.9 0 44.1-22.4 44.1-40.9zm23.4-41.1h-16v82h16v-82zM544 288c-33.3 20.8-226.4 124.4-416 160h401c8.2 0 15-6.8 15-15V288zm0-35l-25.9-34.5c12.1-2.5 18.7-10.6 18.7-23.2 0-28.5-30.3-24.4-52.9-24.4v82h16v-32.8h2.2l22.2 32.8H544z"}}},"cc-jcb":{search:{terms:[]},styles:["brands"],label:"JCB Credit Card",svg:{brands:{viewBox:["0","0","576","512"],path:"M431.5 244.3V212c41.2 0 38.5.2 38.5.2 7.3 1.3 13.3 7.3 13.3 16 0 8.8-6 14.5-13.3 15.8-1.2.4-3.3.3-38.5.3zm42.8 20.2c-2.8-.7-3.3-.5-42.8-.5v35c39.6 0 40 .2 42.8-.5 7.5-1.5 13.5-8 13.5-17 0-8.7-6-15.5-13.5-17zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM182 192.3h-57c0 67.1 10.7 109.7-35.8 109.7-19.5 0-38.8-5.7-57.2-14.8v28c30 8.3 68 8.3 68 8.3 97.9 0 82-47.7 82-131.2zm178.5 4.5c-6