Version Description
- Fix: CSS not applying to inner blocks on front end in some cases.
Download this release
Release Info
Developer | vrundakansara |
Plugin | Gutenberg Blocks – Ultimate Addons for Gutenberg |
Version | 1.12.4 |
Comparing to | |
See all releases |
Code changes from version 1.12.3 to 1.12.4
- classes/class-uagb-block-helper.php +5112 -5112
- classes/class-uagb-config.php +1706 -1706
- classes/class-uagb-helper.php +1090 -1086
- classes/class-uagb-init-blocks.php +366 -366
- classes/class-uagb-loader.php +210 -210
- dist/blocks.style.build.css +19 -19
- dist/blocks/post/index.php +0 -1503
classes/class-uagb-block-helper.php
CHANGED
@@ -1,5112 +1,5112 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* UAGB Block Helper.
|
4 |
-
*
|
5 |
-
* @package UAGB
|
6 |
-
*/
|
7 |
-
|
8 |
-
if ( ! class_exists( 'UAGB_Block_Helper' ) ) {
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Class UAGB_Block_Helper.
|
12 |
-
*/
|
13 |
-
class UAGB_Block_Helper {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Get Section Block CSS
|
17 |
-
*
|
18 |
-
* @since 0.0.1
|
19 |
-
* @param array $attr The block attributes.
|
20 |
-
* @param string $id The selector ID.
|
21 |
-
* @return array The Widget List.
|
22 |
-
*/
|
23 |
-
public static function get_section_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
24 |
-
|
25 |
-
global $content_width;
|
26 |
-
|
27 |
-
$defaults = UAGB_Helper::$block_list['uagb/section']['attributes'];
|
28 |
-
|
29 |
-
$attr = array_merge( $defaults, $attr );
|
30 |
-
|
31 |
-
$bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
|
32 |
-
|
33 |
-
$style = array(
|
34 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], 'px' ),
|
35 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], 'px' ),
|
36 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], 'px' ),
|
37 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], 'px' ),
|
38 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' )
|
39 |
-
);
|
40 |
-
|
41 |
-
$m_selectors = array();
|
42 |
-
$t_selectors = array();
|
43 |
-
|
44 |
-
if ( 'right' == $attr['align'] ) {
|
45 |
-
$style['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMargin'], 'px' );
|
46 |
-
$style['margin-left'] = 'auto';
|
47 |
-
$style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], 'px' );
|
48 |
-
$style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' );
|
49 |
-
} elseif ( 'left' == $attr['align'] ) {
|
50 |
-
$style['margin-right'] = 'auto';
|
51 |
-
$style['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMargin'], 'px' );
|
52 |
-
$style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], 'px' );
|
53 |
-
$style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' );
|
54 |
-
} elseif ( 'center' == $attr['align'] ) {
|
55 |
-
$style['margin-right'] = 'auto';
|
56 |
-
$style['margin-left'] = 'auto';
|
57 |
-
$style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], 'px' );
|
58 |
-
$style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' );
|
59 |
-
} else {
|
60 |
-
$style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], 'px' );
|
61 |
-
$style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' );
|
62 |
-
}
|
63 |
-
|
64 |
-
if ( "none" != $attr['borderStyle'] ) {
|
65 |
-
$style["border-style"] = $attr['borderStyle'];
|
66 |
-
$style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
|
67 |
-
$style["border-color"] = $attr['borderColor'];
|
68 |
-
}
|
69 |
-
|
70 |
-
$position = str_replace( '-', ' ', $attr['backgroundPosition'] );
|
71 |
-
|
72 |
-
$section_width = '100%';
|
73 |
-
|
74 |
-
if ( isset( $attr['contentWidth'] ) ) {
|
75 |
-
|
76 |
-
if ( 'boxed' == $attr['contentWidth'] ) {
|
77 |
-
if ( isset( $attr['width'] ) ) {
|
78 |
-
$section_width = UAGB_Helper::get_css_value( $attr['width'], 'px' );
|
79 |
-
}
|
80 |
-
}
|
81 |
-
}
|
82 |
-
|
83 |
-
if ( 'wide' != $attr['align'] && 'full' != $attr['align'] ) {
|
84 |
-
$style['max-width'] = $section_width;
|
85 |
-
}
|
86 |
-
|
87 |
-
if ( 'image' === $bg_type ) {
|
88 |
-
|
89 |
-
$style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
|
90 |
-
$style['background-position'] = $position;
|
91 |
-
$style['background-attachment'] = $attr['backgroundAttachment'];
|
92 |
-
$style['background-repeat'] = $attr['backgroundRepeat'];
|
93 |
-
$style['background-size'] = $attr['backgroundSize'];
|
94 |
-
|
95 |
-
}
|
96 |
-
|
97 |
-
$inner_width = '100%';
|
98 |
-
|
99 |
-
if ( isset( $attr['contentWidth'] ) ) {
|
100 |
-
if ( 'boxed' != $attr['contentWidth'] ) {
|
101 |
-
if ( isset( $attr['themeWidth'] ) && $attr['themeWidth'] == true ) {
|
102 |
-
$inner_width = $content_width . 'px';
|
103 |
-
} else {
|
104 |
-
if ( isset( $attr['innerWidth'] ) ) {
|
105 |
-
$inner_width = UAGB_Helper::get_css_value( $attr['innerWidth'], 'px' );
|
106 |
-
}
|
107 |
-
}
|
108 |
-
}
|
109 |
-
}
|
110 |
-
|
111 |
-
$selectors = array(
|
112 |
-
'.uagb-section__wrap' => $style,
|
113 |
-
' > .uagb-section__video-wrap' => array(
|
114 |
-
'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
|
115 |
-
),
|
116 |
-
' > .uagb-section__inner-wrap' => array(
|
117 |
-
'max-width' => $inner_width,
|
118 |
-
),
|
119 |
-
);
|
120 |
-
|
121 |
-
if ( 'video' == $bg_type ) {
|
122 |
-
$selectors[' > .uagb-section__overlay'] = array(
|
123 |
-
'opacity' => 1,
|
124 |
-
'background-color' => $attr['backgroundVideoColor'],
|
125 |
-
);
|
126 |
-
} else if ( 'image' == $bg_type ) {
|
127 |
-
$selectors[' > .uagb-section__overlay'] = array(
|
128 |
-
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
|
129 |
-
'background-color' => $attr['backgroundImageColor'],
|
130 |
-
);
|
131 |
-
} else if ( 'color' == $bg_type ) {
|
132 |
-
$selectors[' > .uagb-section__overlay'] = array(
|
133 |
-
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
|
134 |
-
'background-color' => $attr['backgroundColor'],
|
135 |
-
);
|
136 |
-
} else if ( 'gradient' === $bg_type ) {
|
137 |
-
$selectors[' > .uagb-section__overlay']['background-color'] = 'transparent';
|
138 |
-
$selectors[' > .uagb-section__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
|
139 |
-
|
140 |
-
if ( 'linear' === $attr['gradientType'] ) {
|
141 |
-
|
142 |
-
$selectors[' > .uagb-section__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
143 |
-
} else {
|
144 |
-
|
145 |
-
$selectors[' > .uagb-section__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
146 |
-
}
|
147 |
-
}
|
148 |
-
|
149 |
-
$selectors[' > .uagb-section__overlay']["border-radius"] = UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' );
|
150 |
-
|
151 |
-
$m_selectors = array(
|
152 |
-
'.uagb-section__wrap' => array(
|
153 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], 'px' ),
|
154 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], 'px' ),
|
155 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], 'px' ),
|
156 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], 'px' ),
|
157 |
-
)
|
158 |
-
);
|
159 |
-
|
160 |
-
$t_selectors = array(
|
161 |
-
'.uagb-section__wrap' => array(
|
162 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], 'px' ),
|
163 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], 'px' ),
|
164 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], 'px' ),
|
165 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], 'px' ),
|
166 |
-
)
|
167 |
-
);
|
168 |
-
|
169 |
-
if ( 'right' == $attr['align'] ) {
|
170 |
-
$t_selectors['.uagb-section__wrap']['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMarginTablet'], 'px' );
|
171 |
-
$t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], 'px' );
|
172 |
-
$t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], 'px' );
|
173 |
-
|
174 |
-
$m_selectors['.uagb-section__wrap']['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMarginMobile'], 'px' );
|
175 |
-
$m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], 'px' );
|
176 |
-
$m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], 'px' );
|
177 |
-
} elseif ( 'left' == $attr['align'] ) {
|
178 |
-
$t_selectors['.uagb-section__wrap']['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMarginTablet'], 'px' );
|
179 |
-
$t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], 'px' );
|
180 |
-
$t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], 'px' );
|
181 |
-
|
182 |
-
$m_selectors['.uagb-section__wrap']['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMarginMobile'], 'px' );
|
183 |
-
$m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], 'px' );
|
184 |
-
$m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], 'px' );
|
185 |
-
} else {
|
186 |
-
$t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], 'px' );
|
187 |
-
$t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], 'px' );
|
188 |
-
|
189 |
-
$m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], 'px' );
|
190 |
-
$m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], 'px' );
|
191 |
-
}
|
192 |
-
|
193 |
-
// @codingStandardsIgnoreEnd
|
194 |
-
|
195 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-section-' . $id );
|
196 |
-
|
197 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-section-' . $id );
|
198 |
-
|
199 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-section-' . $id );
|
200 |
-
|
201 |
-
$generated_css = array(
|
202 |
-
'desktop' => $desktop,
|
203 |
-
'tablet' => $tablet,
|
204 |
-
'mobile' => $mobile,
|
205 |
-
);
|
206 |
-
|
207 |
-
return $generated_css;
|
208 |
-
}
|
209 |
-
|
210 |
-
/**
|
211 |
-
* Get Columns Block CSS
|
212 |
-
*
|
213 |
-
* @since 1.8.0
|
214 |
-
* @param array $attr The block attributes.
|
215 |
-
* @param string $id The selector ID.
|
216 |
-
* @return array The Widget List.
|
217 |
-
*/
|
218 |
-
public static function get_columns_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
219 |
-
|
220 |
-
global $content_width;
|
221 |
-
|
222 |
-
$defaults = UAGB_Helper::$block_list['uagb/columns']['attributes'];
|
223 |
-
|
224 |
-
$attr = array_merge( $defaults, $attr );
|
225 |
-
|
226 |
-
$bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
|
227 |
-
|
228 |
-
$m_selectors = array();
|
229 |
-
$t_selectors = array();
|
230 |
-
|
231 |
-
$style = array(
|
232 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], 'px' ),
|
233 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], 'px' ),
|
234 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], 'px' ),
|
235 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], 'px' ),
|
236 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['topMargin'], 'px' ),
|
237 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' ),
|
238 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
239 |
-
);
|
240 |
-
|
241 |
-
if ( "none" != $attr['borderStyle'] ) {
|
242 |
-
$style["border-style"] = $attr['borderStyle'];
|
243 |
-
$style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
|
244 |
-
$style["border-color"] = $attr['borderColor'];
|
245 |
-
}
|
246 |
-
|
247 |
-
$position = str_replace( '-', ' ', $attr['backgroundPosition'] );
|
248 |
-
|
249 |
-
if ( 'image' === $bg_type ) {
|
250 |
-
|
251 |
-
$style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
|
252 |
-
$style['background-position'] = $position;
|
253 |
-
$style['background-attachment'] = $attr['backgroundAttachment'];
|
254 |
-
$style['background-repeat'] = $attr['backgroundRepeat'];
|
255 |
-
$style['background-size'] = $attr['backgroundSize'];
|
256 |
-
|
257 |
-
}
|
258 |
-
|
259 |
-
$inner_width = '100%';
|
260 |
-
|
261 |
-
if ( isset( $attr['contentWidth'] ) ) {
|
262 |
-
if ( 'theme' == $attr['contentWidth'] ) {
|
263 |
-
$inner_width = UAGB_Helper::get_css_value( $content_width, 'px' );
|
264 |
-
} else if ( 'custom' == $attr['contentWidth'] ) {
|
265 |
-
$inner_width = UAGB_Helper::get_css_value( $attr['width'], 'px' );
|
266 |
-
}
|
267 |
-
}
|
268 |
-
|
269 |
-
$selectors = array(
|
270 |
-
'.uagb-columns__wrap' => $style,
|
271 |
-
' .uagb-columns__video-wrap' => array(
|
272 |
-
'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
|
273 |
-
),
|
274 |
-
' > .uagb-columns__inner-wrap' => array(
|
275 |
-
'max-width' => $inner_width,
|
276 |
-
),
|
277 |
-
' .uagb-column__inner-wrap' => array(
|
278 |
-
'padding' => UAGB_Helper::get_css_value( $attr['columnGap'], 'px' )
|
279 |
-
),
|
280 |
-
' .uagb-columns__shape-top svg' => array(
|
281 |
-
'width' => "calc( " . $attr['topWidth'] . "% + 1.3px )",
|
282 |
-
'height' => UAGB_Helper::get_css_value( $attr['topHeight'], 'px' )
|
283 |
-
),
|
284 |
-
' .uagb-columns__shape-top .uagb-columns__shape-fill' => array(
|
285 |
-
'fill' => $attr['topColor'],
|
286 |
-
'opacity' => ( isset( $attr['topDividerOpacity'] ) && '' != $attr['topDividerOpacity'] ) ? ( ( $attr['topDividerOpacity'] ) / 100 ) : ""
|
287 |
-
),
|
288 |
-
' .uagb-columns__shape-bottom svg' => array(
|
289 |
-
'width' => "calc( " . $attr['bottomWidth'] . "% + 1.3px )",
|
290 |
-
'height' => UAGB_Helper::get_css_value( $attr['bottomHeight'], 'px' )
|
291 |
-
),
|
292 |
-
' .uagb-columns__shape-bottom .uagb-columns__shape-fill' => array(
|
293 |
-
'fill' => $attr['bottomColor'],
|
294 |
-
'opacity' => ( isset( $attr['bottomDividerOpacity'] ) && '' != $attr['bottomDividerOpacity'] ) ? ( ( $attr['bottomDividerOpacity'] ) / 100 ) : ""
|
295 |
-
),
|
296 |
-
);
|
297 |
-
|
298 |
-
if ( 'video' == $bg_type ) {
|
299 |
-
$selectors[' > .uagb-columns__overlay'] = array(
|
300 |
-
'opacity' => 1,
|
301 |
-
'background-color' => $attr['backgroundVideoColor'],
|
302 |
-
);
|
303 |
-
} else if ( 'image' == $bg_type ) {
|
304 |
-
$selectors[' > .uagb-columns__overlay'] = array(
|
305 |
-
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
|
306 |
-
'background-color' => $attr['backgroundImageColor'],
|
307 |
-
);
|
308 |
-
} else if ( 'color' == $bg_type ) {
|
309 |
-
$selectors[' > .uagb-columns__overlay'] = array(
|
310 |
-
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
|
311 |
-
'background-color' => $attr['backgroundColor'],
|
312 |
-
);
|
313 |
-
} elseif ( 'gradient' === $bg_type ) {
|
314 |
-
$selectors[' > .uagb-columns__overlay']['background-color'] = 'transparent';
|
315 |
-
$selectors[' > .uagb-columns__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
|
316 |
-
|
317 |
-
if ( 'linear' === $attr['gradientType'] ) {
|
318 |
-
|
319 |
-
$selectors[' > .uagb-columns__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
320 |
-
} else {
|
321 |
-
|
322 |
-
$selectors[' > .uagb-columns__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
323 |
-
}
|
324 |
-
}
|
325 |
-
|
326 |
-
$selectors[' > .uagb-columns__overlay']["border-radius"] = UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' );
|
327 |
-
|
328 |
-
$m_selectors = array(
|
329 |
-
'.uagb-columns__wrap' => array(
|
330 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], 'px' ),
|
331 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], 'px' ),
|
332 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], 'px' ),
|
333 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], 'px' ),
|
334 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginMobile'], 'px' ),
|
335 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], 'px' ),
|
336 |
-
),
|
337 |
-
' .uagb-columns__shape-bottom svg' => array(
|
338 |
-
'height' => UAGB_Helper::get_css_value( $attr['bottomHeightMobile'], 'px' )
|
339 |
-
),
|
340 |
-
' .uagb-columns__shape-top svg' => array(
|
341 |
-
'height' => UAGB_Helper::get_css_value( $attr['topHeightMobile'], 'px' )
|
342 |
-
),
|
343 |
-
);
|
344 |
-
|
345 |
-
$t_selectors = array(
|
346 |
-
'.uagb-columns__wrap' => array(
|
347 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], 'px' ),
|
348 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], 'px' ),
|
349 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], 'px' ),
|
350 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], 'px' ),
|
351 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginTablet'], 'px' ),
|
352 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], 'px' ),
|
353 |
-
),
|
354 |
-
' .uagb-columns__shape-bottom svg' => array(
|
355 |
-
'height' => UAGB_Helper::get_css_value( $attr['bottomHeightTablet'], 'px' )
|
356 |
-
),
|
357 |
-
' .uagb-columns__shape-top svg' => array(
|
358 |
-
'height' => UAGB_Helper::get_css_value( $attr['topHeightTablet'], 'px' )
|
359 |
-
),
|
360 |
-
);
|
361 |
-
|
362 |
-
// @codingStandardsIgnoreEnd
|
363 |
-
|
364 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-columns-' . $id );
|
365 |
-
|
366 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-columns-' . $id );
|
367 |
-
|
368 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-columns-' . $id );
|
369 |
-
|
370 |
-
$generated_css = array(
|
371 |
-
'desktop' => $desktop,
|
372 |
-
'tablet' => $tablet,
|
373 |
-
'mobile' => $mobile,
|
374 |
-
);
|
375 |
-
|
376 |
-
return $generated_css;
|
377 |
-
}
|
378 |
-
|
379 |
-
/**
|
380 |
-
* Get Single Column Block CSS
|
381 |
-
*
|
382 |
-
* @since 1.8.0
|
383 |
-
* @param array $attr The block attributes.
|
384 |
-
* @param string $id The selector ID.
|
385 |
-
* @return array The Widget List.
|
386 |
-
*/
|
387 |
-
public static function get_column_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
388 |
-
|
389 |
-
global $content_width;
|
390 |
-
|
391 |
-
$defaults = UAGB_Helper::$block_list['uagb/column']['attributes'];
|
392 |
-
|
393 |
-
$attr = array_merge( $defaults, $attr );
|
394 |
-
|
395 |
-
$bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
|
396 |
-
|
397 |
-
$style = array(
|
398 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], 'px' ),
|
399 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], 'px' ),
|
400 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], 'px' ),
|
401 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], 'px' ),
|
402 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['topMargin'], 'px' ),
|
403 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' ),
|
404 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['leftMargin'], 'px' ),
|
405 |
-
'margin-right' => UAGB_Helper::get_css_value( $attr['rightMargin'], 'px' ),
|
406 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
407 |
-
);
|
408 |
-
|
409 |
-
$m_selectors = array();
|
410 |
-
$t_selectors = array();
|
411 |
-
|
412 |
-
if ( "none" != $attr['borderStyle'] ) {
|
413 |
-
$style["border-style"] = $attr['borderStyle'];
|
414 |
-
$style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
|
415 |
-
$style["border-color"] = $attr['borderColor'];
|
416 |
-
}
|
417 |
-
|
418 |
-
$position = str_replace( '-', ' ', $attr['backgroundPosition'] );
|
419 |
-
|
420 |
-
if ( 'image' === $bg_type ) {
|
421 |
-
|
422 |
-
$style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
|
423 |
-
$style['background-position'] = $position;
|
424 |
-
$style['background-attachment'] = $attr['backgroundAttachment'];
|
425 |
-
$style['background-repeat'] = $attr['backgroundRepeat'];
|
426 |
-
$style['background-size'] = $attr['backgroundSize'];
|
427 |
-
|
428 |
-
}
|
429 |
-
|
430 |
-
$selectors = array(
|
431 |
-
'.uagb-column__wrap' => $style
|
432 |
-
);
|
433 |
-
|
434 |
-
if ( 'image' == $bg_type ) {
|
435 |
-
$selectors[' > .uagb-column__overlay'] = array(
|
436 |
-
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
|
437 |
-
'background-color' => $attr['backgroundImageColor'],
|
438 |
-
);
|
439 |
-
} else if ( 'color' == $bg_type ) {
|
440 |
-
$selectors[' > .uagb-column__overlay'] = array(
|
441 |
-
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
|
442 |
-
'background-color' => $attr['backgroundColor'],
|
443 |
-
);
|
444 |
-
} elseif ( 'gradient' === $bg_type ) {
|
445 |
-
$selectors[' > .uagb-column__overlay']['background-color'] = 'transparent';
|
446 |
-
$selectors[' > .uagb-column__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
|
447 |
-
|
448 |
-
if ( 'linear' === $attr['gradientType'] ) {
|
449 |
-
|
450 |
-
$selectors[' > .uagb-column__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
451 |
-
} else {
|
452 |
-
|
453 |
-
$selectors[' > .uagb-column__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
454 |
-
}
|
455 |
-
}
|
456 |
-
|
457 |
-
if ( '' != $attr['colWidth'] && 0 != $attr['colWidth'] ) {
|
458 |
-
|
459 |
-
$selectors[''] = array(
|
460 |
-
"width" => UAGB_Helper::get_css_value( $attr['colWidth'], "%" )
|
461 |
-
);
|
462 |
-
}
|
463 |
-
|
464 |
-
$m_selectors = array(
|
465 |
-
'.uagb-column__wrap' => array(
|
466 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], 'px' ),
|
467 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], 'px' ),
|
468 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], 'px' ),
|
469 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], 'px' ),
|
470 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginMobile'], 'px' ),
|
471 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], 'px' ),
|
472 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['leftMarginMobile'], 'px' ),
|
473 |
-
'margin-right' => UAGB_Helper::get_css_value( $attr['rightMarginMobile'], 'px' ),
|
474 |
-
)
|
475 |
-
);
|
476 |
-
|
477 |
-
$t_selectors = array(
|
478 |
-
'.uagb-column__wrap' => array(
|
479 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], 'px' ),
|
480 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], 'px' ),
|
481 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], 'px' ),
|
482 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], 'px' ),
|
483 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginTablet'], 'px' ),
|
484 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], 'px' ),
|
485 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['leftMarginTablet'], 'px' ),
|
486 |
-
'margin-right' => UAGB_Helper::get_css_value( $attr['rightMarginTablet'], 'px' ),
|
487 |
-
)
|
488 |
-
);
|
489 |
-
|
490 |
-
if ( '' != $attr['colWidthTablet'] && 0 != $attr['colWidthTablet'] ) {
|
491 |
-
|
492 |
-
$t_selectors[''] = array(
|
493 |
-
"width" => UAGB_Helper::get_css_value( $attr['colWidthTablet'], '%' )
|
494 |
-
);
|
495 |
-
}
|
496 |
-
|
497 |
-
if ( '' != $attr['colWidthMobile'] && 0 != $attr['colWidthMobile'] ) {
|
498 |
-
|
499 |
-
$m_selectors[''] = array(
|
500 |
-
"width" => UAGB_Helper::get_css_value( $attr['colWidthMobile'], '%' )
|
501 |
-
);
|
502 |
-
}
|
503 |
-
|
504 |
-
// @codingStandardsIgnoreEnd
|
505 |
-
|
506 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-column-' . $id );
|
507 |
-
|
508 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-column-' . $id );
|
509 |
-
|
510 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-column-' . $id );
|
511 |
-
|
512 |
-
$generated_css = array(
|
513 |
-
'desktop' => $desktop,
|
514 |
-
'tablet' => $tablet,
|
515 |
-
'mobile' => $mobile,
|
516 |
-
);
|
517 |
-
|
518 |
-
return $generated_css;
|
519 |
-
}
|
520 |
-
|
521 |
-
/**
|
522 |
-
* Get Advanced Heading Block CSS
|
523 |
-
*
|
524 |
-
* @since 0.0.1
|
525 |
-
* @param array $attr The block attributes.
|
526 |
-
* @param string $id The selector ID.
|
527 |
-
* @return array The Widget List.
|
528 |
-
*/
|
529 |
-
public static function get_adv_heading_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
530 |
-
|
531 |
-
$defaults = UAGB_Helper::$block_list['uagb/advanced-heading']['attributes'];
|
532 |
-
|
533 |
-
$attr = array_merge( $defaults, (array) $attr );
|
534 |
-
|
535 |
-
$m_selectors = array();
|
536 |
-
$t_selectors = array();
|
537 |
-
|
538 |
-
$selectors = array(
|
539 |
-
' .uagb-heading-text' => array(
|
540 |
-
'text-align' => $attr['headingAlign'],
|
541 |
-
'font-family' => $attr['headFontFamily'],
|
542 |
-
'font-weight' => $attr['headFontWeight'],
|
543 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
|
544 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
|
545 |
-
'color' => $attr['headingColor'],
|
546 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['headSpace'], "px" ),
|
547 |
-
),
|
548 |
-
' .uagb-separator-wrap' => array(
|
549 |
-
'text-align' => $attr['headingAlign'],
|
550 |
-
),
|
551 |
-
' .uagb-desc-text' => array(
|
552 |
-
'text-align' => $attr['headingAlign'],
|
553 |
-
'font-family' => $attr['subHeadFontFamily'],
|
554 |
-
'font-weight' => $attr['subHeadFontWeight'],
|
555 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ),
|
556 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
|
557 |
-
'color' => $attr['subHeadingColor'],
|
558 |
-
)
|
559 |
-
|
560 |
-
);
|
561 |
-
|
562 |
-
$m_selectors = array(
|
563 |
-
' .uagb-heading-text' => array(
|
564 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
|
565 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
|
566 |
-
),
|
567 |
-
' .uagb-desc-text' => array(
|
568 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
|
569 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
|
570 |
-
)
|
571 |
-
|
572 |
-
);
|
573 |
-
|
574 |
-
$t_selectors = array(
|
575 |
-
' .uagb-heading-text' => array(
|
576 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
|
577 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
|
578 |
-
|
579 |
-
),
|
580 |
-
' .uagb-desc-text' => array(
|
581 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
|
582 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
|
583 |
-
)
|
584 |
-
|
585 |
-
);
|
586 |
-
|
587 |
-
$seperatorStyle = isset( $attr['seperatorStyle'] ) ? $attr['seperatorStyle'] : '';
|
588 |
-
|
589 |
-
if( 'none' !== $seperatorStyle ){
|
590 |
-
$selectors[' .uagb-separator'] = array (
|
591 |
-
'border-top-style' => $attr['seperatorStyle'] ,
|
592 |
-
'border-top-width' => UAGB_Helper::get_css_value( $attr['separatorHeight'], "px" ),
|
593 |
-
'width' => UAGB_Helper::get_css_value( $attr['separatorWidth'], $attr['separatorWidthType'] ),
|
594 |
-
'border-color' => $attr['separatorColor'],
|
595 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['separatorSpace'], "px" ),
|
596 |
-
);
|
597 |
-
|
598 |
-
}
|
599 |
-
// @codingStandardsIgnoreEnd
|
600 |
-
|
601 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-adv-heading-' . $id );
|
602 |
-
|
603 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-adv-heading-' . $id );
|
604 |
-
|
605 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-adv-heading-' . $id );
|
606 |
-
|
607 |
-
$generated_css = array(
|
608 |
-
'desktop' => $desktop,
|
609 |
-
'tablet' => $tablet,
|
610 |
-
'mobile' => $mobile,
|
611 |
-
);
|
612 |
-
|
613 |
-
return $generated_css;
|
614 |
-
}
|
615 |
-
|
616 |
-
/**
|
617 |
-
* Get Multi Buttons Block CSS
|
618 |
-
*
|
619 |
-
* @since 0.0.1
|
620 |
-
* @param array $attr The block attributes.
|
621 |
-
* @param string $id The selector ID.
|
622 |
-
* @return array The Widget List.
|
623 |
-
*/
|
624 |
-
public static function get_buttons_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
625 |
-
|
626 |
-
$defaults = UAGB_Helper::$block_list['uagb/buttons']['attributes'];
|
627 |
-
|
628 |
-
$attr = array_merge( $defaults, (array) $attr );
|
629 |
-
|
630 |
-
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
631 |
-
|
632 |
-
$m_selectors = array();
|
633 |
-
$t_selectors = array();
|
634 |
-
|
635 |
-
$selectors = array(
|
636 |
-
' .uagb-button__wrapper' => array(
|
637 |
-
'margin-left' => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
|
638 |
-
'margin-right' => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
|
639 |
-
),
|
640 |
-
' .uagb-button__wrapper:first-child' => array (
|
641 |
-
'margin-left' => 0
|
642 |
-
),
|
643 |
-
' .uagb-button__wrapper:last-child' => array (
|
644 |
-
'margin-right' => 0
|
645 |
-
),
|
646 |
-
' .uagb-buttons__wrap' => array (
|
647 |
-
'justify-content' => $alignment,
|
648 |
-
'-webkit-box-pack'=> $alignment,
|
649 |
-
'-ms-flex-pack' => $alignment,
|
650 |
-
'justify-content' => $alignment,
|
651 |
-
'-webkit-box-align' => $alignment,
|
652 |
-
'-ms-flex-align' => $alignment,
|
653 |
-
'align-items' => $alignment,
|
654 |
-
)
|
655 |
-
);
|
656 |
-
|
657 |
-
foreach ( $attr['buttons'] as $key => $button ) {
|
658 |
-
|
659 |
-
$button['size'] = ( isset( $button['size'] ) ) ? $button['size'] : '';
|
660 |
-
$button['borderWidth'] = ( isset( $button['borderWidth'] ) ) ? $button['borderWidth'] : '';
|
661 |
-
$button['borderStyle'] = ( isset( $button['borderStyle'] ) ) ? $button['borderStyle'] : '';
|
662 |
-
$button['borderColor'] = ( isset( $button['borderColor'] ) ) ? $button['borderColor'] : '';
|
663 |
-
$button['borderRadius'] = ( isset( $button['borderRadius'] ) ) ? $button['borderRadius'] : '';
|
664 |
-
$button['background'] = ( isset( $button['background'] ) ) ? $button['background'] : '';
|
665 |
-
$button['hBackground'] = ( isset( $button['hBackground'] ) ) ? $button['hBackground'] : '';
|
666 |
-
$button['borderHColor'] = ( isset( $button['borderHColor'] ) ) ? $button['borderHColor'] : '';
|
667 |
-
$button['vPadding'] = ( isset( $button['vPadding'] ) ) ? $button['vPadding'] : '';
|
668 |
-
$button['hPadding'] = ( isset( $button['hPadding'] ) ) ? $button['hPadding'] : '';
|
669 |
-
$button['color'] = ( isset( $button['color'] ) ) ? $button['color'] : '';
|
670 |
-
$button['hColor'] = ( isset( $button['hColor'] ) ) ? $button['hColor'] : '';
|
671 |
-
$button['sizeType'] = ( isset( $button['sizeType'] ) ) ? $button['sizeType'] : 'px';
|
672 |
-
$button['sizeMobile'] = ( isset( $button['sizeMobile'] ) ) ? $button['sizeMobile'] : '';
|
673 |
-
$button['sizeTablet'] = ( isset( $button['sizeTablet'] ) ) ? $button['sizeTablet'] : '';
|
674 |
-
$button['lineHeight'] = ( isset( $button['lineHeight'] ) ) ? $button['lineHeight'] : '';
|
675 |
-
$button['lineHeightType'] = ( isset( $button['lineHeightType'] ) ) ? $button['lineHeightType'] : '';
|
676 |
-
$button['lineHeightMobile'] = ( isset( $button['lineHeightMobile'] ) ) ? $button['lineHeightMobile'] : '';
|
677 |
-
$button['lineHeightTablet'] = ( isset( $button['lineHeightTablet'] ) ) ? $button['lineHeightTablet'] : '';
|
678 |
-
|
679 |
-
|
680 |
-
if ( $attr['btn_count'] <= $key ) {
|
681 |
-
break;
|
682 |
-
}
|
683 |
-
|
684 |
-
$selectors[' .uagb-buttons-repeater-' . $key] = array (
|
685 |
-
'font-size' => $button['size'] . $button['sizeType'],
|
686 |
-
'line-height' => $button['lineHeight'] . $button['lineHeightType'],
|
687 |
-
'font-family' => $attr['fontFamily'],
|
688 |
-
'font-weight' => $attr['fontWeight'],
|
689 |
-
'border-width' => UAGB_Helper::get_css_value( $button['borderWidth'], 'px' ),
|
690 |
-
'border-color' => $button['borderColor'],
|
691 |
-
'border-style' => $button['borderStyle'],
|
692 |
-
'border-radius' => UAGB_Helper::get_css_value( $button['borderRadius'], 'px' ),
|
693 |
-
'background' => $button['background']
|
694 |
-
);
|
695 |
-
|
696 |
-
$selectors[' .uagb-buttons-repeater-' . $key . ':hover'] = array (
|
697 |
-
'background' => $button['hBackground'],
|
698 |
-
'border-width' => UAGB_Helper::get_css_value( $button['borderWidth'], 'px' ),
|
699 |
-
'border-color' => $button['borderHColor'],
|
700 |
-
'border-style' => $button['borderStyle'],
|
701 |
-
);
|
702 |
-
|
703 |
-
$selectors[' .uagb-buttons-repeater-' . $key . ' a.uagb-button__link'] = array (
|
704 |
-
'padding' => $button['vPadding'] . 'px ' . $button['hPadding'] . 'px',
|
705 |
-
'color' => $button['color']
|
706 |
-
);
|
707 |
-
|
708 |
-
$selectors[' .uagb-buttons-repeater-' . $key . ':hover a.uagb-button__link'] = array (
|
709 |
-
'color' => $button['hColor']
|
710 |
-
);
|
711 |
-
|
712 |
-
$m_selectors[' .uagb-buttons-repeater-' . $key] = array (
|
713 |
-
'font-size' => UAGB_Helper::get_css_value( $button['sizeMobile'], $button['sizeType'] ),
|
714 |
-
'line-height' => UAGB_Helper::get_css_value( $button['lineHeightMobile'], $button['lineHeightType'] ),
|
715 |
-
);
|
716 |
-
|
717 |
-
$t_selectors[' .uagb-buttons-repeater-' . $key] = array (
|
718 |
-
'font-size' => UAGB_Helper::get_css_value( $button['sizeTablet'], $button['sizeType'] ),
|
719 |
-
'line-height' => UAGB_Helper::get_css_value( $button['lineHeightTablet'], $button['lineHeightType'] ),
|
720 |
-
);
|
721 |
-
}
|
722 |
-
|
723 |
-
if ( "desktop" == $attr['stack'] ) {
|
724 |
-
|
725 |
-
$selectors[" .uagb-button__wrapper"] = array (
|
726 |
-
'margin-left' => 0,
|
727 |
-
'margin-right' => 0,
|
728 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
729 |
-
);
|
730 |
-
|
731 |
-
$selectors[" .uagb-buttons__wrap"] = array (
|
732 |
-
"flex-direction" => "column"
|
733 |
-
);
|
734 |
-
|
735 |
-
$selectors[" .uagb-button__wrapper:last-child"] = array (
|
736 |
-
"margin-bottom" => 0
|
737 |
-
);
|
738 |
-
|
739 |
-
} else if ( "tablet" == $attr['stack'] ) {
|
740 |
-
|
741 |
-
$t_selectors[" .uagb-button__wrapper"] = array (
|
742 |
-
'margin-left' => 0,
|
743 |
-
'margin-right' => 0,
|
744 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
745 |
-
);
|
746 |
-
|
747 |
-
$t_selectors[" .uagb-buttons__wrap"] = array (
|
748 |
-
"flex-direction" => "column"
|
749 |
-
);
|
750 |
-
|
751 |
-
$t_selectors[" .uagb-button__wrapper:last-child"] = array (
|
752 |
-
"margin-bottom" => 0
|
753 |
-
);
|
754 |
-
|
755 |
-
} else if ( "mobile" == $attr['stack'] ) {
|
756 |
-
|
757 |
-
$m_selectors[" .uagb-button__wrapper"] = array (
|
758 |
-
'margin-left' => 0,
|
759 |
-
'margin-right' => 0,
|
760 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
761 |
-
);
|
762 |
-
|
763 |
-
$m_selectors[" .uagb-buttons__wrap"] = array (
|
764 |
-
"flex-direction" => "column"
|
765 |
-
);
|
766 |
-
|
767 |
-
$m_selectors[" .uagb-button__wrapper:last-child"] = array (
|
768 |
-
"margin-bottom" => 0
|
769 |
-
);
|
770 |
-
}
|
771 |
-
|
772 |
-
// @codingStandardsIgnoreEnd
|
773 |
-
|
774 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-buttons-' . $id );
|
775 |
-
|
776 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-buttons-' . $id );
|
777 |
-
|
778 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-buttons-' . $id );
|
779 |
-
|
780 |
-
$generated_css = array(
|
781 |
-
'desktop' => $desktop,
|
782 |
-
'tablet' => $tablet,
|
783 |
-
'mobile' => $mobile,
|
784 |
-
);
|
785 |
-
|
786 |
-
return $generated_css;
|
787 |
-
}
|
788 |
-
|
789 |
-
/**
|
790 |
-
* Get Info Box CSS
|
791 |
-
*
|
792 |
-
* @since 0.0.1
|
793 |
-
* @param array $attr The block attributes.
|
794 |
-
* @param string $id The selector ID.
|
795 |
-
* @return array The Widget List.
|
796 |
-
*/
|
797 |
-
public static function get_info_box_css( $attr, $id ) { // @codingStandardsIgnoreStart.
|
798 |
-
$defaults = UAGB_Helper::$block_list['uagb/info-box']['attributes'];
|
799 |
-
|
800 |
-
$attr = array_merge( $defaults, (array) $attr );
|
801 |
-
|
802 |
-
$m_selectors = array();
|
803 |
-
$t_selectors = array();
|
804 |
-
|
805 |
-
$selectors = array(
|
806 |
-
' .uagb-ifb-icon' => array(
|
807 |
-
'height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
808 |
-
'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
809 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
810 |
-
),
|
811 |
-
' .uagb-ifb-icon > span' => array(
|
812 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
813 |
-
'height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
814 |
-
'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
815 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
816 |
-
'color' => $attr['iconColor'],
|
817 |
-
),
|
818 |
-
' .uagb-ifb-icon svg' => array(
|
819 |
-
'fill' => $attr['iconColor'],
|
820 |
-
),
|
821 |
-
' .uagb-ifb-icon:hover > span' => array(
|
822 |
-
'color' => $attr['iconHover'] ,
|
823 |
-
),
|
824 |
-
' .uagb-ifb-icon:hover svg' => array(
|
825 |
-
'fill' => $attr['iconHover'] ,
|
826 |
-
),
|
827 |
-
|
828 |
-
' .uagb-infbox__link-to-all:hover ~ .uagb-infobox__content-wrap .uagb-ifb-icon svg' => array(
|
829 |
-
'fill' => $attr['iconHover'] ,
|
830 |
-
),
|
831 |
-
|
832 |
-
' .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap' => array(
|
833 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['iconLeftMargin'], 'px' ),
|
834 |
-
'margin-right' => UAGB_Helper::get_css_value( $attr['iconRightMargin'], 'px' ),
|
835 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['iconTopMargin'], 'px' ),
|
836 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['iconBottomMargin'], 'px' ),
|
837 |
-
),
|
838 |
-
// Image.
|
839 |
-
' .uagb-ifb-image-content > img' => array(
|
840 |
-
'width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
841 |
-
'max-width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
842 |
-
),
|
843 |
-
' .uagb-infobox .uagb-ifb-image-content img' => array(
|
844 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['iconimgBorderRadius'], 'px' ),
|
845 |
-
),
|
846 |
-
// CTA style .
|
847 |
-
' .uagb-infobox-cta-link' => array(
|
848 |
-
'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
|
849 |
-
'font-family' => $attr['ctaFontFamily'],
|
850 |
-
'font-weight' => $attr['ctaFontWeight'],
|
851 |
-
'color' => $attr['ctaLinkColor'],
|
852 |
-
),
|
853 |
-
' .uagb-infobox-cta-link:hover' => array(
|
854 |
-
'color' => $attr['ctaLinkHoverColor'],
|
855 |
-
),
|
856 |
-
' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
|
857 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
858 |
-
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
859 |
-
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
860 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
861 |
-
),
|
862 |
-
' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
|
863 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
864 |
-
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
865 |
-
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
866 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
867 |
-
),
|
868 |
-
' .uagb-infobox-cta-link svg' => array(
|
869 |
-
'fill' => $attr['ctaLinkColor'],
|
870 |
-
),
|
871 |
-
' .uagb-infobox-cta-link:hover svg' => array(
|
872 |
-
'fill' => $attr['ctaLinkHoverColor'],
|
873 |
-
),
|
874 |
-
' .uagb-ifb-button-wrapper .uagb-infobox-cta-link' => array(
|
875 |
-
'color' => $attr['ctaBtnLinkColor'],
|
876 |
-
'background-color' => $attr['ctaBgColor'],
|
877 |
-
'border-style' => $attr['ctaBorderStyle'],
|
878 |
-
'border-color' => $attr['ctaBorderColor'],
|
879 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['ctaBorderRadius'], 'px' ),
|
880 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['ctaBorderWidth'], 'px' ),
|
881 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
|
882 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
|
883 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
|
884 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
|
885 |
-
|
886 |
-
),
|
887 |
-
' .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg' => array(
|
888 |
-
'fill' => $attr['ctaBtnLinkColor'],
|
889 |
-
),
|
890 |
-
' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover' => array(
|
891 |
-
'color' => $attr['ctaLinkHoverColor'],
|
892 |
-
'background-color' => $attr['ctaBgHoverColor'],
|
893 |
-
'border-color' => $attr['ctaBorderhoverColor'],
|
894 |
-
),
|
895 |
-
' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg' => array(
|
896 |
-
'fill' => $attr['ctaLinkHoverColor'],
|
897 |
-
),
|
898 |
-
// Prefix Style.
|
899 |
-
' .uagb-ifb-title-prefix' => array(
|
900 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSize'], $attr['prefixFontSizeType'] ),
|
901 |
-
'font-family' => $attr['prefixFontFamily'],
|
902 |
-
'font-weight' => $attr['prefixFontWeight'],
|
903 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeight'], $attr['prefixLineHeightType'] ),
|
904 |
-
'color' => $attr['prefixColor'],
|
905 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['prefixSpace'], 'px' ),
|
906 |
-
),
|
907 |
-
// Title Style.
|
908 |
-
' .uagb-ifb-title' => array(
|
909 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
|
910 |
-
'font-family' => $attr['headFontFamily'],
|
911 |
-
'font-weight' => $attr['headFontWeight'],
|
912 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
|
913 |
-
'color' => $attr['headingColor'],
|
914 |
-
'margin-bottom' => $attr['headSpace'] . 'px',
|
915 |
-
),
|
916 |
-
// Description Style.
|
917 |
-
' .uagb-ifb-desc' => array(
|
918 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ) ,
|
919 |
-
'font-family' => $attr['subHeadFontFamily'],
|
920 |
-
'font-weight' => $attr['subHeadFontWeight'],
|
921 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
|
922 |
-
'color' => $attr['subHeadingColor'],
|
923 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['subHeadSpace'], 'px' ),
|
924 |
-
),
|
925 |
-
// Seperator.
|
926 |
-
' .uagb-ifb-separator' => array(
|
927 |
-
'width' => UAGB_Helper::get_css_value( $attr['seperatorWidth'], $attr['separatorWidthType'] ),
|
928 |
-
'border-top-width' => UAGB_Helper::get_css_value( $attr['seperatorThickness'], 'px' ),
|
929 |
-
'border-top-color' => $attr['seperatorColor'],
|
930 |
-
'border-top-style' => $attr['seperatorStyle'],
|
931 |
-
),
|
932 |
-
' .uagb-ifb-separator-parent' => array(
|
933 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['seperatorSpace'], 'px' ),
|
934 |
-
),
|
935 |
-
// CTA icon space.
|
936 |
-
' .uagb-ifb-align-icon-after' => array(
|
937 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
|
938 |
-
),
|
939 |
-
' .uagb-ifb-align-icon-before' => array(
|
940 |
-
'margin-right' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
|
941 |
-
),
|
942 |
-
);
|
943 |
-
|
944 |
-
if( 'above-title' === $attr['iconimgPosition'] || 'below-title' === $attr['iconimgPosition'] ){
|
945 |
-
$selectors[' .uagb-infobox__content-wrap'] = array(
|
946 |
-
'text-align' => $attr['headingAlign'],
|
947 |
-
);
|
948 |
-
}
|
949 |
-
|
950 |
-
$m_selectors = array(
|
951 |
-
' .uagb-ifb-title-prefix' => array(
|
952 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
|
953 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightMobile'], $attr['prefixLineHeightType'] ),
|
954 |
-
),
|
955 |
-
' .uagb-ifb-title' => array(
|
956 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
|
957 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
|
958 |
-
),
|
959 |
-
' .uagb-ifb-desc' => array(
|
960 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
|
961 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
|
962 |
-
),
|
963 |
-
' .uagb-infobox-cta-link' => array(
|
964 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
965 |
-
),
|
966 |
-
' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
|
967 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
968 |
-
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
969 |
-
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
970 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
971 |
-
),
|
972 |
-
' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
|
973 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
974 |
-
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
975 |
-
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
976 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
977 |
-
),
|
978 |
-
);
|
979 |
-
|
980 |
-
$t_selectors = array(
|
981 |
-
' .uagb-ifb-title-prefix' => array(
|
982 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
|
983 |
-
),
|
984 |
-
' .uagb-ifb-title' => array(
|
985 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
|
986 |
-
),
|
987 |
-
' .uagb-ifb-desc' => array(
|
988 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
|
989 |
-
),
|
990 |
-
' .uagb-infobox-cta-link' => array(
|
991 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
992 |
-
),
|
993 |
-
' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
|
994 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
995 |
-
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
996 |
-
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
997 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
998 |
-
),
|
999 |
-
' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
|
1000 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1001 |
-
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1002 |
-
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1003 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1004 |
-
),
|
1005 |
-
);
|
1006 |
-
|
1007 |
-
// @codingStandardsIgnoreEnd.
|
1008 |
-
|
1009 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-infobox-' . $id );
|
1010 |
-
|
1011 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-infobox-' . $id );
|
1012 |
-
|
1013 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-infobox-' . $id );
|
1014 |
-
|
1015 |
-
$generated_css = array(
|
1016 |
-
'desktop' => $desktop,
|
1017 |
-
'tablet' => $tablet,
|
1018 |
-
'mobile' => $mobile,
|
1019 |
-
);
|
1020 |
-
|
1021 |
-
return $generated_css;
|
1022 |
-
}
|
1023 |
-
|
1024 |
-
/**
|
1025 |
-
* Get CTA CSS
|
1026 |
-
*
|
1027 |
-
* @since 1.7.0
|
1028 |
-
* @param array $attr The block attributes.
|
1029 |
-
* @param string $id The selector ID.
|
1030 |
-
* @return array The Widget List.
|
1031 |
-
*/
|
1032 |
-
public static function get_call_to_action_css( $attr, $id ) { // @codingStandardsIgnoreStart.
|
1033 |
-
$defaults = UAGB_Helper::$block_list['uagb/call-to-action']['attributes'];
|
1034 |
-
|
1035 |
-
$attr = array_merge( $defaults, (array) $attr );
|
1036 |
-
|
1037 |
-
$t_selectors = array();
|
1038 |
-
$m_selectors = array();
|
1039 |
-
|
1040 |
-
$selectors = array(
|
1041 |
-
' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
|
1042 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
1043 |
-
'font-family' => $attr['ctaFontFamily'],
|
1044 |
-
'font-weight' => $attr['ctaFontWeight'],
|
1045 |
-
'color' => $attr['ctaBtnLinkColor'],
|
1046 |
-
),
|
1047 |
-
' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-text ' => array(
|
1048 |
-
'color' => $attr['ctaLinkHoverColor'],
|
1049 |
-
),
|
1050 |
-
' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
|
1051 |
-
'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
|
1052 |
-
'font-family' => $attr['ctaFontFamily'],
|
1053 |
-
'font-weight' => $attr['ctaFontWeight'],
|
1054 |
-
'color' => $attr['ctaBtnLinkColor'],
|
1055 |
-
'background-color' => $attr['ctaBgColor'],
|
1056 |
-
'border-style' => $attr['ctaBorderStyle'],
|
1057 |
-
'border-color' => $attr['ctaBorderColor'],
|
1058 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['ctaBorderRadius'], 'px' ),
|
1059 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['ctaBorderWidth'], 'px' ),
|
1060 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
|
1061 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
|
1062 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
|
1063 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
|
1064 |
-
),
|
1065 |
-
' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-button' => array(
|
1066 |
-
'color' => $attr['ctaLinkHoverColor'],
|
1067 |
-
'background-color' => $attr['ctaBgHoverColor'],
|
1068 |
-
'border-color' => $attr['ctaBorderhoverColor'],
|
1069 |
-
),
|
1070 |
-
' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
|
1071 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
1072 |
-
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
1073 |
-
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
1074 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
1075 |
-
),
|
1076 |
-
' .uagb-cta__button-wrapper .uagb-cta__block-link svg' => array(
|
1077 |
-
'fill' => $attr['ctaBtnLinkColor'],
|
1078 |
-
),
|
1079 |
-
' .uagb-cta__button-wrapper:hover .uagb-cta__block-link svg' => array(
|
1080 |
-
'fill' => $attr['ctaLinkHoverColor'],
|
1081 |
-
),
|
1082 |
-
' .uagb-cta__title' => array(
|
1083 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
|
1084 |
-
'font-family' => $attr['titleFontFamily'],
|
1085 |
-
'font-weight' => $attr['titleFontWeight'],
|
1086 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
|
1087 |
-
'color' => $attr['titleColor'],
|
1088 |
-
'margin-bottom' => $attr['titleSpace']. "px",
|
1089 |
-
),
|
1090 |
-
' .uagb-cta__desc' => array(
|
1091 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
|
1092 |
-
'font-family' => $attr['descFontFamily'],
|
1093 |
-
'font-weight' => $attr['descFontWeight'],
|
1094 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
|
1095 |
-
'color' => $attr['descColor'],
|
1096 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
|
1097 |
-
),
|
1098 |
-
' .uagb-cta__align-button-after' => array(
|
1099 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
|
1100 |
-
),
|
1101 |
-
' .uagb-cta__align-button-before' => array(
|
1102 |
-
'margin-right' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
|
1103 |
-
),
|
1104 |
-
);
|
1105 |
-
|
1106 |
-
$selectors[' .uagb-cta__content-wrap'] = array(
|
1107 |
-
'text-align' => $attr['textAlign'],
|
1108 |
-
);
|
1109 |
-
|
1110 |
-
if( 'left' === $attr['textAlign'] && "right" === $attr['ctaPosition'] ){
|
1111 |
-
$selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
|
1112 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['ctaLeftSpace'], 'px' ),
|
1113 |
-
'margin-right' => '0',
|
1114 |
-
);
|
1115 |
-
}
|
1116 |
-
|
1117 |
-
if( 'right' === $attr['textAlign'] && 'right' === $attr['ctaPosition'] ){
|
1118 |
-
$selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
|
1119 |
-
'margin-right' => UAGB_Helper::get_css_value( $attr['ctaRightSpace'], 'px' ),
|
1120 |
-
'margin-left' => '0',
|
1121 |
-
);
|
1122 |
-
}
|
1123 |
-
|
1124 |
-
if( $attr['ctaPosition'] === "right" && ( $attr['ctaType'] === 'text' || $attr['ctaType'] === 'button' ) ){
|
1125 |
-
$selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
|
1126 |
-
"width" => UAGB_Helper::get_css_value( $attr['contentWidth'], '%' ),
|
1127 |
-
);
|
1128 |
-
|
1129 |
-
$selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
|
1130 |
-
"width" => UAGB_Helper::get_css_value( (100 - $attr['contentWidth'] ), '%' ),
|
1131 |
-
);
|
1132 |
-
}
|
1133 |
-
|
1134 |
-
$t_selectors = array(
|
1135 |
-
' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
|
1136 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1137 |
-
),
|
1138 |
-
' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
|
1139 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1140 |
-
),
|
1141 |
-
' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
|
1142 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1143 |
-
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1144 |
-
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1145 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1146 |
-
),
|
1147 |
-
' .uagb-cta__title' => array(
|
1148 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
1149 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
|
1150 |
-
),
|
1151 |
-
' .uagb-cta__desc' => array(
|
1152 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
|
1153 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
|
1154 |
-
),
|
1155 |
-
);
|
1156 |
-
|
1157 |
-
$m_selectors = array(
|
1158 |
-
' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
|
1159 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1160 |
-
),
|
1161 |
-
' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
|
1162 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1163 |
-
),
|
1164 |
-
' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
|
1165 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1166 |
-
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1167 |
-
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1168 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1169 |
-
),
|
1170 |
-
' .uagb-cta__title' => array(
|
1171 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'],$attr['titleFontSizeType'] ),
|
1172 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'],$attr['titleLineHeightType'] ),
|
1173 |
-
),
|
1174 |
-
' .uagb-cta__desc' => array(
|
1175 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'],$attr['descFontSizeType'] ),
|
1176 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
|
1177 |
-
),
|
1178 |
-
);
|
1179 |
-
|
1180 |
-
// @codingStandardsIgnoreEnd.
|
1181 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cta-block-' . $id );
|
1182 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-cta-block-' . $id );
|
1183 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-cta-block-' . $id );
|
1184 |
-
|
1185 |
-
$generated_css = array(
|
1186 |
-
'desktop' => $desktop,
|
1187 |
-
'tablet' => $tablet,
|
1188 |
-
'mobile' => $mobile,
|
1189 |
-
);
|
1190 |
-
|
1191 |
-
return $generated_css;
|
1192 |
-
}
|
1193 |
-
|
1194 |
-
/**
|
1195 |
-
* Get Testimonial CSS
|
1196 |
-
*
|
1197 |
-
* @since 0.0.1
|
1198 |
-
* @param array $attr The block attributes.
|
1199 |
-
* @param string $id The selector ID.
|
1200 |
-
* @return array The Widget List.
|
1201 |
-
*/
|
1202 |
-
public static function get_testimonial_css( $attr, $id ) { // @codingStandardsIgnoreStart.
|
1203 |
-
|
1204 |
-
$defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
|
1205 |
-
|
1206 |
-
$attr = array_merge( $defaults, (array) $attr );
|
1207 |
-
|
1208 |
-
$img_align = 'center';
|
1209 |
-
if( 'left' === $attr['headingAlign']){
|
1210 |
-
$img_align = 'flex-start';
|
1211 |
-
}else if( 'right' === $attr['headingAlign']){
|
1212 |
-
$img_align = 'flex-end';
|
1213 |
-
}
|
1214 |
-
|
1215 |
-
$position = str_replace( '-', ' ', $attr['backgroundPosition'] );
|
1216 |
-
|
1217 |
-
$selectors = array(
|
1218 |
-
' .uagb-testimonial__wrap' => array(
|
1219 |
-
'padding-left' => UAGB_Helper::get_css_value( ( ($attr['columnGap']) /2 ), 'px' ),
|
1220 |
-
'padding-right' => UAGB_Helper::get_css_value( ( ($attr['columnGap']) /2 ), 'px' ),
|
1221 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['rowGap'], 'px' ),
|
1222 |
-
),
|
1223 |
-
' .uagb-testimonial__wrap .uagb-tm__image-content' => array(
|
1224 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['imgHrPadding'], 'px' ),
|
1225 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['imgHrPadding'], 'px' ),
|
1226 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['imgVrPadding'], 'px' ),
|
1227 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['imgVrPadding'], 'px' ),
|
1228 |
-
),
|
1229 |
-
' .uagb-tm__image img' => array(
|
1230 |
-
'width' => UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
1231 |
-
'max-width' => UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
1232 |
-
),
|
1233 |
-
' .uagb-tm__content' => array(
|
1234 |
-
'text-align' => $attr['headingAlign'],
|
1235 |
-
'padding' => UAGB_Helper::get_css_value( $attr['contentPadding'], 'px' ),
|
1236 |
-
),
|
1237 |
-
' .uagb-tm__author-name' => array(
|
1238 |
-
'color' => $attr['authorColor'],
|
1239 |
-
'font-size' => $attr['nameFontSize'] . $attr['nameFontSizeType'],
|
1240 |
-
'font-family' => $attr['nameFontFamily'],
|
1241 |
-
'font-weight' => $attr['nameFontWeight'],
|
1242 |
-
'line-height' => $attr['nameLineHeight'] . $attr['nameLineHeightType'],
|
1243 |
-
'margin-bottom' => $attr['nameSpace'] . 'px',
|
1244 |
-
),
|
1245 |
-
' .uagb-tm__company' => array(
|
1246 |
-
'color' => $attr['companyColor'],
|
1247 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSize'], $attr['companyFontSizeType'] ),
|
1248 |
-
'font-family' => $attr['companyFontFamily'],
|
1249 |
-
'font-weight' => $attr['companyFontWeight'],
|
1250 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeight'], $attr['companyLineHeightType'] ),
|
1251 |
-
),
|
1252 |
-
' .uagb-tm__desc' => array(
|
1253 |
-
'color' => $attr['descColor'],
|
1254 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
|
1255 |
-
'font-family' => $attr['descFontFamily'],
|
1256 |
-
'font-weight' => $attr['descFontWeight'],
|
1257 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
|
1258 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
|
1259 |
-
),
|
1260 |
-
' .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content' => array(
|
1261 |
-
'background-color' => $attr['backgroundColor'],
|
1262 |
-
),
|
1263 |
-
' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content' => array(
|
1264 |
-
'background-image' => ( isset( $attr['backgroundImage']['url'] ) ) ? 'url("'.$attr['backgroundImage']['url'].'")' : null,
|
1265 |
-
'background-position'=> $position,
|
1266 |
-
'background-repeat'=> $attr['backgroundRepeat'],
|
1267 |
-
'background-size'=> $attr['backgroundSize'],
|
1268 |
-
),
|
1269 |
-
' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay' => array(
|
1270 |
-
'background-color' => $attr['backgroundImageColor'],
|
1271 |
-
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? ( ( 100 - $attr['backgroundOpacity'] ) / 100 ) : '0.5',
|
1272 |
-
),
|
1273 |
-
' .uagb-testimonial__wrap .uagb-tm__content' => array(
|
1274 |
-
'border-color' => $attr['borderColor'],
|
1275 |
-
'border-style' => $attr['borderStyle'],
|
1276 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
|
1277 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
1278 |
-
),
|
1279 |
-
' ul.slick-dots li button:before' => array(
|
1280 |
-
'color' => $attr['arrowColor'],
|
1281 |
-
),
|
1282 |
-
' ul.slick-dots li.slick-active button:before' => array(
|
1283 |
-
'color' => $attr['arrowColor'],
|
1284 |
-
),
|
1285 |
-
' .uagb-tm__image-position-top .uagb-tm__image-content' => array(
|
1286 |
-
'justify-content' => $img_align,
|
1287 |
-
),
|
1288 |
-
);
|
1289 |
-
|
1290 |
-
if( 'dots' === $attr['arrowDots'] ){
|
1291 |
-
$selectors['.uagb-slick-carousel'] = array(
|
1292 |
-
'padding' => '0 0 35px 0',
|
1293 |
-
);
|
1294 |
-
}
|
1295 |
-
|
1296 |
-
if( '1' === $attr['test_item_count'] || $attr['test_item_count'] === $attr['columns'] ){
|
1297 |
-
$selectors['.uagb-slick-carousel'] = array(
|
1298 |
-
'padding' => '0',
|
1299 |
-
);
|
1300 |
-
}
|
1301 |
-
|
1302 |
-
$t_selectors = array(
|
1303 |
-
' .uagb-tm__author-name' => array(
|
1304 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['nameFontSizeTablet'], $attr['nameFontSizeType'] ),
|
1305 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['nameLineHeightTablet'], $attr['nameLineHeightType'] ),
|
1306 |
-
),
|
1307 |
-
' .uagb-tm__company' => array(
|
1308 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSizeTablet'], $attr['companyFontSizeType'] ),
|
1309 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeightTablet'], $attr['companyLineHeightType'] ),
|
1310 |
-
),
|
1311 |
-
' .uagb-tm__desc' => array(
|
1312 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
|
1313 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
|
1314 |
-
),
|
1315 |
-
);
|
1316 |
-
|
1317 |
-
$m_selectors = array(
|
1318 |
-
' .uagb-tm__author-name' => array(
|
1319 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['nameFontSizeMobile'], $attr['nameFontSizeType'] ),
|
1320 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['nameLineHeightMobile'], $attr['nameLineHeightType'] ),
|
1321 |
-
),
|
1322 |
-
' .uagb-tm__company' => array(
|
1323 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSizeMobile'], $attr['companyFontSizeType'] ),
|
1324 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeightMobile'], $attr['companyLineHeightType'] ),
|
1325 |
-
),
|
1326 |
-
' .uagb-tm__desc' => array(
|
1327 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
|
1328 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
|
1329 |
-
),
|
1330 |
-
' .uagb-tm__content' => array(
|
1331 |
-
'text-align' => 'center',
|
1332 |
-
)
|
1333 |
-
);
|
1334 |
-
|
1335 |
-
|
1336 |
-
// @codingStandardsIgnoreEnd.
|
1337 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-testimonial-' . $id );
|
1338 |
-
|
1339 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-testimonial-' . $id );
|
1340 |
-
|
1341 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-testimonial-' . $id );
|
1342 |
-
|
1343 |
-
$generated_css = array(
|
1344 |
-
'desktop' => $desktop,
|
1345 |
-
'tablet' => $tablet,
|
1346 |
-
'mobile' => $mobile,
|
1347 |
-
);
|
1348 |
-
|
1349 |
-
return $generated_css;
|
1350 |
-
}
|
1351 |
-
|
1352 |
-
/**
|
1353 |
-
* Get Team Block CSS
|
1354 |
-
*
|
1355 |
-
* @since 0.0.1
|
1356 |
-
* @param array $attr The block attributes.
|
1357 |
-
* @param string $id The selector ID.
|
1358 |
-
* @return array The Widget List.
|
1359 |
-
*/
|
1360 |
-
public static function get_team_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
1361 |
-
|
1362 |
-
$defaults = UAGB_Helper::$block_list['uagb/team']['attributes'];
|
1363 |
-
|
1364 |
-
$attr = array_merge( $defaults, (array) $attr );
|
1365 |
-
|
1366 |
-
$m_selectors = array();
|
1367 |
-
$t_selectors = array();
|
1368 |
-
|
1369 |
-
$selectors = array(
|
1370 |
-
" p.uagb-team__desc" => array(
|
1371 |
-
"font-family" => $attr['descFontFamily'],
|
1372 |
-
"font-weight" => $attr['descFontWeight'],
|
1373 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
|
1374 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
|
1375 |
-
"color" => $attr['descColor'],
|
1376 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
|
1377 |
-
),
|
1378 |
-
" .uagb-team__prefix" => array(
|
1379 |
-
"font-family" => $attr['prefixFontFamily'],
|
1380 |
-
"font-weight" => $attr['prefixFontWeight'],
|
1381 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSize'], $attr['prefixFontSizeType'] ),
|
1382 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['prefixLineHeight'], $attr['prefixLineHeightType'] ),
|
1383 |
-
"color" => $attr['prefixColor'],
|
1384 |
-
),
|
1385 |
-
" .uagb-team__desc-wrap" => array(
|
1386 |
-
"margin-top" => UAGB_Helper::get_css_value( $attr['prefixSpace'], 'px' ),
|
1387 |
-
),
|
1388 |
-
" .uagb-team__social-icon a" => array(
|
1389 |
-
"color" => $attr['socialColor'],
|
1390 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1391 |
-
"width" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1392 |
-
"height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1393 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1394 |
-
),
|
1395 |
-
" .uagb-team__social-icon svg" => array(
|
1396 |
-
"fill" => $attr['socialColor'],
|
1397 |
-
"width" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1398 |
-
"height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1399 |
-
),
|
1400 |
-
" .uagb-team__social-icon:hover a" => array(
|
1401 |
-
"color" => $attr['socialHoverColor'],
|
1402 |
-
),
|
1403 |
-
" .uagb-team__social-icon:hover svg" => array(
|
1404 |
-
"fill" => $attr['socialHoverColor'],
|
1405 |
-
),
|
1406 |
-
".uagb-team__image-position-left .uagb-team__social-icon" => array(
|
1407 |
-
"margin-right" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
|
1408 |
-
"margin-left" => "0",
|
1409 |
-
),
|
1410 |
-
".uagb-team__image-position-right .uagb-team__social-icon" => array(
|
1411 |
-
"margin-left" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
|
1412 |
-
"margin-right" => "0",
|
1413 |
-
),
|
1414 |
-
".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon" => array(
|
1415 |
-
"margin-right" => UAGB_Helper::get_css_value( ( $attr['socialSpace'] / 2 ), 'px' ),
|
1416 |
-
"margin-left" => UAGB_Helper::get_css_value( ( $attr['socialSpace'] / 2 ), 'px' ),
|
1417 |
-
),
|
1418 |
-
".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon" => array(
|
1419 |
-
"margin-right" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
|
1420 |
-
"margin-left" => "0",
|
1421 |
-
),
|
1422 |
-
".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon" => array(
|
1423 |
-
"margin-left" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
|
1424 |
-
"margin-right" => "0",
|
1425 |
-
),
|
1426 |
-
" .uagb-team__image-wrap" => array(
|
1427 |
-
"margin-top" => UAGB_Helper::get_css_value( $attr['imgTopMargin'], 'px' ),
|
1428 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['imgBottomMargin'], 'px' ),
|
1429 |
-
"margin-left" => UAGB_Helper::get_css_value( $attr['imgLeftMargin'], 'px' ),
|
1430 |
-
"margin-right" => UAGB_Helper::get_css_value( $attr['imgRightMargin'], 'px' ),
|
1431 |
-
"width" => UAGB_Helper::get_css_value( $attr['imgWidth'], 'px' )
|
1432 |
-
),
|
1433 |
-
);
|
1434 |
-
|
1435 |
-
if( 'above' == $attr['imgPosition'] ) {
|
1436 |
-
if ( 'center' == $attr['align'] ) {
|
1437 |
-
$selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
|
1438 |
-
$selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
|
1439 |
-
} else if ( 'left' == $attr['align'] ) {
|
1440 |
-
$selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
|
1441 |
-
} else if ( 'right' == $attr['align'] ) {
|
1442 |
-
$selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
|
1443 |
-
}
|
1444 |
-
}
|
1445 |
-
|
1446 |
-
if ( "above" != $attr['imgPosition'] ) {
|
1447 |
-
if ( "middle" == $attr['imgAlign'] ) {
|
1448 |
-
$selectors[" .uagb-team__image-wrap"]["align-self"] = "center";
|
1449 |
-
}
|
1450 |
-
}
|
1451 |
-
|
1452 |
-
$selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
|
1453 |
-
"font-family" => $attr['titleFontFamily'],
|
1454 |
-
"font-weight" => $attr['titleFontWeight'],
|
1455 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
|
1456 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
|
1457 |
-
"color" => $attr['titleColor'],
|
1458 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['titleSpace'], 'px' ),
|
1459 |
-
);
|
1460 |
-
|
1461 |
-
$m_selectors = array(
|
1462 |
-
" p.uagb-team__desc" => array(
|
1463 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
|
1464 |
-
),
|
1465 |
-
" .uagb-team__prefix" => array(
|
1466 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
|
1467 |
-
),
|
1468 |
-
" .uagb-team__social-icon a" => array(
|
1469 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1470 |
-
"width" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1471 |
-
"height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1472 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1473 |
-
),
|
1474 |
-
" .uagb-team__social-icon svg" => array(
|
1475 |
-
"width" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1476 |
-
"height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1477 |
-
),
|
1478 |
-
);
|
1479 |
-
|
1480 |
-
$t_selectors = array(
|
1481 |
-
" p.uagb-team__desc" => array(
|
1482 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
|
1483 |
-
),
|
1484 |
-
" .uagb-team__prefix" => array(
|
1485 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
|
1486 |
-
),
|
1487 |
-
" .uagb-team__social-icon a" => array(
|
1488 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1489 |
-
"width" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1490 |
-
"height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1491 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1492 |
-
),
|
1493 |
-
" .uagb-team__social-icon svg" => array(
|
1494 |
-
"width" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1495 |
-
"height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1496 |
-
),
|
1497 |
-
);
|
1498 |
-
|
1499 |
-
$m_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
|
1500 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
|
1501 |
-
);
|
1502 |
-
|
1503 |
-
$t_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
|
1504 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
1505 |
-
);
|
1506 |
-
|
1507 |
-
// @codingStandardsIgnoreEnd
|
1508 |
-
|
1509 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-team-' . $id );
|
1510 |
-
|
1511 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-team-' . $id );
|
1512 |
-
|
1513 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-team-' . $id );
|
1514 |
-
|
1515 |
-
$generated_css = array(
|
1516 |
-
'desktop' => $desktop,
|
1517 |
-
'tablet' => $tablet,
|
1518 |
-
'mobile' => $mobile,
|
1519 |
-
);
|
1520 |
-
|
1521 |
-
return $generated_css;
|
1522 |
-
}
|
1523 |
-
|
1524 |
-
/**
|
1525 |
-
* Get Social Share Block CSS
|
1526 |
-
*
|
1527 |
-
* @since 0.0.1
|
1528 |
-
* @param array $attr The block attributes.
|
1529 |
-
* @param string $id The selector ID.
|
1530 |
-
* @return array The Widget List.
|
1531 |
-
*/
|
1532 |
-
public static function get_social_share_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
1533 |
-
|
1534 |
-
$defaults = UAGB_Helper::$block_list['uagb/social-share']['attributes'];
|
1535 |
-
|
1536 |
-
$attr = array_merge( $defaults, (array) $attr );
|
1537 |
-
|
1538 |
-
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
1539 |
-
|
1540 |
-
$m_selectors = array();
|
1541 |
-
$t_selectors = array();
|
1542 |
-
|
1543 |
-
$selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper"] = array(
|
1544 |
-
"margin-left" => 0,
|
1545 |
-
"margin-right" => 0,
|
1546 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1547 |
-
);
|
1548 |
-
|
1549 |
-
$selectors[".uagb-social-share__layout-vertical .uagb-social-share__wrap"] = array(
|
1550 |
-
"flex-direction" => "column"
|
1551 |
-
);
|
1552 |
-
|
1553 |
-
$selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper:last-child"] = array(
|
1554 |
-
"margin-bottom" => 0
|
1555 |
-
);
|
1556 |
-
|
1557 |
-
$selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
|
1558 |
-
"margin-left" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
|
1559 |
-
"margin-right" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
|
1560 |
-
);
|
1561 |
-
|
1562 |
-
$selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:first-child"] = array(
|
1563 |
-
"margin-left" => 0
|
1564 |
-
);
|
1565 |
-
|
1566 |
-
$selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:last-child"] = array(
|
1567 |
-
"margin-right" => 0
|
1568 |
-
);
|
1569 |
-
|
1570 |
-
$selectors[" .uagb-ss__wrapper"] = array(
|
1571 |
-
"border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' )
|
1572 |
-
);
|
1573 |
-
|
1574 |
-
$selectors[" .uagb-ss__source-wrap"] = array(
|
1575 |
-
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1576 |
-
);
|
1577 |
-
|
1578 |
-
$selectors[" .uagb-ss__source-wrap svg"] = array(
|
1579 |
-
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1580 |
-
"height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1581 |
-
);
|
1582 |
-
|
1583 |
-
$selectors[" .uagb-ss__source-image"] = array(
|
1584 |
-
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
|
1585 |
-
);
|
1586 |
-
|
1587 |
-
$selectors[" .uagb-ss__source-icon"] = array(
|
1588 |
-
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1589 |
-
"height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1590 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1591 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
|
1592 |
-
);
|
1593 |
-
|
1594 |
-
|
1595 |
-
$t_selectors[" .uagb-ss__source-wrap"] = array(
|
1596 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1597 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1598 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1599 |
-
);
|
1600 |
-
|
1601 |
-
$t_selectors[" .uagb-ss__source-wrap svg"] = array(
|
1602 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1603 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1604 |
-
);
|
1605 |
-
|
1606 |
-
$t_selectors[" .uagb-ss__source-image"] = array(
|
1607 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1608 |
-
);
|
1609 |
-
|
1610 |
-
$t_selectors[" .uagb-ss__source-icon"] = array(
|
1611 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1612 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1613 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1614 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1615 |
-
);
|
1616 |
-
$t_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
|
1617 |
-
"margin-left" => 0,
|
1618 |
-
"margin-right" => 0
|
1619 |
-
);
|
1620 |
-
|
1621 |
-
|
1622 |
-
$m_selectors[" .uagb-ss__source-wrap"] = array(
|
1623 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1624 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1625 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1626 |
-
);
|
1627 |
-
|
1628 |
-
$m_selectors[" .uagb-ss__source-wrap svg"] = array(
|
1629 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1630 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1631 |
-
);
|
1632 |
-
|
1633 |
-
$m_selectors[" .uagb-ss__source-image"] = array(
|
1634 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1635 |
-
);
|
1636 |
-
|
1637 |
-
$m_selectors[" .uagb-ss__source-icon"] = array(
|
1638 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1639 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1640 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1641 |
-
"line-height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1642 |
-
);
|
1643 |
-
$m_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
|
1644 |
-
"margin-left" => 0,
|
1645 |
-
"margin-right" => 0
|
1646 |
-
);
|
1647 |
-
|
1648 |
-
|
1649 |
-
foreach ( $attr['socials'] as $key => $social ) {
|
1650 |
-
|
1651 |
-
$social['icon_color'] = ( isset( $social['icon_color'] ) ) ? $social['icon_color'] : '';
|
1652 |
-
$social['icon_hover_color'] = ( isset( $social['icon_hover_color'] ) ) ? $social['icon_hover_color'] : '';
|
1653 |
-
|
1654 |
-
if ( $attr['social_count'] <= $key ) {
|
1655 |
-
break;
|
1656 |
-
}
|
1657 |
-
|
1658 |
-
$selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
|
1659 |
-
"color" => $social['icon_color'],
|
1660 |
-
"padding" => UAGB_Helper::get_css_value( $attr['bgSize'], $attr['bgSizeType'] )
|
1661 |
-
);
|
1662 |
-
|
1663 |
-
$m_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
|
1664 |
-
"padding" => UAGB_Helper::get_css_value( $attr['bgSizeMobile'], $attr['bgSizeType'] )
|
1665 |
-
);
|
1666 |
-
|
1667 |
-
$t_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
|
1668 |
-
"padding" => UAGB_Helper::get_css_value( $attr['bgSizeTablet'], $attr['bgSizeType'] )
|
1669 |
-
);
|
1670 |
-
|
1671 |
-
$selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link svg"] = array (
|
1672 |
-
"fill" => $social['icon_color'],
|
1673 |
-
);
|
1674 |
-
|
1675 |
-
$selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link"] = array (
|
1676 |
-
"color" => $social['icon_hover_color']
|
1677 |
-
);
|
1678 |
-
|
1679 |
-
$selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link svg"] = array (
|
1680 |
-
"fill" => $social['icon_hover_color']
|
1681 |
-
);
|
1682 |
-
|
1683 |
-
$selectors[" .uagb-ss-repeater-" . $key] = array (
|
1684 |
-
"background" => $social['icon_bg_color']
|
1685 |
-
);
|
1686 |
-
|
1687 |
-
$selectors[" .uagb-ss-repeater-" . $key . ":hover"] = array (
|
1688 |
-
"background" => $social['icon_bg_hover_color']
|
1689 |
-
);
|
1690 |
-
}
|
1691 |
-
|
1692 |
-
$selectors[" .uagb-social-share__wrap"] = array(
|
1693 |
-
"justify-content" => $alignment,
|
1694 |
-
"-webkit-box-pack" => $alignment,
|
1695 |
-
"-ms-flex-pack" => $alignment,
|
1696 |
-
"justify-content" => $alignment,
|
1697 |
-
"-webkit-box-align" => $alignment,
|
1698 |
-
"-ms-flex-align" => $alignment,
|
1699 |
-
"align-items" => $alignment,
|
1700 |
-
);
|
1701 |
-
|
1702 |
-
if ( 'horizontal' == $attr['social_layout'] ) {
|
1703 |
-
|
1704 |
-
if ( "desktop" == $attr['stack'] ) {
|
1705 |
-
|
1706 |
-
$selectors[" .uagb-ss__wrapper"] = array (
|
1707 |
-
"margin-left" => 0,
|
1708 |
-
"margin-right" => 0,
|
1709 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1710 |
-
);
|
1711 |
-
|
1712 |
-
$selectors[" .uagb-social-share__wrap"] = array (
|
1713 |
-
"flex-direction" => "column"
|
1714 |
-
);
|
1715 |
-
|
1716 |
-
$selectors[" .uagb-ss__wrapper:last-child"] = array (
|
1717 |
-
"margin-bottom" => 0
|
1718 |
-
);
|
1719 |
-
|
1720 |
-
} else if ( "tablet" == $attr['stack'] ) {
|
1721 |
-
|
1722 |
-
$t_selectors[" .uagb-ss__wrapper"] = array (
|
1723 |
-
"margin-left" => 0,
|
1724 |
-
"margin-right" => 0,
|
1725 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1726 |
-
);
|
1727 |
-
|
1728 |
-
$t_selectors[" .uagb-social-share__wrap"] = array (
|
1729 |
-
"flex-direction" => "column"
|
1730 |
-
);
|
1731 |
-
|
1732 |
-
$t_selectors[" .uagb-ss__wrapper:last-child"] = array (
|
1733 |
-
"margin-bottom" => 0
|
1734 |
-
);
|
1735 |
-
|
1736 |
-
} else if ( "mobile" == $attr['stack'] ) {
|
1737 |
-
|
1738 |
-
$m_selectors[" .uagb-ss__wrapper"] = array (
|
1739 |
-
"margin-left" => 0,
|
1740 |
-
"margin-right" => 0,
|
1741 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1742 |
-
);
|
1743 |
-
|
1744 |
-
$m_selectors[" .uagb-social-share__wrap"] = array (
|
1745 |
-
"flex-direction" => "column"
|
1746 |
-
);
|
1747 |
-
|
1748 |
-
$m_selectors[" .uagb-ss__wrapper:last-child"] = array (
|
1749 |
-
"margin-bottom" => 0
|
1750 |
-
);
|
1751 |
-
}
|
1752 |
-
}
|
1753 |
-
|
1754 |
-
// @codingStandardsIgnoreEnd
|
1755 |
-
|
1756 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-social-share-' . $id );
|
1757 |
-
|
1758 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-social-share-' . $id );
|
1759 |
-
|
1760 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-social-share-' . $id );
|
1761 |
-
|
1762 |
-
$generated_css = array(
|
1763 |
-
'desktop' => $desktop,
|
1764 |
-
'tablet' => $tablet,
|
1765 |
-
'mobile' => $mobile,
|
1766 |
-
);
|
1767 |
-
|
1768 |
-
return $generated_css;
|
1769 |
-
}
|
1770 |
-
|
1771 |
-
/**
|
1772 |
-
* Get Icon List Block CSS
|
1773 |
-
*
|
1774 |
-
* @since 0.0.1
|
1775 |
-
* @param array $attr The block attributes.
|
1776 |
-
* @param string $id The selector ID.
|
1777 |
-
* @return array The Widget List.
|
1778 |
-
*/
|
1779 |
-
public static function get_icon_list_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
1780 |
-
|
1781 |
-
$defaults = UAGB_Helper::$block_list['uagb/icon-list']['attributes'];
|
1782 |
-
|
1783 |
-
$attr = array_merge( $defaults, (array) $attr );
|
1784 |
-
|
1785 |
-
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
1786 |
-
|
1787 |
-
$m_selectors = array();
|
1788 |
-
$t_selectors = array();
|
1789 |
-
|
1790 |
-
$selectors = array(
|
1791 |
-
".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper" => array(
|
1792 |
-
"margin-left" => 0,
|
1793 |
-
"margin-right" => 0,
|
1794 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1795 |
-
),
|
1796 |
-
".uagb-icon-list__layout-vertical .uagb-icon-list__wrap" => array(
|
1797 |
-
"flex-direction" => "column"
|
1798 |
-
),
|
1799 |
-
".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper:last-child" => array(
|
1800 |
-
"margin-bottom" => 0
|
1801 |
-
),
|
1802 |
-
".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper" => array(
|
1803 |
-
"margin-left" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
|
1804 |
-
"margin-right" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
|
1805 |
-
),
|
1806 |
-
".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:first-child" => array(
|
1807 |
-
"margin-left" => 0
|
1808 |
-
),
|
1809 |
-
".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:last-child" => array(
|
1810 |
-
"margin-right" => 0
|
1811 |
-
),
|
1812 |
-
// Desktop Icon Size CSS starts.
|
1813 |
-
" .uagb-icon-list__source-image" => array(
|
1814 |
-
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
|
1815 |
-
),
|
1816 |
-
" .uagb-icon-list__source-icon" => array(
|
1817 |
-
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1818 |
-
"height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1819 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
|
1820 |
-
),
|
1821 |
-
" .uagb-icon-list__source-icon svg" => array(
|
1822 |
-
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1823 |
-
"height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1824 |
-
),
|
1825 |
-
" .uagb-icon-list__source-icon:before"=> array(
|
1826 |
-
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1827 |
-
"height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1828 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
|
1829 |
-
),
|
1830 |
-
" .uagb-icon-list__label-wrap"=> array(
|
1831 |
-
"text-align" => $attr['align']
|
1832 |
-
),
|
1833 |
-
|
1834 |
-
" .uagb-icon-list__source-wrap"=> array(
|
1835 |
-
"padding" => UAGB_Helper::get_css_value( $attr['bgSize'], 'px' ),
|
1836 |
-
"border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
1837 |
-
"border-style" => "solid",
|
1838 |
-
"border-width" => UAGB_Helper::get_css_value( $attr['border'], 'px' )
|
1839 |
-
),
|
1840 |
-
" .uagb-icon-list__wrap"=> array(
|
1841 |
-
"justify-content" => $alignment,
|
1842 |
-
"-webkit-box-pack" => $alignment,
|
1843 |
-
"-ms-flex-pack" => $alignment,
|
1844 |
-
"justify-content" => $alignment,
|
1845 |
-
"-webkit-box-align" => $alignment,
|
1846 |
-
"-ms-flex-align" => $alignment,
|
1847 |
-
"align-items" => $alignment,
|
1848 |
-
)
|
1849 |
-
);
|
1850 |
-
|
1851 |
-
if ( 'right' == $attr['align'] ) {
|
1852 |
-
$selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
|
1853 |
-
"margin-left" => UAGB_Helper::get_css_value( $attr['inner_gap'], 'px' )
|
1854 |
-
);
|
1855 |
-
$selectors[" .uagb-icon-list__content-wrap"] = array(
|
1856 |
-
"flex-direction" => "row-reverse"
|
1857 |
-
);
|
1858 |
-
} else {
|
1859 |
-
$selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
|
1860 |
-
"margin-right" => UAGB_Helper::get_css_value( $attr['inner_gap'], 'px' )
|
1861 |
-
);
|
1862 |
-
}
|
1863 |
-
// Desktop Icon Size CSS ends.
|
1864 |
-
|
1865 |
-
// Mobile Icon Size CSS starts.
|
1866 |
-
$m_selectors = array(
|
1867 |
-
" .uagb-icon-list__source-image" => array(
|
1868 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1869 |
-
),
|
1870 |
-
" .uagb-icon-list__source-icon" => array(
|
1871 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1872 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1873 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1874 |
-
),
|
1875 |
-
" .uagb-icon-list__source-icon svg" => array(
|
1876 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1877 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1878 |
-
),
|
1879 |
-
" .uagb-icon-list__source-icon:before" => array(
|
1880 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1881 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1882 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1883 |
-
),
|
1884 |
-
);
|
1885 |
-
// Mobile Icon Size CSS ends.
|
1886 |
-
|
1887 |
-
// Tablet Icon Size CSS starts.
|
1888 |
-
$t_selectors = array(
|
1889 |
-
" .uagb-icon-list__source-image" => array(
|
1890 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1891 |
-
),
|
1892 |
-
" .uagb-icon-list__source-icon" => array(
|
1893 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1894 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1895 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1896 |
-
),
|
1897 |
-
" .uagb-icon-list__source-icon svg" => array(
|
1898 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1899 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1900 |
-
),
|
1901 |
-
" .uagb-icon-list__source-icon:before" => array(
|
1902 |
-
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1903 |
-
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1904 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1905 |
-
),
|
1906 |
-
);
|
1907 |
-
// Tablet Icon Size CSS ends.
|
1908 |
-
|
1909 |
-
foreach ( $attr['icons'] as $key => $icon ) {
|
1910 |
-
|
1911 |
-
$icon['icon_color'] = ( isset( $icon['icon_color'] ) ) ? $icon['icon_color'] : '';
|
1912 |
-
$icon['icon_hover_color'] = ( isset( $icon['icon_hover_color'] ) ) ? $icon['icon_hover_color'] : '';
|
1913 |
-
$icon['icon_bg_color'] = ( isset( $icon['icon_bg_color'] ) ) ? $icon['icon_bg_color'] : '';
|
1914 |
-
$icon['icon_bg_hover_color'] = ( isset( $icon['icon_bg_hover_color'] ) ) ? $icon['icon_bg_hover_color'] : '';
|
1915 |
-
$icon['icon_border_color'] = ( isset( $icon['icon_border_color'] ) ) ? $icon['icon_border_color'] : '';
|
1916 |
-
$icon['icon_border_hover_color'] = ( isset( $icon['icon_border_hover_color'] ) ) ? $icon['icon_border_hover_color'] : '';
|
1917 |
-
$icon['label_color'] = ( isset( $icon['label_color'] ) ) ? $icon['label_color'] : '';
|
1918 |
-
$icon['label_hover_color'] = ( isset( $icon['label_hover_color'] ) ) ? $icon['label_hover_color'] : '';
|
1919 |
-
|
1920 |
-
if ( $attr['icon_count'] <= $key ) {
|
1921 |
-
break;
|
1922 |
-
}
|
1923 |
-
|
1924 |
-
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon"] = array (
|
1925 |
-
"color" => $icon['icon_color']
|
1926 |
-
);
|
1927 |
-
|
1928 |
-
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon svg"] = array (
|
1929 |
-
"fill" => $icon['icon_color']
|
1930 |
-
);
|
1931 |
-
|
1932 |
-
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon"] = array (
|
1933 |
-
"color" => $icon['icon_hover_color']
|
1934 |
-
);
|
1935 |
-
|
1936 |
-
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon svg"] = array (
|
1937 |
-
"fill" => $icon['icon_hover_color']
|
1938 |
-
);
|
1939 |
-
|
1940 |
-
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
|
1941 |
-
"color" => $icon['label_color'],
|
1942 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['fontSize'], $attr['fontSizeType'] ),
|
1943 |
-
'font-family' => $attr['fontFamily'],
|
1944 |
-
'font-weight' => $attr['fontWeight'],
|
1945 |
-
'line-height' => $attr['lineHeight'] . $attr['lineHeightType'],
|
1946 |
-
);
|
1947 |
-
|
1948 |
-
$m_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
|
1949 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['fontSizeMobile'], $attr['fontSizeType'] ),
|
1950 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightMobile'], $attr['lineHeightType'] ),
|
1951 |
-
);
|
1952 |
-
|
1953 |
-
$t_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
|
1954 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['fontSizeTablet'], $attr['fontSizeType'] ),
|
1955 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightTablet'], $attr['lineHeightType'] ),
|
1956 |
-
);
|
1957 |
-
|
1958 |
-
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__label"] = array (
|
1959 |
-
"color" => $icon['label_hover_color']
|
1960 |
-
);
|
1961 |
-
|
1962 |
-
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-wrap"] = array(
|
1963 |
-
"background" => $icon['icon_bg_color'],
|
1964 |
-
"border-color" => $icon['icon_border_color'],
|
1965 |
-
);
|
1966 |
-
|
1967 |
-
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-wrap"] = array(
|
1968 |
-
"background" => $icon['icon_bg_hover_color'],
|
1969 |
-
"border-color" => $icon['icon_border_hover_color']
|
1970 |
-
);
|
1971 |
-
}
|
1972 |
-
|
1973 |
-
if ( 'horizontal' == $attr['icon_layout'] ) {
|
1974 |
-
|
1975 |
-
if ( "tablet" == $attr['stack'] ) {
|
1976 |
-
|
1977 |
-
$t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
|
1978 |
-
"margin-left" => 0,
|
1979 |
-
"margin-right" => 0,
|
1980 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1981 |
-
);
|
1982 |
-
|
1983 |
-
$t_selectors[" .uagb-icon-list__wrap"] = array (
|
1984 |
-
"flex-direction" => "column"
|
1985 |
-
);
|
1986 |
-
|
1987 |
-
$t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
|
1988 |
-
"margin-bottom" => 0
|
1989 |
-
);
|
1990 |
-
|
1991 |
-
} else if ( "mobile" == $attr['stack'] ) {
|
1992 |
-
|
1993 |
-
$m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
|
1994 |
-
"margin-left" => 0,
|
1995 |
-
"margin-right" => 0,
|
1996 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1997 |
-
);
|
1998 |
-
|
1999 |
-
$m_selectors[" .uagb-icon-list__wrap"] = array (
|
2000 |
-
"flex-direction" => "column"
|
2001 |
-
);
|
2002 |
-
|
2003 |
-
$m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
|
2004 |
-
"margin-bottom" => 0
|
2005 |
-
);
|
2006 |
-
}
|
2007 |
-
}
|
2008 |
-
|
2009 |
-
// @codingStandardsIgnoreEnd
|
2010 |
-
|
2011 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-icon-list-' . $id );
|
2012 |
-
|
2013 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-icon-list-' . $id );
|
2014 |
-
|
2015 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-icon-list-' . $id );
|
2016 |
-
|
2017 |
-
$generated_css = array(
|
2018 |
-
'desktop' => $desktop,
|
2019 |
-
'tablet' => $tablet,
|
2020 |
-
'mobile' => $mobile,
|
2021 |
-
);
|
2022 |
-
|
2023 |
-
return $generated_css;
|
2024 |
-
}
|
2025 |
-
|
2026 |
-
/**
|
2027 |
-
* Get Content Timeline Block CSS
|
2028 |
-
*
|
2029 |
-
* @since 0.0.1
|
2030 |
-
* @param array $attr The block attributes.
|
2031 |
-
* @param string $id The selector ID.
|
2032 |
-
* @return array The Widget List.
|
2033 |
-
*/
|
2034 |
-
public static function get_content_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2035 |
-
|
2036 |
-
$defaults = UAGB_Helper::$block_list['uagb/content-timeline']['attributes'];
|
2037 |
-
|
2038 |
-
$attr = array_merge( $defaults, (array) $attr );
|
2039 |
-
|
2040 |
-
$selectors = array();
|
2041 |
-
$t_selectors = array();
|
2042 |
-
$m_selectors = array();
|
2043 |
-
|
2044 |
-
$selectors = array(
|
2045 |
-
" .uagb-timeline__heading" => array(
|
2046 |
-
"text-align" => $attr['align'],
|
2047 |
-
"color" => $attr['headingColor'],
|
2048 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
|
2049 |
-
'font-family' => $attr['headFontFamily'],
|
2050 |
-
'font-weight' => $attr['headFontWeight'],
|
2051 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
|
2052 |
-
),
|
2053 |
-
" .uagb-timeline__heading-text" => array(
|
2054 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
|
2055 |
-
),
|
2056 |
-
' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
|
2057 |
-
'color'=> $attr['iconFocus'],
|
2058 |
-
),
|
2059 |
-
);
|
2060 |
-
|
2061 |
-
$desktop_selectors = self::get_timeline_selectors( $attr );
|
2062 |
-
$selectors = array_merge( $selectors, $desktop_selectors );
|
2063 |
-
|
2064 |
-
$t_selectors = array(
|
2065 |
-
" .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
|
2066 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
|
2067 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
|
2068 |
-
),
|
2069 |
-
" .uagb-timeline__date-new" => array(
|
2070 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
|
2071 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
|
2072 |
-
),
|
2073 |
-
" .uagb-timeline__heading" => array(
|
2074 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
|
2075 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
|
2076 |
-
),
|
2077 |
-
" .uagb-timeline-desc-content" => array(
|
2078 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
|
2079 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
|
2080 |
-
),
|
2081 |
-
);
|
2082 |
-
|
2083 |
-
$tablet_selectors = self::get_timeline_tablet_selectors( $attr );
|
2084 |
-
$t_selectors = array_merge( $t_selectors, $tablet_selectors );
|
2085 |
-
|
2086 |
-
$m_selectors = array(
|
2087 |
-
" .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
|
2088 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
|
2089 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
|
2090 |
-
),
|
2091 |
-
" .uagb-timeline__date-new" => array(
|
2092 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
|
2093 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
|
2094 |
-
),
|
2095 |
-
" .uagb-timeline__heading" => array(
|
2096 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
|
2097 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
|
2098 |
-
),
|
2099 |
-
" .uagb-timeline-desc-content" => array(
|
2100 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
|
2101 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
|
2102 |
-
),
|
2103 |
-
);
|
2104 |
-
|
2105 |
-
$mobile_selectors = self::get_timeline_mobile_selectors( $attr );
|
2106 |
-
|
2107 |
-
$m_selectors = array_merge( $m_selectors, $mobile_selectors );
|
2108 |
-
|
2109 |
-
// @codingStandardsIgnoreEnd
|
2110 |
-
|
2111 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
|
2112 |
-
|
2113 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-ctm-' . $id );
|
2114 |
-
|
2115 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-ctm-' . $id );
|
2116 |
-
|
2117 |
-
$generated_css = array(
|
2118 |
-
'desktop' => $desktop,
|
2119 |
-
'tablet' => $tablet,
|
2120 |
-
'mobile' => $mobile,
|
2121 |
-
);
|
2122 |
-
|
2123 |
-
return $generated_css;
|
2124 |
-
}
|
2125 |
-
|
2126 |
-
/**
|
2127 |
-
* Get Content Timeline Block CSS
|
2128 |
-
*
|
2129 |
-
* @since 0.0.1
|
2130 |
-
* @param array $attr The block attributes.
|
2131 |
-
* @param string $id The selector ID.
|
2132 |
-
* @return array The Widget List.
|
2133 |
-
*/
|
2134 |
-
public static function get_post_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2135 |
-
|
2136 |
-
$defaults = UAGB_Helper::$block_list['uagb/post-timeline']['attributes'];
|
2137 |
-
|
2138 |
-
$attr = array_merge( $defaults, (array) $attr );
|
2139 |
-
$t_selectors = array();
|
2140 |
-
|
2141 |
-
$selectors = array(
|
2142 |
-
" .uagb-timeline__heading" => array(
|
2143 |
-
"text-align" => $attr['align'],
|
2144 |
-
),
|
2145 |
-
" .uagb-timeline__author" => array(
|
2146 |
-
"text-align" => $attr['align'],
|
2147 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['authorSpace'], 'px' )
|
2148 |
-
),
|
2149 |
-
" .uagb-timeline__link_parent" => array(
|
2150 |
-
"text-align" => $attr['align'],
|
2151 |
-
),
|
2152 |
-
" .uagb-timeline__image a" => array(
|
2153 |
-
"text-align" => $attr['align'],
|
2154 |
-
),
|
2155 |
-
" .uagb-timeline__author-link" => array(
|
2156 |
-
"color" => $attr['authorColor'],
|
2157 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
|
2158 |
-
'font-family' => $attr['authorFontFamily'],
|
2159 |
-
'font-weight' => $attr['authorFontWeight'],
|
2160 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
|
2161 |
-
),
|
2162 |
-
" .dashicons-admin-users" => array(
|
2163 |
-
"color" => $attr['authorColor'],
|
2164 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
|
2165 |
-
'font-weight' => $attr['authorFontWeight'],
|
2166 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
|
2167 |
-
),
|
2168 |
-
" .uagb-timeline__link" => array(
|
2169 |
-
"color" => $attr['ctaColor'],
|
2170 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
2171 |
-
'font-family' => $attr['ctaFontFamily'],
|
2172 |
-
'font-weight' => $attr['ctaFontWeight'],
|
2173 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
|
2174 |
-
"background-color" => $attr['ctaBackground'],
|
2175 |
-
),
|
2176 |
-
" .uagb-timeline__heading a" => array(
|
2177 |
-
"text-align" => $attr['align'],
|
2178 |
-
"color" => $attr['headingColor'],
|
2179 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
|
2180 |
-
'font-family' => $attr['headFontFamily'],
|
2181 |
-
'font-weight' => $attr['headFontWeight'],
|
2182 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
|
2183 |
-
),
|
2184 |
-
" .uagb-timeline__heading-text" => array(
|
2185 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
|
2186 |
-
),
|
2187 |
-
" .uagb_timeline__cta-enable .uagb-timeline-desc-content" => array(
|
2188 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['contentSpace'], 'px' ),
|
2189 |
-
),
|
2190 |
-
' .uagb-content' => array(
|
2191 |
-
'padding'=> UAGB_Helper::get_css_value( $attr['contentPadding'], 'px' ),
|
2192 |
-
),
|
2193 |
-
);
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
2197 |
-
$desktop_selectors = self::get_timeline_selectors( $attr );
|
2198 |
-
$selectors = array_merge( $selectors, $desktop_selectors );
|
2199 |
-
|
2200 |
-
$t_selectors = array(
|
2201 |
-
" .uagb-timeline__author-link" => array(
|
2202 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
|
2203 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
|
2204 |
-
),
|
2205 |
-
" .dashicons-admin-users" => array(
|
2206 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
|
2207 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
|
2208 |
-
),
|
2209 |
-
" .uagb-timeline__link" => array(
|
2210 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
2211 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
|
2212 |
-
),
|
2213 |
-
" .uagb-timeline__heading a" => array(
|
2214 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
|
2215 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
|
2216 |
-
),
|
2217 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
|
2218 |
-
"text-align" => 'left',
|
2219 |
-
),
|
2220 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
|
2221 |
-
"text-align" => 'left',
|
2222 |
-
),
|
2223 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a" => array(
|
2224 |
-
'text-align' => 'left',
|
2225 |
-
),
|
2226 |
-
);
|
2227 |
-
|
2228 |
-
$tablet_selectors = self::get_timeline_tablet_selectors( $attr );
|
2229 |
-
$t_selectors = array_merge( $t_selectors, $tablet_selectors );
|
2230 |
-
|
2231 |
-
// Mobile responsive CSS.
|
2232 |
-
$m_selectors = array(
|
2233 |
-
" .uagb-timeline__author-link" => array(
|
2234 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
|
2235 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
|
2236 |
-
),
|
2237 |
-
" .dashicons-admin-users" => array(
|
2238 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
|
2239 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
|
2240 |
-
),
|
2241 |
-
" .uagb-timeline__link" => array(
|
2242 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
2243 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
|
2244 |
-
),
|
2245 |
-
" .uagb-timeline__heading a" => array(
|
2246 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
|
2247 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
|
2248 |
-
),
|
2249 |
-
" .uagb-timeline__heading" => array(
|
2250 |
-
"text-align" => $attr['align'],
|
2251 |
-
),
|
2252 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
|
2253 |
-
"text-align" => 'left',
|
2254 |
-
),
|
2255 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
|
2256 |
-
"text-align" => 'left',
|
2257 |
-
),
|
2258 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a" => array(
|
2259 |
-
'text-align' => 'left',
|
2260 |
-
),
|
2261 |
-
);
|
2262 |
-
|
2263 |
-
$mobile_selectors = self::get_timeline_mobile_selectors( $attr );
|
2264 |
-
$m_selectors = array_merge( $m_selectors, $mobile_selectors );
|
2265 |
-
|
2266 |
-
// @codingStandardsIgnoreEnd
|
2267 |
-
|
2268 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
|
2269 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-ctm-' . $id );
|
2270 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-ctm-' . $id );
|
2271 |
-
|
2272 |
-
$generated_css = array(
|
2273 |
-
'desktop' => $desktop,
|
2274 |
-
'tablet' => $tablet,
|
2275 |
-
'mobile' => $mobile,
|
2276 |
-
);
|
2277 |
-
|
2278 |
-
return $generated_css;
|
2279 |
-
}
|
2280 |
-
|
2281 |
-
/**
|
2282 |
-
* Get Restaurant Menu Block CSS
|
2283 |
-
*
|
2284 |
-
* @since 1.0.2
|
2285 |
-
* @param array $attr The block attributes.
|
2286 |
-
* @param string $id The selector ID.
|
2287 |
-
* @return array The Widget List.
|
2288 |
-
*/
|
2289 |
-
public static function get_restaurant_menu_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2290 |
-
|
2291 |
-
$defaults = UAGB_Helper::$block_list['uagb/restaurant-menu']['attributes'];
|
2292 |
-
|
2293 |
-
$attr = array_merge( $defaults, (array) $attr );
|
2294 |
-
|
2295 |
-
$m_selectors = array();
|
2296 |
-
$t_selectors = array();
|
2297 |
-
|
2298 |
-
$align = $attr['headingAlign'];
|
2299 |
-
if( 'left' === $align ){
|
2300 |
-
$align = 'flex-start';
|
2301 |
-
}else if( 'right' === $align ){
|
2302 |
-
$align = 'flex-end';
|
2303 |
-
}
|
2304 |
-
|
2305 |
-
$selectors = array(
|
2306 |
-
" .uagb-rest_menu__wrap" => array(
|
2307 |
-
'padding-left' => UAGB_Helper::get_css_value( ( $attr['columnGap']/2 ), 'px' ),
|
2308 |
-
'padding-right' => UAGB_Helper::get_css_value( ( $attr['columnGap']/2 ), 'px' ),
|
2309 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['rowGap'], 'px' )
|
2310 |
-
),
|
2311 |
-
" .uagb-rest_menu__wrap .uagb-rm__image-content" => array(
|
2312 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['imgHrPadding'],'px' ),
|
2313 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['imgHrPadding'],'px' ),
|
2314 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['imgVrPadding'],'px' ),
|
2315 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['imgVrPadding'],'px' ),
|
2316 |
-
),
|
2317 |
-
" .uagb-rm__image img" => array(
|
2318 |
-
'width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
2319 |
-
'max-width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
2320 |
-
),
|
2321 |
-
" .uagb-rm__separator-parent" => array(
|
2322 |
-
'justify-content' => $align,
|
2323 |
-
),
|
2324 |
-
" .uagb-rm__content" => array(
|
2325 |
-
'text-align' => $attr['headingAlign'] ,
|
2326 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ),
|
2327 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ),
|
2328 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ),
|
2329 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ),
|
2330 |
-
),
|
2331 |
-
" .uagb-rm__title" => array(
|
2332 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
|
2333 |
-
'color' => $attr['titleColor'] ,
|
2334 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['titleSpace'], 'px' ),
|
2335 |
-
'font-family' => $attr['titleFontFamily'],
|
2336 |
-
'font-weight' => $attr['titleFontWeight'],
|
2337 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
|
2338 |
-
),
|
2339 |
-
" .uagb-rm__price" => array(
|
2340 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['priceFontSize'], $attr['priceFontSizeType'] ),
|
2341 |
-
'font-family' => $attr['priceFontFamily'],
|
2342 |
-
'font-weight' => $attr['priceFontWeight'],
|
2343 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeight'], $attr['priceLineHeightType'] ),
|
2344 |
-
'color' => $attr['priceColor'],
|
2345 |
-
),
|
2346 |
-
" .uagb-rm__desc" => array(
|
2347 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
|
2348 |
-
'font-family' => $attr['descFontFamily'],
|
2349 |
-
'font-weight' => $attr['descFontWeight'],
|
2350 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
|
2351 |
-
'color'=> $attr['descColor'],
|
2352 |
-
'margin-bottom'=> UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
|
2353 |
-
),
|
2354 |
-
);
|
2355 |
-
|
2356 |
-
if ( $attr["seperatorStyle"] != "none" ) {
|
2357 |
-
$selectors[" .uagb-rest_menu__wrap .uagb-rm__separator"] = array(
|
2358 |
-
'border-top-color'=> $attr['seperatorColor'],
|
2359 |
-
'border-top-style'=> $attr['seperatorStyle'],
|
2360 |
-
'border-top-width'=> UAGB_Helper::get_css_value( $attr['seperatorThickness'], 'px' ),
|
2361 |
-
'width'=> UAGB_Helper::get_css_value( $attr['seperatorWidth'], '%' ),
|
2362 |
-
);
|
2363 |
-
}
|
2364 |
-
|
2365 |
-
$selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)'] = array(
|
2366 |
-
'margin-left'=> '0',
|
2367 |
-
'clear'=> 'left',
|
2368 |
-
);
|
2369 |
-
|
2370 |
-
$t_selectors = array(
|
2371 |
-
' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
|
2372 |
-
'margin-left'=> 'unset',
|
2373 |
-
'clear'=> 'unset',
|
2374 |
-
),
|
2375 |
-
' .uagb-rest_menu__wrap.uagb-rm__tablet-column-'.$attr['tcolumns'].':nth-child('.$attr['tcolumns'].'n+1)' => array(
|
2376 |
-
'margin-left'=> '0',
|
2377 |
-
'clear'=> 'left',
|
2378 |
-
),
|
2379 |
-
" .uagb-rm__title" => array(
|
2380 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
2381 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
|
2382 |
-
),
|
2383 |
-
" .uagb-rm__desc" => array(
|
2384 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
|
2385 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
|
2386 |
-
),
|
2387 |
-
" .uagb-rm__price" => array(
|
2388 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['priceFontSizeTablet'], $attr['priceFontSizeType'] ),
|
2389 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeightTablet'], $attr['priceLineHeightType'] ),
|
2390 |
-
)
|
2391 |
-
);
|
2392 |
-
|
2393 |
-
$m_selectors = array(
|
2394 |
-
' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
|
2395 |
-
'margin-left'=> 'unset',
|
2396 |
-
'clear'=> 'unset',
|
2397 |
-
),
|
2398 |
-
' .uagb-rest_menu__wrap.uagb-rm__mobile-column-'.$attr['mcolumns'].':nth-child('.$attr['mcolumns'].'n+1)' => array(
|
2399 |
-
'margin-left'=> '0',
|
2400 |
-
'clear'=> 'left',
|
2401 |
-
),
|
2402 |
-
" .uagb-rm__title" => array(
|
2403 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
|
2404 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
|
2405 |
-
),
|
2406 |
-
" .uagb-rm__desc" => array(
|
2407 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
|
2408 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
|
2409 |
-
),
|
2410 |
-
" .uagb-rm__price" => array(
|
2411 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['priceFontSizeMobile'], $attr['priceFontSizeType'] ),
|
2412 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeightMobile'], $attr['priceLineHeightType'] ),
|
2413 |
-
)
|
2414 |
-
);
|
2415 |
-
|
2416 |
-
// @codingStandardsIgnoreEnd
|
2417 |
-
|
2418 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-rm-' . $id );
|
2419 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-rm-' . $id );
|
2420 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-rm-' . $id );
|
2421 |
-
|
2422 |
-
$generated_css = array(
|
2423 |
-
'desktop' => $desktop,
|
2424 |
-
'tablet' => $tablet,
|
2425 |
-
'mobile' => $mobile,
|
2426 |
-
);
|
2427 |
-
|
2428 |
-
return $generated_css;
|
2429 |
-
}
|
2430 |
-
|
2431 |
-
/**
|
2432 |
-
* Get Post Grid Block CSS
|
2433 |
-
*
|
2434 |
-
* @since 1.4.0
|
2435 |
-
* @param array $attr The block attributes.
|
2436 |
-
* @param string $id The selector ID.
|
2437 |
-
* @return array The Widget List.
|
2438 |
-
*/
|
2439 |
-
public static function get_post_grid_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2440 |
-
|
2441 |
-
$defaults = UAGB_Helper::$block_list['uagb/post-grid']['attributes'];
|
2442 |
-
|
2443 |
-
$attr = array_merge( $defaults, (array) $attr );
|
2444 |
-
|
2445 |
-
$selectors = self::get_post_selectors( $attr );
|
2446 |
-
|
2447 |
-
$m_selectors = self::get_post_mobile_selectors( $attr );
|
2448 |
-
|
2449 |
-
$t_selectors = self::get_post_tablet_selectors( $attr );
|
2450 |
-
|
2451 |
-
// @codingStandardsIgnoreEnd
|
2452 |
-
|
2453 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__grid-' . $id );
|
2454 |
-
|
2455 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__grid-' . $id );
|
2456 |
-
|
2457 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__grid-' . $id );
|
2458 |
-
|
2459 |
-
$generated_css = array(
|
2460 |
-
'desktop' => $desktop,
|
2461 |
-
'tablet' => $tablet,
|
2462 |
-
'mobile' => $mobile,
|
2463 |
-
);
|
2464 |
-
|
2465 |
-
return $generated_css;
|
2466 |
-
}
|
2467 |
-
|
2468 |
-
/**
|
2469 |
-
* Get Post Carousel Block CSS
|
2470 |
-
*
|
2471 |
-
* @since 1.4.0
|
2472 |
-
* @param array $attr The block attributes.
|
2473 |
-
* @param string $id The selector ID.
|
2474 |
-
* @return array The Widget List.
|
2475 |
-
*/
|
2476 |
-
public static function get_post_carousel_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2477 |
-
|
2478 |
-
$defaults = UAGB_Helper::$block_list['uagb/post-carousel']['attributes'];
|
2479 |
-
|
2480 |
-
$attr = array_merge( $defaults, (array) $attr );
|
2481 |
-
|
2482 |
-
$selectors = self::get_post_selectors( $attr );
|
2483 |
-
|
2484 |
-
$m_selectors = self::get_post_mobile_selectors( $attr );
|
2485 |
-
|
2486 |
-
$t_selectors = self::get_post_tablet_selectors( $attr );
|
2487 |
-
|
2488 |
-
$selectors[" .slick-arrow"] = array(
|
2489 |
-
"border-color" => $attr['arrowColor']
|
2490 |
-
);
|
2491 |
-
|
2492 |
-
$selectors[" .slick-arrow span"] = array(
|
2493 |
-
"color" => $attr['arrowColor'],
|
2494 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
|
2495 |
-
"width" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
|
2496 |
-
"height" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' )
|
2497 |
-
);
|
2498 |
-
|
2499 |
-
$selectors[" .slick-arrow svg"] = array(
|
2500 |
-
"fill" => $attr['arrowColor'],
|
2501 |
-
"width" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
|
2502 |
-
"height" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' )
|
2503 |
-
);
|
2504 |
-
|
2505 |
-
$selectors[" .slick-arrow"] = array(
|
2506 |
-
"border-color" => $attr['arrowColor'],
|
2507 |
-
"border-width" => UAGB_Helper::get_css_value( $attr['arrowBorderSize'], 'px' ),
|
2508 |
-
"border-radius" => UAGB_Helper::get_css_value( $attr['arrowBorderRadius'], 'px' )
|
2509 |
-
);
|
2510 |
-
|
2511 |
-
$selectors[".uagb-post-grid ul.slick-dots li.slick-active button:before"] = array(
|
2512 |
-
"color" => $attr['arrowColor']
|
2513 |
-
);
|
2514 |
-
|
2515 |
-
$selectors[".uagb-slick-carousel ul.slick-dots li button:before"] = array(
|
2516 |
-
"color" => $attr['arrowColor']
|
2517 |
-
);
|
2518 |
-
|
2519 |
-
if ( isset( $attr['arrowDots'] ) && 'dots' == $attr['arrowDots'] ) {
|
2520 |
-
|
2521 |
-
$selectors[".uagb-slick-carousel"] = array(
|
2522 |
-
"padding" => "0 0 35px 0"
|
2523 |
-
);
|
2524 |
-
}
|
2525 |
-
|
2526 |
-
// @codingStandardsIgnoreEnd
|
2527 |
-
|
2528 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__carousel-' . $id );
|
2529 |
-
|
2530 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__carousel-' . $id );
|
2531 |
-
|
2532 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__carousel-' . $id );
|
2533 |
-
|
2534 |
-
$generated_css = array(
|
2535 |
-
'desktop' => $desktop,
|
2536 |
-
'tablet' => $tablet,
|
2537 |
-
'mobile' => $mobile,
|
2538 |
-
);
|
2539 |
-
|
2540 |
-
return $generated_css;
|
2541 |
-
}
|
2542 |
-
|
2543 |
-
/**
|
2544 |
-
* Get Post Masonry Block CSS
|
2545 |
-
*
|
2546 |
-
* @since 1.4.0
|
2547 |
-
* @param array $attr The block attributes.
|
2548 |
-
* @param string $id The selector ID.
|
2549 |
-
* @return array The Widget List.
|
2550 |
-
*/
|
2551 |
-
public static function get_post_masonry_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2552 |
-
|
2553 |
-
$defaults = UAGB_Helper::$block_list['uagb/post-masonry']['attributes'];
|
2554 |
-
|
2555 |
-
$attr = array_merge( $defaults, (array) $attr );
|
2556 |
-
|
2557 |
-
$selectors = self::get_post_selectors( $attr );
|
2558 |
-
|
2559 |
-
$m_selectors = self::get_post_mobile_selectors( $attr );
|
2560 |
-
|
2561 |
-
$t_selectors = self::get_post_tablet_selectors( $attr );
|
2562 |
-
|
2563 |
-
// @codingStandardsIgnoreEnd
|
2564 |
-
|
2565 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__masonry-' . $id );
|
2566 |
-
|
2567 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__masonry-' . $id );
|
2568 |
-
|
2569 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__masonry-' . $id );
|
2570 |
-
|
2571 |
-
$generated_css = array(
|
2572 |
-
'desktop' => $desktop,
|
2573 |
-
'tablet' => $tablet,
|
2574 |
-
'mobile' => $mobile,
|
2575 |
-
);
|
2576 |
-
|
2577 |
-
return $generated_css;
|
2578 |
-
}
|
2579 |
-
|
2580 |
-
/**
|
2581 |
-
* Get Post Block Selectors CSS
|
2582 |
-
*
|
2583 |
-
* @param array $attr The block attributes.
|
2584 |
-
* @since 1.4.0
|
2585 |
-
*/
|
2586 |
-
public static function get_post_selectors( $attr ) { // @codingStandardsIgnoreStart
|
2587 |
-
return array(
|
2588 |
-
" .uagb-post__items" => array(
|
2589 |
-
"margin-right" => UAGB_Helper::get_css_value( ( -$attr['rowGap']/2 ), 'px' ),
|
2590 |
-
"margin-left" => UAGB_Helper::get_css_value( ( -$attr['rowGap']/2 ), 'px' ),
|
2591 |
-
),
|
2592 |
-
" .uagb-post__items article" => array(
|
2593 |
-
"padding-right" => UAGB_Helper::get_css_value( ( $attr['rowGap']/2 ), 'px' ),
|
2594 |
-
"padding-left" => UAGB_Helper::get_css_value( ( $attr['rowGap']/2 ), 'px' ),
|
2595 |
-
"margin-bottom" => UAGB_Helper::get_css_value( ( $attr['columnGap'] ), 'px' )
|
2596 |
-
),
|
2597 |
-
" .uagb-post__inner-wrap" => array(
|
2598 |
-
"background" => $attr['bgColor']
|
2599 |
-
),
|
2600 |
-
" .uagb-post__text" => array(
|
2601 |
-
"padding" => UAGB_Helper::get_css_value( ( $attr['contentPadding'] ), 'px' ),
|
2602 |
-
"text-align" => $attr['align']
|
2603 |
-
),
|
2604 |
-
" .uagb-post__text .uagb-post__title" => array(
|
2605 |
-
"color"=> $attr['titleColor'],
|
2606 |
-
"font-size"=> UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
|
2607 |
-
'font-family' => $attr['titleFontFamily'],
|
2608 |
-
'font-weight' => $attr['titleFontWeight'],
|
2609 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
|
2610 |
-
"margin-bottom"=> UAGB_Helper::get_css_value( $attr['titleBottomSpace'], 'px' )
|
2611 |
-
),
|
2612 |
-
" .uagb-post__text .uagb-post__title a" => array(
|
2613 |
-
"color" => $attr['titleColor'],
|
2614 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
|
2615 |
-
'font-family' => $attr['titleFontFamily'],
|
2616 |
-
'font-weight' => $attr['titleFontWeight'],
|
2617 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
|
2618 |
-
),
|
2619 |
-
" .uagb-post__text .uagb-post-grid-byline" => array(
|
2620 |
-
"color"=> $attr['metaColor'],
|
2621 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
|
2622 |
-
'font-family' => $attr['metaFontFamily'],
|
2623 |
-
'font-weight' => $attr['metaFontWeight'],
|
2624 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
|
2625 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['metaBottomSpace'], 'px' )
|
2626 |
-
),
|
2627 |
-
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
|
2628 |
-
"color" => $attr['metaColor'],
|
2629 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
|
2630 |
-
'font-family' => $attr['metaFontFamily'],
|
2631 |
-
'font-weight' => $attr['metaFontWeight'],
|
2632 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
|
2633 |
-
),
|
2634 |
-
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
|
2635 |
-
"color" => $attr['metaColor'],
|
2636 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
|
2637 |
-
'font-family' => $attr['metaFontFamily'],
|
2638 |
-
'font-weight' => $attr['metaFontWeight'],
|
2639 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
|
2640 |
-
),
|
2641 |
-
" .uagb-post__text .uagb-post__excerpt" => array(
|
2642 |
-
"color" => $attr['excerptColor'],
|
2643 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSize'], $attr['excerptFontSizeType'] ),
|
2644 |
-
'font-family' => $attr['excerptFontFamily'],
|
2645 |
-
'font-weight' => $attr['excerptFontWeight'],
|
2646 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeight'], $attr['excerptLineHeightType'] ),
|
2647 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['excerptBottomSpace'], 'px' )
|
2648 |
-
),
|
2649 |
-
" .uagb-post__text .uagb-post__cta" => array(
|
2650 |
-
"color" => $attr['ctaColor'],
|
2651 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
2652 |
-
'font-family' => $attr['ctaFontFamily'],
|
2653 |
-
'font-weight' => $attr['ctaFontWeight'],
|
2654 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
|
2655 |
-
"background" => $attr['ctaBgColor'],
|
2656 |
-
"border-color" => $attr['borderColor'],
|
2657 |
-
"border-width" => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
|
2658 |
-
"border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
2659 |
-
"border-style" => $attr['borderStyle'],
|
2660 |
-
),
|
2661 |
-
" .uagb-post__text .uagb-post__cta:hover" => array(
|
2662 |
-
"border-color"=> $attr['borderHColor']
|
2663 |
-
),
|
2664 |
-
" .uagb-post__text .uagb-post__cta a" => array(
|
2665 |
-
"color"=> $attr['ctaColor'],
|
2666 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
2667 |
-
'font-family' => $attr['ctaFontFamily'],
|
2668 |
-
'font-weight' => $attr['ctaFontWeight'],
|
2669 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
|
2670 |
-
"padding" => ( $attr['btnVPadding'] ) . "px " . ( $attr['btnHPadding'] ) . "px",
|
2671 |
-
),
|
2672 |
-
" .uagb-post__text .uagb-post__cta:hover" => array(
|
2673 |
-
"color"=> $attr['ctaHColor'],
|
2674 |
-
"background"=> $attr['ctaBgHColor']
|
2675 |
-
),
|
2676 |
-
" .uagb-post__text .uagb-post__cta:hover a" => array(
|
2677 |
-
"color"=> $attr['ctaHColor']
|
2678 |
-
),
|
2679 |
-
" .uagb-post__image:before" => array(
|
2680 |
-
"background-color" => $attr['bgOverlayColor'],
|
2681 |
-
"opacity" => ( $attr['overlayOpacity'] / 100 )
|
2682 |
-
),
|
2683 |
-
);
|
2684 |
-
// @codingStandardsIgnoreEnd
|
2685 |
-
}
|
2686 |
-
|
2687 |
-
/**
|
2688 |
-
* Get Post Block Selectors CSS for Mobile devices
|
2689 |
-
*
|
2690 |
-
* @param array $attr The block attributes.
|
2691 |
-
* @since 1.6.1
|
2692 |
-
*/
|
2693 |
-
public static function get_post_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
|
2694 |
-
|
2695 |
-
return array(
|
2696 |
-
" .uagb-post__text .uagb-post__title" => array(
|
2697 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
|
2698 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
|
2699 |
-
),
|
2700 |
-
" .uagb-post__text .uagb-post__title a" => array(
|
2701 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
|
2702 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
|
2703 |
-
),
|
2704 |
-
" .uagb-post__text .uagb-post-grid-byline" => array(
|
2705 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
|
2706 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
|
2707 |
-
),
|
2708 |
-
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
|
2709 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
|
2710 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
|
2711 |
-
),
|
2712 |
-
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
|
2713 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
|
2714 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
|
2715 |
-
),
|
2716 |
-
" .uagb-post__text .uagb-post__excerpt" => array(
|
2717 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSizeMobile'], $attr['excerptFontSizeType'] ),
|
2718 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeightMobile'], $attr['excerptLineHeightType'] ),
|
2719 |
-
),
|
2720 |
-
" .uagb-post__text .uagb-post__cta" => array(
|
2721 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
2722 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
|
2723 |
-
),
|
2724 |
-
" .uagb-post__text .uagb-post__cta a" => array(
|
2725 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
2726 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
|
2727 |
-
),
|
2728 |
-
" .uagb-post__text" => array(
|
2729 |
-
"padding" => ( $attr['contentPaddingMobile'] ) . "px",
|
2730 |
-
),
|
2731 |
-
);
|
2732 |
-
// @codingStandardsIgnoreEnd
|
2733 |
-
}
|
2734 |
-
|
2735 |
-
/**
|
2736 |
-
* Get Post Block Selectors CSS for Tablet devices
|
2737 |
-
*
|
2738 |
-
* @param array $attr The block attributes.
|
2739 |
-
* @since 1.8.2
|
2740 |
-
*/
|
2741 |
-
public static function get_post_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
|
2742 |
-
return array(
|
2743 |
-
" .uagb-post__text .uagb-post__title" => array(
|
2744 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
2745 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
|
2746 |
-
),
|
2747 |
-
" .uagb-post__text .uagb-post__title a" => array(
|
2748 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
2749 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
|
2750 |
-
),
|
2751 |
-
" .uagb-post__text .uagb-post-grid-byline" => array(
|
2752 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
|
2753 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
|
2754 |
-
),
|
2755 |
-
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
|
2756 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
|
2757 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
|
2758 |
-
),
|
2759 |
-
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
|
2760 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
|
2761 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
|
2762 |
-
),
|
2763 |
-
" .uagb-post__text .uagb-post__excerpt" => array(
|
2764 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSizeTablet'], $attr['excerptFontSizeType'] ),
|
2765 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeightTablet'], $attr['excerptLineHeightType'] ),
|
2766 |
-
),
|
2767 |
-
" .uagb-post__text .uagb-post__cta" => array(
|
2768 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
2769 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
|
2770 |
-
),
|
2771 |
-
" .uagb-post__text .uagb-post__cta a" => array(
|
2772 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
2773 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
|
2774 |
-
),
|
2775 |
-
);
|
2776 |
-
// @codingStandardsIgnoreEnd
|
2777 |
-
}
|
2778 |
-
|
2779 |
-
/**
|
2780 |
-
* Get Blockquote CSS
|
2781 |
-
*
|
2782 |
-
* @since 1.8.2
|
2783 |
-
* @param array $attr The block attributes.
|
2784 |
-
* @param string $id The selector ID.
|
2785 |
-
* @return array The Widget List.
|
2786 |
-
*/
|
2787 |
-
public static function get_blockquote_css( $attr, $id ) {
|
2788 |
-
// @codingStandardsIgnoreStart
|
2789 |
-
|
2790 |
-
$defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
|
2791 |
-
|
2792 |
-
$attr = array_merge( $defaults, (array) $attr );
|
2793 |
-
|
2794 |
-
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
2795 |
-
|
2796 |
-
$content_align ="center";
|
2797 |
-
|
2798 |
-
if( 'left' === $attr['align'] ){
|
2799 |
-
$content_align =" flex-start";
|
2800 |
-
}
|
2801 |
-
if( 'right' === $attr['align'] ){
|
2802 |
-
$content_align =" flex-end";
|
2803 |
-
}
|
2804 |
-
|
2805 |
-
$author_space = $attr['authorSpace'];
|
2806 |
-
|
2807 |
-
if( 'center' !== $attr['align'] || $attr['skinStyle'] == "border" ){
|
2808 |
-
$author_space = 0;
|
2809 |
-
}
|
2810 |
-
|
2811 |
-
//Set align to left for border style.
|
2812 |
-
$text_align = $attr['align'];
|
2813 |
-
|
2814 |
-
if( 'border' === $attr['skinStyle'] ){
|
2815 |
-
$text_align = 'left';
|
2816 |
-
}
|
2817 |
-
|
2818 |
-
$selectors = array(
|
2819 |
-
" .uagb-blockquote__content" => array(
|
2820 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
|
2821 |
-
'font-family' => $attr['descFontFamily'],
|
2822 |
-
'font-weight' => $attr['descFontWeight'],
|
2823 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
|
2824 |
-
"color" => $attr['descColor'],
|
2825 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
|
2826 |
-
"text-align" => $text_align,
|
2827 |
-
),
|
2828 |
-
" cite.uagb-blockquote__author" => array(
|
2829 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
|
2830 |
-
'font-family' => $attr['authorFontFamily'],
|
2831 |
-
'font-weight' => $attr['authorFontWeight'],
|
2832 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
|
2833 |
-
"color" => $attr['authorColor'],
|
2834 |
-
"text-align" => $text_align,
|
2835 |
-
),
|
2836 |
-
" .uagb-blockquote__skin-border blockquote.uagb-blockquote" => array(
|
2837 |
-
"border-color" => $attr['borderColor'],
|
2838 |
-
"border-left-style" => $attr['borderStyle'],
|
2839 |
-
"border-left-width" => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
|
2840 |
-
"padding-left" => UAGB_Helper::get_css_value( $attr['borderGap'], 'px' ),
|
2841 |
-
"padding-top" => UAGB_Helper::get_css_value( $attr['verticalPadding'], 'px' ),
|
2842 |
-
"padding-bottom" => UAGB_Helper::get_css_value( $attr['verticalPadding'], 'px' ),
|
2843 |
-
),
|
2844 |
-
|
2845 |
-
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
|
2846 |
-
"background" => $attr['quoteBgColor'],
|
2847 |
-
"border-radius" => UAGB_Helper::get_css_value( $attr['quoteBorderRadius'],'%' ),
|
2848 |
-
"margin-top" => UAGB_Helper::get_css_value( $attr['quoteTopMargin'], 'px' ),
|
2849 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['quoteBottomMargin'], 'px' ),
|
2850 |
-
"margin-left" => UAGB_Helper::get_css_value( $attr['quoteLeftMargin'], 'px' ),
|
2851 |
-
"margin-right" => UAGB_Helper::get_css_value( $attr['quoteRightMargin'], 'px' ),
|
2852 |
-
"padding" => UAGB_Helper::get_css_value( $attr['quotePadding'], $attr['quotePaddingType'] ),
|
2853 |
-
),
|
2854 |
-
|
2855 |
-
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
|
2856 |
-
"width" => UAGB_Helper::get_css_value( $attr['quoteSize'], $attr['quoteSizeType'] ),
|
2857 |
-
"height" => UAGB_Helper::get_css_value( $attr['quoteSize'], $attr['quoteSizeType'] ),
|
2858 |
-
),
|
2859 |
-
|
2860 |
-
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg" => array(
|
2861 |
-
"fill" => $attr['quoteColor'],
|
2862 |
-
),
|
2863 |
-
|
2864 |
-
" .uagb-blockquote__style-style_1 .uagb-blockquote" => array(
|
2865 |
-
"text-align" => $attr['align'],
|
2866 |
-
),
|
2867 |
-
|
2868 |
-
" .uagb-blockquote__author-wrap" => array(
|
2869 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $author_space, 'px' ),
|
2870 |
-
),
|
2871 |
-
" .uagb-blockquote__author-image img" => array(
|
2872 |
-
"width" => UAGB_Helper::get_css_value( $attr['authorImageWidth'], 'px' ),
|
2873 |
-
"height" => UAGB_Helper::get_css_value( $attr['authorImageWidth'], 'px' ),
|
2874 |
-
"border-radius" => UAGB_Helper::get_css_value( $attr['authorImgBorderRadius'], '%' )
|
2875 |
-
),
|
2876 |
-
|
2877 |
-
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover svg" => array(
|
2878 |
-
"fill" => $attr['quoteHoverColor'],
|
2879 |
-
),
|
2880 |
-
|
2881 |
-
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover" => array(
|
2882 |
-
"background" => $attr['quoteBgHoverColor'],
|
2883 |
-
),
|
2884 |
-
|
2885 |
-
" .uagb-blockquote__skin-border blockquote.uagb-blockquote:hover" => array(
|
2886 |
-
"border-left-color" => $attr['borderHoverColor'],
|
2887 |
-
),
|
2888 |
-
);
|
2889 |
-
|
2890 |
-
if( $attr['enableTweet'] ){
|
2891 |
-
$selectors[" a.uagb-blockquote__tweet-button"] = array(
|
2892 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
|
2893 |
-
'font-family' => $attr['tweetBtnFontFamily'],
|
2894 |
-
'font-weight' => $attr['tweetBtnFontWeight'],
|
2895 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeight'], $attr['tweetBtnLineHeightType'] ),
|
2896 |
-
);
|
2897 |
-
|
2898 |
-
$selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"] = array(
|
2899 |
-
"color" => $attr['tweetLinkColor'],
|
2900 |
-
);
|
2901 |
-
|
2902 |
-
$selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"] = array(
|
2903 |
-
"fill" => $attr['tweetLinkColor'],
|
2904 |
-
);
|
2905 |
-
|
2906 |
-
$selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"] = array(
|
2907 |
-
"color" => $attr['tweetBtnColor'],
|
2908 |
-
"background-color" => $attr['tweetBtnBgColor'],
|
2909 |
-
"padding-left" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
|
2910 |
-
"padding-right" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
|
2911 |
-
"padding-top" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
|
2912 |
-
"padding-bottom" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
|
2913 |
-
);
|
2914 |
-
|
2915 |
-
$selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"] = array(
|
2916 |
-
"fill" => $attr['tweetBtnColor'],
|
2917 |
-
);
|
2918 |
-
|
2919 |
-
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"] = array(
|
2920 |
-
"color" => $attr['tweetBtnColor'],
|
2921 |
-
"background-color" => $attr['tweetBtnBgColor'],
|
2922 |
-
"padding-left" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
|
2923 |
-
"padding-right" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
|
2924 |
-
"padding-top" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
|
2925 |
-
"padding-bottom" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
|
2926 |
-
);
|
2927 |
-
|
2928 |
-
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"] = array(
|
2929 |
-
"fill" => $attr['tweetBtnColor'],
|
2930 |
-
);
|
2931 |
-
|
2932 |
-
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"] = array(
|
2933 |
-
"border-right-color" => $attr['tweetBtnBgColor'],
|
2934 |
-
);
|
2935 |
-
|
2936 |
-
$selectors[" a.uagb-blockquote__tweet-button svg"] = array(
|
2937 |
-
"width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
|
2938 |
-
"height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
|
2939 |
-
);
|
2940 |
-
|
2941 |
-
$selectors[" .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"] = array(
|
2942 |
-
"margin-right" => UAGB_Helper::get_css_value( $attr['tweetIconSpacing'], 'px' ),
|
2943 |
-
);
|
2944 |
-
|
2945 |
-
// Hover CSS.
|
2946 |
-
$selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"] = array(
|
2947 |
-
"color" => $attr['tweetBtnHoverColor'],
|
2948 |
-
);
|
2949 |
-
|
2950 |
-
$selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"] = array(
|
2951 |
-
"fill" => $attr['tweetBtnHoverColor'],
|
2952 |
-
);
|
2953 |
-
|
2954 |
-
$selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"] = array(
|
2955 |
-
"color" => $attr['tweetBtnHoverColor'],
|
2956 |
-
"background-color" => $attr['tweetBtnBgHoverColor'],
|
2957 |
-
);
|
2958 |
-
|
2959 |
-
$selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"] = array(
|
2960 |
-
"fill" => $attr['tweetBtnHoverColor'],
|
2961 |
-
);
|
2962 |
-
|
2963 |
-
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover"] = array(
|
2964 |
-
"color" => $attr['tweetBtnHoverColor'],
|
2965 |
-
"background-color" => $attr['tweetBtnBgHoverColor'],
|
2966 |
-
);
|
2967 |
-
|
2968 |
-
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"] = array(
|
2969 |
-
"fill" => $attr['tweetBtnHoverColor'],
|
2970 |
-
);
|
2971 |
-
|
2972 |
-
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"] = array(
|
2973 |
-
"border-right-color" => $attr['tweetBtnBgHoverColor'],
|
2974 |
-
);
|
2975 |
-
}
|
2976 |
-
|
2977 |
-
$t_selectors = array(
|
2978 |
-
" .uagb-blockquote__content" => array(
|
2979 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
|
2980 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
|
2981 |
-
),
|
2982 |
-
" cite.uagb-blockquote__author" =>array(
|
2983 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
|
2984 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
|
2985 |
-
),
|
2986 |
-
" a.uagb-blockquote__tweet-button" => array(
|
2987 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
|
2988 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeightTablet'], $attr['tweetBtnLineHeightType'] ),
|
2989 |
-
),
|
2990 |
-
" a.uagb-blockquote__tweet-button svg" => array(
|
2991 |
-
"width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
|
2992 |
-
"height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
|
2993 |
-
),
|
2994 |
-
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
|
2995 |
-
"padding" => UAGB_Helper::get_css_value( $attr['quotePaddingTablet'], $attr['quotePaddingType'] ),
|
2996 |
-
),
|
2997 |
-
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
|
2998 |
-
"width" => UAGB_Helper::get_css_value( $attr['quoteSizeTablet'], $attr['quoteSizeType'] ),
|
2999 |
-
"height" => UAGB_Helper::get_css_value( $attr['quoteSizeTablet'], $attr['quoteSizeType'] ),
|
3000 |
-
),
|
3001 |
-
);
|
3002 |
-
|
3003 |
-
$m_selectors = array(
|
3004 |
-
" .uagb-blockquote__content" => array(
|
3005 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
|
3006 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
|
3007 |
-
),
|
3008 |
-
" cite.uagb-blockquote__author" => array(
|
3009 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
|
3010 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
|
3011 |
-
),
|
3012 |
-
" a.uagb-blockquote__tweet-button" => array(
|
3013 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
|
3014 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeightMobile'], $attr['tweetBtnLineHeightType'] ),
|
3015 |
-
),
|
3016 |
-
" a.uagb-blockquote__tweet-button svg" => array(
|
3017 |
-
"width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
|
3018 |
-
"height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
|
3019 |
-
),
|
3020 |
-
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
|
3021 |
-
"padding" => UAGB_Helper::get_css_value( $attr['quotePaddingMobile'], $attr['quotePaddingType'] ),
|
3022 |
-
),
|
3023 |
-
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
|
3024 |
-
"width" => UAGB_Helper::get_css_value( $attr['quoteSizeMobile'], $attr['quoteSizeType'] ),
|
3025 |
-
"height" => UAGB_Helper::get_css_value( $attr['quoteSizeMobile'], $attr['quoteSizeType'] ),
|
3026 |
-
),
|
3027 |
-
);
|
3028 |
-
|
3029 |
-
// @codingStandardsIgnoreEnd
|
3030 |
-
|
3031 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-blockquote-' . $id );
|
3032 |
-
|
3033 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-blockquote-' . $id );
|
3034 |
-
|
3035 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-blockquote-' . $id );
|
3036 |
-
|
3037 |
-
$generated_css = array(
|
3038 |
-
'desktop' => $desktop,
|
3039 |
-
'tablet' => $tablet,
|
3040 |
-
'mobile' => $mobile,
|
3041 |
-
);
|
3042 |
-
|
3043 |
-
return $generated_css;
|
3044 |
-
}
|
3045 |
-
|
3046 |
-
/**
|
3047 |
-
* Get Timeline Block Desktop Selectors CSS
|
3048 |
-
*
|
3049 |
-
* @param array $attr The block attributes.
|
3050 |
-
* @since 1.8.2
|
3051 |
-
*/
|
3052 |
-
public static function get_timeline_selectors( $attr ) { // @codingStandardsIgnoreStart
|
3053 |
-
$selectors = array(
|
3054 |
-
" .uagb-timeline__heading-text" => array(
|
3055 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
|
3056 |
-
),
|
3057 |
-
" .uagb-timeline-desc-content" => array(
|
3058 |
-
"text-align" => $attr['align'],
|
3059 |
-
"color" => $attr['subHeadingColor'],
|
3060 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ),
|
3061 |
-
'font-family' => $attr['subHeadFontFamily'],
|
3062 |
-
'font-weight' => $attr['subHeadFontWeight'],
|
3063 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
|
3064 |
-
),
|
3065 |
-
' .uagb-timeline__events-new' => array(
|
3066 |
-
'text-align' => $attr['align']
|
3067 |
-
),
|
3068 |
-
' .uagb-timeline__date-inner' => array(
|
3069 |
-
'text-align' => $attr['align']
|
3070 |
-
),
|
3071 |
-
' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
|
3072 |
-
'border-left-color' => $attr['backgroundColor']
|
3073 |
-
),
|
3074 |
-
' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
|
3075 |
-
'border-left-color' => $attr['backgroundColor']
|
3076 |
-
),
|
3077 |
-
' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
|
3078 |
-
'border-right-color' => $attr['backgroundColor']
|
3079 |
-
),
|
3080 |
-
' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
|
3081 |
-
'border-right-color' => $attr['backgroundColor']
|
3082 |
-
),
|
3083 |
-
' .uagb-timeline__line__inner' => array(
|
3084 |
-
'background-color' => $attr['separatorFillColor']
|
3085 |
-
),
|
3086 |
-
' .uagb-timeline__line' => array(
|
3087 |
-
'background-color' => $attr['separatorColor'],
|
3088 |
-
'width' => UAGB_Helper::get_css_value( $attr['separatorwidth'], 'px' )
|
3089 |
-
),
|
3090 |
-
' .uagb-timeline__right-block .uagb-timeline__line' => array(
|
3091 |
-
'right' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
|
3092 |
-
),
|
3093 |
-
' .uagb-timeline__left-block .uagb-timeline__line' => array(
|
3094 |
-
'left' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
|
3095 |
-
),
|
3096 |
-
' .uagb-timeline__center-block .uagb-timeline__line' => array(
|
3097 |
-
'right' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
|
3098 |
-
),
|
3099 |
-
' .uagb-timeline__marker' => array(
|
3100 |
-
'background-color' => $attr['separatorBg'],
|
3101 |
-
'min-height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3102 |
-
'min-width' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3103 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3104 |
-
'border' => $attr['borderwidth'].'px solid'.$attr['separatorBorder'],
|
3105 |
-
),
|
3106 |
-
' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow' => array(
|
3107 |
-
'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3108 |
-
),
|
3109 |
-
' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow' => array(
|
3110 |
-
'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3111 |
-
),
|
3112 |
-
' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow' => array(
|
3113 |
-
'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3114 |
-
),
|
3115 |
-
' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow' => array(
|
3116 |
-
'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3117 |
-
),
|
3118 |
-
' .uagb-timeline__center-block .uagb-timeline__marker' => array(
|
3119 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3120 |
-
'margin-right'=> UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3121 |
-
),
|
3122 |
-
' .uagb-timeline__field:not(:last-child)' => array(
|
3123 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['verticalSpace'], 'px' ),
|
3124 |
-
),
|
3125 |
-
' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
|
3126 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['dateBottomspace'], 'px' ),
|
3127 |
-
'color' => $attr['dateColor'],
|
3128 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ),
|
3129 |
-
'font-family' => $attr['dateFontFamily'],
|
3130 |
-
'font-weight' => $attr['dateFontWeight'],
|
3131 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeight'], $attr['dateLineHeightType'] ),
|
3132 |
-
'text-align' => $attr['align'],
|
3133 |
-
),
|
3134 |
-
' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
|
3135 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3136 |
-
),
|
3137 |
-
' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
|
3138 |
-
'margin-right' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3139 |
-
),
|
3140 |
-
' .uagb-timeline__date-new' => array(
|
3141 |
-
'color' => $attr['dateColor'],
|
3142 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ),
|
3143 |
-
'font-family' => $attr['dateFontFamily'],
|
3144 |
-
'font-weight' => $attr['dateFontWeight'],
|
3145 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeight'], $attr['dateLineHeightType'] ),
|
3146 |
-
),
|
3147 |
-
' .uagb-timeline__events-inner-new' => array(
|
3148 |
-
'background-color' => $attr['backgroundColor'],
|
3149 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
3150 |
-
'padding'=> UAGB_Helper::get_css_value( $attr['bgPadding'], 'px' ),
|
3151 |
-
),
|
3152 |
-
' .uagb-timeline__main .uagb-timeline__icon-new' => array(
|
3153 |
-
'color' => $attr['iconColor'],
|
3154 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
3155 |
-
'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
3156 |
-
),
|
3157 |
-
' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg' => array(
|
3158 |
-
'fill'=> $attr['iconFocus'],
|
3159 |
-
),
|
3160 |
-
' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
|
3161 |
-
'color'=> $attr['iconFocus'],
|
3162 |
-
),
|
3163 |
-
' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon' => array(
|
3164 |
-
'background' => $attr['iconBgFocus'],
|
3165 |
-
'border-color'=> $attr['borderFocus'],
|
3166 |
-
),
|
3167 |
-
' .uagb-timeline__main .uagb-timeline__icon-new svg' => array(
|
3168 |
-
'fill'=> $attr['iconColor'],
|
3169 |
-
),
|
3170 |
-
);
|
3171 |
-
|
3172 |
-
return $selectors;
|
3173 |
-
// @codingStandardsIgnoreEnd
|
3174 |
-
}
|
3175 |
-
|
3176 |
-
/**
|
3177 |
-
* Get Timeline Block Tablet Selectors CSS.
|
3178 |
-
*
|
3179 |
-
* @param array $attr The block attributes.
|
3180 |
-
* @since 1.8.2
|
3181 |
-
*/
|
3182 |
-
public static function get_timeline_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
|
3183 |
-
$tablet_selector = array(
|
3184 |
-
" .uagb-timeline-desc-content" => array(
|
3185 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
|
3186 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
|
3187 |
-
),
|
3188 |
-
' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
|
3189 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
|
3190 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
|
3191 |
-
),
|
3192 |
-
' .uagb-timeline__date-new' => array(
|
3193 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
|
3194 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
|
3195 |
-
),
|
3196 |
-
' .uagb-timeline__center-block .uagb-timeline__marker' => array(
|
3197 |
-
'margin-left' => 0,
|
3198 |
-
'margin-right' => 0,
|
3199 |
-
),
|
3200 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading" => array(
|
3201 |
-
"text-align" => 'left',
|
3202 |
-
),
|
3203 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content" => array(
|
3204 |
-
"text-align" => 'left',
|
3205 |
-
),
|
3206 |
-
' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new' => array(
|
3207 |
-
'text-align' => 'left'
|
3208 |
-
),
|
3209 |
-
' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner' => array(
|
3210 |
-
'text-align' => 'left'
|
3211 |
-
),
|
3212 |
-
' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
|
3213 |
-
'text-align'=> 'left',
|
3214 |
-
),
|
3215 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
|
3216 |
-
"border-right-color" => $attr['backgroundColor'],
|
3217 |
-
),
|
3218 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line" => array(
|
3219 |
-
'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
3220 |
-
),
|
3221 |
-
);
|
3222 |
-
|
3223 |
-
return $tablet_selector;
|
3224 |
-
// @codingStandardsIgnoreEnd
|
3225 |
-
}
|
3226 |
-
|
3227 |
-
/**
|
3228 |
-
* Get Timeline Block Mobile Selectors CSS.
|
3229 |
-
*
|
3230 |
-
* @param array $attr The block attributes.
|
3231 |
-
* @since 1.8.2
|
3232 |
-
*/
|
3233 |
-
public static function get_timeline_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
|
3234 |
-
$m_selectors = array(
|
3235 |
-
" .uagb-timeline-desc-content" => array(
|
3236 |
-
"font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
|
3237 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
|
3238 |
-
),
|
3239 |
-
' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
|
3240 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
|
3241 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
|
3242 |
-
),
|
3243 |
-
' .uagb-timeline__date-new' => array(
|
3244 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
|
3245 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
|
3246 |
-
),
|
3247 |
-
' .uagb-timeline__center-block .uagb-timeline__marker' => array(
|
3248 |
-
'margin-left' => 0,
|
3249 |
-
'margin-right' => 0,
|
3250 |
-
),
|
3251 |
-
' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
|
3252 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3253 |
-
),
|
3254 |
-
' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
|
3255 |
-
'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3256 |
-
),
|
3257 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading" => array(
|
3258 |
-
"text-align" => 'left',
|
3259 |
-
),
|
3260 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content" => array(
|
3261 |
-
"text-align" => 'left',
|
3262 |
-
),
|
3263 |
-
' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new' => array(
|
3264 |
-
'text-align' => 'left'
|
3265 |
-
),
|
3266 |
-
' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner' => array(
|
3267 |
-
'text-align' => 'left'
|
3268 |
-
),
|
3269 |
-
' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
|
3270 |
-
'text-align'=> 'left',
|
3271 |
-
),
|
3272 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
|
3273 |
-
"border-right-color" => $attr['backgroundColor'],
|
3274 |
-
),
|
3275 |
-
" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line" => array(
|
3276 |
-
'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
3277 |
-
),
|
3278 |
-
);
|
3279 |
-
return $m_selectors;
|
3280 |
-
// @codingStandardsIgnoreEnd
|
3281 |
-
}
|
3282 |
-
|
3283 |
-
/**
|
3284 |
-
* Get Contact Form 7 CSS
|
3285 |
-
*
|
3286 |
-
* @param array $attr The block attributes.
|
3287 |
-
* @param string $id The selector ID.
|
3288 |
-
* @since 1.10.0
|
3289 |
-
*/
|
3290 |
-
public static function get_cf7_styler_css( $attr, $id ) {
|
3291 |
-
$defaults = UAGB_Helper::$block_list['uagb/cf7-styler']['attributes'];
|
3292 |
-
|
3293 |
-
$attr = array_merge( $defaults, (array) $attr );
|
3294 |
-
|
3295 |
-
$selectors = array(
|
3296 |
-
' .wpcf7 .wpcf7-form' => array(
|
3297 |
-
'text-align' => $attr['align'],
|
3298 |
-
),
|
3299 |
-
' .wpcf7 form.wpcf7-form:not(input)' => array(
|
3300 |
-
'color' => $attr['fieldLabelColor'],
|
3301 |
-
),
|
3302 |
-
' .wpcf7 input:not([type=submit])' => array(
|
3303 |
-
'background-color' => $attr['fieldBgColor'],
|
3304 |
-
'color' => $attr['fieldInputColor'],
|
3305 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3306 |
-
'border-color' => $attr['fieldBorderColor'],
|
3307 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3308 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3309 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3310 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3311 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3312 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3313 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3314 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3315 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3316 |
-
'font-family' => $attr['inputFontFamily'],
|
3317 |
-
'font-weight' => $attr['inputFontWeight'],
|
3318 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3319 |
-
'text-align' => $attr['align'],
|
3320 |
-
),
|
3321 |
-
' .wpcf7 select' => array(
|
3322 |
-
'background-color' => $attr['fieldBgColor'],
|
3323 |
-
'color' => $attr['fieldLabelColor'],
|
3324 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3325 |
-
'border-color' => $attr['fieldBorderColor'],
|
3326 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3327 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3328 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3329 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3330 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3331 |
-
'font-family' => $attr['inputFontFamily'],
|
3332 |
-
'font-weight' => $attr['inputFontWeight'],
|
3333 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3334 |
-
'text-align' => $attr['align'],
|
3335 |
-
),
|
3336 |
-
' .wpcf7 select.wpcf7-form-control.wpcf7-select:not([multiple="multiple"])' => array(
|
3337 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3338 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3339 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3340 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3341 |
-
),
|
3342 |
-
' .wpcf7 select.wpcf7-select[multiple="multiple"] option' => array(
|
3343 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3344 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3345 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3346 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3347 |
-
),
|
3348 |
-
' .wpcf7 textarea' => array(
|
3349 |
-
'background-color' => $attr['fieldBgColor'],
|
3350 |
-
'color' => $attr['fieldInputColor'],
|
3351 |
-
'border-color' => $attr['fieldBorderColor'],
|
3352 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3353 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3354 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3355 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3356 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3357 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3358 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3359 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3360 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3361 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3362 |
-
'font-family' => $attr['inputFontFamily'],
|
3363 |
-
'font-weight' => $attr['inputFontWeight'],
|
3364 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3365 |
-
'text-align' => $attr['align'],
|
3366 |
-
),
|
3367 |
-
' .wpcf7 textarea::placeholder' => array(
|
3368 |
-
'color' => $attr['fieldInputColor'],
|
3369 |
-
'text-align' => $attr['align'],
|
3370 |
-
),
|
3371 |
-
' .wpcf7 input::placeholder' => array(
|
3372 |
-
'color' => $attr['fieldInputColor'],
|
3373 |
-
'text-align' => $attr['align'],
|
3374 |
-
),
|
3375 |
-
' .wpcf7 form label' => array(
|
3376 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
|
3377 |
-
'font-family' => $attr['labelFontFamily'],
|
3378 |
-
'font-weight' => $attr['labelFontWeight'],
|
3379 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
|
3380 |
-
),
|
3381 |
-
' .wpcf7 form .wpcf7-list-item-label' => array(
|
3382 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
|
3383 |
-
'font-family' => $attr['labelFontFamily'],
|
3384 |
-
'font-weight' => $attr['labelFontWeight'],
|
3385 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
|
3386 |
-
),
|
3387 |
-
|
3388 |
-
// Focus.
|
3389 |
-
' .wpcf7 form input:not([type=submit]):focus' => array(
|
3390 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3391 |
-
),
|
3392 |
-
' .wpcf7 form select:focus' => array(
|
3393 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3394 |
-
),
|
3395 |
-
' .wpcf7 textarea:focus' => array(
|
3396 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3397 |
-
),
|
3398 |
-
|
3399 |
-
// Submit button.
|
3400 |
-
' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
|
3401 |
-
'color' => $attr['buttonTextColor'],
|
3402 |
-
'background-color' => $attr['buttonBgColor'],
|
3403 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSize'], $attr['buttonFontSizeType'] ),
|
3404 |
-
'font-family' => $attr['buttonFontFamily'],
|
3405 |
-
'font-weight' => $attr['buttonFontWeight'],
|
3406 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeight'], $attr['buttonLineHeightType'] ),
|
3407 |
-
'border-color' => $attr['buttonBorderColor'],
|
3408 |
-
'border-style' => $attr['buttonBorderStyle'],
|
3409 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['buttonBorderWidth'], 'px' ),
|
3410 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['buttonBorderRadius'], $attr['buttonBorderRadiusType'] ),
|
3411 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
|
3412 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
|
3413 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
|
3414 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
|
3415 |
-
),
|
3416 |
-
' .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover' => array(
|
3417 |
-
'color' => $attr['buttonTextHoverColor'],
|
3418 |
-
'background-color' => $attr['buttonBgHoverColor'],
|
3419 |
-
'border-color' => $attr['buttonBorderHoverColor'],
|
3420 |
-
),
|
3421 |
-
|
3422 |
-
// Check box Radio.
|
3423 |
-
' .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
|
3424 |
-
'background-color' => $attr['fieldBgColor'],
|
3425 |
-
'color' => $attr['fieldInputColor'],
|
3426 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3427 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3428 |
-
),
|
3429 |
-
' .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
|
3430 |
-
'background-color' => $attr['fieldBgColor'],
|
3431 |
-
'color' => $attr['fieldInputColor'],
|
3432 |
-
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3433 |
-
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3434 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3435 |
-
'border-color' => $attr['fieldBorderColor'],
|
3436 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3437 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3438 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3439 |
-
),
|
3440 |
-
' .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
|
3441 |
-
'background-color' => $attr['fieldBgColor'],
|
3442 |
-
'color' => $attr['fieldInputColor'],
|
3443 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3444 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3445 |
-
),
|
3446 |
-
' .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
|
3447 |
-
'background-color' => $attr['fieldBgColor'],
|
3448 |
-
'color' => $attr['fieldInputColor'],
|
3449 |
-
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3450 |
-
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3451 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3452 |
-
'border-color' => $attr['fieldBorderColor'],
|
3453 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3454 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3455 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3456 |
-
),
|
3457 |
-
' .wpcf7 .wpcf7-radio input[type="radio"] + span:before' => array(
|
3458 |
-
'background-color' => $attr['fieldBgColor'],
|
3459 |
-
'color' => $attr['fieldInputColor'],
|
3460 |
-
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3461 |
-
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3462 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3463 |
-
'border-color' => $attr['fieldBorderColor'],
|
3464 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3465 |
-
),
|
3466 |
-
' .wpcf7 .wpcf7-radio input[type="radio"]:checked + span:before' => array(
|
3467 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3468 |
-
),
|
3469 |
-
|
3470 |
-
// Underline border.
|
3471 |
-
' .uagb-cf7-styler__field-style-underline .wpcf7 input:not([type=submit])' => array(
|
3472 |
-
'border-style' => 'none',
|
3473 |
-
'border-bottom-color' => $attr['fieldBorderColor'],
|
3474 |
-
'border-bottom-style' => 'solid',
|
3475 |
-
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3476 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3477 |
-
),
|
3478 |
-
' .uagb-cf7-styler__field-style-underline textarea' => array(
|
3479 |
-
'border-style' => 'none',
|
3480 |
-
'border-bottom-color' => $attr['fieldBorderColor'],
|
3481 |
-
'border-bottom-style' => 'solid',
|
3482 |
-
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3483 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3484 |
-
),
|
3485 |
-
' .uagb-cf7-styler__field-style-underline select' => array(
|
3486 |
-
'border-style' => 'none',
|
3487 |
-
'border-bottom-color' => $attr['fieldBorderColor'],
|
3488 |
-
'border-bottom-style' => 'solid',
|
3489 |
-
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3490 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3491 |
-
),
|
3492 |
-
' .uagb-cf7-styler__field-style-underline textarea' => array(
|
3493 |
-
'border-style' => 'none',
|
3494 |
-
'border-bottom-color' => $attr['fieldBorderColor'],
|
3495 |
-
'border-bottom-style' => 'solid',
|
3496 |
-
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3497 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3498 |
-
),
|
3499 |
-
' .uagb-cf7-styler__field-style-underline .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
|
3500 |
-
'border-style' => 'solid',
|
3501 |
-
),
|
3502 |
-
' .uagb-cf7-styler__field-style-underline .wpcf7 input[type="radio"] + span:before' => array(
|
3503 |
-
'border-style' => 'solid',
|
3504 |
-
),
|
3505 |
-
' .uagb-cf7-styler__field-style-underline .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
|
3506 |
-
'border-style' => 'solid',
|
3507 |
-
),
|
3508 |
-
' .uagb-cf7-styler__field-style-box .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
|
3509 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3510 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3511 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3512 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3513 |
-
),
|
3514 |
-
' .uagb-cf7-styler__field-style-box .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
|
3515 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3516 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3517 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3518 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3519 |
-
),
|
3520 |
-
' .wpcf7-radio input[type="radio"]:checked + span:before' => array(
|
3521 |
-
'background-color' => $attr['fieldInputColor'],
|
3522 |
-
),
|
3523 |
-
|
3524 |
-
// Override check box.
|
3525 |
-
' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
|
3526 |
-
'background-color' => $attr['radioCheckBgColor'],
|
3527 |
-
'color' => $attr['radioCheckSelectColor'],
|
3528 |
-
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3529 |
-
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3530 |
-
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
|
3531 |
-
'border-color' => $attr['radioCheckBorderColor'],
|
3532 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
3533 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
|
3534 |
-
),
|
3535 |
-
' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
|
3536 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3537 |
-
),
|
3538 |
-
' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
|
3539 |
-
'background-color' => $attr['radioCheckBgColor'],
|
3540 |
-
'color' => $attr['radioCheckSelectColor'],
|
3541 |
-
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3542 |
-
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3543 |
-
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
|
3544 |
-
'border-color' => $attr['radioCheckBorderColor'],
|
3545 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
3546 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
|
3547 |
-
),
|
3548 |
-
' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
|
3549 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3550 |
-
),
|
3551 |
-
|
3552 |
-
' .uagb-cf7-styler__check-style-enabled .wpcf7 input[type="radio"] + span:before' => array(
|
3553 |
-
'background-color' => $attr['radioCheckBgColor'],
|
3554 |
-
'color' => $attr['radioCheckSelectColor'],
|
3555 |
-
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3556 |
-
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3557 |
-
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
|
3558 |
-
'border-color' => $attr['radioCheckBorderColor'],
|
3559 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
3560 |
-
),
|
3561 |
-
' .uagb-cf7-styler__check-style-enabled .wpcf7-radio input[type="radio"]:checked + span:before' => array(
|
3562 |
-
'background-color' => $attr['radioCheckSelectColor'],
|
3563 |
-
),
|
3564 |
-
' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
|
3565 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
|
3566 |
-
'font-family' => $attr['radioCheckFontFamily'],
|
3567 |
-
'font-weight' => $attr['radioCheckFontWeight'],
|
3568 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
|
3569 |
-
'color' => $attr['radioCheckLableColor'],
|
3570 |
-
),
|
3571 |
-
' span.wpcf7-not-valid-tip' => array(
|
3572 |
-
'color' => $attr['validationMsgColor'],
|
3573 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSize'], $attr['validationMsgFontSizeType'] ),
|
3574 |
-
'font-family' => $attr['validationMsgFontFamily'],
|
3575 |
-
'font-weight' => $attr['validationMsgFontWeight'],
|
3576 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeight'], $attr['validationMsgLineHeightType'] ),
|
3577 |
-
),
|
3578 |
-
' .uagb-cf7-styler__highlight-border input.wpcf7-form-control.wpcf7-not-valid' => array(
|
3579 |
-
'border-color' => $attr['highlightBorderColor'],
|
3580 |
-
),
|
3581 |
-
' .uagb-cf7-styler__highlight-border .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item-label:before' => array(
|
3582 |
-
'border-color' => $attr['highlightBorderColor'] . '!important',
|
3583 |
-
),
|
3584 |
-
' .uagb-cf7-styler__highlight-style-bottom_right .wpcf7-not-valid-tip' => array(
|
3585 |
-
'background-color' => $attr['validationMsgBgColor'],
|
3586 |
-
),
|
3587 |
-
' .wpcf7-response-output' => array(
|
3588 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['msgBorderSize'], 'px' ),
|
3589 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['msgBorderRadius'], $attr['msgBorderRadiusType'] ),
|
3590 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSize'], $attr['msgFontSizeType'] ),
|
3591 |
-
'font-family' => $attr['msgFontFamily'],
|
3592 |
-
'font-weight' => $attr['msgFontWeight'],
|
3593 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeight'], $attr['msgLineHeightType'] ),
|
3594 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['msgVrPadding'], 'px' ),
|
3595 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['msgVrPadding'], 'px' ),
|
3596 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['msgHrPadding'], 'px' ),
|
3597 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['msgHrPadding'], 'px' ),
|
3598 |
-
),
|
3599 |
-
' .wpcf7-response-output.wpcf7-validation-errors' => array(
|
3600 |
-
'background-color' => $attr['errorMsgBgColor'],
|
3601 |
-
'border-color' => $attr['errorMsgBorderColor'],
|
3602 |
-
'color' => $attr['errorMsgColor'],
|
3603 |
-
),
|
3604 |
-
' .wpcf7-response-output.wpcf7-validation- success' => array(
|
3605 |
-
'background-color' => $attr['successMsgBgColor'],
|
3606 |
-
'border-color' => $attr['successMsgBorderColor'],
|
3607 |
-
'color' => $attr['successMsgColor'],
|
3608 |
-
),
|
3609 |
-
|
3610 |
-
);
|
3611 |
-
|
3612 |
-
$t_selectors = array(
|
3613 |
-
' .wpcf7 form.wpcf7-form:not(input)' => array(
|
3614 |
-
'color' => $attr['fieldLabelColor'],
|
3615 |
-
),
|
3616 |
-
' .wpcf7 input:not([type=submit])' => array(
|
3617 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
|
3618 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
|
3619 |
-
),
|
3620 |
-
' .wpcf7 select' => array(
|
3621 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
3622 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
3623 |
-
),
|
3624 |
-
' .wpcf7 textarea' => array(
|
3625 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
|
3626 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
|
3627 |
-
),
|
3628 |
-
' .wpcf7 form label' => array(
|
3629 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
3630 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
3631 |
-
),
|
3632 |
-
|
3633 |
-
' .wpcf7 form .wpcf7-list-item-label' => array(
|
3634 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
3635 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
3636 |
-
),
|
3637 |
-
' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
|
3638 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeTablet'], $attr['buttonFontSizeType'] ),
|
3639 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightTablet'], $attr['buttonLineHeightType'] ),
|
3640 |
-
),
|
3641 |
-
' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
|
3642 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
|
3643 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
|
3644 |
-
),
|
3645 |
-
' span.wpcf7-not-valid-tip' => array(
|
3646 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
|
3647 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
|
3648 |
-
),
|
3649 |
-
' .wpcf7-response-output' => array(
|
3650 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
|
3651 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
|
3652 |
-
),
|
3653 |
-
);
|
3654 |
-
|
3655 |
-
$m_selectors = array(
|
3656 |
-
' .wpcf7 input:not([type=submit])' => array(
|
3657 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
|
3658 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
|
3659 |
-
),
|
3660 |
-
' .wpcf7 select' => array(
|
3661 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
3662 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
3663 |
-
),
|
3664 |
-
' .wpcf7 textarea' => array(
|
3665 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
|
3666 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
|
3667 |
-
),
|
3668 |
-
' .wpcf7 form label' => array(
|
3669 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
3670 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
3671 |
-
),
|
3672 |
-
|
3673 |
-
' .wpcf7 form .wpcf7-list-item-label' => array(
|
3674 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
3675 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
3676 |
-
),
|
3677 |
-
' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
|
3678 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeMobile'], $attr['buttonFontSizeType'] ),
|
3679 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightMobile'], $attr['buttonLineHeightType'] ),
|
3680 |
-
),
|
3681 |
-
' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
|
3682 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
|
3683 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
|
3684 |
-
),
|
3685 |
-
' span.wpcf7-not-valid-tip' => array(
|
3686 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
|
3687 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
|
3688 |
-
),
|
3689 |
-
' .wpcf7-response-output' => array(
|
3690 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
|
3691 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
|
3692 |
-
),
|
3693 |
-
);
|
3694 |
-
|
3695 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cf7-styler-' . $id );
|
3696 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-cf7-styler-' . $id );
|
3697 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-cf7-styler-' . $id );
|
3698 |
-
|
3699 |
-
$generated_css = array(
|
3700 |
-
'desktop' => $desktop,
|
3701 |
-
'tablet' => $tablet,
|
3702 |
-
'mobile' => $mobile,
|
3703 |
-
);
|
3704 |
-
|
3705 |
-
return $generated_css;
|
3706 |
-
}
|
3707 |
-
|
3708 |
-
|
3709 |
-
|
3710 |
-
/**
|
3711 |
-
* Get Gravity Form Styler CSS
|
3712 |
-
*
|
3713 |
-
* @param array $attr The block attributes.
|
3714 |
-
* @param string $id The selector ID.
|
3715 |
-
* @since 1.12.0
|
3716 |
-
*/
|
3717 |
-
public static function get_gf_styler_css( $attr, $id ) {
|
3718 |
-
$defaults = UAGB_Helper::$block_list['uagb/gf-styler']['attributes'];
|
3719 |
-
|
3720 |
-
$attr = array_merge( $defaults, (array) $attr );
|
3721 |
-
|
3722 |
-
$attr['msgVrPadding'] = ( '' === $attr['msgVrPadding'] ) ? '0' : $attr['msgVrPadding'];
|
3723 |
-
$attr['msgHrPadding'] = ( '' === $attr['msgHrPadding'] ) ? '0' : $attr['msgHrPadding'];
|
3724 |
-
$attr['textAreaHeight'] = ( 'auto' === $attr['msgHrPadding'] ) ? $attr['textAreaHeight'] : $attr['textAreaHeight'] . 'px';
|
3725 |
-
|
3726 |
-
$selectors = array(
|
3727 |
-
' .gform_wrapper form' => array(
|
3728 |
-
'text-align' => $attr['align'],
|
3729 |
-
),
|
3730 |
-
' .wp-block-uagb-gf-styler form:not(input)' => array(
|
3731 |
-
'color' => $attr['fieldLabelColor'],
|
3732 |
-
),
|
3733 |
-
' .gform_heading' => array(
|
3734 |
-
'text-align' => $attr['titleDescAlignment'],
|
3735 |
-
),
|
3736 |
-
' input:not([type=submit])' => array(
|
3737 |
-
'background-color' => $attr['fieldBgColor'],
|
3738 |
-
'color' => $attr['fieldInputColor'],
|
3739 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3740 |
-
'border-color' => $attr['fieldBorderColor'],
|
3741 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3742 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3743 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3744 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3745 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3746 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3747 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3748 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3749 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3750 |
-
'font-family' => $attr['inputFontFamily'],
|
3751 |
-
'font-weight' => $attr['inputFontWeight'],
|
3752 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3753 |
-
'text-align' => $attr['align'],
|
3754 |
-
),
|
3755 |
-
' select' => array(
|
3756 |
-
'background-color' => $attr['fieldBgColor'],
|
3757 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3758 |
-
'border-color' => $attr['fieldBorderColor'],
|
3759 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3760 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3761 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3762 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3763 |
-
'color' => $attr['fieldInputColor'],
|
3764 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3765 |
-
'font-family' => $attr['inputFontFamily'],
|
3766 |
-
'font-weight' => $attr['inputFontWeight'],
|
3767 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3768 |
-
'text-align' => $attr['align'],
|
3769 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3770 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3771 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3772 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3773 |
-
),
|
3774 |
-
' .chosen-container-single span' => array(
|
3775 |
-
'background-color' => $attr['fieldBgColor'],
|
3776 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3777 |
-
'border-color' => $attr['fieldBorderColor'],
|
3778 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3779 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3780 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3781 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3782 |
-
'color' => $attr['fieldInputColor'],
|
3783 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3784 |
-
'font-family' => $attr['inputFontFamily'],
|
3785 |
-
'font-weight' => $attr['inputFontWeight'],
|
3786 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3787 |
-
'text-align' => $attr['align'],
|
3788 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3789 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3790 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3791 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3792 |
-
),
|
3793 |
-
' .chosen-container-single.chosen-container-active .chosen-single span' => array(
|
3794 |
-
'margin-bottom' => 0,
|
3795 |
-
),
|
3796 |
-
' select.wpgf-form-control.wpgf-select:not([multiple="multiple"])' => array(
|
3797 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3798 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3799 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3800 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3801 |
-
),
|
3802 |
-
' select.wpgf-select[multiple="multiple"] option' => array(
|
3803 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3804 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3805 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3806 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3807 |
-
),
|
3808 |
-
' textarea' => array(
|
3809 |
-
'background-color' => $attr['fieldBgColor'],
|
3810 |
-
'color' => $attr['fieldInputColor'],
|
3811 |
-
'border-color' => $attr['fieldBorderColor'],
|
3812 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3813 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3814 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3815 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3816 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3817 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3818 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3819 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3820 |
-
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3821 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3822 |
-
'font-family' => $attr['inputFontFamily'],
|
3823 |
-
'font-weight' => $attr['inputFontWeight'],
|
3824 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3825 |
-
'text-align' => $attr['align'],
|
3826 |
-
'height' => $attr['textAreaHeight'],
|
3827 |
-
),
|
3828 |
-
' textarea::placeholder' => array(
|
3829 |
-
'color' => $attr['fieldInputColor'],
|
3830 |
-
'text-align' => $attr['align'],
|
3831 |
-
),
|
3832 |
-
' input::placeholder' => array(
|
3833 |
-
'color' => $attr['fieldInputColor'],
|
3834 |
-
'text-align' => $attr['align'],
|
3835 |
-
),
|
3836 |
-
' form label' => array(
|
3837 |
-
'color' => $attr['fieldLabelColor'],
|
3838 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
|
3839 |
-
'font-family' => $attr['labelFontFamily'],
|
3840 |
-
'font-weight' => $attr['labelFontWeight'],
|
3841 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
|
3842 |
-
),
|
3843 |
-
' form .gfield_radio label' => array(
|
3844 |
-
'color' => $attr['fieldLabelColor'],
|
3845 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
|
3846 |
-
'font-family' => $attr['labelFontFamily'],
|
3847 |
-
'font-weight' => $attr['labelFontWeight'],
|
3848 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
|
3849 |
-
),
|
3850 |
-
' form .gfield_checkbox label' => array(
|
3851 |
-
'color' => $attr['fieldLabelColor'],
|
3852 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
|
3853 |
-
'font-family' => $attr['labelFontFamily'],
|
3854 |
-
'font-weight' => $attr['labelFontWeight'],
|
3855 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
|
3856 |
-
),
|
3857 |
-
' .wpgf .gfield_checkbox input[type="checkbox"] + label, .wpgf .gfield_checkbox input[type="checkbox"] + label' => array(
|
3858 |
-
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3859 |
-
),
|
3860 |
-
|
3861 |
-
// Focus.
|
3862 |
-
' form input:not([type=submit]):focus' => array(
|
3863 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3864 |
-
),
|
3865 |
-
' form select:focus' => array(
|
3866 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3867 |
-
),
|
3868 |
-
' textarea:focus' => array(
|
3869 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3870 |
-
),
|
3871 |
-
|
3872 |
-
// Submit button.
|
3873 |
-
' input.gform_button' => array(
|
3874 |
-
'color' => $attr['buttonTextColor'],
|
3875 |
-
'background-color' => $attr['buttonBgColor'],
|
3876 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSize'], $attr['buttonFontSizeType'] ),
|
3877 |
-
'font-family' => $attr['buttonFontFamily'],
|
3878 |
-
'font-weight' => $attr['buttonFontWeight'],
|
3879 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeight'], $attr['buttonLineHeightType'] ),
|
3880 |
-
'border-color' => $attr['buttonBorderColor'],
|
3881 |
-
'border-style' => $attr['buttonBorderStyle'],
|
3882 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['buttonBorderWidth'], 'px' ),
|
3883 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['buttonBorderRadius'], $attr['buttonBorderRadiusType'] ),
|
3884 |
-
'padding-left' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
|
3885 |
-
'padding-right' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
|
3886 |
-
'padding-top' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
|
3887 |
-
'padding-bottom' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
|
3888 |
-
),
|
3889 |
-
' input.gform_button:hover' => array(
|
3890 |
-
'color' => $attr['buttonTextHoverColor'],
|
3891 |
-
'background-color' => $attr['buttonBgHoverColor'],
|
3892 |
-
'border-color' => $attr['buttonBorderHoverColor'],
|
3893 |
-
),
|
3894 |
-
|
3895 |
-
// Check box Radio.
|
3896 |
-
' .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
|
3897 |
-
'background-color' => $attr['fieldBgColor'],
|
3898 |
-
'color' => $attr['fieldInputColor'],
|
3899 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3900 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3901 |
-
),
|
3902 |
-
' .gfield_checkbox input[type="checkbox"] + label:before' => array(
|
3903 |
-
'background-color' => $attr['fieldBgColor'],
|
3904 |
-
'color' => $attr['fieldInputColor'],
|
3905 |
-
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3906 |
-
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3907 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3908 |
-
'border-color' => $attr['fieldBorderColor'],
|
3909 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3910 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3911 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3912 |
-
),
|
3913 |
-
' input[type="checkbox"]:checked + label:before' => array(
|
3914 |
-
'background-color' => $attr['fieldBgColor'],
|
3915 |
-
'color' => $attr['fieldInputColor'],
|
3916 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3917 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3918 |
-
),
|
3919 |
-
' input[type="checkbox"] + label:before' => array(
|
3920 |
-
'background-color' => $attr['fieldBgColor'],
|
3921 |
-
'color' => $attr['fieldInputColor'],
|
3922 |
-
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3923 |
-
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3924 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3925 |
-
'border-color' => $attr['fieldBorderColor'],
|
3926 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3927 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3928 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3929 |
-
),
|
3930 |
-
' .gfield_radio input[type="radio"] + label:before' => array(
|
3931 |
-
'background-color' => $attr['fieldBgColor'],
|
3932 |
-
'color' => $attr['fieldInputColor'],
|
3933 |
-
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3934 |
-
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3935 |
-
'border-style' => $attr['fieldBorderStyle'],
|
3936 |
-
'border-color' => $attr['fieldBorderColor'],
|
3937 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3938 |
-
),
|
3939 |
-
' .gfield_radio input[type="radio"]:checked + label:before' => array(
|
3940 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
3941 |
-
),
|
3942 |
-
|
3943 |
-
// Underline border.
|
3944 |
-
' .uagb-gf-styler__field-style-underline input:not([type=submit])' => array(
|
3945 |
-
'border-style' => 'none',
|
3946 |
-
'border-bottom-color' => $attr['fieldBorderColor'],
|
3947 |
-
'border-bottom-style' => 'solid',
|
3948 |
-
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3949 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3950 |
-
),
|
3951 |
-
' .uagb-gf-styler__field-style-underline textarea' => array(
|
3952 |
-
'border-style' => 'none',
|
3953 |
-
'border-bottom-color' => $attr['fieldBorderColor'],
|
3954 |
-
'border-bottom-style' => 'solid',
|
3955 |
-
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3956 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3957 |
-
),
|
3958 |
-
' .uagb-gf-styler__field-style-underline select' => array(
|
3959 |
-
'border-style' => 'none',
|
3960 |
-
'border-bottom-color' => $attr['fieldBorderColor'],
|
3961 |
-
'border-bottom-style' => 'solid',
|
3962 |
-
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3963 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3964 |
-
),
|
3965 |
-
' .uagb-gf-styler__field-style-underline textarea' => array(
|
3966 |
-
'border-style' => 'none',
|
3967 |
-
'border-bottom-color' => $attr['fieldBorderColor'],
|
3968 |
-
'border-bottom-style' => 'solid',
|
3969 |
-
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3970 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3971 |
-
),
|
3972 |
-
' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
|
3973 |
-
'border-style' => 'solid',
|
3974 |
-
),
|
3975 |
-
' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
|
3976 |
-
'border-style' => 'solid',
|
3977 |
-
),
|
3978 |
-
' .uagb-gf-styler__field-style-box .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
|
3979 |
-
'border-style' => 'solid',
|
3980 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3981 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3982 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3983 |
-
),
|
3984 |
-
' .uagb-gf-styler__field-style-box input[type="checkbox"]:checked + label:before' => array(
|
3985 |
-
'border-style' => 'solid',
|
3986 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3987 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3988 |
-
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3989 |
-
),
|
3990 |
-
' .gfield_radio input[type="radio"]:checked + label:before' => array(
|
3991 |
-
'background-color' => $attr['fieldInputColor'],
|
3992 |
-
),
|
3993 |
-
|
3994 |
-
// Override check box.
|
3995 |
-
' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
|
3996 |
-
'background-color' => $attr['radioCheckBgColor'],
|
3997 |
-
'color' => $attr['radioCheckSelectColor'],
|
3998 |
-
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3999 |
-
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
4000 |
-
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px * 1.8 )',
|
4001 |
-
'border-color' => $attr['radioCheckBorderColor'],
|
4002 |
-
'border-style' => 'solid',
|
4003 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
4004 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
|
4005 |
-
),
|
4006 |
-
' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
|
4007 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
4008 |
-
),
|
4009 |
-
' .uagb-gf-styler__check-style-enabled input[type="checkbox"] + label:before' => array(
|
4010 |
-
'background-color' => $attr['radioCheckBgColor'],
|
4011 |
-
'color' => $attr['radioCheckSelectColor'],
|
4012 |
-
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
4013 |
-
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
4014 |
-
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px * 1.8 )',
|
4015 |
-
'border-color' => $attr['radioCheckBorderColor'],
|
4016 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
4017 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
|
4018 |
-
),
|
4019 |
-
' .uagb-gf-styler__check-style-enabled input[type="checkbox"]:checked + label:before' => array(
|
4020 |
-
'border-color' => $attr['fieldBorderFocusColor'],
|
4021 |
-
),
|
4022 |
-
|
4023 |
-
' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
|
4024 |
-
'background-color' => $attr['radioCheckBgColor'],
|
4025 |
-
'color' => $attr['radioCheckSelectColor'],
|
4026 |
-
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
4027 |
-
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
4028 |
-
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
|
4029 |
-
'border-color' => $attr['radioCheckBorderColor'],
|
4030 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
4031 |
-
),
|
4032 |
-
' .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]:checked + label:before' => array(
|
4033 |
-
'background-color' => $attr['radioCheckSelectColor'],
|
4034 |
-
),
|
4035 |
-
' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
|
4036 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
|
4037 |
-
'font-family' => $attr['radioCheckFontFamily'],
|
4038 |
-
'font-weight' => $attr['radioCheckFontWeight'],
|
4039 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
|
4040 |
-
'color' => $attr['radioCheckLableColor'],
|
4041 |
-
),
|
4042 |
-
' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
|
4043 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
|
4044 |
-
'font-family' => $attr['radioCheckFontFamily'],
|
4045 |
-
'font-weight' => $attr['radioCheckFontWeight'],
|
4046 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
|
4047 |
-
'color' => $attr['radioCheckLableColor'],
|
4048 |
-
),
|
4049 |
-
// Validation Errors.
|
4050 |
-
' .gform_wrapper .gfield_description.validation_message' => array(
|
4051 |
-
'color' => $attr['validationMsgColor'],
|
4052 |
-
),
|
4053 |
-
' .gform_wrapper .validation_message' => array(
|
4054 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSize'], $attr['validationMsgFontSizeType'] ),
|
4055 |
-
'font-family' => $attr['validationMsgFontFamily'],
|
4056 |
-
'font-weight' => $attr['validationMsgFontWeight'],
|
4057 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeight'], $attr['validationMsgLineHeightType'] ),
|
4058 |
-
),
|
4059 |
-
' .uagb-gf-styler__error-yes .gform_wrapper .gfield.gfield_error' => array(
|
4060 |
-
'background-color' => $attr['validationMsgBgColor'],
|
4061 |
-
),
|
4062 |
-
|
4063 |
-
' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input:not([type="submit"]):not([type="button"]):not([type="image"])' => array(
|
4064 |
-
'border-color' => $attr['highlightBorderColor'],
|
4065 |
-
),
|
4066 |
-
|
4067 |
-
' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container select' => array(
|
4068 |
-
'border-color' => $attr['highlightBorderColor'],
|
4069 |
-
),
|
4070 |
-
|
4071 |
-
' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container .chosen-single' => array(
|
4072 |
-
'border-color' => $attr['highlightBorderColor'],
|
4073 |
-
),
|
4074 |
-
|
4075 |
-
' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container textarea' => array(
|
4076 |
-
'border-color' => $attr['highlightBorderColor'],
|
4077 |
-
),
|
4078 |
-
|
4079 |
-
' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error' => array(
|
4080 |
-
'border-color' => $attr['highlightBorderColor'],
|
4081 |
-
),
|
4082 |
-
|
4083 |
-
' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning' => array(
|
4084 |
-
'border-color' => $attr['highlightBorderColor'],
|
4085 |
-
),
|
4086 |
-
|
4087 |
-
' .uagb-gf-styler__error-yes li.gfield_error .gfield_checkbox input[type="checkbox"] + label:before' => array(
|
4088 |
-
'border-color' => $attr['highlightBorderColor'],
|
4089 |
-
),
|
4090 |
-
|
4091 |
-
' .uagb-gf-styler__error-yes li.gfield_error .ginput_container_consent input[type="checkbox"] + label:before' => array(
|
4092 |
-
'border-color' => $attr['highlightBorderColor'],
|
4093 |
-
),
|
4094 |
-
|
4095 |
-
' .uagb-gf-styler__error-yes li.gfield_error .gfield_radio input[type="radio"] + label:before' => array(
|
4096 |
-
'border-color' => $attr['highlightBorderColor'],
|
4097 |
-
),
|
4098 |
-
|
4099 |
-
' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
|
4100 |
-
'border' => $attr['fieldBorderWidth'] . 'px ' . $attr['fieldBorderStyle'] . ' ' . $attr['fieldBorderColor'] . '!important',
|
4101 |
-
),
|
4102 |
-
|
4103 |
-
' .uael-gf-style-underline.uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
|
4104 |
-
'border-width' => $attr['fieldBorderWidth'] . 'px' . '!important',
|
4105 |
-
'border-style' => 'solid' . '!important',
|
4106 |
-
'border-color' => $attr['fieldBorderColor'] . '!important',
|
4107 |
-
),
|
4108 |
-
|
4109 |
-
' .gform_wrapper div.validation_error' => array(
|
4110 |
-
'color' => $attr['errorMsgColor'],
|
4111 |
-
'background-color' => $attr['errorMsgBgColor'],
|
4112 |
-
'border-color' => $attr['errorMsgBorderColor'],
|
4113 |
-
'border-style' => 'solid',
|
4114 |
-
'border-width' => UAGB_Helper::get_css_value( $attr['msgBorderSize'], 'px' ),
|
4115 |
-
'border-radius' => UAGB_Helper::get_css_value( $attr['msgBorderRadius'], $attr['msgBorderRadiusType'] ),
|
4116 |
-
'padding' => $attr['msgVrPadding'] . 'px ' . $attr['msgHrPadding'] . 'px',
|
4117 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSize'], $attr['msgFontSizeType'] ),
|
4118 |
-
'font-family' => $attr['msgFontFamily'],
|
4119 |
-
'font-weight' => $attr['msgFontWeight'],
|
4120 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeight'], $attr['msgLineHeightType'] ),
|
4121 |
-
),
|
4122 |
-
|
4123 |
-
' .gform_confirmation_message' => array(
|
4124 |
-
'color' => $attr['successMsgColor'],
|
4125 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSize'], $attr['successMsgFontSizeType'] ),
|
4126 |
-
'font-family' => $attr['successMsgFontFamily'],
|
4127 |
-
'font-weight' => $attr['successMsgFontWeight'],
|
4128 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeight'], $attr['successMsgLineHeightType'] ),
|
4129 |
-
),
|
4130 |
-
);
|
4131 |
-
|
4132 |
-
$t_selectors = array(
|
4133 |
-
' form.wpgf-form:not(input)' => array(
|
4134 |
-
'color' => $attr['fieldLabelColor'],
|
4135 |
-
),
|
4136 |
-
' input:not([type=submit])' => array(
|
4137 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
|
4138 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
|
4139 |
-
),
|
4140 |
-
' textarea' => array(
|
4141 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
|
4142 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
|
4143 |
-
),
|
4144 |
-
' form label' => array(
|
4145 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
4146 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
4147 |
-
),
|
4148 |
-
|
4149 |
-
' form .gfield_radio label' => array(
|
4150 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
4151 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
4152 |
-
),
|
4153 |
-
' form .gfield_checkbox label' => array(
|
4154 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
4155 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
4156 |
-
),
|
4157 |
-
' input.gform_button' => array(
|
4158 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeTablet'], $attr['buttonFontSizeType'] ),
|
4159 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightTablet'], $attr['buttonLineHeightType'] ),
|
4160 |
-
),
|
4161 |
-
' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
|
4162 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
|
4163 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
|
4164 |
-
),
|
4165 |
-
' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
|
4166 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
|
4167 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
|
4168 |
-
),
|
4169 |
-
' span.wpgf-not-valid-tip' => array(
|
4170 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
|
4171 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
|
4172 |
-
),
|
4173 |
-
' .wpgf-response-output' => array(
|
4174 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
|
4175 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
|
4176 |
-
),
|
4177 |
-
' .gform_wrapper .validation_message' => array(
|
4178 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
|
4179 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
|
4180 |
-
),
|
4181 |
-
' .gform_wrapper div.validation_error' => array(
|
4182 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
|
4183 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
|
4184 |
-
),
|
4185 |
-
' .gform_confirmation_message' => array(
|
4186 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSizeTablet'], $attr['successMsgFontSizeType'] ),
|
4187 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeightTablet'], $attr['successMsgLineHeightType'] ),
|
4188 |
-
'color' => $attr['successMsgColor'],
|
4189 |
-
),
|
4190 |
-
);
|
4191 |
-
|
4192 |
-
$m_selectors = array(
|
4193 |
-
' input:not([type=submit])' => array(
|
4194 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
|
4195 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
|
4196 |
-
),
|
4197 |
-
' textarea' => array(
|
4198 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
|
4199 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
|
4200 |
-
),
|
4201 |
-
' form label' => array(
|
4202 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
4203 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
4204 |
-
),
|
4205 |
-
|
4206 |
-
' form .gfield_radio label' => array(
|
4207 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
4208 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
4209 |
-
),
|
4210 |
-
' form .gfield_checkbox label' => array(
|
4211 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
4212 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
4213 |
-
),
|
4214 |
-
' input.gform_button' => array(
|
4215 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeMobile'], $attr['buttonFontSizeType'] ),
|
4216 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightMobile'], $attr['buttonLineHeightType'] ),
|
4217 |
-
),
|
4218 |
-
' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
|
4219 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
|
4220 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
|
4221 |
-
),
|
4222 |
-
' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
|
4223 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
|
4224 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
|
4225 |
-
),
|
4226 |
-
' span.wpgf-not-valid-tip' => array(
|
4227 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
|
4228 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
|
4229 |
-
),
|
4230 |
-
' .wpgf-response-output' => array(
|
4231 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
|
4232 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
|
4233 |
-
),
|
4234 |
-
' .gform_wrapper .validation_message' => array(
|
4235 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
|
4236 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
|
4237 |
-
),
|
4238 |
-
' .gform_wrapper div.validation_error' => array(
|
4239 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
|
4240 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
|
4241 |
-
),
|
4242 |
-
' .gform_confirmation_message' => array(
|
4243 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSizeMobile'], $attr['successMsgFontSizeType'] ),
|
4244 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeightMobile'], $attr['successMsgLineHeightType'] ),
|
4245 |
-
'color' => $attr['successMsgColor'],
|
4246 |
-
),
|
4247 |
-
);
|
4248 |
-
|
4249 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-gf-styler-' . $id );
|
4250 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-gf-styler-' . $id );
|
4251 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-gf-styler-' . $id );
|
4252 |
-
$generated_css = array(
|
4253 |
-
'desktop' => $desktop,
|
4254 |
-
'tablet' => $tablet,
|
4255 |
-
'mobile' => $mobile,
|
4256 |
-
);
|
4257 |
-
|
4258 |
-
return $generated_css;
|
4259 |
-
}
|
4260 |
-
|
4261 |
-
/*
|
4262 |
-
* Get Marketing Button Block CSS
|
4263 |
-
*
|
4264 |
-
* @since 1.11.0
|
4265 |
-
* @param array $attr The block attributes.
|
4266 |
-
* @param string $id The selector ID.
|
4267 |
-
* @return array The Widget List.
|
4268 |
-
*/
|
4269 |
-
public static function get_marketing_btn_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
4270 |
-
|
4271 |
-
$defaults = UAGB_Helper::$block_list['uagb/marketing-button']['attributes'];
|
4272 |
-
|
4273 |
-
$attr = array_merge( $defaults, (array) $attr );
|
4274 |
-
|
4275 |
-
$m_selectors = array();
|
4276 |
-
$t_selectors = array();
|
4277 |
-
|
4278 |
-
$icon_color = ( "" == $attr["iconColor"] ) ? $attr["titleColor"] : $attr["iconColor"];
|
4279 |
-
$icon_hover_color = ( "" == $attr["iconHoverColor"] ) ? $attr["titleHoverColor"] : $attr["iconHoverColor"];
|
4280 |
-
|
4281 |
-
$selectors = array(
|
4282 |
-
" .uagb-marketing-btn__title-wrap" => array(
|
4283 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr["titleSpace"], 'px' )
|
4284 |
-
),
|
4285 |
-
" .uagb-marketing-btn__title" => array(
|
4286 |
-
"font-size" => UAGB_Helper::get_css_value( $attr["titleFontSize"], $attr["titleFontSizeType"] ),
|
4287 |
-
"line-height" => UAGB_Helper::get_css_value( $attr["titleLineHeight"], $attr["titleLineHeightType"] ),
|
4288 |
-
"font-family" => $attr["titleFontFamily"],
|
4289 |
-
"font-weight" => $attr["titleFontWeight"],
|
4290 |
-
"color" => $attr["titleColor"],
|
4291 |
-
),
|
4292 |
-
" .uagb-marketing-btn__icon-wrap" => array(
|
4293 |
-
"width" => UAGB_Helper::get_css_value( $attr["iconFontSize"], $attr["iconFontSizeType"] ),
|
4294 |
-
"height" => UAGB_Helper::get_css_value( $attr["iconFontSize"], $attr["iconFontSizeType"] ),
|
4295 |
-
),
|
4296 |
-
" .uagb-marketing-btn__icon-wrap svg" => array(
|
4297 |
-
"fill" => $icon_color
|
4298 |
-
),
|
4299 |
-
" .uagb-marketing-btn__prefix" => array(
|
4300 |
-
"font-size" => UAGB_Helper::get_css_value( $attr["prefixFontSize"], $attr["prefixFontSizeType"] ),
|
4301 |
-
"line-height" => UAGB_Helper::get_css_value( $attr["prefixLineHeight"], $attr["prefixLineHeightType"] ),
|
4302 |
-
"font-family" => $attr["prefixFontFamily"],
|
4303 |
-
"font-weight" => $attr["prefixFontWeight"],
|
4304 |
-
"color" => $attr["prefixColor"],
|
4305 |
-
),
|
4306 |
-
" .uagb-marketing-btn__link:hover .uagb-marketing-btn__title" => array(
|
4307 |
-
"color" => $attr["titleHoverColor"],
|
4308 |
-
),
|
4309 |
-
" .uagb-marketing-btn__link:hover .uagb-marketing-btn__prefix" => array(
|
4310 |
-
"color" => $attr["prefixHoverColor"],
|
4311 |
-
),
|
4312 |
-
" .uagb-marketing-btn__link:hover .uagb-marketing-btn__icon-wrap svg" => array(
|
4313 |
-
"fill" => $icon_hover_color
|
4314 |
-
),
|
4315 |
-
" .uagb-marketing-btn__link" => array(
|
4316 |
-
"padding-left" => UAGB_Helper::get_css_value( $attr["hPadding"], 'px' ),
|
4317 |
-
"padding-right" => UAGB_Helper::get_css_value( $attr["hPadding"], 'px' ),
|
4318 |
-
"padding-top" => UAGB_Helper::get_css_value( $attr["vPadding"], 'px' ),
|
4319 |
-
"padding-bottom" => UAGB_Helper::get_css_value( $attr["vPadding"], 'px' ),
|
4320 |
-
"border-style" => $attr["borderStyle"],
|
4321 |
-
"border-width" => UAGB_Helper::get_css_value( $attr["borderWidth"], 'px' ),
|
4322 |
-
"border-color" => $attr["borderColor"],
|
4323 |
-
"border-radius" => UAGB_Helper::get_css_value( $attr["borderRadius"], 'px' ),
|
4324 |
-
),
|
4325 |
-
" .uagb-marketing-btn__link:hover" => array(
|
4326 |
-
"border-color" => $attr["borderHoverColor"]
|
4327 |
-
),
|
4328 |
-
);
|
4329 |
-
|
4330 |
-
if ( "transparent" == $attr["backgroundType"] ) {
|
4331 |
-
|
4332 |
-
$selectors[" .uagb-marketing-btn__link"]["background"] = "transparent";
|
4333 |
-
|
4334 |
-
} else if ( "color" == $attr["backgroundType"] ) {
|
4335 |
-
|
4336 |
-
$selectors[" .uagb-marketing-btn__link"]["background"] = UAGB_Helper::hex2rgba( $attr["backgroundColor"], $attr['backgroundOpacity'] );
|
4337 |
-
|
4338 |
-
// Hover Background
|
4339 |
-
$selectors[" .uagb-marketing-btn__link:hover"] = array(
|
4340 |
-
"background" => UAGB_Helper::hex2rgba( $attr["backgroundHoverColor"], $attr['backgroundHoverOpacity'] ),
|
4341 |
-
);
|
4342 |
-
|
4343 |
-
} else if ( "gradient" == $attr["backgroundType"] ) {
|
4344 |
-
|
4345 |
-
$selectors[' .uagb-marketing-btn__link']['background-color'] = 'transparent';
|
4346 |
-
|
4347 |
-
if ( 'linear' === $attr['gradientType'] ) {
|
4348 |
-
|
4349 |
-
$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'] . '%)';
|
4350 |
-
} else {
|
4351 |
-
|
4352 |
-
$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'] . '%)';
|
4353 |
-
}
|
4354 |
-
}
|
4355 |
-
|
4356 |
-
$margin_type = ( "after" == $attr["iconPosition"] ) ? "margin-left" : "margin-right";
|
4357 |
-
|
4358 |
-
$selectors[" .uagb-marketing-btn__icon-wrap"][$margin_type] = UAGB_Helper::get_css_value( $attr["iconSpace"], "px" );
|
4359 |
-
|
4360 |
-
$m_selectors = array(
|
4361 |
-
' .uagb-marketing-btn__title' => array(
|
4362 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
|
4363 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
|
4364 |
-
),
|
4365 |
-
' .uagb-marketing-btn__prefix' => array(
|
4366 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
|
4367 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightMobile'], $attr['prefixLineHeightType'] ),
|
4368 |
-
),
|
4369 |
-
' .uagb-marketing-btn__icon-wrap' => array(
|
4370 |
-
"width" => UAGB_Helper::get_css_value( $attr["iconFontSizeMobile"], $attr["iconFontSizeType"] ),
|
4371 |
-
"height" => UAGB_Helper::get_css_value( $attr["iconFontSizeMobile"], $attr["iconFontSizeType"] ),
|
4372 |
-
),
|
4373 |
-
|
4374 |
-
);
|
4375 |
-
|
4376 |
-
$t_selectors = array(
|
4377 |
-
' .uagb-marketing-btn__title' => array(
|
4378 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
4379 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
|
4380 |
-
),
|
4381 |
-
' .uagb-marketing-btn__prefix' => array(
|
4382 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
|
4383 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightTablet'], $attr['prefixLineHeightType'] ),
|
4384 |
-
),
|
4385 |
-
' .uagb-marketing-btn__icon-wrap' => array(
|
4386 |
-
"width" => UAGB_Helper::get_css_value( $attr["iconFontSizeTablet"], $attr["iconFontSizeType"] ),
|
4387 |
-
"height" => UAGB_Helper::get_css_value( $attr["iconFontSizeTablet"], $attr["iconFontSizeType"] ),
|
4388 |
-
),
|
4389 |
-
|
4390 |
-
);
|
4391 |
-
|
4392 |
-
// @codingStandardsIgnoreEnd
|
4393 |
-
|
4394 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-marketing-btn-' . $id );
|
4395 |
-
|
4396 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-marketing-btn-' . $id );
|
4397 |
-
|
4398 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-marketing-btn-' . $id );
|
4399 |
-
|
4400 |
-
$generated_css = array(
|
4401 |
-
'desktop' => $desktop,
|
4402 |
-
'tablet' => $tablet,
|
4403 |
-
'mobile' => $mobile,
|
4404 |
-
);
|
4405 |
-
|
4406 |
-
return $generated_css;
|
4407 |
-
}
|
4408 |
-
|
4409 |
-
/**
|
4410 |
-
* Get Table of Contents Block CSS
|
4411 |
-
*
|
4412 |
-
* @since x.x.x
|
4413 |
-
* @param array $attr The block attributes.
|
4414 |
-
* @param string $id The selector ID.
|
4415 |
-
* @return array The Widget List.
|
4416 |
-
*/
|
4417 |
-
public static function get_table_of_contents_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
4418 |
-
|
4419 |
-
$defaults = UAGB_Helper::$block_list['uagb/table-of-contents']['attributes'];
|
4420 |
-
|
4421 |
-
$attr = array_merge( $defaults, (array) $attr );
|
4422 |
-
$m_selectors = array();
|
4423 |
-
$t_selectors = array();
|
4424 |
-
|
4425 |
-
$selectors = array(
|
4426 |
-
" .uagb-toc__list-wrap ul li a:hover" => array(
|
4427 |
-
"color" => $attr["linkHoverColor"],
|
4428 |
-
),
|
4429 |
-
" .uagb-toc__list-wrap ul li a" => array(
|
4430 |
-
"font-size" => UAGB_Helper::get_css_value( $attr["fontSize"], $attr["fontSizeType"] ),
|
4431 |
-
"line-height" => UAGB_Helper::get_css_value( $attr["lineHeight"], $attr["lineHeightType"] ),
|
4432 |
-
"font-family" => $attr["fontFamily"],
|
4433 |
-
"font-weight" => $attr["fontWeight"],
|
4434 |
-
"color" => $attr["linkColor"],
|
4435 |
-
),
|
4436 |
-
" .uagb-toc__title" => array(
|
4437 |
-
"font-size" => UAGB_Helper::get_css_value( $attr["headingFontSize"], $attr["headingFontSizeType"] ),
|
4438 |
-
"line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeight"], $attr["headingLineHeightType"] ),
|
4439 |
-
"font-family" => $attr["headingFontFamily"],
|
4440 |
-
"font-weight" => $attr["headingFontWeight"],
|
4441 |
-
"color" => $attr["headingColor"],
|
4442 |
-
"margin-bottom" => UAGB_Helper::get_css_value( $attr["headingBottom"], "px"),
|
4443 |
-
),
|
4444 |
-
" .uagb-toc__wrap" => array(
|
4445 |
-
"border-style" => $attr["borderStyle"],
|
4446 |
-
"border-width" => UAGB_Helper::get_css_value( $attr["borderWidth"], "px" ),
|
4447 |
-
"border-color" => $attr["borderColor"],
|
4448 |
-
"border-radius" => UAGB_Helper::get_css_value( $attr["borderRadius"], "px" ),
|
4449 |
-
"padding-left" => UAGB_Helper::get_css_value( $attr["hPadding"], "px" ),
|
4450 |
-
"padding-right" => UAGB_Helper::get_css_value( $attr["hPadding"], "px" ),
|
4451 |
-
"padding-top" => UAGB_Helper::get_css_value( $attr["vPadding"], "px" ),
|
4452 |
-
"padding-bottom" => UAGB_Helper::get_css_value( $attr["vPadding"], "px" ),
|
4453 |
-
"background" => $attr["backgroundColor"],
|
4454 |
-
),
|
4455 |
-
);
|
4456 |
-
|
4457 |
-
if ( $attr["customWidth"] ) {
|
4458 |
-
$selectors[" .uagb-toc__wrap"]["width"] = UAGB_Helper::get_css_value( $attr["width"], $attr["widthType"] );
|
4459 |
-
}
|
4460 |
-
|
4461 |
-
|
4462 |
-
$m_selectors = array(
|
4463 |
-
' .uagb-toc__list-wrap ul li a' => array(
|
4464 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['fontSizeMobile'], $attr['fontSizeType'] ),
|
4465 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightMobile'], $attr['lineHeightType'] ),
|
4466 |
-
),
|
4467 |
-
" .uagb-toc__title" => array(
|
4468 |
-
"font-size" => UAGB_Helper::get_css_value( $attr["headingFontSizeMobile"], $attr["headingFontSizeType"] ),
|
4469 |
-
"line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeightMobile"], $attr["headingLineHeightType"] ),
|
4470 |
-
),
|
4471 |
-
|
4472 |
-
);
|
4473 |
-
|
4474 |
-
$t_selectors = array(
|
4475 |
-
' .uagb-toc__list-wrap ul li a' => array(
|
4476 |
-
'font-size' => UAGB_Helper::get_css_value( $attr['fontSizeTablet'], $attr['fontSizeType'] ),
|
4477 |
-
'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightTablet'], $attr['lineHeightType'] ),
|
4478 |
-
),
|
4479 |
-
" .uagb-toc__title" => array(
|
4480 |
-
"font-size" => UAGB_Helper::get_css_value( $attr["headingFontSizeTablet"], $attr["headingFontSizeType"] ),
|
4481 |
-
"line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeightTablet"], $attr["headingLineHeightType"] ),
|
4482 |
-
),
|
4483 |
-
|
4484 |
-
);
|
4485 |
-
|
4486 |
-
// @codingStandardsIgnoreEnd
|
4487 |
-
|
4488 |
-
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-toc-' . $id );
|
4489 |
-
|
4490 |
-
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-toc-' . $id );
|
4491 |
-
|
4492 |
-
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-toc-' . $id );
|
4493 |
-
|
4494 |
-
if ( '' != $attr['scrollToTopColor'] ) {
|
4495 |
-
$desktop .= '.uagb-toc__scroll-top { color: ' . $attr['scrollToTopColor'] . '; }';
|
4496 |
-
}
|
4497 |
-
|
4498 |
-
if ( '' != $attr['scrollToTopBgColor'] ) {
|
4499 |
-
$desktop .= '.uagb-toc__scroll-top { background: ' . $attr['scrollToTopBgColor'] . '; }';
|
4500 |
-
}
|
4501 |
-
|
4502 |
-
$generated_css = array(
|
4503 |
-
'desktop' => $desktop,
|
4504 |
-
'tablet' => $tablet,
|
4505 |
-
'mobile' => $mobile,
|
4506 |
-
);
|
4507 |
-
|
4508 |
-
return $generated_css;
|
4509 |
-
}
|
4510 |
-
|
4511 |
-
|
4512 |
-
/**
|
4513 |
-
* Get Testimonial Js
|
4514 |
-
*
|
4515 |
-
* @since 1.6.0
|
4516 |
-
* @param array $attr The block attributes.
|
4517 |
-
* @param string $id The selector ID.
|
4518 |
-
*/
|
4519 |
-
public static function get_testimonial_js( $attr, $id ) { // @codingStandardsIgnoreStart.
|
4520 |
-
|
4521 |
-
$defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
|
4522 |
-
|
4523 |
-
$attr = array_merge( $defaults, (array) $attr );
|
4524 |
-
|
4525 |
-
$dots = ( "dots" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
|
4526 |
-
$arrows = ( "arrows" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
|
4527 |
-
|
4528 |
-
$slick_options = [
|
4529 |
-
'slidesToShow' => $attr['columns'],
|
4530 |
-
'slidesToScroll' => 1,
|
4531 |
-
'autoplaySpeed' => $attr['autoplaySpeed'],
|
4532 |
-
'autoplay' => $attr['autoplay'],
|
4533 |
-
'infinite' => $attr['infiniteLoop'],
|
4534 |
-
'pauseOnHover' => $attr['pauseOnHover'],
|
4535 |
-
'speed' => $attr['transitionSpeed'],
|
4536 |
-
'arrows' => $arrows,
|
4537 |
-
'dots' => $dots,
|
4538 |
-
'rtl' => false,
|
4539 |
-
'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>',
|
4540 |
-
'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>',
|
4541 |
-
'responsive' => [
|
4542 |
-
[
|
4543 |
-
'breakpoint' => 1024,
|
4544 |
-
'settings' => [
|
4545 |
-
'slidesToShow' => $attr['tcolumns'],
|
4546 |
-
'slidesToScroll' => 1,
|
4547 |
-
],
|
4548 |
-
],
|
4549 |
-
[
|
4550 |
-
'breakpoint' => 767,
|
4551 |
-
'settings' => [
|
4552 |
-
'slidesToShow' => $attr['mcolumns'],
|
4553 |
-
'slidesToScroll' => 1,
|
4554 |
-
],
|
4555 |
-
]
|
4556 |
-
]
|
4557 |
-
];
|
4558 |
-
|
4559 |
-
$settings = json_encode($slick_options);
|
4560 |
-
$selector = '#uagb-testimonial-'. $id;
|
4561 |
-
?>
|
4562 |
-
if( jQuery( ".wp-block-uagb-testimonial" ).length > 0 ){
|
4563 |
-
return true
|
4564 |
-
} else {
|
4565 |
-
jQuery( "<?php echo $selector ?>" ).find( ".is-carousel" ).slick( <?php echo $settings ?> );
|
4566 |
-
}
|
4567 |
-
<?php
|
4568 |
-
// @codingStandardsIgnoreEnd.
|
4569 |
-
}
|
4570 |
-
|
4571 |
-
/**
|
4572 |
-
* Get Blockquote Js
|
4573 |
-
*
|
4574 |
-
* @since 1.8.2
|
4575 |
-
* @param array $attr The block attributes.
|
4576 |
-
* @param string $id The selector ID.
|
4577 |
-
*/
|
4578 |
-
public static function get_blockquote_js( $attr, $id ) {
|
4579 |
-
// @codingStandardsIgnoreStart.
|
4580 |
-
|
4581 |
-
$defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
|
4582 |
-
|
4583 |
-
$attr = array_merge( $defaults, (array) $attr );
|
4584 |
-
|
4585 |
-
$target = $attr['iconTargetUrl'];
|
4586 |
-
|
4587 |
-
$url = " " ;
|
4588 |
-
|
4589 |
-
if( $target == 'current' ){
|
4590 |
-
global $wp;
|
4591 |
-
$url = home_url(add_query_arg(array(),$wp->request));
|
4592 |
-
}else{
|
4593 |
-
$url = $attr['customUrl'];
|
4594 |
-
}
|
4595 |
-
|
4596 |
-
$via = isset( $attr['iconShareVia'] ) ? $attr['iconShareVia'] : '';
|
4597 |
-
|
4598 |
-
$selector = '#uagb-blockquote-'. $id;
|
4599 |
-
|
4600 |
-
?>
|
4601 |
-
jQuery( "<?php echo $selector ?>" ).find( ".uagb-blockquote__tweet-button" ).click(function(){
|
4602 |
-
var content = jQuery("<?php echo $selector ?>").find(".uagb-blockquote__content").text();
|
4603 |
-
var request_url = "https://twitter.com/share?url="+ encodeURIComponent("<?php echo $url ?>")+"&text="+content+"&via="+("<?php echo $via;?>");
|
4604 |
-
window.open( request_url );
|
4605 |
-
});
|
4606 |
-
<?php
|
4607 |
-
|
4608 |
-
// @codingStandardsIgnoreEnd.
|
4609 |
-
}
|
4610 |
-
|
4611 |
-
/**
|
4612 |
-
* Get Social Share JS
|
4613 |
-
*
|
4614 |
-
* @since 1.8.1
|
4615 |
-
* @param string $id The selector ID.
|
4616 |
-
*/
|
4617 |
-
public static function get_social_share_js( $id ) {
|
4618 |
-
$selector = '#uagb-social-share-' . $id;
|
4619 |
-
?>
|
4620 |
-
jQuery( "<?php echo $selector; ?>" ).find( ".uagb-ss__link" ).click(function(){
|
4621 |
-
var social_url = jQuery( this ).data( "href" );
|
4622 |
-
var target = "";
|
4623 |
-
if( social_url == "mailto:?body=" ){
|
4624 |
-
target = "_self";
|
4625 |
-
}
|
4626 |
-
var request_url = social_url + window.location.href ;
|
4627 |
-
window.open( request_url,target );
|
4628 |
-
});
|
4629 |
-
<?php
|
4630 |
-
}
|
4631 |
-
|
4632 |
-
/**
|
4633 |
-
* Get Table of Contents Js
|
4634 |
-
*
|
4635 |
-
* @since x.x.x
|
4636 |
-
* @param array $attr The block attributes.
|
4637 |
-
* @param string $id The selector ID.
|
4638 |
-
*/
|
4639 |
-
public static function get_table_of_contents_js( $attr, $id ) {
|
4640 |
-
// @codingStandardsIgnoreStart.
|
4641 |
-
|
4642 |
-
$defaults = UAGB_Helper::$block_list['uagb/table-of-contents']['attributes'];
|
4643 |
-
|
4644 |
-
$attr = array_merge( $defaults, (array) $attr );
|
4645 |
-
|
4646 |
-
$selector = '#uagb-toc-'. $id;
|
4647 |
-
?>
|
4648 |
-
jQuery( document ).ready(function() {
|
4649 |
-
UAGBTableOfContents._run( <?php echo json_encode( $attr ); ?>, '<?php echo $selector; ?>' );
|
4650 |
-
})
|
4651 |
-
<?php
|
4652 |
-
|
4653 |
-
// @codingStandardsIgnoreEnd.
|
4654 |
-
}
|
4655 |
-
|
4656 |
-
/**
|
4657 |
-
* Adds Google fonts for Advanced Heading block.
|
4658 |
-
*
|
4659 |
-
* @since 1.9.1
|
4660 |
-
* @param array $attr the blocks attr.
|
4661 |
-
*/
|
4662 |
-
public static function blocks_advanced_heading_gfont( $attr ) {
|
4663 |
-
|
4664 |
-
$head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
|
4665 |
-
$head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
|
4666 |
-
$head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
|
4667 |
-
$head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
|
4668 |
-
|
4669 |
-
$subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
|
4670 |
-
$subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
|
4671 |
-
$subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
|
4672 |
-
$subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
|
4673 |
-
|
4674 |
-
UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
|
4675 |
-
UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
|
4676 |
-
}
|
4677 |
-
|
4678 |
-
|
4679 |
-
/**
|
4680 |
-
* Adds Google fonts for CF7 Styler block.
|
4681 |
-
*
|
4682 |
-
* @since 1.10.0
|
4683 |
-
* @param array $attr the blocks attr.
|
4684 |
-
*/
|
4685 |
-
public static function blocks_cf7_styler_gfont( $attr ) {
|
4686 |
-
|
4687 |
-
$label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
|
4688 |
-
$label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
|
4689 |
-
$label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
|
4690 |
-
$label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
|
4691 |
-
|
4692 |
-
$input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
|
4693 |
-
$input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
|
4694 |
-
$input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
|
4695 |
-
$input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
|
4696 |
-
|
4697 |
-
$radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
|
4698 |
-
$radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
|
4699 |
-
$radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
|
4700 |
-
$radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
|
4701 |
-
|
4702 |
-
$button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
|
4703 |
-
$button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
|
4704 |
-
$button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
|
4705 |
-
$button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
|
4706 |
-
|
4707 |
-
$msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
|
4708 |
-
$msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
|
4709 |
-
$msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
|
4710 |
-
$msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
|
4711 |
-
|
4712 |
-
$validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
|
4713 |
-
$validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
|
4714 |
-
$validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
|
4715 |
-
$validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
|
4716 |
-
|
4717 |
-
UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
|
4718 |
-
UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
|
4719 |
-
|
4720 |
-
UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
|
4721 |
-
UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
|
4722 |
-
|
4723 |
-
UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
|
4724 |
-
UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
|
4725 |
-
}
|
4726 |
-
|
4727 |
-
|
4728 |
-
/**
|
4729 |
-
* Adds Google fonts for Gravity Form Styler block.
|
4730 |
-
*
|
4731 |
-
* @since 1.12.0
|
4732 |
-
* @param array $attr the blocks attr.
|
4733 |
-
*/
|
4734 |
-
public static function blocks_gf_styler_gfont( $attr ) {
|
4735 |
-
|
4736 |
-
$label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
|
4737 |
-
$label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
|
4738 |
-
$label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
|
4739 |
-
$label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
|
4740 |
-
|
4741 |
-
$input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
|
4742 |
-
$input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
|
4743 |
-
$input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
|
4744 |
-
$input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
|
4745 |
-
|
4746 |
-
$radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
|
4747 |
-
$radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
|
4748 |
-
$radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
|
4749 |
-
$radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
|
4750 |
-
|
4751 |
-
$button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
|
4752 |
-
$button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
|
4753 |
-
$button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
|
4754 |
-
$button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
|
4755 |
-
|
4756 |
-
$msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
|
4757 |
-
$msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
|
4758 |
-
$msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
|
4759 |
-
$msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
|
4760 |
-
|
4761 |
-
$validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
|
4762 |
-
$validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
|
4763 |
-
$validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
|
4764 |
-
$validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
|
4765 |
-
|
4766 |
-
UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
|
4767 |
-
UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
|
4768 |
-
|
4769 |
-
UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
|
4770 |
-
UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
|
4771 |
-
|
4772 |
-
UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
|
4773 |
-
UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
|
4774 |
-
}
|
4775 |
-
|
4776 |
-
/**
|
4777 |
-
* Adds Google fonts for Marketing Button block.
|
4778 |
-
*
|
4779 |
-
* @since 1.11.0
|
4780 |
-
* @param array $attr the blocks attr.
|
4781 |
-
*/
|
4782 |
-
public static function blocks_marketing_btn_gfont( $attr ) {
|
4783 |
-
|
4784 |
-
$title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
|
4785 |
-
$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
|
4786 |
-
$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
|
4787 |
-
$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
|
4788 |
-
|
4789 |
-
$prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
|
4790 |
-
$prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
|
4791 |
-
$prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
|
4792 |
-
$prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
|
4793 |
-
|
4794 |
-
UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
|
4795 |
-
UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
|
4796 |
-
}
|
4797 |
-
|
4798 |
-
/**
|
4799 |
-
* Adds Google fonts for Table Of Contents block.
|
4800 |
-
*
|
4801 |
-
* @since x.x.x
|
4802 |
-
* @param array $attr the blocks attr.
|
4803 |
-
*/
|
4804 |
-
public static function blocks_table_of_contents_gfont( $attr ) {
|
4805 |
-
|
4806 |
-
$load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
|
4807 |
-
$font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
|
4808 |
-
$font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
|
4809 |
-
$font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
|
4810 |
-
|
4811 |
-
$heading_load_google_font = isset( $attr['headingLoadGoogleFonts'] ) ? $attr['headingLoadGoogleFonts'] : '';
|
4812 |
-
$heading_font_family = isset( $attr['headingFontFamily'] ) ? $attr['headingFontFamily'] : '';
|
4813 |
-
$heading_font_weight = isset( $attr['headingFontWeight'] ) ? $attr['headingFontWeight'] : '';
|
4814 |
-
$heading_font_subset = isset( $attr['headingFontSubset'] ) ? $attr['headingFontSubset'] : '';
|
4815 |
-
|
4816 |
-
UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
|
4817 |
-
UAGB_Helper::blocks_google_font( $heading_load_google_font, $heading_font_family, $heading_font_weight, $heading_font_subset );
|
4818 |
-
}
|
4819 |
-
|
4820 |
-
/**
|
4821 |
-
* Adds Google fonts for Blockquote.
|
4822 |
-
*
|
4823 |
-
* @since 1.9.1
|
4824 |
-
* @param array $attr the blocks attr.
|
4825 |
-
*/
|
4826 |
-
public static function blocks_blockquote_gfont( $attr ) {
|
4827 |
-
|
4828 |
-
$desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
|
4829 |
-
$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
|
4830 |
-
$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
|
4831 |
-
$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
|
4832 |
-
|
4833 |
-
$author_load_google_font = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
|
4834 |
-
$author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
|
4835 |
-
$author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
|
4836 |
-
$author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
|
4837 |
-
|
4838 |
-
$tweet_btn_load_google_font = isset( $attr['tweetBtnLoadGoogleFonts'] ) ? $attr['tweetBtnLoadGoogleFonts'] : '';
|
4839 |
-
$tweet_btn_font_family = isset( $attr['tweetBtnFontFamily'] ) ? $attr['tweetBtnFontFamily'] : '';
|
4840 |
-
$tweet_btn_font_weight = isset( $attr['tweetBtnFontWeight'] ) ? $attr['tweetBtnFontWeight'] : '';
|
4841 |
-
$tweet_btn_font_subset = isset( $attr['tweetBtnFontSubset'] ) ? $attr['tweetBtnFontSubset'] : '';
|
4842 |
-
|
4843 |
-
UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
|
4844 |
-
UAGB_Helper::blocks_google_font( $author_load_google_font, $author_font_family, $author_font_weight, $author_font_subset );
|
4845 |
-
UAGB_Helper::blocks_google_font( $tweet_btn_load_google_font, $tweet_btn_font_family, $tweet_btn_font_weight, $tweet_btn_font_subset );
|
4846 |
-
}
|
4847 |
-
|
4848 |
-
/**
|
4849 |
-
* Adds Google fonts for Testimonial block.
|
4850 |
-
*
|
4851 |
-
* @since 1.9.1
|
4852 |
-
* @param array $attr the blocks attr.
|
4853 |
-
*/
|
4854 |
-
public static function blocks_testimonial_gfont( $attr ) {
|
4855 |
-
$desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
|
4856 |
-
$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
|
4857 |
-
$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
|
4858 |
-
$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
|
4859 |
-
|
4860 |
-
$name_load_google_fonts = isset( $attr['nameLoadGoogleFonts'] ) ? $attr['nameLoadGoogleFonts'] : '';
|
4861 |
-
$name_font_family = isset( $attr['nameFontFamily'] ) ? $attr['nameFontFamily'] : '';
|
4862 |
-
$name_font_weight = isset( $attr['nameFontWeight'] ) ? $attr['nameFontWeight'] : '';
|
4863 |
-
$name_font_subset = isset( $attr['nameFontSubset'] ) ? $attr['nameFontSubset'] : '';
|
4864 |
-
|
4865 |
-
$company_load_google_fonts = isset( $attr['companyLoadGoogleFonts'] ) ? $attr['companyLoadGoogleFonts'] : '';
|
4866 |
-
$company_font_family = isset( $attr['companyFontFamily'] ) ? $attr['companyFontFamily'] : '';
|
4867 |
-
$company_font_weight = isset( $attr['companyFontWeight'] ) ? $attr['companyFontWeight'] : '';
|
4868 |
-
$company_font_subset = isset( $attr['companyFontSubset'] ) ? $attr['companyFontSubset'] : '';
|
4869 |
-
|
4870 |
-
UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
|
4871 |
-
UAGB_Helper::blocks_google_font( $name_load_google_fonts, $name_font_family, $name_font_family, $name_font_subset );
|
4872 |
-
UAGB_Helper::blocks_google_font( $company_load_google_fonts, $company_font_family, $company_font_family, $company_font_subset );
|
4873 |
-
}
|
4874 |
-
|
4875 |
-
/**
|
4876 |
-
* Adds Google fonts for Advanced Heading block.
|
4877 |
-
*
|
4878 |
-
* @since 1.9.1
|
4879 |
-
* @param array $attr the blocks attr.
|
4880 |
-
*/
|
4881 |
-
public static function blocks_team_gfont( $attr ) {
|
4882 |
-
|
4883 |
-
$title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
|
4884 |
-
$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
|
4885 |
-
$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
|
4886 |
-
$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
|
4887 |
-
|
4888 |
-
$prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
|
4889 |
-
$prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
|
4890 |
-
$prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
|
4891 |
-
$prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
|
4892 |
-
|
4893 |
-
$desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
|
4894 |
-
$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
|
4895 |
-
$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
|
4896 |
-
$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
|
4897 |
-
|
4898 |
-
UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
|
4899 |
-
UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
|
4900 |
-
UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
|
4901 |
-
}
|
4902 |
-
|
4903 |
-
/**
|
4904 |
-
*
|
4905 |
-
* Adds Google fonts for Restaurant Menu block.
|
4906 |
-
*
|
4907 |
-
* @since 1.9.1
|
4908 |
-
* @param array $attr the blocks attr.
|
4909 |
-
*/
|
4910 |
-
public static function blocks_restaurant_menu_gfont( $attr ) {
|
4911 |
-
$title_load_google_fonts = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
|
4912 |
-
$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
|
4913 |
-
$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
|
4914 |
-
$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
|
4915 |
-
|
4916 |
-
$price_load_google_fonts = isset( $attr['priceLoadGoogleFonts'] ) ? $attr['priceLoadGoogleFonts'] : '';
|
4917 |
-
$price_font_family = isset( $attr['priceFontFamily'] ) ? $attr['priceFontFamily'] : '';
|
4918 |
-
$price_font_weight = isset( $attr['priceFontWeight'] ) ? $attr['priceFontWeight'] : '';
|
4919 |
-
$price_font_subset = isset( $attr['priceFontSubset'] ) ? $attr['priceFontSubset'] : '';
|
4920 |
-
|
4921 |
-
$desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
|
4922 |
-
$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
|
4923 |
-
$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
|
4924 |
-
$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
|
4925 |
-
|
4926 |
-
UAGB_Helper::blocks_google_font( $title_load_google_fonts, $title_font_family, $title_font_weight, $title_font_subset );
|
4927 |
-
UAGB_Helper::blocks_google_font( $price_load_google_fonts, $price_font_family, $price_font_weight, $price_font_subset );
|
4928 |
-
UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
|
4929 |
-
}
|
4930 |
-
|
4931 |
-
/**
|
4932 |
-
* Adds Google fonts for Content Timeline block.
|
4933 |
-
*
|
4934 |
-
* @since 1.9.1
|
4935 |
-
* @param array $attr the blocks attr.
|
4936 |
-
*/
|
4937 |
-
public static function blocks_content_timeline_gfont( $attr ) {
|
4938 |
-
$head_load_google_fonts = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
|
4939 |
-
$head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
|
4940 |
-
$head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
|
4941 |
-
$head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
|
4942 |
-
|
4943 |
-
$subheadload_google_fonts = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
|
4944 |
-
$subheadfont_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
|
4945 |
-
$subheadfont_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
|
4946 |
-
$subheadfont_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
|
4947 |
-
|
4948 |
-
$date_load_google_fonts = isset( $attr['dateLoadGoogleFonts'] ) ? $attr['dateLoadGoogleFonts'] : '';
|
4949 |
-
$date_font_family = isset( $attr['dateFontFamily'] ) ? $attr['dateFontFamily'] : '';
|
4950 |
-
$date_font_weight = isset( $attr['dateFontWeight'] ) ? $attr['dateFontWeight'] : '';
|
4951 |
-
$date_font_subset = isset( $attr['dateFontSubset'] ) ? $attr['dateFontSubset'] : '';
|
4952 |
-
|
4953 |
-
UAGB_Helper::blocks_google_font( $head_load_google_fonts, $head_font_family, $head_font_weight, $head_font_subset );
|
4954 |
-
UAGB_Helper::blocks_google_font( $subheadload_google_fonts, $subheadfont_family, $subheadfont_weight, $subheadfont_subset );
|
4955 |
-
UAGB_Helper::blocks_google_font( $date_load_google_fonts, $date_font_family, $date_font_weight, $date_font_subset );
|
4956 |
-
}
|
4957 |
-
|
4958 |
-
/**
|
4959 |
-
* Adds Google fonts for Post Timeline block.
|
4960 |
-
*
|
4961 |
-
* @since 1.9.1
|
4962 |
-
* @param array $attr the blocks attr.
|
4963 |
-
*/
|
4964 |
-
public static function blocks_post_timeline_gfont( $attr ) {
|
4965 |
-
self::blocks_content_timeline_gfont( $attr );
|
4966 |
-
|
4967 |
-
$author_load_google_fonts = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
|
4968 |
-
$author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
|
4969 |
-
$author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
|
4970 |
-
$author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
|
4971 |
-
|
4972 |
-
$cta_load_google_fonts = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
|
4973 |
-
$cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
|
4974 |
-
$cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
|
4975 |
-
$cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
|
4976 |
-
|
4977 |
-
UAGB_Helper::blocks_google_font( $author_load_google_fonts, $author_font_family, $author_font_weight, $author_font_subset );
|
4978 |
-
UAGB_Helper::blocks_google_font( $cta_load_google_fonts, $cta_font_family, $cta_font_weight, $cta_font_subset );
|
4979 |
-
}
|
4980 |
-
|
4981 |
-
/**
|
4982 |
-
* Adds Google fonts for Mulit Button's block.
|
4983 |
-
*
|
4984 |
-
* @since 1.9.1
|
4985 |
-
* @param array $attr the blocks attr.
|
4986 |
-
*/
|
4987 |
-
public static function blocks_buttons_gfont( $attr ) {
|
4988 |
-
|
4989 |
-
$load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
|
4990 |
-
$font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
|
4991 |
-
$font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
|
4992 |
-
$font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
|
4993 |
-
|
4994 |
-
UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
|
4995 |
-
}
|
4996 |
-
|
4997 |
-
/**
|
4998 |
-
* Adds Google fonts for Icon List block
|
4999 |
-
*
|
5000 |
-
* @since 1.9.1
|
5001 |
-
* @param array $attr the blocks attr.
|
5002 |
-
*/
|
5003 |
-
public static function blocks_icon_list_gfont( $attr ) {
|
5004 |
-
|
5005 |
-
$load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
|
5006 |
-
$font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
|
5007 |
-
$font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
|
5008 |
-
$font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
|
5009 |
-
|
5010 |
-
UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
|
5011 |
-
}
|
5012 |
-
|
5013 |
-
/**
|
5014 |
-
* Adds Google fonts for Post block.
|
5015 |
-
*
|
5016 |
-
* @since 1.9.1
|
5017 |
-
* @param array $attr the blocks attr.
|
5018 |
-
*/
|
5019 |
-
public static function blocks_post_gfont( $attr ) {
|
5020 |
-
|
5021 |
-
$title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
|
5022 |
-
$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
|
5023 |
-
$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
|
5024 |
-
$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
|
5025 |
-
|
5026 |
-
$meta_load_google_font = isset( $attr['metaLoadGoogleFonts'] ) ? $attr['metaLoadGoogleFonts'] : '';
|
5027 |
-
$meta_font_family = isset( $attr['metaFontFamily'] ) ? $attr['metaFontFamily'] : '';
|
5028 |
-
$meta_font_weight = isset( $attr['metaFontWeight'] ) ? $attr['metaFontWeight'] : '';
|
5029 |
-
$meta_font_subset = isset( $attr['metaFontSubset'] ) ? $attr['metaFontSubset'] : '';
|
5030 |
-
|
5031 |
-
$excerpt_load_google_font = isset( $attr['excerptLoadGoogleFonts'] ) ? $attr['excerptLoadGoogleFonts'] : '';
|
5032 |
-
$excerpt_font_family = isset( $attr['excerptFontFamily'] ) ? $attr['excerptFontFamily'] : '';
|
5033 |
-
$excerpt_font_weight = isset( $attr['excerptFontWeight'] ) ? $attr['excerptFontWeight'] : '';
|
5034 |
-
$excerpt_font_subset = isset( $attr['excerptFontSubset'] ) ? $attr['excerptFontSubset'] : '';
|
5035 |
-
|
5036 |
-
$cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
|
5037 |
-
$cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
|
5038 |
-
$cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
|
5039 |
-
$cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
|
5040 |
-
|
5041 |
-
UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
|
5042 |
-
|
5043 |
-
UAGB_Helper::blocks_google_font( $meta_load_google_font, $meta_font_family, $meta_font_weight, $meta_font_subset );
|
5044 |
-
|
5045 |
-
UAGB_Helper::blocks_google_font( $excerpt_load_google_font, $excerpt_font_family, $excerpt_font_weight, $excerpt_font_subset );
|
5046 |
-
|
5047 |
-
UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
|
5048 |
-
}
|
5049 |
-
|
5050 |
-
/**
|
5051 |
-
* Adds Google fonts for Advanced Heading block.
|
5052 |
-
*
|
5053 |
-
* @since 1.9.1
|
5054 |
-
* @param array $attr the blocks attr.
|
5055 |
-
*/
|
5056 |
-
public static function blocks_info_box_gfont( $attr ) {
|
5057 |
-
|
5058 |
-
$head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
|
5059 |
-
$head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
|
5060 |
-
$head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
|
5061 |
-
$head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
|
5062 |
-
|
5063 |
-
$prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
|
5064 |
-
$prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
|
5065 |
-
$prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
|
5066 |
-
$prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
|
5067 |
-
|
5068 |
-
$subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
|
5069 |
-
$subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
|
5070 |
-
$subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
|
5071 |
-
$subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
|
5072 |
-
|
5073 |
-
$cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
|
5074 |
-
$cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
|
5075 |
-
$cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
|
5076 |
-
$cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
|
5077 |
-
|
5078 |
-
UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
|
5079 |
-
UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
|
5080 |
-
UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
|
5081 |
-
UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
|
5082 |
-
}
|
5083 |
-
|
5084 |
-
/**
|
5085 |
-
* Adds Google fonts for Call To Action block.
|
5086 |
-
*
|
5087 |
-
* @since 1.9.1
|
5088 |
-
* @param array $attr the blocks attr.
|
5089 |
-
*/
|
5090 |
-
public static function blocks_call_to_action_gfont( $attr ) {
|
5091 |
-
|
5092 |
-
$title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
|
5093 |
-
$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
|
5094 |
-
$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
|
5095 |
-
$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
|
5096 |
-
|
5097 |
-
$desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
|
5098 |
-
$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
|
5099 |
-
$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
|
5100 |
-
$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
|
5101 |
-
|
5102 |
-
$cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
|
5103 |
-
$cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
|
5104 |
-
$cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
|
5105 |
-
$cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
|
5106 |
-
|
5107 |
-
UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
|
5108 |
-
UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
|
5109 |
-
UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
|
5110 |
-
}
|
5111 |
-
}
|
5112 |
-
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UAGB Block Helper.
|
4 |
+
*
|
5 |
+
* @package UAGB
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! class_exists( 'UAGB_Block_Helper' ) ) {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Class UAGB_Block_Helper.
|
12 |
+
*/
|
13 |
+
class UAGB_Block_Helper {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Get Section Block CSS
|
17 |
+
*
|
18 |
+
* @since 0.0.1
|
19 |
+
* @param array $attr The block attributes.
|
20 |
+
* @param string $id The selector ID.
|
21 |
+
* @return array The Widget List.
|
22 |
+
*/
|
23 |
+
public static function get_section_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
24 |
+
|
25 |
+
global $content_width;
|
26 |
+
|
27 |
+
$defaults = UAGB_Helper::$block_list['uagb/section']['attributes'];
|
28 |
+
|
29 |
+
$attr = array_merge( $defaults, $attr );
|
30 |
+
|
31 |
+
$bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
|
32 |
+
|
33 |
+
$style = array(
|
34 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], 'px' ),
|
35 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], 'px' ),
|
36 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], 'px' ),
|
37 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], 'px' ),
|
38 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' )
|
39 |
+
);
|
40 |
+
|
41 |
+
$m_selectors = array();
|
42 |
+
$t_selectors = array();
|
43 |
+
|
44 |
+
if ( 'right' == $attr['align'] ) {
|
45 |
+
$style['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMargin'], 'px' );
|
46 |
+
$style['margin-left'] = 'auto';
|
47 |
+
$style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], 'px' );
|
48 |
+
$style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' );
|
49 |
+
} elseif ( 'left' == $attr['align'] ) {
|
50 |
+
$style['margin-right'] = 'auto';
|
51 |
+
$style['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMargin'], 'px' );
|
52 |
+
$style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], 'px' );
|
53 |
+
$style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' );
|
54 |
+
} elseif ( 'center' == $attr['align'] ) {
|
55 |
+
$style['margin-right'] = 'auto';
|
56 |
+
$style['margin-left'] = 'auto';
|
57 |
+
$style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], 'px' );
|
58 |
+
$style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' );
|
59 |
+
} else {
|
60 |
+
$style['margin-top'] = UAGB_Helper::get_css_value( $attr['topMargin'], 'px' );
|
61 |
+
$style['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' );
|
62 |
+
}
|
63 |
+
|
64 |
+
if ( "none" != $attr['borderStyle'] ) {
|
65 |
+
$style["border-style"] = $attr['borderStyle'];
|
66 |
+
$style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
|
67 |
+
$style["border-color"] = $attr['borderColor'];
|
68 |
+
}
|
69 |
+
|
70 |
+
$position = str_replace( '-', ' ', $attr['backgroundPosition'] );
|
71 |
+
|
72 |
+
$section_width = '100%';
|
73 |
+
|
74 |
+
if ( isset( $attr['contentWidth'] ) ) {
|
75 |
+
|
76 |
+
if ( 'boxed' == $attr['contentWidth'] ) {
|
77 |
+
if ( isset( $attr['width'] ) ) {
|
78 |
+
$section_width = UAGB_Helper::get_css_value( $attr['width'], 'px' );
|
79 |
+
}
|
80 |
+
}
|
81 |
+
}
|
82 |
+
|
83 |
+
if ( 'wide' != $attr['align'] && 'full' != $attr['align'] ) {
|
84 |
+
$style['max-width'] = $section_width;
|
85 |
+
}
|
86 |
+
|
87 |
+
if ( 'image' === $bg_type ) {
|
88 |
+
|
89 |
+
$style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
|
90 |
+
$style['background-position'] = $position;
|
91 |
+
$style['background-attachment'] = $attr['backgroundAttachment'];
|
92 |
+
$style['background-repeat'] = $attr['backgroundRepeat'];
|
93 |
+
$style['background-size'] = $attr['backgroundSize'];
|
94 |
+
|
95 |
+
}
|
96 |
+
|
97 |
+
$inner_width = '100%';
|
98 |
+
|
99 |
+
if ( isset( $attr['contentWidth'] ) ) {
|
100 |
+
if ( 'boxed' != $attr['contentWidth'] ) {
|
101 |
+
if ( isset( $attr['themeWidth'] ) && $attr['themeWidth'] == true ) {
|
102 |
+
$inner_width = $content_width . 'px';
|
103 |
+
} else {
|
104 |
+
if ( isset( $attr['innerWidth'] ) ) {
|
105 |
+
$inner_width = UAGB_Helper::get_css_value( $attr['innerWidth'], 'px' );
|
106 |
+
}
|
107 |
+
}
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
$selectors = array(
|
112 |
+
'.uagb-section__wrap' => $style,
|
113 |
+
' > .uagb-section__video-wrap' => array(
|
114 |
+
'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
|
115 |
+
),
|
116 |
+
' > .uagb-section__inner-wrap' => array(
|
117 |
+
'max-width' => $inner_width,
|
118 |
+
),
|
119 |
+
);
|
120 |
+
|
121 |
+
if ( 'video' == $bg_type ) {
|
122 |
+
$selectors[' > .uagb-section__overlay'] = array(
|
123 |
+
'opacity' => 1,
|
124 |
+
'background-color' => $attr['backgroundVideoColor'],
|
125 |
+
);
|
126 |
+
} else if ( 'image' == $bg_type ) {
|
127 |
+
$selectors[' > .uagb-section__overlay'] = array(
|
128 |
+
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
|
129 |
+
'background-color' => $attr['backgroundImageColor'],
|
130 |
+
);
|
131 |
+
} else if ( 'color' == $bg_type ) {
|
132 |
+
$selectors[' > .uagb-section__overlay'] = array(
|
133 |
+
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
|
134 |
+
'background-color' => $attr['backgroundColor'],
|
135 |
+
);
|
136 |
+
} else if ( 'gradient' === $bg_type ) {
|
137 |
+
$selectors[' > .uagb-section__overlay']['background-color'] = 'transparent';
|
138 |
+
$selectors[' > .uagb-section__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
|
139 |
+
|
140 |
+
if ( 'linear' === $attr['gradientType'] ) {
|
141 |
+
|
142 |
+
$selectors[' > .uagb-section__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
143 |
+
} else {
|
144 |
+
|
145 |
+
$selectors[' > .uagb-section__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
146 |
+
}
|
147 |
+
}
|
148 |
+
|
149 |
+
$selectors[' > .uagb-section__overlay']["border-radius"] = UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' );
|
150 |
+
|
151 |
+
$m_selectors = array(
|
152 |
+
'.uagb-section__wrap' => array(
|
153 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], 'px' ),
|
154 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], 'px' ),
|
155 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], 'px' ),
|
156 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], 'px' ),
|
157 |
+
)
|
158 |
+
);
|
159 |
+
|
160 |
+
$t_selectors = array(
|
161 |
+
'.uagb-section__wrap' => array(
|
162 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], 'px' ),
|
163 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], 'px' ),
|
164 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], 'px' ),
|
165 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], 'px' ),
|
166 |
+
)
|
167 |
+
);
|
168 |
+
|
169 |
+
if ( 'right' == $attr['align'] ) {
|
170 |
+
$t_selectors['.uagb-section__wrap']['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMarginTablet'], 'px' );
|
171 |
+
$t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], 'px' );
|
172 |
+
$t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], 'px' );
|
173 |
+
|
174 |
+
$m_selectors['.uagb-section__wrap']['margin-right'] = UAGB_Helper::get_css_value( $attr['rightMarginMobile'], 'px' );
|
175 |
+
$m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], 'px' );
|
176 |
+
$m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], 'px' );
|
177 |
+
} elseif ( 'left' == $attr['align'] ) {
|
178 |
+
$t_selectors['.uagb-section__wrap']['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMarginTablet'], 'px' );
|
179 |
+
$t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], 'px' );
|
180 |
+
$t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], 'px' );
|
181 |
+
|
182 |
+
$m_selectors['.uagb-section__wrap']['margin-left'] = UAGB_Helper::get_css_value( $attr['leftMarginMobile'], 'px' );
|
183 |
+
$m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], 'px' );
|
184 |
+
$m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], 'px' );
|
185 |
+
} else {
|
186 |
+
$t_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginTablet'], 'px' );
|
187 |
+
$t_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], 'px' );
|
188 |
+
|
189 |
+
$m_selectors['.uagb-section__wrap']['margin-top'] = UAGB_Helper::get_css_value( $attr['topMarginMobile'], 'px' );
|
190 |
+
$m_selectors['.uagb-section__wrap']['margin-bottom'] = UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], 'px' );
|
191 |
+
}
|
192 |
+
|
193 |
+
// @codingStandardsIgnoreEnd
|
194 |
+
|
195 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-section-' . $id );
|
196 |
+
|
197 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-section-' . $id );
|
198 |
+
|
199 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-section-' . $id );
|
200 |
+
|
201 |
+
$generated_css = array(
|
202 |
+
'desktop' => $desktop,
|
203 |
+
'tablet' => $tablet,
|
204 |
+
'mobile' => $mobile,
|
205 |
+
);
|
206 |
+
|
207 |
+
return $generated_css;
|
208 |
+
}
|
209 |
+
|
210 |
+
/**
|
211 |
+
* Get Columns Block CSS
|
212 |
+
*
|
213 |
+
* @since 1.8.0
|
214 |
+
* @param array $attr The block attributes.
|
215 |
+
* @param string $id The selector ID.
|
216 |
+
* @return array The Widget List.
|
217 |
+
*/
|
218 |
+
public static function get_columns_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
219 |
+
|
220 |
+
global $content_width;
|
221 |
+
|
222 |
+
$defaults = UAGB_Helper::$block_list['uagb/columns']['attributes'];
|
223 |
+
|
224 |
+
$attr = array_merge( $defaults, $attr );
|
225 |
+
|
226 |
+
$bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
|
227 |
+
|
228 |
+
$m_selectors = array();
|
229 |
+
$t_selectors = array();
|
230 |
+
|
231 |
+
$style = array(
|
232 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], 'px' ),
|
233 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], 'px' ),
|
234 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], 'px' ),
|
235 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], 'px' ),
|
236 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['topMargin'], 'px' ),
|
237 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' ),
|
238 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
239 |
+
);
|
240 |
+
|
241 |
+
if ( "none" != $attr['borderStyle'] ) {
|
242 |
+
$style["border-style"] = $attr['borderStyle'];
|
243 |
+
$style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
|
244 |
+
$style["border-color"] = $attr['borderColor'];
|
245 |
+
}
|
246 |
+
|
247 |
+
$position = str_replace( '-', ' ', $attr['backgroundPosition'] );
|
248 |
+
|
249 |
+
if ( 'image' === $bg_type ) {
|
250 |
+
|
251 |
+
$style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
|
252 |
+
$style['background-position'] = $position;
|
253 |
+
$style['background-attachment'] = $attr['backgroundAttachment'];
|
254 |
+
$style['background-repeat'] = $attr['backgroundRepeat'];
|
255 |
+
$style['background-size'] = $attr['backgroundSize'];
|
256 |
+
|
257 |
+
}
|
258 |
+
|
259 |
+
$inner_width = '100%';
|
260 |
+
|
261 |
+
if ( isset( $attr['contentWidth'] ) ) {
|
262 |
+
if ( 'theme' == $attr['contentWidth'] ) {
|
263 |
+
$inner_width = UAGB_Helper::get_css_value( $content_width, 'px' );
|
264 |
+
} else if ( 'custom' == $attr['contentWidth'] ) {
|
265 |
+
$inner_width = UAGB_Helper::get_css_value( $attr['width'], 'px' );
|
266 |
+
}
|
267 |
+
}
|
268 |
+
|
269 |
+
$selectors = array(
|
270 |
+
'.uagb-columns__wrap' => $style,
|
271 |
+
' .uagb-columns__video-wrap' => array(
|
272 |
+
'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
|
273 |
+
),
|
274 |
+
' > .uagb-columns__inner-wrap' => array(
|
275 |
+
'max-width' => $inner_width,
|
276 |
+
),
|
277 |
+
' .uagb-column__inner-wrap' => array(
|
278 |
+
'padding' => UAGB_Helper::get_css_value( $attr['columnGap'], 'px' )
|
279 |
+
),
|
280 |
+
' .uagb-columns__shape-top svg' => array(
|
281 |
+
'width' => "calc( " . $attr['topWidth'] . "% + 1.3px )",
|
282 |
+
'height' => UAGB_Helper::get_css_value( $attr['topHeight'], 'px' )
|
283 |
+
),
|
284 |
+
' .uagb-columns__shape-top .uagb-columns__shape-fill' => array(
|
285 |
+
'fill' => $attr['topColor'],
|
286 |
+
'opacity' => ( isset( $attr['topDividerOpacity'] ) && '' != $attr['topDividerOpacity'] ) ? ( ( $attr['topDividerOpacity'] ) / 100 ) : ""
|
287 |
+
),
|
288 |
+
' .uagb-columns__shape-bottom svg' => array(
|
289 |
+
'width' => "calc( " . $attr['bottomWidth'] . "% + 1.3px )",
|
290 |
+
'height' => UAGB_Helper::get_css_value( $attr['bottomHeight'], 'px' )
|
291 |
+
),
|
292 |
+
' .uagb-columns__shape-bottom .uagb-columns__shape-fill' => array(
|
293 |
+
'fill' => $attr['bottomColor'],
|
294 |
+
'opacity' => ( isset( $attr['bottomDividerOpacity'] ) && '' != $attr['bottomDividerOpacity'] ) ? ( ( $attr['bottomDividerOpacity'] ) / 100 ) : ""
|
295 |
+
),
|
296 |
+
);
|
297 |
+
|
298 |
+
if ( 'video' == $bg_type ) {
|
299 |
+
$selectors[' > .uagb-columns__overlay'] = array(
|
300 |
+
'opacity' => 1,
|
301 |
+
'background-color' => $attr['backgroundVideoColor'],
|
302 |
+
);
|
303 |
+
} else if ( 'image' == $bg_type ) {
|
304 |
+
$selectors[' > .uagb-columns__overlay'] = array(
|
305 |
+
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
|
306 |
+
'background-color' => $attr['backgroundImageColor'],
|
307 |
+
);
|
308 |
+
} else if ( 'color' == $bg_type ) {
|
309 |
+
$selectors[' > .uagb-columns__overlay'] = array(
|
310 |
+
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
|
311 |
+
'background-color' => $attr['backgroundColor'],
|
312 |
+
);
|
313 |
+
} elseif ( 'gradient' === $bg_type ) {
|
314 |
+
$selectors[' > .uagb-columns__overlay']['background-color'] = 'transparent';
|
315 |
+
$selectors[' > .uagb-columns__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
|
316 |
+
|
317 |
+
if ( 'linear' === $attr['gradientType'] ) {
|
318 |
+
|
319 |
+
$selectors[' > .uagb-columns__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
320 |
+
} else {
|
321 |
+
|
322 |
+
$selectors[' > .uagb-columns__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
323 |
+
}
|
324 |
+
}
|
325 |
+
|
326 |
+
$selectors[' > .uagb-columns__overlay']["border-radius"] = UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' );
|
327 |
+
|
328 |
+
$m_selectors = array(
|
329 |
+
'.uagb-columns__wrap' => array(
|
330 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], 'px' ),
|
331 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], 'px' ),
|
332 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], 'px' ),
|
333 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], 'px' ),
|
334 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginMobile'], 'px' ),
|
335 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], 'px' ),
|
336 |
+
),
|
337 |
+
' .uagb-columns__shape-bottom svg' => array(
|
338 |
+
'height' => UAGB_Helper::get_css_value( $attr['bottomHeightMobile'], 'px' )
|
339 |
+
),
|
340 |
+
' .uagb-columns__shape-top svg' => array(
|
341 |
+
'height' => UAGB_Helper::get_css_value( $attr['topHeightMobile'], 'px' )
|
342 |
+
),
|
343 |
+
);
|
344 |
+
|
345 |
+
$t_selectors = array(
|
346 |
+
'.uagb-columns__wrap' => array(
|
347 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], 'px' ),
|
348 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], 'px' ),
|
349 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], 'px' ),
|
350 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], 'px' ),
|
351 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginTablet'], 'px' ),
|
352 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], 'px' ),
|
353 |
+
),
|
354 |
+
' .uagb-columns__shape-bottom svg' => array(
|
355 |
+
'height' => UAGB_Helper::get_css_value( $attr['bottomHeightTablet'], 'px' )
|
356 |
+
),
|
357 |
+
' .uagb-columns__shape-top svg' => array(
|
358 |
+
'height' => UAGB_Helper::get_css_value( $attr['topHeightTablet'], 'px' )
|
359 |
+
),
|
360 |
+
);
|
361 |
+
|
362 |
+
// @codingStandardsIgnoreEnd
|
363 |
+
|
364 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-columns-' . $id );
|
365 |
+
|
366 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-columns-' . $id );
|
367 |
+
|
368 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-columns-' . $id );
|
369 |
+
|
370 |
+
$generated_css = array(
|
371 |
+
'desktop' => $desktop,
|
372 |
+
'tablet' => $tablet,
|
373 |
+
'mobile' => $mobile,
|
374 |
+
);
|
375 |
+
|
376 |
+
return $generated_css;
|
377 |
+
}
|
378 |
+
|
379 |
+
/**
|
380 |
+
* Get Single Column Block CSS
|
381 |
+
*
|
382 |
+
* @since 1.8.0
|
383 |
+
* @param array $attr The block attributes.
|
384 |
+
* @param string $id The selector ID.
|
385 |
+
* @return array The Widget List.
|
386 |
+
*/
|
387 |
+
public static function get_column_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
388 |
+
|
389 |
+
global $content_width;
|
390 |
+
|
391 |
+
$defaults = UAGB_Helper::$block_list['uagb/column']['attributes'];
|
392 |
+
|
393 |
+
$attr = array_merge( $defaults, $attr );
|
394 |
+
|
395 |
+
$bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
|
396 |
+
|
397 |
+
$style = array(
|
398 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['topPadding'], 'px' ),
|
399 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPadding'], 'px' ),
|
400 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPadding'], 'px' ),
|
401 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPadding'], 'px' ),
|
402 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['topMargin'], 'px' ),
|
403 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMargin'], 'px' ),
|
404 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['leftMargin'], 'px' ),
|
405 |
+
'margin-right' => UAGB_Helper::get_css_value( $attr['rightMargin'], 'px' ),
|
406 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
407 |
+
);
|
408 |
+
|
409 |
+
$m_selectors = array();
|
410 |
+
$t_selectors = array();
|
411 |
+
|
412 |
+
if ( "none" != $attr['borderStyle'] ) {
|
413 |
+
$style["border-style"] = $attr['borderStyle'];
|
414 |
+
$style["border-width"] = UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' );
|
415 |
+
$style["border-color"] = $attr['borderColor'];
|
416 |
+
}
|
417 |
+
|
418 |
+
$position = str_replace( '-', ' ', $attr['backgroundPosition'] );
|
419 |
+
|
420 |
+
if ( 'image' === $bg_type ) {
|
421 |
+
|
422 |
+
$style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
|
423 |
+
$style['background-position'] = $position;
|
424 |
+
$style['background-attachment'] = $attr['backgroundAttachment'];
|
425 |
+
$style['background-repeat'] = $attr['backgroundRepeat'];
|
426 |
+
$style['background-size'] = $attr['backgroundSize'];
|
427 |
+
|
428 |
+
}
|
429 |
+
|
430 |
+
$selectors = array(
|
431 |
+
'.uagb-column__wrap' => $style
|
432 |
+
);
|
433 |
+
|
434 |
+
if ( 'image' == $bg_type ) {
|
435 |
+
$selectors[' > .uagb-column__overlay'] = array(
|
436 |
+
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
|
437 |
+
'background-color' => $attr['backgroundImageColor'],
|
438 |
+
);
|
439 |
+
} else if ( 'color' == $bg_type ) {
|
440 |
+
$selectors[' > .uagb-column__overlay'] = array(
|
441 |
+
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
|
442 |
+
'background-color' => $attr['backgroundColor'],
|
443 |
+
);
|
444 |
+
} elseif ( 'gradient' === $bg_type ) {
|
445 |
+
$selectors[' > .uagb-column__overlay']['background-color'] = 'transparent';
|
446 |
+
$selectors[' > .uagb-column__overlay']['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
|
447 |
+
|
448 |
+
if ( 'linear' === $attr['gradientType'] ) {
|
449 |
+
|
450 |
+
$selectors[' > .uagb-column__overlay']['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
451 |
+
} else {
|
452 |
+
|
453 |
+
$selectors[' > .uagb-column__overlay']['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
454 |
+
}
|
455 |
+
}
|
456 |
+
|
457 |
+
if ( '' != $attr['colWidth'] && 0 != $attr['colWidth'] ) {
|
458 |
+
|
459 |
+
$selectors[''] = array(
|
460 |
+
"width" => UAGB_Helper::get_css_value( $attr['colWidth'], "%" )
|
461 |
+
);
|
462 |
+
}
|
463 |
+
|
464 |
+
$m_selectors = array(
|
465 |
+
'.uagb-column__wrap' => array(
|
466 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingMobile'], 'px' ),
|
467 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingMobile'], 'px' ),
|
468 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingMobile'], 'px' ),
|
469 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingMobile'], 'px' ),
|
470 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginMobile'], 'px' ),
|
471 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginMobile'], 'px' ),
|
472 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['leftMarginMobile'], 'px' ),
|
473 |
+
'margin-right' => UAGB_Helper::get_css_value( $attr['rightMarginMobile'], 'px' ),
|
474 |
+
)
|
475 |
+
);
|
476 |
+
|
477 |
+
$t_selectors = array(
|
478 |
+
'.uagb-column__wrap' => array(
|
479 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['topPaddingTablet'], 'px' ),
|
480 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['bottomPaddingTablet'], 'px' ),
|
481 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['leftPaddingTablet'], 'px' ),
|
482 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['rightPaddingTablet'], 'px' ),
|
483 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['topMarginTablet'], 'px' ),
|
484 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['bottomMarginTablet'], 'px' ),
|
485 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['leftMarginTablet'], 'px' ),
|
486 |
+
'margin-right' => UAGB_Helper::get_css_value( $attr['rightMarginTablet'], 'px' ),
|
487 |
+
)
|
488 |
+
);
|
489 |
+
|
490 |
+
if ( '' != $attr['colWidthTablet'] && 0 != $attr['colWidthTablet'] ) {
|
491 |
+
|
492 |
+
$t_selectors[''] = array(
|
493 |
+
"width" => UAGB_Helper::get_css_value( $attr['colWidthTablet'], '%' )
|
494 |
+
);
|
495 |
+
}
|
496 |
+
|
497 |
+
if ( '' != $attr['colWidthMobile'] && 0 != $attr['colWidthMobile'] ) {
|
498 |
+
|
499 |
+
$m_selectors[''] = array(
|
500 |
+
"width" => UAGB_Helper::get_css_value( $attr['colWidthMobile'], '%' )
|
501 |
+
);
|
502 |
+
}
|
503 |
+
|
504 |
+
// @codingStandardsIgnoreEnd
|
505 |
+
|
506 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-column-' . $id );
|
507 |
+
|
508 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-column-' . $id );
|
509 |
+
|
510 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-column-' . $id );
|
511 |
+
|
512 |
+
$generated_css = array(
|
513 |
+
'desktop' => $desktop,
|
514 |
+
'tablet' => $tablet,
|
515 |
+
'mobile' => $mobile,
|
516 |
+
);
|
517 |
+
|
518 |
+
return $generated_css;
|
519 |
+
}
|
520 |
+
|
521 |
+
/**
|
522 |
+
* Get Advanced Heading Block CSS
|
523 |
+
*
|
524 |
+
* @since 0.0.1
|
525 |
+
* @param array $attr The block attributes.
|
526 |
+
* @param string $id The selector ID.
|
527 |
+
* @return array The Widget List.
|
528 |
+
*/
|
529 |
+
public static function get_adv_heading_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
530 |
+
|
531 |
+
$defaults = UAGB_Helper::$block_list['uagb/advanced-heading']['attributes'];
|
532 |
+
|
533 |
+
$attr = array_merge( $defaults, (array) $attr );
|
534 |
+
|
535 |
+
$m_selectors = array();
|
536 |
+
$t_selectors = array();
|
537 |
+
|
538 |
+
$selectors = array(
|
539 |
+
' .uagb-heading-text' => array(
|
540 |
+
'text-align' => $attr['headingAlign'],
|
541 |
+
'font-family' => $attr['headFontFamily'],
|
542 |
+
'font-weight' => $attr['headFontWeight'],
|
543 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
|
544 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
|
545 |
+
'color' => $attr['headingColor'],
|
546 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['headSpace'], "px" ),
|
547 |
+
),
|
548 |
+
' .uagb-separator-wrap' => array(
|
549 |
+
'text-align' => $attr['headingAlign'],
|
550 |
+
),
|
551 |
+
' .uagb-desc-text' => array(
|
552 |
+
'text-align' => $attr['headingAlign'],
|
553 |
+
'font-family' => $attr['subHeadFontFamily'],
|
554 |
+
'font-weight' => $attr['subHeadFontWeight'],
|
555 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ),
|
556 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
|
557 |
+
'color' => $attr['subHeadingColor'],
|
558 |
+
)
|
559 |
+
|
560 |
+
);
|
561 |
+
|
562 |
+
$m_selectors = array(
|
563 |
+
' .uagb-heading-text' => array(
|
564 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
|
565 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
|
566 |
+
),
|
567 |
+
' .uagb-desc-text' => array(
|
568 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
|
569 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
|
570 |
+
)
|
571 |
+
|
572 |
+
);
|
573 |
+
|
574 |
+
$t_selectors = array(
|
575 |
+
' .uagb-heading-text' => array(
|
576 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
|
577 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
|
578 |
+
|
579 |
+
),
|
580 |
+
' .uagb-desc-text' => array(
|
581 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
|
582 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
|
583 |
+
)
|
584 |
+
|
585 |
+
);
|
586 |
+
|
587 |
+
$seperatorStyle = isset( $attr['seperatorStyle'] ) ? $attr['seperatorStyle'] : '';
|
588 |
+
|
589 |
+
if( 'none' !== $seperatorStyle ){
|
590 |
+
$selectors[' .uagb-separator'] = array (
|
591 |
+
'border-top-style' => $attr['seperatorStyle'] ,
|
592 |
+
'border-top-width' => UAGB_Helper::get_css_value( $attr['separatorHeight'], "px" ),
|
593 |
+
'width' => UAGB_Helper::get_css_value( $attr['separatorWidth'], $attr['separatorWidthType'] ),
|
594 |
+
'border-color' => $attr['separatorColor'],
|
595 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['separatorSpace'], "px" ),
|
596 |
+
);
|
597 |
+
|
598 |
+
}
|
599 |
+
// @codingStandardsIgnoreEnd
|
600 |
+
|
601 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-adv-heading-' . $id );
|
602 |
+
|
603 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-adv-heading-' . $id );
|
604 |
+
|
605 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-adv-heading-' . $id );
|
606 |
+
|
607 |
+
$generated_css = array(
|
608 |
+
'desktop' => $desktop,
|
609 |
+
'tablet' => $tablet,
|
610 |
+
'mobile' => $mobile,
|
611 |
+
);
|
612 |
+
|
613 |
+
return $generated_css;
|
614 |
+
}
|
615 |
+
|
616 |
+
/**
|
617 |
+
* Get Multi Buttons Block CSS
|
618 |
+
*
|
619 |
+
* @since 0.0.1
|
620 |
+
* @param array $attr The block attributes.
|
621 |
+
* @param string $id The selector ID.
|
622 |
+
* @return array The Widget List.
|
623 |
+
*/
|
624 |
+
public static function get_buttons_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
625 |
+
|
626 |
+
$defaults = UAGB_Helper::$block_list['uagb/buttons']['attributes'];
|
627 |
+
|
628 |
+
$attr = array_merge( $defaults, (array) $attr );
|
629 |
+
|
630 |
+
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
631 |
+
|
632 |
+
$m_selectors = array();
|
633 |
+
$t_selectors = array();
|
634 |
+
|
635 |
+
$selectors = array(
|
636 |
+
' .uagb-button__wrapper' => array(
|
637 |
+
'margin-left' => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
|
638 |
+
'margin-right' => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
|
639 |
+
),
|
640 |
+
' .uagb-button__wrapper:first-child' => array (
|
641 |
+
'margin-left' => 0
|
642 |
+
),
|
643 |
+
' .uagb-button__wrapper:last-child' => array (
|
644 |
+
'margin-right' => 0
|
645 |
+
),
|
646 |
+
' .uagb-buttons__wrap' => array (
|
647 |
+
'justify-content' => $alignment,
|
648 |
+
'-webkit-box-pack'=> $alignment,
|
649 |
+
'-ms-flex-pack' => $alignment,
|
650 |
+
'justify-content' => $alignment,
|
651 |
+
'-webkit-box-align' => $alignment,
|
652 |
+
'-ms-flex-align' => $alignment,
|
653 |
+
'align-items' => $alignment,
|
654 |
+
)
|
655 |
+
);
|
656 |
+
|
657 |
+
foreach ( $attr['buttons'] as $key => $button ) {
|
658 |
+
|
659 |
+
$button['size'] = ( isset( $button['size'] ) ) ? $button['size'] : '';
|
660 |
+
$button['borderWidth'] = ( isset( $button['borderWidth'] ) ) ? $button['borderWidth'] : '';
|
661 |
+
$button['borderStyle'] = ( isset( $button['borderStyle'] ) ) ? $button['borderStyle'] : '';
|
662 |
+
$button['borderColor'] = ( isset( $button['borderColor'] ) ) ? $button['borderColor'] : '';
|
663 |
+
$button['borderRadius'] = ( isset( $button['borderRadius'] ) ) ? $button['borderRadius'] : '';
|
664 |
+
$button['background'] = ( isset( $button['background'] ) ) ? $button['background'] : '';
|
665 |
+
$button['hBackground'] = ( isset( $button['hBackground'] ) ) ? $button['hBackground'] : '';
|
666 |
+
$button['borderHColor'] = ( isset( $button['borderHColor'] ) ) ? $button['borderHColor'] : '';
|
667 |
+
$button['vPadding'] = ( isset( $button['vPadding'] ) ) ? $button['vPadding'] : '';
|
668 |
+
$button['hPadding'] = ( isset( $button['hPadding'] ) ) ? $button['hPadding'] : '';
|
669 |
+
$button['color'] = ( isset( $button['color'] ) ) ? $button['color'] : '';
|
670 |
+
$button['hColor'] = ( isset( $button['hColor'] ) ) ? $button['hColor'] : '';
|
671 |
+
$button['sizeType'] = ( isset( $button['sizeType'] ) ) ? $button['sizeType'] : 'px';
|
672 |
+
$button['sizeMobile'] = ( isset( $button['sizeMobile'] ) ) ? $button['sizeMobile'] : '';
|
673 |
+
$button['sizeTablet'] = ( isset( $button['sizeTablet'] ) ) ? $button['sizeTablet'] : '';
|
674 |
+
$button['lineHeight'] = ( isset( $button['lineHeight'] ) ) ? $button['lineHeight'] : '';
|
675 |
+
$button['lineHeightType'] = ( isset( $button['lineHeightType'] ) ) ? $button['lineHeightType'] : '';
|
676 |
+
$button['lineHeightMobile'] = ( isset( $button['lineHeightMobile'] ) ) ? $button['lineHeightMobile'] : '';
|
677 |
+
$button['lineHeightTablet'] = ( isset( $button['lineHeightTablet'] ) ) ? $button['lineHeightTablet'] : '';
|
678 |
+
|
679 |
+
|
680 |
+
if ( $attr['btn_count'] <= $key ) {
|
681 |
+
break;
|
682 |
+
}
|
683 |
+
|
684 |
+
$selectors[' .uagb-buttons-repeater-' . $key] = array (
|
685 |
+
'font-size' => $button['size'] . $button['sizeType'],
|
686 |
+
'line-height' => $button['lineHeight'] . $button['lineHeightType'],
|
687 |
+
'font-family' => $attr['fontFamily'],
|
688 |
+
'font-weight' => $attr['fontWeight'],
|
689 |
+
'border-width' => UAGB_Helper::get_css_value( $button['borderWidth'], 'px' ),
|
690 |
+
'border-color' => $button['borderColor'],
|
691 |
+
'border-style' => $button['borderStyle'],
|
692 |
+
'border-radius' => UAGB_Helper::get_css_value( $button['borderRadius'], 'px' ),
|
693 |
+
'background' => $button['background']
|
694 |
+
);
|
695 |
+
|
696 |
+
$selectors[' .uagb-buttons-repeater-' . $key . ':hover'] = array (
|
697 |
+
'background' => $button['hBackground'],
|
698 |
+
'border-width' => UAGB_Helper::get_css_value( $button['borderWidth'], 'px' ),
|
699 |
+
'border-color' => $button['borderHColor'],
|
700 |
+
'border-style' => $button['borderStyle'],
|
701 |
+
);
|
702 |
+
|
703 |
+
$selectors[' .uagb-buttons-repeater-' . $key . ' a.uagb-button__link'] = array (
|
704 |
+
'padding' => $button['vPadding'] . 'px ' . $button['hPadding'] . 'px',
|
705 |
+
'color' => $button['color']
|
706 |
+
);
|
707 |
+
|
708 |
+
$selectors[' .uagb-buttons-repeater-' . $key . ':hover a.uagb-button__link'] = array (
|
709 |
+
'color' => $button['hColor']
|
710 |
+
);
|
711 |
+
|
712 |
+
$m_selectors[' .uagb-buttons-repeater-' . $key] = array (
|
713 |
+
'font-size' => UAGB_Helper::get_css_value( $button['sizeMobile'], $button['sizeType'] ),
|
714 |
+
'line-height' => UAGB_Helper::get_css_value( $button['lineHeightMobile'], $button['lineHeightType'] ),
|
715 |
+
);
|
716 |
+
|
717 |
+
$t_selectors[' .uagb-buttons-repeater-' . $key] = array (
|
718 |
+
'font-size' => UAGB_Helper::get_css_value( $button['sizeTablet'], $button['sizeType'] ),
|
719 |
+
'line-height' => UAGB_Helper::get_css_value( $button['lineHeightTablet'], $button['lineHeightType'] ),
|
720 |
+
);
|
721 |
+
}
|
722 |
+
|
723 |
+
if ( "desktop" == $attr['stack'] ) {
|
724 |
+
|
725 |
+
$selectors[" .uagb-button__wrapper"] = array (
|
726 |
+
'margin-left' => 0,
|
727 |
+
'margin-right' => 0,
|
728 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
729 |
+
);
|
730 |
+
|
731 |
+
$selectors[" .uagb-buttons__wrap"] = array (
|
732 |
+
"flex-direction" => "column"
|
733 |
+
);
|
734 |
+
|
735 |
+
$selectors[" .uagb-button__wrapper:last-child"] = array (
|
736 |
+
"margin-bottom" => 0
|
737 |
+
);
|
738 |
+
|
739 |
+
} else if ( "tablet" == $attr['stack'] ) {
|
740 |
+
|
741 |
+
$t_selectors[" .uagb-button__wrapper"] = array (
|
742 |
+
'margin-left' => 0,
|
743 |
+
'margin-right' => 0,
|
744 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
745 |
+
);
|
746 |
+
|
747 |
+
$t_selectors[" .uagb-buttons__wrap"] = array (
|
748 |
+
"flex-direction" => "column"
|
749 |
+
);
|
750 |
+
|
751 |
+
$t_selectors[" .uagb-button__wrapper:last-child"] = array (
|
752 |
+
"margin-bottom" => 0
|
753 |
+
);
|
754 |
+
|
755 |
+
} else if ( "mobile" == $attr['stack'] ) {
|
756 |
+
|
757 |
+
$m_selectors[" .uagb-button__wrapper"] = array (
|
758 |
+
'margin-left' => 0,
|
759 |
+
'margin-right' => 0,
|
760 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
761 |
+
);
|
762 |
+
|
763 |
+
$m_selectors[" .uagb-buttons__wrap"] = array (
|
764 |
+
"flex-direction" => "column"
|
765 |
+
);
|
766 |
+
|
767 |
+
$m_selectors[" .uagb-button__wrapper:last-child"] = array (
|
768 |
+
"margin-bottom" => 0
|
769 |
+
);
|
770 |
+
}
|
771 |
+
|
772 |
+
// @codingStandardsIgnoreEnd
|
773 |
+
|
774 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-buttons-' . $id );
|
775 |
+
|
776 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-buttons-' . $id );
|
777 |
+
|
778 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-buttons-' . $id );
|
779 |
+
|
780 |
+
$generated_css = array(
|
781 |
+
'desktop' => $desktop,
|
782 |
+
'tablet' => $tablet,
|
783 |
+
'mobile' => $mobile,
|
784 |
+
);
|
785 |
+
|
786 |
+
return $generated_css;
|
787 |
+
}
|
788 |
+
|
789 |
+
/**
|
790 |
+
* Get Info Box CSS
|
791 |
+
*
|
792 |
+
* @since 0.0.1
|
793 |
+
* @param array $attr The block attributes.
|
794 |
+
* @param string $id The selector ID.
|
795 |
+
* @return array The Widget List.
|
796 |
+
*/
|
797 |
+
public static function get_info_box_css( $attr, $id ) { // @codingStandardsIgnoreStart.
|
798 |
+
$defaults = UAGB_Helper::$block_list['uagb/info-box']['attributes'];
|
799 |
+
|
800 |
+
$attr = array_merge( $defaults, (array) $attr );
|
801 |
+
|
802 |
+
$m_selectors = array();
|
803 |
+
$t_selectors = array();
|
804 |
+
|
805 |
+
$selectors = array(
|
806 |
+
' .uagb-ifb-icon' => array(
|
807 |
+
'height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
808 |
+
'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
809 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
810 |
+
),
|
811 |
+
' .uagb-ifb-icon > span' => array(
|
812 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
813 |
+
'height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
814 |
+
'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
815 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
816 |
+
'color' => $attr['iconColor'],
|
817 |
+
),
|
818 |
+
' .uagb-ifb-icon svg' => array(
|
819 |
+
'fill' => $attr['iconColor'],
|
820 |
+
),
|
821 |
+
' .uagb-ifb-icon:hover > span' => array(
|
822 |
+
'color' => $attr['iconHover'] ,
|
823 |
+
),
|
824 |
+
' .uagb-ifb-icon:hover svg' => array(
|
825 |
+
'fill' => $attr['iconHover'] ,
|
826 |
+
),
|
827 |
+
|
828 |
+
' .uagb-infbox__link-to-all:hover ~ .uagb-infobox__content-wrap .uagb-ifb-icon svg' => array(
|
829 |
+
'fill' => $attr['iconHover'] ,
|
830 |
+
),
|
831 |
+
|
832 |
+
' .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap' => array(
|
833 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['iconLeftMargin'], 'px' ),
|
834 |
+
'margin-right' => UAGB_Helper::get_css_value( $attr['iconRightMargin'], 'px' ),
|
835 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['iconTopMargin'], 'px' ),
|
836 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['iconBottomMargin'], 'px' ),
|
837 |
+
),
|
838 |
+
// Image.
|
839 |
+
' .uagb-ifb-image-content > img' => array(
|
840 |
+
'width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
841 |
+
'max-width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
842 |
+
),
|
843 |
+
' .uagb-infobox .uagb-ifb-image-content img' => array(
|
844 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['iconimgBorderRadius'], 'px' ),
|
845 |
+
),
|
846 |
+
// CTA style .
|
847 |
+
' .uagb-infobox-cta-link' => array(
|
848 |
+
'font-size' => $attr['ctaFontSize'].$attr['ctaFontSizeType'],
|
849 |
+
'font-family' => $attr['ctaFontFamily'],
|
850 |
+
'font-weight' => $attr['ctaFontWeight'],
|
851 |
+
'color' => $attr['ctaLinkColor'],
|
852 |
+
),
|
853 |
+
' .uagb-infobox-cta-link:hover' => array(
|
854 |
+
'color' => $attr['ctaLinkHoverColor'],
|
855 |
+
),
|
856 |
+
' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
|
857 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
858 |
+
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
859 |
+
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
860 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
861 |
+
),
|
862 |
+
' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
|
863 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
864 |
+
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
865 |
+
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
866 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
867 |
+
),
|
868 |
+
' .uagb-infobox-cta-link svg' => array(
|
869 |
+
'fill' => $attr['ctaLinkColor'],
|
870 |
+
),
|
871 |
+
' .uagb-infobox-cta-link:hover svg' => array(
|
872 |
+
'fill' => $attr['ctaLinkHoverColor'],
|
873 |
+
),
|
874 |
+
' .uagb-ifb-button-wrapper .uagb-infobox-cta-link' => array(
|
875 |
+
'color' => $attr['ctaBtnLinkColor'],
|
876 |
+
'background-color' => $attr['ctaBgColor'],
|
877 |
+
'border-style' => $attr['ctaBorderStyle'],
|
878 |
+
'border-color' => $attr['ctaBorderColor'],
|
879 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['ctaBorderRadius'], 'px' ),
|
880 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['ctaBorderWidth'], 'px' ),
|
881 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
|
882 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
|
883 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
|
884 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
|
885 |
+
|
886 |
+
),
|
887 |
+
' .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg' => array(
|
888 |
+
'fill' => $attr['ctaBtnLinkColor'],
|
889 |
+
),
|
890 |
+
' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover' => array(
|
891 |
+
'color' => $attr['ctaLinkHoverColor'],
|
892 |
+
'background-color' => $attr['ctaBgHoverColor'],
|
893 |
+
'border-color' => $attr['ctaBorderhoverColor'],
|
894 |
+
),
|
895 |
+
' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg' => array(
|
896 |
+
'fill' => $attr['ctaLinkHoverColor'],
|
897 |
+
),
|
898 |
+
// Prefix Style.
|
899 |
+
' .uagb-ifb-title-prefix' => array(
|
900 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSize'], $attr['prefixFontSizeType'] ),
|
901 |
+
'font-family' => $attr['prefixFontFamily'],
|
902 |
+
'font-weight' => $attr['prefixFontWeight'],
|
903 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeight'], $attr['prefixLineHeightType'] ),
|
904 |
+
'color' => $attr['prefixColor'],
|
905 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['prefixSpace'], 'px' ),
|
906 |
+
),
|
907 |
+
// Title Style.
|
908 |
+
' .uagb-ifb-title' => array(
|
909 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
|
910 |
+
'font-family' => $attr['headFontFamily'],
|
911 |
+
'font-weight' => $attr['headFontWeight'],
|
912 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
|
913 |
+
'color' => $attr['headingColor'],
|
914 |
+
'margin-bottom' => $attr['headSpace'] . 'px',
|
915 |
+
),
|
916 |
+
// Description Style.
|
917 |
+
' .uagb-ifb-desc' => array(
|
918 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ) ,
|
919 |
+
'font-family' => $attr['subHeadFontFamily'],
|
920 |
+
'font-weight' => $attr['subHeadFontWeight'],
|
921 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
|
922 |
+
'color' => $attr['subHeadingColor'],
|
923 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['subHeadSpace'], 'px' ),
|
924 |
+
),
|
925 |
+
// Seperator.
|
926 |
+
' .uagb-ifb-separator' => array(
|
927 |
+
'width' => UAGB_Helper::get_css_value( $attr['seperatorWidth'], $attr['separatorWidthType'] ),
|
928 |
+
'border-top-width' => UAGB_Helper::get_css_value( $attr['seperatorThickness'], 'px' ),
|
929 |
+
'border-top-color' => $attr['seperatorColor'],
|
930 |
+
'border-top-style' => $attr['seperatorStyle'],
|
931 |
+
),
|
932 |
+
' .uagb-ifb-separator-parent' => array(
|
933 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['seperatorSpace'], 'px' ),
|
934 |
+
),
|
935 |
+
// CTA icon space.
|
936 |
+
' .uagb-ifb-align-icon-after' => array(
|
937 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
|
938 |
+
),
|
939 |
+
' .uagb-ifb-align-icon-before' => array(
|
940 |
+
'margin-right' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
|
941 |
+
),
|
942 |
+
);
|
943 |
+
|
944 |
+
if( 'above-title' === $attr['iconimgPosition'] || 'below-title' === $attr['iconimgPosition'] ){
|
945 |
+
$selectors[' .uagb-infobox__content-wrap'] = array(
|
946 |
+
'text-align' => $attr['headingAlign'],
|
947 |
+
);
|
948 |
+
}
|
949 |
+
|
950 |
+
$m_selectors = array(
|
951 |
+
' .uagb-ifb-title-prefix' => array(
|
952 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
|
953 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightMobile'], $attr['prefixLineHeightType'] ),
|
954 |
+
),
|
955 |
+
' .uagb-ifb-title' => array(
|
956 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
|
957 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
|
958 |
+
),
|
959 |
+
' .uagb-ifb-desc' => array(
|
960 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
|
961 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
|
962 |
+
),
|
963 |
+
' .uagb-infobox-cta-link' => array(
|
964 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
965 |
+
),
|
966 |
+
' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
|
967 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
968 |
+
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
969 |
+
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
970 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
971 |
+
),
|
972 |
+
' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
|
973 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
974 |
+
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
975 |
+
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
976 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
977 |
+
),
|
978 |
+
);
|
979 |
+
|
980 |
+
$t_selectors = array(
|
981 |
+
' .uagb-ifb-title-prefix' => array(
|
982 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
|
983 |
+
),
|
984 |
+
' .uagb-ifb-title' => array(
|
985 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
|
986 |
+
),
|
987 |
+
' .uagb-ifb-desc' => array(
|
988 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
|
989 |
+
),
|
990 |
+
' .uagb-infobox-cta-link' => array(
|
991 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
992 |
+
),
|
993 |
+
' .uagb-infobox-cta-link .uagb-ifb-button-icon' => array(
|
994 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
995 |
+
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
996 |
+
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
997 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
998 |
+
),
|
999 |
+
' .uagb-infobox-cta-link .uagb-ifb-text-icon' => array(
|
1000 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1001 |
+
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1002 |
+
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1003 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1004 |
+
),
|
1005 |
+
);
|
1006 |
+
|
1007 |
+
// @codingStandardsIgnoreEnd.
|
1008 |
+
|
1009 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-infobox-' . $id );
|
1010 |
+
|
1011 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-infobox-' . $id );
|
1012 |
+
|
1013 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-infobox-' . $id );
|
1014 |
+
|
1015 |
+
$generated_css = array(
|
1016 |
+
'desktop' => $desktop,
|
1017 |
+
'tablet' => $tablet,
|
1018 |
+
'mobile' => $mobile,
|
1019 |
+
);
|
1020 |
+
|
1021 |
+
return $generated_css;
|
1022 |
+
}
|
1023 |
+
|
1024 |
+
/**
|
1025 |
+
* Get CTA CSS
|
1026 |
+
*
|
1027 |
+
* @since 1.7.0
|
1028 |
+
* @param array $attr The block attributes.
|
1029 |
+
* @param string $id The selector ID.
|
1030 |
+
* @return array The Widget List.
|
1031 |
+
*/
|
1032 |
+
public static function get_call_to_action_css( $attr, $id ) { // @codingStandardsIgnoreStart.
|
1033 |
+
$defaults = UAGB_Helper::$block_list['uagb/call-to-action']['attributes'];
|
1034 |
+
|
1035 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1036 |
+
|
1037 |
+
$t_selectors = array();
|
1038 |
+
$m_selectors = array();
|
1039 |
+
|
1040 |
+
$selectors = array(
|
1041 |
+
' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
|
1042 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
1043 |
+
'font-family' => $attr['ctaFontFamily'],
|
1044 |
+
'font-weight' => $attr['ctaFontWeight'],
|
1045 |
+
'color' => $attr['ctaBtnLinkColor'],
|
1046 |
+
),
|
1047 |
+
' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-text ' => array(
|
1048 |
+
'color' => $attr['ctaLinkHoverColor'],
|
1049 |
+
),
|
1050 |
+
' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
|
1051 |
+
'font-size' => $attr['ctaFontSize']. $attr['ctaFontSizeType'],
|
1052 |
+
'font-family' => $attr['ctaFontFamily'],
|
1053 |
+
'font-weight' => $attr['ctaFontWeight'],
|
1054 |
+
'color' => $attr['ctaBtnLinkColor'],
|
1055 |
+
'background-color' => $attr['ctaBgColor'],
|
1056 |
+
'border-style' => $attr['ctaBorderStyle'],
|
1057 |
+
'border-color' => $attr['ctaBorderColor'],
|
1058 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['ctaBorderRadius'], 'px' ),
|
1059 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['ctaBorderWidth'], 'px' ),
|
1060 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
|
1061 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['ctaBtnVertPadding'], 'px' ),
|
1062 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
|
1063 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['ctaBtnHrPadding'], 'px' ),
|
1064 |
+
),
|
1065 |
+
' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-button' => array(
|
1066 |
+
'color' => $attr['ctaLinkHoverColor'],
|
1067 |
+
'background-color' => $attr['ctaBgHoverColor'],
|
1068 |
+
'border-color' => $attr['ctaBorderhoverColor'],
|
1069 |
+
),
|
1070 |
+
' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
|
1071 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
1072 |
+
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
1073 |
+
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
1074 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
1075 |
+
),
|
1076 |
+
' .uagb-cta__button-wrapper .uagb-cta__block-link svg' => array(
|
1077 |
+
'fill' => $attr['ctaBtnLinkColor'],
|
1078 |
+
),
|
1079 |
+
' .uagb-cta__button-wrapper:hover .uagb-cta__block-link svg' => array(
|
1080 |
+
'fill' => $attr['ctaLinkHoverColor'],
|
1081 |
+
),
|
1082 |
+
' .uagb-cta__title' => array(
|
1083 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
|
1084 |
+
'font-family' => $attr['titleFontFamily'],
|
1085 |
+
'font-weight' => $attr['titleFontWeight'],
|
1086 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
|
1087 |
+
'color' => $attr['titleColor'],
|
1088 |
+
'margin-bottom' => $attr['titleSpace']. "px",
|
1089 |
+
),
|
1090 |
+
' .uagb-cta__desc' => array(
|
1091 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
|
1092 |
+
'font-family' => $attr['descFontFamily'],
|
1093 |
+
'font-weight' => $attr['descFontWeight'],
|
1094 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
|
1095 |
+
'color' => $attr['descColor'],
|
1096 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
|
1097 |
+
),
|
1098 |
+
' .uagb-cta__align-button-after' => array(
|
1099 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
|
1100 |
+
),
|
1101 |
+
' .uagb-cta__align-button-before' => array(
|
1102 |
+
'margin-right' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ),
|
1103 |
+
),
|
1104 |
+
);
|
1105 |
+
|
1106 |
+
$selectors[' .uagb-cta__content-wrap'] = array(
|
1107 |
+
'text-align' => $attr['textAlign'],
|
1108 |
+
);
|
1109 |
+
|
1110 |
+
if( 'left' === $attr['textAlign'] && "right" === $attr['ctaPosition'] ){
|
1111 |
+
$selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
|
1112 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['ctaLeftSpace'], 'px' ),
|
1113 |
+
'margin-right' => '0',
|
1114 |
+
);
|
1115 |
+
}
|
1116 |
+
|
1117 |
+
if( 'right' === $attr['textAlign'] && 'right' === $attr['ctaPosition'] ){
|
1118 |
+
$selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
|
1119 |
+
'margin-right' => UAGB_Helper::get_css_value( $attr['ctaRightSpace'], 'px' ),
|
1120 |
+
'margin-left' => '0',
|
1121 |
+
);
|
1122 |
+
}
|
1123 |
+
|
1124 |
+
if( $attr['ctaPosition'] === "right" && ( $attr['ctaType'] === 'text' || $attr['ctaType'] === 'button' ) ){
|
1125 |
+
$selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
|
1126 |
+
"width" => UAGB_Helper::get_css_value( $attr['contentWidth'], '%' ),
|
1127 |
+
);
|
1128 |
+
|
1129 |
+
$selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
|
1130 |
+
"width" => UAGB_Helper::get_css_value( (100 - $attr['contentWidth'] ), '%' ),
|
1131 |
+
);
|
1132 |
+
}
|
1133 |
+
|
1134 |
+
$t_selectors = array(
|
1135 |
+
' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
|
1136 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1137 |
+
),
|
1138 |
+
' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
|
1139 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1140 |
+
),
|
1141 |
+
' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
|
1142 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1143 |
+
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1144 |
+
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1145 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
1146 |
+
),
|
1147 |
+
' .uagb-cta__title' => array(
|
1148 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
1149 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
|
1150 |
+
),
|
1151 |
+
' .uagb-cta__desc' => array(
|
1152 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
|
1153 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
|
1154 |
+
),
|
1155 |
+
);
|
1156 |
+
|
1157 |
+
$m_selectors = array(
|
1158 |
+
' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
|
1159 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1160 |
+
),
|
1161 |
+
' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
|
1162 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1163 |
+
),
|
1164 |
+
' .uagb-cta__button-wrapper .uagb-cta-with-svg' => array(
|
1165 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1166 |
+
'width' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1167 |
+
'height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1168 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'],$attr['ctaFontSizeType'] ),
|
1169 |
+
),
|
1170 |
+
' .uagb-cta__title' => array(
|
1171 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'],$attr['titleFontSizeType'] ),
|
1172 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'],$attr['titleLineHeightType'] ),
|
1173 |
+
),
|
1174 |
+
' .uagb-cta__desc' => array(
|
1175 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'],$attr['descFontSizeType'] ),
|
1176 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
|
1177 |
+
),
|
1178 |
+
);
|
1179 |
+
|
1180 |
+
// @codingStandardsIgnoreEnd.
|
1181 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cta-block-' . $id );
|
1182 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-cta-block-' . $id );
|
1183 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-cta-block-' . $id );
|
1184 |
+
|
1185 |
+
$generated_css = array(
|
1186 |
+
'desktop' => $desktop,
|
1187 |
+
'tablet' => $tablet,
|
1188 |
+
'mobile' => $mobile,
|
1189 |
+
);
|
1190 |
+
|
1191 |
+
return $generated_css;
|
1192 |
+
}
|
1193 |
+
|
1194 |
+
/**
|
1195 |
+
* Get Testimonial CSS
|
1196 |
+
*
|
1197 |
+
* @since 0.0.1
|
1198 |
+
* @param array $attr The block attributes.
|
1199 |
+
* @param string $id The selector ID.
|
1200 |
+
* @return array The Widget List.
|
1201 |
+
*/
|
1202 |
+
public static function get_testimonial_css( $attr, $id ) { // @codingStandardsIgnoreStart.
|
1203 |
+
|
1204 |
+
$defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
|
1205 |
+
|
1206 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1207 |
+
|
1208 |
+
$img_align = 'center';
|
1209 |
+
if( 'left' === $attr['headingAlign']){
|
1210 |
+
$img_align = 'flex-start';
|
1211 |
+
}else if( 'right' === $attr['headingAlign']){
|
1212 |
+
$img_align = 'flex-end';
|
1213 |
+
}
|
1214 |
+
|
1215 |
+
$position = str_replace( '-', ' ', $attr['backgroundPosition'] );
|
1216 |
+
|
1217 |
+
$selectors = array(
|
1218 |
+
' .uagb-testimonial__wrap' => array(
|
1219 |
+
'padding-left' => UAGB_Helper::get_css_value( ( ($attr['columnGap']) /2 ), 'px' ),
|
1220 |
+
'padding-right' => UAGB_Helper::get_css_value( ( ($attr['columnGap']) /2 ), 'px' ),
|
1221 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['rowGap'], 'px' ),
|
1222 |
+
),
|
1223 |
+
' .uagb-testimonial__wrap .uagb-tm__image-content' => array(
|
1224 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['imgHrPadding'], 'px' ),
|
1225 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['imgHrPadding'], 'px' ),
|
1226 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['imgVrPadding'], 'px' ),
|
1227 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['imgVrPadding'], 'px' ),
|
1228 |
+
),
|
1229 |
+
' .uagb-tm__image img' => array(
|
1230 |
+
'width' => UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
1231 |
+
'max-width' => UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
1232 |
+
),
|
1233 |
+
' .uagb-tm__content' => array(
|
1234 |
+
'text-align' => $attr['headingAlign'],
|
1235 |
+
'padding' => UAGB_Helper::get_css_value( $attr['contentPadding'], 'px' ),
|
1236 |
+
),
|
1237 |
+
' .uagb-tm__author-name' => array(
|
1238 |
+
'color' => $attr['authorColor'],
|
1239 |
+
'font-size' => $attr['nameFontSize'] . $attr['nameFontSizeType'],
|
1240 |
+
'font-family' => $attr['nameFontFamily'],
|
1241 |
+
'font-weight' => $attr['nameFontWeight'],
|
1242 |
+
'line-height' => $attr['nameLineHeight'] . $attr['nameLineHeightType'],
|
1243 |
+
'margin-bottom' => $attr['nameSpace'] . 'px',
|
1244 |
+
),
|
1245 |
+
' .uagb-tm__company' => array(
|
1246 |
+
'color' => $attr['companyColor'],
|
1247 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSize'], $attr['companyFontSizeType'] ),
|
1248 |
+
'font-family' => $attr['companyFontFamily'],
|
1249 |
+
'font-weight' => $attr['companyFontWeight'],
|
1250 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeight'], $attr['companyLineHeightType'] ),
|
1251 |
+
),
|
1252 |
+
' .uagb-tm__desc' => array(
|
1253 |
+
'color' => $attr['descColor'],
|
1254 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
|
1255 |
+
'font-family' => $attr['descFontFamily'],
|
1256 |
+
'font-weight' => $attr['descFontWeight'],
|
1257 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
|
1258 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
|
1259 |
+
),
|
1260 |
+
' .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content' => array(
|
1261 |
+
'background-color' => $attr['backgroundColor'],
|
1262 |
+
),
|
1263 |
+
' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content' => array(
|
1264 |
+
'background-image' => ( isset( $attr['backgroundImage']['url'] ) ) ? 'url("'.$attr['backgroundImage']['url'].'")' : null,
|
1265 |
+
'background-position'=> $position,
|
1266 |
+
'background-repeat'=> $attr['backgroundRepeat'],
|
1267 |
+
'background-size'=> $attr['backgroundSize'],
|
1268 |
+
),
|
1269 |
+
' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay' => array(
|
1270 |
+
'background-color' => $attr['backgroundImageColor'],
|
1271 |
+
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? ( ( 100 - $attr['backgroundOpacity'] ) / 100 ) : '0.5',
|
1272 |
+
),
|
1273 |
+
' .uagb-testimonial__wrap .uagb-tm__content' => array(
|
1274 |
+
'border-color' => $attr['borderColor'],
|
1275 |
+
'border-style' => $attr['borderStyle'],
|
1276 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
|
1277 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
1278 |
+
),
|
1279 |
+
' ul.slick-dots li button:before' => array(
|
1280 |
+
'color' => $attr['arrowColor'],
|
1281 |
+
),
|
1282 |
+
' ul.slick-dots li.slick-active button:before' => array(
|
1283 |
+
'color' => $attr['arrowColor'],
|
1284 |
+
),
|
1285 |
+
' .uagb-tm__image-position-top .uagb-tm__image-content' => array(
|
1286 |
+
'justify-content' => $img_align,
|
1287 |
+
),
|
1288 |
+
);
|
1289 |
+
|
1290 |
+
if( 'dots' === $attr['arrowDots'] ){
|
1291 |
+
$selectors['.uagb-slick-carousel'] = array(
|
1292 |
+
'padding' => '0 0 35px 0',
|
1293 |
+
);
|
1294 |
+
}
|
1295 |
+
|
1296 |
+
if( '1' === $attr['test_item_count'] || $attr['test_item_count'] === $attr['columns'] ){
|
1297 |
+
$selectors['.uagb-slick-carousel'] = array(
|
1298 |
+
'padding' => '0',
|
1299 |
+
);
|
1300 |
+
}
|
1301 |
+
|
1302 |
+
$t_selectors = array(
|
1303 |
+
' .uagb-tm__author-name' => array(
|
1304 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['nameFontSizeTablet'], $attr['nameFontSizeType'] ),
|
1305 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['nameLineHeightTablet'], $attr['nameLineHeightType'] ),
|
1306 |
+
),
|
1307 |
+
' .uagb-tm__company' => array(
|
1308 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSizeTablet'], $attr['companyFontSizeType'] ),
|
1309 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeightTablet'], $attr['companyLineHeightType'] ),
|
1310 |
+
),
|
1311 |
+
' .uagb-tm__desc' => array(
|
1312 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
|
1313 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
|
1314 |
+
),
|
1315 |
+
);
|
1316 |
+
|
1317 |
+
$m_selectors = array(
|
1318 |
+
' .uagb-tm__author-name' => array(
|
1319 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['nameFontSizeMobile'], $attr['nameFontSizeType'] ),
|
1320 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['nameLineHeightMobile'], $attr['nameLineHeightType'] ),
|
1321 |
+
),
|
1322 |
+
' .uagb-tm__company' => array(
|
1323 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['companyFontSizeMobile'], $attr['companyFontSizeType'] ),
|
1324 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['companyLineHeightMobile'], $attr['companyLineHeightType'] ),
|
1325 |
+
),
|
1326 |
+
' .uagb-tm__desc' => array(
|
1327 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
|
1328 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
|
1329 |
+
),
|
1330 |
+
' .uagb-tm__content' => array(
|
1331 |
+
'text-align' => 'center',
|
1332 |
+
)
|
1333 |
+
);
|
1334 |
+
|
1335 |
+
|
1336 |
+
// @codingStandardsIgnoreEnd.
|
1337 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-testimonial-' . $id );
|
1338 |
+
|
1339 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-testimonial-' . $id );
|
1340 |
+
|
1341 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-testimonial-' . $id );
|
1342 |
+
|
1343 |
+
$generated_css = array(
|
1344 |
+
'desktop' => $desktop,
|
1345 |
+
'tablet' => $tablet,
|
1346 |
+
'mobile' => $mobile,
|
1347 |
+
);
|
1348 |
+
|
1349 |
+
return $generated_css;
|
1350 |
+
}
|
1351 |
+
|
1352 |
+
/**
|
1353 |
+
* Get Team Block CSS
|
1354 |
+
*
|
1355 |
+
* @since 0.0.1
|
1356 |
+
* @param array $attr The block attributes.
|
1357 |
+
* @param string $id The selector ID.
|
1358 |
+
* @return array The Widget List.
|
1359 |
+
*/
|
1360 |
+
public static function get_team_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
1361 |
+
|
1362 |
+
$defaults = UAGB_Helper::$block_list['uagb/team']['attributes'];
|
1363 |
+
|
1364 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1365 |
+
|
1366 |
+
$m_selectors = array();
|
1367 |
+
$t_selectors = array();
|
1368 |
+
|
1369 |
+
$selectors = array(
|
1370 |
+
" p.uagb-team__desc" => array(
|
1371 |
+
"font-family" => $attr['descFontFamily'],
|
1372 |
+
"font-weight" => $attr['descFontWeight'],
|
1373 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
|
1374 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
|
1375 |
+
"color" => $attr['descColor'],
|
1376 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
|
1377 |
+
),
|
1378 |
+
" .uagb-team__prefix" => array(
|
1379 |
+
"font-family" => $attr['prefixFontFamily'],
|
1380 |
+
"font-weight" => $attr['prefixFontWeight'],
|
1381 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSize'], $attr['prefixFontSizeType'] ),
|
1382 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['prefixLineHeight'], $attr['prefixLineHeightType'] ),
|
1383 |
+
"color" => $attr['prefixColor'],
|
1384 |
+
),
|
1385 |
+
" .uagb-team__desc-wrap" => array(
|
1386 |
+
"margin-top" => UAGB_Helper::get_css_value( $attr['prefixSpace'], 'px' ),
|
1387 |
+
),
|
1388 |
+
" .uagb-team__social-icon a" => array(
|
1389 |
+
"color" => $attr['socialColor'],
|
1390 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1391 |
+
"width" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1392 |
+
"height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1393 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1394 |
+
),
|
1395 |
+
" .uagb-team__social-icon svg" => array(
|
1396 |
+
"fill" => $attr['socialColor'],
|
1397 |
+
"width" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1398 |
+
"height" => UAGB_Helper::get_css_value( $attr['socialFontSize'], $attr['socialFontSizeType'] ),
|
1399 |
+
),
|
1400 |
+
" .uagb-team__social-icon:hover a" => array(
|
1401 |
+
"color" => $attr['socialHoverColor'],
|
1402 |
+
),
|
1403 |
+
" .uagb-team__social-icon:hover svg" => array(
|
1404 |
+
"fill" => $attr['socialHoverColor'],
|
1405 |
+
),
|
1406 |
+
".uagb-team__image-position-left .uagb-team__social-icon" => array(
|
1407 |
+
"margin-right" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
|
1408 |
+
"margin-left" => "0",
|
1409 |
+
),
|
1410 |
+
".uagb-team__image-position-right .uagb-team__social-icon" => array(
|
1411 |
+
"margin-left" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
|
1412 |
+
"margin-right" => "0",
|
1413 |
+
),
|
1414 |
+
".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon" => array(
|
1415 |
+
"margin-right" => UAGB_Helper::get_css_value( ( $attr['socialSpace'] / 2 ), 'px' ),
|
1416 |
+
"margin-left" => UAGB_Helper::get_css_value( ( $attr['socialSpace'] / 2 ), 'px' ),
|
1417 |
+
),
|
1418 |
+
".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon" => array(
|
1419 |
+
"margin-right" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
|
1420 |
+
"margin-left" => "0",
|
1421 |
+
),
|
1422 |
+
".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon" => array(
|
1423 |
+
"margin-left" => UAGB_Helper::get_css_value( $attr['socialSpace'], 'px' ),
|
1424 |
+
"margin-right" => "0",
|
1425 |
+
),
|
1426 |
+
" .uagb-team__image-wrap" => array(
|
1427 |
+
"margin-top" => UAGB_Helper::get_css_value( $attr['imgTopMargin'], 'px' ),
|
1428 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['imgBottomMargin'], 'px' ),
|
1429 |
+
"margin-left" => UAGB_Helper::get_css_value( $attr['imgLeftMargin'], 'px' ),
|
1430 |
+
"margin-right" => UAGB_Helper::get_css_value( $attr['imgRightMargin'], 'px' ),
|
1431 |
+
"width" => UAGB_Helper::get_css_value( $attr['imgWidth'], 'px' )
|
1432 |
+
),
|
1433 |
+
);
|
1434 |
+
|
1435 |
+
if( 'above' == $attr['imgPosition'] ) {
|
1436 |
+
if ( 'center' == $attr['align'] ) {
|
1437 |
+
$selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
|
1438 |
+
$selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
|
1439 |
+
} else if ( 'left' == $attr['align'] ) {
|
1440 |
+
$selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
|
1441 |
+
} else if ( 'right' == $attr['align'] ) {
|
1442 |
+
$selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
|
1443 |
+
}
|
1444 |
+
}
|
1445 |
+
|
1446 |
+
if ( "above" != $attr['imgPosition'] ) {
|
1447 |
+
if ( "middle" == $attr['imgAlign'] ) {
|
1448 |
+
$selectors[" .uagb-team__image-wrap"]["align-self"] = "center";
|
1449 |
+
}
|
1450 |
+
}
|
1451 |
+
|
1452 |
+
$selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
|
1453 |
+
"font-family" => $attr['titleFontFamily'],
|
1454 |
+
"font-weight" => $attr['titleFontWeight'],
|
1455 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
|
1456 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
|
1457 |
+
"color" => $attr['titleColor'],
|
1458 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['titleSpace'], 'px' ),
|
1459 |
+
);
|
1460 |
+
|
1461 |
+
$m_selectors = array(
|
1462 |
+
" p.uagb-team__desc" => array(
|
1463 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
|
1464 |
+
),
|
1465 |
+
" .uagb-team__prefix" => array(
|
1466 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
|
1467 |
+
),
|
1468 |
+
" .uagb-team__social-icon a" => array(
|
1469 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1470 |
+
"width" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1471 |
+
"height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1472 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1473 |
+
),
|
1474 |
+
" .uagb-team__social-icon svg" => array(
|
1475 |
+
"width" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1476 |
+
"height" => UAGB_Helper::get_css_value( $attr['socialFontSizeMobile'], $attr['socialFontSizeType'] ),
|
1477 |
+
),
|
1478 |
+
);
|
1479 |
+
|
1480 |
+
$t_selectors = array(
|
1481 |
+
" p.uagb-team__desc" => array(
|
1482 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
|
1483 |
+
),
|
1484 |
+
" .uagb-team__prefix" => array(
|
1485 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
|
1486 |
+
),
|
1487 |
+
" .uagb-team__social-icon a" => array(
|
1488 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1489 |
+
"width" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1490 |
+
"height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1491 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1492 |
+
),
|
1493 |
+
" .uagb-team__social-icon svg" => array(
|
1494 |
+
"width" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1495 |
+
"height" => UAGB_Helper::get_css_value( $attr['socialFontSizeTablet'], $attr['socialFontSizeType'] ),
|
1496 |
+
),
|
1497 |
+
);
|
1498 |
+
|
1499 |
+
$m_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
|
1500 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
|
1501 |
+
);
|
1502 |
+
|
1503 |
+
$t_selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
|
1504 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
1505 |
+
);
|
1506 |
+
|
1507 |
+
// @codingStandardsIgnoreEnd
|
1508 |
+
|
1509 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-team-' . $id );
|
1510 |
+
|
1511 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-team-' . $id );
|
1512 |
+
|
1513 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-team-' . $id );
|
1514 |
+
|
1515 |
+
$generated_css = array(
|
1516 |
+
'desktop' => $desktop,
|
1517 |
+
'tablet' => $tablet,
|
1518 |
+
'mobile' => $mobile,
|
1519 |
+
);
|
1520 |
+
|
1521 |
+
return $generated_css;
|
1522 |
+
}
|
1523 |
+
|
1524 |
+
/**
|
1525 |
+
* Get Social Share Block CSS
|
1526 |
+
*
|
1527 |
+
* @since 0.0.1
|
1528 |
+
* @param array $attr The block attributes.
|
1529 |
+
* @param string $id The selector ID.
|
1530 |
+
* @return array The Widget List.
|
1531 |
+
*/
|
1532 |
+
public static function get_social_share_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
1533 |
+
|
1534 |
+
$defaults = UAGB_Helper::$block_list['uagb/social-share']['attributes'];
|
1535 |
+
|
1536 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1537 |
+
|
1538 |
+
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
1539 |
+
|
1540 |
+
$m_selectors = array();
|
1541 |
+
$t_selectors = array();
|
1542 |
+
|
1543 |
+
$selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper"] = array(
|
1544 |
+
"margin-left" => 0,
|
1545 |
+
"margin-right" => 0,
|
1546 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1547 |
+
);
|
1548 |
+
|
1549 |
+
$selectors[".uagb-social-share__layout-vertical .uagb-social-share__wrap"] = array(
|
1550 |
+
"flex-direction" => "column"
|
1551 |
+
);
|
1552 |
+
|
1553 |
+
$selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper:last-child"] = array(
|
1554 |
+
"margin-bottom" => 0
|
1555 |
+
);
|
1556 |
+
|
1557 |
+
$selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
|
1558 |
+
"margin-left" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
|
1559 |
+
"margin-right" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
|
1560 |
+
);
|
1561 |
+
|
1562 |
+
$selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:first-child"] = array(
|
1563 |
+
"margin-left" => 0
|
1564 |
+
);
|
1565 |
+
|
1566 |
+
$selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:last-child"] = array(
|
1567 |
+
"margin-right" => 0
|
1568 |
+
);
|
1569 |
+
|
1570 |
+
$selectors[" .uagb-ss__wrapper"] = array(
|
1571 |
+
"border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' )
|
1572 |
+
);
|
1573 |
+
|
1574 |
+
$selectors[" .uagb-ss__source-wrap"] = array(
|
1575 |
+
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1576 |
+
);
|
1577 |
+
|
1578 |
+
$selectors[" .uagb-ss__source-wrap svg"] = array(
|
1579 |
+
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1580 |
+
"height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1581 |
+
);
|
1582 |
+
|
1583 |
+
$selectors[" .uagb-ss__source-image"] = array(
|
1584 |
+
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
|
1585 |
+
);
|
1586 |
+
|
1587 |
+
$selectors[" .uagb-ss__source-icon"] = array(
|
1588 |
+
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1589 |
+
"height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1590 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1591 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
|
1592 |
+
);
|
1593 |
+
|
1594 |
+
|
1595 |
+
$t_selectors[" .uagb-ss__source-wrap"] = array(
|
1596 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1597 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1598 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1599 |
+
);
|
1600 |
+
|
1601 |
+
$t_selectors[" .uagb-ss__source-wrap svg"] = array(
|
1602 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1603 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1604 |
+
);
|
1605 |
+
|
1606 |
+
$t_selectors[" .uagb-ss__source-image"] = array(
|
1607 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1608 |
+
);
|
1609 |
+
|
1610 |
+
$t_selectors[" .uagb-ss__source-icon"] = array(
|
1611 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1612 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1613 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1614 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1615 |
+
);
|
1616 |
+
$t_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
|
1617 |
+
"margin-left" => 0,
|
1618 |
+
"margin-right" => 0
|
1619 |
+
);
|
1620 |
+
|
1621 |
+
|
1622 |
+
$m_selectors[" .uagb-ss__source-wrap"] = array(
|
1623 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1624 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1625 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1626 |
+
);
|
1627 |
+
|
1628 |
+
$m_selectors[" .uagb-ss__source-wrap svg"] = array(
|
1629 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1630 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1631 |
+
);
|
1632 |
+
|
1633 |
+
$m_selectors[" .uagb-ss__source-image"] = array(
|
1634 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1635 |
+
);
|
1636 |
+
|
1637 |
+
$m_selectors[" .uagb-ss__source-icon"] = array(
|
1638 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1639 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1640 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1641 |
+
"line-height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1642 |
+
);
|
1643 |
+
$m_selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
|
1644 |
+
"margin-left" => 0,
|
1645 |
+
"margin-right" => 0
|
1646 |
+
);
|
1647 |
+
|
1648 |
+
|
1649 |
+
foreach ( $attr['socials'] as $key => $social ) {
|
1650 |
+
|
1651 |
+
$social['icon_color'] = ( isset( $social['icon_color'] ) ) ? $social['icon_color'] : '';
|
1652 |
+
$social['icon_hover_color'] = ( isset( $social['icon_hover_color'] ) ) ? $social['icon_hover_color'] : '';
|
1653 |
+
|
1654 |
+
if ( $attr['social_count'] <= $key ) {
|
1655 |
+
break;
|
1656 |
+
}
|
1657 |
+
|
1658 |
+
$selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
|
1659 |
+
"color" => $social['icon_color'],
|
1660 |
+
"padding" => UAGB_Helper::get_css_value( $attr['bgSize'], $attr['bgSizeType'] )
|
1661 |
+
);
|
1662 |
+
|
1663 |
+
$m_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
|
1664 |
+
"padding" => UAGB_Helper::get_css_value( $attr['bgSizeMobile'], $attr['bgSizeType'] )
|
1665 |
+
);
|
1666 |
+
|
1667 |
+
$t_selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
|
1668 |
+
"padding" => UAGB_Helper::get_css_value( $attr['bgSizeTablet'], $attr['bgSizeType'] )
|
1669 |
+
);
|
1670 |
+
|
1671 |
+
$selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link svg"] = array (
|
1672 |
+
"fill" => $social['icon_color'],
|
1673 |
+
);
|
1674 |
+
|
1675 |
+
$selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link"] = array (
|
1676 |
+
"color" => $social['icon_hover_color']
|
1677 |
+
);
|
1678 |
+
|
1679 |
+
$selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link svg"] = array (
|
1680 |
+
"fill" => $social['icon_hover_color']
|
1681 |
+
);
|
1682 |
+
|
1683 |
+
$selectors[" .uagb-ss-repeater-" . $key] = array (
|
1684 |
+
"background" => $social['icon_bg_color']
|
1685 |
+
);
|
1686 |
+
|
1687 |
+
$selectors[" .uagb-ss-repeater-" . $key . ":hover"] = array (
|
1688 |
+
"background" => $social['icon_bg_hover_color']
|
1689 |
+
);
|
1690 |
+
}
|
1691 |
+
|
1692 |
+
$selectors[" .uagb-social-share__wrap"] = array(
|
1693 |
+
"justify-content" => $alignment,
|
1694 |
+
"-webkit-box-pack" => $alignment,
|
1695 |
+
"-ms-flex-pack" => $alignment,
|
1696 |
+
"justify-content" => $alignment,
|
1697 |
+
"-webkit-box-align" => $alignment,
|
1698 |
+
"-ms-flex-align" => $alignment,
|
1699 |
+
"align-items" => $alignment,
|
1700 |
+
);
|
1701 |
+
|
1702 |
+
if ( 'horizontal' == $attr['social_layout'] ) {
|
1703 |
+
|
1704 |
+
if ( "desktop" == $attr['stack'] ) {
|
1705 |
+
|
1706 |
+
$selectors[" .uagb-ss__wrapper"] = array (
|
1707 |
+
"margin-left" => 0,
|
1708 |
+
"margin-right" => 0,
|
1709 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1710 |
+
);
|
1711 |
+
|
1712 |
+
$selectors[" .uagb-social-share__wrap"] = array (
|
1713 |
+
"flex-direction" => "column"
|
1714 |
+
);
|
1715 |
+
|
1716 |
+
$selectors[" .uagb-ss__wrapper:last-child"] = array (
|
1717 |
+
"margin-bottom" => 0
|
1718 |
+
);
|
1719 |
+
|
1720 |
+
} else if ( "tablet" == $attr['stack'] ) {
|
1721 |
+
|
1722 |
+
$t_selectors[" .uagb-ss__wrapper"] = array (
|
1723 |
+
"margin-left" => 0,
|
1724 |
+
"margin-right" => 0,
|
1725 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1726 |
+
);
|
1727 |
+
|
1728 |
+
$t_selectors[" .uagb-social-share__wrap"] = array (
|
1729 |
+
"flex-direction" => "column"
|
1730 |
+
);
|
1731 |
+
|
1732 |
+
$t_selectors[" .uagb-ss__wrapper:last-child"] = array (
|
1733 |
+
"margin-bottom" => 0
|
1734 |
+
);
|
1735 |
+
|
1736 |
+
} else if ( "mobile" == $attr['stack'] ) {
|
1737 |
+
|
1738 |
+
$m_selectors[" .uagb-ss__wrapper"] = array (
|
1739 |
+
"margin-left" => 0,
|
1740 |
+
"margin-right" => 0,
|
1741 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1742 |
+
);
|
1743 |
+
|
1744 |
+
$m_selectors[" .uagb-social-share__wrap"] = array (
|
1745 |
+
"flex-direction" => "column"
|
1746 |
+
);
|
1747 |
+
|
1748 |
+
$m_selectors[" .uagb-ss__wrapper:last-child"] = array (
|
1749 |
+
"margin-bottom" => 0
|
1750 |
+
);
|
1751 |
+
}
|
1752 |
+
}
|
1753 |
+
|
1754 |
+
// @codingStandardsIgnoreEnd
|
1755 |
+
|
1756 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-social-share-' . $id );
|
1757 |
+
|
1758 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-social-share-' . $id );
|
1759 |
+
|
1760 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-social-share-' . $id );
|
1761 |
+
|
1762 |
+
$generated_css = array(
|
1763 |
+
'desktop' => $desktop,
|
1764 |
+
'tablet' => $tablet,
|
1765 |
+
'mobile' => $mobile,
|
1766 |
+
);
|
1767 |
+
|
1768 |
+
return $generated_css;
|
1769 |
+
}
|
1770 |
+
|
1771 |
+
/**
|
1772 |
+
* Get Icon List Block CSS
|
1773 |
+
*
|
1774 |
+
* @since 0.0.1
|
1775 |
+
* @param array $attr The block attributes.
|
1776 |
+
* @param string $id The selector ID.
|
1777 |
+
* @return array The Widget List.
|
1778 |
+
*/
|
1779 |
+
public static function get_icon_list_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
1780 |
+
|
1781 |
+
$defaults = UAGB_Helper::$block_list['uagb/icon-list']['attributes'];
|
1782 |
+
|
1783 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1784 |
+
|
1785 |
+
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
1786 |
+
|
1787 |
+
$m_selectors = array();
|
1788 |
+
$t_selectors = array();
|
1789 |
+
|
1790 |
+
$selectors = array(
|
1791 |
+
".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper" => array(
|
1792 |
+
"margin-left" => 0,
|
1793 |
+
"margin-right" => 0,
|
1794 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1795 |
+
),
|
1796 |
+
".uagb-icon-list__layout-vertical .uagb-icon-list__wrap" => array(
|
1797 |
+
"flex-direction" => "column"
|
1798 |
+
),
|
1799 |
+
".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper:last-child" => array(
|
1800 |
+
"margin-bottom" => 0
|
1801 |
+
),
|
1802 |
+
".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper" => array(
|
1803 |
+
"margin-left" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' ),
|
1804 |
+
"margin-right" => UAGB_Helper::get_css_value( ( $attr['gap']/2 ), 'px' )
|
1805 |
+
),
|
1806 |
+
".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:first-child" => array(
|
1807 |
+
"margin-left" => 0
|
1808 |
+
),
|
1809 |
+
".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:last-child" => array(
|
1810 |
+
"margin-right" => 0
|
1811 |
+
),
|
1812 |
+
// Desktop Icon Size CSS starts.
|
1813 |
+
" .uagb-icon-list__source-image" => array(
|
1814 |
+
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
|
1815 |
+
),
|
1816 |
+
" .uagb-icon-list__source-icon" => array(
|
1817 |
+
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1818 |
+
"height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1819 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
|
1820 |
+
),
|
1821 |
+
" .uagb-icon-list__source-icon svg" => array(
|
1822 |
+
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1823 |
+
"height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1824 |
+
),
|
1825 |
+
" .uagb-icon-list__source-icon:before"=> array(
|
1826 |
+
"width" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1827 |
+
"height" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] ),
|
1828 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['size'], $attr['sizeType'] )
|
1829 |
+
),
|
1830 |
+
" .uagb-icon-list__label-wrap"=> array(
|
1831 |
+
"text-align" => $attr['align']
|
1832 |
+
),
|
1833 |
+
|
1834 |
+
" .uagb-icon-list__source-wrap"=> array(
|
1835 |
+
"padding" => UAGB_Helper::get_css_value( $attr['bgSize'], 'px' ),
|
1836 |
+
"border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
1837 |
+
"border-style" => "solid",
|
1838 |
+
"border-width" => UAGB_Helper::get_css_value( $attr['border'], 'px' )
|
1839 |
+
),
|
1840 |
+
" .uagb-icon-list__wrap"=> array(
|
1841 |
+
"justify-content" => $alignment,
|
1842 |
+
"-webkit-box-pack" => $alignment,
|
1843 |
+
"-ms-flex-pack" => $alignment,
|
1844 |
+
"justify-content" => $alignment,
|
1845 |
+
"-webkit-box-align" => $alignment,
|
1846 |
+
"-ms-flex-align" => $alignment,
|
1847 |
+
"align-items" => $alignment,
|
1848 |
+
)
|
1849 |
+
);
|
1850 |
+
|
1851 |
+
if ( 'right' == $attr['align'] ) {
|
1852 |
+
$selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
|
1853 |
+
"margin-left" => UAGB_Helper::get_css_value( $attr['inner_gap'], 'px' )
|
1854 |
+
);
|
1855 |
+
$selectors[" .uagb-icon-list__content-wrap"] = array(
|
1856 |
+
"flex-direction" => "row-reverse"
|
1857 |
+
);
|
1858 |
+
} else {
|
1859 |
+
$selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
|
1860 |
+
"margin-right" => UAGB_Helper::get_css_value( $attr['inner_gap'], 'px' )
|
1861 |
+
);
|
1862 |
+
}
|
1863 |
+
// Desktop Icon Size CSS ends.
|
1864 |
+
|
1865 |
+
// Mobile Icon Size CSS starts.
|
1866 |
+
$m_selectors = array(
|
1867 |
+
" .uagb-icon-list__source-image" => array(
|
1868 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1869 |
+
),
|
1870 |
+
" .uagb-icon-list__source-icon" => array(
|
1871 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1872 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1873 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1874 |
+
),
|
1875 |
+
" .uagb-icon-list__source-icon svg" => array(
|
1876 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1877 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1878 |
+
),
|
1879 |
+
" .uagb-icon-list__source-icon:before" => array(
|
1880 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1881 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] ),
|
1882 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['sizeMobile'], $attr['sizeType'] )
|
1883 |
+
),
|
1884 |
+
);
|
1885 |
+
// Mobile Icon Size CSS ends.
|
1886 |
+
|
1887 |
+
// Tablet Icon Size CSS starts.
|
1888 |
+
$t_selectors = array(
|
1889 |
+
" .uagb-icon-list__source-image" => array(
|
1890 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1891 |
+
),
|
1892 |
+
" .uagb-icon-list__source-icon" => array(
|
1893 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1894 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1895 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1896 |
+
),
|
1897 |
+
" .uagb-icon-list__source-icon svg" => array(
|
1898 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1899 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1900 |
+
),
|
1901 |
+
" .uagb-icon-list__source-icon:before" => array(
|
1902 |
+
"width" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1903 |
+
"height" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] ),
|
1904 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['sizeTablet'], $attr['sizeType'] )
|
1905 |
+
),
|
1906 |
+
);
|
1907 |
+
// Tablet Icon Size CSS ends.
|
1908 |
+
|
1909 |
+
foreach ( $attr['icons'] as $key => $icon ) {
|
1910 |
+
|
1911 |
+
$icon['icon_color'] = ( isset( $icon['icon_color'] ) ) ? $icon['icon_color'] : '';
|
1912 |
+
$icon['icon_hover_color'] = ( isset( $icon['icon_hover_color'] ) ) ? $icon['icon_hover_color'] : '';
|
1913 |
+
$icon['icon_bg_color'] = ( isset( $icon['icon_bg_color'] ) ) ? $icon['icon_bg_color'] : '';
|
1914 |
+
$icon['icon_bg_hover_color'] = ( isset( $icon['icon_bg_hover_color'] ) ) ? $icon['icon_bg_hover_color'] : '';
|
1915 |
+
$icon['icon_border_color'] = ( isset( $icon['icon_border_color'] ) ) ? $icon['icon_border_color'] : '';
|
1916 |
+
$icon['icon_border_hover_color'] = ( isset( $icon['icon_border_hover_color'] ) ) ? $icon['icon_border_hover_color'] : '';
|
1917 |
+
$icon['label_color'] = ( isset( $icon['label_color'] ) ) ? $icon['label_color'] : '';
|
1918 |
+
$icon['label_hover_color'] = ( isset( $icon['label_hover_color'] ) ) ? $icon['label_hover_color'] : '';
|
1919 |
+
|
1920 |
+
if ( $attr['icon_count'] <= $key ) {
|
1921 |
+
break;
|
1922 |
+
}
|
1923 |
+
|
1924 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon"] = array (
|
1925 |
+
"color" => $icon['icon_color']
|
1926 |
+
);
|
1927 |
+
|
1928 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon svg"] = array (
|
1929 |
+
"fill" => $icon['icon_color']
|
1930 |
+
);
|
1931 |
+
|
1932 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon"] = array (
|
1933 |
+
"color" => $icon['icon_hover_color']
|
1934 |
+
);
|
1935 |
+
|
1936 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon svg"] = array (
|
1937 |
+
"fill" => $icon['icon_hover_color']
|
1938 |
+
);
|
1939 |
+
|
1940 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
|
1941 |
+
"color" => $icon['label_color'],
|
1942 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['fontSize'], $attr['fontSizeType'] ),
|
1943 |
+
'font-family' => $attr['fontFamily'],
|
1944 |
+
'font-weight' => $attr['fontWeight'],
|
1945 |
+
'line-height' => $attr['lineHeight'] . $attr['lineHeightType'],
|
1946 |
+
);
|
1947 |
+
|
1948 |
+
$m_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
|
1949 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['fontSizeMobile'], $attr['fontSizeType'] ),
|
1950 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightMobile'], $attr['lineHeightType'] ),
|
1951 |
+
);
|
1952 |
+
|
1953 |
+
$t_selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
|
1954 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['fontSizeTablet'], $attr['fontSizeType'] ),
|
1955 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightTablet'], $attr['lineHeightType'] ),
|
1956 |
+
);
|
1957 |
+
|
1958 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__label"] = array (
|
1959 |
+
"color" => $icon['label_hover_color']
|
1960 |
+
);
|
1961 |
+
|
1962 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-wrap"] = array(
|
1963 |
+
"background" => $icon['icon_bg_color'],
|
1964 |
+
"border-color" => $icon['icon_border_color'],
|
1965 |
+
);
|
1966 |
+
|
1967 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-wrap"] = array(
|
1968 |
+
"background" => $icon['icon_bg_hover_color'],
|
1969 |
+
"border-color" => $icon['icon_border_hover_color']
|
1970 |
+
);
|
1971 |
+
}
|
1972 |
+
|
1973 |
+
if ( 'horizontal' == $attr['icon_layout'] ) {
|
1974 |
+
|
1975 |
+
if ( "tablet" == $attr['stack'] ) {
|
1976 |
+
|
1977 |
+
$t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
|
1978 |
+
"margin-left" => 0,
|
1979 |
+
"margin-right" => 0,
|
1980 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1981 |
+
);
|
1982 |
+
|
1983 |
+
$t_selectors[" .uagb-icon-list__wrap"] = array (
|
1984 |
+
"flex-direction" => "column"
|
1985 |
+
);
|
1986 |
+
|
1987 |
+
$t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
|
1988 |
+
"margin-bottom" => 0
|
1989 |
+
);
|
1990 |
+
|
1991 |
+
} else if ( "mobile" == $attr['stack'] ) {
|
1992 |
+
|
1993 |
+
$m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
|
1994 |
+
"margin-left" => 0,
|
1995 |
+
"margin-right" => 0,
|
1996 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['gap'], 'px' )
|
1997 |
+
);
|
1998 |
+
|
1999 |
+
$m_selectors[" .uagb-icon-list__wrap"] = array (
|
2000 |
+
"flex-direction" => "column"
|
2001 |
+
);
|
2002 |
+
|
2003 |
+
$m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
|
2004 |
+
"margin-bottom" => 0
|
2005 |
+
);
|
2006 |
+
}
|
2007 |
+
}
|
2008 |
+
|
2009 |
+
// @codingStandardsIgnoreEnd
|
2010 |
+
|
2011 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-icon-list-' . $id );
|
2012 |
+
|
2013 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-icon-list-' . $id );
|
2014 |
+
|
2015 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-icon-list-' . $id );
|
2016 |
+
|
2017 |
+
$generated_css = array(
|
2018 |
+
'desktop' => $desktop,
|
2019 |
+
'tablet' => $tablet,
|
2020 |
+
'mobile' => $mobile,
|
2021 |
+
);
|
2022 |
+
|
2023 |
+
return $generated_css;
|
2024 |
+
}
|
2025 |
+
|
2026 |
+
/**
|
2027 |
+
* Get Content Timeline Block CSS
|
2028 |
+
*
|
2029 |
+
* @since 0.0.1
|
2030 |
+
* @param array $attr The block attributes.
|
2031 |
+
* @param string $id The selector ID.
|
2032 |
+
* @return array The Widget List.
|
2033 |
+
*/
|
2034 |
+
public static function get_content_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2035 |
+
|
2036 |
+
$defaults = UAGB_Helper::$block_list['uagb/content-timeline']['attributes'];
|
2037 |
+
|
2038 |
+
$attr = array_merge( $defaults, (array) $attr );
|
2039 |
+
|
2040 |
+
$selectors = array();
|
2041 |
+
$t_selectors = array();
|
2042 |
+
$m_selectors = array();
|
2043 |
+
|
2044 |
+
$selectors = array(
|
2045 |
+
" .uagb-timeline__heading" => array(
|
2046 |
+
"text-align" => $attr['align'],
|
2047 |
+
"color" => $attr['headingColor'],
|
2048 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
|
2049 |
+
'font-family' => $attr['headFontFamily'],
|
2050 |
+
'font-weight' => $attr['headFontWeight'],
|
2051 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
|
2052 |
+
),
|
2053 |
+
" .uagb-timeline__heading-text" => array(
|
2054 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
|
2055 |
+
),
|
2056 |
+
' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
|
2057 |
+
'color'=> $attr['iconFocus'],
|
2058 |
+
),
|
2059 |
+
);
|
2060 |
+
|
2061 |
+
$desktop_selectors = self::get_timeline_selectors( $attr );
|
2062 |
+
$selectors = array_merge( $selectors, $desktop_selectors );
|
2063 |
+
|
2064 |
+
$t_selectors = array(
|
2065 |
+
" .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
|
2066 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
|
2067 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
|
2068 |
+
),
|
2069 |
+
" .uagb-timeline__date-new" => array(
|
2070 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
|
2071 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
|
2072 |
+
),
|
2073 |
+
" .uagb-timeline__heading" => array(
|
2074 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
|
2075 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
|
2076 |
+
),
|
2077 |
+
" .uagb-timeline-desc-content" => array(
|
2078 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
|
2079 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
|
2080 |
+
),
|
2081 |
+
);
|
2082 |
+
|
2083 |
+
$tablet_selectors = self::get_timeline_tablet_selectors( $attr );
|
2084 |
+
$t_selectors = array_merge( $t_selectors, $tablet_selectors );
|
2085 |
+
|
2086 |
+
$m_selectors = array(
|
2087 |
+
" .uagb-timeline__date-hide.uagb-timeline__date-inner" => array(
|
2088 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
|
2089 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
|
2090 |
+
),
|
2091 |
+
" .uagb-timeline__date-new" => array(
|
2092 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
|
2093 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
|
2094 |
+
),
|
2095 |
+
" .uagb-timeline__heading" => array(
|
2096 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
|
2097 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
|
2098 |
+
),
|
2099 |
+
" .uagb-timeline-desc-content" => array(
|
2100 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
|
2101 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
|
2102 |
+
),
|
2103 |
+
);
|
2104 |
+
|
2105 |
+
$mobile_selectors = self::get_timeline_mobile_selectors( $attr );
|
2106 |
+
|
2107 |
+
$m_selectors = array_merge( $m_selectors, $mobile_selectors );
|
2108 |
+
|
2109 |
+
// @codingStandardsIgnoreEnd
|
2110 |
+
|
2111 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
|
2112 |
+
|
2113 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-ctm-' . $id );
|
2114 |
+
|
2115 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-ctm-' . $id );
|
2116 |
+
|
2117 |
+
$generated_css = array(
|
2118 |
+
'desktop' => $desktop,
|
2119 |
+
'tablet' => $tablet,
|
2120 |
+
'mobile' => $mobile,
|
2121 |
+
);
|
2122 |
+
|
2123 |
+
return $generated_css;
|
2124 |
+
}
|
2125 |
+
|
2126 |
+
/**
|
2127 |
+
* Get Content Timeline Block CSS
|
2128 |
+
*
|
2129 |
+
* @since 0.0.1
|
2130 |
+
* @param array $attr The block attributes.
|
2131 |
+
* @param string $id The selector ID.
|
2132 |
+
* @return array The Widget List.
|
2133 |
+
*/
|
2134 |
+
public static function get_post_timeline_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2135 |
+
|
2136 |
+
$defaults = UAGB_Helper::$block_list['uagb/post-timeline']['attributes'];
|
2137 |
+
|
2138 |
+
$attr = array_merge( $defaults, (array) $attr );
|
2139 |
+
$t_selectors = array();
|
2140 |
+
|
2141 |
+
$selectors = array(
|
2142 |
+
" .uagb-timeline__heading" => array(
|
2143 |
+
"text-align" => $attr['align'],
|
2144 |
+
),
|
2145 |
+
" .uagb-timeline__author" => array(
|
2146 |
+
"text-align" => $attr['align'],
|
2147 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['authorSpace'], 'px' )
|
2148 |
+
),
|
2149 |
+
" .uagb-timeline__link_parent" => array(
|
2150 |
+
"text-align" => $attr['align'],
|
2151 |
+
),
|
2152 |
+
" .uagb-timeline__image a" => array(
|
2153 |
+
"text-align" => $attr['align'],
|
2154 |
+
),
|
2155 |
+
" .uagb-timeline__author-link" => array(
|
2156 |
+
"color" => $attr['authorColor'],
|
2157 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
|
2158 |
+
'font-family' => $attr['authorFontFamily'],
|
2159 |
+
'font-weight' => $attr['authorFontWeight'],
|
2160 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
|
2161 |
+
),
|
2162 |
+
" .dashicons-admin-users" => array(
|
2163 |
+
"color" => $attr['authorColor'],
|
2164 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
|
2165 |
+
'font-weight' => $attr['authorFontWeight'],
|
2166 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
|
2167 |
+
),
|
2168 |
+
" .uagb-timeline__link" => array(
|
2169 |
+
"color" => $attr['ctaColor'],
|
2170 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
2171 |
+
'font-family' => $attr['ctaFontFamily'],
|
2172 |
+
'font-weight' => $attr['ctaFontWeight'],
|
2173 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
|
2174 |
+
"background-color" => $attr['ctaBackground'],
|
2175 |
+
),
|
2176 |
+
" .uagb-timeline__heading a" => array(
|
2177 |
+
"text-align" => $attr['align'],
|
2178 |
+
"color" => $attr['headingColor'],
|
2179 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ),
|
2180 |
+
'font-family' => $attr['headFontFamily'],
|
2181 |
+
'font-weight' => $attr['headFontWeight'],
|
2182 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ),
|
2183 |
+
),
|
2184 |
+
" .uagb-timeline__heading-text" => array(
|
2185 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
|
2186 |
+
),
|
2187 |
+
" .uagb_timeline__cta-enable .uagb-timeline-desc-content" => array(
|
2188 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['contentSpace'], 'px' ),
|
2189 |
+
),
|
2190 |
+
' .uagb-content' => array(
|
2191 |
+
'padding'=> UAGB_Helper::get_css_value( $attr['contentPadding'], 'px' ),
|
2192 |
+
),
|
2193 |
+
);
|
2194 |
+
|
2195 |
+
|
2196 |
+
|
2197 |
+
$desktop_selectors = self::get_timeline_selectors( $attr );
|
2198 |
+
$selectors = array_merge( $selectors, $desktop_selectors );
|
2199 |
+
|
2200 |
+
$t_selectors = array(
|
2201 |
+
" .uagb-timeline__author-link" => array(
|
2202 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
|
2203 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
|
2204 |
+
),
|
2205 |
+
" .dashicons-admin-users" => array(
|
2206 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
|
2207 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
|
2208 |
+
),
|
2209 |
+
" .uagb-timeline__link" => array(
|
2210 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
2211 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
|
2212 |
+
),
|
2213 |
+
" .uagb-timeline__heading a" => array(
|
2214 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ),
|
2215 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ),
|
2216 |
+
),
|
2217 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
|
2218 |
+
"text-align" => 'left',
|
2219 |
+
),
|
2220 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
|
2221 |
+
"text-align" => 'left',
|
2222 |
+
),
|
2223 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a" => array(
|
2224 |
+
'text-align' => 'left',
|
2225 |
+
),
|
2226 |
+
);
|
2227 |
+
|
2228 |
+
$tablet_selectors = self::get_timeline_tablet_selectors( $attr );
|
2229 |
+
$t_selectors = array_merge( $t_selectors, $tablet_selectors );
|
2230 |
+
|
2231 |
+
// Mobile responsive CSS.
|
2232 |
+
$m_selectors = array(
|
2233 |
+
" .uagb-timeline__author-link" => array(
|
2234 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
|
2235 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
|
2236 |
+
),
|
2237 |
+
" .dashicons-admin-users" => array(
|
2238 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
|
2239 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
|
2240 |
+
),
|
2241 |
+
" .uagb-timeline__link" => array(
|
2242 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
2243 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
|
2244 |
+
),
|
2245 |
+
" .uagb-timeline__heading a" => array(
|
2246 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ),
|
2247 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ),
|
2248 |
+
),
|
2249 |
+
" .uagb-timeline__heading" => array(
|
2250 |
+
"text-align" => $attr['align'],
|
2251 |
+
),
|
2252 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author" => array(
|
2253 |
+
"text-align" => 'left',
|
2254 |
+
),
|
2255 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent" => array(
|
2256 |
+
"text-align" => 'left',
|
2257 |
+
),
|
2258 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a" => array(
|
2259 |
+
'text-align' => 'left',
|
2260 |
+
),
|
2261 |
+
);
|
2262 |
+
|
2263 |
+
$mobile_selectors = self::get_timeline_mobile_selectors( $attr );
|
2264 |
+
$m_selectors = array_merge( $m_selectors, $mobile_selectors );
|
2265 |
+
|
2266 |
+
// @codingStandardsIgnoreEnd
|
2267 |
+
|
2268 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
|
2269 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-ctm-' . $id );
|
2270 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-ctm-' . $id );
|
2271 |
+
|
2272 |
+
$generated_css = array(
|
2273 |
+
'desktop' => $desktop,
|
2274 |
+
'tablet' => $tablet,
|
2275 |
+
'mobile' => $mobile,
|
2276 |
+
);
|
2277 |
+
|
2278 |
+
return $generated_css;
|
2279 |
+
}
|
2280 |
+
|
2281 |
+
/**
|
2282 |
+
* Get Restaurant Menu Block CSS
|
2283 |
+
*
|
2284 |
+
* @since 1.0.2
|
2285 |
+
* @param array $attr The block attributes.
|
2286 |
+
* @param string $id The selector ID.
|
2287 |
+
* @return array The Widget List.
|
2288 |
+
*/
|
2289 |
+
public static function get_restaurant_menu_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2290 |
+
|
2291 |
+
$defaults = UAGB_Helper::$block_list['uagb/restaurant-menu']['attributes'];
|
2292 |
+
|
2293 |
+
$attr = array_merge( $defaults, (array) $attr );
|
2294 |
+
|
2295 |
+
$m_selectors = array();
|
2296 |
+
$t_selectors = array();
|
2297 |
+
|
2298 |
+
$align = $attr['headingAlign'];
|
2299 |
+
if( 'left' === $align ){
|
2300 |
+
$align = 'flex-start';
|
2301 |
+
}else if( 'right' === $align ){
|
2302 |
+
$align = 'flex-end';
|
2303 |
+
}
|
2304 |
+
|
2305 |
+
$selectors = array(
|
2306 |
+
" .uagb-rest_menu__wrap" => array(
|
2307 |
+
'padding-left' => UAGB_Helper::get_css_value( ( $attr['columnGap']/2 ), 'px' ),
|
2308 |
+
'padding-right' => UAGB_Helper::get_css_value( ( $attr['columnGap']/2 ), 'px' ),
|
2309 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['rowGap'], 'px' )
|
2310 |
+
),
|
2311 |
+
" .uagb-rest_menu__wrap .uagb-rm__image-content" => array(
|
2312 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['imgHrPadding'],'px' ),
|
2313 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['imgHrPadding'],'px' ),
|
2314 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['imgVrPadding'],'px' ),
|
2315 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['imgVrPadding'],'px' ),
|
2316 |
+
),
|
2317 |
+
" .uagb-rm__image img" => array(
|
2318 |
+
'width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
2319 |
+
'max-width'=> UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ),
|
2320 |
+
),
|
2321 |
+
" .uagb-rm__separator-parent" => array(
|
2322 |
+
'justify-content' => $align,
|
2323 |
+
),
|
2324 |
+
" .uagb-rm__content" => array(
|
2325 |
+
'text-align' => $attr['headingAlign'] ,
|
2326 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ),
|
2327 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ),
|
2328 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ),
|
2329 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ),
|
2330 |
+
),
|
2331 |
+
" .uagb-rm__title" => array(
|
2332 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
|
2333 |
+
'color' => $attr['titleColor'] ,
|
2334 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['titleSpace'], 'px' ),
|
2335 |
+
'font-family' => $attr['titleFontFamily'],
|
2336 |
+
'font-weight' => $attr['titleFontWeight'],
|
2337 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
|
2338 |
+
),
|
2339 |
+
" .uagb-rm__price" => array(
|
2340 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['priceFontSize'], $attr['priceFontSizeType'] ),
|
2341 |
+
'font-family' => $attr['priceFontFamily'],
|
2342 |
+
'font-weight' => $attr['priceFontWeight'],
|
2343 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeight'], $attr['priceLineHeightType'] ),
|
2344 |
+
'color' => $attr['priceColor'],
|
2345 |
+
),
|
2346 |
+
" .uagb-rm__desc" => array(
|
2347 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
|
2348 |
+
'font-family' => $attr['descFontFamily'],
|
2349 |
+
'font-weight' => $attr['descFontWeight'],
|
2350 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
|
2351 |
+
'color'=> $attr['descColor'],
|
2352 |
+
'margin-bottom'=> UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
|
2353 |
+
),
|
2354 |
+
);
|
2355 |
+
|
2356 |
+
if ( $attr["seperatorStyle"] != "none" ) {
|
2357 |
+
$selectors[" .uagb-rest_menu__wrap .uagb-rm__separator"] = array(
|
2358 |
+
'border-top-color'=> $attr['seperatorColor'],
|
2359 |
+
'border-top-style'=> $attr['seperatorStyle'],
|
2360 |
+
'border-top-width'=> UAGB_Helper::get_css_value( $attr['seperatorThickness'], 'px' ),
|
2361 |
+
'width'=> UAGB_Helper::get_css_value( $attr['seperatorWidth'], '%' ),
|
2362 |
+
);
|
2363 |
+
}
|
2364 |
+
|
2365 |
+
$selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)'] = array(
|
2366 |
+
'margin-left'=> '0',
|
2367 |
+
'clear'=> 'left',
|
2368 |
+
);
|
2369 |
+
|
2370 |
+
$t_selectors = array(
|
2371 |
+
' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
|
2372 |
+
'margin-left'=> 'unset',
|
2373 |
+
'clear'=> 'unset',
|
2374 |
+
),
|
2375 |
+
' .uagb-rest_menu__wrap.uagb-rm__tablet-column-'.$attr['tcolumns'].':nth-child('.$attr['tcolumns'].'n+1)' => array(
|
2376 |
+
'margin-left'=> '0',
|
2377 |
+
'clear'=> 'left',
|
2378 |
+
),
|
2379 |
+
" .uagb-rm__title" => array(
|
2380 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
2381 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
|
2382 |
+
),
|
2383 |
+
" .uagb-rm__desc" => array(
|
2384 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
|
2385 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
|
2386 |
+
),
|
2387 |
+
" .uagb-rm__price" => array(
|
2388 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['priceFontSizeTablet'], $attr['priceFontSizeType'] ),
|
2389 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeightTablet'], $attr['priceLineHeightType'] ),
|
2390 |
+
)
|
2391 |
+
);
|
2392 |
+
|
2393 |
+
$m_selectors = array(
|
2394 |
+
' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)' => array(
|
2395 |
+
'margin-left'=> 'unset',
|
2396 |
+
'clear'=> 'unset',
|
2397 |
+
),
|
2398 |
+
' .uagb-rest_menu__wrap.uagb-rm__mobile-column-'.$attr['mcolumns'].':nth-child('.$attr['mcolumns'].'n+1)' => array(
|
2399 |
+
'margin-left'=> '0',
|
2400 |
+
'clear'=> 'left',
|
2401 |
+
),
|
2402 |
+
" .uagb-rm__title" => array(
|
2403 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
|
2404 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
|
2405 |
+
),
|
2406 |
+
" .uagb-rm__desc" => array(
|
2407 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
|
2408 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
|
2409 |
+
),
|
2410 |
+
" .uagb-rm__price" => array(
|
2411 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['priceFontSizeMobile'], $attr['priceFontSizeType'] ),
|
2412 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['priceLineHeightMobile'], $attr['priceLineHeightType'] ),
|
2413 |
+
)
|
2414 |
+
);
|
2415 |
+
|
2416 |
+
// @codingStandardsIgnoreEnd
|
2417 |
+
|
2418 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-rm-' . $id );
|
2419 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-rm-' . $id );
|
2420 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-rm-' . $id );
|
2421 |
+
|
2422 |
+
$generated_css = array(
|
2423 |
+
'desktop' => $desktop,
|
2424 |
+
'tablet' => $tablet,
|
2425 |
+
'mobile' => $mobile,
|
2426 |
+
);
|
2427 |
+
|
2428 |
+
return $generated_css;
|
2429 |
+
}
|
2430 |
+
|
2431 |
+
/**
|
2432 |
+
* Get Post Grid Block CSS
|
2433 |
+
*
|
2434 |
+
* @since 1.4.0
|
2435 |
+
* @param array $attr The block attributes.
|
2436 |
+
* @param string $id The selector ID.
|
2437 |
+
* @return array The Widget List.
|
2438 |
+
*/
|
2439 |
+
public static function get_post_grid_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2440 |
+
|
2441 |
+
$defaults = UAGB_Helper::$block_list['uagb/post-grid']['attributes'];
|
2442 |
+
|
2443 |
+
$attr = array_merge( $defaults, (array) $attr );
|
2444 |
+
|
2445 |
+
$selectors = self::get_post_selectors( $attr );
|
2446 |
+
|
2447 |
+
$m_selectors = self::get_post_mobile_selectors( $attr );
|
2448 |
+
|
2449 |
+
$t_selectors = self::get_post_tablet_selectors( $attr );
|
2450 |
+
|
2451 |
+
// @codingStandardsIgnoreEnd
|
2452 |
+
|
2453 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__grid-' . $id );
|
2454 |
+
|
2455 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__grid-' . $id );
|
2456 |
+
|
2457 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__grid-' . $id );
|
2458 |
+
|
2459 |
+
$generated_css = array(
|
2460 |
+
'desktop' => $desktop,
|
2461 |
+
'tablet' => $tablet,
|
2462 |
+
'mobile' => $mobile,
|
2463 |
+
);
|
2464 |
+
|
2465 |
+
return $generated_css;
|
2466 |
+
}
|
2467 |
+
|
2468 |
+
/**
|
2469 |
+
* Get Post Carousel Block CSS
|
2470 |
+
*
|
2471 |
+
* @since 1.4.0
|
2472 |
+
* @param array $attr The block attributes.
|
2473 |
+
* @param string $id The selector ID.
|
2474 |
+
* @return array The Widget List.
|
2475 |
+
*/
|
2476 |
+
public static function get_post_carousel_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2477 |
+
|
2478 |
+
$defaults = UAGB_Helper::$block_list['uagb/post-carousel']['attributes'];
|
2479 |
+
|
2480 |
+
$attr = array_merge( $defaults, (array) $attr );
|
2481 |
+
|
2482 |
+
$selectors = self::get_post_selectors( $attr );
|
2483 |
+
|
2484 |
+
$m_selectors = self::get_post_mobile_selectors( $attr );
|
2485 |
+
|
2486 |
+
$t_selectors = self::get_post_tablet_selectors( $attr );
|
2487 |
+
|
2488 |
+
$selectors[" .slick-arrow"] = array(
|
2489 |
+
"border-color" => $attr['arrowColor']
|
2490 |
+
);
|
2491 |
+
|
2492 |
+
$selectors[" .slick-arrow span"] = array(
|
2493 |
+
"color" => $attr['arrowColor'],
|
2494 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
|
2495 |
+
"width" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
|
2496 |
+
"height" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' )
|
2497 |
+
);
|
2498 |
+
|
2499 |
+
$selectors[" .slick-arrow svg"] = array(
|
2500 |
+
"fill" => $attr['arrowColor'],
|
2501 |
+
"width" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' ),
|
2502 |
+
"height" => UAGB_Helper::get_css_value( $attr['arrowSize'], 'px' )
|
2503 |
+
);
|
2504 |
+
|
2505 |
+
$selectors[" .slick-arrow"] = array(
|
2506 |
+
"border-color" => $attr['arrowColor'],
|
2507 |
+
"border-width" => UAGB_Helper::get_css_value( $attr['arrowBorderSize'], 'px' ),
|
2508 |
+
"border-radius" => UAGB_Helper::get_css_value( $attr['arrowBorderRadius'], 'px' )
|
2509 |
+
);
|
2510 |
+
|
2511 |
+
$selectors[".uagb-post-grid ul.slick-dots li.slick-active button:before"] = array(
|
2512 |
+
"color" => $attr['arrowColor']
|
2513 |
+
);
|
2514 |
+
|
2515 |
+
$selectors[".uagb-slick-carousel ul.slick-dots li button:before"] = array(
|
2516 |
+
"color" => $attr['arrowColor']
|
2517 |
+
);
|
2518 |
+
|
2519 |
+
if ( isset( $attr['arrowDots'] ) && 'dots' == $attr['arrowDots'] ) {
|
2520 |
+
|
2521 |
+
$selectors[".uagb-slick-carousel"] = array(
|
2522 |
+
"padding" => "0 0 35px 0"
|
2523 |
+
);
|
2524 |
+
}
|
2525 |
+
|
2526 |
+
// @codingStandardsIgnoreEnd
|
2527 |
+
|
2528 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__carousel-' . $id );
|
2529 |
+
|
2530 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__carousel-' . $id );
|
2531 |
+
|
2532 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__carousel-' . $id );
|
2533 |
+
|
2534 |
+
$generated_css = array(
|
2535 |
+
'desktop' => $desktop,
|
2536 |
+
'tablet' => $tablet,
|
2537 |
+
'mobile' => $mobile,
|
2538 |
+
);
|
2539 |
+
|
2540 |
+
return $generated_css;
|
2541 |
+
}
|
2542 |
+
|
2543 |
+
/**
|
2544 |
+
* Get Post Masonry Block CSS
|
2545 |
+
*
|
2546 |
+
* @since 1.4.0
|
2547 |
+
* @param array $attr The block attributes.
|
2548 |
+
* @param string $id The selector ID.
|
2549 |
+
* @return array The Widget List.
|
2550 |
+
*/
|
2551 |
+
public static function get_post_masonry_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
2552 |
+
|
2553 |
+
$defaults = UAGB_Helper::$block_list['uagb/post-masonry']['attributes'];
|
2554 |
+
|
2555 |
+
$attr = array_merge( $defaults, (array) $attr );
|
2556 |
+
|
2557 |
+
$selectors = self::get_post_selectors( $attr );
|
2558 |
+
|
2559 |
+
$m_selectors = self::get_post_mobile_selectors( $attr );
|
2560 |
+
|
2561 |
+
$t_selectors = self::get_post_tablet_selectors( $attr );
|
2562 |
+
|
2563 |
+
// @codingStandardsIgnoreEnd
|
2564 |
+
|
2565 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__masonry-' . $id );
|
2566 |
+
|
2567 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-post__masonry-' . $id );
|
2568 |
+
|
2569 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-post__masonry-' . $id );
|
2570 |
+
|
2571 |
+
$generated_css = array(
|
2572 |
+
'desktop' => $desktop,
|
2573 |
+
'tablet' => $tablet,
|
2574 |
+
'mobile' => $mobile,
|
2575 |
+
);
|
2576 |
+
|
2577 |
+
return $generated_css;
|
2578 |
+
}
|
2579 |
+
|
2580 |
+
/**
|
2581 |
+
* Get Post Block Selectors CSS
|
2582 |
+
*
|
2583 |
+
* @param array $attr The block attributes.
|
2584 |
+
* @since 1.4.0
|
2585 |
+
*/
|
2586 |
+
public static function get_post_selectors( $attr ) { // @codingStandardsIgnoreStart
|
2587 |
+
return array(
|
2588 |
+
" .uagb-post__items" => array(
|
2589 |
+
"margin-right" => UAGB_Helper::get_css_value( ( -$attr['rowGap']/2 ), 'px' ),
|
2590 |
+
"margin-left" => UAGB_Helper::get_css_value( ( -$attr['rowGap']/2 ), 'px' ),
|
2591 |
+
),
|
2592 |
+
" .uagb-post__items article" => array(
|
2593 |
+
"padding-right" => UAGB_Helper::get_css_value( ( $attr['rowGap']/2 ), 'px' ),
|
2594 |
+
"padding-left" => UAGB_Helper::get_css_value( ( $attr['rowGap']/2 ), 'px' ),
|
2595 |
+
"margin-bottom" => UAGB_Helper::get_css_value( ( $attr['columnGap'] ), 'px' )
|
2596 |
+
),
|
2597 |
+
" .uagb-post__inner-wrap" => array(
|
2598 |
+
"background" => $attr['bgColor']
|
2599 |
+
),
|
2600 |
+
" .uagb-post__text" => array(
|
2601 |
+
"padding" => UAGB_Helper::get_css_value( ( $attr['contentPadding'] ), 'px' ),
|
2602 |
+
"text-align" => $attr['align']
|
2603 |
+
),
|
2604 |
+
" .uagb-post__text .uagb-post__title" => array(
|
2605 |
+
"color"=> $attr['titleColor'],
|
2606 |
+
"font-size"=> UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
|
2607 |
+
'font-family' => $attr['titleFontFamily'],
|
2608 |
+
'font-weight' => $attr['titleFontWeight'],
|
2609 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
|
2610 |
+
"margin-bottom"=> UAGB_Helper::get_css_value( $attr['titleBottomSpace'], 'px' )
|
2611 |
+
),
|
2612 |
+
" .uagb-post__text .uagb-post__title a" => array(
|
2613 |
+
"color" => $attr['titleColor'],
|
2614 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSize'], $attr['titleFontSizeType'] ),
|
2615 |
+
'font-family' => $attr['titleFontFamily'],
|
2616 |
+
'font-weight' => $attr['titleFontWeight'],
|
2617 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeight'], $attr['titleLineHeightType'] ),
|
2618 |
+
),
|
2619 |
+
" .uagb-post__text .uagb-post-grid-byline" => array(
|
2620 |
+
"color"=> $attr['metaColor'],
|
2621 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
|
2622 |
+
'font-family' => $attr['metaFontFamily'],
|
2623 |
+
'font-weight' => $attr['metaFontWeight'],
|
2624 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
|
2625 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['metaBottomSpace'], 'px' )
|
2626 |
+
),
|
2627 |
+
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
|
2628 |
+
"color" => $attr['metaColor'],
|
2629 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
|
2630 |
+
'font-family' => $attr['metaFontFamily'],
|
2631 |
+
'font-weight' => $attr['metaFontWeight'],
|
2632 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
|
2633 |
+
),
|
2634 |
+
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
|
2635 |
+
"color" => $attr['metaColor'],
|
2636 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSize'], $attr['metaFontSizeType'] ),
|
2637 |
+
'font-family' => $attr['metaFontFamily'],
|
2638 |
+
'font-weight' => $attr['metaFontWeight'],
|
2639 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeight'], $attr['metaLineHeightType'] ),
|
2640 |
+
),
|
2641 |
+
" .uagb-post__text .uagb-post__excerpt" => array(
|
2642 |
+
"color" => $attr['excerptColor'],
|
2643 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSize'], $attr['excerptFontSizeType'] ),
|
2644 |
+
'font-family' => $attr['excerptFontFamily'],
|
2645 |
+
'font-weight' => $attr['excerptFontWeight'],
|
2646 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeight'], $attr['excerptLineHeightType'] ),
|
2647 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['excerptBottomSpace'], 'px' )
|
2648 |
+
),
|
2649 |
+
" .uagb-post__text .uagb-post__cta" => array(
|
2650 |
+
"color" => $attr['ctaColor'],
|
2651 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
2652 |
+
'font-family' => $attr['ctaFontFamily'],
|
2653 |
+
'font-weight' => $attr['ctaFontWeight'],
|
2654 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
|
2655 |
+
"background" => $attr['ctaBgColor'],
|
2656 |
+
"border-color" => $attr['borderColor'],
|
2657 |
+
"border-width" => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
|
2658 |
+
"border-radius" => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
2659 |
+
"border-style" => $attr['borderStyle'],
|
2660 |
+
),
|
2661 |
+
" .uagb-post__text .uagb-post__cta:hover" => array(
|
2662 |
+
"border-color"=> $attr['borderHColor']
|
2663 |
+
),
|
2664 |
+
" .uagb-post__text .uagb-post__cta a" => array(
|
2665 |
+
"color"=> $attr['ctaColor'],
|
2666 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSize'], $attr['ctaFontSizeType'] ),
|
2667 |
+
'font-family' => $attr['ctaFontFamily'],
|
2668 |
+
'font-weight' => $attr['ctaFontWeight'],
|
2669 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeight'], $attr['ctaLineHeightType'] ),
|
2670 |
+
"padding" => ( $attr['btnVPadding'] ) . "px " . ( $attr['btnHPadding'] ) . "px",
|
2671 |
+
),
|
2672 |
+
" .uagb-post__text .uagb-post__cta:hover" => array(
|
2673 |
+
"color"=> $attr['ctaHColor'],
|
2674 |
+
"background"=> $attr['ctaBgHColor']
|
2675 |
+
),
|
2676 |
+
" .uagb-post__text .uagb-post__cta:hover a" => array(
|
2677 |
+
"color"=> $attr['ctaHColor']
|
2678 |
+
),
|
2679 |
+
" .uagb-post__image:before" => array(
|
2680 |
+
"background-color" => $attr['bgOverlayColor'],
|
2681 |
+
"opacity" => ( $attr['overlayOpacity'] / 100 )
|
2682 |
+
),
|
2683 |
+
);
|
2684 |
+
// @codingStandardsIgnoreEnd
|
2685 |
+
}
|
2686 |
+
|
2687 |
+
/**
|
2688 |
+
* Get Post Block Selectors CSS for Mobile devices
|
2689 |
+
*
|
2690 |
+
* @param array $attr The block attributes.
|
2691 |
+
* @since 1.6.1
|
2692 |
+
*/
|
2693 |
+
public static function get_post_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
|
2694 |
+
|
2695 |
+
return array(
|
2696 |
+
" .uagb-post__text .uagb-post__title" => array(
|
2697 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
|
2698 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
|
2699 |
+
),
|
2700 |
+
" .uagb-post__text .uagb-post__title a" => array(
|
2701 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
|
2702 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
|
2703 |
+
),
|
2704 |
+
" .uagb-post__text .uagb-post-grid-byline" => array(
|
2705 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
|
2706 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
|
2707 |
+
),
|
2708 |
+
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
|
2709 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
|
2710 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
|
2711 |
+
),
|
2712 |
+
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
|
2713 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeMobile'], $attr['metaFontSizeType'] ),
|
2714 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightMobile'], $attr['metaLineHeightType'] ),
|
2715 |
+
),
|
2716 |
+
" .uagb-post__text .uagb-post__excerpt" => array(
|
2717 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSizeMobile'], $attr['excerptFontSizeType'] ),
|
2718 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeightMobile'], $attr['excerptLineHeightType'] ),
|
2719 |
+
),
|
2720 |
+
" .uagb-post__text .uagb-post__cta" => array(
|
2721 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
2722 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
|
2723 |
+
),
|
2724 |
+
" .uagb-post__text .uagb-post__cta a" => array(
|
2725 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeMobile'], $attr['ctaFontSizeType'] ),
|
2726 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightMobile'], $attr['ctaLineHeightType'] ),
|
2727 |
+
),
|
2728 |
+
" .uagb-post__text" => array(
|
2729 |
+
"padding" => ( $attr['contentPaddingMobile'] ) . "px",
|
2730 |
+
),
|
2731 |
+
);
|
2732 |
+
// @codingStandardsIgnoreEnd
|
2733 |
+
}
|
2734 |
+
|
2735 |
+
/**
|
2736 |
+
* Get Post Block Selectors CSS for Tablet devices
|
2737 |
+
*
|
2738 |
+
* @param array $attr The block attributes.
|
2739 |
+
* @since 1.8.2
|
2740 |
+
*/
|
2741 |
+
public static function get_post_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
|
2742 |
+
return array(
|
2743 |
+
" .uagb-post__text .uagb-post__title" => array(
|
2744 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
2745 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
|
2746 |
+
),
|
2747 |
+
" .uagb-post__text .uagb-post__title a" => array(
|
2748 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
2749 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
|
2750 |
+
),
|
2751 |
+
" .uagb-post__text .uagb-post-grid-byline" => array(
|
2752 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
|
2753 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
|
2754 |
+
),
|
2755 |
+
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
|
2756 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
|
2757 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
|
2758 |
+
),
|
2759 |
+
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
|
2760 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['metaFontSizeTablet'], $attr['metaFontSizeType'] ),
|
2761 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['metaLineHeightTablet'], $attr['metaLineHeightType'] ),
|
2762 |
+
),
|
2763 |
+
" .uagb-post__text .uagb-post__excerpt" => array(
|
2764 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['excerptFontSizeTablet'], $attr['excerptFontSizeType'] ),
|
2765 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['excerptLineHeightTablet'], $attr['excerptLineHeightType'] ),
|
2766 |
+
),
|
2767 |
+
" .uagb-post__text .uagb-post__cta" => array(
|
2768 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
2769 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
|
2770 |
+
),
|
2771 |
+
" .uagb-post__text .uagb-post__cta a" => array(
|
2772 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['ctaFontSizeTablet'], $attr['ctaFontSizeType'] ),
|
2773 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['ctaLineHeightTablet'], $attr['ctaLineHeightType'] ),
|
2774 |
+
),
|
2775 |
+
);
|
2776 |
+
// @codingStandardsIgnoreEnd
|
2777 |
+
}
|
2778 |
+
|
2779 |
+
/**
|
2780 |
+
* Get Blockquote CSS
|
2781 |
+
*
|
2782 |
+
* @since 1.8.2
|
2783 |
+
* @param array $attr The block attributes.
|
2784 |
+
* @param string $id The selector ID.
|
2785 |
+
* @return array The Widget List.
|
2786 |
+
*/
|
2787 |
+
public static function get_blockquote_css( $attr, $id ) {
|
2788 |
+
// @codingStandardsIgnoreStart
|
2789 |
+
|
2790 |
+
$defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
|
2791 |
+
|
2792 |
+
$attr = array_merge( $defaults, (array) $attr );
|
2793 |
+
|
2794 |
+
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
2795 |
+
|
2796 |
+
$content_align ="center";
|
2797 |
+
|
2798 |
+
if( 'left' === $attr['align'] ){
|
2799 |
+
$content_align =" flex-start";
|
2800 |
+
}
|
2801 |
+
if( 'right' === $attr['align'] ){
|
2802 |
+
$content_align =" flex-end";
|
2803 |
+
}
|
2804 |
+
|
2805 |
+
$author_space = $attr['authorSpace'];
|
2806 |
+
|
2807 |
+
if( 'center' !== $attr['align'] || $attr['skinStyle'] == "border" ){
|
2808 |
+
$author_space = 0;
|
2809 |
+
}
|
2810 |
+
|
2811 |
+
//Set align to left for border style.
|
2812 |
+
$text_align = $attr['align'];
|
2813 |
+
|
2814 |
+
if( 'border' === $attr['skinStyle'] ){
|
2815 |
+
$text_align = 'left';
|
2816 |
+
}
|
2817 |
+
|
2818 |
+
$selectors = array(
|
2819 |
+
" .uagb-blockquote__content" => array(
|
2820 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSize'], $attr['descFontSizeType'] ),
|
2821 |
+
'font-family' => $attr['descFontFamily'],
|
2822 |
+
'font-weight' => $attr['descFontWeight'],
|
2823 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeight'], $attr['descLineHeightType'] ),
|
2824 |
+
"color" => $attr['descColor'],
|
2825 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ),
|
2826 |
+
"text-align" => $text_align,
|
2827 |
+
),
|
2828 |
+
" cite.uagb-blockquote__author" => array(
|
2829 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSize'], $attr['authorFontSizeType'] ),
|
2830 |
+
'font-family' => $attr['authorFontFamily'],
|
2831 |
+
'font-weight' => $attr['authorFontWeight'],
|
2832 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeight'], $attr['authorLineHeightType'] ),
|
2833 |
+
"color" => $attr['authorColor'],
|
2834 |
+
"text-align" => $text_align,
|
2835 |
+
),
|
2836 |
+
" .uagb-blockquote__skin-border blockquote.uagb-blockquote" => array(
|
2837 |
+
"border-color" => $attr['borderColor'],
|
2838 |
+
"border-left-style" => $attr['borderStyle'],
|
2839 |
+
"border-left-width" => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ),
|
2840 |
+
"padding-left" => UAGB_Helper::get_css_value( $attr['borderGap'], 'px' ),
|
2841 |
+
"padding-top" => UAGB_Helper::get_css_value( $attr['verticalPadding'], 'px' ),
|
2842 |
+
"padding-bottom" => UAGB_Helper::get_css_value( $attr['verticalPadding'], 'px' ),
|
2843 |
+
),
|
2844 |
+
|
2845 |
+
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
|
2846 |
+
"background" => $attr['quoteBgColor'],
|
2847 |
+
"border-radius" => UAGB_Helper::get_css_value( $attr['quoteBorderRadius'],'%' ),
|
2848 |
+
"margin-top" => UAGB_Helper::get_css_value( $attr['quoteTopMargin'], 'px' ),
|
2849 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['quoteBottomMargin'], 'px' ),
|
2850 |
+
"margin-left" => UAGB_Helper::get_css_value( $attr['quoteLeftMargin'], 'px' ),
|
2851 |
+
"margin-right" => UAGB_Helper::get_css_value( $attr['quoteRightMargin'], 'px' ),
|
2852 |
+
"padding" => UAGB_Helper::get_css_value( $attr['quotePadding'], $attr['quotePaddingType'] ),
|
2853 |
+
),
|
2854 |
+
|
2855 |
+
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
|
2856 |
+
"width" => UAGB_Helper::get_css_value( $attr['quoteSize'], $attr['quoteSizeType'] ),
|
2857 |
+
"height" => UAGB_Helper::get_css_value( $attr['quoteSize'], $attr['quoteSizeType'] ),
|
2858 |
+
),
|
2859 |
+
|
2860 |
+
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg" => array(
|
2861 |
+
"fill" => $attr['quoteColor'],
|
2862 |
+
),
|
2863 |
+
|
2864 |
+
" .uagb-blockquote__style-style_1 .uagb-blockquote" => array(
|
2865 |
+
"text-align" => $attr['align'],
|
2866 |
+
),
|
2867 |
+
|
2868 |
+
" .uagb-blockquote__author-wrap" => array(
|
2869 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $author_space, 'px' ),
|
2870 |
+
),
|
2871 |
+
" .uagb-blockquote__author-image img" => array(
|
2872 |
+
"width" => UAGB_Helper::get_css_value( $attr['authorImageWidth'], 'px' ),
|
2873 |
+
"height" => UAGB_Helper::get_css_value( $attr['authorImageWidth'], 'px' ),
|
2874 |
+
"border-radius" => UAGB_Helper::get_css_value( $attr['authorImgBorderRadius'], '%' )
|
2875 |
+
),
|
2876 |
+
|
2877 |
+
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon:hover svg" => array(
|
2878 |
+
"fill" => $attr['quoteHoverColor'],
|
2879 |
+
),
|
2880 |
+
|
2881 |
+
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap:hover" => array(
|
2882 |
+
"background" => $attr['quoteBgHoverColor'],
|
2883 |
+
),
|
2884 |
+
|
2885 |
+
" .uagb-blockquote__skin-border blockquote.uagb-blockquote:hover" => array(
|
2886 |
+
"border-left-color" => $attr['borderHoverColor'],
|
2887 |
+
),
|
2888 |
+
);
|
2889 |
+
|
2890 |
+
if( $attr['enableTweet'] ){
|
2891 |
+
$selectors[" a.uagb-blockquote__tweet-button"] = array(
|
2892 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
|
2893 |
+
'font-family' => $attr['tweetBtnFontFamily'],
|
2894 |
+
'font-weight' => $attr['tweetBtnFontWeight'],
|
2895 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeight'], $attr['tweetBtnLineHeightType'] ),
|
2896 |
+
);
|
2897 |
+
|
2898 |
+
$selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button"] = array(
|
2899 |
+
"color" => $attr['tweetLinkColor'],
|
2900 |
+
);
|
2901 |
+
|
2902 |
+
$selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button svg"] = array(
|
2903 |
+
"fill" => $attr['tweetLinkColor'],
|
2904 |
+
);
|
2905 |
+
|
2906 |
+
$selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button"] = array(
|
2907 |
+
"color" => $attr['tweetBtnColor'],
|
2908 |
+
"background-color" => $attr['tweetBtnBgColor'],
|
2909 |
+
"padding-left" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
|
2910 |
+
"padding-right" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
|
2911 |
+
"padding-top" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
|
2912 |
+
"padding-bottom" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
|
2913 |
+
);
|
2914 |
+
|
2915 |
+
$selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button svg"] = array(
|
2916 |
+
"fill" => $attr['tweetBtnColor'],
|
2917 |
+
);
|
2918 |
+
|
2919 |
+
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button"] = array(
|
2920 |
+
"color" => $attr['tweetBtnColor'],
|
2921 |
+
"background-color" => $attr['tweetBtnBgColor'],
|
2922 |
+
"padding-left" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
|
2923 |
+
"padding-right" => UAGB_Helper::get_css_value( $attr['tweetBtnHrPadding'], 'px' ),
|
2924 |
+
"padding-top" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
|
2925 |
+
"padding-bottom" => UAGB_Helper::get_css_value( $attr['tweetBtnVrPadding'], 'px' ),
|
2926 |
+
);
|
2927 |
+
|
2928 |
+
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button svg"] = array(
|
2929 |
+
"fill" => $attr['tweetBtnColor'],
|
2930 |
+
);
|
2931 |
+
|
2932 |
+
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before"] = array(
|
2933 |
+
"border-right-color" => $attr['tweetBtnBgColor'],
|
2934 |
+
);
|
2935 |
+
|
2936 |
+
$selectors[" a.uagb-blockquote__tweet-button svg"] = array(
|
2937 |
+
"width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
|
2938 |
+
"height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSize'], $attr['tweetBtnFontSizeType'] ),
|
2939 |
+
);
|
2940 |
+
|
2941 |
+
$selectors[" .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button svg"] = array(
|
2942 |
+
"margin-right" => UAGB_Helper::get_css_value( $attr['tweetIconSpacing'], 'px' ),
|
2943 |
+
);
|
2944 |
+
|
2945 |
+
// Hover CSS.
|
2946 |
+
$selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover"] = array(
|
2947 |
+
"color" => $attr['tweetBtnHoverColor'],
|
2948 |
+
);
|
2949 |
+
|
2950 |
+
$selectors[" .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button:hover svg"] = array(
|
2951 |
+
"fill" => $attr['tweetBtnHoverColor'],
|
2952 |
+
);
|
2953 |
+
|
2954 |
+
$selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover"] = array(
|
2955 |
+
"color" => $attr['tweetBtnHoverColor'],
|
2956 |
+
"background-color" => $attr['tweetBtnBgHoverColor'],
|
2957 |
+
);
|
2958 |
+
|
2959 |
+
$selectors[" .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button:hover svg"] = array(
|
2960 |
+
"fill" => $attr['tweetBtnHoverColor'],
|
2961 |
+
);
|
2962 |
+
|
2963 |
+
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover"] = array(
|
2964 |
+
"color" => $attr['tweetBtnHoverColor'],
|
2965 |
+
"background-color" => $attr['tweetBtnBgHoverColor'],
|
2966 |
+
);
|
2967 |
+
|
2968 |
+
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover svg"] = array(
|
2969 |
+
"fill" => $attr['tweetBtnHoverColor'],
|
2970 |
+
);
|
2971 |
+
|
2972 |
+
$selectors[" .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:hover:before"] = array(
|
2973 |
+
"border-right-color" => $attr['tweetBtnBgHoverColor'],
|
2974 |
+
);
|
2975 |
+
}
|
2976 |
+
|
2977 |
+
$t_selectors = array(
|
2978 |
+
" .uagb-blockquote__content" => array(
|
2979 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeTablet'], $attr['descFontSizeType'] ),
|
2980 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightTablet'], $attr['descLineHeightType'] ),
|
2981 |
+
),
|
2982 |
+
" cite.uagb-blockquote__author" =>array(
|
2983 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeTablet'], $attr['authorFontSizeType'] ),
|
2984 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightTablet'], $attr['authorLineHeightType'] ),
|
2985 |
+
),
|
2986 |
+
" a.uagb-blockquote__tweet-button" => array(
|
2987 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
|
2988 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeightTablet'], $attr['tweetBtnLineHeightType'] ),
|
2989 |
+
),
|
2990 |
+
" a.uagb-blockquote__tweet-button svg" => array(
|
2991 |
+
"width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
|
2992 |
+
"height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeTablet'], $attr['tweetBtnFontSizeType'] ),
|
2993 |
+
),
|
2994 |
+
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
|
2995 |
+
"padding" => UAGB_Helper::get_css_value( $attr['quotePaddingTablet'], $attr['quotePaddingType'] ),
|
2996 |
+
),
|
2997 |
+
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
|
2998 |
+
"width" => UAGB_Helper::get_css_value( $attr['quoteSizeTablet'], $attr['quoteSizeType'] ),
|
2999 |
+
"height" => UAGB_Helper::get_css_value( $attr['quoteSizeTablet'], $attr['quoteSizeType'] ),
|
3000 |
+
),
|
3001 |
+
);
|
3002 |
+
|
3003 |
+
$m_selectors = array(
|
3004 |
+
" .uagb-blockquote__content" => array(
|
3005 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['descFontSizeMobile'], $attr['descFontSizeType'] ),
|
3006 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['descLineHeightMobile'], $attr['descLineHeightType'] ),
|
3007 |
+
),
|
3008 |
+
" cite.uagb-blockquote__author" => array(
|
3009 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['authorFontSizeMobile'], $attr['authorFontSizeType'] ),
|
3010 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['authorLineHeightMobile'], $attr['authorLineHeightType'] ),
|
3011 |
+
),
|
3012 |
+
" a.uagb-blockquote__tweet-button" => array(
|
3013 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
|
3014 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['tweetBtnLineHeightMobile'], $attr['tweetBtnLineHeightType'] ),
|
3015 |
+
),
|
3016 |
+
" a.uagb-blockquote__tweet-button svg" => array(
|
3017 |
+
"width" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
|
3018 |
+
"height" => UAGB_Helper::get_css_value( $attr['tweetBtnFontSizeMobile'], $attr['tweetBtnFontSizeType'] ),
|
3019 |
+
),
|
3020 |
+
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap" => array(
|
3021 |
+
"padding" => UAGB_Helper::get_css_value( $attr['quotePaddingMobile'], $attr['quotePaddingType'] ),
|
3022 |
+
),
|
3023 |
+
" .uagb-blockquote__skin-quotation .uagb-blockquote__icon" => array(
|
3024 |
+
"width" => UAGB_Helper::get_css_value( $attr['quoteSizeMobile'], $attr['quoteSizeType'] ),
|
3025 |
+
"height" => UAGB_Helper::get_css_value( $attr['quoteSizeMobile'], $attr['quoteSizeType'] ),
|
3026 |
+
),
|
3027 |
+
);
|
3028 |
+
|
3029 |
+
// @codingStandardsIgnoreEnd
|
3030 |
+
|
3031 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-blockquote-' . $id );
|
3032 |
+
|
3033 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-blockquote-' . $id );
|
3034 |
+
|
3035 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-blockquote-' . $id );
|
3036 |
+
|
3037 |
+
$generated_css = array(
|
3038 |
+
'desktop' => $desktop,
|
3039 |
+
'tablet' => $tablet,
|
3040 |
+
'mobile' => $mobile,
|
3041 |
+
);
|
3042 |
+
|
3043 |
+
return $generated_css;
|
3044 |
+
}
|
3045 |
+
|
3046 |
+
/**
|
3047 |
+
* Get Timeline Block Desktop Selectors CSS
|
3048 |
+
*
|
3049 |
+
* @param array $attr The block attributes.
|
3050 |
+
* @since 1.8.2
|
3051 |
+
*/
|
3052 |
+
public static function get_timeline_selectors( $attr ) { // @codingStandardsIgnoreStart
|
3053 |
+
$selectors = array(
|
3054 |
+
" .uagb-timeline__heading-text" => array(
|
3055 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' )
|
3056 |
+
),
|
3057 |
+
" .uagb-timeline-desc-content" => array(
|
3058 |
+
"text-align" => $attr['align'],
|
3059 |
+
"color" => $attr['subHeadingColor'],
|
3060 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSize'], $attr['subHeadFontSizeType'] ),
|
3061 |
+
'font-family' => $attr['subHeadFontFamily'],
|
3062 |
+
'font-weight' => $attr['subHeadFontWeight'],
|
3063 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeight'], $attr['subHeadLineHeightType'] ),
|
3064 |
+
),
|
3065 |
+
' .uagb-timeline__events-new' => array(
|
3066 |
+
'text-align' => $attr['align']
|
3067 |
+
),
|
3068 |
+
' .uagb-timeline__date-inner' => array(
|
3069 |
+
'text-align' => $attr['align']
|
3070 |
+
),
|
3071 |
+
' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
|
3072 |
+
'border-left-color' => $attr['backgroundColor']
|
3073 |
+
),
|
3074 |
+
' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array(
|
3075 |
+
'border-left-color' => $attr['backgroundColor']
|
3076 |
+
),
|
3077 |
+
' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
|
3078 |
+
'border-right-color' => $attr['backgroundColor']
|
3079 |
+
),
|
3080 |
+
' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array(
|
3081 |
+
'border-right-color' => $attr['backgroundColor']
|
3082 |
+
),
|
3083 |
+
' .uagb-timeline__line__inner' => array(
|
3084 |
+
'background-color' => $attr['separatorFillColor']
|
3085 |
+
),
|
3086 |
+
' .uagb-timeline__line' => array(
|
3087 |
+
'background-color' => $attr['separatorColor'],
|
3088 |
+
'width' => UAGB_Helper::get_css_value( $attr['separatorwidth'], 'px' )
|
3089 |
+
),
|
3090 |
+
' .uagb-timeline__right-block .uagb-timeline__line' => array(
|
3091 |
+
'right' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
|
3092 |
+
),
|
3093 |
+
' .uagb-timeline__left-block .uagb-timeline__line' => array(
|
3094 |
+
'left' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
|
3095 |
+
),
|
3096 |
+
' .uagb-timeline__center-block .uagb-timeline__line' => array(
|
3097 |
+
'right' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )',
|
3098 |
+
),
|
3099 |
+
' .uagb-timeline__marker' => array(
|
3100 |
+
'background-color' => $attr['separatorBg'],
|
3101 |
+
'min-height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3102 |
+
'min-width' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3103 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3104 |
+
'border' => $attr['borderwidth'].'px solid'.$attr['separatorBorder'],
|
3105 |
+
),
|
3106 |
+
' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow' => array(
|
3107 |
+
'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3108 |
+
),
|
3109 |
+
' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow' => array(
|
3110 |
+
'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3111 |
+
),
|
3112 |
+
' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow' => array(
|
3113 |
+
'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3114 |
+
),
|
3115 |
+
' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow' => array(
|
3116 |
+
'height' => UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ),
|
3117 |
+
),
|
3118 |
+
' .uagb-timeline__center-block .uagb-timeline__marker' => array(
|
3119 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3120 |
+
'margin-right'=> UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3121 |
+
),
|
3122 |
+
' .uagb-timeline__field:not(:last-child)' => array(
|
3123 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['verticalSpace'], 'px' ),
|
3124 |
+
),
|
3125 |
+
' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
|
3126 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['dateBottomspace'], 'px' ),
|
3127 |
+
'color' => $attr['dateColor'],
|
3128 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ),
|
3129 |
+
'font-family' => $attr['dateFontFamily'],
|
3130 |
+
'font-weight' => $attr['dateFontWeight'],
|
3131 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeight'], $attr['dateLineHeightType'] ),
|
3132 |
+
'text-align' => $attr['align'],
|
3133 |
+
),
|
3134 |
+
' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
|
3135 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3136 |
+
),
|
3137 |
+
' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
|
3138 |
+
'margin-right' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3139 |
+
),
|
3140 |
+
' .uagb-timeline__date-new' => array(
|
3141 |
+
'color' => $attr['dateColor'],
|
3142 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ),
|
3143 |
+
'font-family' => $attr['dateFontFamily'],
|
3144 |
+
'font-weight' => $attr['dateFontWeight'],
|
3145 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeight'], $attr['dateLineHeightType'] ),
|
3146 |
+
),
|
3147 |
+
' .uagb-timeline__events-inner-new' => array(
|
3148 |
+
'background-color' => $attr['backgroundColor'],
|
3149 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ),
|
3150 |
+
'padding'=> UAGB_Helper::get_css_value( $attr['bgPadding'], 'px' ),
|
3151 |
+
),
|
3152 |
+
' .uagb-timeline__main .uagb-timeline__icon-new' => array(
|
3153 |
+
'color' => $attr['iconColor'],
|
3154 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
3155 |
+
'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ),
|
3156 |
+
),
|
3157 |
+
' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg' => array(
|
3158 |
+
'fill'=> $attr['iconFocus'],
|
3159 |
+
),
|
3160 |
+
' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array(
|
3161 |
+
'color'=> $attr['iconFocus'],
|
3162 |
+
),
|
3163 |
+
' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon' => array(
|
3164 |
+
'background' => $attr['iconBgFocus'],
|
3165 |
+
'border-color'=> $attr['borderFocus'],
|
3166 |
+
),
|
3167 |
+
' .uagb-timeline__main .uagb-timeline__icon-new svg' => array(
|
3168 |
+
'fill'=> $attr['iconColor'],
|
3169 |
+
),
|
3170 |
+
);
|
3171 |
+
|
3172 |
+
return $selectors;
|
3173 |
+
// @codingStandardsIgnoreEnd
|
3174 |
+
}
|
3175 |
+
|
3176 |
+
/**
|
3177 |
+
* Get Timeline Block Tablet Selectors CSS.
|
3178 |
+
*
|
3179 |
+
* @param array $attr The block attributes.
|
3180 |
+
* @since 1.8.2
|
3181 |
+
*/
|
3182 |
+
public static function get_timeline_tablet_selectors( $attr ) { // @codingStandardsIgnoreStart
|
3183 |
+
$tablet_selector = array(
|
3184 |
+
" .uagb-timeline-desc-content" => array(
|
3185 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ),
|
3186 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ),
|
3187 |
+
),
|
3188 |
+
' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
|
3189 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
|
3190 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
|
3191 |
+
),
|
3192 |
+
' .uagb-timeline__date-new' => array(
|
3193 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ),
|
3194 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ),
|
3195 |
+
),
|
3196 |
+
' .uagb-timeline__center-block .uagb-timeline__marker' => array(
|
3197 |
+
'margin-left' => 0,
|
3198 |
+
'margin-right' => 0,
|
3199 |
+
),
|
3200 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading" => array(
|
3201 |
+
"text-align" => 'left',
|
3202 |
+
),
|
3203 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content" => array(
|
3204 |
+
"text-align" => 'left',
|
3205 |
+
),
|
3206 |
+
' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new' => array(
|
3207 |
+
'text-align' => 'left'
|
3208 |
+
),
|
3209 |
+
' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner' => array(
|
3210 |
+
'text-align' => 'left'
|
3211 |
+
),
|
3212 |
+
' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
|
3213 |
+
'text-align'=> 'left',
|
3214 |
+
),
|
3215 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
|
3216 |
+
"border-right-color" => $attr['backgroundColor'],
|
3217 |
+
),
|
3218 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line" => array(
|
3219 |
+
'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
3220 |
+
),
|
3221 |
+
);
|
3222 |
+
|
3223 |
+
return $tablet_selector;
|
3224 |
+
// @codingStandardsIgnoreEnd
|
3225 |
+
}
|
3226 |
+
|
3227 |
+
/**
|
3228 |
+
* Get Timeline Block Mobile Selectors CSS.
|
3229 |
+
*
|
3230 |
+
* @param array $attr The block attributes.
|
3231 |
+
* @since 1.8.2
|
3232 |
+
*/
|
3233 |
+
public static function get_timeline_mobile_selectors( $attr ) { // @codingStandardsIgnoreStart
|
3234 |
+
$m_selectors = array(
|
3235 |
+
" .uagb-timeline-desc-content" => array(
|
3236 |
+
"font-size" => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ),
|
3237 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ),
|
3238 |
+
),
|
3239 |
+
' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
|
3240 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
|
3241 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
|
3242 |
+
),
|
3243 |
+
' .uagb-timeline__date-new' => array(
|
3244 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ),
|
3245 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ),
|
3246 |
+
),
|
3247 |
+
' .uagb-timeline__center-block .uagb-timeline__marker' => array(
|
3248 |
+
'margin-left' => 0,
|
3249 |
+
'margin-right' => 0,
|
3250 |
+
),
|
3251 |
+
' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left' => array(
|
3252 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3253 |
+
),
|
3254 |
+
' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right' => array(
|
3255 |
+
'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ),
|
3256 |
+
),
|
3257 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading" => array(
|
3258 |
+
"text-align" => 'left',
|
3259 |
+
),
|
3260 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content" => array(
|
3261 |
+
"text-align" => 'left',
|
3262 |
+
),
|
3263 |
+
' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new' => array(
|
3264 |
+
'text-align' => 'left'
|
3265 |
+
),
|
3266 |
+
' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner' => array(
|
3267 |
+
'text-align' => 'left'
|
3268 |
+
),
|
3269 |
+
' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner' => array(
|
3270 |
+
'text-align'=> 'left',
|
3271 |
+
),
|
3272 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after" => array(
|
3273 |
+
"border-right-color" => $attr['backgroundColor'],
|
3274 |
+
),
|
3275 |
+
" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line" => array(
|
3276 |
+
'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
3277 |
+
),
|
3278 |
+
);
|
3279 |
+
return $m_selectors;
|
3280 |
+
// @codingStandardsIgnoreEnd
|
3281 |
+
}
|
3282 |
+
|
3283 |
+
/**
|
3284 |
+
* Get Contact Form 7 CSS
|
3285 |
+
*
|
3286 |
+
* @param array $attr The block attributes.
|
3287 |
+
* @param string $id The selector ID.
|
3288 |
+
* @since 1.10.0
|
3289 |
+
*/
|
3290 |
+
public static function get_cf7_styler_css( $attr, $id ) {
|
3291 |
+
$defaults = UAGB_Helper::$block_list['uagb/cf7-styler']['attributes'];
|
3292 |
+
|
3293 |
+
$attr = array_merge( $defaults, (array) $attr );
|
3294 |
+
|
3295 |
+
$selectors = array(
|
3296 |
+
' .wpcf7 .wpcf7-form' => array(
|
3297 |
+
'text-align' => $attr['align'],
|
3298 |
+
),
|
3299 |
+
' .wpcf7 form.wpcf7-form:not(input)' => array(
|
3300 |
+
'color' => $attr['fieldLabelColor'],
|
3301 |
+
),
|
3302 |
+
' .wpcf7 input:not([type=submit])' => array(
|
3303 |
+
'background-color' => $attr['fieldBgColor'],
|
3304 |
+
'color' => $attr['fieldInputColor'],
|
3305 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3306 |
+
'border-color' => $attr['fieldBorderColor'],
|
3307 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3308 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3309 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3310 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3311 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3312 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3313 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3314 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3315 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3316 |
+
'font-family' => $attr['inputFontFamily'],
|
3317 |
+
'font-weight' => $attr['inputFontWeight'],
|
3318 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3319 |
+
'text-align' => $attr['align'],
|
3320 |
+
),
|
3321 |
+
' .wpcf7 select' => array(
|
3322 |
+
'background-color' => $attr['fieldBgColor'],
|
3323 |
+
'color' => $attr['fieldLabelColor'],
|
3324 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3325 |
+
'border-color' => $attr['fieldBorderColor'],
|
3326 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3327 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3328 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3329 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3330 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3331 |
+
'font-family' => $attr['inputFontFamily'],
|
3332 |
+
'font-weight' => $attr['inputFontWeight'],
|
3333 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3334 |
+
'text-align' => $attr['align'],
|
3335 |
+
),
|
3336 |
+
' .wpcf7 select.wpcf7-form-control.wpcf7-select:not([multiple="multiple"])' => array(
|
3337 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3338 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3339 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3340 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3341 |
+
),
|
3342 |
+
' .wpcf7 select.wpcf7-select[multiple="multiple"] option' => array(
|
3343 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3344 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3345 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3346 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3347 |
+
),
|
3348 |
+
' .wpcf7 textarea' => array(
|
3349 |
+
'background-color' => $attr['fieldBgColor'],
|
3350 |
+
'color' => $attr['fieldInputColor'],
|
3351 |
+
'border-color' => $attr['fieldBorderColor'],
|
3352 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3353 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3354 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3355 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3356 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3357 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3358 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3359 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3360 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3361 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3362 |
+
'font-family' => $attr['inputFontFamily'],
|
3363 |
+
'font-weight' => $attr['inputFontWeight'],
|
3364 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3365 |
+
'text-align' => $attr['align'],
|
3366 |
+
),
|
3367 |
+
' .wpcf7 textarea::placeholder' => array(
|
3368 |
+
'color' => $attr['fieldInputColor'],
|
3369 |
+
'text-align' => $attr['align'],
|
3370 |
+
),
|
3371 |
+
' .wpcf7 input::placeholder' => array(
|
3372 |
+
'color' => $attr['fieldInputColor'],
|
3373 |
+
'text-align' => $attr['align'],
|
3374 |
+
),
|
3375 |
+
' .wpcf7 form label' => array(
|
3376 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
|
3377 |
+
'font-family' => $attr['labelFontFamily'],
|
3378 |
+
'font-weight' => $attr['labelFontWeight'],
|
3379 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
|
3380 |
+
),
|
3381 |
+
' .wpcf7 form .wpcf7-list-item-label' => array(
|
3382 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
|
3383 |
+
'font-family' => $attr['labelFontFamily'],
|
3384 |
+
'font-weight' => $attr['labelFontWeight'],
|
3385 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
|
3386 |
+
),
|
3387 |
+
|
3388 |
+
// Focus.
|
3389 |
+
' .wpcf7 form input:not([type=submit]):focus' => array(
|
3390 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3391 |
+
),
|
3392 |
+
' .wpcf7 form select:focus' => array(
|
3393 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3394 |
+
),
|
3395 |
+
' .wpcf7 textarea:focus' => array(
|
3396 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3397 |
+
),
|
3398 |
+
|
3399 |
+
// Submit button.
|
3400 |
+
' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
|
3401 |
+
'color' => $attr['buttonTextColor'],
|
3402 |
+
'background-color' => $attr['buttonBgColor'],
|
3403 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSize'], $attr['buttonFontSizeType'] ),
|
3404 |
+
'font-family' => $attr['buttonFontFamily'],
|
3405 |
+
'font-weight' => $attr['buttonFontWeight'],
|
3406 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeight'], $attr['buttonLineHeightType'] ),
|
3407 |
+
'border-color' => $attr['buttonBorderColor'],
|
3408 |
+
'border-style' => $attr['buttonBorderStyle'],
|
3409 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['buttonBorderWidth'], 'px' ),
|
3410 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['buttonBorderRadius'], $attr['buttonBorderRadiusType'] ),
|
3411 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
|
3412 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
|
3413 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
|
3414 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
|
3415 |
+
),
|
3416 |
+
' .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover' => array(
|
3417 |
+
'color' => $attr['buttonTextHoverColor'],
|
3418 |
+
'background-color' => $attr['buttonBgHoverColor'],
|
3419 |
+
'border-color' => $attr['buttonBorderHoverColor'],
|
3420 |
+
),
|
3421 |
+
|
3422 |
+
// Check box Radio.
|
3423 |
+
' .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
|
3424 |
+
'background-color' => $attr['fieldBgColor'],
|
3425 |
+
'color' => $attr['fieldInputColor'],
|
3426 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3427 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3428 |
+
),
|
3429 |
+
' .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
|
3430 |
+
'background-color' => $attr['fieldBgColor'],
|
3431 |
+
'color' => $attr['fieldInputColor'],
|
3432 |
+
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3433 |
+
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3434 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3435 |
+
'border-color' => $attr['fieldBorderColor'],
|
3436 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3437 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3438 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3439 |
+
),
|
3440 |
+
' .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
|
3441 |
+
'background-color' => $attr['fieldBgColor'],
|
3442 |
+
'color' => $attr['fieldInputColor'],
|
3443 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3444 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3445 |
+
),
|
3446 |
+
' .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
|
3447 |
+
'background-color' => $attr['fieldBgColor'],
|
3448 |
+
'color' => $attr['fieldInputColor'],
|
3449 |
+
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3450 |
+
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3451 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3452 |
+
'border-color' => $attr['fieldBorderColor'],
|
3453 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3454 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3455 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3456 |
+
),
|
3457 |
+
' .wpcf7 .wpcf7-radio input[type="radio"] + span:before' => array(
|
3458 |
+
'background-color' => $attr['fieldBgColor'],
|
3459 |
+
'color' => $attr['fieldInputColor'],
|
3460 |
+
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3461 |
+
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3462 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3463 |
+
'border-color' => $attr['fieldBorderColor'],
|
3464 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3465 |
+
),
|
3466 |
+
' .wpcf7 .wpcf7-radio input[type="radio"]:checked + span:before' => array(
|
3467 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3468 |
+
),
|
3469 |
+
|
3470 |
+
// Underline border.
|
3471 |
+
' .uagb-cf7-styler__field-style-underline .wpcf7 input:not([type=submit])' => array(
|
3472 |
+
'border-style' => 'none',
|
3473 |
+
'border-bottom-color' => $attr['fieldBorderColor'],
|
3474 |
+
'border-bottom-style' => 'solid',
|
3475 |
+
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3476 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3477 |
+
),
|
3478 |
+
' .uagb-cf7-styler__field-style-underline textarea' => array(
|
3479 |
+
'border-style' => 'none',
|
3480 |
+
'border-bottom-color' => $attr['fieldBorderColor'],
|
3481 |
+
'border-bottom-style' => 'solid',
|
3482 |
+
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3483 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3484 |
+
),
|
3485 |
+
' .uagb-cf7-styler__field-style-underline select' => array(
|
3486 |
+
'border-style' => 'none',
|
3487 |
+
'border-bottom-color' => $attr['fieldBorderColor'],
|
3488 |
+
'border-bottom-style' => 'solid',
|
3489 |
+
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3490 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3491 |
+
),
|
3492 |
+
' .uagb-cf7-styler__field-style-underline textarea' => array(
|
3493 |
+
'border-style' => 'none',
|
3494 |
+
'border-bottom-color' => $attr['fieldBorderColor'],
|
3495 |
+
'border-bottom-style' => 'solid',
|
3496 |
+
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3497 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3498 |
+
),
|
3499 |
+
' .uagb-cf7-styler__field-style-underline .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
|
3500 |
+
'border-style' => 'solid',
|
3501 |
+
),
|
3502 |
+
' .uagb-cf7-styler__field-style-underline .wpcf7 input[type="radio"] + span:before' => array(
|
3503 |
+
'border-style' => 'solid',
|
3504 |
+
),
|
3505 |
+
' .uagb-cf7-styler__field-style-underline .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
|
3506 |
+
'border-style' => 'solid',
|
3507 |
+
),
|
3508 |
+
' .uagb-cf7-styler__field-style-box .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
|
3509 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3510 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3511 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3512 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3513 |
+
),
|
3514 |
+
' .uagb-cf7-styler__field-style-box .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
|
3515 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3516 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3517 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3518 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px / 1.2 )',
|
3519 |
+
),
|
3520 |
+
' .wpcf7-radio input[type="radio"]:checked + span:before' => array(
|
3521 |
+
'background-color' => $attr['fieldInputColor'],
|
3522 |
+
),
|
3523 |
+
|
3524 |
+
// Override check box.
|
3525 |
+
' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"] + span:before' => array(
|
3526 |
+
'background-color' => $attr['radioCheckBgColor'],
|
3527 |
+
'color' => $attr['radioCheckSelectColor'],
|
3528 |
+
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3529 |
+
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3530 |
+
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
|
3531 |
+
'border-color' => $attr['radioCheckBorderColor'],
|
3532 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
3533 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
|
3534 |
+
),
|
3535 |
+
' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + span:before' => array(
|
3536 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3537 |
+
),
|
3538 |
+
' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"] + span:before' => array(
|
3539 |
+
'background-color' => $attr['radioCheckBgColor'],
|
3540 |
+
'color' => $attr['radioCheckSelectColor'],
|
3541 |
+
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3542 |
+
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3543 |
+
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
|
3544 |
+
'border-color' => $attr['radioCheckBorderColor'],
|
3545 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
3546 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
|
3547 |
+
),
|
3548 |
+
' .uagb-cf7-styler__check-style-enabled .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked + span:before' => array(
|
3549 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3550 |
+
),
|
3551 |
+
|
3552 |
+
' .uagb-cf7-styler__check-style-enabled .wpcf7 input[type="radio"] + span:before' => array(
|
3553 |
+
'background-color' => $attr['radioCheckBgColor'],
|
3554 |
+
'color' => $attr['radioCheckSelectColor'],
|
3555 |
+
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3556 |
+
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3557 |
+
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
|
3558 |
+
'border-color' => $attr['radioCheckBorderColor'],
|
3559 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
3560 |
+
),
|
3561 |
+
' .uagb-cf7-styler__check-style-enabled .wpcf7-radio input[type="radio"]:checked + span:before' => array(
|
3562 |
+
'background-color' => $attr['radioCheckSelectColor'],
|
3563 |
+
),
|
3564 |
+
' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
|
3565 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
|
3566 |
+
'font-family' => $attr['radioCheckFontFamily'],
|
3567 |
+
'font-weight' => $attr['radioCheckFontWeight'],
|
3568 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
|
3569 |
+
'color' => $attr['radioCheckLableColor'],
|
3570 |
+
),
|
3571 |
+
' span.wpcf7-not-valid-tip' => array(
|
3572 |
+
'color' => $attr['validationMsgColor'],
|
3573 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSize'], $attr['validationMsgFontSizeType'] ),
|
3574 |
+
'font-family' => $attr['validationMsgFontFamily'],
|
3575 |
+
'font-weight' => $attr['validationMsgFontWeight'],
|
3576 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeight'], $attr['validationMsgLineHeightType'] ),
|
3577 |
+
),
|
3578 |
+
' .uagb-cf7-styler__highlight-border input.wpcf7-form-control.wpcf7-not-valid' => array(
|
3579 |
+
'border-color' => $attr['highlightBorderColor'],
|
3580 |
+
),
|
3581 |
+
' .uagb-cf7-styler__highlight-border .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item-label:before' => array(
|
3582 |
+
'border-color' => $attr['highlightBorderColor'] . '!important',
|
3583 |
+
),
|
3584 |
+
' .uagb-cf7-styler__highlight-style-bottom_right .wpcf7-not-valid-tip' => array(
|
3585 |
+
'background-color' => $attr['validationMsgBgColor'],
|
3586 |
+
),
|
3587 |
+
' .wpcf7-response-output' => array(
|
3588 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['msgBorderSize'], 'px' ),
|
3589 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['msgBorderRadius'], $attr['msgBorderRadiusType'] ),
|
3590 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSize'], $attr['msgFontSizeType'] ),
|
3591 |
+
'font-family' => $attr['msgFontFamily'],
|
3592 |
+
'font-weight' => $attr['msgFontWeight'],
|
3593 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeight'], $attr['msgLineHeightType'] ),
|
3594 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['msgVrPadding'], 'px' ),
|
3595 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['msgVrPadding'], 'px' ),
|
3596 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['msgHrPadding'], 'px' ),
|
3597 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['msgHrPadding'], 'px' ),
|
3598 |
+
),
|
3599 |
+
' .wpcf7-response-output.wpcf7-validation-errors' => array(
|
3600 |
+
'background-color' => $attr['errorMsgBgColor'],
|
3601 |
+
'border-color' => $attr['errorMsgBorderColor'],
|
3602 |
+
'color' => $attr['errorMsgColor'],
|
3603 |
+
),
|
3604 |
+
' .wpcf7-response-output.wpcf7-validation- success' => array(
|
3605 |
+
'background-color' => $attr['successMsgBgColor'],
|
3606 |
+
'border-color' => $attr['successMsgBorderColor'],
|
3607 |
+
'color' => $attr['successMsgColor'],
|
3608 |
+
),
|
3609 |
+
|
3610 |
+
);
|
3611 |
+
|
3612 |
+
$t_selectors = array(
|
3613 |
+
' .wpcf7 form.wpcf7-form:not(input)' => array(
|
3614 |
+
'color' => $attr['fieldLabelColor'],
|
3615 |
+
),
|
3616 |
+
' .wpcf7 input:not([type=submit])' => array(
|
3617 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
|
3618 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
|
3619 |
+
),
|
3620 |
+
' .wpcf7 select' => array(
|
3621 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
3622 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
3623 |
+
),
|
3624 |
+
' .wpcf7 textarea' => array(
|
3625 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
|
3626 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
|
3627 |
+
),
|
3628 |
+
' .wpcf7 form label' => array(
|
3629 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
3630 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
3631 |
+
),
|
3632 |
+
|
3633 |
+
' .wpcf7 form .wpcf7-list-item-label' => array(
|
3634 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
3635 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
3636 |
+
),
|
3637 |
+
' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
|
3638 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeTablet'], $attr['buttonFontSizeType'] ),
|
3639 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightTablet'], $attr['buttonLineHeightType'] ),
|
3640 |
+
),
|
3641 |
+
' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
|
3642 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
|
3643 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
|
3644 |
+
),
|
3645 |
+
' span.wpcf7-not-valid-tip' => array(
|
3646 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
|
3647 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
|
3648 |
+
),
|
3649 |
+
' .wpcf7-response-output' => array(
|
3650 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
|
3651 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
|
3652 |
+
),
|
3653 |
+
);
|
3654 |
+
|
3655 |
+
$m_selectors = array(
|
3656 |
+
' .wpcf7 input:not([type=submit])' => array(
|
3657 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
|
3658 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
|
3659 |
+
),
|
3660 |
+
' .wpcf7 select' => array(
|
3661 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
3662 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
3663 |
+
),
|
3664 |
+
' .wpcf7 textarea' => array(
|
3665 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
|
3666 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
|
3667 |
+
),
|
3668 |
+
' .wpcf7 form label' => array(
|
3669 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
3670 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
3671 |
+
),
|
3672 |
+
|
3673 |
+
' .wpcf7 form .wpcf7-list-item-label' => array(
|
3674 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
3675 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
3676 |
+
),
|
3677 |
+
' .wpcf7 input.wpcf7-form-control.wpcf7-submit' => array(
|
3678 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeMobile'], $attr['buttonFontSizeType'] ),
|
3679 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightMobile'], $attr['buttonLineHeightType'] ),
|
3680 |
+
),
|
3681 |
+
' .uagb-cf7-styler__check-style-enabled .wpcf7 form .wpcf7-list-item-label' => array(
|
3682 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
|
3683 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
|
3684 |
+
),
|
3685 |
+
' span.wpcf7-not-valid-tip' => array(
|
3686 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
|
3687 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
|
3688 |
+
),
|
3689 |
+
' .wpcf7-response-output' => array(
|
3690 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
|
3691 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
|
3692 |
+
),
|
3693 |
+
);
|
3694 |
+
|
3695 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cf7-styler-' . $id );
|
3696 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-cf7-styler-' . $id );
|
3697 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-cf7-styler-' . $id );
|
3698 |
+
|
3699 |
+
$generated_css = array(
|
3700 |
+
'desktop' => $desktop,
|
3701 |
+
'tablet' => $tablet,
|
3702 |
+
'mobile' => $mobile,
|
3703 |
+
);
|
3704 |
+
|
3705 |
+
return $generated_css;
|
3706 |
+
}
|
3707 |
+
|
3708 |
+
|
3709 |
+
|
3710 |
+
/**
|
3711 |
+
* Get Gravity Form Styler CSS
|
3712 |
+
*
|
3713 |
+
* @param array $attr The block attributes.
|
3714 |
+
* @param string $id The selector ID.
|
3715 |
+
* @since 1.12.0
|
3716 |
+
*/
|
3717 |
+
public static function get_gf_styler_css( $attr, $id ) {
|
3718 |
+
$defaults = UAGB_Helper::$block_list['uagb/gf-styler']['attributes'];
|
3719 |
+
|
3720 |
+
$attr = array_merge( $defaults, (array) $attr );
|
3721 |
+
|
3722 |
+
$attr['msgVrPadding'] = ( '' === $attr['msgVrPadding'] ) ? '0' : $attr['msgVrPadding'];
|
3723 |
+
$attr['msgHrPadding'] = ( '' === $attr['msgHrPadding'] ) ? '0' : $attr['msgHrPadding'];
|
3724 |
+
$attr['textAreaHeight'] = ( 'auto' === $attr['msgHrPadding'] ) ? $attr['textAreaHeight'] : $attr['textAreaHeight'] . 'px';
|
3725 |
+
|
3726 |
+
$selectors = array(
|
3727 |
+
' .gform_wrapper form' => array(
|
3728 |
+
'text-align' => $attr['align'],
|
3729 |
+
),
|
3730 |
+
' .wp-block-uagb-gf-styler form:not(input)' => array(
|
3731 |
+
'color' => $attr['fieldLabelColor'],
|
3732 |
+
),
|
3733 |
+
' .gform_heading' => array(
|
3734 |
+
'text-align' => $attr['titleDescAlignment'],
|
3735 |
+
),
|
3736 |
+
' input:not([type=submit])' => array(
|
3737 |
+
'background-color' => $attr['fieldBgColor'],
|
3738 |
+
'color' => $attr['fieldInputColor'],
|
3739 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3740 |
+
'border-color' => $attr['fieldBorderColor'],
|
3741 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3742 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3743 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3744 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3745 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3746 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3747 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3748 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3749 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3750 |
+
'font-family' => $attr['inputFontFamily'],
|
3751 |
+
'font-weight' => $attr['inputFontWeight'],
|
3752 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3753 |
+
'text-align' => $attr['align'],
|
3754 |
+
),
|
3755 |
+
' select' => array(
|
3756 |
+
'background-color' => $attr['fieldBgColor'],
|
3757 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3758 |
+
'border-color' => $attr['fieldBorderColor'],
|
3759 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3760 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3761 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3762 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3763 |
+
'color' => $attr['fieldInputColor'],
|
3764 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3765 |
+
'font-family' => $attr['inputFontFamily'],
|
3766 |
+
'font-weight' => $attr['inputFontWeight'],
|
3767 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3768 |
+
'text-align' => $attr['align'],
|
3769 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3770 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3771 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3772 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3773 |
+
),
|
3774 |
+
' .chosen-container-single span' => array(
|
3775 |
+
'background-color' => $attr['fieldBgColor'],
|
3776 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3777 |
+
'border-color' => $attr['fieldBorderColor'],
|
3778 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3779 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3780 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3781 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3782 |
+
'color' => $attr['fieldInputColor'],
|
3783 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3784 |
+
'font-family' => $attr['inputFontFamily'],
|
3785 |
+
'font-weight' => $attr['inputFontWeight'],
|
3786 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3787 |
+
'text-align' => $attr['align'],
|
3788 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3789 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3790 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3791 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3792 |
+
),
|
3793 |
+
' .chosen-container-single.chosen-container-active .chosen-single span' => array(
|
3794 |
+
'margin-bottom' => 0,
|
3795 |
+
),
|
3796 |
+
' select.wpgf-form-control.wpgf-select:not([multiple="multiple"])' => array(
|
3797 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3798 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3799 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3800 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3801 |
+
),
|
3802 |
+
' select.wpgf-select[multiple="multiple"] option' => array(
|
3803 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3804 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3805 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3806 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3807 |
+
),
|
3808 |
+
' textarea' => array(
|
3809 |
+
'background-color' => $attr['fieldBgColor'],
|
3810 |
+
'color' => $attr['fieldInputColor'],
|
3811 |
+
'border-color' => $attr['fieldBorderColor'],
|
3812 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3813 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3814 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3815 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3816 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['fieldHrPadding'], 'px' ),
|
3817 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3818 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3819 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3820 |
+
'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ),
|
3821 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSize'], $attr['inputFontSizeType'] ),
|
3822 |
+
'font-family' => $attr['inputFontFamily'],
|
3823 |
+
'font-weight' => $attr['inputFontWeight'],
|
3824 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeight'], $attr['inputLineHeightType'] ),
|
3825 |
+
'text-align' => $attr['align'],
|
3826 |
+
'height' => $attr['textAreaHeight'],
|
3827 |
+
),
|
3828 |
+
' textarea::placeholder' => array(
|
3829 |
+
'color' => $attr['fieldInputColor'],
|
3830 |
+
'text-align' => $attr['align'],
|
3831 |
+
),
|
3832 |
+
' input::placeholder' => array(
|
3833 |
+
'color' => $attr['fieldInputColor'],
|
3834 |
+
'text-align' => $attr['align'],
|
3835 |
+
),
|
3836 |
+
' form label' => array(
|
3837 |
+
'color' => $attr['fieldLabelColor'],
|
3838 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
|
3839 |
+
'font-family' => $attr['labelFontFamily'],
|
3840 |
+
'font-weight' => $attr['labelFontWeight'],
|
3841 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
|
3842 |
+
),
|
3843 |
+
' form .gfield_radio label' => array(
|
3844 |
+
'color' => $attr['fieldLabelColor'],
|
3845 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
|
3846 |
+
'font-family' => $attr['labelFontFamily'],
|
3847 |
+
'font-weight' => $attr['labelFontWeight'],
|
3848 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
|
3849 |
+
),
|
3850 |
+
' form .gfield_checkbox label' => array(
|
3851 |
+
'color' => $attr['fieldLabelColor'],
|
3852 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ),
|
3853 |
+
'font-family' => $attr['labelFontFamily'],
|
3854 |
+
'font-weight' => $attr['labelFontWeight'],
|
3855 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeight'], $attr['labelLineHeightType'] ),
|
3856 |
+
),
|
3857 |
+
' .wpgf .gfield_checkbox input[type="checkbox"] + label, .wpgf .gfield_checkbox input[type="checkbox"] + label' => array(
|
3858 |
+
'margin-top' => UAGB_Helper::get_css_value( $attr['fieldLabelSpacing'], 'px' ),
|
3859 |
+
),
|
3860 |
+
|
3861 |
+
// Focus.
|
3862 |
+
' form input:not([type=submit]):focus' => array(
|
3863 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3864 |
+
),
|
3865 |
+
' form select:focus' => array(
|
3866 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3867 |
+
),
|
3868 |
+
' textarea:focus' => array(
|
3869 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3870 |
+
),
|
3871 |
+
|
3872 |
+
// Submit button.
|
3873 |
+
' input.gform_button' => array(
|
3874 |
+
'color' => $attr['buttonTextColor'],
|
3875 |
+
'background-color' => $attr['buttonBgColor'],
|
3876 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSize'], $attr['buttonFontSizeType'] ),
|
3877 |
+
'font-family' => $attr['buttonFontFamily'],
|
3878 |
+
'font-weight' => $attr['buttonFontWeight'],
|
3879 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeight'], $attr['buttonLineHeightType'] ),
|
3880 |
+
'border-color' => $attr['buttonBorderColor'],
|
3881 |
+
'border-style' => $attr['buttonBorderStyle'],
|
3882 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['buttonBorderWidth'], 'px' ),
|
3883 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['buttonBorderRadius'], $attr['buttonBorderRadiusType'] ),
|
3884 |
+
'padding-left' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
|
3885 |
+
'padding-right' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ),
|
3886 |
+
'padding-top' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
|
3887 |
+
'padding-bottom' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ),
|
3888 |
+
),
|
3889 |
+
' input.gform_button:hover' => array(
|
3890 |
+
'color' => $attr['buttonTextHoverColor'],
|
3891 |
+
'background-color' => $attr['buttonBgHoverColor'],
|
3892 |
+
'border-color' => $attr['buttonBorderHoverColor'],
|
3893 |
+
),
|
3894 |
+
|
3895 |
+
// Check box Radio.
|
3896 |
+
' .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
|
3897 |
+
'background-color' => $attr['fieldBgColor'],
|
3898 |
+
'color' => $attr['fieldInputColor'],
|
3899 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3900 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3901 |
+
),
|
3902 |
+
' .gfield_checkbox input[type="checkbox"] + label:before' => array(
|
3903 |
+
'background-color' => $attr['fieldBgColor'],
|
3904 |
+
'color' => $attr['fieldInputColor'],
|
3905 |
+
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3906 |
+
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3907 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3908 |
+
'border-color' => $attr['fieldBorderColor'],
|
3909 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3910 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3911 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3912 |
+
),
|
3913 |
+
' input[type="checkbox"]:checked + label:before' => array(
|
3914 |
+
'background-color' => $attr['fieldBgColor'],
|
3915 |
+
'color' => $attr['fieldInputColor'],
|
3916 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3917 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3918 |
+
),
|
3919 |
+
' input[type="checkbox"] + label:before' => array(
|
3920 |
+
'background-color' => $attr['fieldBgColor'],
|
3921 |
+
'color' => $attr['fieldInputColor'],
|
3922 |
+
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3923 |
+
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3924 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3925 |
+
'border-color' => $attr['fieldBorderColor'],
|
3926 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3927 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3928 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3929 |
+
),
|
3930 |
+
' .gfield_radio input[type="radio"] + label:before' => array(
|
3931 |
+
'background-color' => $attr['fieldBgColor'],
|
3932 |
+
'color' => $attr['fieldInputColor'],
|
3933 |
+
'height' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3934 |
+
'width' => UAGB_Helper::get_css_value( $attr['fieldVrPadding'], 'px' ),
|
3935 |
+
'border-style' => $attr['fieldBorderStyle'],
|
3936 |
+
'border-color' => $attr['fieldBorderColor'],
|
3937 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3938 |
+
),
|
3939 |
+
' .gfield_radio input[type="radio"]:checked + label:before' => array(
|
3940 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
3941 |
+
),
|
3942 |
+
|
3943 |
+
// Underline border.
|
3944 |
+
' .uagb-gf-styler__field-style-underline input:not([type=submit])' => array(
|
3945 |
+
'border-style' => 'none',
|
3946 |
+
'border-bottom-color' => $attr['fieldBorderColor'],
|
3947 |
+
'border-bottom-style' => 'solid',
|
3948 |
+
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3949 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3950 |
+
),
|
3951 |
+
' .uagb-gf-styler__field-style-underline textarea' => array(
|
3952 |
+
'border-style' => 'none',
|
3953 |
+
'border-bottom-color' => $attr['fieldBorderColor'],
|
3954 |
+
'border-bottom-style' => 'solid',
|
3955 |
+
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3956 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3957 |
+
),
|
3958 |
+
' .uagb-gf-styler__field-style-underline select' => array(
|
3959 |
+
'border-style' => 'none',
|
3960 |
+
'border-bottom-color' => $attr['fieldBorderColor'],
|
3961 |
+
'border-bottom-style' => 'solid',
|
3962 |
+
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3963 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3964 |
+
),
|
3965 |
+
' .uagb-gf-styler__field-style-underline textarea' => array(
|
3966 |
+
'border-style' => 'none',
|
3967 |
+
'border-bottom-color' => $attr['fieldBorderColor'],
|
3968 |
+
'border-bottom-style' => 'solid',
|
3969 |
+
'border-bottom-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3970 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3971 |
+
),
|
3972 |
+
' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
|
3973 |
+
'border-style' => 'solid',
|
3974 |
+
),
|
3975 |
+
' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
|
3976 |
+
'border-style' => 'solid',
|
3977 |
+
),
|
3978 |
+
' .uagb-gf-styler__field-style-box .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
|
3979 |
+
'border-style' => 'solid',
|
3980 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3981 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3982 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3983 |
+
),
|
3984 |
+
' .uagb-gf-styler__field-style-box input[type="checkbox"]:checked + label:before' => array(
|
3985 |
+
'border-style' => 'solid',
|
3986 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['fieldBorderWidth'], 'px' ),
|
3987 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['fieldBorderRadius'], $attr['fieldBorderRadiusType'] ),
|
3988 |
+
'font-size' => 'calc( ' . $attr['fieldVrPadding'] . 'px * 1.8 )',
|
3989 |
+
),
|
3990 |
+
' .gfield_radio input[type="radio"]:checked + label:before' => array(
|
3991 |
+
'background-color' => $attr['fieldInputColor'],
|
3992 |
+
),
|
3993 |
+
|
3994 |
+
// Override check box.
|
3995 |
+
' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"] + label:before' => array(
|
3996 |
+
'background-color' => $attr['radioCheckBgColor'],
|
3997 |
+
'color' => $attr['radioCheckSelectColor'],
|
3998 |
+
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
3999 |
+
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
4000 |
+
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px * 1.8 )',
|
4001 |
+
'border-color' => $attr['radioCheckBorderColor'],
|
4002 |
+
'border-style' => 'solid',
|
4003 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
4004 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
|
4005 |
+
),
|
4006 |
+
' .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked + label:before' => array(
|
4007 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
4008 |
+
),
|
4009 |
+
' .uagb-gf-styler__check-style-enabled input[type="checkbox"] + label:before' => array(
|
4010 |
+
'background-color' => $attr['radioCheckBgColor'],
|
4011 |
+
'color' => $attr['radioCheckSelectColor'],
|
4012 |
+
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
4013 |
+
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
4014 |
+
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px * 1.8 )',
|
4015 |
+
'border-color' => $attr['radioCheckBorderColor'],
|
4016 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
4017 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['radioCheckBorderRadius'], $attr['radioCheckBorderRadiusType'] ),
|
4018 |
+
),
|
4019 |
+
' .uagb-gf-styler__check-style-enabled input[type="checkbox"]:checked + label:before' => array(
|
4020 |
+
'border-color' => $attr['fieldBorderFocusColor'],
|
4021 |
+
),
|
4022 |
+
|
4023 |
+
' .uagb-gf-styler__check-style-enabled input[type="radio"] + label:before' => array(
|
4024 |
+
'background-color' => $attr['radioCheckBgColor'],
|
4025 |
+
'color' => $attr['radioCheckSelectColor'],
|
4026 |
+
'height' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
4027 |
+
'width' => UAGB_Helper::get_css_value( $attr['radioCheckSize'], 'px' ),
|
4028 |
+
'font-size' => 'calc( ' . $attr['radioCheckSize'] . 'px / 1.2 )',
|
4029 |
+
'border-color' => $attr['radioCheckBorderColor'],
|
4030 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['radioCheckBorderWidth'], 'px' ),
|
4031 |
+
),
|
4032 |
+
' .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]:checked + label:before' => array(
|
4033 |
+
'background-color' => $attr['radioCheckSelectColor'],
|
4034 |
+
),
|
4035 |
+
' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
|
4036 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
|
4037 |
+
'font-family' => $attr['radioCheckFontFamily'],
|
4038 |
+
'font-weight' => $attr['radioCheckFontWeight'],
|
4039 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
|
4040 |
+
'color' => $attr['radioCheckLableColor'],
|
4041 |
+
),
|
4042 |
+
' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
|
4043 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSize'], $attr['radioCheckFontSizeType'] ),
|
4044 |
+
'font-family' => $attr['radioCheckFontFamily'],
|
4045 |
+
'font-weight' => $attr['radioCheckFontWeight'],
|
4046 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeight'], $attr['radioCheckLineHeightType'] ),
|
4047 |
+
'color' => $attr['radioCheckLableColor'],
|
4048 |
+
),
|
4049 |
+
// Validation Errors.
|
4050 |
+
' .gform_wrapper .gfield_description.validation_message' => array(
|
4051 |
+
'color' => $attr['validationMsgColor'],
|
4052 |
+
),
|
4053 |
+
' .gform_wrapper .validation_message' => array(
|
4054 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSize'], $attr['validationMsgFontSizeType'] ),
|
4055 |
+
'font-family' => $attr['validationMsgFontFamily'],
|
4056 |
+
'font-weight' => $attr['validationMsgFontWeight'],
|
4057 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeight'], $attr['validationMsgLineHeightType'] ),
|
4058 |
+
),
|
4059 |
+
' .uagb-gf-styler__error-yes .gform_wrapper .gfield.gfield_error' => array(
|
4060 |
+
'background-color' => $attr['validationMsgBgColor'],
|
4061 |
+
),
|
4062 |
+
|
4063 |
+
' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input:not([type="submit"]):not([type="button"]):not([type="image"])' => array(
|
4064 |
+
'border-color' => $attr['highlightBorderColor'],
|
4065 |
+
),
|
4066 |
+
|
4067 |
+
' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container select' => array(
|
4068 |
+
'border-color' => $attr['highlightBorderColor'],
|
4069 |
+
),
|
4070 |
+
|
4071 |
+
' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container .chosen-single' => array(
|
4072 |
+
'border-color' => $attr['highlightBorderColor'],
|
4073 |
+
),
|
4074 |
+
|
4075 |
+
' .uagb-gf-styler__error-yes .gform_wrapper .gfield_error .ginput_container textarea' => array(
|
4076 |
+
'border-color' => $attr['highlightBorderColor'],
|
4077 |
+
),
|
4078 |
+
|
4079 |
+
' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error' => array(
|
4080 |
+
'border-color' => $attr['highlightBorderColor'],
|
4081 |
+
),
|
4082 |
+
|
4083 |
+
' .uagb-gf-styler__error-yes .gform_wrapper li.gfield.gfield_error.gfield_contains_required.gfield_creditcard_warning' => array(
|
4084 |
+
'border-color' => $attr['highlightBorderColor'],
|
4085 |
+
),
|
4086 |
+
|
4087 |
+
' .uagb-gf-styler__error-yes li.gfield_error .gfield_checkbox input[type="checkbox"] + label:before' => array(
|
4088 |
+
'border-color' => $attr['highlightBorderColor'],
|
4089 |
+
),
|
4090 |
+
|
4091 |
+
' .uagb-gf-styler__error-yes li.gfield_error .ginput_container_consent input[type="checkbox"] + label:before' => array(
|
4092 |
+
'border-color' => $attr['highlightBorderColor'],
|
4093 |
+
),
|
4094 |
+
|
4095 |
+
' .uagb-gf-styler__error-yes li.gfield_error .gfield_radio input[type="radio"] + label:before' => array(
|
4096 |
+
'border-color' => $attr['highlightBorderColor'],
|
4097 |
+
),
|
4098 |
+
|
4099 |
+
' .uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
|
4100 |
+
'border' => $attr['fieldBorderWidth'] . 'px ' . $attr['fieldBorderStyle'] . ' ' . $attr['fieldBorderColor'] . '!important',
|
4101 |
+
),
|
4102 |
+
|
4103 |
+
' .uael-gf-style-underline.uagb-gf-styler__error-yes .gform_wrapper li.gfield_error input[type="text"]' => array(
|
4104 |
+
'border-width' => $attr['fieldBorderWidth'] . 'px' . '!important',
|
4105 |
+
'border-style' => 'solid' . '!important',
|
4106 |
+
'border-color' => $attr['fieldBorderColor'] . '!important',
|
4107 |
+
),
|
4108 |
+
|
4109 |
+
' .gform_wrapper div.validation_error' => array(
|
4110 |
+
'color' => $attr['errorMsgColor'],
|
4111 |
+
'background-color' => $attr['errorMsgBgColor'],
|
4112 |
+
'border-color' => $attr['errorMsgBorderColor'],
|
4113 |
+
'border-style' => 'solid',
|
4114 |
+
'border-width' => UAGB_Helper::get_css_value( $attr['msgBorderSize'], 'px' ),
|
4115 |
+
'border-radius' => UAGB_Helper::get_css_value( $attr['msgBorderRadius'], $attr['msgBorderRadiusType'] ),
|
4116 |
+
'padding' => $attr['msgVrPadding'] . 'px ' . $attr['msgHrPadding'] . 'px',
|
4117 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSize'], $attr['msgFontSizeType'] ),
|
4118 |
+
'font-family' => $attr['msgFontFamily'],
|
4119 |
+
'font-weight' => $attr['msgFontWeight'],
|
4120 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeight'], $attr['msgLineHeightType'] ),
|
4121 |
+
),
|
4122 |
+
|
4123 |
+
' .gform_confirmation_message' => array(
|
4124 |
+
'color' => $attr['successMsgColor'],
|
4125 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSize'], $attr['successMsgFontSizeType'] ),
|
4126 |
+
'font-family' => $attr['successMsgFontFamily'],
|
4127 |
+
'font-weight' => $attr['successMsgFontWeight'],
|
4128 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeight'], $attr['successMsgLineHeightType'] ),
|
4129 |
+
),
|
4130 |
+
);
|
4131 |
+
|
4132 |
+
$t_selectors = array(
|
4133 |
+
' form.wpgf-form:not(input)' => array(
|
4134 |
+
'color' => $attr['fieldLabelColor'],
|
4135 |
+
),
|
4136 |
+
' input:not([type=submit])' => array(
|
4137 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
|
4138 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
|
4139 |
+
),
|
4140 |
+
' textarea' => array(
|
4141 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeTablet'], $attr['inputFontSizeType'] ),
|
4142 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightTablet'], $attr['inputLineHeightType'] ),
|
4143 |
+
),
|
4144 |
+
' form label' => array(
|
4145 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
4146 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
4147 |
+
),
|
4148 |
+
|
4149 |
+
' form .gfield_radio label' => array(
|
4150 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
4151 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
4152 |
+
),
|
4153 |
+
' form .gfield_checkbox label' => array(
|
4154 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeTablet'], $attr['labelFontSizeType'] ),
|
4155 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightTablet'], $attr['labelLineHeightType'] ),
|
4156 |
+
),
|
4157 |
+
' input.gform_button' => array(
|
4158 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeTablet'], $attr['buttonFontSizeType'] ),
|
4159 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightTablet'], $attr['buttonLineHeightType'] ),
|
4160 |
+
),
|
4161 |
+
' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
|
4162 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
|
4163 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
|
4164 |
+
),
|
4165 |
+
' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
|
4166 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeTablet'], $attr['radioCheckFontSizeType'] ),
|
4167 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightTablet'], $attr['radioCheckLineHeightType'] ),
|
4168 |
+
),
|
4169 |
+
' span.wpgf-not-valid-tip' => array(
|
4170 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
|
4171 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
|
4172 |
+
),
|
4173 |
+
' .wpgf-response-output' => array(
|
4174 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
|
4175 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
|
4176 |
+
),
|
4177 |
+
' .gform_wrapper .validation_message' => array(
|
4178 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeTablet'], $attr['validationMsgFontSizeType'] ),
|
4179 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightTablet'], $attr['validationMsgLineHeightType'] ),
|
4180 |
+
),
|
4181 |
+
' .gform_wrapper div.validation_error' => array(
|
4182 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeTablet'], $attr['msgFontSizeType'] ),
|
4183 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightTablet'], $attr['msgLineHeightType'] ),
|
4184 |
+
),
|
4185 |
+
' .gform_confirmation_message' => array(
|
4186 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSizeTablet'], $attr['successMsgFontSizeType'] ),
|
4187 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeightTablet'], $attr['successMsgLineHeightType'] ),
|
4188 |
+
'color' => $attr['successMsgColor'],
|
4189 |
+
),
|
4190 |
+
);
|
4191 |
+
|
4192 |
+
$m_selectors = array(
|
4193 |
+
' input:not([type=submit])' => array(
|
4194 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
|
4195 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
|
4196 |
+
),
|
4197 |
+
' textarea' => array(
|
4198 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['inputFontSizeMobile'], $attr['inputFontSizeType'] ),
|
4199 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['inputLineHeightMobile'], $attr['inputLineHeightType'] ),
|
4200 |
+
),
|
4201 |
+
' form label' => array(
|
4202 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
4203 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
4204 |
+
),
|
4205 |
+
|
4206 |
+
' form .gfield_radio label' => array(
|
4207 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
4208 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
4209 |
+
),
|
4210 |
+
' form .gfield_checkbox label' => array(
|
4211 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSizeMobile'], $attr['labelFontSizeType'] ),
|
4212 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['labelLineHeightMobile'], $attr['labelLineHeightType'] ),
|
4213 |
+
),
|
4214 |
+
' input.gform_button' => array(
|
4215 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['buttonFontSizeMobile'], $attr['buttonFontSizeType'] ),
|
4216 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['buttonLineHeightMobile'], $attr['buttonLineHeightType'] ),
|
4217 |
+
),
|
4218 |
+
' .uagb-gf-styler__check-style-enabled form .gfield_radio label' => array(
|
4219 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
|
4220 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
|
4221 |
+
),
|
4222 |
+
' .uagb-gf-styler__check-style-enabled form .gfield_checkbox label' => array(
|
4223 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['radioCheckFontSizeMobile'], $attr['radioCheckFontSizeType'] ),
|
4224 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['radioCheckLineHeightMobile'], $attr['radioCheckLineHeightType'] ),
|
4225 |
+
),
|
4226 |
+
' span.wpgf-not-valid-tip' => array(
|
4227 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
|
4228 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
|
4229 |
+
),
|
4230 |
+
' .wpgf-response-output' => array(
|
4231 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
|
4232 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
|
4233 |
+
),
|
4234 |
+
' .gform_wrapper .validation_message' => array(
|
4235 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['validationMsgFontSizeMobile'], $attr['validationMsgFontSizeType'] ),
|
4236 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['validationMsgLineHeightMobile'], $attr['validationMsgLineHeightType'] ),
|
4237 |
+
),
|
4238 |
+
' .gform_wrapper div.validation_error' => array(
|
4239 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['msgFontSizeMobile'], $attr['msgFontSizeType'] ),
|
4240 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['msgLineHeightMobile'], $attr['msgLineHeightType'] ),
|
4241 |
+
),
|
4242 |
+
' .gform_confirmation_message' => array(
|
4243 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['successMsgFontSizeMobile'], $attr['successMsgFontSizeType'] ),
|
4244 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['successMsgLineHeightMobile'], $attr['successMsgLineHeightType'] ),
|
4245 |
+
'color' => $attr['successMsgColor'],
|
4246 |
+
),
|
4247 |
+
);
|
4248 |
+
|
4249 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-gf-styler-' . $id );
|
4250 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-gf-styler-' . $id );
|
4251 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-gf-styler-' . $id );
|
4252 |
+
$generated_css = array(
|
4253 |
+
'desktop' => $desktop,
|
4254 |
+
'tablet' => $tablet,
|
4255 |
+
'mobile' => $mobile,
|
4256 |
+
);
|
4257 |
+
|
4258 |
+
return $generated_css;
|
4259 |
+
}
|
4260 |
+
|
4261 |
+
/*
|
4262 |
+
* Get Marketing Button Block CSS
|
4263 |
+
*
|
4264 |
+
* @since 1.11.0
|
4265 |
+
* @param array $attr The block attributes.
|
4266 |
+
* @param string $id The selector ID.
|
4267 |
+
* @return array The Widget List.
|
4268 |
+
*/
|
4269 |
+
public static function get_marketing_btn_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
4270 |
+
|
4271 |
+
$defaults = UAGB_Helper::$block_list['uagb/marketing-button']['attributes'];
|
4272 |
+
|
4273 |
+
$attr = array_merge( $defaults, (array) $attr );
|
4274 |
+
|
4275 |
+
$m_selectors = array();
|
4276 |
+
$t_selectors = array();
|
4277 |
+
|
4278 |
+
$icon_color = ( "" == $attr["iconColor"] ) ? $attr["titleColor"] : $attr["iconColor"];
|
4279 |
+
$icon_hover_color = ( "" == $attr["iconHoverColor"] ) ? $attr["titleHoverColor"] : $attr["iconHoverColor"];
|
4280 |
+
|
4281 |
+
$selectors = array(
|
4282 |
+
" .uagb-marketing-btn__title-wrap" => array(
|
4283 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr["titleSpace"], 'px' )
|
4284 |
+
),
|
4285 |
+
" .uagb-marketing-btn__title" => array(
|
4286 |
+
"font-size" => UAGB_Helper::get_css_value( $attr["titleFontSize"], $attr["titleFontSizeType"] ),
|
4287 |
+
"line-height" => UAGB_Helper::get_css_value( $attr["titleLineHeight"], $attr["titleLineHeightType"] ),
|
4288 |
+
"font-family" => $attr["titleFontFamily"],
|
4289 |
+
"font-weight" => $attr["titleFontWeight"],
|
4290 |
+
"color" => $attr["titleColor"],
|
4291 |
+
),
|
4292 |
+
" .uagb-marketing-btn__icon-wrap" => array(
|
4293 |
+
"width" => UAGB_Helper::get_css_value( $attr["iconFontSize"], $attr["iconFontSizeType"] ),
|
4294 |
+
"height" => UAGB_Helper::get_css_value( $attr["iconFontSize"], $attr["iconFontSizeType"] ),
|
4295 |
+
),
|
4296 |
+
" .uagb-marketing-btn__icon-wrap svg" => array(
|
4297 |
+
"fill" => $icon_color
|
4298 |
+
),
|
4299 |
+
" .uagb-marketing-btn__prefix" => array(
|
4300 |
+
"font-size" => UAGB_Helper::get_css_value( $attr["prefixFontSize"], $attr["prefixFontSizeType"] ),
|
4301 |
+
"line-height" => UAGB_Helper::get_css_value( $attr["prefixLineHeight"], $attr["prefixLineHeightType"] ),
|
4302 |
+
"font-family" => $attr["prefixFontFamily"],
|
4303 |
+
"font-weight" => $attr["prefixFontWeight"],
|
4304 |
+
"color" => $attr["prefixColor"],
|
4305 |
+
),
|
4306 |
+
" .uagb-marketing-btn__link:hover .uagb-marketing-btn__title" => array(
|
4307 |
+
"color" => $attr["titleHoverColor"],
|
4308 |
+
),
|
4309 |
+
" .uagb-marketing-btn__link:hover .uagb-marketing-btn__prefix" => array(
|
4310 |
+
"color" => $attr["prefixHoverColor"],
|
4311 |
+
),
|
4312 |
+
" .uagb-marketing-btn__link:hover .uagb-marketing-btn__icon-wrap svg" => array(
|
4313 |
+
"fill" => $icon_hover_color
|
4314 |
+
),
|
4315 |
+
" .uagb-marketing-btn__link" => array(
|
4316 |
+
"padding-left" => UAGB_Helper::get_css_value( $attr["hPadding"], 'px' ),
|
4317 |
+
"padding-right" => UAGB_Helper::get_css_value( $attr["hPadding"], 'px' ),
|
4318 |
+
"padding-top" => UAGB_Helper::get_css_value( $attr["vPadding"], 'px' ),
|
4319 |
+
"padding-bottom" => UAGB_Helper::get_css_value( $attr["vPadding"], 'px' ),
|
4320 |
+
"border-style" => $attr["borderStyle"],
|
4321 |
+
"border-width" => UAGB_Helper::get_css_value( $attr["borderWidth"], 'px' ),
|
4322 |
+
"border-color" => $attr["borderColor"],
|
4323 |
+
"border-radius" => UAGB_Helper::get_css_value( $attr["borderRadius"], 'px' ),
|
4324 |
+
),
|
4325 |
+
" .uagb-marketing-btn__link:hover" => array(
|
4326 |
+
"border-color" => $attr["borderHoverColor"]
|
4327 |
+
),
|
4328 |
+
);
|
4329 |
+
|
4330 |
+
if ( "transparent" == $attr["backgroundType"] ) {
|
4331 |
+
|
4332 |
+
$selectors[" .uagb-marketing-btn__link"]["background"] = "transparent";
|
4333 |
+
|
4334 |
+
} else if ( "color" == $attr["backgroundType"] ) {
|
4335 |
+
|
4336 |
+
$selectors[" .uagb-marketing-btn__link"]["background"] = UAGB_Helper::hex2rgba( $attr["backgroundColor"], $attr['backgroundOpacity'] );
|
4337 |
+
|
4338 |
+
// Hover Background
|
4339 |
+
$selectors[" .uagb-marketing-btn__link:hover"] = array(
|
4340 |
+
"background" => UAGB_Helper::hex2rgba( $attr["backgroundHoverColor"], $attr['backgroundHoverOpacity'] ),
|
4341 |
+
);
|
4342 |
+
|
4343 |
+
} else if ( "gradient" == $attr["backgroundType"] ) {
|
4344 |
+
|
4345 |
+
$selectors[' .uagb-marketing-btn__link']['background-color'] = 'transparent';
|
4346 |
+
|
4347 |
+
if ( 'linear' === $attr['gradientType'] ) {
|
4348 |
+
|
4349 |
+
$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'] . '%)';
|
4350 |
+
} else {
|
4351 |
+
|
4352 |
+
$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'] . '%)';
|
4353 |
+
}
|
4354 |
+
}
|
4355 |
+
|
4356 |
+
$margin_type = ( "after" == $attr["iconPosition"] ) ? "margin-left" : "margin-right";
|
4357 |
+
|
4358 |
+
$selectors[" .uagb-marketing-btn__icon-wrap"][$margin_type] = UAGB_Helper::get_css_value( $attr["iconSpace"], "px" );
|
4359 |
+
|
4360 |
+
$m_selectors = array(
|
4361 |
+
' .uagb-marketing-btn__title' => array(
|
4362 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeMobile'], $attr['titleFontSizeType'] ),
|
4363 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightMobile'], $attr['titleLineHeightType'] ),
|
4364 |
+
),
|
4365 |
+
' .uagb-marketing-btn__prefix' => array(
|
4366 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeMobile'], $attr['prefixFontSizeType'] ),
|
4367 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightMobile'], $attr['prefixLineHeightType'] ),
|
4368 |
+
),
|
4369 |
+
' .uagb-marketing-btn__icon-wrap' => array(
|
4370 |
+
"width" => UAGB_Helper::get_css_value( $attr["iconFontSizeMobile"], $attr["iconFontSizeType"] ),
|
4371 |
+
"height" => UAGB_Helper::get_css_value( $attr["iconFontSizeMobile"], $attr["iconFontSizeType"] ),
|
4372 |
+
),
|
4373 |
+
|
4374 |
+
);
|
4375 |
+
|
4376 |
+
$t_selectors = array(
|
4377 |
+
' .uagb-marketing-btn__title' => array(
|
4378 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['titleFontSizeTablet'], $attr['titleFontSizeType'] ),
|
4379 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['titleLineHeightTablet'], $attr['titleLineHeightType'] ),
|
4380 |
+
),
|
4381 |
+
' .uagb-marketing-btn__prefix' => array(
|
4382 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['prefixFontSizeTablet'], $attr['prefixFontSizeType'] ),
|
4383 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['prefixLineHeightTablet'], $attr['prefixLineHeightType'] ),
|
4384 |
+
),
|
4385 |
+
' .uagb-marketing-btn__icon-wrap' => array(
|
4386 |
+
"width" => UAGB_Helper::get_css_value( $attr["iconFontSizeTablet"], $attr["iconFontSizeType"] ),
|
4387 |
+
"height" => UAGB_Helper::get_css_value( $attr["iconFontSizeTablet"], $attr["iconFontSizeType"] ),
|
4388 |
+
),
|
4389 |
+
|
4390 |
+
);
|
4391 |
+
|
4392 |
+
// @codingStandardsIgnoreEnd
|
4393 |
+
|
4394 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-marketing-btn-' . $id );
|
4395 |
+
|
4396 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-marketing-btn-' . $id );
|
4397 |
+
|
4398 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-marketing-btn-' . $id );
|
4399 |
+
|
4400 |
+
$generated_css = array(
|
4401 |
+
'desktop' => $desktop,
|
4402 |
+
'tablet' => $tablet,
|
4403 |
+
'mobile' => $mobile,
|
4404 |
+
);
|
4405 |
+
|
4406 |
+
return $generated_css;
|
4407 |
+
}
|
4408 |
+
|
4409 |
+
/**
|
4410 |
+
* Get Table of Contents Block CSS
|
4411 |
+
*
|
4412 |
+
* @since x.x.x
|
4413 |
+
* @param array $attr The block attributes.
|
4414 |
+
* @param string $id The selector ID.
|
4415 |
+
* @return array The Widget List.
|
4416 |
+
*/
|
4417 |
+
public static function get_table_of_contents_css( $attr, $id ) { // @codingStandardsIgnoreStart
|
4418 |
+
|
4419 |
+
$defaults = UAGB_Helper::$block_list['uagb/table-of-contents']['attributes'];
|
4420 |
+
|
4421 |
+
$attr = array_merge( $defaults, (array) $attr );
|
4422 |
+
$m_selectors = array();
|
4423 |
+
$t_selectors = array();
|
4424 |
+
|
4425 |
+
$selectors = array(
|
4426 |
+
" .uagb-toc__list-wrap ul li a:hover" => array(
|
4427 |
+
"color" => $attr["linkHoverColor"],
|
4428 |
+
),
|
4429 |
+
" .uagb-toc__list-wrap ul li a" => array(
|
4430 |
+
"font-size" => UAGB_Helper::get_css_value( $attr["fontSize"], $attr["fontSizeType"] ),
|
4431 |
+
"line-height" => UAGB_Helper::get_css_value( $attr["lineHeight"], $attr["lineHeightType"] ),
|
4432 |
+
"font-family" => $attr["fontFamily"],
|
4433 |
+
"font-weight" => $attr["fontWeight"],
|
4434 |
+
"color" => $attr["linkColor"],
|
4435 |
+
),
|
4436 |
+
" .uagb-toc__title" => array(
|
4437 |
+
"font-size" => UAGB_Helper::get_css_value( $attr["headingFontSize"], $attr["headingFontSizeType"] ),
|
4438 |
+
"line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeight"], $attr["headingLineHeightType"] ),
|
4439 |
+
"font-family" => $attr["headingFontFamily"],
|
4440 |
+
"font-weight" => $attr["headingFontWeight"],
|
4441 |
+
"color" => $attr["headingColor"],
|
4442 |
+
"margin-bottom" => UAGB_Helper::get_css_value( $attr["headingBottom"], "px"),
|
4443 |
+
),
|
4444 |
+
" .uagb-toc__wrap" => array(
|
4445 |
+
"border-style" => $attr["borderStyle"],
|
4446 |
+
"border-width" => UAGB_Helper::get_css_value( $attr["borderWidth"], "px" ),
|
4447 |
+
"border-color" => $attr["borderColor"],
|
4448 |
+
"border-radius" => UAGB_Helper::get_css_value( $attr["borderRadius"], "px" ),
|
4449 |
+
"padding-left" => UAGB_Helper::get_css_value( $attr["hPadding"], "px" ),
|
4450 |
+
"padding-right" => UAGB_Helper::get_css_value( $attr["hPadding"], "px" ),
|
4451 |
+
"padding-top" => UAGB_Helper::get_css_value( $attr["vPadding"], "px" ),
|
4452 |
+
"padding-bottom" => UAGB_Helper::get_css_value( $attr["vPadding"], "px" ),
|
4453 |
+
"background" => $attr["backgroundColor"],
|
4454 |
+
),
|
4455 |
+
);
|
4456 |
+
|
4457 |
+
if ( $attr["customWidth"] ) {
|
4458 |
+
$selectors[" .uagb-toc__wrap"]["width"] = UAGB_Helper::get_css_value( $attr["width"], $attr["widthType"] );
|
4459 |
+
}
|
4460 |
+
|
4461 |
+
|
4462 |
+
$m_selectors = array(
|
4463 |
+
' .uagb-toc__list-wrap ul li a' => array(
|
4464 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['fontSizeMobile'], $attr['fontSizeType'] ),
|
4465 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightMobile'], $attr['lineHeightType'] ),
|
4466 |
+
),
|
4467 |
+
" .uagb-toc__title" => array(
|
4468 |
+
"font-size" => UAGB_Helper::get_css_value( $attr["headingFontSizeMobile"], $attr["headingFontSizeType"] ),
|
4469 |
+
"line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeightMobile"], $attr["headingLineHeightType"] ),
|
4470 |
+
),
|
4471 |
+
|
4472 |
+
);
|
4473 |
+
|
4474 |
+
$t_selectors = array(
|
4475 |
+
' .uagb-toc__list-wrap ul li a' => array(
|
4476 |
+
'font-size' => UAGB_Helper::get_css_value( $attr['fontSizeTablet'], $attr['fontSizeType'] ),
|
4477 |
+
'line-height' => UAGB_Helper::get_css_value( $attr['lineHeightTablet'], $attr['lineHeightType'] ),
|
4478 |
+
),
|
4479 |
+
" .uagb-toc__title" => array(
|
4480 |
+
"font-size" => UAGB_Helper::get_css_value( $attr["headingFontSizeTablet"], $attr["headingFontSizeType"] ),
|
4481 |
+
"line-height" => UAGB_Helper::get_css_value( $attr["headingLineHeightTablet"], $attr["headingLineHeightType"] ),
|
4482 |
+
),
|
4483 |
+
|
4484 |
+
);
|
4485 |
+
|
4486 |
+
// @codingStandardsIgnoreEnd
|
4487 |
+
|
4488 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-toc-' . $id );
|
4489 |
+
|
4490 |
+
$tablet = UAGB_Helper::generate_css( $t_selectors, '#uagb-toc-' . $id );
|
4491 |
+
|
4492 |
+
$mobile = UAGB_Helper::generate_css( $m_selectors, '#uagb-toc-' . $id );
|
4493 |
+
|
4494 |
+
if ( '' != $attr['scrollToTopColor'] ) {
|
4495 |
+
$desktop .= '.uagb-toc__scroll-top { color: ' . $attr['scrollToTopColor'] . '; }';
|
4496 |
+
}
|
4497 |
+
|
4498 |
+
if ( '' != $attr['scrollToTopBgColor'] ) {
|
4499 |
+
$desktop .= '.uagb-toc__scroll-top { background: ' . $attr['scrollToTopBgColor'] . '; }';
|
4500 |
+
}
|
4501 |
+
|
4502 |
+
$generated_css = array(
|
4503 |
+
'desktop' => $desktop,
|
4504 |
+
'tablet' => $tablet,
|
4505 |
+
'mobile' => $mobile,
|
4506 |
+
);
|
4507 |
+
|
4508 |
+
return $generated_css;
|
4509 |
+
}
|
4510 |
+
|
4511 |
+
|
4512 |
+
/**
|
4513 |
+
* Get Testimonial Js
|
4514 |
+
*
|
4515 |
+
* @since 1.6.0
|
4516 |
+
* @param array $attr The block attributes.
|
4517 |
+
* @param string $id The selector ID.
|
4518 |
+
*/
|
4519 |
+
public static function get_testimonial_js( $attr, $id ) { // @codingStandardsIgnoreStart.
|
4520 |
+
|
4521 |
+
$defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
|
4522 |
+
|
4523 |
+
$attr = array_merge( $defaults, (array) $attr );
|
4524 |
+
|
4525 |
+
$dots = ( "dots" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
|
4526 |
+
$arrows = ( "arrows" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
|
4527 |
+
|
4528 |
+
$slick_options = [
|
4529 |
+
'slidesToShow' => $attr['columns'],
|
4530 |
+
'slidesToScroll' => 1,
|
4531 |
+
'autoplaySpeed' => $attr['autoplaySpeed'],
|
4532 |
+
'autoplay' => $attr['autoplay'],
|
4533 |
+
'infinite' => $attr['infiniteLoop'],
|
4534 |
+
'pauseOnHover' => $attr['pauseOnHover'],
|
4535 |
+
'speed' => $attr['transitionSpeed'],
|
4536 |
+
'arrows' => $arrows,
|
4537 |
+
'dots' => $dots,
|
4538 |
+
'rtl' => false,
|
4539 |
+
'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>',
|
4540 |
+
'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>',
|
4541 |
+
'responsive' => [
|
4542 |
+
[
|
4543 |
+
'breakpoint' => 1024,
|
4544 |
+
'settings' => [
|
4545 |
+
'slidesToShow' => $attr['tcolumns'],
|
4546 |
+
'slidesToScroll' => 1,
|
4547 |
+
],
|
4548 |
+
],
|
4549 |
+
[
|
4550 |
+
'breakpoint' => 767,
|
4551 |
+
'settings' => [
|
4552 |
+
'slidesToShow' => $attr['mcolumns'],
|
4553 |
+
'slidesToScroll' => 1,
|
4554 |
+
],
|
4555 |
+
]
|
4556 |
+
]
|
4557 |
+
];
|
4558 |
+
|
4559 |
+
$settings = json_encode($slick_options);
|
4560 |
+
$selector = '#uagb-testimonial-'. $id;
|
4561 |
+
?>
|
4562 |
+
if( jQuery( ".wp-block-uagb-testimonial" ).length > 0 ){
|
4563 |
+
return true
|
4564 |
+
} else {
|
4565 |
+
jQuery( "<?php echo $selector ?>" ).find( ".is-carousel" ).slick( <?php echo $settings ?> );
|
4566 |
+
}
|
4567 |
+
<?php
|
4568 |
+
// @codingStandardsIgnoreEnd.
|
4569 |
+
}
|
4570 |
+
|
4571 |
+
/**
|
4572 |
+
* Get Blockquote Js
|
4573 |
+
*
|
4574 |
+
* @since 1.8.2
|
4575 |
+
* @param array $attr The block attributes.
|
4576 |
+
* @param string $id The selector ID.
|
4577 |
+
*/
|
4578 |
+
public static function get_blockquote_js( $attr, $id ) {
|
4579 |
+
// @codingStandardsIgnoreStart.
|
4580 |
+
|
4581 |
+
$defaults = UAGB_Helper::$block_list['uagb/blockquote']['attributes'];
|
4582 |
+
|
4583 |
+
$attr = array_merge( $defaults, (array) $attr );
|
4584 |
+
|
4585 |
+
$target = $attr['iconTargetUrl'];
|
4586 |
+
|
4587 |
+
$url = " " ;
|
4588 |
+
|
4589 |
+
if( $target == 'current' ){
|
4590 |
+
global $wp;
|
4591 |
+
$url = home_url(add_query_arg(array(),$wp->request));
|
4592 |
+
}else{
|
4593 |
+
$url = $attr['customUrl'];
|
4594 |
+
}
|
4595 |
+
|
4596 |
+
$via = isset( $attr['iconShareVia'] ) ? $attr['iconShareVia'] : '';
|
4597 |
+
|
4598 |
+
$selector = '#uagb-blockquote-'. $id;
|
4599 |
+
|
4600 |
+
?>
|
4601 |
+
jQuery( "<?php echo $selector ?>" ).find( ".uagb-blockquote__tweet-button" ).click(function(){
|
4602 |
+
var content = jQuery("<?php echo $selector ?>").find(".uagb-blockquote__content").text();
|
4603 |
+
var request_url = "https://twitter.com/share?url="+ encodeURIComponent("<?php echo $url ?>")+"&text="+content+"&via="+("<?php echo $via;?>");
|
4604 |
+
window.open( request_url );
|
4605 |
+
});
|
4606 |
+
<?php
|
4607 |
+
|
4608 |
+
// @codingStandardsIgnoreEnd.
|
4609 |
+
}
|
4610 |
+
|
4611 |
+
/**
|
4612 |
+
* Get Social Share JS
|
4613 |
+
*
|
4614 |
+
* @since 1.8.1
|
4615 |
+
* @param string $id The selector ID.
|
4616 |
+
*/
|
4617 |
+
public static function get_social_share_js( $id ) {
|
4618 |
+
$selector = '#uagb-social-share-' . $id;
|
4619 |
+
?>
|
4620 |
+
jQuery( "<?php echo $selector; ?>" ).find( ".uagb-ss__link" ).click(function(){
|
4621 |
+
var social_url = jQuery( this ).data( "href" );
|
4622 |
+
var target = "";
|
4623 |
+
if( social_url == "mailto:?body=" ){
|
4624 |
+
target = "_self";
|
4625 |
+
}
|
4626 |
+
var request_url = social_url + window.location.href ;
|
4627 |
+
window.open( request_url,target );
|
4628 |
+
});
|
4629 |
+
<?php
|
4630 |
+
}
|
4631 |
+
|
4632 |
+
/**
|
4633 |
+
* Get Table of Contents Js
|
4634 |
+
*
|
4635 |
+
* @since x.x.x
|
4636 |
+
* @param array $attr The block attributes.
|
4637 |
+
* @param string $id The selector ID.
|
4638 |
+
*/
|
4639 |
+
public static function get_table_of_contents_js( $attr, $id ) {
|
4640 |
+
// @codingStandardsIgnoreStart.
|
4641 |
+
|
4642 |
+
$defaults = UAGB_Helper::$block_list['uagb/table-of-contents']['attributes'];
|
4643 |
+
|
4644 |
+
$attr = array_merge( $defaults, (array) $attr );
|
4645 |
+
|
4646 |
+
$selector = '#uagb-toc-'. $id;
|
4647 |
+
?>
|
4648 |
+
jQuery( document ).ready(function() {
|
4649 |
+
UAGBTableOfContents._run( <?php echo json_encode( $attr ); ?>, '<?php echo $selector; ?>' );
|
4650 |
+
})
|
4651 |
+
<?php
|
4652 |
+
|
4653 |
+
// @codingStandardsIgnoreEnd.
|
4654 |
+
}
|
4655 |
+
|
4656 |
+
/**
|
4657 |
+
* Adds Google fonts for Advanced Heading block.
|
4658 |
+
*
|
4659 |
+
* @since 1.9.1
|
4660 |
+
* @param array $attr the blocks attr.
|
4661 |
+
*/
|
4662 |
+
public static function blocks_advanced_heading_gfont( $attr ) {
|
4663 |
+
|
4664 |
+
$head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
|
4665 |
+
$head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
|
4666 |
+
$head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
|
4667 |
+
$head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
|
4668 |
+
|
4669 |
+
$subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
|
4670 |
+
$subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
|
4671 |
+
$subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
|
4672 |
+
$subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
|
4673 |
+
|
4674 |
+
UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
|
4675 |
+
UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
|
4676 |
+
}
|
4677 |
+
|
4678 |
+
|
4679 |
+
/**
|
4680 |
+
* Adds Google fonts for CF7 Styler block.
|
4681 |
+
*
|
4682 |
+
* @since 1.10.0
|
4683 |
+
* @param array $attr the blocks attr.
|
4684 |
+
*/
|
4685 |
+
public static function blocks_cf7_styler_gfont( $attr ) {
|
4686 |
+
|
4687 |
+
$label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
|
4688 |
+
$label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
|
4689 |
+
$label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
|
4690 |
+
$label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
|
4691 |
+
|
4692 |
+
$input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
|
4693 |
+
$input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
|
4694 |
+
$input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
|
4695 |
+
$input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
|
4696 |
+
|
4697 |
+
$radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
|
4698 |
+
$radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
|
4699 |
+
$radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
|
4700 |
+
$radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
|
4701 |
+
|
4702 |
+
$button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
|
4703 |
+
$button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
|
4704 |
+
$button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
|
4705 |
+
$button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
|
4706 |
+
|
4707 |
+
$msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
|
4708 |
+
$msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
|
4709 |
+
$msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
|
4710 |
+
$msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
|
4711 |
+
|
4712 |
+
$validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
|
4713 |
+
$validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
|
4714 |
+
$validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
|
4715 |
+
$validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
|
4716 |
+
|
4717 |
+
UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
|
4718 |
+
UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
|
4719 |
+
|
4720 |
+
UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
|
4721 |
+
UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
|
4722 |
+
|
4723 |
+
UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
|
4724 |
+
UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
|
4725 |
+
}
|
4726 |
+
|
4727 |
+
|
4728 |
+
/**
|
4729 |
+
* Adds Google fonts for Gravity Form Styler block.
|
4730 |
+
*
|
4731 |
+
* @since 1.12.0
|
4732 |
+
* @param array $attr the blocks attr.
|
4733 |
+
*/
|
4734 |
+
public static function blocks_gf_styler_gfont( $attr ) {
|
4735 |
+
|
4736 |
+
$label_load_google_font = isset( $attr['labelLoadGoogleFonts'] ) ? $attr['labelLoadGoogleFonts'] : '';
|
4737 |
+
$label_font_family = isset( $attr['labelFontFamily'] ) ? $attr['labelFontFamily'] : '';
|
4738 |
+
$label_font_weight = isset( $attr['labelFontWeight'] ) ? $attr['labelFontWeight'] : '';
|
4739 |
+
$label_font_subset = isset( $attr['labelFontSubset'] ) ? $attr['labelFontSubset'] : '';
|
4740 |
+
|
4741 |
+
$input_load_google_font = isset( $attr['inputLoadGoogleFonts'] ) ? $attr['inputLoadGoogleFonts'] : '';
|
4742 |
+
$input_font_family = isset( $attr['inputFontFamily'] ) ? $attr['inputFontFamily'] : '';
|
4743 |
+
$input_font_weight = isset( $attr['inputFontWeight'] ) ? $attr['inputFontWeight'] : '';
|
4744 |
+
$input_font_subset = isset( $attr['inputFontSubset'] ) ? $attr['inputFontSubset'] : '';
|
4745 |
+
|
4746 |
+
$radio_check_load_google_font = isset( $attr['radioCheckLoadGoogleFonts'] ) ? $attr['radioCheckLoadGoogleFonts'] : '';
|
4747 |
+
$radio_check_font_family = isset( $attr['radioCheckFontFamily'] ) ? $attr['radioCheckFontFamily'] : '';
|
4748 |
+
$radio_check_font_weight = isset( $attr['radioCheckFontWeight'] ) ? $attr['radioCheckFontWeight'] : '';
|
4749 |
+
$radio_check_font_subset = isset( $attr['radioCheckFontSubset'] ) ? $attr['radioCheckFontSubset'] : '';
|
4750 |
+
|
4751 |
+
$button_load_google_font = isset( $attr['buttonLoadGoogleFonts'] ) ? $attr['buttonLoadGoogleFonts'] : '';
|
4752 |
+
$button_font_family = isset( $attr['buttonFontFamily'] ) ? $attr['buttonFontFamily'] : '';
|
4753 |
+
$button_font_weight = isset( $attr['buttonFontWeight'] ) ? $attr['buttonFontWeight'] : '';
|
4754 |
+
$button_font_subset = isset( $attr['buttonFontSubset'] ) ? $attr['buttonFontSubset'] : '';
|
4755 |
+
|
4756 |
+
$msg_font_load_google_font = isset( $attr['msgLoadGoogleFonts'] ) ? $attr['msgLoadGoogleFonts'] : '';
|
4757 |
+
$msg_font_family = isset( $attr['msgFontFamily'] ) ? $attr['msgFontFamily'] : '';
|
4758 |
+
$msg_font_weight = isset( $attr['msgFontWeight'] ) ? $attr['msgFontWeight'] : '';
|
4759 |
+
$msg_font_subset = isset( $attr['msgFontSubset'] ) ? $attr['msgFontSubset'] : '';
|
4760 |
+
|
4761 |
+
$validation_msg_load_google_font = isset( $attr['validationMsgLoadGoogleFonts'] ) ? $attr['validationMsgLoadGoogleFonts'] : '';
|
4762 |
+
$validation_msg_font_family = isset( $attr['validationMsgFontFamily'] ) ? $attr['validationMsgFontFamily'] : '';
|
4763 |
+
$validation_msg_font_weight = isset( $attr['validationMsgFontWeight'] ) ? $attr['validationMsgFontWeight'] : '';
|
4764 |
+
$validation_msg_font_subset = isset( $attr['validationMsgFontSubset'] ) ? $attr['validationMsgFontSubset'] : '';
|
4765 |
+
|
4766 |
+
UAGB_Helper::blocks_google_font( $msg_font_load_google_font, $msg_font_family, $msg_font_weight, $msg_font_subset );
|
4767 |
+
UAGB_Helper::blocks_google_font( $validation_msg_load_google_font, $validation_msg_font_family, $validation_msg_font_weight, $validation_msg_font_subset );
|
4768 |
+
|
4769 |
+
UAGB_Helper::blocks_google_font( $radio_check_load_google_font, $radio_check_font_family, $radio_check_font_weight, $radio_check_font_subset );
|
4770 |
+
UAGB_Helper::blocks_google_font( $button_load_google_font, $button_font_family, $button_font_weight, $button_font_subset );
|
4771 |
+
|
4772 |
+
UAGB_Helper::blocks_google_font( $label_load_google_font, $label_font_family, $label_font_weight, $label_font_subset );
|
4773 |
+
UAGB_Helper::blocks_google_font( $input_load_google_font, $input_font_family, $input_font_weight, $input_font_subset );
|
4774 |
+
}
|
4775 |
+
|
4776 |
+
/**
|
4777 |
+
* Adds Google fonts for Marketing Button block.
|
4778 |
+
*
|
4779 |
+
* @since 1.11.0
|
4780 |
+
* @param array $attr the blocks attr.
|
4781 |
+
*/
|
4782 |
+
public static function blocks_marketing_btn_gfont( $attr ) {
|
4783 |
+
|
4784 |
+
$title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
|
4785 |
+
$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
|
4786 |
+
$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
|
4787 |
+
$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
|
4788 |
+
|
4789 |
+
$prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
|
4790 |
+
$prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
|
4791 |
+
$prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
|
4792 |
+
$prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
|
4793 |
+
|
4794 |
+
UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
|
4795 |
+
UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
|
4796 |
+
}
|
4797 |
+
|
4798 |
+
/**
|
4799 |
+
* Adds Google fonts for Table Of Contents block.
|
4800 |
+
*
|
4801 |
+
* @since x.x.x
|
4802 |
+
* @param array $attr the blocks attr.
|
4803 |
+
*/
|
4804 |
+
public static function blocks_table_of_contents_gfont( $attr ) {
|
4805 |
+
|
4806 |
+
$load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
|
4807 |
+
$font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
|
4808 |
+
$font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
|
4809 |
+
$font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
|
4810 |
+
|
4811 |
+
$heading_load_google_font = isset( $attr['headingLoadGoogleFonts'] ) ? $attr['headingLoadGoogleFonts'] : '';
|
4812 |
+
$heading_font_family = isset( $attr['headingFontFamily'] ) ? $attr['headingFontFamily'] : '';
|
4813 |
+
$heading_font_weight = isset( $attr['headingFontWeight'] ) ? $attr['headingFontWeight'] : '';
|
4814 |
+
$heading_font_subset = isset( $attr['headingFontSubset'] ) ? $attr['headingFontSubset'] : '';
|
4815 |
+
|
4816 |
+
UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
|
4817 |
+
UAGB_Helper::blocks_google_font( $heading_load_google_font, $heading_font_family, $heading_font_weight, $heading_font_subset );
|
4818 |
+
}
|
4819 |
+
|
4820 |
+
/**
|
4821 |
+
* Adds Google fonts for Blockquote.
|
4822 |
+
*
|
4823 |
+
* @since 1.9.1
|
4824 |
+
* @param array $attr the blocks attr.
|
4825 |
+
*/
|
4826 |
+
public static function blocks_blockquote_gfont( $attr ) {
|
4827 |
+
|
4828 |
+
$desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
|
4829 |
+
$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
|
4830 |
+
$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
|
4831 |
+
$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
|
4832 |
+
|
4833 |
+
$author_load_google_font = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
|
4834 |
+
$author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
|
4835 |
+
$author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
|
4836 |
+
$author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
|
4837 |
+
|
4838 |
+
$tweet_btn_load_google_font = isset( $attr['tweetBtnLoadGoogleFonts'] ) ? $attr['tweetBtnLoadGoogleFonts'] : '';
|
4839 |
+
$tweet_btn_font_family = isset( $attr['tweetBtnFontFamily'] ) ? $attr['tweetBtnFontFamily'] : '';
|
4840 |
+
$tweet_btn_font_weight = isset( $attr['tweetBtnFontWeight'] ) ? $attr['tweetBtnFontWeight'] : '';
|
4841 |
+
$tweet_btn_font_subset = isset( $attr['tweetBtnFontSubset'] ) ? $attr['tweetBtnFontSubset'] : '';
|
4842 |
+
|
4843 |
+
UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
|
4844 |
+
UAGB_Helper::blocks_google_font( $author_load_google_font, $author_font_family, $author_font_weight, $author_font_subset );
|
4845 |
+
UAGB_Helper::blocks_google_font( $tweet_btn_load_google_font, $tweet_btn_font_family, $tweet_btn_font_weight, $tweet_btn_font_subset );
|
4846 |
+
}
|
4847 |
+
|
4848 |
+
/**
|
4849 |
+
* Adds Google fonts for Testimonial block.
|
4850 |
+
*
|
4851 |
+
* @since 1.9.1
|
4852 |
+
* @param array $attr the blocks attr.
|
4853 |
+
*/
|
4854 |
+
public static function blocks_testimonial_gfont( $attr ) {
|
4855 |
+
$desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
|
4856 |
+
$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
|
4857 |
+
$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
|
4858 |
+
$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
|
4859 |
+
|
4860 |
+
$name_load_google_fonts = isset( $attr['nameLoadGoogleFonts'] ) ? $attr['nameLoadGoogleFonts'] : '';
|
4861 |
+
$name_font_family = isset( $attr['nameFontFamily'] ) ? $attr['nameFontFamily'] : '';
|
4862 |
+
$name_font_weight = isset( $attr['nameFontWeight'] ) ? $attr['nameFontWeight'] : '';
|
4863 |
+
$name_font_subset = isset( $attr['nameFontSubset'] ) ? $attr['nameFontSubset'] : '';
|
4864 |
+
|
4865 |
+
$company_load_google_fonts = isset( $attr['companyLoadGoogleFonts'] ) ? $attr['companyLoadGoogleFonts'] : '';
|
4866 |
+
$company_font_family = isset( $attr['companyFontFamily'] ) ? $attr['companyFontFamily'] : '';
|
4867 |
+
$company_font_weight = isset( $attr['companyFontWeight'] ) ? $attr['companyFontWeight'] : '';
|
4868 |
+
$company_font_subset = isset( $attr['companyFontSubset'] ) ? $attr['companyFontSubset'] : '';
|
4869 |
+
|
4870 |
+
UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
|
4871 |
+
UAGB_Helper::blocks_google_font( $name_load_google_fonts, $name_font_family, $name_font_family, $name_font_subset );
|
4872 |
+
UAGB_Helper::blocks_google_font( $company_load_google_fonts, $company_font_family, $company_font_family, $company_font_subset );
|
4873 |
+
}
|
4874 |
+
|
4875 |
+
/**
|
4876 |
+
* Adds Google fonts for Advanced Heading block.
|
4877 |
+
*
|
4878 |
+
* @since 1.9.1
|
4879 |
+
* @param array $attr the blocks attr.
|
4880 |
+
*/
|
4881 |
+
public static function blocks_team_gfont( $attr ) {
|
4882 |
+
|
4883 |
+
$title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
|
4884 |
+
$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
|
4885 |
+
$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
|
4886 |
+
$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
|
4887 |
+
|
4888 |
+
$prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
|
4889 |
+
$prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
|
4890 |
+
$prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
|
4891 |
+
$prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
|
4892 |
+
|
4893 |
+
$desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
|
4894 |
+
$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
|
4895 |
+
$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
|
4896 |
+
$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
|
4897 |
+
|
4898 |
+
UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
|
4899 |
+
UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
|
4900 |
+
UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
|
4901 |
+
}
|
4902 |
+
|
4903 |
+
/**
|
4904 |
+
*
|
4905 |
+
* Adds Google fonts for Restaurant Menu block.
|
4906 |
+
*
|
4907 |
+
* @since 1.9.1
|
4908 |
+
* @param array $attr the blocks attr.
|
4909 |
+
*/
|
4910 |
+
public static function blocks_restaurant_menu_gfont( $attr ) {
|
4911 |
+
$title_load_google_fonts = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
|
4912 |
+
$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
|
4913 |
+
$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
|
4914 |
+
$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
|
4915 |
+
|
4916 |
+
$price_load_google_fonts = isset( $attr['priceLoadGoogleFonts'] ) ? $attr['priceLoadGoogleFonts'] : '';
|
4917 |
+
$price_font_family = isset( $attr['priceFontFamily'] ) ? $attr['priceFontFamily'] : '';
|
4918 |
+
$price_font_weight = isset( $attr['priceFontWeight'] ) ? $attr['priceFontWeight'] : '';
|
4919 |
+
$price_font_subset = isset( $attr['priceFontSubset'] ) ? $attr['priceFontSubset'] : '';
|
4920 |
+
|
4921 |
+
$desc_load_google_fonts = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
|
4922 |
+
$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
|
4923 |
+
$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
|
4924 |
+
$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
|
4925 |
+
|
4926 |
+
UAGB_Helper::blocks_google_font( $title_load_google_fonts, $title_font_family, $title_font_weight, $title_font_subset );
|
4927 |
+
UAGB_Helper::blocks_google_font( $price_load_google_fonts, $price_font_family, $price_font_weight, $price_font_subset );
|
4928 |
+
UAGB_Helper::blocks_google_font( $desc_load_google_fonts, $desc_font_family, $desc_font_weight, $desc_font_subset );
|
4929 |
+
}
|
4930 |
+
|
4931 |
+
/**
|
4932 |
+
* Adds Google fonts for Content Timeline block.
|
4933 |
+
*
|
4934 |
+
* @since 1.9.1
|
4935 |
+
* @param array $attr the blocks attr.
|
4936 |
+
*/
|
4937 |
+
public static function blocks_content_timeline_gfont( $attr ) {
|
4938 |
+
$head_load_google_fonts = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
|
4939 |
+
$head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
|
4940 |
+
$head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
|
4941 |
+
$head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
|
4942 |
+
|
4943 |
+
$subheadload_google_fonts = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
|
4944 |
+
$subheadfont_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
|
4945 |
+
$subheadfont_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
|
4946 |
+
$subheadfont_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
|
4947 |
+
|
4948 |
+
$date_load_google_fonts = isset( $attr['dateLoadGoogleFonts'] ) ? $attr['dateLoadGoogleFonts'] : '';
|
4949 |
+
$date_font_family = isset( $attr['dateFontFamily'] ) ? $attr['dateFontFamily'] : '';
|
4950 |
+
$date_font_weight = isset( $attr['dateFontWeight'] ) ? $attr['dateFontWeight'] : '';
|
4951 |
+
$date_font_subset = isset( $attr['dateFontSubset'] ) ? $attr['dateFontSubset'] : '';
|
4952 |
+
|
4953 |
+
UAGB_Helper::blocks_google_font( $head_load_google_fonts, $head_font_family, $head_font_weight, $head_font_subset );
|
4954 |
+
UAGB_Helper::blocks_google_font( $subheadload_google_fonts, $subheadfont_family, $subheadfont_weight, $subheadfont_subset );
|
4955 |
+
UAGB_Helper::blocks_google_font( $date_load_google_fonts, $date_font_family, $date_font_weight, $date_font_subset );
|
4956 |
+
}
|
4957 |
+
|
4958 |
+
/**
|
4959 |
+
* Adds Google fonts for Post Timeline block.
|
4960 |
+
*
|
4961 |
+
* @since 1.9.1
|
4962 |
+
* @param array $attr the blocks attr.
|
4963 |
+
*/
|
4964 |
+
public static function blocks_post_timeline_gfont( $attr ) {
|
4965 |
+
self::blocks_content_timeline_gfont( $attr );
|
4966 |
+
|
4967 |
+
$author_load_google_fonts = isset( $attr['authorLoadGoogleFonts'] ) ? $attr['authorLoadGoogleFonts'] : '';
|
4968 |
+
$author_font_family = isset( $attr['authorFontFamily'] ) ? $attr['authorFontFamily'] : '';
|
4969 |
+
$author_font_weight = isset( $attr['authorFontWeight'] ) ? $attr['authorFontWeight'] : '';
|
4970 |
+
$author_font_subset = isset( $attr['authorFontSubset'] ) ? $attr['authorFontSubset'] : '';
|
4971 |
+
|
4972 |
+
$cta_load_google_fonts = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
|
4973 |
+
$cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
|
4974 |
+
$cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
|
4975 |
+
$cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
|
4976 |
+
|
4977 |
+
UAGB_Helper::blocks_google_font( $author_load_google_fonts, $author_font_family, $author_font_weight, $author_font_subset );
|
4978 |
+
UAGB_Helper::blocks_google_font( $cta_load_google_fonts, $cta_font_family, $cta_font_weight, $cta_font_subset );
|
4979 |
+
}
|
4980 |
+
|
4981 |
+
/**
|
4982 |
+
* Adds Google fonts for Mulit Button's block.
|
4983 |
+
*
|
4984 |
+
* @since 1.9.1
|
4985 |
+
* @param array $attr the blocks attr.
|
4986 |
+
*/
|
4987 |
+
public static function blocks_buttons_gfont( $attr ) {
|
4988 |
+
|
4989 |
+
$load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
|
4990 |
+
$font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
|
4991 |
+
$font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
|
4992 |
+
$font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
|
4993 |
+
|
4994 |
+
UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
|
4995 |
+
}
|
4996 |
+
|
4997 |
+
/**
|
4998 |
+
* Adds Google fonts for Icon List block
|
4999 |
+
*
|
5000 |
+
* @since 1.9.1
|
5001 |
+
* @param array $attr the blocks attr.
|
5002 |
+
*/
|
5003 |
+
public static function blocks_icon_list_gfont( $attr ) {
|
5004 |
+
|
5005 |
+
$load_google_font = isset( $attr['loadGoogleFonts'] ) ? $attr['loadGoogleFonts'] : '';
|
5006 |
+
$font_family = isset( $attr['fontFamily'] ) ? $attr['fontFamily'] : '';
|
5007 |
+
$font_weight = isset( $attr['fontWeight'] ) ? $attr['fontWeight'] : '';
|
5008 |
+
$font_subset = isset( $attr['fontSubset'] ) ? $attr['fontSubset'] : '';
|
5009 |
+
|
5010 |
+
UAGB_Helper::blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset );
|
5011 |
+
}
|
5012 |
+
|
5013 |
+
/**
|
5014 |
+
* Adds Google fonts for Post block.
|
5015 |
+
*
|
5016 |
+
* @since 1.9.1
|
5017 |
+
* @param array $attr the blocks attr.
|
5018 |
+
*/
|
5019 |
+
public static function blocks_post_gfont( $attr ) {
|
5020 |
+
|
5021 |
+
$title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
|
5022 |
+
$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
|
5023 |
+
$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
|
5024 |
+
$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
|
5025 |
+
|
5026 |
+
$meta_load_google_font = isset( $attr['metaLoadGoogleFonts'] ) ? $attr['metaLoadGoogleFonts'] : '';
|
5027 |
+
$meta_font_family = isset( $attr['metaFontFamily'] ) ? $attr['metaFontFamily'] : '';
|
5028 |
+
$meta_font_weight = isset( $attr['metaFontWeight'] ) ? $attr['metaFontWeight'] : '';
|
5029 |
+
$meta_font_subset = isset( $attr['metaFontSubset'] ) ? $attr['metaFontSubset'] : '';
|
5030 |
+
|
5031 |
+
$excerpt_load_google_font = isset( $attr['excerptLoadGoogleFonts'] ) ? $attr['excerptLoadGoogleFonts'] : '';
|
5032 |
+
$excerpt_font_family = isset( $attr['excerptFontFamily'] ) ? $attr['excerptFontFamily'] : '';
|
5033 |
+
$excerpt_font_weight = isset( $attr['excerptFontWeight'] ) ? $attr['excerptFontWeight'] : '';
|
5034 |
+
$excerpt_font_subset = isset( $attr['excerptFontSubset'] ) ? $attr['excerptFontSubset'] : '';
|
5035 |
+
|
5036 |
+
$cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
|
5037 |
+
$cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
|
5038 |
+
$cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
|
5039 |
+
$cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
|
5040 |
+
|
5041 |
+
UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
|
5042 |
+
|
5043 |
+
UAGB_Helper::blocks_google_font( $meta_load_google_font, $meta_font_family, $meta_font_weight, $meta_font_subset );
|
5044 |
+
|
5045 |
+
UAGB_Helper::blocks_google_font( $excerpt_load_google_font, $excerpt_font_family, $excerpt_font_weight, $excerpt_font_subset );
|
5046 |
+
|
5047 |
+
UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
|
5048 |
+
}
|
5049 |
+
|
5050 |
+
/**
|
5051 |
+
* Adds Google fonts for Advanced Heading block.
|
5052 |
+
*
|
5053 |
+
* @since 1.9.1
|
5054 |
+
* @param array $attr the blocks attr.
|
5055 |
+
*/
|
5056 |
+
public static function blocks_info_box_gfont( $attr ) {
|
5057 |
+
|
5058 |
+
$head_load_google_font = isset( $attr['headLoadGoogleFonts'] ) ? $attr['headLoadGoogleFonts'] : '';
|
5059 |
+
$head_font_family = isset( $attr['headFontFamily'] ) ? $attr['headFontFamily'] : '';
|
5060 |
+
$head_font_weight = isset( $attr['headFontWeight'] ) ? $attr['headFontWeight'] : '';
|
5061 |
+
$head_font_subset = isset( $attr['headFontSubset'] ) ? $attr['headFontSubset'] : '';
|
5062 |
+
|
5063 |
+
$prefix_load_google_font = isset( $attr['prefixLoadGoogleFonts'] ) ? $attr['prefixLoadGoogleFonts'] : '';
|
5064 |
+
$prefix_font_family = isset( $attr['prefixFontFamily'] ) ? $attr['prefixFontFamily'] : '';
|
5065 |
+
$prefix_font_weight = isset( $attr['prefixFontWeight'] ) ? $attr['prefixFontWeight'] : '';
|
5066 |
+
$prefix_font_subset = isset( $attr['prefixFontSubset'] ) ? $attr['prefixFontSubset'] : '';
|
5067 |
+
|
5068 |
+
$subhead_load_google_font = isset( $attr['subHeadLoadGoogleFonts'] ) ? $attr['subHeadLoadGoogleFonts'] : '';
|
5069 |
+
$subhead_font_family = isset( $attr['subHeadFontFamily'] ) ? $attr['subHeadFontFamily'] : '';
|
5070 |
+
$subhead_font_weight = isset( $attr['subHeadFontWeight'] ) ? $attr['subHeadFontWeight'] : '';
|
5071 |
+
$subhead_font_subset = isset( $attr['subHeadFontSubset'] ) ? $attr['subHeadFontSubset'] : '';
|
5072 |
+
|
5073 |
+
$cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
|
5074 |
+
$cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
|
5075 |
+
$cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
|
5076 |
+
$cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
|
5077 |
+
|
5078 |
+
UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
|
5079 |
+
UAGB_Helper::blocks_google_font( $head_load_google_font, $head_font_family, $head_font_weight, $head_font_subset );
|
5080 |
+
UAGB_Helper::blocks_google_font( $prefix_load_google_font, $prefix_font_family, $prefix_font_weight, $prefix_font_subset );
|
5081 |
+
UAGB_Helper::blocks_google_font( $subhead_load_google_font, $subhead_font_family, $subhead_font_weight, $subhead_font_subset );
|
5082 |
+
}
|
5083 |
+
|
5084 |
+
/**
|
5085 |
+
* Adds Google fonts for Call To Action block.
|
5086 |
+
*
|
5087 |
+
* @since 1.9.1
|
5088 |
+
* @param array $attr the blocks attr.
|
5089 |
+
*/
|
5090 |
+
public static function blocks_call_to_action_gfont( $attr ) {
|
5091 |
+
|
5092 |
+
$title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';
|
5093 |
+
$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';
|
5094 |
+
$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';
|
5095 |
+
$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';
|
5096 |
+
|
5097 |
+
$desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';
|
5098 |
+
$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';
|
5099 |
+
$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';
|
5100 |
+
$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';
|
5101 |
+
|
5102 |
+
$cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';
|
5103 |
+
$cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';
|
5104 |
+
$cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';
|
5105 |
+
$cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';
|
5106 |
+
|
5107 |
+
UAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );
|
5108 |
+
UAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );
|
5109 |
+
UAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );
|
5110 |
+
}
|
5111 |
+
}
|
5112 |
+
}
|
classes/class-uagb-config.php
CHANGED
@@ -1,1706 +1,1706 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* UAGB Config.
|
4 |
-
*
|
5 |
-
* @package UAGB
|
6 |
-
*/
|
7 |
-
|
8 |
-
if ( ! class_exists( 'UAGB_Config' ) ) {
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Class UAGB_Config.
|
12 |
-
*/
|
13 |
-
class UAGB_Config {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Block Attributes
|
17 |
-
*
|
18 |
-
* @var block_attributes
|
19 |
-
*/
|
20 |
-
public static $block_attributes = null;
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Get Widget List.
|
24 |
-
*
|
25 |
-
* @since 0.0.1
|
26 |
-
*
|
27 |
-
* @return array The Widget List.
|
28 |
-
*/
|
29 |
-
public static function get_block_attributes() {
|
30 |
-
|
31 |
-
if ( null === self::$block_attributes ) {
|
32 |
-
self::$block_attributes = array(
|
33 |
-
'uagb/advanced-heading' => array(
|
34 |
-
'slug' => '',
|
35 |
-
'title' => __( 'Advanced Heading', 'ultimate-addons-for-gutenberg' ),
|
36 |
-
'description' => __( 'This block lets you add a combination of a heading and a sub-heading with a separator in between.', 'ultimate-addons-for-gutenberg' ),
|
37 |
-
'default' => true,
|
38 |
-
'attributes' => array(
|
39 |
-
'headingAlign' => 'center',
|
40 |
-
'headingColor' => '',
|
41 |
-
'subHeadingColor' => '',
|
42 |
-
'separatorColor' => '',
|
43 |
-
'seperatorStyle' => 'solid',
|
44 |
-
'separatorHeight' => '',
|
45 |
-
'separatorWidth' => '',
|
46 |
-
'separatorWidthType' => '%',
|
47 |
-
'headFontFamily' => '',
|
48 |
-
'headLoadGoogleFonts' => false,
|
49 |
-
'headFontWeight' => '',
|
50 |
-
'headFontSubset' => '',
|
51 |
-
'headFontSize' => '',
|
52 |
-
'headFontSizeType' => 'px',
|
53 |
-
'headFontSizeTablet' => '',
|
54 |
-
'headFontSizeMobile' => '',
|
55 |
-
'headLineHeight' => '',
|
56 |
-
'headLineHeightType' => 'em',
|
57 |
-
'headLineHeightTablet' => '',
|
58 |
-
'headLineHeightMobile' => '',
|
59 |
-
'subHeadFontFamily' => '',
|
60 |
-
'subHeadLoadGoogleFonts' => false,
|
61 |
-
'subHeadFontWeight' => '',
|
62 |
-
'subHeadFontSubset' => '',
|
63 |
-
'subHeadFontSize' => '',
|
64 |
-
'subHeadFontSizeType' => 'px',
|
65 |
-
'subHeadFontSizeTablet' => '',
|
66 |
-
'subHeadFontSizeMobile' => '',
|
67 |
-
'subHeadLineHeight' => '',
|
68 |
-
'subHeadLineHeightType' => 'em',
|
69 |
-
'subHeadLineHeightTablet' => '',
|
70 |
-
'subHeadLineHeightMobile' => '',
|
71 |
-
'headSpace' => 15,
|
72 |
-
'separatorSpace' => 15,
|
73 |
-
),
|
74 |
-
),
|
75 |
-
'uagb/columns' => array(
|
76 |
-
'slug' => '',
|
77 |
-
'title' => __( 'Advanced Columns', 'ultimate-addons-for-gutenberg' ),
|
78 |
-
'description' => __( 'This block gives you advanced options to insert a number of columns within a single row.', 'ultimate-addons-for-gutenberg' ),
|
79 |
-
'default' => true,
|
80 |
-
'attributes' => array(
|
81 |
-
'block_id' => '',
|
82 |
-
'columns' => '2',
|
83 |
-
'align' => '',
|
84 |
-
'vAlign' => '',
|
85 |
-
'stack' => 'mobile',
|
86 |
-
'topPadding' => '20',
|
87 |
-
'bottomPadding' => '20',
|
88 |
-
'leftPadding' => '20',
|
89 |
-
'rightPadding' => '20',
|
90 |
-
'topMargin' => '0',
|
91 |
-
'bottomMargin' => '0',
|
92 |
-
'topPaddingTablet' => '',
|
93 |
-
'bottomPaddingTablet' => '',
|
94 |
-
'leftPaddingTablet' => '',
|
95 |
-
'rightPaddingTablet' => '',
|
96 |
-
'topPaddingMobile' => '',
|
97 |
-
'bottomPaddingMobile' => '',
|
98 |
-
'leftPaddingMobile' => '',
|
99 |
-
'rightPaddingMobile' => '',
|
100 |
-
'topMarginMobile' => '',
|
101 |
-
'bottomMarginMobile' => '',
|
102 |
-
'topMarginTablet' => '',
|
103 |
-
'bottomMarginTablet' => '',
|
104 |
-
'contentWidth' => 'theme',
|
105 |
-
'width' => '900',
|
106 |
-
'tag' => 'section',
|
107 |
-
'backgroundType' => 'none',
|
108 |
-
'backgroundImage' => '',
|
109 |
-
'backgroundPosition' => 'center-center',
|
110 |
-
'backgroundSize' => 'cover',
|
111 |
-
'backgroundRepeat' => 'no-repeat',
|
112 |
-
'backgroundAttachment' => 'scroll',
|
113 |
-
'backgroundVideo' => '',
|
114 |
-
'backgroundColor' => '',
|
115 |
-
'gradientColor1' => '',
|
116 |
-
'gradientColor2' => '',
|
117 |
-
'gradientType' => 'linear',
|
118 |
-
'gradientLocation1' => '0',
|
119 |
-
'gradientLocation2' => '100',
|
120 |
-
'gradientAngle' => '0',
|
121 |
-
'backgroundOpacity' => '',
|
122 |
-
'backgroundVideoOpacity' => '50',
|
123 |
-
'backgroundVideoColor' => '',
|
124 |
-
'backgroundImageColor' => '',
|
125 |
-
'borderStyle' => 'none',
|
126 |
-
'borderWidth' => '1',
|
127 |
-
'borderRadius' => '',
|
128 |
-
'borderColor' => '',
|
129 |
-
'columnGap' => '10',
|
130 |
-
'bottomType' => 'none',
|
131 |
-
'bottomColor' => '#333',
|
132 |
-
'bottomHeight' => '',
|
133 |
-
'bottomHeightTablet' => '',
|
134 |
-
'bottomHeightMobile' => '',
|
135 |
-
'bottomWidth' => '',
|
136 |
-
'topType' => 'none',
|
137 |
-
'topColor' => '#333',
|
138 |
-
'topHeight' => '',
|
139 |
-
'topHeightTablet' => '',
|
140 |
-
'topHeightMobile' => '',
|
141 |
-
'topWidth' => '',
|
142 |
-
'bottomFlip' => '',
|
143 |
-
'topFlip' => '',
|
144 |
-
),
|
145 |
-
),
|
146 |
-
'uagb/column' => array(
|
147 |
-
'slug' => '',
|
148 |
-
'title' => __( 'Column', 'ultimate-addons-for-gutenberg' ),
|
149 |
-
'description' => __( 'This block is an immediate child of Advanced Columns.', 'ultimate-addons-for-gutenberg' ),
|
150 |
-
'default' => true,
|
151 |
-
'is_child' => true,
|
152 |
-
'attributes' => array(
|
153 |
-
'block_id' => '',
|
154 |
-
'topPadding' => '',
|
155 |
-
'bottomPadding' => '',
|
156 |
-
'leftPadding' => '',
|
157 |
-
'rightPadding' => '',
|
158 |
-
'topMargin' => '',
|
159 |
-
'bottomMargin' => '',
|
160 |
-
'leftMargin' => '',
|
161 |
-
'rightMargin' => '',
|
162 |
-
'topPaddingTablet' => '',
|
163 |
-
'bottomPaddingTablet' => '',
|
164 |
-
'leftPaddingTablet' => '',
|
165 |
-
'rightPaddingTablet' => '',
|
166 |
-
'topPaddingMobile' => '',
|
167 |
-
'bottomPaddingMobile' => '',
|
168 |
-
'leftPaddingMobile' => '',
|
169 |
-
'rightPaddingMobile' => '',
|
170 |
-
'topMarginMobile' => '',
|
171 |
-
'bottomMarginMobile' => '',
|
172 |
-
'leftMarginMobile' => '',
|
173 |
-
'rightMarginMobile' => '',
|
174 |
-
'topMarginTablet' => '',
|
175 |
-
'bottomMarginTablet' => '',
|
176 |
-
'leftMarginTablet' => '',
|
177 |
-
'rightMarginTablet' => '',
|
178 |
-
'colWidth' => '',
|
179 |
-
'colWidthTablet' => '',
|
180 |
-
'colWidthMobile' => '',
|
181 |
-
'backgroundType' => 'none',
|
182 |
-
'backgroundImage' => '',
|
183 |
-
'backgroundPosition' => 'center-center',
|
184 |
-
'backgroundSize' => 'cover',
|
185 |
-
'backgroundRepeat' => 'no-repeat',
|
186 |
-
'backgroundAttachment' => 'scroll',
|
187 |
-
'backgroundColor' => '',
|
188 |
-
'gradientColor1' => '',
|
189 |
-
'gradientColor2' => '',
|
190 |
-
'gradientType' => 'linear',
|
191 |
-
'gradientLocation1' => 0,
|
192 |
-
'gradientLocation2' => 100,
|
193 |
-
'gradientAngle' => 0,
|
194 |
-
'backgroundOpacity' => '',
|
195 |
-
'backgroundImageColor' => '',
|
196 |
-
'borderStyle' => 'none',
|
197 |
-
'borderWidth' => 1,
|
198 |
-
'borderRadius' => '',
|
199 |
-
'borderColor' => '',
|
200 |
-
'align' => 'center',
|
201 |
-
'alignMobile' => '',
|
202 |
-
'alignTablet' => '',
|
203 |
-
),
|
204 |
-
),
|
205 |
-
'uagb/blockquote' => array(
|
206 |
-
'slug' => '',
|
207 |
-
'title' => __( 'Blockquote', 'ultimate-addons-for-gutenberg' ),
|
208 |
-
'description' => __( 'This block allows you to display your Blockquote.', 'ultimate-addons-for-gutenberg' ),
|
209 |
-
'default' => true,
|
210 |
-
'attributes' => array(
|
211 |
-
'block_id ' => '',
|
212 |
-
'skinStyle' => 'border',
|
213 |
-
'align' => 'left',
|
214 |
-
'descColor' => '',
|
215 |
-
'descFontSize' => '',
|
216 |
-
'descFontSizeType' => 'px',
|
217 |
-
'descFontSizeTablet' => '',
|
218 |
-
'descFontSizeMobile' => '',
|
219 |
-
'descFontFamily' => '',
|
220 |
-
'descFontWeight' => '',
|
221 |
-
'descFontSubset' => '',
|
222 |
-
'descLineHeightType' => 'em
|
223 |
-
',
|
224 |
-
'descLineHeight' => '',
|
225 |
-
'descLineHeightTablet' => '',
|
226 |
-
'descLineHeightMobile' => '',
|
227 |
-
'descLoadGoogleFonts' => false,
|
228 |
-
'descSpace' => 20,
|
229 |
-
'authorColor' => '#888888',
|
230 |
-
'authorFontSize' => '',
|
231 |
-
'authorFontSizeType' => 'px',
|
232 |
-
'authorFontSizeTablet' => '',
|
233 |
-
'authorFontSizeMobile' => '',
|
234 |
-
'authorFontFamily' => '',
|
235 |
-
'authorFontWeight' => '',
|
236 |
-
'authorFontSubset' => '',
|
237 |
-
'authorLineHeightType' => 'em
|
238 |
-
',
|
239 |
-
'authorLineHeight' => '',
|
240 |
-
'authorLineHeightTablet' => '',
|
241 |
-
'authorLineHeightMobile' => '',
|
242 |
-
'authorLoadGoogleFonts' => false,
|
243 |
-
'authorSpace' => 10,
|
244 |
-
'authorImageWidth' => 40,
|
245 |
-
'authorImgBorderRadius' => 100,
|
246 |
-
'authorImgPosition' => 'right',
|
247 |
-
'stack' => 'tablet',
|
248 |
-
'enableTweet' => true,
|
249 |
-
'iconView' => 'icon_text',
|
250 |
-
'iconSkin' => 'link',
|
251 |
-
'tweetLinkColor' => '#1DA1F2',
|
252 |
-
'tweetBtnColor' => '#fff',
|
253 |
-
'tweetBtnBgColor' => '#1DA1F2',
|
254 |
-
'tweetBtnHoverColor' => '',
|
255 |
-
'tweetBtnBgHoverColor' => '#1DA1F2',
|
256 |
-
'tweetBtnFontSize' => 15,
|
257 |
-
'tweetBtnFontSizeType' => 'px',
|
258 |
-
'tweetBtnFontSizeTablet' => '',
|
259 |
-
'tweetBtnFontSizeMobile' => '',
|
260 |
-
'tweetBtnFontFamily' => '',
|
261 |
-
'tweetBtnFontWeight' => '',
|
262 |
-
'tweetBtnFontSubset' => '',
|
263 |
-
'tweetBtnLineHeightType' => 'em',
|
264 |
-
'tweetBtnLineHeight' => '',
|
265 |
-
'tweetBtnLineHeightTablet' => '',
|
266 |
-
'tweetBtnLineHeightMobile' => '',
|
267 |
-
'tweetBtnLoadGoogleFonts' => false,
|
268 |
-
'tweetBtnHrPadding' => 10,
|
269 |
-
'tweetBtnVrPadding' => 10,
|
270 |
-
'tweetIconSpacing' => 10,
|
271 |
-
'borderColor' => '#abb8c3',
|
272 |
-
'borderStyle' => 'solid',
|
273 |
-
'borderWidth' => 4,
|
274 |
-
'borderGap' => 15,
|
275 |
-
'verticalPadding' => '',
|
276 |
-
'quoteStyle' => 'style_1',
|
277 |
-
'quoteColor' => '#abb8c3',
|
278 |
-
'quoteSize' => 25,
|
279 |
-
'quoteSizeType' => 'px',
|
280 |
-
'quoteSizeTablet' => '',
|
281 |
-
'quoteSizeMobile' => '',
|
282 |
-
'quoteTopMargin' => '',
|
283 |
-
'quoteBottomMargin' => '',
|
284 |
-
'quoteLeftMargin' => '',
|
285 |
-
'quoteRightMargin' => 20,
|
286 |
-
'quoteBorderRadius' => 100,
|
287 |
-
'quoteBgColor' => '#333',
|
288 |
-
'quoteHoverColor' => '',
|
289 |
-
'quoteBgHoverColor' => '',
|
290 |
-
'borderHoverColor' => '',
|
291 |
-
'iconTargetUrl' => 'current',
|
292 |
-
'customUrl' => '',
|
293 |
-
'iconShareVia' => '',
|
294 |
-
'quotePadding' => 10,
|
295 |
-
'quotePaddingType' => 'px',
|
296 |
-
'quotePaddingTablet' => '',
|
297 |
-
'quotePaddingMobile' => '',
|
298 |
-
),
|
299 |
-
),
|
300 |
-
'uagb/call-to-action' => array(
|
301 |
-
'slug' => '',
|
302 |
-
'title' => __( 'Call To Action', 'ultimate-addons-for-gutenberg' ),
|
303 |
-
'description' => __( 'This block allows you to place an CTA along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
|
304 |
-
'default' => true,
|
305 |
-
'attributes' => array(
|
306 |
-
'textAlign' => 'left',
|
307 |
-
'titleColor' => '',
|
308 |
-
'descColor' => '',
|
309 |
-
'ctaPosition' => 'right',
|
310 |
-
'titleTag' => '',
|
311 |
-
'titleFontSize' => '',
|
312 |
-
'titleFontSizeType' => 'px',
|
313 |
-
'titleFontSizeMobile' => '',
|
314 |
-
'titleFontSizeTablet' => '',
|
315 |
-
'titleFontFamily' => '',
|
316 |
-
'titleFontWeight' => '',
|
317 |
-
'titleFontSubset' => '',
|
318 |
-
'titleLineHeightType' => 'em',
|
319 |
-
'titleLineHeight' => '',
|
320 |
-
'titleLineHeightTablet' => '',
|
321 |
-
'titleLineHeightMobile' => '',
|
322 |
-
'titleLoadGoogleFonts' => false,
|
323 |
-
'descFontSize' => '',
|
324 |
-
'descFontSizeType' => 'px',
|
325 |
-
'descFontSizeMobile' => '',
|
326 |
-
'descFontSizeTablet' => '',
|
327 |
-
'descFontFamily' => '',
|
328 |
-
'descFontWeight' => '',
|
329 |
-
'descFontSubset' => '',
|
330 |
-
'descLineHeightType' => 'em',
|
331 |
-
'descLineHeight' => '',
|
332 |
-
'descLineHeightTablet' => '',
|
333 |
-
'descLineHeightMobile' => '',
|
334 |
-
'descLoadGoogleFonts' => false,
|
335 |
-
'titleSpace' => 10,
|
336 |
-
'descSpace' => 10,
|
337 |
-
'buttonAlign' => 'top',
|
338 |
-
'ctaTarget' => false,
|
339 |
-
'ctaIconPosition' => 'after',
|
340 |
-
'ctaIconSpace' => 5,
|
341 |
-
'ctaType' => 'button',
|
342 |
-
'ctaLink' => '#',
|
343 |
-
'ctaFontSize' => '',
|
344 |
-
'ctaFontSizeType' => 'px',
|
345 |
-
'ctaFontSizeMobile' => '',
|
346 |
-
'ctaFontSizeTablet' => '',
|
347 |
-
'ctaFontFamily' => '',
|
348 |
-
'ctaFontWeight' => '',
|
349 |
-
'ctaFontSubset' => '',
|
350 |
-
'ctaLoadGoogleFonts' => false,
|
351 |
-
'ctaBtnLinkColor' => '#333',
|
352 |
-
'ctaBgColor' => 'transparent',
|
353 |
-
'ctaBgHoverColor' => 'transparent',
|
354 |
-
'ctaBorderColor' => '#333',
|
355 |
-
'ctaBorderhoverColor' => '',
|
356 |
-
'ctaBorderStyle' => 'solid',
|
357 |
-
'ctaBtnVertPadding' => 10,
|
358 |
-
'ctaBtnHrPadding' => 14,
|
359 |
-
'ctaBorderWidth' => 1,
|
360 |
-
'ctaBorderRadius' => 0,
|
361 |
-
'stack' => 'tablet',
|
362 |
-
'showTitle' => true,
|
363 |
-
'showDesc' => true,
|
364 |
-
'ctaLeftSpace' => 5,
|
365 |
-
'ctaRightSpace' => 5,
|
366 |
-
'contentWidth' => 70,
|
367 |
-
'ctaLinkHoverColor' => '',
|
368 |
-
),
|
369 |
-
),
|
370 |
-
'uagb/cf7-styler' => array(
|
371 |
-
'slug' => '',
|
372 |
-
'title' => __( 'Contact Form 7 Styler', 'ultimate-addons-for-gutenberg' ),
|
373 |
-
'description' => __( 'This block allows you to add and style your Contact Form 7 forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
|
374 |
-
'is_active' => class_exists( 'WPCF7_ContactForm' ),
|
375 |
-
'default' => true,
|
376 |
-
'attributes' => array(
|
377 |
-
'block_id' => '',
|
378 |
-
'align' => 'left',
|
379 |
-
'formId' => '0',
|
380 |
-
'fieldStyle' => 'box',
|
381 |
-
'fieldHrPadding' => 10,
|
382 |
-
'fieldVrPadding' => 10,
|
383 |
-
'fieldBgColor' => '#fafafa',
|
384 |
-
'fieldLabelColor' => '#333',
|
385 |
-
'fieldInputColor' => '#333',
|
386 |
-
'fieldBorderStyle' => 'solid',
|
387 |
-
'fieldBorderWidth' => 1,
|
388 |
-
'fieldBorderRadius' => 0,
|
389 |
-
'fieldBorderColor' => '#eeeeee',
|
390 |
-
'fieldBorderFocusColor' => '',
|
391 |
-
'buttonAlignment' => 'left',
|
392 |
-
'buttonVrPadding' => 10,
|
393 |
-
'buttonHrPadding' => 25,
|
394 |
-
'buttonTextColor' => '#333',
|
395 |
-
'buttonBgColor' => 'transparent',
|
396 |
-
'buttonTextHoverColor' => '',
|
397 |
-
'buttonBgHoverColor' => '',
|
398 |
-
'buttonBorderStyle' => 'solid',
|
399 |
-
'buttonBorderWidth' => 1,
|
400 |
-
'buttonBorderRadius' => 0,
|
401 |
-
'buttonBorderColor' => '#333',
|
402 |
-
'buttonBorderHoverColor' => '',
|
403 |
-
'fieldSpacing' => '',
|
404 |
-
'fieldLabelSpacing' => '',
|
405 |
-
'labelFontSize' => '',
|
406 |
-
'labelFontSizeType' => 'px',
|
407 |
-
'labelFontSizeTablet' => '',
|
408 |
-
'labelFontSizeMobile' => '',
|
409 |
-
'labelFontFamily' => '',
|
410 |
-
'labelFontWeight' => '',
|
411 |
-
'labelFontSubset' => '',
|
412 |
-
'labelLineHeightType' => 'px',
|
413 |
-
'labelLineHeight' => '',
|
414 |
-
'labelLineHeightTablet' => '',
|
415 |
-
'labelLineHeightMobile' => '',
|
416 |
-
'labelLoadGoogleFonts' => false,
|
417 |
-
'inputFontSize' => '',
|
418 |
-
'inputFontSizeType' => 'px',
|
419 |
-
'inputFontSizeTablet' => '',
|
420 |
-
'inputFontSizeMobile' => '',
|
421 |
-
'inputFontFamily' => '',
|
422 |
-
'inputFontWeight' => '',
|
423 |
-
'inputFontSubset' => '',
|
424 |
-
'inputLineHeightType' => 'px',
|
425 |
-
'inputLineHeight' => '',
|
426 |
-
'inputLineHeightTablet' => '',
|
427 |
-
'inputLineHeightMobile' => '',
|
428 |
-
'inputLoadGoogleFonts' => false,
|
429 |
-
'buttonFontSize' => '',
|
430 |
-
'buttonFontSizeType' => 'px',
|
431 |
-
'buttonFontSizeTablet' => '',
|
432 |
-
'buttonFontSizeMobile' => '',
|
433 |
-
'buttonFontFamily' => '',
|
434 |
-
'buttonFontWeight' => '',
|
435 |
-
'buttonFontSubset' => '',
|
436 |
-
'buttonLineHeightType' => 'px',
|
437 |
-
'buttonLineHeight' => '',
|
438 |
-
'buttonLineHeightTablet' => '',
|
439 |
-
'buttonLineHeightMobile' => '',
|
440 |
-
'buttonLoadGoogleFonts' => false,
|
441 |
-
'enableOveride' => true,
|
442 |
-
'radioCheckSize' => '',
|
443 |
-
'radioCheckBgColor' => '',
|
444 |
-
'radioCheckSelectColor' => '',
|
445 |
-
'radioCheckLableColor' => '',
|
446 |
-
'radioCheckBorderColor' => '#abb8c3',
|
447 |
-
'radioCheckBorderWidth' => '',
|
448 |
-
'radioCheckBorderRadius' => '',
|
449 |
-
'radioCheckFontSize' => '',
|
450 |
-
'radioCheckFontSizeType' => 'px',
|
451 |
-
'radioCheckFontSizeTablet' => '',
|
452 |
-
'radioCheckFontSizeMobile' => '',
|
453 |
-
'radioCheckFontFamily' => '',
|
454 |
-
'radioCheckFontWeight' => '',
|
455 |
-
'radioCheckFontSubset' => '',
|
456 |
-
'radioCheckLineHeightType' => 'px',
|
457 |
-
'radioCheckLineHeight' => '',
|
458 |
-
'radioCheckLineHeightTablet' => '',
|
459 |
-
'radioCheckLineHeightMobile' => '',
|
460 |
-
'radioCheckLoadGoogleFonts' => false,
|
461 |
-
'validationMsgPosition' => 'default',
|
462 |
-
'validationMsgColor' => '#ff0000',
|
463 |
-
'validationMsgBgColor' => '',
|
464 |
-
'enableHighlightBorder' => false,
|
465 |
-
'highlightBorderColor' => '#ff0000',
|
466 |
-
'validationMsgFontSize' => '',
|
467 |
-
'validationMsgFontSizeType' => 'px',
|
468 |
-
'validationMsgFontSizeTablet' => '',
|
469 |
-
'validationMsgFontSizeMobile' => '',
|
470 |
-
'validationMsgFontFamily' => '',
|
471 |
-
'validationMsgFontWeight' => '',
|
472 |
-
'validationMsgFontSubset' => '',
|
473 |
-
'validationMsgLineHeightType' => 'em',
|
474 |
-
'validationMsgLineHeight' => '',
|
475 |
-
'validationMsgLineHeightTablet' => '',
|
476 |
-
'validationMsgLineHeightMobile' => '',
|
477 |
-
'validationMsgLoadGoogleFonts' => false,
|
478 |
-
'successMsgColor' => '',
|
479 |
-
'successMsgBgColor' => '',
|
480 |
-
'successMsgBorderColor' => '',
|
481 |
-
'errorMsgColor' => '',
|
482 |
-
'errorMsgBgColor' => '',
|
483 |
-
'errorMsgBorderColor' => '',
|
484 |
-
'msgBorderSize' => '',
|
485 |
-
'msgBorderRadius' => '',
|
486 |
-
'msgVrPadding' => '',
|
487 |
-
'msgHrPadding' => '',
|
488 |
-
'msgFontSize' => '',
|
489 |
-
'msgFontSizeType' => 'px',
|
490 |
-
'msgFontSizeTablet' => '',
|
491 |
-
'msgFontSizeMobile' => '',
|
492 |
-
'msgFontFamily' => '',
|
493 |
-
'msgFontWeight' => '',
|
494 |
-
'msgFontSubset' => '',
|
495 |
-
'msgLineHeightType' => 'em',
|
496 |
-
'msgLineHeight' => '',
|
497 |
-
'msgLineHeightTablet' => '',
|
498 |
-
'msgLineHeightMobile' => '',
|
499 |
-
'msgLoadGoogleFonts' => false,
|
500 |
-
'radioCheckBorderRadiusType' => 'px',
|
501 |
-
'msgBorderRadiusType' => 'px',
|
502 |
-
'fieldBorderRadiusType' => 'px',
|
503 |
-
'buttonBorderRadiusType' => 'px',
|
504 |
-
),
|
505 |
-
),
|
506 |
-
'uagb/gf-styler' => array(
|
507 |
-
'slug' => '',
|
508 |
-
'title' => __( 'Gravity Form Styler', 'ultimate-addons-for-gutenberg' ),
|
509 |
-
'description' => __( 'This block allows you to add and style your Gravity Forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
|
510 |
-
'default' => true,
|
511 |
-
'is_active' => class_exists( 'GFForms' ),
|
512 |
-
'attributes' => array(
|
513 |
-
'block_id' => '',
|
514 |
-
'align' => 'left',
|
515 |
-
'enableAjax' => false,
|
516 |
-
'enableTabSupport' => false,
|
517 |
-
'formTabIndex' => '0',
|
518 |
-
'formId' => '0',
|
519 |
-
'titleDescStyle' => 'yes',
|
520 |
-
'titleDescAlignment' => 'left',
|
521 |
-
'fieldStyle' => 'box',
|
522 |
-
'fieldHrPadding' => 10,
|
523 |
-
'fieldVrPadding' => 10,
|
524 |
-
'fieldBgColor' => '#fafafa',
|
525 |
-
'fieldLabelColor' => '#333',
|
526 |
-
'fieldInputColor' => '#333',
|
527 |
-
'fieldBorderStyle' => 'solid',
|
528 |
-
'fieldBorderWidth' => 1,
|
529 |
-
'fieldBorderRadius' => 0,
|
530 |
-
'fieldBorderColor' => '#eeeeee',
|
531 |
-
'fieldBorderFocusColor' => '',
|
532 |
-
'buttonAlignment' => 'left',
|
533 |
-
'buttonVrPadding' => 10,
|
534 |
-
'buttonHrPadding' => 25,
|
535 |
-
'buttonTextColor' => '#333',
|
536 |
-
'buttonBgColor' => 'transparent',
|
537 |
-
'buttonTextHoverColor' => '',
|
538 |
-
'buttonBgHoverColor' => '',
|
539 |
-
'buttonBorderStyle' => 'solid',
|
540 |
-
'buttonBorderWidth' => 1,
|
541 |
-
'buttonBorderRadius' => 0,
|
542 |
-
'buttonBorderColor' => '#333',
|
543 |
-
'buttonBorderHoverColor' => '',
|
544 |
-
'fieldSpacing' => '',
|
545 |
-
'fieldLabelSpacing' => '',
|
546 |
-
'enableLabel' => false,
|
547 |
-
'textAreaHeight' => 'auto',
|
548 |
-
'labelFontSize' => '',
|
549 |
-
'labelFontSizeType' => 'px',
|
550 |
-
'labelFontSizeTablet' => '',
|
551 |
-
'labelFontSizeMobile' => '',
|
552 |
-
'labelFontFamily' => '',
|
553 |
-
'labelFontWeight' => '',
|
554 |
-
'labelFontSubset' => '',
|
555 |
-
'labelLineHeightType' => 'px',
|
556 |
-
'labelLineHeight' => '',
|
557 |
-
'labelLineHeightTablet' => '',
|
558 |
-
'labelLineHeightMobile' => '',
|
559 |
-
'labelLoadGoogleFonts' => false,
|
560 |
-
'inputFontSize' => '',
|
561 |
-
'inputFontSizeType' => 'px',
|
562 |
-
'inputFontSizeTablet' => '',
|
563 |
-
'inputFontSizeMobile' => '',
|
564 |
-
'inputFontFamily' => '',
|
565 |
-
'inputFontWeight' => '',
|
566 |
-
'inputFontSubset' => '',
|
567 |
-
'inputLineHeightType' => 'px',
|
568 |
-
'inputLineHeight' => '',
|
569 |
-
'inputLineHeightTablet' => '',
|
570 |
-
'inputLineHeightMobile' => '',
|
571 |
-
'inputLoadGoogleFonts' => false,
|
572 |
-
'buttonFontSize' => '',
|
573 |
-
'buttonFontSizeType' => 'px',
|
574 |
-
'buttonFontSizeTablet' => '',
|
575 |
-
'buttonFontSizeMobile' => '',
|
576 |
-
'buttonFontFamily' => '',
|
577 |
-
'buttonFontWeight' => '',
|
578 |
-
'buttonFontSubset' => '',
|
579 |
-
'buttonLineHeightType' => 'px',
|
580 |
-
'buttonLineHeight' => '',
|
581 |
-
'buttonLineHeightTablet' => '',
|
582 |
-
'buttonLineHeightMobile' => '',
|
583 |
-
'buttonLoadGoogleFonts' => false,
|
584 |
-
'enableOveride' => true,
|
585 |
-
'radioCheckSize' => '20',
|
586 |
-
'radioCheckBgColor' => '#fafafa',
|
587 |
-
'radioCheckSelectColor' => '',
|
588 |
-
'radioCheckLableColor' => '',
|
589 |
-
'radioCheckBorderColor' => '#cbcbcb',
|
590 |
-
'radioCheckBorderWidth' => '1',
|
591 |
-
'radioCheckBorderRadius' => '',
|
592 |
-
'radioCheckFontSize' => '',
|
593 |
-
'radioCheckFontSizeType' => 'px',
|
594 |
-
'radioCheckFontSizeTablet' => '',
|
595 |
-
'radioCheckFontSizeMobile' => '',
|
596 |
-
'radioCheckFontFamily' => '',
|
597 |
-
'radioCheckFontWeight' => '',
|
598 |
-
'radioCheckFontSubset' => '',
|
599 |
-
'radioCheckLineHeightType' => 'px',
|
600 |
-
'radioCheckLineHeight' => '',
|
601 |
-
'radioCheckLineHeightTablet' => '',
|
602 |
-
'radioCheckLineHeightMobile' => '',
|
603 |
-
'radioCheckLoadGoogleFonts' => false,
|
604 |
-
'validationMsgColor' => '#ff0000',
|
605 |
-
'advancedValidationSettings' => false,
|
606 |
-
'highlightBorderColor' => '#ff0000',
|
607 |
-
'validationMsgFontSize' => '',
|
608 |
-
'validationMsgBgColor' => '',
|
609 |
-
'validationMsgFontSizeType' => 'px',
|
610 |
-
'validationMsgFontSizeTablet' => '',
|
611 |
-
'validationMsgFontSizeMobile' => '',
|
612 |
-
'validationMsgFontFamily' => '',
|
613 |
-
'validationMsgFontWeight' => '',
|
614 |
-
'validationMsgFontSubset' => '',
|
615 |
-
'validationMsgLineHeightType' => 'em',
|
616 |
-
'validationMsgLineHeight' => '',
|
617 |
-
'validationMsgLineHeightTablet' => '',
|
618 |
-
'validationMsgLineHeightMobile' => '',
|
619 |
-
'validationMsgLoadGoogleFonts' => false,
|
620 |
-
'successMsgBorderColor' => '',
|
621 |
-
'errorMsgColor' => '',
|
622 |
-
'errorMsgBgColor' => '',
|
623 |
-
'errorMsgBorderColor' => '',
|
624 |
-
'msgBorderSize' => '',
|
625 |
-
'msgBorderRadius' => '',
|
626 |
-
'msgVrPadding' => '',
|
627 |
-
'msgHrPadding' => '',
|
628 |
-
'msgFontSize' => '',
|
629 |
-
'msgFontSizeType' => 'px',
|
630 |
-
'msgFontSizeTablet' => '',
|
631 |
-
'msgFontSizeMobile' => '',
|
632 |
-
'msgFontFamily' => '',
|
633 |
-
'msgFontWeight' => '',
|
634 |
-
'msgFontSubset' => '',
|
635 |
-
'msgLineHeightType' => 'em',
|
636 |
-
'msgLineHeight' => '',
|
637 |
-
'msgLineHeightTablet' => '',
|
638 |
-
'msgLineHeightMobile' => '',
|
639 |
-
'msgLoadGoogleFonts' => false,
|
640 |
-
'radioCheckBorderRadiusType' => 'px',
|
641 |
-
'msgBorderRadiusType' => 'px',
|
642 |
-
'fieldBorderRadiusType' => 'px',
|
643 |
-
'buttonBorderRadiusType' => 'px',
|
644 |
-
'successMsgColor' => '',
|
645 |
-
'successMsgFontSize' => '',
|
646 |
-
'successMsgFontSizeType' => 'px',
|
647 |
-
'successMsgFontSizeTablet' => '',
|
648 |
-
'successMsgFontSizeMobile' => '',
|
649 |
-
'successMsgFontFamily' => '',
|
650 |
-
'successMsgFontWeight' => '',
|
651 |
-
'successMsgFontSubset' => '',
|
652 |
-
'successMsgLineHeightType' => 'em',
|
653 |
-
'successMsgLineHeight' => '',
|
654 |
-
'successMsgLineHeightTablet' => '',
|
655 |
-
'successMsgLineHeightMobile' => '',
|
656 |
-
'successMsgLoadGoogleFonts' => false,
|
657 |
-
),
|
658 |
-
),
|
659 |
-
'uagb/content-timeline' => array(
|
660 |
-
'slug' => '',
|
661 |
-
'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ),
|
662 |
-
'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ),
|
663 |
-
'default' => true,
|
664 |
-
'attributes' => array(
|
665 |
-
'align' => 'center',
|
666 |
-
'headingColor' => '',
|
667 |
-
'subHeadingColor' => '',
|
668 |
-
'separatorBg' => '#eee',
|
669 |
-
'backgroundColor' => '#eee',
|
670 |
-
'separatorColor' => '#eee',
|
671 |
-
'separatorFillColor' => '#61ce70',
|
672 |
-
'separatorBorder' => '#eee',
|
673 |
-
'borderFocus' => '#5cb85c',
|
674 |
-
'horizontalSpace' => 10,
|
675 |
-
'verticalSpace' => 15,
|
676 |
-
'headFontSizeType' => 'px',
|
677 |
-
'headFontSize' => '',
|
678 |
-
'headFontSizeTablet' => '',
|
679 |
-
'headFontSizeMobile' => '',
|
680 |
-
'headFontFamily' => '',
|
681 |
-
'headFontWeight' => '',
|
682 |
-
'headFontSubset' => '',
|
683 |
-
'headLineHeightType' => 'em',
|
684 |
-
'headLineHeight' => '',
|
685 |
-
'headLineHeightTablet' => '',
|
686 |
-
'headLineHeightMobile' => '',
|
687 |
-
'headLoadGoogleFonts' => false,
|
688 |
-
'timelinAlignment' => 'center',
|
689 |
-
'arrowlinAlignment' => 'center',
|
690 |
-
'subHeadFontSizeType' => 'px',
|
691 |
-
'subHeadFontSize' => '',
|
692 |
-
'subHeadFontSizeTablet' => '',
|
693 |
-
'subHeadFontSizeMobile' => '',
|
694 |
-
'subHeadFontFamily' => '',
|
695 |
-
'subHeadFontWeight' => '',
|
696 |
-
'subHeadFontSubset' => '',
|
697 |
-
'subHeadLineHeightType' => 'em',
|
698 |
-
'subHeadLineHeight' => '',
|
699 |
-
'subHeadLineHeightTablet' => '',
|
700 |
-
'subHeadLineHeightMobile' => '',
|
701 |
-
'subHeadLoadGoogleFonts' => false,
|
702 |
-
'headSpace' => 5,
|
703 |
-
'separatorwidth' => 3,
|
704 |
-
'borderwidth' => 0,
|
705 |
-
'iconColor' => '#333',
|
706 |
-
'iconFocus' => '#fff',
|
707 |
-
'iconBgFocus' => '#61ce70',
|
708 |
-
'dateColor' => '#333',
|
709 |
-
'dateFontsizeType' => 'px',
|
710 |
-
'dateFontsize' => '12',
|
711 |
-
'dateFontsizeTablet' => '',
|
712 |
-
'dateFontsizeMobile' => '',
|
713 |
-
'dateFontFamily' => '',
|
714 |
-
'dateFontWeight' => '',
|
715 |
-
'dateFontSubset' => '',
|
716 |
-
'dateLineHeightType' => 'em',
|
717 |
-
'dateLineHeight' => '',
|
718 |
-
'dateLineHeightTablet' => '',
|
719 |
-
'dateLineHeightMobile' => '',
|
720 |
-
'dateLoadGoogleFonts' => false,
|
721 |
-
'connectorBgsize' => 35,
|
722 |
-
'dateBottomspace' => 5,
|
723 |
-
'borderRadius' => 2,
|
724 |
-
'bgPadding' => 20,
|
725 |
-
'iconSize' => 12,
|
726 |
-
'stack' => 'tablet',
|
727 |
-
),
|
728 |
-
),
|
729 |
-
'uagb/google-map' => array(
|
730 |
-
'slug' => '',
|
731 |
-
'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ),
|
732 |
-
'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ),
|
733 |
-
'default' => true,
|
734 |
-
'attributes' => array(
|
735 |
-
'block_id' => '',
|
736 |
-
'height' => '300',
|
737 |
-
),
|
738 |
-
),
|
739 |
-
'uagb/icon-list' => array(
|
740 |
-
'slug' => '',
|
741 |
-
'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ),
|
742 |
-
'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ),
|
743 |
-
'default' => true,
|
744 |
-
'attributes' => array(
|
745 |
-
'align' => 'left',
|
746 |
-
'icon_count' => '1',
|
747 |
-
'icons' => array(
|
748 |
-
array(
|
749 |
-
'label' => __( 'Label #1', 'ultimate-addons-for-gutenberg' ),
|
750 |
-
'image_icon' => 'icon',
|
751 |
-
'icon' => 'fab fa-facebook',
|
752 |
-
'image' => '',
|
753 |
-
'icon_color' => '#3a3a3a',
|
754 |
-
'icon_hover_color' => '#3a3a3a',
|
755 |
-
'icon_bg_color' => '',
|
756 |
-
'icon_bg_hover_color' => '',
|
757 |
-
'icon_border_color' => '',
|
758 |
-
'icon_border_hover_color' => '',
|
759 |
-
'label_color' => '',
|
760 |
-
'label_hover_color' => '',
|
761 |
-
'link' => '#',
|
762 |
-
'target' => false,
|
763 |
-
),
|
764 |
-
),
|
765 |
-
'gap' => '10',
|
766 |
-
'inner_gap' => '15',
|
767 |
-
'size' => '40',
|
768 |
-
'sizeType' => 'px',
|
769 |
-
'sizeMobile' => '',
|
770 |
-
'sizeTablet' => '',
|
771 |
-
'bgSize' => '0',
|
772 |
-
'border' => '0',
|
773 |
-
'borderRadius' => '0',
|
774 |
-
'fontSize' => '',
|
775 |
-
'fontSizeType' => 'px',
|
776 |
-
'fontSizeMobile' => '',
|
777 |
-
'fontSizeTablet' => '',
|
778 |
-
'lineHeight' => '',
|
779 |
-
'lineHeightType' => 'em',
|
780 |
-
'lineHeightMobile' => '',
|
781 |
-
'lineHeightTablet' => '',
|
782 |
-
'fontFamily' => '',
|
783 |
-
'fontWeight' => '',
|
784 |
-
'fontSubset' => '',
|
785 |
-
'loadGoogleFonts' => false,
|
786 |
-
'icon_layout' => 'vertical',
|
787 |
-
'stack' => 'none',
|
788 |
-
),
|
789 |
-
),
|
790 |
-
'uagb/info-box' => array(
|
791 |
-
'slug' => '',
|
792 |
-
'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ),
|
793 |
-
'description' => __( 'This block allows you to place an image or icon along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
|
794 |
-
'default' => true,
|
795 |
-
'attributes' => array(
|
796 |
-
'headingAlign' => 'center',
|
797 |
-
'headingColor' => '',
|
798 |
-
'subHeadingColor' => '',
|
799 |
-
'prefixColor' => '',
|
800 |
-
'prefixFontSize' => '',
|
801 |
-
'prefixFontSizeType' => 'px',
|
802 |
-
'prefixFontSizeTablet' => '',
|
803 |
-
'prefixFontSizeMobile' => '',
|
804 |
-
'prefixFontFamily' => '',
|
805 |
-
'prefixFontWeight' => '',
|
806 |
-
'prefixFontSubset' => '',
|
807 |
-
'prefixLineHeightType' => 'em',
|
808 |
-
'prefixLineHeight' => '',
|
809 |
-
'prefixLineHeightTablet' => '',
|
810 |
-
'prefixLineHeightMobile' => '',
|
811 |
-
'prefixLoadGoogleFonts' => false,
|
812 |
-
'headFontSize' => '',
|
813 |
-
'headFontSizeType' => 'px',
|
814 |
-
'headFontSizeTablet' => '',
|
815 |
-
'headFontSizeMobile' => '',
|
816 |
-
'headFontFamily' => '',
|
817 |
-
'headFontWeight' => '',
|
818 |
-
'headFontSubset' => '',
|
819 |
-
'headLineHeightType' => 'em',
|
820 |
-
'headLineHeight' => '',
|
821 |
-
'headLineHeightTablet' => '',
|
822 |
-
'headLineHeightMobile' => '',
|
823 |
-
'headLoadGoogleFonts' => false,
|
824 |
-
'subHeadFontSize' => '',
|
825 |
-
'subHeadFontSizeType' => 'px',
|
826 |
-
'subHeadFontSizeTablet' => '',
|
827 |
-
'subHeadFontSizeMobile' => '',
|
828 |
-
'subHeadFontFamily' => '',
|
829 |
-
'subHeadFontWeight' => '',
|
830 |
-
'subHeadFontSubset' => '',
|
831 |
-
'subHeadLineHeightType' => 'em',
|
832 |
-
'subHeadLineHeight' => '',
|
833 |
-
'subHeadLineHeightTablet' => '',
|
834 |
-
'subHeadLineHeightMobile' => '',
|
835 |
-
'subHeadLoadGoogleFonts' => false,
|
836 |
-
'separatorWidth' => '',
|
837 |
-
'separatorHeight' => '',
|
838 |
-
'separatorWidthType' => '%',
|
839 |
-
'headSpace' => '10',
|
840 |
-
'separatorSpace' => '10',
|
841 |
-
'subHeadSpace' => '10',
|
842 |
-
'icon' => '',
|
843 |
-
'iconColor' => '#333',
|
844 |
-
'iconSize' => '40',
|
845 |
-
'iconimgPosition' => 'above-title',
|
846 |
-
'block_id' => '',
|
847 |
-
'iconHover' => '',
|
848 |
-
'iconimgBorderRadius' => '0',
|
849 |
-
'seperatorStyle' => 'solid',
|
850 |
-
'seperatorWidth' => '30',
|
851 |
-
'seperatorColor' => '#333',
|
852 |
-
'seperatorThickness' => '2',
|
853 |
-
'ctaLinkColor' => '#333',
|
854 |
-
'ctaFontSize' => '',
|
855 |
-
'ctaFontSizeType' => 'px',
|
856 |
-
'ctaFontSizeMobile' => '',
|
857 |
-
'ctaFontSizeTablet' => '',
|
858 |
-
'ctaFontFamily' => '',
|
859 |
-
'ctaFontWeight' => '',
|
860 |
-
'ctaFontSubset' => '',
|
861 |
-
'ctaLoadGoogleFonts' => false,
|
862 |
-
'ctaBtnLinkColor' => '#333',
|
863 |
-
'ctaBgColor' => 'transparent',
|
864 |
-
'ctaBtnVertPadding' => '10',
|
865 |
-
'ctaBtnHrPadding' => '14',
|
866 |
-
'ctaBorderStyle' => 'solid',
|
867 |
-
'ctaBorderColor' => '#333',
|
868 |
-
'ctaBorderWidth' => '1',
|
869 |
-
'ctaBorderRadius' => '0',
|
870 |
-
'prefixSpace' => '5',
|
871 |
-
'iconLeftMargin' => '5',
|
872 |
-
'iconRightMargin' => '10',
|
873 |
-
'iconTopMargin' => '5',
|
874 |
-
'iconBottomMargin' => '5',
|
875 |
-
'imageSize' => 'thumbnail',
|
876 |
-
'imageWidth' => '120',
|
877 |
-
'seperatorSpace' => '15',
|
878 |
-
'ctaLinkHoverColor' => '',
|
879 |
-
'ctaBgHoverColor' => '',
|
880 |
-
'ctaBorderhoverColor' => '',
|
881 |
-
'ctaIconSpace' => '5',
|
882 |
-
),
|
883 |
-
),
|
884 |
-
'uagb/marketing-button' => array(
|
885 |
-
'slug' => '',
|
886 |
-
'title' => __( 'Marketing Button', 'ultimate-addons-for-gutenberg' ),
|
887 |
-
'description' => __( 'This block allows you to place a Marketing Button with small description.', 'ultimate-addons-for-gutenberg' ),
|
888 |
-
'default' => true,
|
889 |
-
'attributes' => array(
|
890 |
-
'block_id' => '',
|
891 |
-
'align' => 'center',
|
892 |
-
'textAlign' => 'center',
|
893 |
-
'link' => '#',
|
894 |
-
'linkTarget' => false,
|
895 |
-
'titleSpace' => 0,
|
896 |
-
'borderStyle' => 'solid',
|
897 |
-
'borderWidth' => 1,
|
898 |
-
'borderRadius' => '',
|
899 |
-
'borderColor' => '#333',
|
900 |
-
'borderHoverColor' => '',
|
901 |
-
'vPadding' => 8,
|
902 |
-
'hPadding' => 20,
|
903 |
-
'backgroundType' => 'color',
|
904 |
-
'backgroundColor' => '#eeeeee',
|
905 |
-
'backgroundHoverColor' => '',
|
906 |
-
'gradientColor1' => '',
|
907 |
-
'gradientColor2' => '',
|
908 |
-
'gradientType' => 'linear',
|
909 |
-
'gradientLocation1' => 0,
|
910 |
-
'gradientLocation2' => 100,
|
911 |
-
'gradientAngle' => 0,
|
912 |
-
'backgroundOpacity' => '',
|
913 |
-
'backgroundHoverOpacity' => '',
|
914 |
-
'titleColor' => '#333',
|
915 |
-
'titleHoverColor' => '',
|
916 |
-
'iconColor' => '#333',
|
917 |
-
'iconHoverColor' => '',
|
918 |
-
'iconPosition' => 'before',
|
919 |
-
'prefixColor' => '#333',
|
920 |
-
'prefixHoverColor' => '',
|
921 |
-
'iconSpace' => 10,
|
922 |
-
'titleLoadGoogleFonts' => false,
|
923 |
-
'titleFontFamily' => 'Default',
|
924 |
-
'titleFontWeight' => '',
|
925 |
-
'titleFontSubset' => '',
|
926 |
-
'titleFontSize' => 20,
|
927 |
-
'titleFontSizeType' => 'px',
|
928 |
-
'titleFontSizeTablet' => 20,
|
929 |
-
'titleFontSizeMobile' => 20,
|
930 |
-
'titleLineHeightType' => 'em',
|
931 |
-
'titleLineHeight' => '',
|
932 |
-
'titleLineHeightTablet' => '',
|
933 |
-
'titleLineHeightMobile' => '',
|
934 |
-
'prefixLoadGoogleFonts' => false,
|
935 |
-
'prefixFontFamily' => 'Default',
|
936 |
-
'prefixFontWeight' => '',
|
937 |
-
'prefixFontSubset' => '',
|
938 |
-
'prefixFontSize' => 14,
|
939 |
-
'prefixFontSizeType' => 'px',
|
940 |
-
'prefixFontSizeTablet' => 14,
|
941 |
-
'prefixFontSizeMobile' => 14,
|
942 |
-
'prefixLineHeightType' => 'em',
|
943 |
-
'prefixLineHeight' => '',
|
944 |
-
'prefixLineHeightTablet' => '',
|
945 |
-
'prefixLineHeightMobile' => '',
|
946 |
-
'iconFontSize' => 20,
|
947 |
-
'iconFontSizeType' => 'px',
|
948 |
-
'iconFontSizeTablet' => 20,
|
949 |
-
'iconFontSizeMobile' => 20,
|
950 |
-
),
|
951 |
-
),
|
952 |
-
'uagb/buttons' => array(
|
953 |
-
'slug' => '',
|
954 |
-
'title' => __( 'Multi Buttons', 'ultimate-addons-for-gutenberg' ),
|
955 |
-
'description' => __( 'This block allows you to add multiple buttons with a single block.', 'ultimate-addons-for-gutenberg' ),
|
956 |
-
'default' => true,
|
957 |
-
'attributes' => array(
|
958 |
-
'block_id' => '',
|
959 |
-
'align' => 'center',
|
960 |
-
'btn_count' => '2',
|
961 |
-
'buttons' => UAGB_Helper::get_button_defaults(),
|
962 |
-
'gap' => 10,
|
963 |
-
'stack' => 'none',
|
964 |
-
'fontFamily' => '',
|
965 |
-
'fontWeight' => '',
|
966 |
-
'loadGoogleFonts' => false,
|
967 |
-
'fontSubset' => '',
|
968 |
-
),
|
969 |
-
),
|
970 |
-
'uagb/post-carousel' => array(
|
971 |
-
'slug' => '',
|
972 |
-
'title' => __( 'Post Carousel', 'ultimate-addons-for-gutenberg' ),
|
973 |
-
'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a carousel layout.', 'ultimate-addons-for-gutenberg' ),
|
974 |
-
'default' => true,
|
975 |
-
'attributes' => array(
|
976 |
-
'align' => 'left',
|
977 |
-
'rowGap' => '20',
|
978 |
-
'columnGap' => '20',
|
979 |
-
'bgColor' => '#e4e4e4',
|
980 |
-
'titleColor' => '#3b3b3b',
|
981 |
-
'titleTag' => 'h3',
|
982 |
-
'titleFontSize' => '',
|
983 |
-
'titleFontSizeType' => 'px',
|
984 |
-
'titleFontSizeMobile' => '',
|
985 |
-
'titleFontSizeTablet' => '',
|
986 |
-
'titleFontFamily' => '',
|
987 |
-
'titleFontWeight' => '',
|
988 |
-
'titleFontSubset' => '',
|
989 |
-
'titleLineHeightType' => 'em',
|
990 |
-
'titleLineHeight' => '',
|
991 |
-
'titleLineHeightTablet' => '',
|
992 |
-
'titleLineHeightMobile' => '',
|
993 |
-
'titleLoadGoogleFonts' => false,
|
994 |
-
'metaFontSize' => '',
|
995 |
-
'metaFontSizeType' => 'px',
|
996 |
-
'metaFontSizeMobile' => '',
|
997 |
-
'metaFontSizeTablet' => '',
|
998 |
-
'metaFontFamily' => '',
|
999 |
-
'metaFontWeight' => '',
|
1000 |
-
'metaFontSubset' => '',
|
1001 |
-
'metaLineHeightType' => 'em',
|
1002 |
-
'metaLineHeight' => '',
|
1003 |
-
'metaLineHeightTablet' => '',
|
1004 |
-
'metaLineHeightMobile' => '',
|
1005 |
-
'metaLoadGoogleFonts' => false,
|
1006 |
-
'excerptFontSize' => '',
|
1007 |
-
'excerptFontSizeType' => 'px',
|
1008 |
-
'excerptFontSizeMobile' => '',
|
1009 |
-
'excerptFontSizeTablet' => '',
|
1010 |
-
'excerptFontFamily' => '',
|
1011 |
-
'excerptFontWeight' => '',
|
1012 |
-
'excerptFontSubset' => '',
|
1013 |
-
'excerptLineHeightType' => 'em',
|
1014 |
-
'excerptLineHeight' => '',
|
1015 |
-
'excerptLineHeightTablet' => '',
|
1016 |
-
'excerptLineHeightMobile' => '',
|
1017 |
-
'excerptLoadGoogleFonts' => false,
|
1018 |
-
'ctaFontSize' => '',
|
1019 |
-
'ctaFontSizeType' => 'px',
|
1020 |
-
'ctaFontSizeTablet' => '',
|
1021 |
-
'ctaFontSizeMobile' => '',
|
1022 |
-
'ctaFontFamily' => '',
|
1023 |
-
'ctaFontWeight' => '',
|
1024 |
-
'ctaFontSubset' => '',
|
1025 |
-
'ctaLineHeightType' => 'em',
|
1026 |
-
'ctaLineHeight' => '',
|
1027 |
-
'ctaLineHeightTablet' => '',
|
1028 |
-
'ctaLineHeightMobile' => '',
|
1029 |
-
'ctaLoadGoogleFonts' => false,
|
1030 |
-
'metaColor' => '#777777',
|
1031 |
-
'excerptColor' => '',
|
1032 |
-
'ctaColor' => '#ffffff',
|
1033 |
-
'ctaBgColor' => '#333333',
|
1034 |
-
'ctaHColor' => '',
|
1035 |
-
'ctaBgHColor' => '',
|
1036 |
-
'contentPadding' => '20',
|
1037 |
-
'contentPaddingMobile' => '',
|
1038 |
-
'btnVPadding' => '5',
|
1039 |
-
'btnHPadding' => '10',
|
1040 |
-
'titleBottomSpace' => '15',
|
1041 |
-
'metaBottomSpace' => '15',
|
1042 |
-
'excerptBottomSpace' => '25',
|
1043 |
-
'arrowSize' => '20',
|
1044 |
-
'arrowColor' => '#aaaaaa',
|
1045 |
-
'arrowDots' => '',
|
1046 |
-
'arrowBorderSize' => '1',
|
1047 |
-
'arrowBorderRadius' => '0',
|
1048 |
-
'overlayOpacity' => '50',
|
1049 |
-
'bgOverlayColor' => '#ffffff',
|
1050 |
-
'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
1051 |
-
'borderWidth' => '1',
|
1052 |
-
'borderStyle' => 'none',
|
1053 |
-
'borderColor' => '',
|
1054 |
-
'borderHColor' => '',
|
1055 |
-
'borderRadius' => '0',
|
1056 |
-
),
|
1057 |
-
),
|
1058 |
-
'uagb/post-grid' => array(
|
1059 |
-
'slug' => '',
|
1060 |
-
'title' => __( 'Post Grid', 'ultimate-addons-for-gutenberg' ),
|
1061 |
-
'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a grid layout.', 'ultimate-addons-for-gutenberg' ),
|
1062 |
-
'default' => true,
|
1063 |
-
'attributes' => array(
|
1064 |
-
'align' => 'left',
|
1065 |
-
'rowGap' => '20',
|
1066 |
-
'columnGap' => '20',
|
1067 |
-
'bgColor' => '#e4e4e4',
|
1068 |
-
'titleColor' => '#3b3b3b',
|
1069 |
-
'titleTag' => 'h3',
|
1070 |
-
'titleFontSize' => '',
|
1071 |
-
'titleFontSizeType' => 'px',
|
1072 |
-
'titleFontSizeMobile' => '',
|
1073 |
-
'titleFontSizeTablet' => '',
|
1074 |
-
'titleFontFamily' => '',
|
1075 |
-
'titleFontWeight' => '',
|
1076 |
-
'titleFontSubset' => '',
|
1077 |
-
'titleLineHeightType' => 'em',
|
1078 |
-
'titleLineHeight' => '',
|
1079 |
-
'titleLineHeightTablet' => '',
|
1080 |
-
'titleLineHeightMobile' => '',
|
1081 |
-
'titleLoadGoogleFonts' => false,
|
1082 |
-
'metaFontSize' => '',
|
1083 |
-
'metaFontSizeType' => 'px',
|
1084 |
-
'metaFontSizeMobile' => '',
|
1085 |
-
'metaFontSizeTablet' => '',
|
1086 |
-
'metaFontFamily' => '',
|
1087 |
-
'metaFontWeight' => '',
|
1088 |
-
'metaFontSubset' => '',
|
1089 |
-
'metaLineHeightType' => 'em',
|
1090 |
-
'metaLineHeight' => '',
|
1091 |
-
'metaLineHeightTablet' => '',
|
1092 |
-
'metaLineHeightMobile' => '',
|
1093 |
-
'metaLoadGoogleFonts' => false,
|
1094 |
-
'excerptFontSize' => '',
|
1095 |
-
'excerptFontSizeType' => 'px',
|
1096 |
-
'excerptFontSizeMobile' => '',
|
1097 |
-
'excerptFontSizeTablet' => '',
|
1098 |
-
'excerptFontFamily' => '',
|
1099 |
-
'excerptFontWeight' => '',
|
1100 |
-
'excerptFontSubset' => '',
|
1101 |
-
'excerptLineHeightType' => 'em',
|
1102 |
-
'excerptLineHeight' => '',
|
1103 |
-
'excerptLineHeightTablet' => '',
|
1104 |
-
'excerptLineHeightMobile' => '',
|
1105 |
-
'excerptLoadGoogleFonts' => false,
|
1106 |
-
'ctaFontSize' => '',
|
1107 |
-
'ctaFontSizeType' => 'px',
|
1108 |
-
'ctaFontSizeTablet' => '',
|
1109 |
-
'ctaFontSizeMobile' => '',
|
1110 |
-
'ctaFontFamily' => '',
|
1111 |
-
'ctaFontWeight' => '',
|
1112 |
-
'ctaFontSubset' => '',
|
1113 |
-
'ctaLineHeightType' => 'em',
|
1114 |
-
'ctaLineHeight' => '',
|
1115 |
-
'ctaLineHeightTablet' => '',
|
1116 |
-
'ctaLineHeightMobile' => '',
|
1117 |
-
'ctaLoadGoogleFonts' => false,
|
1118 |
-
'metaColor' => '#777777',
|
1119 |
-
'excerptColor' => '',
|
1120 |
-
'ctaColor' => '#ffffff',
|
1121 |
-
'ctaBgColor' => '#333333',
|
1122 |
-
'ctaHColor' => '',
|
1123 |
-
'ctaBgHColor' => '',
|
1124 |
-
'contentPadding' => '20',
|
1125 |
-
'contentPaddingMobile' => '',
|
1126 |
-
'btnVPadding' => '5',
|
1127 |
-
'btnHPadding' => '10',
|
1128 |
-
'titleBottomSpace' => '15',
|
1129 |
-
'metaBottomSpace' => '15',
|
1130 |
-
'excerptBottomSpace' => '25',
|
1131 |
-
'overlayOpacity' => '50',
|
1132 |
-
'bgOverlayColor' => '#ffffff',
|
1133 |
-
'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
1134 |
-
'borderWidth' => '1',
|
1135 |
-
'borderStyle' => 'none',
|
1136 |
-
'borderColor' => '',
|
1137 |
-
'borderHColor' => '',
|
1138 |
-
'borderRadius' => '0',
|
1139 |
-
),
|
1140 |
-
),
|
1141 |
-
'uagb/post-masonry' => array(
|
1142 |
-
'slug' => '',
|
1143 |
-
'title' => __( 'Post Masonry', 'ultimate-addons-for-gutenberg' ),
|
1144 |
-
'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a masonry layout.', 'ultimate-addons-for-gutenberg' ),
|
1145 |
-
'default' => true,
|
1146 |
-
'attributes' => array(
|
1147 |
-
'align' => 'left',
|
1148 |
-
'rowGap' => '20',
|
1149 |
-
'columnGap' => '20',
|
1150 |
-
'bgColor' => '#e4e4e4',
|
1151 |
-
'titleColor' => '#3b3b3b',
|
1152 |
-
'titleTag' => 'h3',
|
1153 |
-
'titleFontSize' => '',
|
1154 |
-
'titleFontSizeType' => 'px',
|
1155 |
-
'titleFontSizeMobile' => '',
|
1156 |
-
'titleFontSizeTablet' => '',
|
1157 |
-
'titleFontFamily' => '',
|
1158 |
-
'titleFontWeight' => '',
|
1159 |
-
'titleFontSubset' => '',
|
1160 |
-
'titleLineHeightType' => 'em',
|
1161 |
-
'titleLineHeight' => '',
|
1162 |
-
'titleLineHeightTablet' => '',
|
1163 |
-
'titleLineHeightMobile' => '',
|
1164 |
-
'titleLoadGoogleFonts' => false,
|
1165 |
-
'metaFontSize' => '',
|
1166 |
-
'metaFontSizeType' => 'px',
|
1167 |
-
'metaFontSizeMobile' => '',
|
1168 |
-
'metaFontSizeTablet' => '',
|
1169 |
-
'metaFontFamily' => '',
|
1170 |
-
'metaFontWeight' => '',
|
1171 |
-
'metaFontSubset' => '',
|
1172 |
-
'metaLineHeightType' => 'em',
|
1173 |
-
'metaLineHeight' => '',
|
1174 |
-
'metaLineHeightTablet' => '',
|
1175 |
-
'metaLineHeightMobile' => '',
|
1176 |
-
'metaLoadGoogleFonts' => false,
|
1177 |
-
'excerptFontSize' => '',
|
1178 |
-
'excerptFontSizeType' => 'px',
|
1179 |
-
'excerptFontSizeMobile' => '',
|
1180 |
-
'excerptFontSizeTablet' => '',
|
1181 |
-
'excerptFontFamily' => '',
|
1182 |
-
'excerptFontWeight' => '',
|
1183 |
-
'excerptFontSubset' => '',
|
1184 |
-
'excerptLineHeightType' => 'em',
|
1185 |
-
'excerptLineHeight' => '',
|
1186 |
-
'excerptLineHeightTablet' => '',
|
1187 |
-
'excerptLineHeightMobile' => '',
|
1188 |
-
'excerptLoadGoogleFonts' => false,
|
1189 |
-
'ctaFontSize' => '',
|
1190 |
-
'ctaFontSizeType' => 'px',
|
1191 |
-
'ctaFontSizeTablet' => '',
|
1192 |
-
'ctaFontSizeMobile' => '',
|
1193 |
-
'ctaFontFamily' => '',
|
1194 |
-
'ctaFontWeight' => '',
|
1195 |
-
'ctaFontSubset' => '',
|
1196 |
-
'ctaLineHeightType' => 'em',
|
1197 |
-
'ctaLineHeight' => '',
|
1198 |
-
'ctaLineHeightTablet' => '',
|
1199 |
-
'ctaLineHeightMobile' => '',
|
1200 |
-
'ctaLoadGoogleFonts' => false,
|
1201 |
-
'metaColor' => '#777777',
|
1202 |
-
'excerptColor' => '',
|
1203 |
-
'ctaColor' => '#ffffff',
|
1204 |
-
'ctaBgColor' => '#333333',
|
1205 |
-
'ctaHColor' => '',
|
1206 |
-
'ctaBgHColor' => '',
|
1207 |
-
'contentPadding' => '20',
|
1208 |
-
'contentPaddingMobile' => '',
|
1209 |
-
'btnVPadding' => '5',
|
1210 |
-
'btnHPadding' => '10',
|
1211 |
-
'titleBottomSpace' => '15',
|
1212 |
-
'metaBottomSpace' => '15',
|
1213 |
-
'excerptBottomSpace' => '25',
|
1214 |
-
'overlayOpacity' => '50',
|
1215 |
-
'bgOverlayColor' => '#ffffff',
|
1216 |
-
'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
1217 |
-
'borderWidth' => '1',
|
1218 |
-
'borderStyle' => 'none',
|
1219 |
-
'borderColor' => '',
|
1220 |
-
'borderHColor' => '',
|
1221 |
-
'borderRadius' => '0',
|
1222 |
-
),
|
1223 |
-
),
|
1224 |
-
'uagb/post-timeline' => array(
|
1225 |
-
'slug' => '',
|
1226 |
-
'title' => __( 'Post Timeline', 'ultimate-addons-for-gutenberg' ),
|
1227 |
-
'description' => __( 'The Timeline block lets you create beautiful timelines of Posts on your website.', 'ultimate-addons-for-gutenberg' ),
|
1228 |
-
'default' => true,
|
1229 |
-
'attributes' => array(
|
1230 |
-
'align' => 'center',
|
1231 |
-
'headingColor' => '',
|
1232 |
-
'subHeadingColor' => '',
|
1233 |
-
'separatorBg' => '#eee',
|
1234 |
-
'backgroundColor' => '#eee',
|
1235 |
-
'separatorColor' => '#eee',
|
1236 |
-
'separatorFillColor' => '#61ce70',
|
1237 |
-
'separatorBorder' => '#eee',
|
1238 |
-
'borderFocus' => '#5cb85c',
|
1239 |
-
'horizontalSpace' => 10,
|
1240 |
-
'verticalSpace' => 15,
|
1241 |
-
'headFontSizeType' => 'px',
|
1242 |
-
'headFontSize' => '',
|
1243 |
-
'headFontSizeTablet' => '',
|
1244 |
-
'headFontSizeMobile' => '',
|
1245 |
-
'headFontFamily' => '',
|
1246 |
-
'headFontWeight' => '',
|
1247 |
-
'headFontSubset' => '',
|
1248 |
-
'headLineHeightType' => 'em',
|
1249 |
-
'headLineHeight' => '',
|
1250 |
-
'headLineHeightTablet' => '',
|
1251 |
-
'headLineHeightMobile' => '',
|
1252 |
-
'headLoadGoogleFonts' => false,
|
1253 |
-
'timelinAlignment' => 'center',
|
1254 |
-
'arrowlinAlignment' => 'center',
|
1255 |
-
'subHeadFontSizeType' => 'px',
|
1256 |
-
'subHeadFontSize' => '',
|
1257 |
-
'subHeadFontSizeTablet' => '',
|
1258 |
-
'subHeadFontSizeMobile' => '',
|
1259 |
-
'subHeadFontFamily' => '',
|
1260 |
-
'subHeadFontWeight' => '',
|
1261 |
-
'subHeadFontSubset' => '',
|
1262 |
-
'subHeadLineHeightType' => 'em',
|
1263 |
-
'subHeadLineHeight' => '',
|
1264 |
-
'subHeadLineHeightTablet' => '',
|
1265 |
-
'subHeadLineHeightMobile' => '',
|
1266 |
-
'subHeadLoadGoogleFonts' => false,
|
1267 |
-
'headSpace' => 5,
|
1268 |
-
'contentSpace' => 5,
|
1269 |
-
'authorSpace' => 5,
|
1270 |
-
'separatorwidth' => 3,
|
1271 |
-
'borderwidth' => 0,
|
1272 |
-
'iconColor' => '#333',
|
1273 |
-
'iconFocus' => '#fff',
|
1274 |
-
'iconBgFocus' => '#61ce70',
|
1275 |
-
'dateColor' => '#333',
|
1276 |
-
'dateFontsizeType' => 'px',
|
1277 |
-
'dateFontsize' => 12,
|
1278 |
-
'dateFontsizeTablet' => '',
|
1279 |
-
'dateFontsizeMobile' => '',
|
1280 |
-
'dateFontFamily' => '',
|
1281 |
-
'dateFontWeight' => '',
|
1282 |
-
'dateFontSubset' => '',
|
1283 |
-
'dateLineHeightType' => 'em',
|
1284 |
-
'dateLineHeight' => '',
|
1285 |
-
'dateLineHeightTablet' => '',
|
1286 |
-
'dateLineHeightMobile' => '',
|
1287 |
-
'dateLoadGoogleFonts' => false,
|
1288 |
-
'connectorBgsize' => 35,
|
1289 |
-
'dateBottomspace' => 5,
|
1290 |
-
'borderRadius' => 2,
|
1291 |
-
'bgPadding' => 20,
|
1292 |
-
'contentPadding' => 10,
|
1293 |
-
'iconSize' => 12,
|
1294 |
-
'stack' => 'tablet',
|
1295 |
-
'ctaColor' => '#fff',
|
1296 |
-
'authorColor' => '#333',
|
1297 |
-
'ctaFontSizeType' => 'px',
|
1298 |
-
'ctaFontSize' => '',
|
1299 |
-
'ctaFontSizeTablet' => '',
|
1300 |
-
'ctaFontSizeMobile' => '',
|
1301 |
-
'ctaFontFamily' => '',
|
1302 |
-
'ctaFontWeight' => '',
|
1303 |
-
'ctaFontSubset' => '',
|
1304 |
-
'ctaLineHeightType' => 'em',
|
1305 |
-
'ctaLineHeight' => '',
|
1306 |
-
'ctaLineHeightTablet' => '',
|
1307 |
-
'ctaLineHeightMobile' => '',
|
1308 |
-
'ctaLoadGoogleFonts' => false,
|
1309 |
-
'authorFontSizeType' => 'px',
|
1310 |
-
'authorFontSize' => 11,
|
1311 |
-
'authorFontSizeTablet' => '',
|
1312 |
-
'authorFontSizeMobile' => '',
|
1313 |
-
'authorFontFamily' => '',
|
1314 |
-
'authorFontWeight' => '',
|
1315 |
-
'authorFontSubset' => '',
|
1316 |
-
'authorLineHeightType' => 'em',
|
1317 |
-
'authorLineHeight' => '',
|
1318 |
-
'authorLineHeightTablet' => '',
|
1319 |
-
'authorLineHeightMobile' => '',
|
1320 |
-
'authorLoadGoogleFonts' => false,
|
1321 |
-
'ctaBackground' => '#333',
|
1322 |
-
),
|
1323 |
-
),
|
1324 |
-
'uagb/restaurant-menu' => array(
|
1325 |
-
'slug' => '',
|
1326 |
-
'title' => __( 'Price List', 'ultimate-addons-for-gutenberg' ),
|
1327 |
-
'description' => __( 'This block allows you to add attractive Price List.', 'ultimate-addons-for-gutenberg' ),
|
1328 |
-
'default' => true,
|
1329 |
-
'attributes' => array(
|
1330 |
-
'block_id' => '',
|
1331 |
-
'headingAlign' => 'left',
|
1332 |
-
'descColor' => '#333',
|
1333 |
-
'priceColor' => '#888888',
|
1334 |
-
'titleColor' => '#333',
|
1335 |
-
'imagePosition' => 'top',
|
1336 |
-
'imageAlignment' => 'top',
|
1337 |
-
'titleFontSize' => '',
|
1338 |
-
'titleFontSizeType' => 'px',
|
1339 |
-
'titleFontSizeMobile' => '',
|
1340 |
-
'titleFontSizeTablet' => '',
|
1341 |
-
'titleFontFamily' => '',
|
1342 |
-
'titleFontWeight' => '',
|
1343 |
-
'titleFontSubset' => '',
|
1344 |
-
'titleLineHeightType' => 'em',
|
1345 |
-
'titleLineHeight' => '',
|
1346 |
-
'titleLineHeightTablet' => '',
|
1347 |
-
'titleLineHeightMobile' => '',
|
1348 |
-
'titleLoadGoogleFonts' => false,
|
1349 |
-
'priceFontSize' => '',
|
1350 |
-
'priceFontSizeType' => 'px',
|
1351 |
-
'priceFontSizeMobile' => '',
|
1352 |
-
'priceFontSizeTablet' => '',
|
1353 |
-
'priceFontFamily' => '',
|
1354 |
-
'priceFontWeight' => '',
|
1355 |
-
'priceFontSubset' => '',
|
1356 |
-
'priceLineHeightType' => 'em',
|
1357 |
-
'priceLineHeight' => '',
|
1358 |
-
'priceLineHeightTablet' => '',
|
1359 |
-
'priceLineHeightMobile' => '',
|
1360 |
-
'priceLoadGoogleFonts' => false,
|
1361 |
-
'descFontSize' => '',
|
1362 |
-
'descFontSizeType' => 'px',
|
1363 |
-
'descFontSizeMobile' => '',
|
1364 |
-
'descFontSizeTablet' => '',
|
1365 |
-
'descFontFamily' => '',
|
1366 |
-
'descFontWeight' => '',
|
1367 |
-
'descFontSubset' => '',
|
1368 |
-
'descLineHeightType' => 'em',
|
1369 |
-
'descLineHeight' => '',
|
1370 |
-
'descLineHeightTablet' => '',
|
1371 |
-
'descLineHeightMobile' => '',
|
1372 |
-
'descLoadGoogleFonts' => false,
|
1373 |
-
'priceSpace' => 5,
|
1374 |
-
'descSpace' => 15,
|
1375 |
-
'titleSpace' => 10,
|
1376 |
-
'imgVrPadding' => 0,
|
1377 |
-
'imgHrPadding' => 0,
|
1378 |
-
'imgTopPadding' => 0,
|
1379 |
-
'imgBottomPadding' => 0,
|
1380 |
-
'iconImage' => '',
|
1381 |
-
'imageSize' => 'medium',
|
1382 |
-
'imageWidth' => '',
|
1383 |
-
'columns' => 2,
|
1384 |
-
'tcolumns' => 2,
|
1385 |
-
'mcolumns' => 1,
|
1386 |
-
'rowGap' => 10,
|
1387 |
-
'columnGap' => 10,
|
1388 |
-
'contentHrPadding' => 5,
|
1389 |
-
'contentVrPadding' => 5,
|
1390 |
-
'seperatorStyle' => 'dashed',
|
1391 |
-
'seperatorWidth' => '100',
|
1392 |
-
'seperatorThickness' => '1',
|
1393 |
-
'seperatorColor' => '#b2b4b5',
|
1394 |
-
),
|
1395 |
-
),
|
1396 |
-
'uagb/section' => array(
|
1397 |
-
'slug' => '',
|
1398 |
-
'title' => __( 'Section', 'ultimate-addons-for-gutenberg' ),
|
1399 |
-
'description' => __( 'This block is an outer wrap section that allows you to add other blocks within it.', 'ultimate-addons-for-gutenberg' ),
|
1400 |
-
'default' => true,
|
1401 |
-
'attributes' => array(
|
1402 |
-
'topPadding' => '20',
|
1403 |
-
'bottomPadding' => '20',
|
1404 |
-
'leftPadding' => '20',
|
1405 |
-
'rightPadding' => '20',
|
1406 |
-
'topMargin' => '0',
|
1407 |
-
'bottomMargin' => '0',
|
1408 |
-
'leftMargin' => '0',
|
1409 |
-
'rightMargin' => '0',
|
1410 |
-
'topPaddingTablet' => '',
|
1411 |
-
'bottomPaddingTablet' => '',
|
1412 |
-
'leftPaddingTablet' => '',
|
1413 |
-
'rightPaddingTablet' => '',
|
1414 |
-
'topPaddingMobile' => '',
|
1415 |
-
'bottomPaddingMobile' => '',
|
1416 |
-
'leftPaddingMobile' => '',
|
1417 |
-
'rightPaddingMobile' => '',
|
1418 |
-
'topMarginMobile' => '',
|
1419 |
-
'bottomMarginMobile' => '',
|
1420 |
-
'leftMarginMobile' => '',
|
1421 |
-
'rightMarginMobile' => '',
|
1422 |
-
'topMarginTablet' => '',
|
1423 |
-
'bottomMarginTablet' => '',
|
1424 |
-
'leftMarginTablet' => '',
|
1425 |
-
'rightMarginTablet' => '',
|
1426 |
-
'contentWidth' => 'boxed',
|
1427 |
-
'width' => '900',
|
1428 |
-
'innerWidth' => '1140',
|
1429 |
-
'tag' => 'section',
|
1430 |
-
'backgroundType' => 'none',
|
1431 |
-
'gradientColor1' => '',
|
1432 |
-
'gradientColor2' => '',
|
1433 |
-
'backgroundVideoColor' => '',
|
1434 |
-
'backgroundPosition' => 'center-center',
|
1435 |
-
'backgroundSize' => 'cover',
|
1436 |
-
'backgroundRepeat' => 'no-repeat',
|
1437 |
-
'backgroundAttachment' => 'scroll',
|
1438 |
-
'gradientType' => 'linear',
|
1439 |
-
'gradientLocation1' => '0',
|
1440 |
-
'gradientLocation2' => '100',
|
1441 |
-
'gradientAngle' => '0',
|
1442 |
-
'backgroundColor' => '',
|
1443 |
-
'backgroundOpacity' => '',
|
1444 |
-
'backgroundVideoOpacity' => '50',
|
1445 |
-
'backgroundImageColor' => '',
|
1446 |
-
'align' => 'center',
|
1447 |
-
'borderStyle' => 'none',
|
1448 |
-
'borderWidth' => '1',
|
1449 |
-
'borderRadius' => '',
|
1450 |
-
'borderColor' => '',
|
1451 |
-
'themeWidth' => false,
|
1452 |
-
),
|
1453 |
-
),
|
1454 |
-
'uagb/social-share' => array(
|
1455 |
-
'slug' => '',
|
1456 |
-
'title' => __( 'Social Share', 'ultimate-addons-for-gutenberg' ),
|
1457 |
-
'description' => __( 'This block allows you to let users share your content across various social networking sites.', 'ultimate-addons-for-gutenberg' ),
|
1458 |
-
'default' => true,
|
1459 |
-
'attributes' => array(
|
1460 |
-
'align' => 'center',
|
1461 |
-
'social_count' => '1',
|
1462 |
-
'socials' => array(
|
1463 |
-
array(
|
1464 |
-
'type' => 'facebook',
|
1465 |
-
'image_icon' => 'icon',
|
1466 |
-
'icon' => 'fab fa-facebook',
|
1467 |
-
'image' => '',
|
1468 |
-
'icon_color' => '#3a3a3a',
|
1469 |
-
'icon_hover_color' => '#3a3a3a',
|
1470 |
-
'icon_bg_color' => '',
|
1471 |
-
'icon_bg_hover_color' => '',
|
1472 |
-
),
|
1473 |
-
),
|
1474 |
-
'gap' => '10',
|
1475 |
-
'size' => '40',
|
1476 |
-
'sizeType' => 'px',
|
1477 |
-
'sizeMobile' => '',
|
1478 |
-
'sizeTablet' => '',
|
1479 |
-
'bgSize' => '0',
|
1480 |
-
'bgSizeType' => 'px',
|
1481 |
-
'bgSizeMobile' => '',
|
1482 |
-
'bgSizeTablet' => '',
|
1483 |
-
'borderRadius' => '0',
|
1484 |
-
'social_layout' => 'horizontal',
|
1485 |
-
'stack' => 'none',
|
1486 |
-
),
|
1487 |
-
),
|
1488 |
-
// 'uagb/table-of-contents' => array(
|
1489 |
-
// 'slug' => '',
|
1490 |
-
// 'title' => __( 'Table of Contents', 'ultimate-addons-for-gutenberg' ),
|
1491 |
-
// 'description' => __( 'This block allows you to place a Table of Content for Pages/Posts.', 'ultimate-addons-for-gutenberg' ),
|
1492 |
-
// 'default' => true,
|
1493 |
-
// 'attributes' => array(
|
1494 |
-
// 'block_id' => '',
|
1495 |
-
// 'heading' => 'Table Of Content',
|
1496 |
-
// 'smoothScroll' => true,
|
1497 |
-
// 'smoothScrollOffset' => 30,
|
1498 |
-
// 'scrollToTop' => false,
|
1499 |
-
// 'scrollToTopColor' => '',
|
1500 |
-
// 'scrollToTopBgColor' => '',
|
1501 |
-
// 'considerH1' => true,
|
1502 |
-
// 'considerH2' => true,
|
1503 |
-
// 'considerH3' => true,
|
1504 |
-
// 'considerH4' => true,
|
1505 |
-
// 'considerH5' => true,
|
1506 |
-
// 'considerH6' => true,
|
1507 |
-
// 'customWidth' => false,
|
1508 |
-
// 'width' => 100,
|
1509 |
-
// 'widthType' => '%',
|
1510 |
-
// 'align' => 'left',
|
1511 |
-
// 'linkColor' => '#333',
|
1512 |
-
// 'vPadding' => 30,
|
1513 |
-
// 'hPadding' => 30,
|
1514 |
-
// 'headingBottom' => '',
|
1515 |
-
// 'backgroundColor' => '#eee',
|
1516 |
-
// 'linkHoverColor' => '',
|
1517 |
-
// 'headingColor' => '',
|
1518 |
-
// 'borderStyle' => 'solid',
|
1519 |
-
// 'borderWidth' => 1,
|
1520 |
-
// 'borderRadius' => '',
|
1521 |
-
// 'borderColor' => '#333',
|
1522 |
-
// 'loadGoogleFonts' => false,
|
1523 |
-
// 'fontFamily' => 'Default',
|
1524 |
-
// 'fontWeight' => '',
|
1525 |
-
// 'fontSubset' => '',
|
1526 |
-
// 'fontSize' => '',
|
1527 |
-
// 'fontSizeType' => 'px',
|
1528 |
-
// 'fontSizeTablet' => '',
|
1529 |
-
// 'fontSizeMobile' => '',
|
1530 |
-
// 'lineHeightType' => 'em',
|
1531 |
-
// 'lineHeight' => '',
|
1532 |
-
// 'lineHeightTablet' => '',
|
1533 |
-
// 'lineHeightMobile' => '',
|
1534 |
-
// 'headingLoadGoogleFonts' => false,
|
1535 |
-
// 'headingFontFamily' => 'Default',
|
1536 |
-
// 'headingFontWeight' => '500',
|
1537 |
-
// 'headingFontSubset' => '',
|
1538 |
-
// 'headingFontSize' => 20,
|
1539 |
-
// 'headingFontSizeType' => 'px',
|
1540 |
-
// 'headingFontSizeTablet' => '',
|
1541 |
-
// 'headingFontSizeMobile' => '',
|
1542 |
-
// 'headingLineHeightType' => 'em',
|
1543 |
-
// 'headingLineHeight' => '',
|
1544 |
-
// 'headingLineHeightTablet' => '',
|
1545 |
-
// 'headingLineHeightMobile' => '',
|
1546 |
-
// ),
|
1547 |
-
// ),
|
1548 |
-
'uagb/team' => array(
|
1549 |
-
'slug' => '',
|
1550 |
-
'title' => __( 'Team', 'ultimate-addons-for-gutenberg' ),
|
1551 |
-
'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' ),
|
1552 |
-
'default' => true,
|
1553 |
-
'attributes' => array(
|
1554 |
-
'block_id' => '',
|
1555 |
-
'align' => 'center',
|
1556 |
-
'tag' => 'h3',
|
1557 |
-
'titleColor' => '',
|
1558 |
-
'prefixColor' => '#888888',
|
1559 |
-
'descColor' => '',
|
1560 |
-
'socialColor' => '#333',
|
1561 |
-
'socialHoverColor' => '',
|
1562 |
-
'titleFontFamily' => '',
|
1563 |
-
'titleLoadGoogleFonts' => false,
|
1564 |
-
'titleFontWeight' => '',
|
1565 |
-
'titleFontSubset' => '',
|
1566 |
-
'titleFontSize' => '',
|
1567 |
-
'titleFontSizeType' => 'px',
|
1568 |
-
'titleFontSizeTablet' => '',
|
1569 |
-
'titleFontSizeMobile' => '',
|
1570 |
-
'titleLineHeight' => '',
|
1571 |
-
'titleLineHeightType' => 'em',
|
1572 |
-
'titleLineHeightTablet' => '',
|
1573 |
-
'titleLineHeightMobile' => '',
|
1574 |
-
'prefixFontFamily' => '',
|
1575 |
-
'prefixLoadGoogleFonts' => false,
|
1576 |
-
'prefixFontWeight' => '',
|
1577 |
-
'prefixFontSubset' => '',
|
1578 |
-
'prefixFontSize' => 15,
|
1579 |
-
'prefixFontSizeType' => 'px',
|
1580 |
-
'prefixFontSizeTablet' => '',
|
1581 |
-
'prefixFontSizeMobile' => '',
|
1582 |
-
'prefixLineHeight' => '',
|
1583 |
-
'prefixLineHeightType' => 'em',
|
1584 |
-
'prefixLineHeightTablet' => '',
|
1585 |
-
'prefixLineHeightMobile' => '',
|
1586 |
-
'descFontFamily' => '',
|
1587 |
-
'descLoadGoogleFonts' => false,
|
1588 |
-
'descFontWeight' => '',
|
1589 |
-
'descFontSubset' => '',
|
1590 |
-
'descFontSize' => 15,
|
1591 |
-
'descFontSizeType' => 'px',
|
1592 |
-
'descFontSizeTablet' => '',
|
1593 |
-
'descFontSizeMobile' => '',
|
1594 |
-
'descLineHeight' => '',
|
1595 |
-
'descLineHeightType' => 'em',
|
1596 |
-
'descLineHeightTablet' => '',
|
1597 |
-
'descLineHeightMobile' => '',
|
1598 |
-
'socialFontSize' => 20,
|
1599 |
-
'socialFontSizeType' => 'px',
|
1600 |
-
'socialFontSizeMobile' => '',
|
1601 |
-
'socialFontSizeTablet' => '',
|
1602 |
-
'image' => '',
|
1603 |
-
'imgStyle' => 'normal',
|
1604 |
-
'imgPosition' => 'above',
|
1605 |
-
'imgAlign' => 'top',
|
1606 |
-
'imgSiz' => 'thumbnail',
|
1607 |
-
'imgWidth' => 120,
|
1608 |
-
'titleSpace' => '',
|
1609 |
-
'prefixSpace' => '',
|
1610 |
-
'descSpace' => 10,
|
1611 |
-
'imgLeftMargin' => 20,
|
1612 |
-
'imgRightMargin' => 20,
|
1613 |
-
'imgTopMargin' => 15,
|
1614 |
-
'imgBottomMargin' => 15,
|
1615 |
-
'socialSpace' => 20,
|
1616 |
-
'headingTag' => 'h3',
|
1617 |
-
),
|
1618 |
-
),
|
1619 |
-
'uagb/testimonial' => array(
|
1620 |
-
'slug' => '',
|
1621 |
-
'title' => __( 'Testimonial', 'ultimate-addons-for-gutenberg' ),
|
1622 |
-
'description' => __( 'This block helps your display some amazing client feedback within your website.', 'ultimate-addons-for-gutenberg' ),
|
1623 |
-
'default' => true,
|
1624 |
-
'attributes' => array(
|
1625 |
-
'headingAlign' => 'center',
|
1626 |
-
'companyColor' => '#888888',
|
1627 |
-
'descColor' => '#333',
|
1628 |
-
'authorColor' => '#333',
|
1629 |
-
'nameFontSizeType' => 'px',
|
1630 |
-
'nameFontSize' => '',
|
1631 |
-
'nameFontSizeTablet' => '',
|
1632 |
-
'nameFontSizeMobile' => '',
|
1633 |
-
'nameFontFamily' => '',
|
1634 |
-
'nameFontWeight' => '',
|
1635 |
-
'nameFontSubset' => '',
|
1636 |
-
'nameLineHeightType' => 'em',
|
1637 |
-
'nameLineHeight' => '',
|
1638 |
-
'nameLineHeightTablet' => '',
|
1639 |
-
'nameLineHeightMobile' => '',
|
1640 |
-
'nameLoadGoogleFonts' => false,
|
1641 |
-
'companyFontSizeType' => 'px',
|
1642 |
-
'companyFontSize' => '',
|
1643 |
-
'companyFontSizeTablet' => '',
|
1644 |
-
'companyFontSizeMobile' => '',
|
1645 |
-
'companyFontFamily' => '',
|
1646 |
-
'companyFontWeight' => '',
|
1647 |
-
'companyFontSubset' => '',
|
1648 |
-
'companyLineHeightType' => 'em',
|
1649 |
-
'companyLineHeight' => '',
|
1650 |
-
'companyLineHeightTablet' => '',
|
1651 |
-
'companyLineHeightMobile' => '',
|
1652 |
-
'companyLoadGoogleFonts' => false,
|
1653 |
-
'descFontSizeType' => 'px',
|
1654 |
-
'descFontSize' => '',
|
1655 |
-
'descFontSizeTablet' => '',
|
1656 |
-
'descFontSizeMobile' => '',
|
1657 |
-
'descFontFamily' => '',
|
1658 |
-
'descFontWeight' => '',
|
1659 |
-
'descFontSubset' => '',
|
1660 |
-
'descLineHeightType' => 'em',
|
1661 |
-
'descLineHeight' => '',
|
1662 |
-
'descLineHeightTablet' => '',
|
1663 |
-
'descLineHeightMobile' => '',
|
1664 |
-
'descLoadGoogleFonts' => false,
|
1665 |
-
'descSpace' => 15,
|
1666 |
-
'block_id' => '',
|
1667 |
-
'nameSpace' => 5,
|
1668 |
-
'imgVrPadding' => 10,
|
1669 |
-
'imgHrPadding' => 10,
|
1670 |
-
'imageWidth' => 60,
|
1671 |
-
'rowGap' => 10,
|
1672 |
-
'columnGap' => 10,
|
1673 |
-
'contentPadding' => 5,
|
1674 |
-
'backgroundColor' => '',
|
1675 |
-
'backgroundImage' => '',
|
1676 |
-
'backgroundPosition' => 'center-center',
|
1677 |
-
'backgroundSize' => 'cover',
|
1678 |
-
'backgroundRepeat' => 'no-repeat',
|
1679 |
-
'backgroundImageColor' => '',
|
1680 |
-
'backgroundOpacity' => 0,
|
1681 |
-
'borderStyle' => 'none',
|
1682 |
-
'borderWidth' => 1,
|
1683 |
-
'borderRadius' => 0,
|
1684 |
-
'borderColor' => '#333',
|
1685 |
-
'arrowColor' => '#333',
|
1686 |
-
'arrowDots' => 'arrowDots',
|
1687 |
-
'arrowBorderSize' => 1,
|
1688 |
-
'arrowBorderRadius' => 0,
|
1689 |
-
'columns' => 1,
|
1690 |
-
'autoplaySpeed' => 2000,
|
1691 |
-
'autoplay' => true,
|
1692 |
-
'infiniteLoop' => true,
|
1693 |
-
'pauseOnHover' => true,
|
1694 |
-
'transitionSpeed' => 500,
|
1695 |
-
'tcolumns' => 1,
|
1696 |
-
'mcolumns' => 1,
|
1697 |
-
'arrowSize' => 20,
|
1698 |
-
'test_item_count' => 3,
|
1699 |
-
),
|
1700 |
-
),
|
1701 |
-
);
|
1702 |
-
}
|
1703 |
-
return self::$block_attributes;
|
1704 |
-
}
|
1705 |
-
}
|
1706 |
-
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UAGB Config.
|
4 |
+
*
|
5 |
+
* @package UAGB
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! class_exists( 'UAGB_Config' ) ) {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Class UAGB_Config.
|
12 |
+
*/
|
13 |
+
class UAGB_Config {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Block Attributes
|
17 |
+
*
|
18 |
+
* @var block_attributes
|
19 |
+
*/
|
20 |
+
public static $block_attributes = null;
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Get Widget List.
|
24 |
+
*
|
25 |
+
* @since 0.0.1
|
26 |
+
*
|
27 |
+
* @return array The Widget List.
|
28 |
+
*/
|
29 |
+
public static function get_block_attributes() {
|
30 |
+
|
31 |
+
if ( null === self::$block_attributes ) {
|
32 |
+
self::$block_attributes = array(
|
33 |
+
'uagb/advanced-heading' => array(
|
34 |
+
'slug' => '',
|
35 |
+
'title' => __( 'Advanced Heading', 'ultimate-addons-for-gutenberg' ),
|
36 |
+
'description' => __( 'This block lets you add a combination of a heading and a sub-heading with a separator in between.', 'ultimate-addons-for-gutenberg' ),
|
37 |
+
'default' => true,
|
38 |
+
'attributes' => array(
|
39 |
+
'headingAlign' => 'center',
|
40 |
+
'headingColor' => '',
|
41 |
+
'subHeadingColor' => '',
|
42 |
+
'separatorColor' => '',
|
43 |
+
'seperatorStyle' => 'solid',
|
44 |
+
'separatorHeight' => '',
|
45 |
+
'separatorWidth' => '',
|
46 |
+
'separatorWidthType' => '%',
|
47 |
+
'headFontFamily' => '',
|
48 |
+
'headLoadGoogleFonts' => false,
|
49 |
+
'headFontWeight' => '',
|
50 |
+
'headFontSubset' => '',
|
51 |
+
'headFontSize' => '',
|
52 |
+
'headFontSizeType' => 'px',
|
53 |
+
'headFontSizeTablet' => '',
|
54 |
+
'headFontSizeMobile' => '',
|
55 |
+
'headLineHeight' => '',
|
56 |
+
'headLineHeightType' => 'em',
|
57 |
+
'headLineHeightTablet' => '',
|
58 |
+
'headLineHeightMobile' => '',
|
59 |
+
'subHeadFontFamily' => '',
|
60 |
+
'subHeadLoadGoogleFonts' => false,
|
61 |
+
'subHeadFontWeight' => '',
|
62 |
+
'subHeadFontSubset' => '',
|
63 |
+
'subHeadFontSize' => '',
|
64 |
+
'subHeadFontSizeType' => 'px',
|
65 |
+
'subHeadFontSizeTablet' => '',
|
66 |
+
'subHeadFontSizeMobile' => '',
|
67 |
+
'subHeadLineHeight' => '',
|
68 |
+
'subHeadLineHeightType' => 'em',
|
69 |
+
'subHeadLineHeightTablet' => '',
|
70 |
+
'subHeadLineHeightMobile' => '',
|
71 |
+
'headSpace' => 15,
|
72 |
+
'separatorSpace' => 15,
|
73 |
+
),
|
74 |
+
),
|
75 |
+
'uagb/columns' => array(
|
76 |
+
'slug' => '',
|
77 |
+
'title' => __( 'Advanced Columns', 'ultimate-addons-for-gutenberg' ),
|
78 |
+
'description' => __( 'This block gives you advanced options to insert a number of columns within a single row.', 'ultimate-addons-for-gutenberg' ),
|
79 |
+
'default' => true,
|
80 |
+
'attributes' => array(
|
81 |
+
'block_id' => '',
|
82 |
+
'columns' => '2',
|
83 |
+
'align' => '',
|
84 |
+
'vAlign' => '',
|
85 |
+
'stack' => 'mobile',
|
86 |
+
'topPadding' => '20',
|
87 |
+
'bottomPadding' => '20',
|
88 |
+
'leftPadding' => '20',
|
89 |
+
'rightPadding' => '20',
|
90 |
+
'topMargin' => '0',
|
91 |
+
'bottomMargin' => '0',
|
92 |
+
'topPaddingTablet' => '',
|
93 |
+
'bottomPaddingTablet' => '',
|
94 |
+
'leftPaddingTablet' => '',
|
95 |
+
'rightPaddingTablet' => '',
|
96 |
+
'topPaddingMobile' => '',
|
97 |
+
'bottomPaddingMobile' => '',
|
98 |
+
'leftPaddingMobile' => '',
|
99 |
+
'rightPaddingMobile' => '',
|
100 |
+
'topMarginMobile' => '',
|
101 |
+
'bottomMarginMobile' => '',
|
102 |
+
'topMarginTablet' => '',
|
103 |
+
'bottomMarginTablet' => '',
|
104 |
+
'contentWidth' => 'theme',
|
105 |
+
'width' => '900',
|
106 |
+
'tag' => 'section',
|
107 |
+
'backgroundType' => 'none',
|
108 |
+
'backgroundImage' => '',
|
109 |
+
'backgroundPosition' => 'center-center',
|
110 |
+
'backgroundSize' => 'cover',
|
111 |
+
'backgroundRepeat' => 'no-repeat',
|
112 |
+
'backgroundAttachment' => 'scroll',
|
113 |
+
'backgroundVideo' => '',
|
114 |
+
'backgroundColor' => '',
|
115 |
+
'gradientColor1' => '',
|
116 |
+
'gradientColor2' => '',
|
117 |
+
'gradientType' => 'linear',
|
118 |
+
'gradientLocation1' => '0',
|
119 |
+
'gradientLocation2' => '100',
|
120 |
+
'gradientAngle' => '0',
|
121 |
+
'backgroundOpacity' => '',
|
122 |
+
'backgroundVideoOpacity' => '50',
|
123 |
+
'backgroundVideoColor' => '',
|
124 |
+
'backgroundImageColor' => '',
|
125 |
+
'borderStyle' => 'none',
|
126 |
+
'borderWidth' => '1',
|
127 |
+
'borderRadius' => '',
|
128 |
+
'borderColor' => '',
|
129 |
+
'columnGap' => '10',
|
130 |
+
'bottomType' => 'none',
|
131 |
+
'bottomColor' => '#333',
|
132 |
+
'bottomHeight' => '',
|
133 |
+
'bottomHeightTablet' => '',
|
134 |
+
'bottomHeightMobile' => '',
|
135 |
+
'bottomWidth' => '',
|
136 |
+
'topType' => 'none',
|
137 |
+
'topColor' => '#333',
|
138 |
+
'topHeight' => '',
|
139 |
+
'topHeightTablet' => '',
|
140 |
+
'topHeightMobile' => '',
|
141 |
+
'topWidth' => '',
|
142 |
+
'bottomFlip' => '',
|
143 |
+
'topFlip' => '',
|
144 |
+
),
|
145 |
+
),
|
146 |
+
'uagb/column' => array(
|
147 |
+
'slug' => '',
|
148 |
+
'title' => __( 'Column', 'ultimate-addons-for-gutenberg' ),
|
149 |
+
'description' => __( 'This block is an immediate child of Advanced Columns.', 'ultimate-addons-for-gutenberg' ),
|
150 |
+
'default' => true,
|
151 |
+
'is_child' => true,
|
152 |
+
'attributes' => array(
|
153 |
+
'block_id' => '',
|
154 |
+
'topPadding' => '',
|
155 |
+
'bottomPadding' => '',
|
156 |
+
'leftPadding' => '',
|
157 |
+
'rightPadding' => '',
|
158 |
+
'topMargin' => '',
|
159 |
+
'bottomMargin' => '',
|
160 |
+
'leftMargin' => '',
|
161 |
+
'rightMargin' => '',
|
162 |
+
'topPaddingTablet' => '',
|
163 |
+
'bottomPaddingTablet' => '',
|
164 |
+
'leftPaddingTablet' => '',
|
165 |
+
'rightPaddingTablet' => '',
|
166 |
+
'topPaddingMobile' => '',
|
167 |
+
'bottomPaddingMobile' => '',
|
168 |
+
'leftPaddingMobile' => '',
|
169 |
+
'rightPaddingMobile' => '',
|
170 |
+
'topMarginMobile' => '',
|
171 |
+
'bottomMarginMobile' => '',
|
172 |
+
'leftMarginMobile' => '',
|
173 |
+
'rightMarginMobile' => '',
|
174 |
+
'topMarginTablet' => '',
|
175 |
+
'bottomMarginTablet' => '',
|
176 |
+
'leftMarginTablet' => '',
|
177 |
+
'rightMarginTablet' => '',
|
178 |
+
'colWidth' => '',
|
179 |
+
'colWidthTablet' => '',
|
180 |
+
'colWidthMobile' => '',
|
181 |
+
'backgroundType' => 'none',
|
182 |
+
'backgroundImage' => '',
|
183 |
+
'backgroundPosition' => 'center-center',
|
184 |
+
'backgroundSize' => 'cover',
|
185 |
+
'backgroundRepeat' => 'no-repeat',
|
186 |
+
'backgroundAttachment' => 'scroll',
|
187 |
+
'backgroundColor' => '',
|
188 |
+
'gradientColor1' => '',
|
189 |
+
'gradientColor2' => '',
|
190 |
+
'gradientType' => 'linear',
|
191 |
+
'gradientLocation1' => 0,
|
192 |
+
'gradientLocation2' => 100,
|
193 |
+
'gradientAngle' => 0,
|
194 |
+
'backgroundOpacity' => '',
|
195 |
+
'backgroundImageColor' => '',
|
196 |
+
'borderStyle' => 'none',
|
197 |
+
'borderWidth' => 1,
|
198 |
+
'borderRadius' => '',
|
199 |
+
'borderColor' => '',
|
200 |
+
'align' => 'center',
|
201 |
+
'alignMobile' => '',
|
202 |
+
'alignTablet' => '',
|
203 |
+
),
|
204 |
+
),
|
205 |
+
'uagb/blockquote' => array(
|
206 |
+
'slug' => '',
|
207 |
+
'title' => __( 'Blockquote', 'ultimate-addons-for-gutenberg' ),
|
208 |
+
'description' => __( 'This block allows you to display your Blockquote.', 'ultimate-addons-for-gutenberg' ),
|
209 |
+
'default' => true,
|
210 |
+
'attributes' => array(
|
211 |
+
'block_id ' => '',
|
212 |
+
'skinStyle' => 'border',
|
213 |
+
'align' => 'left',
|
214 |
+
'descColor' => '',
|
215 |
+
'descFontSize' => '',
|
216 |
+
'descFontSizeType' => 'px',
|
217 |
+
'descFontSizeTablet' => '',
|
218 |
+
'descFontSizeMobile' => '',
|
219 |
+
'descFontFamily' => '',
|
220 |
+
'descFontWeight' => '',
|
221 |
+
'descFontSubset' => '',
|
222 |
+
'descLineHeightType' => 'em
|
223 |
+
',
|
224 |
+
'descLineHeight' => '',
|
225 |
+
'descLineHeightTablet' => '',
|
226 |
+
'descLineHeightMobile' => '',
|
227 |
+
'descLoadGoogleFonts' => false,
|
228 |
+
'descSpace' => 20,
|
229 |
+
'authorColor' => '#888888',
|
230 |
+
'authorFontSize' => '',
|
231 |
+
'authorFontSizeType' => 'px',
|
232 |
+
'authorFontSizeTablet' => '',
|
233 |
+
'authorFontSizeMobile' => '',
|
234 |
+
'authorFontFamily' => '',
|
235 |
+
'authorFontWeight' => '',
|
236 |
+
'authorFontSubset' => '',
|
237 |
+
'authorLineHeightType' => 'em
|
238 |
+
',
|
239 |
+
'authorLineHeight' => '',
|
240 |
+
'authorLineHeightTablet' => '',
|
241 |
+
'authorLineHeightMobile' => '',
|
242 |
+
'authorLoadGoogleFonts' => false,
|
243 |
+
'authorSpace' => 10,
|
244 |
+
'authorImageWidth' => 40,
|
245 |
+
'authorImgBorderRadius' => 100,
|
246 |
+
'authorImgPosition' => 'right',
|
247 |
+
'stack' => 'tablet',
|
248 |
+
'enableTweet' => true,
|
249 |
+
'iconView' => 'icon_text',
|
250 |
+
'iconSkin' => 'link',
|
251 |
+
'tweetLinkColor' => '#1DA1F2',
|
252 |
+
'tweetBtnColor' => '#fff',
|
253 |
+
'tweetBtnBgColor' => '#1DA1F2',
|
254 |
+
'tweetBtnHoverColor' => '',
|
255 |
+
'tweetBtnBgHoverColor' => '#1DA1F2',
|
256 |
+
'tweetBtnFontSize' => 15,
|
257 |
+
'tweetBtnFontSizeType' => 'px',
|
258 |
+
'tweetBtnFontSizeTablet' => '',
|
259 |
+
'tweetBtnFontSizeMobile' => '',
|
260 |
+
'tweetBtnFontFamily' => '',
|
261 |
+
'tweetBtnFontWeight' => '',
|
262 |
+
'tweetBtnFontSubset' => '',
|
263 |
+
'tweetBtnLineHeightType' => 'em',
|
264 |
+
'tweetBtnLineHeight' => '',
|
265 |
+
'tweetBtnLineHeightTablet' => '',
|
266 |
+
'tweetBtnLineHeightMobile' => '',
|
267 |
+
'tweetBtnLoadGoogleFonts' => false,
|
268 |
+
'tweetBtnHrPadding' => 10,
|
269 |
+
'tweetBtnVrPadding' => 10,
|
270 |
+
'tweetIconSpacing' => 10,
|
271 |
+
'borderColor' => '#abb8c3',
|
272 |
+
'borderStyle' => 'solid',
|
273 |
+
'borderWidth' => 4,
|
274 |
+
'borderGap' => 15,
|
275 |
+
'verticalPadding' => '',
|
276 |
+
'quoteStyle' => 'style_1',
|
277 |
+
'quoteColor' => '#abb8c3',
|
278 |
+
'quoteSize' => 25,
|
279 |
+
'quoteSizeType' => 'px',
|
280 |
+
'quoteSizeTablet' => '',
|
281 |
+
'quoteSizeMobile' => '',
|
282 |
+
'quoteTopMargin' => '',
|
283 |
+
'quoteBottomMargin' => '',
|
284 |
+
'quoteLeftMargin' => '',
|
285 |
+
'quoteRightMargin' => 20,
|
286 |
+
'quoteBorderRadius' => 100,
|
287 |
+
'quoteBgColor' => '#333',
|
288 |
+
'quoteHoverColor' => '',
|
289 |
+
'quoteBgHoverColor' => '',
|
290 |
+
'borderHoverColor' => '',
|
291 |
+
'iconTargetUrl' => 'current',
|
292 |
+
'customUrl' => '',
|
293 |
+
'iconShareVia' => '',
|
294 |
+
'quotePadding' => 10,
|
295 |
+
'quotePaddingType' => 'px',
|
296 |
+
'quotePaddingTablet' => '',
|
297 |
+
'quotePaddingMobile' => '',
|
298 |
+
),
|
299 |
+
),
|
300 |
+
'uagb/call-to-action' => array(
|
301 |
+
'slug' => '',
|
302 |
+
'title' => __( 'Call To Action', 'ultimate-addons-for-gutenberg' ),
|
303 |
+
'description' => __( 'This block allows you to place an CTA along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
|
304 |
+
'default' => true,
|
305 |
+
'attributes' => array(
|
306 |
+
'textAlign' => 'left',
|
307 |
+
'titleColor' => '',
|
308 |
+
'descColor' => '',
|
309 |
+
'ctaPosition' => 'right',
|
310 |
+
'titleTag' => '',
|
311 |
+
'titleFontSize' => '',
|
312 |
+
'titleFontSizeType' => 'px',
|
313 |
+
'titleFontSizeMobile' => '',
|
314 |
+
'titleFontSizeTablet' => '',
|
315 |
+
'titleFontFamily' => '',
|
316 |
+
'titleFontWeight' => '',
|
317 |
+
'titleFontSubset' => '',
|
318 |
+
'titleLineHeightType' => 'em',
|
319 |
+
'titleLineHeight' => '',
|
320 |
+
'titleLineHeightTablet' => '',
|
321 |
+
'titleLineHeightMobile' => '',
|
322 |
+
'titleLoadGoogleFonts' => false,
|
323 |
+
'descFontSize' => '',
|
324 |
+
'descFontSizeType' => 'px',
|
325 |
+
'descFontSizeMobile' => '',
|
326 |
+
'descFontSizeTablet' => '',
|
327 |
+
'descFontFamily' => '',
|
328 |
+
'descFontWeight' => '',
|
329 |
+
'descFontSubset' => '',
|
330 |
+
'descLineHeightType' => 'em',
|
331 |
+
'descLineHeight' => '',
|
332 |
+
'descLineHeightTablet' => '',
|
333 |
+
'descLineHeightMobile' => '',
|
334 |
+
'descLoadGoogleFonts' => false,
|
335 |
+
'titleSpace' => 10,
|
336 |
+
'descSpace' => 10,
|
337 |
+
'buttonAlign' => 'top',
|
338 |
+
'ctaTarget' => false,
|
339 |
+
'ctaIconPosition' => 'after',
|
340 |
+
'ctaIconSpace' => 5,
|
341 |
+
'ctaType' => 'button',
|
342 |
+
'ctaLink' => '#',
|
343 |
+
'ctaFontSize' => '',
|
344 |
+
'ctaFontSizeType' => 'px',
|
345 |
+
'ctaFontSizeMobile' => '',
|
346 |
+
'ctaFontSizeTablet' => '',
|
347 |
+
'ctaFontFamily' => '',
|
348 |
+
'ctaFontWeight' => '',
|
349 |
+
'ctaFontSubset' => '',
|
350 |
+
'ctaLoadGoogleFonts' => false,
|
351 |
+
'ctaBtnLinkColor' => '#333',
|
352 |
+
'ctaBgColor' => 'transparent',
|
353 |
+
'ctaBgHoverColor' => 'transparent',
|
354 |
+
'ctaBorderColor' => '#333',
|
355 |
+
'ctaBorderhoverColor' => '',
|
356 |
+
'ctaBorderStyle' => 'solid',
|
357 |
+
'ctaBtnVertPadding' => 10,
|
358 |
+
'ctaBtnHrPadding' => 14,
|
359 |
+
'ctaBorderWidth' => 1,
|
360 |
+
'ctaBorderRadius' => 0,
|
361 |
+
'stack' => 'tablet',
|
362 |
+
'showTitle' => true,
|
363 |
+
'showDesc' => true,
|
364 |
+
'ctaLeftSpace' => 5,
|
365 |
+
'ctaRightSpace' => 5,
|
366 |
+
'contentWidth' => 70,
|
367 |
+
'ctaLinkHoverColor' => '',
|
368 |
+
),
|
369 |
+
),
|
370 |
+
'uagb/cf7-styler' => array(
|
371 |
+
'slug' => '',
|
372 |
+
'title' => __( 'Contact Form 7 Styler', 'ultimate-addons-for-gutenberg' ),
|
373 |
+
'description' => __( 'This block allows you to add and style your Contact Form 7 forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
|
374 |
+
'is_active' => class_exists( 'WPCF7_ContactForm' ),
|
375 |
+
'default' => true,
|
376 |
+
'attributes' => array(
|
377 |
+
'block_id' => '',
|
378 |
+
'align' => 'left',
|
379 |
+
'formId' => '0',
|
380 |
+
'fieldStyle' => 'box',
|
381 |
+
'fieldHrPadding' => 10,
|
382 |
+
'fieldVrPadding' => 10,
|
383 |
+
'fieldBgColor' => '#fafafa',
|
384 |
+
'fieldLabelColor' => '#333',
|
385 |
+
'fieldInputColor' => '#333',
|
386 |
+
'fieldBorderStyle' => 'solid',
|
387 |
+
'fieldBorderWidth' => 1,
|
388 |
+
'fieldBorderRadius' => 0,
|
389 |
+
'fieldBorderColor' => '#eeeeee',
|
390 |
+
'fieldBorderFocusColor' => '',
|
391 |
+
'buttonAlignment' => 'left',
|
392 |
+
'buttonVrPadding' => 10,
|
393 |
+
'buttonHrPadding' => 25,
|
394 |
+
'buttonTextColor' => '#333',
|
395 |
+
'buttonBgColor' => 'transparent',
|
396 |
+
'buttonTextHoverColor' => '',
|
397 |
+
'buttonBgHoverColor' => '',
|
398 |
+
'buttonBorderStyle' => 'solid',
|
399 |
+
'buttonBorderWidth' => 1,
|
400 |
+
'buttonBorderRadius' => 0,
|
401 |
+
'buttonBorderColor' => '#333',
|
402 |
+
'buttonBorderHoverColor' => '',
|
403 |
+
'fieldSpacing' => '',
|
404 |
+
'fieldLabelSpacing' => '',
|
405 |
+
'labelFontSize' => '',
|
406 |
+
'labelFontSizeType' => 'px',
|
407 |
+
'labelFontSizeTablet' => '',
|
408 |
+
'labelFontSizeMobile' => '',
|
409 |
+
'labelFontFamily' => '',
|
410 |
+
'labelFontWeight' => '',
|
411 |
+
'labelFontSubset' => '',
|
412 |
+
'labelLineHeightType' => 'px',
|
413 |
+
'labelLineHeight' => '',
|
414 |
+
'labelLineHeightTablet' => '',
|
415 |
+
'labelLineHeightMobile' => '',
|
416 |
+
'labelLoadGoogleFonts' => false,
|
417 |
+
'inputFontSize' => '',
|
418 |
+
'inputFontSizeType' => 'px',
|
419 |
+
'inputFontSizeTablet' => '',
|
420 |
+
'inputFontSizeMobile' => '',
|
421 |
+
'inputFontFamily' => '',
|
422 |
+
'inputFontWeight' => '',
|
423 |
+
'inputFontSubset' => '',
|
424 |
+
'inputLineHeightType' => 'px',
|
425 |
+
'inputLineHeight' => '',
|
426 |
+
'inputLineHeightTablet' => '',
|
427 |
+
'inputLineHeightMobile' => '',
|
428 |
+
'inputLoadGoogleFonts' => false,
|
429 |
+
'buttonFontSize' => '',
|
430 |
+
'buttonFontSizeType' => 'px',
|
431 |
+
'buttonFontSizeTablet' => '',
|
432 |
+
'buttonFontSizeMobile' => '',
|
433 |
+
'buttonFontFamily' => '',
|
434 |
+
'buttonFontWeight' => '',
|
435 |
+
'buttonFontSubset' => '',
|
436 |
+
'buttonLineHeightType' => 'px',
|
437 |
+
'buttonLineHeight' => '',
|
438 |
+
'buttonLineHeightTablet' => '',
|
439 |
+
'buttonLineHeightMobile' => '',
|
440 |
+
'buttonLoadGoogleFonts' => false,
|
441 |
+
'enableOveride' => true,
|
442 |
+
'radioCheckSize' => '',
|
443 |
+
'radioCheckBgColor' => '',
|
444 |
+
'radioCheckSelectColor' => '',
|
445 |
+
'radioCheckLableColor' => '',
|
446 |
+
'radioCheckBorderColor' => '#abb8c3',
|
447 |
+
'radioCheckBorderWidth' => '',
|
448 |
+
'radioCheckBorderRadius' => '',
|
449 |
+
'radioCheckFontSize' => '',
|
450 |
+
'radioCheckFontSizeType' => 'px',
|
451 |
+
'radioCheckFontSizeTablet' => '',
|
452 |
+
'radioCheckFontSizeMobile' => '',
|
453 |
+
'radioCheckFontFamily' => '',
|
454 |
+
'radioCheckFontWeight' => '',
|
455 |
+
'radioCheckFontSubset' => '',
|
456 |
+
'radioCheckLineHeightType' => 'px',
|
457 |
+
'radioCheckLineHeight' => '',
|
458 |
+
'radioCheckLineHeightTablet' => '',
|
459 |
+
'radioCheckLineHeightMobile' => '',
|
460 |
+
'radioCheckLoadGoogleFonts' => false,
|
461 |
+
'validationMsgPosition' => 'default',
|
462 |
+
'validationMsgColor' => '#ff0000',
|
463 |
+
'validationMsgBgColor' => '',
|
464 |
+
'enableHighlightBorder' => false,
|
465 |
+
'highlightBorderColor' => '#ff0000',
|
466 |
+
'validationMsgFontSize' => '',
|
467 |
+
'validationMsgFontSizeType' => 'px',
|
468 |
+
'validationMsgFontSizeTablet' => '',
|
469 |
+
'validationMsgFontSizeMobile' => '',
|
470 |
+
'validationMsgFontFamily' => '',
|
471 |
+
'validationMsgFontWeight' => '',
|
472 |
+
'validationMsgFontSubset' => '',
|
473 |
+
'validationMsgLineHeightType' => 'em',
|
474 |
+
'validationMsgLineHeight' => '',
|
475 |
+
'validationMsgLineHeightTablet' => '',
|
476 |
+
'validationMsgLineHeightMobile' => '',
|
477 |
+
'validationMsgLoadGoogleFonts' => false,
|
478 |
+
'successMsgColor' => '',
|
479 |
+
'successMsgBgColor' => '',
|
480 |
+
'successMsgBorderColor' => '',
|
481 |
+
'errorMsgColor' => '',
|
482 |
+
'errorMsgBgColor' => '',
|
483 |
+
'errorMsgBorderColor' => '',
|
484 |
+
'msgBorderSize' => '',
|
485 |
+
'msgBorderRadius' => '',
|
486 |
+
'msgVrPadding' => '',
|
487 |
+
'msgHrPadding' => '',
|
488 |
+
'msgFontSize' => '',
|
489 |
+
'msgFontSizeType' => 'px',
|
490 |
+
'msgFontSizeTablet' => '',
|
491 |
+
'msgFontSizeMobile' => '',
|
492 |
+
'msgFontFamily' => '',
|
493 |
+
'msgFontWeight' => '',
|
494 |
+
'msgFontSubset' => '',
|
495 |
+
'msgLineHeightType' => 'em',
|
496 |
+
'msgLineHeight' => '',
|
497 |
+
'msgLineHeightTablet' => '',
|
498 |
+
'msgLineHeightMobile' => '',
|
499 |
+
'msgLoadGoogleFonts' => false,
|
500 |
+
'radioCheckBorderRadiusType' => 'px',
|
501 |
+
'msgBorderRadiusType' => 'px',
|
502 |
+
'fieldBorderRadiusType' => 'px',
|
503 |
+
'buttonBorderRadiusType' => 'px',
|
504 |
+
),
|
505 |
+
),
|
506 |
+
'uagb/gf-styler' => array(
|
507 |
+
'slug' => '',
|
508 |
+
'title' => __( 'Gravity Form Styler', 'ultimate-addons-for-gutenberg' ),
|
509 |
+
'description' => __( 'This block allows you to add and style your Gravity Forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ),
|
510 |
+
'default' => true,
|
511 |
+
'is_active' => class_exists( 'GFForms' ),
|
512 |
+
'attributes' => array(
|
513 |
+
'block_id' => '',
|
514 |
+
'align' => 'left',
|
515 |
+
'enableAjax' => false,
|
516 |
+
'enableTabSupport' => false,
|
517 |
+
'formTabIndex' => '0',
|
518 |
+
'formId' => '0',
|
519 |
+
'titleDescStyle' => 'yes',
|
520 |
+
'titleDescAlignment' => 'left',
|
521 |
+
'fieldStyle' => 'box',
|
522 |
+
'fieldHrPadding' => 10,
|
523 |
+
'fieldVrPadding' => 10,
|
524 |
+
'fieldBgColor' => '#fafafa',
|
525 |
+
'fieldLabelColor' => '#333',
|
526 |
+
'fieldInputColor' => '#333',
|
527 |
+
'fieldBorderStyle' => 'solid',
|
528 |
+
'fieldBorderWidth' => 1,
|
529 |
+
'fieldBorderRadius' => 0,
|
530 |
+
'fieldBorderColor' => '#eeeeee',
|
531 |
+
'fieldBorderFocusColor' => '',
|
532 |
+
'buttonAlignment' => 'left',
|
533 |
+
'buttonVrPadding' => 10,
|
534 |
+
'buttonHrPadding' => 25,
|
535 |
+
'buttonTextColor' => '#333',
|
536 |
+
'buttonBgColor' => 'transparent',
|
537 |
+
'buttonTextHoverColor' => '',
|
538 |
+
'buttonBgHoverColor' => '',
|
539 |
+
'buttonBorderStyle' => 'solid',
|
540 |
+
'buttonBorderWidth' => 1,
|
541 |
+
'buttonBorderRadius' => 0,
|
542 |
+
'buttonBorderColor' => '#333',
|
543 |
+
'buttonBorderHoverColor' => '',
|
544 |
+
'fieldSpacing' => '',
|
545 |
+
'fieldLabelSpacing' => '',
|
546 |
+
'enableLabel' => false,
|
547 |
+
'textAreaHeight' => 'auto',
|
548 |
+
'labelFontSize' => '',
|
549 |
+
'labelFontSizeType' => 'px',
|
550 |
+
'labelFontSizeTablet' => '',
|
551 |
+
'labelFontSizeMobile' => '',
|
552 |
+
'labelFontFamily' => '',
|
553 |
+
'labelFontWeight' => '',
|
554 |
+
'labelFontSubset' => '',
|
555 |
+
'labelLineHeightType' => 'px',
|
556 |
+
'labelLineHeight' => '',
|
557 |
+
'labelLineHeightTablet' => '',
|
558 |
+
'labelLineHeightMobile' => '',
|
559 |
+
'labelLoadGoogleFonts' => false,
|
560 |
+
'inputFontSize' => '',
|
561 |
+
'inputFontSizeType' => 'px',
|
562 |
+
'inputFontSizeTablet' => '',
|
563 |
+
'inputFontSizeMobile' => '',
|
564 |
+
'inputFontFamily' => '',
|
565 |
+
'inputFontWeight' => '',
|
566 |
+
'inputFontSubset' => '',
|
567 |
+
'inputLineHeightType' => 'px',
|
568 |
+
'inputLineHeight' => '',
|
569 |
+
'inputLineHeightTablet' => '',
|
570 |
+
'inputLineHeightMobile' => '',
|
571 |
+
'inputLoadGoogleFonts' => false,
|
572 |
+
'buttonFontSize' => '',
|
573 |
+
'buttonFontSizeType' => 'px',
|
574 |
+
'buttonFontSizeTablet' => '',
|
575 |
+
'buttonFontSizeMobile' => '',
|
576 |
+
'buttonFontFamily' => '',
|
577 |
+
'buttonFontWeight' => '',
|
578 |
+
'buttonFontSubset' => '',
|
579 |
+
'buttonLineHeightType' => 'px',
|
580 |
+
'buttonLineHeight' => '',
|
581 |
+
'buttonLineHeightTablet' => '',
|
582 |
+
'buttonLineHeightMobile' => '',
|
583 |
+
'buttonLoadGoogleFonts' => false,
|
584 |
+
'enableOveride' => true,
|
585 |
+
'radioCheckSize' => '20',
|
586 |
+
'radioCheckBgColor' => '#fafafa',
|
587 |
+
'radioCheckSelectColor' => '',
|
588 |
+
'radioCheckLableColor' => '',
|
589 |
+
'radioCheckBorderColor' => '#cbcbcb',
|
590 |
+
'radioCheckBorderWidth' => '1',
|
591 |
+
'radioCheckBorderRadius' => '',
|
592 |
+
'radioCheckFontSize' => '',
|
593 |
+
'radioCheckFontSizeType' => 'px',
|
594 |
+
'radioCheckFontSizeTablet' => '',
|
595 |
+
'radioCheckFontSizeMobile' => '',
|
596 |
+
'radioCheckFontFamily' => '',
|
597 |
+
'radioCheckFontWeight' => '',
|
598 |
+
'radioCheckFontSubset' => '',
|
599 |
+
'radioCheckLineHeightType' => 'px',
|
600 |
+
'radioCheckLineHeight' => '',
|
601 |
+
'radioCheckLineHeightTablet' => '',
|
602 |
+
'radioCheckLineHeightMobile' => '',
|
603 |
+
'radioCheckLoadGoogleFonts' => false,
|
604 |
+
'validationMsgColor' => '#ff0000',
|
605 |
+
'advancedValidationSettings' => false,
|
606 |
+
'highlightBorderColor' => '#ff0000',
|
607 |
+
'validationMsgFontSize' => '',
|
608 |
+
'validationMsgBgColor' => '',
|
609 |
+
'validationMsgFontSizeType' => 'px',
|
610 |
+
'validationMsgFontSizeTablet' => '',
|
611 |
+
'validationMsgFontSizeMobile' => '',
|
612 |
+
'validationMsgFontFamily' => '',
|
613 |
+
'validationMsgFontWeight' => '',
|
614 |
+
'validationMsgFontSubset' => '',
|
615 |
+
'validationMsgLineHeightType' => 'em',
|
616 |
+
'validationMsgLineHeight' => '',
|
617 |
+
'validationMsgLineHeightTablet' => '',
|
618 |
+
'validationMsgLineHeightMobile' => '',
|
619 |
+
'validationMsgLoadGoogleFonts' => false,
|
620 |
+
'successMsgBorderColor' => '',
|
621 |
+
'errorMsgColor' => '',
|
622 |
+
'errorMsgBgColor' => '',
|
623 |
+
'errorMsgBorderColor' => '',
|
624 |
+
'msgBorderSize' => '',
|
625 |
+
'msgBorderRadius' => '',
|
626 |
+
'msgVrPadding' => '',
|
627 |
+
'msgHrPadding' => '',
|
628 |
+
'msgFontSize' => '',
|
629 |
+
'msgFontSizeType' => 'px',
|
630 |
+
'msgFontSizeTablet' => '',
|
631 |
+
'msgFontSizeMobile' => '',
|
632 |
+
'msgFontFamily' => '',
|
633 |
+
'msgFontWeight' => '',
|
634 |
+
'msgFontSubset' => '',
|
635 |
+
'msgLineHeightType' => 'em',
|
636 |
+
'msgLineHeight' => '',
|
637 |
+
'msgLineHeightTablet' => '',
|
638 |
+
'msgLineHeightMobile' => '',
|
639 |
+
'msgLoadGoogleFonts' => false,
|
640 |
+
'radioCheckBorderRadiusType' => 'px',
|
641 |
+
'msgBorderRadiusType' => 'px',
|
642 |
+
'fieldBorderRadiusType' => 'px',
|
643 |
+
'buttonBorderRadiusType' => 'px',
|
644 |
+
'successMsgColor' => '',
|
645 |
+
'successMsgFontSize' => '',
|
646 |
+
'successMsgFontSizeType' => 'px',
|
647 |
+
'successMsgFontSizeTablet' => '',
|
648 |
+
'successMsgFontSizeMobile' => '',
|
649 |
+
'successMsgFontFamily' => '',
|
650 |
+
'successMsgFontWeight' => '',
|
651 |
+
'successMsgFontSubset' => '',
|
652 |
+
'successMsgLineHeightType' => 'em',
|
653 |
+
'successMsgLineHeight' => '',
|
654 |
+
'successMsgLineHeightTablet' => '',
|
655 |
+
'successMsgLineHeightMobile' => '',
|
656 |
+
'successMsgLoadGoogleFonts' => false,
|
657 |
+
),
|
658 |
+
),
|
659 |
+
'uagb/content-timeline' => array(
|
660 |
+
'slug' => '',
|
661 |
+
'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ),
|
662 |
+
'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ),
|
663 |
+
'default' => true,
|
664 |
+
'attributes' => array(
|
665 |
+
'align' => 'center',
|
666 |
+
'headingColor' => '',
|
667 |
+
'subHeadingColor' => '',
|
668 |
+
'separatorBg' => '#eee',
|
669 |
+
'backgroundColor' => '#eee',
|
670 |
+
'separatorColor' => '#eee',
|
671 |
+
'separatorFillColor' => '#61ce70',
|
672 |
+
'separatorBorder' => '#eee',
|
673 |
+
'borderFocus' => '#5cb85c',
|
674 |
+
'horizontalSpace' => 10,
|
675 |
+
'verticalSpace' => 15,
|
676 |
+
'headFontSizeType' => 'px',
|
677 |
+
'headFontSize' => '',
|
678 |
+
'headFontSizeTablet' => '',
|
679 |
+
'headFontSizeMobile' => '',
|
680 |
+
'headFontFamily' => '',
|
681 |
+
'headFontWeight' => '',
|
682 |
+
'headFontSubset' => '',
|
683 |
+
'headLineHeightType' => 'em',
|
684 |
+
'headLineHeight' => '',
|
685 |
+
'headLineHeightTablet' => '',
|
686 |
+
'headLineHeightMobile' => '',
|
687 |
+
'headLoadGoogleFonts' => false,
|
688 |
+
'timelinAlignment' => 'center',
|
689 |
+
'arrowlinAlignment' => 'center',
|
690 |
+
'subHeadFontSizeType' => 'px',
|
691 |
+
'subHeadFontSize' => '',
|
692 |
+
'subHeadFontSizeTablet' => '',
|
693 |
+
'subHeadFontSizeMobile' => '',
|
694 |
+
'subHeadFontFamily' => '',
|
695 |
+
'subHeadFontWeight' => '',
|
696 |
+
'subHeadFontSubset' => '',
|
697 |
+
'subHeadLineHeightType' => 'em',
|
698 |
+
'subHeadLineHeight' => '',
|
699 |
+
'subHeadLineHeightTablet' => '',
|
700 |
+
'subHeadLineHeightMobile' => '',
|
701 |
+
'subHeadLoadGoogleFonts' => false,
|
702 |
+
'headSpace' => 5,
|
703 |
+
'separatorwidth' => 3,
|
704 |
+
'borderwidth' => 0,
|
705 |
+
'iconColor' => '#333',
|
706 |
+
'iconFocus' => '#fff',
|
707 |
+
'iconBgFocus' => '#61ce70',
|
708 |
+
'dateColor' => '#333',
|
709 |
+
'dateFontsizeType' => 'px',
|
710 |
+
'dateFontsize' => '12',
|
711 |
+
'dateFontsizeTablet' => '',
|
712 |
+
'dateFontsizeMobile' => '',
|
713 |
+
'dateFontFamily' => '',
|
714 |
+
'dateFontWeight' => '',
|
715 |
+
'dateFontSubset' => '',
|
716 |
+
'dateLineHeightType' => 'em',
|
717 |
+
'dateLineHeight' => '',
|
718 |
+
'dateLineHeightTablet' => '',
|
719 |
+
'dateLineHeightMobile' => '',
|
720 |
+
'dateLoadGoogleFonts' => false,
|
721 |
+
'connectorBgsize' => 35,
|
722 |
+
'dateBottomspace' => 5,
|
723 |
+
'borderRadius' => 2,
|
724 |
+
'bgPadding' => 20,
|
725 |
+
'iconSize' => 12,
|
726 |
+
'stack' => 'tablet',
|
727 |
+
),
|
728 |
+
),
|
729 |
+
'uagb/google-map' => array(
|
730 |
+
'slug' => '',
|
731 |
+
'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ),
|
732 |
+
'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ),
|
733 |
+
'default' => true,
|
734 |
+
'attributes' => array(
|
735 |
+
'block_id' => '',
|
736 |
+
'height' => '300',
|
737 |
+
),
|
738 |
+
),
|
739 |
+
'uagb/icon-list' => array(
|
740 |
+
'slug' => '',
|
741 |
+
'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ),
|
742 |
+
'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ),
|
743 |
+
'default' => true,
|
744 |
+
'attributes' => array(
|
745 |
+
'align' => 'left',
|
746 |
+
'icon_count' => '1',
|
747 |
+
'icons' => array(
|
748 |
+
array(
|
749 |
+
'label' => __( 'Label #1', 'ultimate-addons-for-gutenberg' ),
|
750 |
+
'image_icon' => 'icon',
|
751 |
+
'icon' => 'fab fa-facebook',
|
752 |
+
'image' => '',
|
753 |
+
'icon_color' => '#3a3a3a',
|
754 |
+
'icon_hover_color' => '#3a3a3a',
|
755 |
+
'icon_bg_color' => '',
|
756 |
+
'icon_bg_hover_color' => '',
|
757 |
+
'icon_border_color' => '',
|
758 |
+
'icon_border_hover_color' => '',
|
759 |
+
'label_color' => '',
|
760 |
+
'label_hover_color' => '',
|
761 |
+
'link' => '#',
|
762 |
+
'target' => false,
|
763 |
+
),
|
764 |
+
),
|
765 |
+
'gap' => '10',
|
766 |
+
'inner_gap' => '15',
|
767 |
+
'size' => '40',
|
768 |
+
'sizeType' => 'px',
|
769 |
+
'sizeMobile' => '',
|
770 |
+
'sizeTablet' => '',
|
771 |
+
'bgSize' => '0',
|
772 |
+
'border' => '0',
|
773 |
+
'borderRadius' => '0',
|
774 |
+
'fontSize' => '',
|
775 |
+
'fontSizeType' => 'px',
|
776 |
+
'fontSizeMobile' => '',
|
777 |
+
'fontSizeTablet' => '',
|
778 |
+
'lineHeight' => '',
|
779 |
+
'lineHeightType' => 'em',
|
780 |
+
'lineHeightMobile' => '',
|
781 |
+
'lineHeightTablet' => '',
|
782 |
+
'fontFamily' => '',
|
783 |
+
'fontWeight' => '',
|
784 |
+
'fontSubset' => '',
|
785 |
+
'loadGoogleFonts' => false,
|
786 |
+
'icon_layout' => 'vertical',
|
787 |
+
'stack' => 'none',
|
788 |
+
),
|
789 |
+
),
|
790 |
+
'uagb/info-box' => array(
|
791 |
+
'slug' => '',
|
792 |
+
'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ),
|
793 |
+
'description' => __( 'This block allows you to place an image or icon along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
|
794 |
+
'default' => true,
|
795 |
+
'attributes' => array(
|
796 |
+
'headingAlign' => 'center',
|
797 |
+
'headingColor' => '',
|
798 |
+
'subHeadingColor' => '',
|
799 |
+
'prefixColor' => '',
|
800 |
+
'prefixFontSize' => '',
|
801 |
+
'prefixFontSizeType' => 'px',
|
802 |
+
'prefixFontSizeTablet' => '',
|
803 |
+
'prefixFontSizeMobile' => '',
|
804 |
+
'prefixFontFamily' => '',
|
805 |
+
'prefixFontWeight' => '',
|
806 |
+
'prefixFontSubset' => '',
|
807 |
+
'prefixLineHeightType' => 'em',
|
808 |
+
'prefixLineHeight' => '',
|
809 |
+
'prefixLineHeightTablet' => '',
|
810 |
+
'prefixLineHeightMobile' => '',
|
811 |
+
'prefixLoadGoogleFonts' => false,
|
812 |
+
'headFontSize' => '',
|
813 |
+
'headFontSizeType' => 'px',
|
814 |
+
'headFontSizeTablet' => '',
|
815 |
+
'headFontSizeMobile' => '',
|
816 |
+
'headFontFamily' => '',
|
817 |
+
'headFontWeight' => '',
|
818 |
+
'headFontSubset' => '',
|
819 |
+
'headLineHeightType' => 'em',
|
820 |
+
'headLineHeight' => '',
|
821 |
+
'headLineHeightTablet' => '',
|
822 |
+
'headLineHeightMobile' => '',
|
823 |
+
'headLoadGoogleFonts' => false,
|
824 |
+
'subHeadFontSize' => '',
|
825 |
+
'subHeadFontSizeType' => 'px',
|
826 |
+
'subHeadFontSizeTablet' => '',
|
827 |
+
'subHeadFontSizeMobile' => '',
|
828 |
+
'subHeadFontFamily' => '',
|
829 |
+
'subHeadFontWeight' => '',
|
830 |
+
'subHeadFontSubset' => '',
|
831 |
+
'subHeadLineHeightType' => 'em',
|
832 |
+
'subHeadLineHeight' => '',
|
833 |
+
'subHeadLineHeightTablet' => '',
|
834 |
+
'subHeadLineHeightMobile' => '',
|
835 |
+
'subHeadLoadGoogleFonts' => false,
|
836 |
+
'separatorWidth' => '',
|
837 |
+
'separatorHeight' => '',
|
838 |
+
'separatorWidthType' => '%',
|
839 |
+
'headSpace' => '10',
|
840 |
+
'separatorSpace' => '10',
|
841 |
+
'subHeadSpace' => '10',
|
842 |
+
'icon' => '',
|
843 |
+
'iconColor' => '#333',
|
844 |
+
'iconSize' => '40',
|
845 |
+
'iconimgPosition' => 'above-title',
|
846 |
+
'block_id' => '',
|
847 |
+
'iconHover' => '',
|
848 |
+
'iconimgBorderRadius' => '0',
|
849 |
+
'seperatorStyle' => 'solid',
|
850 |
+
'seperatorWidth' => '30',
|
851 |
+
'seperatorColor' => '#333',
|
852 |
+
'seperatorThickness' => '2',
|
853 |
+
'ctaLinkColor' => '#333',
|
854 |
+
'ctaFontSize' => '',
|
855 |
+
'ctaFontSizeType' => 'px',
|
856 |
+
'ctaFontSizeMobile' => '',
|
857 |
+
'ctaFontSizeTablet' => '',
|
858 |
+
'ctaFontFamily' => '',
|
859 |
+
'ctaFontWeight' => '',
|
860 |
+
'ctaFontSubset' => '',
|
861 |
+
'ctaLoadGoogleFonts' => false,
|
862 |
+
'ctaBtnLinkColor' => '#333',
|
863 |
+
'ctaBgColor' => 'transparent',
|
864 |
+
'ctaBtnVertPadding' => '10',
|
865 |
+
'ctaBtnHrPadding' => '14',
|
866 |
+
'ctaBorderStyle' => 'solid',
|
867 |
+
'ctaBorderColor' => '#333',
|
868 |
+
'ctaBorderWidth' => '1',
|
869 |
+
'ctaBorderRadius' => '0',
|
870 |
+
'prefixSpace' => '5',
|
871 |
+
'iconLeftMargin' => '5',
|
872 |
+
'iconRightMargin' => '10',
|
873 |
+
'iconTopMargin' => '5',
|
874 |
+
'iconBottomMargin' => '5',
|
875 |
+
'imageSize' => 'thumbnail',
|
876 |
+
'imageWidth' => '120',
|
877 |
+
'seperatorSpace' => '15',
|
878 |
+
'ctaLinkHoverColor' => '',
|
879 |
+
'ctaBgHoverColor' => '',
|
880 |
+
'ctaBorderhoverColor' => '',
|
881 |
+
'ctaIconSpace' => '5',
|
882 |
+
),
|
883 |
+
),
|
884 |
+
'uagb/marketing-button' => array(
|
885 |
+
'slug' => '',
|
886 |
+
'title' => __( 'Marketing Button', 'ultimate-addons-for-gutenberg' ),
|
887 |
+
'description' => __( 'This block allows you to place a Marketing Button with small description.', 'ultimate-addons-for-gutenberg' ),
|
888 |
+
'default' => true,
|
889 |
+
'attributes' => array(
|
890 |
+
'block_id' => '',
|
891 |
+
'align' => 'center',
|
892 |
+
'textAlign' => 'center',
|
893 |
+
'link' => '#',
|
894 |
+
'linkTarget' => false,
|
895 |
+
'titleSpace' => 0,
|
896 |
+
'borderStyle' => 'solid',
|
897 |
+
'borderWidth' => 1,
|
898 |
+
'borderRadius' => '',
|
899 |
+
'borderColor' => '#333',
|
900 |
+
'borderHoverColor' => '',
|
901 |
+
'vPadding' => 8,
|
902 |
+
'hPadding' => 20,
|
903 |
+
'backgroundType' => 'color',
|
904 |
+
'backgroundColor' => '#eeeeee',
|
905 |
+
'backgroundHoverColor' => '',
|
906 |
+
'gradientColor1' => '',
|
907 |
+
'gradientColor2' => '',
|
908 |
+
'gradientType' => 'linear',
|
909 |
+
'gradientLocation1' => 0,
|
910 |
+
'gradientLocation2' => 100,
|
911 |
+
'gradientAngle' => 0,
|
912 |
+
'backgroundOpacity' => '',
|
913 |
+
'backgroundHoverOpacity' => '',
|
914 |
+
'titleColor' => '#333',
|
915 |
+
'titleHoverColor' => '',
|
916 |
+
'iconColor' => '#333',
|
917 |
+
'iconHoverColor' => '',
|
918 |
+
'iconPosition' => 'before',
|
919 |
+
'prefixColor' => '#333',
|
920 |
+
'prefixHoverColor' => '',
|
921 |
+
'iconSpace' => 10,
|
922 |
+
'titleLoadGoogleFonts' => false,
|
923 |
+
'titleFontFamily' => 'Default',
|
924 |
+
'titleFontWeight' => '',
|
925 |
+
'titleFontSubset' => '',
|
926 |
+
'titleFontSize' => 20,
|
927 |
+
'titleFontSizeType' => 'px',
|
928 |
+
'titleFontSizeTablet' => 20,
|
929 |
+
'titleFontSizeMobile' => 20,
|
930 |
+
'titleLineHeightType' => 'em',
|
931 |
+
'titleLineHeight' => '',
|
932 |
+
'titleLineHeightTablet' => '',
|
933 |
+
'titleLineHeightMobile' => '',
|
934 |
+
'prefixLoadGoogleFonts' => false,
|
935 |
+
'prefixFontFamily' => 'Default',
|
936 |
+
'prefixFontWeight' => '',
|
937 |
+
'prefixFontSubset' => '',
|
938 |
+
'prefixFontSize' => 14,
|
939 |
+
'prefixFontSizeType' => 'px',
|
940 |
+
'prefixFontSizeTablet' => 14,
|
941 |
+
'prefixFontSizeMobile' => 14,
|
942 |
+
'prefixLineHeightType' => 'em',
|
943 |
+
'prefixLineHeight' => '',
|
944 |
+
'prefixLineHeightTablet' => '',
|
945 |
+
'prefixLineHeightMobile' => '',
|
946 |
+
'iconFontSize' => 20,
|
947 |
+
'iconFontSizeType' => 'px',
|
948 |
+
'iconFontSizeTablet' => 20,
|
949 |
+
'iconFontSizeMobile' => 20,
|
950 |
+
),
|
951 |
+
),
|
952 |
+
'uagb/buttons' => array(
|
953 |
+
'slug' => '',
|
954 |
+
'title' => __( 'Multi Buttons', 'ultimate-addons-for-gutenberg' ),
|
955 |
+
'description' => __( 'This block allows you to add multiple buttons with a single block.', 'ultimate-addons-for-gutenberg' ),
|
956 |
+
'default' => true,
|
957 |
+
'attributes' => array(
|
958 |
+
'block_id' => '',
|
959 |
+
'align' => 'center',
|
960 |
+
'btn_count' => '2',
|
961 |
+
'buttons' => UAGB_Helper::get_button_defaults(),
|
962 |
+
'gap' => 10,
|
963 |
+
'stack' => 'none',
|
964 |
+
'fontFamily' => '',
|
965 |
+
'fontWeight' => '',
|
966 |
+
'loadGoogleFonts' => false,
|
967 |
+
'fontSubset' => '',
|
968 |
+
),
|
969 |
+
),
|
970 |
+
'uagb/post-carousel' => array(
|
971 |
+
'slug' => '',
|
972 |
+
'title' => __( 'Post Carousel', 'ultimate-addons-for-gutenberg' ),
|
973 |
+
'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a carousel layout.', 'ultimate-addons-for-gutenberg' ),
|
974 |
+
'default' => true,
|
975 |
+
'attributes' => array(
|
976 |
+
'align' => 'left',
|
977 |
+
'rowGap' => '20',
|
978 |
+
'columnGap' => '20',
|
979 |
+
'bgColor' => '#e4e4e4',
|
980 |
+
'titleColor' => '#3b3b3b',
|
981 |
+
'titleTag' => 'h3',
|
982 |
+
'titleFontSize' => '',
|
983 |
+
'titleFontSizeType' => 'px',
|
984 |
+
'titleFontSizeMobile' => '',
|
985 |
+
'titleFontSizeTablet' => '',
|
986 |
+
'titleFontFamily' => '',
|
987 |
+
'titleFontWeight' => '',
|
988 |
+
'titleFontSubset' => '',
|
989 |
+
'titleLineHeightType' => 'em',
|
990 |
+
'titleLineHeight' => '',
|
991 |
+
'titleLineHeightTablet' => '',
|
992 |
+
'titleLineHeightMobile' => '',
|
993 |
+
'titleLoadGoogleFonts' => false,
|
994 |
+
'metaFontSize' => '',
|
995 |
+
'metaFontSizeType' => 'px',
|
996 |
+
'metaFontSizeMobile' => '',
|
997 |
+
'metaFontSizeTablet' => '',
|
998 |
+
'metaFontFamily' => '',
|
999 |
+
'metaFontWeight' => '',
|
1000 |
+
'metaFontSubset' => '',
|
1001 |
+
'metaLineHeightType' => 'em',
|
1002 |
+
'metaLineHeight' => '',
|
1003 |
+
'metaLineHeightTablet' => '',
|
1004 |
+
'metaLineHeightMobile' => '',
|
1005 |
+
'metaLoadGoogleFonts' => false,
|
1006 |
+
'excerptFontSize' => '',
|
1007 |
+
'excerptFontSizeType' => 'px',
|
1008 |
+
'excerptFontSizeMobile' => '',
|
1009 |
+
'excerptFontSizeTablet' => '',
|
1010 |
+
'excerptFontFamily' => '',
|
1011 |
+
'excerptFontWeight' => '',
|
1012 |
+
'excerptFontSubset' => '',
|
1013 |
+
'excerptLineHeightType' => 'em',
|
1014 |
+
'excerptLineHeight' => '',
|
1015 |
+
'excerptLineHeightTablet' => '',
|
1016 |
+
'excerptLineHeightMobile' => '',
|
1017 |
+
'excerptLoadGoogleFonts' => false,
|
1018 |
+
'ctaFontSize' => '',
|
1019 |
+
'ctaFontSizeType' => 'px',
|
1020 |
+
'ctaFontSizeTablet' => '',
|
1021 |
+
'ctaFontSizeMobile' => '',
|
1022 |
+
'ctaFontFamily' => '',
|
1023 |
+
'ctaFontWeight' => '',
|
1024 |
+
'ctaFontSubset' => '',
|
1025 |
+
'ctaLineHeightType' => 'em',
|
1026 |
+
'ctaLineHeight' => '',
|
1027 |
+
'ctaLineHeightTablet' => '',
|
1028 |
+
'ctaLineHeightMobile' => '',
|
1029 |
+
'ctaLoadGoogleFonts' => false,
|
1030 |
+
'metaColor' => '#777777',
|
1031 |
+
'excerptColor' => '',
|
1032 |
+
'ctaColor' => '#ffffff',
|
1033 |
+
'ctaBgColor' => '#333333',
|
1034 |
+
'ctaHColor' => '',
|
1035 |
+
'ctaBgHColor' => '',
|
1036 |
+
'contentPadding' => '20',
|
1037 |
+
'contentPaddingMobile' => '',
|
1038 |
+
'btnVPadding' => '5',
|
1039 |
+
'btnHPadding' => '10',
|
1040 |
+
'titleBottomSpace' => '15',
|
1041 |
+
'metaBottomSpace' => '15',
|
1042 |
+
'excerptBottomSpace' => '25',
|
1043 |
+
'arrowSize' => '20',
|
1044 |
+
'arrowColor' => '#aaaaaa',
|
1045 |
+
'arrowDots' => '',
|
1046 |
+
'arrowBorderSize' => '1',
|
1047 |
+
'arrowBorderRadius' => '0',
|
1048 |
+
'overlayOpacity' => '50',
|
1049 |
+
'bgOverlayColor' => '#ffffff',
|
1050 |
+
'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
1051 |
+
'borderWidth' => '1',
|
1052 |
+
'borderStyle' => 'none',
|
1053 |
+
'borderColor' => '',
|
1054 |
+
'borderHColor' => '',
|
1055 |
+
'borderRadius' => '0',
|
1056 |
+
),
|
1057 |
+
),
|
1058 |
+
'uagb/post-grid' => array(
|
1059 |
+
'slug' => '',
|
1060 |
+
'title' => __( 'Post Grid', 'ultimate-addons-for-gutenberg' ),
|
1061 |
+
'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a grid layout.', 'ultimate-addons-for-gutenberg' ),
|
1062 |
+
'default' => true,
|
1063 |
+
'attributes' => array(
|
1064 |
+
'align' => 'left',
|
1065 |
+
'rowGap' => '20',
|
1066 |
+
'columnGap' => '20',
|
1067 |
+
'bgColor' => '#e4e4e4',
|
1068 |
+
'titleColor' => '#3b3b3b',
|
1069 |
+
'titleTag' => 'h3',
|
1070 |
+
'titleFontSize' => '',
|
1071 |
+
'titleFontSizeType' => 'px',
|
1072 |
+
'titleFontSizeMobile' => '',
|
1073 |
+
'titleFontSizeTablet' => '',
|
1074 |
+
'titleFontFamily' => '',
|
1075 |
+
'titleFontWeight' => '',
|
1076 |
+
'titleFontSubset' => '',
|
1077 |
+
'titleLineHeightType' => 'em',
|
1078 |
+
'titleLineHeight' => '',
|
1079 |
+
'titleLineHeightTablet' => '',
|
1080 |
+
'titleLineHeightMobile' => '',
|
1081 |
+
'titleLoadGoogleFonts' => false,
|
1082 |
+
'metaFontSize' => '',
|
1083 |
+
'metaFontSizeType' => 'px',
|
1084 |
+
'metaFontSizeMobile' => '',
|
1085 |
+
'metaFontSizeTablet' => '',
|
1086 |
+
'metaFontFamily' => '',
|
1087 |
+
'metaFontWeight' => '',
|
1088 |
+
'metaFontSubset' => '',
|
1089 |
+
'metaLineHeightType' => 'em',
|
1090 |
+
'metaLineHeight' => '',
|
1091 |
+
'metaLineHeightTablet' => '',
|
1092 |
+
'metaLineHeightMobile' => '',
|
1093 |
+
'metaLoadGoogleFonts' => false,
|
1094 |
+
'excerptFontSize' => '',
|
1095 |
+
'excerptFontSizeType' => 'px',
|
1096 |
+
'excerptFontSizeMobile' => '',
|
1097 |
+
'excerptFontSizeTablet' => '',
|
1098 |
+
'excerptFontFamily' => '',
|
1099 |
+
'excerptFontWeight' => '',
|
1100 |
+
'excerptFontSubset' => '',
|
1101 |
+
'excerptLineHeightType' => 'em',
|
1102 |
+
'excerptLineHeight' => '',
|
1103 |
+
'excerptLineHeightTablet' => '',
|
1104 |
+
'excerptLineHeightMobile' => '',
|
1105 |
+
'excerptLoadGoogleFonts' => false,
|
1106 |
+
'ctaFontSize' => '',
|
1107 |
+
'ctaFontSizeType' => 'px',
|
1108 |
+
'ctaFontSizeTablet' => '',
|
1109 |
+
'ctaFontSizeMobile' => '',
|
1110 |
+
'ctaFontFamily' => '',
|
1111 |
+
'ctaFontWeight' => '',
|
1112 |
+
'ctaFontSubset' => '',
|
1113 |
+
'ctaLineHeightType' => 'em',
|
1114 |
+
'ctaLineHeight' => '',
|
1115 |
+
'ctaLineHeightTablet' => '',
|
1116 |
+
'ctaLineHeightMobile' => '',
|
1117 |
+
'ctaLoadGoogleFonts' => false,
|
1118 |
+
'metaColor' => '#777777',
|
1119 |
+
'excerptColor' => '',
|
1120 |
+
'ctaColor' => '#ffffff',
|
1121 |
+
'ctaBgColor' => '#333333',
|
1122 |
+
'ctaHColor' => '',
|
1123 |
+
'ctaBgHColor' => '',
|
1124 |
+
'contentPadding' => '20',
|
1125 |
+
'contentPaddingMobile' => '',
|
1126 |
+
'btnVPadding' => '5',
|
1127 |
+
'btnHPadding' => '10',
|
1128 |
+
'titleBottomSpace' => '15',
|
1129 |
+
'metaBottomSpace' => '15',
|
1130 |
+
'excerptBottomSpace' => '25',
|
1131 |
+
'overlayOpacity' => '50',
|
1132 |
+
'bgOverlayColor' => '#ffffff',
|
1133 |
+
'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
1134 |
+
'borderWidth' => '1',
|
1135 |
+
'borderStyle' => 'none',
|
1136 |
+
'borderColor' => '',
|
1137 |
+
'borderHColor' => '',
|
1138 |
+
'borderRadius' => '0',
|
1139 |
+
),
|
1140 |
+
),
|
1141 |
+
'uagb/post-masonry' => array(
|
1142 |
+
'slug' => '',
|
1143 |
+
'title' => __( 'Post Masonry', 'ultimate-addons-for-gutenberg' ),
|
1144 |
+
'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a masonry layout.', 'ultimate-addons-for-gutenberg' ),
|
1145 |
+
'default' => true,
|
1146 |
+
'attributes' => array(
|
1147 |
+
'align' => 'left',
|
1148 |
+
'rowGap' => '20',
|
1149 |
+
'columnGap' => '20',
|
1150 |
+
'bgColor' => '#e4e4e4',
|
1151 |
+
'titleColor' => '#3b3b3b',
|
1152 |
+
'titleTag' => 'h3',
|
1153 |
+
'titleFontSize' => '',
|
1154 |
+
'titleFontSizeType' => 'px',
|
1155 |
+
'titleFontSizeMobile' => '',
|
1156 |
+
'titleFontSizeTablet' => '',
|
1157 |
+
'titleFontFamily' => '',
|
1158 |
+
'titleFontWeight' => '',
|
1159 |
+
'titleFontSubset' => '',
|
1160 |
+
'titleLineHeightType' => 'em',
|
1161 |
+
'titleLineHeight' => '',
|
1162 |
+
'titleLineHeightTablet' => '',
|
1163 |
+
'titleLineHeightMobile' => '',
|
1164 |
+
'titleLoadGoogleFonts' => false,
|
1165 |
+
'metaFontSize' => '',
|
1166 |
+
'metaFontSizeType' => 'px',
|
1167 |
+
'metaFontSizeMobile' => '',
|
1168 |
+
'metaFontSizeTablet' => '',
|
1169 |
+
'metaFontFamily' => '',
|
1170 |
+
'metaFontWeight' => '',
|
1171 |
+
'metaFontSubset' => '',
|
1172 |
+
'metaLineHeightType' => 'em',
|
1173 |
+
'metaLineHeight' => '',
|
1174 |
+
'metaLineHeightTablet' => '',
|
1175 |
+
'metaLineHeightMobile' => '',
|
1176 |
+
'metaLoadGoogleFonts' => false,
|
1177 |
+
'excerptFontSize' => '',
|
1178 |
+
'excerptFontSizeType' => 'px',
|
1179 |
+
'excerptFontSizeMobile' => '',
|
1180 |
+
'excerptFontSizeTablet' => '',
|
1181 |
+
'excerptFontFamily' => '',
|
1182 |
+
'excerptFontWeight' => '',
|
1183 |
+
'excerptFontSubset' => '',
|
1184 |
+
'excerptLineHeightType' => 'em',
|
1185 |
+
'excerptLineHeight' => '',
|
1186 |
+
'excerptLineHeightTablet' => '',
|
1187 |
+
'excerptLineHeightMobile' => '',
|
1188 |
+
'excerptLoadGoogleFonts' => false,
|
1189 |
+
'ctaFontSize' => '',
|
1190 |
+
'ctaFontSizeType' => 'px',
|
1191 |
+
'ctaFontSizeTablet' => '',
|
1192 |
+
'ctaFontSizeMobile' => '',
|
1193 |
+
'ctaFontFamily' => '',
|
1194 |
+
'ctaFontWeight' => '',
|
1195 |
+
'ctaFontSubset' => '',
|
1196 |
+
'ctaLineHeightType' => 'em',
|
1197 |
+
'ctaLineHeight' => '',
|
1198 |
+
'ctaLineHeightTablet' => '',
|
1199 |
+
'ctaLineHeightMobile' => '',
|
1200 |
+
'ctaLoadGoogleFonts' => false,
|
1201 |
+
'metaColor' => '#777777',
|
1202 |
+
'excerptColor' => '',
|
1203 |
+
'ctaColor' => '#ffffff',
|
1204 |
+
'ctaBgColor' => '#333333',
|
1205 |
+
'ctaHColor' => '',
|
1206 |
+
'ctaBgHColor' => '',
|
1207 |
+
'contentPadding' => '20',
|
1208 |
+
'contentPaddingMobile' => '',
|
1209 |
+
'btnVPadding' => '5',
|
1210 |
+
'btnHPadding' => '10',
|
1211 |
+
'titleBottomSpace' => '15',
|
1212 |
+
'metaBottomSpace' => '15',
|
1213 |
+
'excerptBottomSpace' => '25',
|
1214 |
+
'overlayOpacity' => '50',
|
1215 |
+
'bgOverlayColor' => '#ffffff',
|
1216 |
+
'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
1217 |
+
'borderWidth' => '1',
|
1218 |
+
'borderStyle' => 'none',
|
1219 |
+
'borderColor' => '',
|
1220 |
+
'borderHColor' => '',
|
1221 |
+
'borderRadius' => '0',
|
1222 |
+
),
|
1223 |
+
),
|
1224 |
+
'uagb/post-timeline' => array(
|
1225 |
+
'slug' => '',
|
1226 |
+
'title' => __( 'Post Timeline', 'ultimate-addons-for-gutenberg' ),
|
1227 |
+
'description' => __( 'The Timeline block lets you create beautiful timelines of Posts on your website.', 'ultimate-addons-for-gutenberg' ),
|
1228 |
+
'default' => true,
|
1229 |
+
'attributes' => array(
|
1230 |
+
'align' => 'center',
|
1231 |
+
'headingColor' => '',
|
1232 |
+
'subHeadingColor' => '',
|
1233 |
+
'separatorBg' => '#eee',
|
1234 |
+
'backgroundColor' => '#eee',
|
1235 |
+
'separatorColor' => '#eee',
|
1236 |
+
'separatorFillColor' => '#61ce70',
|
1237 |
+
'separatorBorder' => '#eee',
|
1238 |
+
'borderFocus' => '#5cb85c',
|
1239 |
+
'horizontalSpace' => 10,
|
1240 |
+
'verticalSpace' => 15,
|
1241 |
+
'headFontSizeType' => 'px',
|
1242 |
+
'headFontSize' => '',
|
1243 |
+
'headFontSizeTablet' => '',
|
1244 |
+
'headFontSizeMobile' => '',
|
1245 |
+
'headFontFamily' => '',
|
1246 |
+
'headFontWeight' => '',
|
1247 |
+
'headFontSubset' => '',
|
1248 |
+
'headLineHeightType' => 'em',
|
1249 |
+
'headLineHeight' => '',
|
1250 |
+
'headLineHeightTablet' => '',
|
1251 |
+
'headLineHeightMobile' => '',
|
1252 |
+
'headLoadGoogleFonts' => false,
|
1253 |
+
'timelinAlignment' => 'center',
|
1254 |
+
'arrowlinAlignment' => 'center',
|
1255 |
+
'subHeadFontSizeType' => 'px',
|
1256 |
+
'subHeadFontSize' => '',
|
1257 |
+
'subHeadFontSizeTablet' => '',
|
1258 |
+
'subHeadFontSizeMobile' => '',
|
1259 |
+
'subHeadFontFamily' => '',
|
1260 |
+
'subHeadFontWeight' => '',
|
1261 |
+
'subHeadFontSubset' => '',
|
1262 |
+
'subHeadLineHeightType' => 'em',
|
1263 |
+
'subHeadLineHeight' => '',
|
1264 |
+
'subHeadLineHeightTablet' => '',
|
1265 |
+
'subHeadLineHeightMobile' => '',
|
1266 |
+
'subHeadLoadGoogleFonts' => false,
|
1267 |
+
'headSpace' => 5,
|
1268 |
+
'contentSpace' => 5,
|
1269 |
+
'authorSpace' => 5,
|
1270 |
+
'separatorwidth' => 3,
|
1271 |
+
'borderwidth' => 0,
|
1272 |
+
'iconColor' => '#333',
|
1273 |
+
'iconFocus' => '#fff',
|
1274 |
+
'iconBgFocus' => '#61ce70',
|
1275 |
+
'dateColor' => '#333',
|
1276 |
+
'dateFontsizeType' => 'px',
|
1277 |
+
'dateFontsize' => 12,
|
1278 |
+
'dateFontsizeTablet' => '',
|
1279 |
+
'dateFontsizeMobile' => '',
|
1280 |
+
'dateFontFamily' => '',
|
1281 |
+
'dateFontWeight' => '',
|
1282 |
+
'dateFontSubset' => '',
|
1283 |
+
'dateLineHeightType' => 'em',
|
1284 |
+
'dateLineHeight' => '',
|
1285 |
+
'dateLineHeightTablet' => '',
|
1286 |
+
'dateLineHeightMobile' => '',
|
1287 |
+
'dateLoadGoogleFonts' => false,
|
1288 |
+
'connectorBgsize' => 35,
|
1289 |
+
'dateBottomspace' => 5,
|
1290 |
+
'borderRadius' => 2,
|
1291 |
+
'bgPadding' => 20,
|
1292 |
+
'contentPadding' => 10,
|
1293 |
+
'iconSize' => 12,
|
1294 |
+
'stack' => 'tablet',
|
1295 |
+
'ctaColor' => '#fff',
|
1296 |
+
'authorColor' => '#333',
|
1297 |
+
'ctaFontSizeType' => 'px',
|
1298 |
+
'ctaFontSize' => '',
|
1299 |
+
'ctaFontSizeTablet' => '',
|
1300 |
+
'ctaFontSizeMobile' => '',
|
1301 |
+
'ctaFontFamily' => '',
|
1302 |
+
'ctaFontWeight' => '',
|
1303 |
+
'ctaFontSubset' => '',
|
1304 |
+
'ctaLineHeightType' => 'em',
|
1305 |
+
'ctaLineHeight' => '',
|
1306 |
+
'ctaLineHeightTablet' => '',
|
1307 |
+
'ctaLineHeightMobile' => '',
|
1308 |
+
'ctaLoadGoogleFonts' => false,
|
1309 |
+
'authorFontSizeType' => 'px',
|
1310 |
+
'authorFontSize' => 11,
|
1311 |
+
'authorFontSizeTablet' => '',
|
1312 |
+
'authorFontSizeMobile' => '',
|
1313 |
+
'authorFontFamily' => '',
|
1314 |
+
'authorFontWeight' => '',
|
1315 |
+
'authorFontSubset' => '',
|
1316 |
+
'authorLineHeightType' => 'em',
|
1317 |
+
'authorLineHeight' => '',
|
1318 |
+
'authorLineHeightTablet' => '',
|
1319 |
+
'authorLineHeightMobile' => '',
|
1320 |
+
'authorLoadGoogleFonts' => false,
|
1321 |
+
'ctaBackground' => '#333',
|
1322 |
+
),
|
1323 |
+
),
|
1324 |
+
'uagb/restaurant-menu' => array(
|
1325 |
+
'slug' => '',
|
1326 |
+
'title' => __( 'Price List', 'ultimate-addons-for-gutenberg' ),
|
1327 |
+
'description' => __( 'This block allows you to add attractive Price List.', 'ultimate-addons-for-gutenberg' ),
|
1328 |
+
'default' => true,
|
1329 |
+
'attributes' => array(
|
1330 |
+
'block_id' => '',
|
1331 |
+
'headingAlign' => 'left',
|
1332 |
+
'descColor' => '#333',
|
1333 |
+
'priceColor' => '#888888',
|
1334 |
+
'titleColor' => '#333',
|
1335 |
+
'imagePosition' => 'top',
|
1336 |
+
'imageAlignment' => 'top',
|
1337 |
+
'titleFontSize' => '',
|
1338 |
+
'titleFontSizeType' => 'px',
|
1339 |
+
'titleFontSizeMobile' => '',
|
1340 |
+
'titleFontSizeTablet' => '',
|
1341 |
+
'titleFontFamily' => '',
|
1342 |
+
'titleFontWeight' => '',
|
1343 |
+
'titleFontSubset' => '',
|
1344 |
+
'titleLineHeightType' => 'em',
|
1345 |
+
'titleLineHeight' => '',
|
1346 |
+
'titleLineHeightTablet' => '',
|
1347 |
+
'titleLineHeightMobile' => '',
|
1348 |
+
'titleLoadGoogleFonts' => false,
|
1349 |
+
'priceFontSize' => '',
|
1350 |
+
'priceFontSizeType' => 'px',
|
1351 |
+
'priceFontSizeMobile' => '',
|
1352 |
+
'priceFontSizeTablet' => '',
|
1353 |
+
'priceFontFamily' => '',
|
1354 |
+
'priceFontWeight' => '',
|
1355 |
+
'priceFontSubset' => '',
|
1356 |
+
'priceLineHeightType' => 'em',
|
1357 |
+
'priceLineHeight' => '',
|
1358 |
+
'priceLineHeightTablet' => '',
|
1359 |
+
'priceLineHeightMobile' => '',
|
1360 |
+
'priceLoadGoogleFonts' => false,
|
1361 |
+
'descFontSize' => '',
|
1362 |
+
'descFontSizeType' => 'px',
|
1363 |
+
'descFontSizeMobile' => '',
|
1364 |
+
'descFontSizeTablet' => '',
|
1365 |
+
'descFontFamily' => '',
|
1366 |
+
'descFontWeight' => '',
|
1367 |
+
'descFontSubset' => '',
|
1368 |
+
'descLineHeightType' => 'em',
|
1369 |
+
'descLineHeight' => '',
|
1370 |
+
'descLineHeightTablet' => '',
|
1371 |
+
'descLineHeightMobile' => '',
|
1372 |
+
'descLoadGoogleFonts' => false,
|
1373 |
+
'priceSpace' => 5,
|
1374 |
+
'descSpace' => 15,
|
1375 |
+
'titleSpace' => 10,
|
1376 |
+
'imgVrPadding' => 0,
|
1377 |
+
'imgHrPadding' => 0,
|
1378 |
+
'imgTopPadding' => 0,
|
1379 |
+
'imgBottomPadding' => 0,
|
1380 |
+
'iconImage' => '',
|
1381 |
+
'imageSize' => 'medium',
|
1382 |
+
'imageWidth' => '',
|
1383 |
+
'columns' => 2,
|
1384 |
+
'tcolumns' => 2,
|
1385 |
+
'mcolumns' => 1,
|
1386 |
+
'rowGap' => 10,
|
1387 |
+
'columnGap' => 10,
|
1388 |
+
'contentHrPadding' => 5,
|
1389 |
+
'contentVrPadding' => 5,
|
1390 |
+
'seperatorStyle' => 'dashed',
|
1391 |
+
'seperatorWidth' => '100',
|
1392 |
+
'seperatorThickness' => '1',
|
1393 |
+
'seperatorColor' => '#b2b4b5',
|
1394 |
+
),
|
1395 |
+
),
|
1396 |
+
'uagb/section' => array(
|
1397 |
+
'slug' => '',
|
1398 |
+
'title' => __( 'Section', 'ultimate-addons-for-gutenberg' ),
|
1399 |
+
'description' => __( 'This block is an outer wrap section that allows you to add other blocks within it.', 'ultimate-addons-for-gutenberg' ),
|
1400 |
+
'default' => true,
|
1401 |
+
'attributes' => array(
|
1402 |
+
'topPadding' => '20',
|
1403 |
+
'bottomPadding' => '20',
|
1404 |
+
'leftPadding' => '20',
|
1405 |
+
'rightPadding' => '20',
|
1406 |
+
'topMargin' => '0',
|
1407 |
+
'bottomMargin' => '0',
|
1408 |
+
'leftMargin' => '0',
|
1409 |
+
'rightMargin' => '0',
|
1410 |
+
'topPaddingTablet' => '',
|
1411 |
+
'bottomPaddingTablet' => '',
|
1412 |
+
'leftPaddingTablet' => '',
|
1413 |
+
'rightPaddingTablet' => '',
|
1414 |
+
'topPaddingMobile' => '',
|
1415 |
+
'bottomPaddingMobile' => '',
|
1416 |
+
'leftPaddingMobile' => '',
|
1417 |
+
'rightPaddingMobile' => '',
|
1418 |
+
'topMarginMobile' => '',
|
1419 |
+
'bottomMarginMobile' => '',
|
1420 |
+
'leftMarginMobile' => '',
|
1421 |
+
'rightMarginMobile' => '',
|
1422 |
+
'topMarginTablet' => '',
|
1423 |
+
'bottomMarginTablet' => '',
|
1424 |
+
'leftMarginTablet' => '',
|
1425 |
+
'rightMarginTablet' => '',
|
1426 |
+
'contentWidth' => 'boxed',
|
1427 |
+
'width' => '900',
|
1428 |
+
'innerWidth' => '1140',
|
1429 |
+
'tag' => 'section',
|
1430 |
+
'backgroundType' => 'none',
|
1431 |
+
'gradientColor1' => '',
|
1432 |
+
'gradientColor2' => '',
|
1433 |
+
'backgroundVideoColor' => '',
|
1434 |
+
'backgroundPosition' => 'center-center',
|
1435 |
+
'backgroundSize' => 'cover',
|
1436 |
+
'backgroundRepeat' => 'no-repeat',
|
1437 |
+
'backgroundAttachment' => 'scroll',
|
1438 |
+
'gradientType' => 'linear',
|
1439 |
+
'gradientLocation1' => '0',
|
1440 |
+
'gradientLocation2' => '100',
|
1441 |
+
'gradientAngle' => '0',
|
1442 |
+
'backgroundColor' => '',
|
1443 |
+
'backgroundOpacity' => '',
|
1444 |
+
'backgroundVideoOpacity' => '50',
|
1445 |
+
'backgroundImageColor' => '',
|
1446 |
+
'align' => 'center',
|
1447 |
+
'borderStyle' => 'none',
|
1448 |
+
'borderWidth' => '1',
|
1449 |
+
'borderRadius' => '',
|
1450 |
+
'borderColor' => '',
|
1451 |
+
'themeWidth' => false,
|
1452 |
+
),
|
1453 |
+
),
|
1454 |
+
'uagb/social-share' => array(
|
1455 |
+
'slug' => '',
|
1456 |
+
'title' => __( 'Social Share', 'ultimate-addons-for-gutenberg' ),
|
1457 |
+
'description' => __( 'This block allows you to let users share your content across various social networking sites.', 'ultimate-addons-for-gutenberg' ),
|
1458 |
+
'default' => true,
|
1459 |
+
'attributes' => array(
|
1460 |
+
'align' => 'center',
|
1461 |
+
'social_count' => '1',
|
1462 |
+
'socials' => array(
|
1463 |
+
array(
|
1464 |
+
'type' => 'facebook',
|
1465 |
+
'image_icon' => 'icon',
|
1466 |
+
'icon' => 'fab fa-facebook',
|
1467 |
+
'image' => '',
|
1468 |
+
'icon_color' => '#3a3a3a',
|
1469 |
+
'icon_hover_color' => '#3a3a3a',
|
1470 |
+
'icon_bg_color' => '',
|
1471 |
+
'icon_bg_hover_color' => '',
|
1472 |
+
),
|
1473 |
+
),
|
1474 |
+
'gap' => '10',
|
1475 |
+
'size' => '40',
|
1476 |
+
'sizeType' => 'px',
|
1477 |
+
'sizeMobile' => '',
|
1478 |
+
'sizeTablet' => '',
|
1479 |
+
'bgSize' => '0',
|
1480 |
+
'bgSizeType' => 'px',
|
1481 |
+
'bgSizeMobile' => '',
|
1482 |
+
'bgSizeTablet' => '',
|
1483 |
+
'borderRadius' => '0',
|
1484 |
+
'social_layout' => 'horizontal',
|
1485 |
+
'stack' => 'none',
|
1486 |
+
),
|
1487 |
+
),
|
1488 |
+
// 'uagb/table-of-contents' => array(
|
1489 |
+
// 'slug' => '',
|
1490 |
+
// 'title' => __( 'Table of Contents', 'ultimate-addons-for-gutenberg' ),
|
1491 |
+
// 'description' => __( 'This block allows you to place a Table of Content for Pages/Posts.', 'ultimate-addons-for-gutenberg' ),
|
1492 |
+
// 'default' => true,
|
1493 |
+
// 'attributes' => array(
|
1494 |
+
// 'block_id' => '',
|
1495 |
+
// 'heading' => 'Table Of Content',
|
1496 |
+
// 'smoothScroll' => true,
|
1497 |
+
// 'smoothScrollOffset' => 30,
|
1498 |
+
// 'scrollToTop' => false,
|
1499 |
+
// 'scrollToTopColor' => '',
|
1500 |
+
// 'scrollToTopBgColor' => '',
|
1501 |
+
// 'considerH1' => true,
|
1502 |
+
// 'considerH2' => true,
|
1503 |
+
// 'considerH3' => true,
|
1504 |
+
// 'considerH4' => true,
|
1505 |
+
// 'considerH5' => true,
|
1506 |
+
// 'considerH6' => true,
|
1507 |
+
// 'customWidth' => false,
|
1508 |
+
// 'width' => 100,
|
1509 |
+
// 'widthType' => '%',
|
1510 |
+
// 'align' => 'left',
|
1511 |
+
// 'linkColor' => '#333',
|
1512 |
+
// 'vPadding' => 30,
|
1513 |
+
// 'hPadding' => 30,
|
1514 |
+
// 'headingBottom' => '',
|
1515 |
+
// 'backgroundColor' => '#eee',
|
1516 |
+
// 'linkHoverColor' => '',
|
1517 |
+
// 'headingColor' => '',
|
1518 |
+
// 'borderStyle' => 'solid',
|
1519 |
+
// 'borderWidth' => 1,
|
1520 |
+
// 'borderRadius' => '',
|
1521 |
+
// 'borderColor' => '#333',
|
1522 |
+
// 'loadGoogleFonts' => false,
|
1523 |
+
// 'fontFamily' => 'Default',
|
1524 |
+
// 'fontWeight' => '',
|
1525 |
+
// 'fontSubset' => '',
|
1526 |
+
// 'fontSize' => '',
|
1527 |
+
// 'fontSizeType' => 'px',
|
1528 |
+
// 'fontSizeTablet' => '',
|
1529 |
+
// 'fontSizeMobile' => '',
|
1530 |
+
// 'lineHeightType' => 'em',
|
1531 |
+
// 'lineHeight' => '',
|
1532 |
+
// 'lineHeightTablet' => '',
|
1533 |
+
// 'lineHeightMobile' => '',
|
1534 |
+
// 'headingLoadGoogleFonts' => false,
|
1535 |
+
// 'headingFontFamily' => 'Default',
|
1536 |
+
// 'headingFontWeight' => '500',
|
1537 |
+
// 'headingFontSubset' => '',
|
1538 |
+
// 'headingFontSize' => 20,
|
1539 |
+
// 'headingFontSizeType' => 'px',
|
1540 |
+
// 'headingFontSizeTablet' => '',
|
1541 |
+
// 'headingFontSizeMobile' => '',
|
1542 |
+
// 'headingLineHeightType' => 'em',
|
1543 |
+
// 'headingLineHeight' => '',
|
1544 |
+
// 'headingLineHeightTablet' => '',
|
1545 |
+
// 'headingLineHeightMobile' => '',
|
1546 |
+
// ),
|
1547 |
+
// ),
|
1548 |
+
'uagb/team' => array(
|
1549 |
+
'slug' => '',
|
1550 |
+
'title' => __( 'Team', 'ultimate-addons-for-gutenberg' ),
|
1551 |
+
'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' ),
|
1552 |
+
'default' => true,
|
1553 |
+
'attributes' => array(
|
1554 |
+
'block_id' => '',
|
1555 |
+
'align' => 'center',
|
1556 |
+
'tag' => 'h3',
|
1557 |
+
'titleColor' => '',
|
1558 |
+
'prefixColor' => '#888888',
|
1559 |
+
'descColor' => '',
|
1560 |
+
'socialColor' => '#333',
|
1561 |
+
'socialHoverColor' => '',
|
1562 |
+
'titleFontFamily' => '',
|
1563 |
+
'titleLoadGoogleFonts' => false,
|
1564 |
+
'titleFontWeight' => '',
|
1565 |
+
'titleFontSubset' => '',
|
1566 |
+
'titleFontSize' => '',
|
1567 |
+
'titleFontSizeType' => 'px',
|
1568 |
+
'titleFontSizeTablet' => '',
|
1569 |
+
'titleFontSizeMobile' => '',
|
1570 |
+
'titleLineHeight' => '',
|
1571 |
+
'titleLineHeightType' => 'em',
|
1572 |
+
'titleLineHeightTablet' => '',
|
1573 |
+
'titleLineHeightMobile' => '',
|
1574 |
+
'prefixFontFamily' => '',
|
1575 |
+
'prefixLoadGoogleFonts' => false,
|
1576 |
+
'prefixFontWeight' => '',
|
1577 |
+
'prefixFontSubset' => '',
|
1578 |
+
'prefixFontSize' => 15,
|
1579 |
+
'prefixFontSizeType' => 'px',
|
1580 |
+
'prefixFontSizeTablet' => '',
|
1581 |
+
'prefixFontSizeMobile' => '',
|
1582 |
+
'prefixLineHeight' => '',
|
1583 |
+
'prefixLineHeightType' => 'em',
|
1584 |
+
'prefixLineHeightTablet' => '',
|
1585 |
+
'prefixLineHeightMobile' => '',
|
1586 |
+
'descFontFamily' => '',
|
1587 |
+
'descLoadGoogleFonts' => false,
|
1588 |
+
'descFontWeight' => '',
|
1589 |
+
'descFontSubset' => '',
|
1590 |
+
'descFontSize' => 15,
|
1591 |
+
'descFontSizeType' => 'px',
|
1592 |
+
'descFontSizeTablet' => '',
|
1593 |
+
'descFontSizeMobile' => '',
|
1594 |
+
'descLineHeight' => '',
|
1595 |
+
'descLineHeightType' => 'em',
|
1596 |
+
'descLineHeightTablet' => '',
|
1597 |
+
'descLineHeightMobile' => '',
|
1598 |
+
'socialFontSize' => 20,
|
1599 |
+
'socialFontSizeType' => 'px',
|
1600 |
+
'socialFontSizeMobile' => '',
|
1601 |
+
'socialFontSizeTablet' => '',
|
1602 |
+
'image' => '',
|
1603 |
+
'imgStyle' => 'normal',
|
1604 |
+
'imgPosition' => 'above',
|
1605 |
+
'imgAlign' => 'top',
|
1606 |
+
'imgSiz' => 'thumbnail',
|
1607 |
+
'imgWidth' => 120,
|
1608 |
+
'titleSpace' => '',
|
1609 |
+
'prefixSpace' => '',
|
1610 |
+
'descSpace' => 10,
|
1611 |
+
'imgLeftMargin' => 20,
|
1612 |
+
'imgRightMargin' => 20,
|
1613 |
+
'imgTopMargin' => 15,
|
1614 |
+
'imgBottomMargin' => 15,
|
1615 |
+
'socialSpace' => 20,
|
1616 |
+
'headingTag' => 'h3',
|
1617 |
+
),
|
1618 |
+
),
|
1619 |
+
'uagb/testimonial' => array(
|
1620 |
+
'slug' => '',
|
1621 |
+
'title' => __( 'Testimonial', 'ultimate-addons-for-gutenberg' ),
|
1622 |
+
'description' => __( 'This block helps your display some amazing client feedback within your website.', 'ultimate-addons-for-gutenberg' ),
|
1623 |
+
'default' => true,
|
1624 |
+
'attributes' => array(
|
1625 |
+
'headingAlign' => 'center',
|
1626 |
+
'companyColor' => '#888888',
|
1627 |
+
'descColor' => '#333',
|
1628 |
+
'authorColor' => '#333',
|
1629 |
+
'nameFontSizeType' => 'px',
|
1630 |
+
'nameFontSize' => '',
|
1631 |
+
'nameFontSizeTablet' => '',
|
1632 |
+
'nameFontSizeMobile' => '',
|
1633 |
+
'nameFontFamily' => '',
|
1634 |
+
'nameFontWeight' => '',
|
1635 |
+
'nameFontSubset' => '',
|
1636 |
+
'nameLineHeightType' => 'em',
|
1637 |
+
'nameLineHeight' => '',
|
1638 |
+
'nameLineHeightTablet' => '',
|
1639 |
+
'nameLineHeightMobile' => '',
|
1640 |
+
'nameLoadGoogleFonts' => false,
|
1641 |
+
'companyFontSizeType' => 'px',
|
1642 |
+
'companyFontSize' => '',
|
1643 |
+
'companyFontSizeTablet' => '',
|
1644 |
+
'companyFontSizeMobile' => '',
|
1645 |
+
'companyFontFamily' => '',
|
1646 |
+
'companyFontWeight' => '',
|
1647 |
+
'companyFontSubset' => '',
|
1648 |
+
'companyLineHeightType' => 'em',
|
1649 |
+
'companyLineHeight' => '',
|
1650 |
+
'companyLineHeightTablet' => '',
|
1651 |
+
'companyLineHeightMobile' => '',
|
1652 |
+
'companyLoadGoogleFonts' => false,
|
1653 |
+
'descFontSizeType' => 'px',
|
1654 |
+
'descFontSize' => '',
|
1655 |
+
'descFontSizeTablet' => '',
|
1656 |
+
'descFontSizeMobile' => '',
|
1657 |
+
'descFontFamily' => '',
|
1658 |
+
'descFontWeight' => '',
|
1659 |
+
'descFontSubset' => '',
|
1660 |
+
'descLineHeightType' => 'em',
|
1661 |
+
'descLineHeight' => '',
|
1662 |
+
'descLineHeightTablet' => '',
|
1663 |
+
'descLineHeightMobile' => '',
|
1664 |
+
'descLoadGoogleFonts' => false,
|
1665 |
+
'descSpace' => 15,
|
1666 |
+
'block_id' => '',
|
1667 |
+
'nameSpace' => 5,
|
1668 |
+
'imgVrPadding' => 10,
|
1669 |
+
'imgHrPadding' => 10,
|
1670 |
+
'imageWidth' => 60,
|
1671 |
+
'rowGap' => 10,
|
1672 |
+
'columnGap' => 10,
|
1673 |
+
'contentPadding' => 5,
|
1674 |
+
'backgroundColor' => '',
|
1675 |
+
'backgroundImage' => '',
|
1676 |
+
'backgroundPosition' => 'center-center',
|
1677 |
+
'backgroundSize' => 'cover',
|
1678 |
+
'backgroundRepeat' => 'no-repeat',
|
1679 |
+
'backgroundImageColor' => '',
|
1680 |
+
'backgroundOpacity' => 0,
|
1681 |
+
'borderStyle' => 'none',
|
1682 |
+
'borderWidth' => 1,
|
1683 |
+
'borderRadius' => 0,
|
1684 |
+
'borderColor' => '#333',
|
1685 |
+
'arrowColor' => '#333',
|
1686 |
+
'arrowDots' => 'arrowDots',
|
1687 |
+
'arrowBorderSize' => 1,
|
1688 |
+
'arrowBorderRadius' => 0,
|
1689 |
+
'columns' => 1,
|
1690 |
+
'autoplaySpeed' => 2000,
|
1691 |
+
'autoplay' => true,
|
1692 |
+
'infiniteLoop' => true,
|
1693 |
+
'pauseOnHover' => true,
|
1694 |
+
'transitionSpeed' => 500,
|
1695 |
+
'tcolumns' => 1,
|
1696 |
+
'mcolumns' => 1,
|
1697 |
+
'arrowSize' => 20,
|
1698 |
+
'test_item_count' => 3,
|
1699 |
+
),
|
1700 |
+
),
|
1701 |
+
);
|
1702 |
+
}
|
1703 |
+
return self::$block_attributes;
|
1704 |
+
}
|
1705 |
+
}
|
1706 |
+
}
|
classes/class-uagb-helper.php
CHANGED
@@ -1,1086 +1,1090 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* UAGB Helper.
|
4 |
-
*
|
5 |
-
* @package UAGB
|
6 |
-
*/
|
7 |
-
|
8 |
-
if ( ! class_exists( 'UAGB_Helper' ) ) {
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Class UAGB_Helper.
|
12 |
-
*/
|
13 |
-
final class UAGB_Helper {
|
14 |
-
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Member Variable
|
18 |
-
*
|
19 |
-
* @since 0.0.1
|
20 |
-
* @var instance
|
21 |
-
*/
|
22 |
-
private static $instance;
|
23 |
-
|
24 |
-
/**
|
25 |
-
* Member Variable
|
26 |
-
*
|
27 |
-
* @since 0.0.1
|
28 |
-
* @var instance
|
29 |
-
*/
|
30 |
-
public static $block_list;
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Store Json variable
|
34 |
-
*
|
35 |
-
* @since 1.8.1
|
36 |
-
* @var instance
|
37 |
-
*/
|
38 |
-
public static $icon_json;
|
39 |
-
|
40 |
-
/**
|
41 |
-
* Page Blocks Variable
|
42 |
-
*
|
43 |
-
* @since 1.6.0
|
44 |
-
* @var instance
|
45 |
-
*/
|
46 |
-
public static $page_blocks;
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Google fonts to enqueue
|
50 |
-
*
|
51 |
-
* @var array
|
52 |
-
*/
|
53 |
-
public static $gfonts = array();
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Initiator
|
57 |
-
*
|
58 |
-
* @since 0.0.1
|
59 |
-
*/
|
60 |
-
public static function get_instance() {
|
61 |
-
if ( ! isset( self::$instance ) ) {
|
62 |
-
self::$instance = new self;
|
63 |
-
}
|
64 |
-
return self::$instance;
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Constructor
|
69 |
-
*/
|
70 |
-
public function __construct() {
|
71 |
-
|
72 |
-
require( UAGB_DIR . 'classes/class-uagb-config.php' );
|
73 |
-
require( UAGB_DIR . 'classes/class-uagb-block-helper.php' );
|
74 |
-
|
75 |
-
self::$block_list = UAGB_Config::get_block_attributes();
|
76 |
-
|
77 |
-
add_action( 'wp_head', array( $this, 'generate_stylesheet' ), 80 );
|
78 |
-
add_action( 'wp_head', array( $this, 'frontend_gfonts' ), 120 );
|
79 |
-
add_action( 'wp_footer', array( $this, 'generate_script' ), 1000 );
|
80 |
-
}
|
81 |
-
|
82 |
-
/**
|
83 |
-
* Load the front end Google Fonts
|
84 |
-
*/
|
85 |
-
public function frontend_gfonts() {
|
86 |
-
if ( empty( self::$gfonts ) ) {
|
87 |
-
return;
|
88 |
-
}
|
89 |
-
$show_google_fonts = apply_filters( 'uagb_blocks_show_google_fonts', true );
|
90 |
-
if ( ! $show_google_fonts ) {
|
91 |
-
return;
|
92 |
-
}
|
93 |
-
$link = '';
|
94 |
-
$subsets = array();
|
95 |
-
foreach ( self::$gfonts as $key => $gfont_values ) {
|
96 |
-
if ( ! empty( $link ) ) {
|
97 |
-
$link .= '%7C'; // Append a new font to the string.
|
98 |
-
}
|
99 |
-
$link .= $gfont_values['fontfamily'];
|
100 |
-
if ( ! empty( $gfont_values['fontvariants'] ) ) {
|
101 |
-
$link .= ':';
|
102 |
-
$link .= implode( ',', $gfont_values['fontvariants'] );
|
103 |
-
}
|
104 |
-
if ( ! empty( $gfont_values['fontsubsets'] ) ) {
|
105 |
-
foreach ( $gfont_values['fontsubsets'] as $subset ) {
|
106 |
-
if ( ! in_array( $subset, $subsets ) ) {
|
107 |
-
array_push( $subsets, $subset );
|
108 |
-
}
|
109 |
-
}
|
110 |
-
}
|
111 |
-
}
|
112 |
-
if ( ! empty( $subsets ) ) {
|
113 |
-
$link .= '&subset=' . implode( ',', $subsets );
|
114 |
-
}
|
115 |
-
echo '<link href="//fonts.googleapis.com/css?family=' . esc_attr( str_replace( '|', '%7C', $link ) ) . '" rel="stylesheet">';
|
116 |
-
}
|
117 |
-
|
118 |
-
|
119 |
-
/**
|
120 |
-
* Parse CSS into correct CSS syntax.
|
121 |
-
*
|
122 |
-
* @param array $selectors The block selectors.
|
123 |
-
* @param string $id The selector ID.
|
124 |
-
* @since 0.0.1
|
125 |
-
*/
|
126 |
-
public static function generate_css( $selectors, $id ) {
|
127 |
-
|
128 |
-
$styling_css = '';
|
129 |
-
$styling_css = '';
|
130 |
-
|
131 |
-
if ( empty( $selectors ) ) {
|
132 |
-
return;
|
133 |
-
}
|
134 |
-
|
135 |
-
foreach ( $selectors as $key => $value ) {
|
136 |
-
|
137 |
-
$css = '';
|
138 |
-
|
139 |
-
foreach ( $value as $j => $val ) {
|
140 |
-
|
141 |
-
if ( ! empty( $val ) || 0 === $val ) {
|
142 |
-
$css .= $j . ': ' . $val . ';';
|
143 |
-
}
|
144 |
-
}
|
145 |
-
|
146 |
-
if ( ! empty( $css ) ) {
|
147 |
-
$styling_css .= $id;
|
148 |
-
$styling_css .= $key . '{';
|
149 |
-
$styling_css .= $css . '}';
|
150 |
-
}
|
151 |
-
}
|
152 |
-
|
153 |
-
return $styling_css;
|
154 |
-
}
|
155 |
-
|
156 |
-
/**
|
157 |
-
* Get CSS value
|
158 |
-
*
|
159 |
-
* Syntax:
|
160 |
-
*
|
161 |
-
* get_css_value( VALUE, UNIT );
|
162 |
-
*
|
163 |
-
* E.g.
|
164 |
-
*
|
165 |
-
* get_css_value( VALUE, 'em' );
|
166 |
-
*
|
167 |
-
* @param string $value CSS value.
|
168 |
-
* @param string $unit CSS unit.
|
169 |
-
* @since x.x.x
|
170 |
-
*/
|
171 |
-
public static function get_css_value( $value = '', $unit = '' ) {
|
172 |
-
|
173 |
-
if ( '' == $value ) {
|
174 |
-
return $value;
|
175 |
-
}
|
176 |
-
|
177 |
-
$css_val = '';
|
178 |
-
|
179 |
-
if ( ! empty( $value ) ) {
|
180 |
-
$css_val = esc_attr( $value ) . $unit;
|
181 |
-
}
|
182 |
-
|
183 |
-
return $css_val;
|
184 |
-
}
|
185 |
-
|
186 |
-
/**
|
187 |
-
* Generates CSS recurrsively.
|
188 |
-
*
|
189 |
-
* @param object $block The block object.
|
190 |
-
* @since 0.0.1
|
191 |
-
*/
|
192 |
-
public function get_block_css( $block ) {
|
193 |
-
|
194 |
-
// @codingStandardsIgnoreStart
|
195 |
-
|
196 |
-
$block = ( array ) $block;
|
197 |
-
|
198 |
-
$name = $block['blockName'];
|
199 |
-
$css = array();
|
200 |
-
|
201 |
-
if( ! isset( $name ) ) {
|
202 |
-
return;
|
203 |
-
}
|
204 |
-
|
205 |
-
if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
|
206 |
-
$blockattr = $block['attrs'];
|
207 |
-
if ( isset( $blockattr['block_id'] ) ) {
|
208 |
-
$block_id = $blockattr['block_id'];
|
209 |
-
}
|
210 |
-
}
|
211 |
-
|
212 |
-
switch ( $name ) {
|
213 |
-
case 'uagb/section':
|
214 |
-
$css += UAGB_Block_Helper::get_section_css( $blockattr, $block_id );
|
215 |
-
break;
|
216 |
-
|
217 |
-
case 'uagb/advanced-heading':
|
218 |
-
$css += UAGB_Block_Helper::get_adv_heading_css( $blockattr, $block_id );
|
219 |
-
UAGB_Block_Helper::blocks_advanced_heading_gfont( $blockattr );
|
220 |
-
break;
|
221 |
-
|
222 |
-
case 'uagb/info-box':
|
223 |
-
$css += UAGB_Block_Helper::get_info_box_css( $blockattr, $block_id );
|
224 |
-
UAGB_Block_Helper::blocks_info_box_gfont( $blockattr );
|
225 |
-
break;
|
226 |
-
|
227 |
-
case 'uagb/buttons':
|
228 |
-
$css += UAGB_Block_Helper::get_buttons_css( $blockattr, $block_id );
|
229 |
-
UAGB_Block_Helper::blocks_buttons_gfont( $blockattr );
|
230 |
-
break;
|
231 |
-
|
232 |
-
case 'uagb/blockquote':
|
233 |
-
$css += UAGB_Block_Helper::get_blockquote_css( $blockattr, $block_id );
|
234 |
-
UAGB_Block_Helper::blocks_blockquote_gfont( $blockattr );
|
235 |
-
break;
|
236 |
-
|
237 |
-
case 'uagb/testimonial':
|
238 |
-
$css += UAGB_Block_Helper::get_testimonial_css( $blockattr, $block_id );
|
239 |
-
UAGB_Block_Helper::blocks_testimonial_gfont( $blockattr );
|
240 |
-
break;
|
241 |
-
|
242 |
-
case 'uagb/team':
|
243 |
-
$css += UAGB_Block_Helper::get_team_css( $blockattr, $block_id );
|
244 |
-
UAGB_Block_Helper::blocks_team_gfont( $blockattr );
|
245 |
-
break;
|
246 |
-
|
247 |
-
case 'uagb/social-share':
|
248 |
-
$css += UAGB_Block_Helper::get_social_share_css( $blockattr, $block_id );
|
249 |
-
break;
|
250 |
-
|
251 |
-
case 'uagb/content-timeline':
|
252 |
-
$css += UAGB_Block_Helper::get_content_timeline_css( $blockattr, $block_id );
|
253 |
-
UAGB_Block_Helper::blocks_content_timeline_gfont( $blockattr );
|
254 |
-
break;
|
255 |
-
|
256 |
-
case 'uagb/restaurant-menu':
|
257 |
-
$css += UAGB_Block_Helper::get_restaurant_menu_css( $blockattr, $block_id );
|
258 |
-
UAGB_Block_Helper::blocks_restaurant_menu_gfont( $blockattr );
|
259 |
-
break;
|
260 |
-
|
261 |
-
case 'uagb/call-to-action':
|
262 |
-
$css += UAGB_Block_Helper::get_call_to_action_css( $blockattr, $block_id );
|
263 |
-
UAGB_Block_Helper::blocks_call_to_action_gfont( $blockattr );
|
264 |
-
break;
|
265 |
-
|
266 |
-
case 'uagb/table-of-contents':
|
267 |
-
$css += UAGB_Block_Helper::get_table_of_contents_css( $blockattr, $block_id );
|
268 |
-
UAGB_Block_Helper::blocks_table_of_contents_gfont( $blockattr );
|
269 |
-
break;
|
270 |
-
|
271 |
-
case 'uagb/post-timeline':
|
272 |
-
$css += UAGB_Block_Helper::get_post_timeline_css( $blockattr, $block_id );
|
273 |
-
UAGB_Block_Helper::blocks_post_timeline_gfont( $blockattr );
|
274 |
-
break;
|
275 |
-
|
276 |
-
case 'uagb/icon-list':
|
277 |
-
$css += UAGB_Block_Helper::get_icon_list_css( $blockattr, $block_id );
|
278 |
-
UAGB_Block_Helper::blocks_icon_list_gfont( $blockattr );
|
279 |
-
break;
|
280 |
-
|
281 |
-
case 'uagb/post-grid':
|
282 |
-
$css += UAGB_Block_Helper::get_post_grid_css( $blockattr, $block_id );
|
283 |
-
UAGB_Block_Helper::blocks_post_gfont( $blockattr );
|
284 |
-
break;
|
285 |
-
|
286 |
-
case 'uagb/post-carousel':
|
287 |
-
$css += UAGB_Block_Helper::get_post_carousel_css( $blockattr, $block_id );
|
288 |
-
UAGB_Block_Helper::blocks_post_gfont( $blockattr );
|
289 |
-
break;
|
290 |
-
|
291 |
-
case 'uagb/post-masonry':
|
292 |
-
$css += UAGB_Block_Helper::get_post_masonry_css( $blockattr, $block_id );
|
293 |
-
UAGB_Block_Helper::blocks_post_gfont( $blockattr );
|
294 |
-
break;
|
295 |
-
|
296 |
-
case 'uagb/columns':
|
297 |
-
$css += UAGB_Block_Helper::get_columns_css( $blockattr, $block_id );
|
298 |
-
break;
|
299 |
-
|
300 |
-
case 'uagb/column':
|
301 |
-
$css += UAGB_Block_Helper::get_column_css( $blockattr, $block_id );
|
302 |
-
break;
|
303 |
-
|
304 |
-
case 'uagb/cf7-styler':
|
305 |
-
$css += UAGB_Block_Helper::get_cf7_styler_css( $blockattr, $block_id );
|
306 |
-
UAGB_Block_Helper::blocks_cf7_styler_gfont( $blockattr );
|
307 |
-
break;
|
308 |
-
|
309 |
-
case 'uagb/marketing-button':
|
310 |
-
$css += UAGB_Block_Helper::get_marketing_btn_css( $blockattr, $block_id );
|
311 |
-
UAGB_Block_Helper::blocks_marketing_btn_gfont( $blockattr );
|
312 |
-
break;
|
313 |
-
|
314 |
-
case 'uagb/gf-styler':
|
315 |
-
$css += UAGB_Block_Helper::get_gf_styler_css( $blockattr, $block_id );
|
316 |
-
UAGB_Block_Helper::blocks_gf_styler_gfont( $blockattr );
|
317 |
-
break;
|
318 |
-
|
319 |
-
default:
|
320 |
-
// Nothing to do here.
|
321 |
-
break;
|
322 |
-
}
|
323 |
-
|
324 |
-
if ( isset( $block['innerBlocks'] ) ) {
|
325 |
-
foreach ( $block['innerBlocks'] as $j => $inner_block ) {
|
326 |
-
if ( 'core/block' == $inner_block['blockName'] ) {
|
327 |
-
$id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
|
328 |
-
|
329 |
-
if ( $id ) {
|
330 |
-
$content = get_post_field( 'post_content', $id );
|
331 |
-
|
332 |
-
$reusable_blocks = $this->parse( $content );
|
333 |
-
|
334 |
-
$this->get_stylesheet( $reusable_blocks );
|
335 |
-
}
|
336 |
-
} else {
|
337 |
-
// Get CSS for the Block.
|
338 |
-
$inner_block_css = $this->get_block_css( $inner_block );
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
*
|
360 |
-
*
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
if
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
case 'uagb/
|
420 |
-
$js .= UAGB_Block_Helper::
|
421 |
-
break;
|
422 |
-
|
423 |
-
case 'uagb/
|
424 |
-
$js .= UAGB_Block_Helper::
|
425 |
-
break;
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
$
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
$
|
564 |
-
$
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
$
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
$
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
$
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
'
|
655 |
-
'
|
656 |
-
'
|
657 |
-
'
|
658 |
-
'
|
659 |
-
'
|
660 |
-
'
|
661 |
-
'
|
662 |
-
'
|
663 |
-
'
|
664 |
-
'
|
665 |
-
'
|
666 |
-
'
|
667 |
-
'
|
668 |
-
'
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
*
|
682 |
-
*
|
683 |
-
*
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
*
|
703 |
-
*
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
*
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
$icon = str_replace( '
|
814 |
-
$icon =
|
815 |
-
|
816 |
-
$
|
817 |
-
$
|
818 |
-
$
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
$
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
*
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
'
|
842 |
-
'
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
*
|
865 |
-
*
|
866 |
-
* @
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
'
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
$
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
$
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
if (
|
1011 |
-
|
1012 |
-
}
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
*
|
1032 |
-
*
|
1033 |
-
*
|
1034 |
-
*
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
}
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
}
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UAGB Helper.
|
4 |
+
*
|
5 |
+
* @package UAGB
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! class_exists( 'UAGB_Helper' ) ) {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Class UAGB_Helper.
|
12 |
+
*/
|
13 |
+
final class UAGB_Helper {
|
14 |
+
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Member Variable
|
18 |
+
*
|
19 |
+
* @since 0.0.1
|
20 |
+
* @var instance
|
21 |
+
*/
|
22 |
+
private static $instance;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Member Variable
|
26 |
+
*
|
27 |
+
* @since 0.0.1
|
28 |
+
* @var instance
|
29 |
+
*/
|
30 |
+
public static $block_list;
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Store Json variable
|
34 |
+
*
|
35 |
+
* @since 1.8.1
|
36 |
+
* @var instance
|
37 |
+
*/
|
38 |
+
public static $icon_json;
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Page Blocks Variable
|
42 |
+
*
|
43 |
+
* @since 1.6.0
|
44 |
+
* @var instance
|
45 |
+
*/
|
46 |
+
public static $page_blocks;
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Google fonts to enqueue
|
50 |
+
*
|
51 |
+
* @var array
|
52 |
+
*/
|
53 |
+
public static $gfonts = array();
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Initiator
|
57 |
+
*
|
58 |
+
* @since 0.0.1
|
59 |
+
*/
|
60 |
+
public static function get_instance() {
|
61 |
+
if ( ! isset( self::$instance ) ) {
|
62 |
+
self::$instance = new self;
|
63 |
+
}
|
64 |
+
return self::$instance;
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Constructor
|
69 |
+
*/
|
70 |
+
public function __construct() {
|
71 |
+
|
72 |
+
require( UAGB_DIR . 'classes/class-uagb-config.php' );
|
73 |
+
require( UAGB_DIR . 'classes/class-uagb-block-helper.php' );
|
74 |
+
|
75 |
+
self::$block_list = UAGB_Config::get_block_attributes();
|
76 |
+
|
77 |
+
add_action( 'wp_head', array( $this, 'generate_stylesheet' ), 80 );
|
78 |
+
add_action( 'wp_head', array( $this, 'frontend_gfonts' ), 120 );
|
79 |
+
add_action( 'wp_footer', array( $this, 'generate_script' ), 1000 );
|
80 |
+
}
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Load the front end Google Fonts
|
84 |
+
*/
|
85 |
+
public function frontend_gfonts() {
|
86 |
+
if ( empty( self::$gfonts ) ) {
|
87 |
+
return;
|
88 |
+
}
|
89 |
+
$show_google_fonts = apply_filters( 'uagb_blocks_show_google_fonts', true );
|
90 |
+
if ( ! $show_google_fonts ) {
|
91 |
+
return;
|
92 |
+
}
|
93 |
+
$link = '';
|
94 |
+
$subsets = array();
|
95 |
+
foreach ( self::$gfonts as $key => $gfont_values ) {
|
96 |
+
if ( ! empty( $link ) ) {
|
97 |
+
$link .= '%7C'; // Append a new font to the string.
|
98 |
+
}
|
99 |
+
$link .= $gfont_values['fontfamily'];
|
100 |
+
if ( ! empty( $gfont_values['fontvariants'] ) ) {
|
101 |
+
$link .= ':';
|
102 |
+
$link .= implode( ',', $gfont_values['fontvariants'] );
|
103 |
+
}
|
104 |
+
if ( ! empty( $gfont_values['fontsubsets'] ) ) {
|
105 |
+
foreach ( $gfont_values['fontsubsets'] as $subset ) {
|
106 |
+
if ( ! in_array( $subset, $subsets ) ) {
|
107 |
+
array_push( $subsets, $subset );
|
108 |
+
}
|
109 |
+
}
|
110 |
+
}
|
111 |
+
}
|
112 |
+
if ( ! empty( $subsets ) ) {
|
113 |
+
$link .= '&subset=' . implode( ',', $subsets );
|
114 |
+
}
|
115 |
+
echo '<link href="//fonts.googleapis.com/css?family=' . esc_attr( str_replace( '|', '%7C', $link ) ) . '" rel="stylesheet">';
|
116 |
+
}
|
117 |
+
|
118 |
+
|
119 |
+
/**
|
120 |
+
* Parse CSS into correct CSS syntax.
|
121 |
+
*
|
122 |
+
* @param array $selectors The block selectors.
|
123 |
+
* @param string $id The selector ID.
|
124 |
+
* @since 0.0.1
|
125 |
+
*/
|
126 |
+
public static function generate_css( $selectors, $id ) {
|
127 |
+
|
128 |
+
$styling_css = '';
|
129 |
+
$styling_css = '';
|
130 |
+
|
131 |
+
if ( empty( $selectors ) ) {
|
132 |
+
return;
|
133 |
+
}
|
134 |
+
|
135 |
+
foreach ( $selectors as $key => $value ) {
|
136 |
+
|
137 |
+
$css = '';
|
138 |
+
|
139 |
+
foreach ( $value as $j => $val ) {
|
140 |
+
|
141 |
+
if ( ! empty( $val ) || 0 === $val ) {
|
142 |
+
$css .= $j . ': ' . $val . ';';
|
143 |
+
}
|
144 |
+
}
|
145 |
+
|
146 |
+
if ( ! empty( $css ) ) {
|
147 |
+
$styling_css .= $id;
|
148 |
+
$styling_css .= $key . '{';
|
149 |
+
$styling_css .= $css . '}';
|
150 |
+
}
|
151 |
+
}
|
152 |
+
|
153 |
+
return $styling_css;
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Get CSS value
|
158 |
+
*
|
159 |
+
* Syntax:
|
160 |
+
*
|
161 |
+
* get_css_value( VALUE, UNIT );
|
162 |
+
*
|
163 |
+
* E.g.
|
164 |
+
*
|
165 |
+
* get_css_value( VALUE, 'em' );
|
166 |
+
*
|
167 |
+
* @param string $value CSS value.
|
168 |
+
* @param string $unit CSS unit.
|
169 |
+
* @since x.x.x
|
170 |
+
*/
|
171 |
+
public static function get_css_value( $value = '', $unit = '' ) {
|
172 |
+
|
173 |
+
if ( '' == $value ) {
|
174 |
+
return $value;
|
175 |
+
}
|
176 |
+
|
177 |
+
$css_val = '';
|
178 |
+
|
179 |
+
if ( ! empty( $value ) ) {
|
180 |
+
$css_val = esc_attr( $value ) . $unit;
|
181 |
+
}
|
182 |
+
|
183 |
+
return $css_val;
|
184 |
+
}
|
185 |
+
|
186 |
+
/**
|
187 |
+
* Generates CSS recurrsively.
|
188 |
+
*
|
189 |
+
* @param object $block The block object.
|
190 |
+
* @since 0.0.1
|
191 |
+
*/
|
192 |
+
public function get_block_css( $block ) {
|
193 |
+
|
194 |
+
// @codingStandardsIgnoreStart
|
195 |
+
|
196 |
+
$block = ( array ) $block;
|
197 |
+
|
198 |
+
$name = $block['blockName'];
|
199 |
+
$css = array();
|
200 |
+
|
201 |
+
if( ! isset( $name ) ) {
|
202 |
+
return;
|
203 |
+
}
|
204 |
+
|
205 |
+
if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
|
206 |
+
$blockattr = $block['attrs'];
|
207 |
+
if ( isset( $blockattr['block_id'] ) ) {
|
208 |
+
$block_id = $blockattr['block_id'];
|
209 |
+
}
|
210 |
+
}
|
211 |
+
|
212 |
+
switch ( $name ) {
|
213 |
+
case 'uagb/section':
|
214 |
+
$css += UAGB_Block_Helper::get_section_css( $blockattr, $block_id );
|
215 |
+
break;
|
216 |
+
|
217 |
+
case 'uagb/advanced-heading':
|
218 |
+
$css += UAGB_Block_Helper::get_adv_heading_css( $blockattr, $block_id );
|
219 |
+
UAGB_Block_Helper::blocks_advanced_heading_gfont( $blockattr );
|
220 |
+
break;
|
221 |
+
|
222 |
+
case 'uagb/info-box':
|
223 |
+
$css += UAGB_Block_Helper::get_info_box_css( $blockattr, $block_id );
|
224 |
+
UAGB_Block_Helper::blocks_info_box_gfont( $blockattr );
|
225 |
+
break;
|
226 |
+
|
227 |
+
case 'uagb/buttons':
|
228 |
+
$css += UAGB_Block_Helper::get_buttons_css( $blockattr, $block_id );
|
229 |
+
UAGB_Block_Helper::blocks_buttons_gfont( $blockattr );
|
230 |
+
break;
|
231 |
+
|
232 |
+
case 'uagb/blockquote':
|
233 |
+
$css += UAGB_Block_Helper::get_blockquote_css( $blockattr, $block_id );
|
234 |
+
UAGB_Block_Helper::blocks_blockquote_gfont( $blockattr );
|
235 |
+
break;
|
236 |
+
|
237 |
+
case 'uagb/testimonial':
|
238 |
+
$css += UAGB_Block_Helper::get_testimonial_css( $blockattr, $block_id );
|
239 |
+
UAGB_Block_Helper::blocks_testimonial_gfont( $blockattr );
|
240 |
+
break;
|
241 |
+
|
242 |
+
case 'uagb/team':
|
243 |
+
$css += UAGB_Block_Helper::get_team_css( $blockattr, $block_id );
|
244 |
+
UAGB_Block_Helper::blocks_team_gfont( $blockattr );
|
245 |
+
break;
|
246 |
+
|
247 |
+
case 'uagb/social-share':
|
248 |
+
$css += UAGB_Block_Helper::get_social_share_css( $blockattr, $block_id );
|
249 |
+
break;
|
250 |
+
|
251 |
+
case 'uagb/content-timeline':
|
252 |
+
$css += UAGB_Block_Helper::get_content_timeline_css( $blockattr, $block_id );
|
253 |
+
UAGB_Block_Helper::blocks_content_timeline_gfont( $blockattr );
|
254 |
+
break;
|
255 |
+
|
256 |
+
case 'uagb/restaurant-menu':
|
257 |
+
$css += UAGB_Block_Helper::get_restaurant_menu_css( $blockattr, $block_id );
|
258 |
+
UAGB_Block_Helper::blocks_restaurant_menu_gfont( $blockattr );
|
259 |
+
break;
|
260 |
+
|
261 |
+
case 'uagb/call-to-action':
|
262 |
+
$css += UAGB_Block_Helper::get_call_to_action_css( $blockattr, $block_id );
|
263 |
+
UAGB_Block_Helper::blocks_call_to_action_gfont( $blockattr );
|
264 |
+
break;
|
265 |
+
|
266 |
+
case 'uagb/table-of-contents':
|
267 |
+
$css += UAGB_Block_Helper::get_table_of_contents_css( $blockattr, $block_id );
|
268 |
+
UAGB_Block_Helper::blocks_table_of_contents_gfont( $blockattr );
|
269 |
+
break;
|
270 |
+
|
271 |
+
case 'uagb/post-timeline':
|
272 |
+
$css += UAGB_Block_Helper::get_post_timeline_css( $blockattr, $block_id );
|
273 |
+
UAGB_Block_Helper::blocks_post_timeline_gfont( $blockattr );
|
274 |
+
break;
|
275 |
+
|
276 |
+
case 'uagb/icon-list':
|
277 |
+
$css += UAGB_Block_Helper::get_icon_list_css( $blockattr, $block_id );
|
278 |
+
UAGB_Block_Helper::blocks_icon_list_gfont( $blockattr );
|
279 |
+
break;
|
280 |
+
|
281 |
+
case 'uagb/post-grid':
|
282 |
+
$css += UAGB_Block_Helper::get_post_grid_css( $blockattr, $block_id );
|
283 |
+
UAGB_Block_Helper::blocks_post_gfont( $blockattr );
|
284 |
+
break;
|
285 |
+
|
286 |
+
case 'uagb/post-carousel':
|
287 |
+
$css += UAGB_Block_Helper::get_post_carousel_css( $blockattr, $block_id );
|
288 |
+
UAGB_Block_Helper::blocks_post_gfont( $blockattr );
|
289 |
+
break;
|
290 |
+
|
291 |
+
case 'uagb/post-masonry':
|
292 |
+
$css += UAGB_Block_Helper::get_post_masonry_css( $blockattr, $block_id );
|
293 |
+
UAGB_Block_Helper::blocks_post_gfont( $blockattr );
|
294 |
+
break;
|
295 |
+
|
296 |
+
case 'uagb/columns':
|
297 |
+
$css += UAGB_Block_Helper::get_columns_css( $blockattr, $block_id );
|
298 |
+
break;
|
299 |
+
|
300 |
+
case 'uagb/column':
|
301 |
+
$css += UAGB_Block_Helper::get_column_css( $blockattr, $block_id );
|
302 |
+
break;
|
303 |
+
|
304 |
+
case 'uagb/cf7-styler':
|
305 |
+
$css += UAGB_Block_Helper::get_cf7_styler_css( $blockattr, $block_id );
|
306 |
+
UAGB_Block_Helper::blocks_cf7_styler_gfont( $blockattr );
|
307 |
+
break;
|
308 |
+
|
309 |
+
case 'uagb/marketing-button':
|
310 |
+
$css += UAGB_Block_Helper::get_marketing_btn_css( $blockattr, $block_id );
|
311 |
+
UAGB_Block_Helper::blocks_marketing_btn_gfont( $blockattr );
|
312 |
+
break;
|
313 |
+
|
314 |
+
case 'uagb/gf-styler':
|
315 |
+
$css += UAGB_Block_Helper::get_gf_styler_css( $blockattr, $block_id );
|
316 |
+
UAGB_Block_Helper::blocks_gf_styler_gfont( $blockattr );
|
317 |
+
break;
|
318 |
+
|
319 |
+
default:
|
320 |
+
// Nothing to do here.
|
321 |
+
break;
|
322 |
+
}
|
323 |
+
|
324 |
+
if ( isset( $block['innerBlocks'] ) ) {
|
325 |
+
foreach ( $block['innerBlocks'] as $j => $inner_block ) {
|
326 |
+
if ( 'core/block' == $inner_block['blockName'] ) {
|
327 |
+
$id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
|
328 |
+
|
329 |
+
if ( $id ) {
|
330 |
+
$content = get_post_field( 'post_content', $id );
|
331 |
+
|
332 |
+
$reusable_blocks = $this->parse( $content );
|
333 |
+
|
334 |
+
$this->get_stylesheet( $reusable_blocks );
|
335 |
+
}
|
336 |
+
} else {
|
337 |
+
// Get CSS for the Block.
|
338 |
+
$inner_block_css = $this->get_block_css( $inner_block );
|
339 |
+
|
340 |
+
$css_desktop = ( isset( $css['desktop'] ) ? $css['desktop'] : '' );
|
341 |
+
$css_tablet = ( isset( $css['tablet'] ) ? $css['tablet'] : '' );
|
342 |
+
$css_mobile = ( isset( $css['mobile'] ) ? $css['mobile'] : '' );
|
343 |
+
|
344 |
+
if( isset( $inner_block_css['desktop'] ) ){
|
345 |
+
$css['desktop'] = $css_desktop . $inner_block_css['desktop'];
|
346 |
+
$css['tablet'] = $css_tablet . $inner_block_css['tablet'];
|
347 |
+
$css['mobile'] = $css_mobile . $inner_block_css['mobile'];
|
348 |
+
}
|
349 |
+
}
|
350 |
+
}
|
351 |
+
}
|
352 |
+
|
353 |
+
return $css;
|
354 |
+
|
355 |
+
// @codingStandardsIgnoreEnd
|
356 |
+
}
|
357 |
+
|
358 |
+
/**
|
359 |
+
* Adds Google fonts all blocks.
|
360 |
+
*
|
361 |
+
* @param array $load_google_font the blocks attr.
|
362 |
+
* @param array $font_family the blocks attr.
|
363 |
+
* @param array $font_weight the blocks attr.
|
364 |
+
* @param array $font_subset the blocks attr.
|
365 |
+
*/
|
366 |
+
public static function blocks_google_font( $load_google_font, $font_family, $font_weight, $font_subset ) {
|
367 |
+
|
368 |
+
if ( true == $load_google_font ) {
|
369 |
+
if ( ! array_key_exists( $font_family, self::$gfonts ) ) {
|
370 |
+
$add_font = array(
|
371 |
+
'fontfamily' => $font_family,
|
372 |
+
'fontvariants' => ( isset( $font_weight ) && ! empty( $font_weight ) ? array( $font_weight ) : array() ),
|
373 |
+
'fontsubsets' => ( isset( $font_subset ) && ! empty( $font_subset ) ? array( $font_subset ) : array() ),
|
374 |
+
);
|
375 |
+
self::$gfonts[ $font_family ] = $add_font;
|
376 |
+
} else {
|
377 |
+
if ( isset( $font_weight ) && ! empty( $font_weight ) ) {
|
378 |
+
if ( ! in_array( $font_weight, self::$gfonts[ $font_family ]['fontvariants'], true ) ) {
|
379 |
+
array_push( self::$gfonts[ $font_family ]['fontvariants'], $font_weight );
|
380 |
+
}
|
381 |
+
}
|
382 |
+
if ( isset( $font_subset ) && ! empty( $font_subset ) ) {
|
383 |
+
if ( ! in_array( $font_subset, self::$gfonts[ $font_family ]['fontsubsets'], true ) ) {
|
384 |
+
array_push( self::$gfonts[ $font_family ]['fontsubsets'], $font_subset );
|
385 |
+
}
|
386 |
+
}
|
387 |
+
}
|
388 |
+
}
|
389 |
+
}
|
390 |
+
|
391 |
+
/**
|
392 |
+
* Generates Js recurrsively.
|
393 |
+
*
|
394 |
+
* @param object $block The block object.
|
395 |
+
* @since 1.6.0
|
396 |
+
*/
|
397 |
+
public function get_block_js( $block ) {
|
398 |
+
|
399 |
+
// @codingStandardsIgnoreStart
|
400 |
+
|
401 |
+
$block = ( array ) $block;
|
402 |
+
|
403 |
+
$name = $block['blockName'];
|
404 |
+
$js = '';
|
405 |
+
|
406 |
+
if( ! isset( $name ) ) {
|
407 |
+
return;
|
408 |
+
}
|
409 |
+
|
410 |
+
if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
|
411 |
+
$blockattr = $block['attrs'];
|
412 |
+
if ( isset( $blockattr['block_id'] ) ) {
|
413 |
+
$block_id = $blockattr['block_id'];
|
414 |
+
}
|
415 |
+
}
|
416 |
+
|
417 |
+
switch ( $name ) {
|
418 |
+
|
419 |
+
case 'uagb/testimonial':
|
420 |
+
$js .= UAGB_Block_Helper::get_testimonial_js( $blockattr, $block_id );
|
421 |
+
break;
|
422 |
+
|
423 |
+
case 'uagb/blockquote':
|
424 |
+
$js .= UAGB_Block_Helper::get_blockquote_js( $blockattr, $block_id );
|
425 |
+
break;
|
426 |
+
|
427 |
+
case 'uagb/social-share':
|
428 |
+
$js .= UAGB_Block_Helper::get_social_share_js( $block_id );
|
429 |
+
break;
|
430 |
+
|
431 |
+
case 'uagb/table-of-contents':
|
432 |
+
$js .= UAGB_Block_Helper::get_table_of_contents_js( $blockattr, $block_id );
|
433 |
+
break;
|
434 |
+
|
435 |
+
default:
|
436 |
+
// Nothing to do here.
|
437 |
+
break;
|
438 |
+
}
|
439 |
+
|
440 |
+
if ( isset( $block['innerBlocks'] ) ) {
|
441 |
+
|
442 |
+
foreach ( $block['innerBlocks'] as $j => $inner_block ) {
|
443 |
+
|
444 |
+
if ( 'core/block' == $inner_block['blockName'] ) {
|
445 |
+
$id = ( isset( $inner_block['attrs']['ref'] ) ) ? $inner_block['attrs']['ref'] : 0;
|
446 |
+
|
447 |
+
if ( $id ) {
|
448 |
+
$content = get_post_field( 'post_content', $id );
|
449 |
+
|
450 |
+
$reusable_blocks = $this->parse( $content );
|
451 |
+
|
452 |
+
$this->get_scripts( $reusable_blocks );
|
453 |
+
}
|
454 |
+
} else {
|
455 |
+
// Get JS for the Block.
|
456 |
+
$js .= $this->get_block_js( $inner_block );
|
457 |
+
}
|
458 |
+
}
|
459 |
+
}
|
460 |
+
|
461 |
+
echo $js;
|
462 |
+
|
463 |
+
// @codingStandardsIgnoreEnd
|
464 |
+
}
|
465 |
+
|
466 |
+
/**
|
467 |
+
* Generates stylesheet and appends in head tag.
|
468 |
+
*
|
469 |
+
* @since 0.0.1
|
470 |
+
*/
|
471 |
+
public function generate_stylesheet() {
|
472 |
+
|
473 |
+
$this_post = array();
|
474 |
+
|
475 |
+
if ( is_single() || is_page() || is_404() ) {
|
476 |
+
global $post;
|
477 |
+
$this_post = $post;
|
478 |
+
$this->_generate_stylesheet( $this_post );
|
479 |
+
if ( ! is_object( $post ) ) {
|
480 |
+
return;
|
481 |
+
}
|
482 |
+
} elseif ( is_archive() || is_home() || is_search() ) {
|
483 |
+
global $wp_query;
|
484 |
+
|
485 |
+
foreach ( $wp_query as $post ) {
|
486 |
+
$this->_generate_stylesheet( $post );
|
487 |
+
}
|
488 |
+
}
|
489 |
+
}
|
490 |
+
|
491 |
+
/**
|
492 |
+
* Generates stylesheet in loop.
|
493 |
+
*
|
494 |
+
* @param object $this_post Current Post Object.
|
495 |
+
* @since 1.7.0
|
496 |
+
*/
|
497 |
+
public function _generate_stylesheet( $this_post ) {
|
498 |
+
|
499 |
+
if ( has_blocks( get_the_ID() ) ) {
|
500 |
+
if ( isset( $this_post->post_content ) ) {
|
501 |
+
|
502 |
+
$blocks = $this->parse( $this_post->post_content );
|
503 |
+
self::$page_blocks = $blocks;
|
504 |
+
|
505 |
+
if ( ! is_array( $blocks ) || empty( $blocks ) ) {
|
506 |
+
return;
|
507 |
+
}
|
508 |
+
|
509 |
+
ob_start();
|
510 |
+
?>
|
511 |
+
<style type="text/css" media="all" id="uagb-style-frontend"><?php $this->get_stylesheet( $blocks ); ?></style>
|
512 |
+
<?php
|
513 |
+
ob_end_flush();
|
514 |
+
}
|
515 |
+
}
|
516 |
+
}
|
517 |
+
|
518 |
+
/**
|
519 |
+
* Generates scripts and appends in footer tag.
|
520 |
+
*
|
521 |
+
* @since 1.5.0
|
522 |
+
*/
|
523 |
+
public function generate_script() {
|
524 |
+
|
525 |
+
$blocks = self::$page_blocks;
|
526 |
+
|
527 |
+
if ( ! is_array( $blocks ) || empty( $blocks ) ) {
|
528 |
+
return;
|
529 |
+
}
|
530 |
+
|
531 |
+
ob_start();
|
532 |
+
?>
|
533 |
+
<script type="text/javascript" id="uagb-script-frontend">
|
534 |
+
( function( $ ) {
|
535 |
+
<?php $this->get_scripts( $blocks ); ?>
|
536 |
+
})(jQuery)
|
537 |
+
</script>
|
538 |
+
<?php
|
539 |
+
ob_end_flush();
|
540 |
+
}
|
541 |
+
|
542 |
+
/**
|
543 |
+
* Parse Guten Block.
|
544 |
+
*
|
545 |
+
* @param string $content the content string.
|
546 |
+
* @since 1.1.0
|
547 |
+
*/
|
548 |
+
public function parse( $content ) {
|
549 |
+
|
550 |
+
global $wp_version;
|
551 |
+
|
552 |
+
return ( version_compare( $wp_version, '5', '>=' ) ) ? parse_blocks( $content ) : gutenberg_parse_blocks( $content );
|
553 |
+
}
|
554 |
+
|
555 |
+
/**
|
556 |
+
* Generates stylesheet for reusable blocks.
|
557 |
+
*
|
558 |
+
* @param array $blocks Blocks array.
|
559 |
+
* @since 1.1.0
|
560 |
+
*/
|
561 |
+
public function get_stylesheet( $blocks ) {
|
562 |
+
|
563 |
+
$desktop = '';
|
564 |
+
$tablet = '';
|
565 |
+
$mobile = '';
|
566 |
+
|
567 |
+
$tab_styling_css = '';
|
568 |
+
$mob_styling_css = '';
|
569 |
+
|
570 |
+
foreach ( $blocks as $i => $block ) {
|
571 |
+
|
572 |
+
if ( is_array( $block ) ) {
|
573 |
+
if ( 'core/block' == $block['blockName'] ) {
|
574 |
+
$id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
|
575 |
+
|
576 |
+
if ( $id ) {
|
577 |
+
$content = get_post_field( 'post_content', $id );
|
578 |
+
|
579 |
+
$reusable_blocks = $this->parse( $content );
|
580 |
+
|
581 |
+
$this->get_stylesheet( $reusable_blocks );
|
582 |
+
|
583 |
+
}
|
584 |
+
} else {
|
585 |
+
// Get CSS for the Block.
|
586 |
+
$css = $this->get_block_css( $block );
|
587 |
+
|
588 |
+
if ( isset( $css['desktop'] ) ) {
|
589 |
+
$desktop .= $css['desktop'];
|
590 |
+
$tablet .= $css['tablet'];
|
591 |
+
$mobile .= $css['mobile'];
|
592 |
+
}
|
593 |
+
}
|
594 |
+
}
|
595 |
+
}
|
596 |
+
|
597 |
+
if ( ! empty( $tablet ) ) {
|
598 |
+
$tab_styling_css .= '@media only screen and (max-width: ' . UAGB_TABLET_BREAKPOINT . 'px) {';
|
599 |
+
$tab_styling_css .= $tablet;
|
600 |
+
$tab_styling_css .= '}';
|
601 |
+
}
|
602 |
+
|
603 |
+
if ( ! empty( $mobile ) ) {
|
604 |
+
$mob_styling_css .= '@media only screen and (max-width: ' . UAGB_MOBILE_BREAKPOINT . 'px) {';
|
605 |
+
$mob_styling_css .= $mobile;
|
606 |
+
$mob_styling_css .= '}';
|
607 |
+
}
|
608 |
+
|
609 |
+
echo $desktop . $tab_styling_css . $mob_styling_css;
|
610 |
+
}
|
611 |
+
|
612 |
+
|
613 |
+
/**
|
614 |
+
* Generates scripts for reusable blocks.
|
615 |
+
*
|
616 |
+
* @param array $blocks Blocks array.
|
617 |
+
* @since 1.6.0
|
618 |
+
*/
|
619 |
+
public function get_scripts( $blocks ) {
|
620 |
+
|
621 |
+
foreach ( $blocks as $i => $block ) {
|
622 |
+
if ( is_array( $block ) ) {
|
623 |
+
if ( 'core/block' == $block['blockName'] ) {
|
624 |
+
$id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
|
625 |
+
|
626 |
+
if ( $id ) {
|
627 |
+
$content = get_post_field( 'post_content', $id );
|
628 |
+
|
629 |
+
$reusable_blocks = $this->parse( $content );
|
630 |
+
|
631 |
+
$this->get_scripts( $reusable_blocks );
|
632 |
+
}
|
633 |
+
} else {
|
634 |
+
// Get JS for the Block.
|
635 |
+
$this->get_block_js( $block );
|
636 |
+
}
|
637 |
+
}
|
638 |
+
}
|
639 |
+
}
|
640 |
+
|
641 |
+
/**
|
642 |
+
* Get Buttons default array.
|
643 |
+
*
|
644 |
+
* @since 0.0.1
|
645 |
+
*/
|
646 |
+
public static function get_button_defaults() {
|
647 |
+
|
648 |
+
$default = array();
|
649 |
+
|
650 |
+
for ( $i = 1; $i <= 2; $i++ ) {
|
651 |
+
array_push(
|
652 |
+
$default,
|
653 |
+
array(
|
654 |
+
'size' => '',
|
655 |
+
'vPadding' => 10,
|
656 |
+
'hPadding' => 14,
|
657 |
+
'borderWidth' => 1,
|
658 |
+
'borderRadius' => 2,
|
659 |
+
'borderStyle' => 'solid',
|
660 |
+
'borderColor' => '#333',
|
661 |
+
'borderHColor' => '#333',
|
662 |
+
'color' => '#333',
|
663 |
+
'background' => '',
|
664 |
+
'hColor' => '#333',
|
665 |
+
'hBackground' => '',
|
666 |
+
'sizeType' => 'px',
|
667 |
+
'sizeMobile' => '',
|
668 |
+
'sizeTablet' => '',
|
669 |
+
'lineHeightType' => 'em',
|
670 |
+
'lineHeight' => '',
|
671 |
+
'lineHeightMobile' => '',
|
672 |
+
'lineHeightTablet' => '',
|
673 |
+
)
|
674 |
+
);
|
675 |
+
}
|
676 |
+
|
677 |
+
return $default;
|
678 |
+
}
|
679 |
+
|
680 |
+
/**
|
681 |
+
* Returns an option from the database for
|
682 |
+
* the admin settings page.
|
683 |
+
*
|
684 |
+
* @param string $key The option key.
|
685 |
+
* @param mixed $default Option default value if option is not available.
|
686 |
+
* @param boolean $network_override Whether to allow the network admin setting to be overridden on subsites.
|
687 |
+
* @return string Return the option value
|
688 |
+
*/
|
689 |
+
public static function get_admin_settings_option( $key, $default = false, $network_override = false ) {
|
690 |
+
|
691 |
+
// Get the site-wide option if we're in the network admin.
|
692 |
+
if ( $network_override && is_multisite() ) {
|
693 |
+
$value = get_site_option( $key, $default );
|
694 |
+
} else {
|
695 |
+
$value = get_option( $key, $default );
|
696 |
+
}
|
697 |
+
|
698 |
+
return $value;
|
699 |
+
}
|
700 |
+
|
701 |
+
/**
|
702 |
+
* Updates an option from the admin settings page.
|
703 |
+
*
|
704 |
+
* @param string $key The option key.
|
705 |
+
* @param mixed $value The value to update.
|
706 |
+
* @param bool $network Whether to allow the network admin setting to be overridden on subsites.
|
707 |
+
* @return mixed
|
708 |
+
*/
|
709 |
+
public static function update_admin_settings_option( $key, $value, $network = false ) {
|
710 |
+
|
711 |
+
// Update the site-wide option since we're in the network admin.
|
712 |
+
if ( $network && is_multisite() ) {
|
713 |
+
update_site_option( $key, $value );
|
714 |
+
} else {
|
715 |
+
update_option( $key, $value );
|
716 |
+
}
|
717 |
+
}
|
718 |
+
|
719 |
+
/**
|
720 |
+
* Is Knowledgebase.
|
721 |
+
*
|
722 |
+
* @return string
|
723 |
+
* @since 0.0.1
|
724 |
+
*/
|
725 |
+
public static function knowledgebase_data() {
|
726 |
+
|
727 |
+
$knowledgebase = array(
|
728 |
+
'enable_knowledgebase' => true,
|
729 |
+
'knowledgebase_url' => 'https://www.ultimategutenberg.com/docs/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard',
|
730 |
+
);
|
731 |
+
|
732 |
+
return $knowledgebase;
|
733 |
+
}
|
734 |
+
|
735 |
+
/**
|
736 |
+
* Is Knowledgebase.
|
737 |
+
*
|
738 |
+
* @return string
|
739 |
+
* @since 0.0.1
|
740 |
+
*/
|
741 |
+
public static function support_data() {
|
742 |
+
|
743 |
+
$support = array(
|
744 |
+
'enable_support' => true,
|
745 |
+
'support_url' => 'https://www.ultimategutenberg.com/support/?utm_source=uag-dashboard&utm_medium=link&utm_campaign=uag-dashboard',
|
746 |
+
);
|
747 |
+
|
748 |
+
return $support;
|
749 |
+
}
|
750 |
+
|
751 |
+
/**
|
752 |
+
* Provide Widget settings.
|
753 |
+
*
|
754 |
+
* @return array()
|
755 |
+
* @since 0.0.1
|
756 |
+
*/
|
757 |
+
public static function get_block_options() {
|
758 |
+
|
759 |
+
$blocks = self::$block_list;
|
760 |
+
$saved_blocks = self::get_admin_settings_option( '_uagb_blocks' );
|
761 |
+
if ( is_array( $blocks ) ) {
|
762 |
+
foreach ( $blocks as $slug => $data ) {
|
763 |
+
$_slug = str_replace( 'uagb/', '', $slug );
|
764 |
+
|
765 |
+
if ( isset( $saved_blocks[ $_slug ] ) ) {
|
766 |
+
if ( 'disabled' === $saved_blocks[ $_slug ] ) {
|
767 |
+
$blocks[ $slug ]['is_activate'] = false;
|
768 |
+
} else {
|
769 |
+
$blocks[ $slug ]['is_activate'] = true;
|
770 |
+
}
|
771 |
+
} else {
|
772 |
+
$blocks[ $slug ]['is_activate'] = ( isset( $data['default'] ) ) ? $data['default'] : false;
|
773 |
+
}
|
774 |
+
}
|
775 |
+
}
|
776 |
+
|
777 |
+
self::$block_list = $blocks;
|
778 |
+
|
779 |
+
return apply_filters( 'uagb_enabled_blocks', self::$block_list );
|
780 |
+
}
|
781 |
+
|
782 |
+
/**
|
783 |
+
* Get Json Data.
|
784 |
+
*
|
785 |
+
* @since 1.8.1
|
786 |
+
* @return Array
|
787 |
+
*/
|
788 |
+
public static function backend_load_font_awesome_icons() {
|
789 |
+
|
790 |
+
$json_file = UAGB_DIR . 'dist/blocks/uagb-controls/UAGBIcon.json';
|
791 |
+
if ( ! file_exists( $json_file ) ) {
|
792 |
+
return array();
|
793 |
+
}
|
794 |
+
|
795 |
+
// Function has already run.
|
796 |
+
if ( null !== self::$icon_json ) {
|
797 |
+
return self::$icon_json;
|
798 |
+
}
|
799 |
+
|
800 |
+
$str = file_get_contents( $json_file );
|
801 |
+
self::$icon_json = json_decode( $str, true );
|
802 |
+
return self::$icon_json;
|
803 |
+
}
|
804 |
+
|
805 |
+
/**
|
806 |
+
* Generate SVG.
|
807 |
+
*
|
808 |
+
* @since 1.8.1
|
809 |
+
* @param array $icon Decoded fontawesome json file data.
|
810 |
+
* @return string
|
811 |
+
*/
|
812 |
+
public static function render_svg_html( $icon ) {
|
813 |
+
$icon = str_replace( 'far', '', $icon );
|
814 |
+
$icon = str_replace( 'fas', '', $icon );
|
815 |
+
$icon = str_replace( 'fab', '', $icon );
|
816 |
+
$icon = str_replace( 'fa-', '', $icon );
|
817 |
+
$icon = str_replace( 'fa', '', $icon );
|
818 |
+
$icon = sanitize_text_field( esc_attr( $icon ) );
|
819 |
+
|
820 |
+
$json = UAGB_Helper::backend_load_font_awesome_icons();
|
821 |
+
$path = isset( $json[ $icon ]['svg']['brands'] ) ? $json[ $icon ]['svg']['brands']['path'] : $json[ $icon ]['svg']['solid']['path'];
|
822 |
+
$view = isset( $json[ $icon ]['svg']['brands'] ) ? $json[ $icon ]['svg']['brands']['viewBox'] : $json[ $icon ]['svg']['solid']['viewBox'];
|
823 |
+
if ( $view ) {
|
824 |
+
$view = implode( ' ', $view );
|
825 |
+
}
|
826 |
+
$htm = '<svg xmlns="http://www.w3.org/2000/svg" viewBox= "' . $view . '"><path d="' . $path . '"></path></svg>';
|
827 |
+
return $htm;
|
828 |
+
}
|
829 |
+
|
830 |
+
/**
|
831 |
+
* Returns Query.
|
832 |
+
*
|
833 |
+
* @param array $attributes The block attributes.
|
834 |
+
* @param string $block_type The Block Type.
|
835 |
+
* @since 1.8.2
|
836 |
+
*/
|
837 |
+
public static function get_query( $attributes, $block_type ) {
|
838 |
+
|
839 |
+
// Block type is grid/masonry/carousel/timeline.
|
840 |
+
$query_args = array(
|
841 |
+
'posts_per_page' => ( isset( $attributes['postsToShow'] ) ) ? $attributes['postsToShow'] : 6,
|
842 |
+
'post_status' => 'publish',
|
843 |
+
'post_type' => ( isset( $attributes['postType'] ) ) ? $attributes['postType'] : 'post',
|
844 |
+
'order' => ( isset( $attributes['order'] ) ) ? $attributes['order'] : 'desc',
|
845 |
+
'orderby' => ( isset( $attributes['orderBy'] ) ) ? $attributes['orderBy'] : 'date',
|
846 |
+
'ignore_sticky_posts' => 1,
|
847 |
+
);
|
848 |
+
|
849 |
+
if ( isset( $attributes['categories'] ) && '' != $attributes['categories'] ) {
|
850 |
+
$query_args['tax_query'][] = array(
|
851 |
+
'taxonomy' => ( isset( $attributes['taxonomyType'] ) ) ? $attributes['taxonomyType'] : 'category',
|
852 |
+
'field' => 'id',
|
853 |
+
'terms' => $attributes['categories'],
|
854 |
+
'operator' => 'IN',
|
855 |
+
);
|
856 |
+
}
|
857 |
+
|
858 |
+
$query_args = apply_filters( "uagb_post_query_args_{$block_type}", $query_args );
|
859 |
+
|
860 |
+
return new WP_Query( $query_args );
|
861 |
+
}
|
862 |
+
|
863 |
+
/**
|
864 |
+
* Get size information for all currently-registered image sizes.
|
865 |
+
*
|
866 |
+
* @global $_wp_additional_image_sizes
|
867 |
+
* @uses get_intermediate_image_sizes()
|
868 |
+
* @link https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
|
869 |
+
* @since 1.9.0
|
870 |
+
* @return array $sizes Data for all currently-registered image sizes.
|
871 |
+
*/
|
872 |
+
public static function get_image_sizes() {
|
873 |
+
|
874 |
+
global $_wp_additional_image_sizes;
|
875 |
+
|
876 |
+
$sizes = get_intermediate_image_sizes();
|
877 |
+
$image_sizes = array();
|
878 |
+
|
879 |
+
$image_sizes[] = array(
|
880 |
+
'value' => 'full',
|
881 |
+
'label' => esc_html__( 'Full', 'ultimate-addons-for-gutenberg' ),
|
882 |
+
);
|
883 |
+
|
884 |
+
foreach ( $sizes as $size ) {
|
885 |
+
if ( in_array( $size, array( 'thumbnail', 'medium', 'medium_large', 'large' ) ) ) {
|
886 |
+
$image_sizes[] = array(
|
887 |
+
'value' => $size,
|
888 |
+
'label' => ucwords( trim( str_replace( array( '-', '_' ), array( ' ', ' ' ), $size ) ) ),
|
889 |
+
);
|
890 |
+
} else {
|
891 |
+
$image_sizes[] = array(
|
892 |
+
'value' => $size,
|
893 |
+
'label' => sprintf(
|
894 |
+
'%1$s (%2$sx%3$s)',
|
895 |
+
ucwords( trim( str_replace( array( '-', '_' ), array( ' ', ' ' ), $size ) ) ),
|
896 |
+
$_wp_additional_image_sizes[ $size ]['width'],
|
897 |
+
$_wp_additional_image_sizes[ $size ]['height']
|
898 |
+
),
|
899 |
+
);
|
900 |
+
}
|
901 |
+
}
|
902 |
+
|
903 |
+
$image_sizes = apply_filters( 'uagb_post_featured_image_sizes', $image_sizes );
|
904 |
+
|
905 |
+
return $image_sizes;
|
906 |
+
}
|
907 |
+
|
908 |
+
/**
|
909 |
+
* Get Post Types.
|
910 |
+
*
|
911 |
+
* @since 1.11.0
|
912 |
+
* @access public
|
913 |
+
*/
|
914 |
+
public static function get_post_types() {
|
915 |
+
|
916 |
+
$post_types = get_post_types(
|
917 |
+
array(
|
918 |
+
'public' => true,
|
919 |
+
'show_in_rest' => true,
|
920 |
+
),
|
921 |
+
'objects'
|
922 |
+
);
|
923 |
+
|
924 |
+
$options = array();
|
925 |
+
|
926 |
+
foreach ( $post_types as $post_type ) {
|
927 |
+
if ( 'product' == $post_type->name ) {
|
928 |
+
continue;
|
929 |
+
}
|
930 |
+
|
931 |
+
$options[] = array(
|
932 |
+
'value' => $post_type->name,
|
933 |
+
'label' => $post_type->label,
|
934 |
+
);
|
935 |
+
}
|
936 |
+
|
937 |
+
return apply_filters( 'uagb_loop_post_types', $options );
|
938 |
+
}
|
939 |
+
|
940 |
+
/**
|
941 |
+
* Get all taxonomies.
|
942 |
+
*
|
943 |
+
* @since 1.11.0
|
944 |
+
* @access public
|
945 |
+
*/
|
946 |
+
public static function get_related_taxonomy() {
|
947 |
+
|
948 |
+
$post_types = self::get_post_types();
|
949 |
+
|
950 |
+
$return_array = array();
|
951 |
+
|
952 |
+
foreach ( $post_types as $key => $value ) {
|
953 |
+
$post_type = $value['value'];
|
954 |
+
|
955 |
+
$taxonomies = get_object_taxonomies( $post_type, 'objects' );
|
956 |
+
$data = array();
|
957 |
+
|
958 |
+
foreach ( $taxonomies as $tax_slug => $tax ) {
|
959 |
+
if ( ! $tax->public || ! $tax->show_ui ) {
|
960 |
+
continue;
|
961 |
+
}
|
962 |
+
|
963 |
+
$data[ $tax_slug ] = $tax;
|
964 |
+
|
965 |
+
$terms = get_terms( $tax_slug );
|
966 |
+
|
967 |
+
$related_tax = array();
|
968 |
+
|
969 |
+
if ( ! empty( $terms ) ) {
|
970 |
+
foreach ( $terms as $t_index => $t_obj ) {
|
971 |
+
$related_tax[] = array(
|
972 |
+
'id' => $t_obj->term_id,
|
973 |
+
'name' => $t_obj->name,
|
974 |
+
);
|
975 |
+
}
|
976 |
+
|
977 |
+
$return_array[ $post_type ]['terms'][ $tax_slug ] = $related_tax;
|
978 |
+
}
|
979 |
+
}
|
980 |
+
|
981 |
+
$return_array[ $post_type ]['taxonomy'] = $data;
|
982 |
+
}
|
983 |
+
|
984 |
+
return apply_filters( 'uagb_post_loop_taxonomies', $return_array );
|
985 |
+
}
|
986 |
+
|
987 |
+
/**
|
988 |
+
* Get flag if more than 5 pages are build using UAG.
|
989 |
+
*
|
990 |
+
* @since 1.10.0
|
991 |
+
* @return boolean true/false Flag if more than 5 pages are build using UAG.
|
992 |
+
*/
|
993 |
+
public static function show_rating_notice() {
|
994 |
+
|
995 |
+
$posts_created_with_uag = get_option( 'posts-created-with-uagb' );
|
996 |
+
|
997 |
+
if ( false === $posts_created_with_uag ) {
|
998 |
+
$query_args = array(
|
999 |
+
'posts_per_page' => -1,
|
1000 |
+
'post_status' => 'publish',
|
1001 |
+
'post_type' => 'any',
|
1002 |
+
);
|
1003 |
+
|
1004 |
+
$query = new WP_Query( $query_args );
|
1005 |
+
|
1006 |
+
$uag_post_count = 0;
|
1007 |
+
|
1008 |
+
if ( isset( $query->post_count ) && $query->post_count > 0 ) {
|
1009 |
+
foreach ( $query->posts as $key => $post ) {
|
1010 |
+
if ( $uag_post_count >= 5 ) {
|
1011 |
+
break;
|
1012 |
+
}
|
1013 |
+
|
1014 |
+
if ( false !== strpos( $post->post_content, '<!-- wp:uagb/' ) ) {
|
1015 |
+
$uag_post_count++;
|
1016 |
+
}
|
1017 |
+
}
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
if ( $uag_post_count >= 5 ) {
|
1021 |
+
update_option( 'posts-created-with-uagb', $uag_post_count );
|
1022 |
+
|
1023 |
+
$posts_created_with_uag = $uag_post_count;
|
1024 |
+
}
|
1025 |
+
}
|
1026 |
+
|
1027 |
+
return ( $posts_created_with_uag >= 5 );
|
1028 |
+
}
|
1029 |
+
|
1030 |
+
/**
|
1031 |
+
* Get - RGBA Color
|
1032 |
+
*
|
1033 |
+
* Get HEX color and return RGBA. Default return RGB color.
|
1034 |
+
*
|
1035 |
+
* @param var $color Gets the color value.
|
1036 |
+
* @param var $opacity Gets the opacity value.
|
1037 |
+
* @param array $is_array Gets an array of the value.
|
1038 |
+
* @since 1.11.0
|
1039 |
+
*/
|
1040 |
+
public static function hex2rgba( $color, $opacity = false, $is_array = false ) {
|
1041 |
+
|
1042 |
+
$default = $color;
|
1043 |
+
|
1044 |
+
// Return default if no color provided.
|
1045 |
+
if ( empty( $color ) ) {
|
1046 |
+
return $default;
|
1047 |
+
}
|
1048 |
+
|
1049 |
+
// Sanitize $color if "#" is provided.
|
1050 |
+
if ( '#' == $color[0] ) {
|
1051 |
+
$color = substr( $color, 1 );
|
1052 |
+
}
|
1053 |
+
|
1054 |
+
// Check if color has 6 or 3 characters and get values.
|
1055 |
+
if ( strlen( $color ) == 6 ) {
|
1056 |
+
$hex = array( $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] );
|
1057 |
+
} elseif ( strlen( $color ) == 3 ) {
|
1058 |
+
$hex = array( $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] );
|
1059 |
+
} else {
|
1060 |
+
return $default;
|
1061 |
+
}
|
1062 |
+
|
1063 |
+
// Convert hexadec to rgb.
|
1064 |
+
$rgb = array_map( 'hexdec', $hex );
|
1065 |
+
|
1066 |
+
// Check if opacity is set(rgba or rgb).
|
1067 |
+
if ( false !== $opacity && '' !== $opacity ) {
|
1068 |
+
if ( abs( $opacity ) > 1 ) {
|
1069 |
+
$opacity = $opacity / 100;
|
1070 |
+
}
|
1071 |
+
$output = 'rgba(' . implode( ',', $rgb ) . ',' . $opacity . ')';
|
1072 |
+
} else {
|
1073 |
+
$output = 'rgb(' . implode( ',', $rgb ) . ')';
|
1074 |
+
}
|
1075 |
+
|
1076 |
+
if ( $is_array ) {
|
1077 |
+
return $rgb;
|
1078 |
+
} else {
|
1079 |
+
// Return rgb(a) color string.
|
1080 |
+
return $output;
|
1081 |
+
}
|
1082 |
+
}
|
1083 |
+
}
|
1084 |
+
|
1085 |
+
/**
|
1086 |
+
* Prepare if class 'UAGB_Helper' exist.
|
1087 |
+
* Kicking this off by calling 'get_instance()' method
|
1088 |
+
*/
|
1089 |
+
UAGB_Helper::get_instance();
|
1090 |
+
}
|
classes/class-uagb-init-blocks.php
CHANGED
@@ -1,366 +1,366 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* UAGB Blocks Initializer
|
4 |
-
*
|
5 |
-
* Enqueue CSS/JS of all the blocks.
|
6 |
-
*
|
7 |
-
* @since 1.0.0
|
8 |
-
* @package UAGB
|
9 |
-
*/
|
10 |
-
|
11 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit; // Exit if accessed directly.
|
13 |
-
}
|
14 |
-
|
15 |
-
/**
|
16 |
-
* UAGB_Init_Blocks.
|
17 |
-
*
|
18 |
-
* @package UAGB
|
19 |
-
*/
|
20 |
-
class UAGB_Init_Blocks {
|
21 |
-
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Member Variable
|
25 |
-
*
|
26 |
-
* @var instance
|
27 |
-
*/
|
28 |
-
private static $instance;
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Initiator
|
32 |
-
*/
|
33 |
-
public static function get_instance() {
|
34 |
-
if ( ! isset( self::$instance ) ) {
|
35 |
-
self::$instance = new self;
|
36 |
-
}
|
37 |
-
return self::$instance;
|
38 |
-
}
|
39 |
-
|
40 |
-
/**
|
41 |
-
* Constructor
|
42 |
-
*/
|
43 |
-
public function __construct() {
|
44 |
-
// Hook: Frontend assets.
|
45 |
-
add_action( 'enqueue_block_assets', array( $this, 'block_assets' ) );
|
46 |
-
|
47 |
-
// Hook: Editor assets.
|
48 |
-
add_action( 'enqueue_block_editor_assets', array( $this, 'editor_assets' ) );
|
49 |
-
|
50 |
-
add_filter( 'block_categories', array( $this, 'register_block_category' ), 10, 2 );
|
51 |
-
}
|
52 |
-
|
53 |
-
/**
|
54 |
-
* Gutenberg block category for UAGB.
|
55 |
-
*
|
56 |
-
* @param array $categories Block categories.
|
57 |
-
* @param object $post Post object.
|
58 |
-
* @since 1.0.0
|
59 |
-
*/
|
60 |
-
function register_block_category( $categories, $post ) {
|
61 |
-
return array_merge(
|
62 |
-
$categories,
|
63 |
-
array(
|
64 |
-
array(
|
65 |
-
'slug' => 'uagb',
|
66 |
-
'title' => __( 'Ultimate Addons Blocks', 'ultimate-addons-for-gutenberg' ),
|
67 |
-
),
|
68 |
-
)
|
69 |
-
);
|
70 |
-
}
|
71 |
-
|
72 |
-
/**
|
73 |
-
* Enqueue Gutenberg block assets for both frontend + backend.
|
74 |
-
*
|
75 |
-
* @since 1.0.0
|
76 |
-
*/
|
77 |
-
function block_assets() {
|
78 |
-
// Styles.
|
79 |
-
wp_enqueue_style(
|
80 |
-
'uagb-block-css', // Handle.
|
81 |
-
UAGB_URL . 'dist/blocks.style.build.css', // Block style CSS.
|
82 |
-
array(),
|
83 |
-
UAGB_VER
|
84 |
-
);
|
85 |
-
|
86 |
-
$blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks', array() );
|
87 |
-
|
88 |
-
$masonry_flag = ( isset( $blocks['post-masonry'] ) && 'disabled' == $blocks['post-masonry'] ) ? false : true;
|
89 |
-
$cf7_flag = ( isset( $blocks['cf7-styler'] ) && 'disabled' == $blocks['cf7-styler'] ) ? false : true;
|
90 |
-
$slick_flag = (
|
91 |
-
( isset( $blocks['post-carousel'] ) && 'disabled' == $blocks['post-carousel'] ) &&
|
92 |
-
( isset( $blocks['testimonial'] ) && 'disabled' == $blocks['testimonial'] )
|
93 |
-
) ? false : true;
|
94 |
-
$timeline_flag = (
|
95 |
-
( isset( $blocks['post-timeline'] ) && 'disabled' == $blocks['post-timeline'] ) &&
|
96 |
-
( isset( $blocks['content-timeline'] ) && 'disabled' == $blocks['content-timeline'] )
|
97 |
-
) ? false : true;
|
98 |
-
|
99 |
-
$carousel_flag = ( isset( $blocks['post-carousel'] ) && 'disabled' == $blocks['post-carousel'] ) ? false : true;
|
100 |
-
|
101 |
-
if ( $masonry_flag ) {
|
102 |
-
|
103 |
-
// Scripts.
|
104 |
-
wp_enqueue_script(
|
105 |
-
'uagb-masonry', // Handle.
|
106 |
-
UAGB_URL . 'assets/js/isotope.min.js',
|
107 |
-
array( 'jquery' ), // Dependencies, defined above.
|
108 |
-
UAGB_VER,
|
109 |
-
false // Enqueue the script in the footer.
|
110 |
-
);
|
111 |
-
|
112 |
-
wp_enqueue_script(
|
113 |
-
'uagb-imagesloaded', // Handle.
|
114 |
-
UAGB_URL . 'assets/js/imagesloaded.min.js',
|
115 |
-
array( 'jquery' ), // Dependencies, defined above.
|
116 |
-
UAGB_VER,
|
117 |
-
false // Enqueue the script in the footer.
|
118 |
-
);
|
119 |
-
}
|
120 |
-
|
121 |
-
if ( ! ( isset( $blocks['table-of-contents'] ) && 'disabled' == $blocks['table-of-contents'] ) ) {
|
122 |
-
|
123 |
-
wp_enqueue_script(
|
124 |
-
'uagb-table-of-contents', // Handle.
|
125 |
-
UAGB_URL . 'assets/js/table-of-contents.js',
|
126 |
-
array( 'jquery' ), // Dependencies, defined above.
|
127 |
-
UAGB_VER,
|
128 |
-
false // Enqueue the script in the footer.
|
129 |
-
);
|
130 |
-
}
|
131 |
-
|
132 |
-
$value = true;
|
133 |
-
|
134 |
-
if ( did_action( 'elementor/loaded' ) ) {
|
135 |
-
$value = false;
|
136 |
-
}
|
137 |
-
|
138 |
-
$enable_font_awesome = apply_filters( 'uagb_font_awesome_enable', $value );
|
139 |
-
|
140 |
-
if ( $enable_font_awesome ) {
|
141 |
-
$font_awesome = apply_filters( 'uagb_font_awesome_url', 'https://use.fontawesome.com/releases/v5.6.0/css/all.css' );
|
142 |
-
// Font Awesome.
|
143 |
-
wp_enqueue_style(
|
144 |
-
'uagb-fontawesome-css', // Handle.
|
145 |
-
$font_awesome, // Block style CSS.
|
146 |
-
array(),
|
147 |
-
UAGB_VER
|
148 |
-
);
|
149 |
-
}
|
150 |
-
|
151 |
-
if ( $slick_flag ) {
|
152 |
-
|
153 |
-
// Scripts.
|
154 |
-
wp_enqueue_script(
|
155 |
-
'uagb-slick-js', // Handle.
|
156 |
-
UAGB_URL . 'assets/js/slick.min.js',
|
157 |
-
array( 'jquery' ), // Dependencies, defined above.
|
158 |
-
UAGB_VER,
|
159 |
-
false // Enqueue the script in the footer.
|
160 |
-
);
|
161 |
-
|
162 |
-
// Styles.
|
163 |
-
wp_enqueue_style(
|
164 |
-
'uagb-slick-css', // Handle.
|
165 |
-
UAGB_URL . 'assets/css/slick.css', // Block style CSS.
|
166 |
-
array(),
|
167 |
-
UAGB_VER
|
168 |
-
);
|
169 |
-
}
|
170 |
-
|
171 |
-
if ( $timeline_flag ) {
|
172 |
-
|
173 |
-
// Timeline js.
|
174 |
-
wp_enqueue_script(
|
175 |
-
'uagb-timeline-js', // Handle.
|
176 |
-
UAGB_URL . 'assets/js/timeline.js',
|
177 |
-
array( 'jquery' ),
|
178 |
-
UAGB_VER,
|
179 |
-
true // Enqueue the script in the footer.
|
180 |
-
);
|
181 |
-
}
|
182 |
-
|
183 |
-
if ( $carousel_flag ) {
|
184 |
-
// Carousel js.
|
185 |
-
wp_enqueue_script(
|
186 |
-
'uagb-carousel-js', // Handle.
|
187 |
-
UAGB_URL . 'assets/js/post-carousel.js',
|
188 |
-
array( 'jquery' ),
|
189 |
-
UAGB_VER,
|
190 |
-
true // Enqueue the script in the footer.
|
191 |
-
);
|
192 |
-
}
|
193 |
-
|
194 |
-
if ( ! wp_script_is( 'jquery', 'enqueued' ) ) {
|
195 |
-
wp_enqueue_script( 'jquery' );
|
196 |
-
}
|
197 |
-
|
198 |
-
if ( $cf7_flag ) {
|
199 |
-
|
200 |
-
if ( ! wp_script_is( 'contact-form-7', 'enqueued' ) ) {
|
201 |
-
wp_enqueue_script( 'contact-form-7' );
|
202 |
-
}
|
203 |
-
|
204 |
-
if ( ! wp_script_is( ' wpcf7-admin', 'enqueued' ) ) {
|
205 |
-
wp_enqueue_script( ' wpcf7-admin' );
|
206 |
-
}
|
207 |
-
}
|
208 |
-
|
209 |
-
} // End function editor_assets().
|
210 |
-
|
211 |
-
/**
|
212 |
-
* Enqueue Gutenberg block assets for backend editor.
|
213 |
-
*
|
214 |
-
* @since 1.0.0
|
215 |
-
*/
|
216 |
-
function editor_assets() {
|
217 |
-
// Scripts.
|
218 |
-
wp_enqueue_script(
|
219 |
-
'uagb-block-editor-js', // Handle.
|
220 |
-
UAGB_URL . 'dist/blocks.build.js',
|
221 |
-
array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor', 'wp-api-fetch' ), // Dependencies, defined above.
|
222 |
-
UAGB_VER,
|
223 |
-
true // Enqueue the script in the footer.
|
224 |
-
);
|
225 |
-
|
226 |
-
// Styles.
|
227 |
-
wp_enqueue_style(
|
228 |
-
'uagb-block-editor-css', // Handle.
|
229 |
-
UAGB_URL . 'dist/blocks.editor.build.css', // Block editor CSS.
|
230 |
-
array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
|
231 |
-
UAGB_VER
|
232 |
-
);
|
233 |
-
|
234 |
-
// Common Editor style.
|
235 |
-
wp_enqueue_style(
|
236 |
-
'uagb-block-common-editor-css', // Handle.
|
237 |
-
UAGB_URL . 'dist/blocks.commoneditorstyle.build.css', // Block editor CSS.
|
238 |
-
array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
|
239 |
-
UAGB_VER
|
240 |
-
);
|
241 |
-
|
242 |
-
wp_enqueue_script( 'uagb-deactivate-block-js', UAGB_URL . 'dist/blocks-deactivate.js', array( 'wp-blocks' ), UAGB_VER, true );
|
243 |
-
|
244 |
-
$blocks = array();
|
245 |
-
$saved_blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks' );
|
246 |
-
|
247 |
-
if ( is_array( $saved_blocks ) ) {
|
248 |
-
foreach ( $saved_blocks as $slug => $data ) {
|
249 |
-
$_slug = 'uagb/' . $slug;
|
250 |
-
$current_block = UAGB_Config::$block_attributes[ $_slug ];
|
251 |
-
|
252 |
-
if ( isset( $current_block['is_child'] ) && $current_block['is_child'] ) {
|
253 |
-
continue;
|
254 |
-
}
|
255 |
-
|
256 |
-
if ( isset( $saved_blocks[ $slug ] ) ) {
|
257 |
-
if ( 'disabled' === $saved_blocks[ $slug ] ) {
|
258 |
-
array_push( $blocks, $_slug );
|
259 |
-
}
|
260 |
-
}
|
261 |
-
}
|
262 |
-
}
|
263 |
-
|
264 |
-
wp_localize_script(
|
265 |
-
'uagb-deactivate-block-js',
|
266 |
-
'uagb_deactivate_blocks',
|
267 |
-
array(
|
268 |
-
'deactivated_blocks' => $blocks,
|
269 |
-
)
|
270 |
-
);
|
271 |
-
|
272 |
-
wp_localize_script(
|
273 |
-
'uagb-block-editor-js',
|
274 |
-
'uagb_blocks_info',
|
275 |
-
array(
|
276 |
-
'blocks' => UAGB_Config::get_block_attributes(),
|
277 |
-
'category' => 'uagb',
|
278 |
-
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
279 |
-
'cf7_forms' => $this->get_cf7_forms(),
|
280 |
-
'gf_forms' => $this->get_gravity_forms(),
|
281 |
-
'tablet_breakpoint' => UAGB_TABLET_BREAKPOINT,
|
282 |
-
'mobile_breakpoint' => UAGB_MOBILE_BREAKPOINT,
|
283 |
-
'image_sizes' => UAGB_Helper::get_image_sizes(),
|
284 |
-
'post_types' => UAGB_Helper::get_post_types(),
|
285 |
-
'all_taxonomy' => UAGB_Helper::get_related_taxonomy(),
|
286 |
-
)
|
287 |
-
);
|
288 |
-
} // End function editor_assets().
|
289 |
-
|
290 |
-
|
291 |
-
/**
|
292 |
-
* Function to integrate CF7 Forms.
|
293 |
-
*
|
294 |
-
* @since 1.10.0
|
295 |
-
*/
|
296 |
-
public function get_cf7_forms() {
|
297 |
-
$field_options = array();
|
298 |
-
|
299 |
-
if ( class_exists( 'WPCF7_ContactForm' ) ) {
|
300 |
-
$args = array(
|
301 |
-
'post_type' => 'wpcf7_contact_form',
|
302 |
-
'posts_per_page' => -1,
|
303 |
-
);
|
304 |
-
$forms = get_posts( $args );
|
305 |
-
$field_options[0] = array(
|
306 |
-
'value' => -1,
|
307 |
-
'label' => __( 'Select Form', 'ultimate-addons-for-gutenberg' ),
|
308 |
-
);
|
309 |
-
if ( $forms ) {
|
310 |
-
foreach ( $forms as $form ) {
|
311 |
-
$field_options[] = array(
|
312 |
-
'value' => $form->ID,
|
313 |
-
'label' => $form->post_title,
|
314 |
-
);
|
315 |
-
}
|
316 |
-
}
|
317 |
-
}
|
318 |
-
|
319 |
-
if ( empty( $field_options ) ) {
|
320 |
-
$field_options = array(
|
321 |
-
'-1' => __( 'You have not added any Contact Form 7 yet.', 'ultimate-addons-for-gutenberg' ),
|
322 |
-
);
|
323 |
-
}
|
324 |
-
return $field_options;
|
325 |
-
}
|
326 |
-
|
327 |
-
/**
|
328 |
-
* Returns all gravity forms with ids
|
329 |
-
*
|
330 |
-
* @since 1.12.0
|
331 |
-
* @return array Key Value paired array.
|
332 |
-
*/
|
333 |
-
public function get_gravity_forms() {
|
334 |
-
$field_options = array();
|
335 |
-
|
336 |
-
if ( class_exists( 'GFForms' ) ) {
|
337 |
-
$forms = RGFormsModel::get_forms( null, 'title' );
|
338 |
-
$field_options[0] = array(
|
339 |
-
'value' => -1,
|
340 |
-
'label' => __( 'Select Form', 'ultimate-addons-for-gutenberg' ),
|
341 |
-
);
|
342 |
-
if ( is_array( $forms ) ) {
|
343 |
-
foreach ( $forms as $form ) {
|
344 |
-
$field_options[] = array(
|
345 |
-
'value' => $form->id,
|
346 |
-
'label' => $form->title,
|
347 |
-
);
|
348 |
-
}
|
349 |
-
}
|
350 |
-
}
|
351 |
-
|
352 |
-
if ( empty( $field_options ) ) {
|
353 |
-
$field_options = array(
|
354 |
-
'-1' => __( 'You have not added any Gravity Forms yet.', 'ultimate-addons-for-gutenberg' ),
|
355 |
-
);
|
356 |
-
}
|
357 |
-
|
358 |
-
return $field_options;
|
359 |
-
}
|
360 |
-
}
|
361 |
-
|
362 |
-
/**
|
363 |
-
* Prepare if class 'UAGB_Init_Blocks' exist.
|
364 |
-
* Kicking this off by calling 'get_instance()' method
|
365 |
-
*/
|
366 |
-
UAGB_Init_Blocks::get_instance();
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UAGB Blocks Initializer
|
4 |
+
*
|
5 |
+
* Enqueue CSS/JS of all the blocks.
|
6 |
+
*
|
7 |
+
* @since 1.0.0
|
8 |
+
* @package UAGB
|
9 |
+
*/
|
10 |
+
|
11 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
+
exit; // Exit if accessed directly.
|
13 |
+
}
|
14 |
+
|
15 |
+
/**
|
16 |
+
* UAGB_Init_Blocks.
|
17 |
+
*
|
18 |
+
* @package UAGB
|
19 |
+
*/
|
20 |
+
class UAGB_Init_Blocks {
|
21 |
+
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Member Variable
|
25 |
+
*
|
26 |
+
* @var instance
|
27 |
+
*/
|
28 |
+
private static $instance;
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Initiator
|
32 |
+
*/
|
33 |
+
public static function get_instance() {
|
34 |
+
if ( ! isset( self::$instance ) ) {
|
35 |
+
self::$instance = new self;
|
36 |
+
}
|
37 |
+
return self::$instance;
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Constructor
|
42 |
+
*/
|
43 |
+
public function __construct() {
|
44 |
+
// Hook: Frontend assets.
|
45 |
+
add_action( 'enqueue_block_assets', array( $this, 'block_assets' ) );
|
46 |
+
|
47 |
+
// Hook: Editor assets.
|
48 |
+
add_action( 'enqueue_block_editor_assets', array( $this, 'editor_assets' ) );
|
49 |
+
|
50 |
+
add_filter( 'block_categories', array( $this, 'register_block_category' ), 10, 2 );
|
51 |
+
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Gutenberg block category for UAGB.
|
55 |
+
*
|
56 |
+
* @param array $categories Block categories.
|
57 |
+
* @param object $post Post object.
|
58 |
+
* @since 1.0.0
|
59 |
+
*/
|
60 |
+
function register_block_category( $categories, $post ) {
|
61 |
+
return array_merge(
|
62 |
+
$categories,
|
63 |
+
array(
|
64 |
+
array(
|
65 |
+
'slug' => 'uagb',
|
66 |
+
'title' => __( 'Ultimate Addons Blocks', 'ultimate-addons-for-gutenberg' ),
|
67 |
+
),
|
68 |
+
)
|
69 |
+
);
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Enqueue Gutenberg block assets for both frontend + backend.
|
74 |
+
*
|
75 |
+
* @since 1.0.0
|
76 |
+
*/
|
77 |
+
function block_assets() {
|
78 |
+
// Styles.
|
79 |
+
wp_enqueue_style(
|
80 |
+
'uagb-block-css', // Handle.
|
81 |
+
UAGB_URL . 'dist/blocks.style.build.css', // Block style CSS.
|
82 |
+
array(),
|
83 |
+
UAGB_VER
|
84 |
+
);
|
85 |
+
|
86 |
+
$blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks', array() );
|
87 |
+
|
88 |
+
$masonry_flag = ( isset( $blocks['post-masonry'] ) && 'disabled' == $blocks['post-masonry'] ) ? false : true;
|
89 |
+
$cf7_flag = ( isset( $blocks['cf7-styler'] ) && 'disabled' == $blocks['cf7-styler'] ) ? false : true;
|
90 |
+
$slick_flag = (
|
91 |
+
( isset( $blocks['post-carousel'] ) && 'disabled' == $blocks['post-carousel'] ) &&
|
92 |
+
( isset( $blocks['testimonial'] ) && 'disabled' == $blocks['testimonial'] )
|
93 |
+
) ? false : true;
|
94 |
+
$timeline_flag = (
|
95 |
+
( isset( $blocks['post-timeline'] ) && 'disabled' == $blocks['post-timeline'] ) &&
|
96 |
+
( isset( $blocks['content-timeline'] ) && 'disabled' == $blocks['content-timeline'] )
|
97 |
+
) ? false : true;
|
98 |
+
|
99 |
+
$carousel_flag = ( isset( $blocks['post-carousel'] ) && 'disabled' == $blocks['post-carousel'] ) ? false : true;
|
100 |
+
|
101 |
+
if ( $masonry_flag ) {
|
102 |
+
|
103 |
+
// Scripts.
|
104 |
+
wp_enqueue_script(
|
105 |
+
'uagb-masonry', // Handle.
|
106 |
+
UAGB_URL . 'assets/js/isotope.min.js',
|
107 |
+
array( 'jquery' ), // Dependencies, defined above.
|
108 |
+
UAGB_VER,
|
109 |
+
false // Enqueue the script in the footer.
|
110 |
+
);
|
111 |
+
|
112 |
+
wp_enqueue_script(
|
113 |
+
'uagb-imagesloaded', // Handle.
|
114 |
+
UAGB_URL . 'assets/js/imagesloaded.min.js',
|
115 |
+
array( 'jquery' ), // Dependencies, defined above.
|
116 |
+
UAGB_VER,
|
117 |
+
false // Enqueue the script in the footer.
|
118 |
+
);
|
119 |
+
}
|
120 |
+
|
121 |
+
if ( ! ( isset( $blocks['table-of-contents'] ) && 'disabled' == $blocks['table-of-contents'] ) ) {
|
122 |
+
|
123 |
+
wp_enqueue_script(
|
124 |
+
'uagb-table-of-contents', // Handle.
|
125 |
+
UAGB_URL . 'assets/js/table-of-contents.js',
|
126 |
+
array( 'jquery' ), // Dependencies, defined above.
|
127 |
+
UAGB_VER,
|
128 |
+
false // Enqueue the script in the footer.
|
129 |
+
);
|
130 |
+
}
|
131 |
+
|
132 |
+
$value = true;
|
133 |
+
|
134 |
+
if ( did_action( 'elementor/loaded' ) ) {
|
135 |
+
$value = false;
|
136 |
+
}
|
137 |
+
|
138 |
+
$enable_font_awesome = apply_filters( 'uagb_font_awesome_enable', $value );
|
139 |
+
|
140 |
+
if ( $enable_font_awesome ) {
|
141 |
+
$font_awesome = apply_filters( 'uagb_font_awesome_url', 'https://use.fontawesome.com/releases/v5.6.0/css/all.css' );
|
142 |
+
// Font Awesome.
|
143 |
+
wp_enqueue_style(
|
144 |
+
'uagb-fontawesome-css', // Handle.
|
145 |
+
$font_awesome, // Block style CSS.
|
146 |
+
array(),
|
147 |
+
UAGB_VER
|
148 |
+
);
|
149 |
+
}
|
150 |
+
|
151 |
+
if ( $slick_flag ) {
|
152 |
+
|
153 |
+
// Scripts.
|
154 |
+
wp_enqueue_script(
|
155 |
+
'uagb-slick-js', // Handle.
|
156 |
+
UAGB_URL . 'assets/js/slick.min.js',
|
157 |
+
array( 'jquery' ), // Dependencies, defined above.
|
158 |
+
UAGB_VER,
|
159 |
+
false // Enqueue the script in the footer.
|
160 |
+
);
|
161 |
+
|
162 |
+
// Styles.
|
163 |
+
wp_enqueue_style(
|
164 |
+
'uagb-slick-css', // Handle.
|
165 |
+
UAGB_URL . 'assets/css/slick.css', // Block style CSS.
|
166 |
+
array(),
|
167 |
+
UAGB_VER
|
168 |
+
);
|
169 |
+
}
|
170 |
+
|
171 |
+
if ( $timeline_flag ) {
|
172 |
+
|
173 |
+
// Timeline js.
|
174 |
+
wp_enqueue_script(
|
175 |
+
'uagb-timeline-js', // Handle.
|
176 |
+
UAGB_URL . 'assets/js/timeline.js',
|
177 |
+
array( 'jquery' ),
|
178 |
+
UAGB_VER,
|
179 |
+
true // Enqueue the script in the footer.
|
180 |
+
);
|
181 |
+
}
|
182 |
+
|
183 |
+
if ( $carousel_flag ) {
|
184 |
+
// Carousel js.
|
185 |
+
wp_enqueue_script(
|
186 |
+
'uagb-carousel-js', // Handle.
|
187 |
+
UAGB_URL . 'assets/js/post-carousel.js',
|
188 |
+
array( 'jquery' ),
|
189 |
+
UAGB_VER,
|
190 |
+
true // Enqueue the script in the footer.
|
191 |
+
);
|
192 |
+
}
|
193 |
+
|
194 |
+
if ( ! wp_script_is( 'jquery', 'enqueued' ) ) {
|
195 |
+
wp_enqueue_script( 'jquery' );
|
196 |
+
}
|
197 |
+
|
198 |
+
if ( $cf7_flag ) {
|
199 |
+
|
200 |
+
if ( ! wp_script_is( 'contact-form-7', 'enqueued' ) ) {
|
201 |
+
wp_enqueue_script( 'contact-form-7' );
|
202 |
+
}
|
203 |
+
|
204 |
+
if ( ! wp_script_is( ' wpcf7-admin', 'enqueued' ) ) {
|
205 |
+
wp_enqueue_script( ' wpcf7-admin' );
|
206 |
+
}
|
207 |
+
}
|
208 |
+
|
209 |
+
} // End function editor_assets().
|
210 |
+
|
211 |
+
/**
|
212 |
+
* Enqueue Gutenberg block assets for backend editor.
|
213 |
+
*
|
214 |
+
* @since 1.0.0
|
215 |
+
*/
|
216 |
+
function editor_assets() {
|
217 |
+
// Scripts.
|
218 |
+
wp_enqueue_script(
|
219 |
+
'uagb-block-editor-js', // Handle.
|
220 |
+
UAGB_URL . 'dist/blocks.build.js',
|
221 |
+
array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor', 'wp-api-fetch' ), // Dependencies, defined above.
|
222 |
+
UAGB_VER,
|
223 |
+
true // Enqueue the script in the footer.
|
224 |
+
);
|
225 |
+
|
226 |
+
// Styles.
|
227 |
+
wp_enqueue_style(
|
228 |
+
'uagb-block-editor-css', // Handle.
|
229 |
+
UAGB_URL . 'dist/blocks.editor.build.css', // Block editor CSS.
|
230 |
+
array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
|
231 |
+
UAGB_VER
|
232 |
+
);
|
233 |
+
|
234 |
+
// Common Editor style.
|
235 |
+
wp_enqueue_style(
|
236 |
+
'uagb-block-common-editor-css', // Handle.
|
237 |
+
UAGB_URL . 'dist/blocks.commoneditorstyle.build.css', // Block editor CSS.
|
238 |
+
array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
|
239 |
+
UAGB_VER
|
240 |
+
);
|
241 |
+
|
242 |
+
wp_enqueue_script( 'uagb-deactivate-block-js', UAGB_URL . 'dist/blocks-deactivate.js', array( 'wp-blocks' ), UAGB_VER, true );
|
243 |
+
|
244 |
+
$blocks = array();
|
245 |
+
$saved_blocks = UAGB_Helper::get_admin_settings_option( '_uagb_blocks' );
|
246 |
+
|
247 |
+
if ( is_array( $saved_blocks ) ) {
|
248 |
+
foreach ( $saved_blocks as $slug => $data ) {
|
249 |
+
$_slug = 'uagb/' . $slug;
|
250 |
+
$current_block = UAGB_Config::$block_attributes[ $_slug ];
|
251 |
+
|
252 |
+
if ( isset( $current_block['is_child'] ) && $current_block['is_child'] ) {
|
253 |
+
continue;
|
254 |
+
}
|
255 |
+
|
256 |
+
if ( isset( $saved_blocks[ $slug ] ) ) {
|
257 |
+
if ( 'disabled' === $saved_blocks[ $slug ] ) {
|
258 |
+
array_push( $blocks, $_slug );
|
259 |
+
}
|
260 |
+
}
|
261 |
+
}
|
262 |
+
}
|
263 |
+
|
264 |
+
wp_localize_script(
|
265 |
+
'uagb-deactivate-block-js',
|
266 |
+
'uagb_deactivate_blocks',
|
267 |
+
array(
|
268 |
+
'deactivated_blocks' => $blocks,
|
269 |
+
)
|
270 |
+
);
|
271 |
+
|
272 |
+
wp_localize_script(
|
273 |
+
'uagb-block-editor-js',
|
274 |
+
'uagb_blocks_info',
|
275 |
+
array(
|
276 |
+
'blocks' => UAGB_Config::get_block_attributes(),
|
277 |
+
'category' => 'uagb',
|
278 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
279 |
+
'cf7_forms' => $this->get_cf7_forms(),
|
280 |
+
'gf_forms' => $this->get_gravity_forms(),
|
281 |
+
'tablet_breakpoint' => UAGB_TABLET_BREAKPOINT,
|
282 |
+
'mobile_breakpoint' => UAGB_MOBILE_BREAKPOINT,
|
283 |
+
'image_sizes' => UAGB_Helper::get_image_sizes(),
|
284 |
+
'post_types' => UAGB_Helper::get_post_types(),
|
285 |
+
'all_taxonomy' => UAGB_Helper::get_related_taxonomy(),
|
286 |
+
)
|
287 |
+
);
|
288 |
+
} // End function editor_assets().
|
289 |
+
|
290 |
+
|
291 |
+
/**
|
292 |
+
* Function to integrate CF7 Forms.
|
293 |
+
*
|
294 |
+
* @since 1.10.0
|
295 |
+
*/
|
296 |
+
public function get_cf7_forms() {
|
297 |
+
$field_options = array();
|
298 |
+
|
299 |
+
if ( class_exists( 'WPCF7_ContactForm' ) ) {
|
300 |
+
$args = array(
|
301 |
+
'post_type' => 'wpcf7_contact_form',
|
302 |
+
'posts_per_page' => -1,
|
303 |
+
);
|
304 |
+
$forms = get_posts( $args );
|
305 |
+
$field_options[0] = array(
|
306 |
+
'value' => -1,
|
307 |
+
'label' => __( 'Select Form', 'ultimate-addons-for-gutenberg' ),
|
308 |
+
);
|
309 |
+
if ( $forms ) {
|
310 |
+
foreach ( $forms as $form ) {
|
311 |
+
$field_options[] = array(
|
312 |
+
'value' => $form->ID,
|
313 |
+
'label' => $form->post_title,
|
314 |
+
);
|
315 |
+
}
|
316 |
+
}
|
317 |
+
}
|
318 |
+
|
319 |
+
if ( empty( $field_options ) ) {
|
320 |
+
$field_options = array(
|
321 |
+
'-1' => __( 'You have not added any Contact Form 7 yet.', 'ultimate-addons-for-gutenberg' ),
|
322 |
+
);
|
323 |
+
}
|
324 |
+
return $field_options;
|
325 |
+
}
|
326 |
+
|
327 |
+
/**
|
328 |
+
* Returns all gravity forms with ids
|
329 |
+
*
|
330 |
+
* @since 1.12.0
|
331 |
+
* @return array Key Value paired array.
|
332 |
+
*/
|
333 |
+
public function get_gravity_forms() {
|
334 |
+
$field_options = array();
|
335 |
+
|
336 |
+
if ( class_exists( 'GFForms' ) ) {
|
337 |
+
$forms = RGFormsModel::get_forms( null, 'title' );
|
338 |
+
$field_options[0] = array(
|
339 |
+
'value' => -1,
|
340 |
+
'label' => __( 'Select Form', 'ultimate-addons-for-gutenberg' ),
|
341 |
+
);
|
342 |
+
if ( is_array( $forms ) ) {
|
343 |
+
foreach ( $forms as $form ) {
|
344 |
+
$field_options[] = array(
|
345 |
+
'value' => $form->id,
|
346 |
+
'label' => $form->title,
|
347 |
+
);
|
348 |
+
}
|
349 |
+
}
|
350 |
+
}
|
351 |
+
|
352 |
+
if ( empty( $field_options ) ) {
|
353 |
+
$field_options = array(
|
354 |
+
'-1' => __( 'You have not added any Gravity Forms yet.', 'ultimate-addons-for-gutenberg' ),
|
355 |
+
);
|
356 |
+
}
|
357 |
+
|
358 |
+
return $field_options;
|
359 |
+
}
|
360 |
+
}
|
361 |
+
|
362 |
+
/**
|
363 |
+
* Prepare if class 'UAGB_Init_Blocks' exist.
|
364 |
+
* Kicking this off by calling 'get_instance()' method
|
365 |
+
*/
|
366 |
+
UAGB_Init_Blocks::get_instance();
|
classes/class-uagb-loader.php
CHANGED
@@ -1,210 +1,210 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* UAGB Loader.
|
4 |
-
*
|
5 |
-
* @package UAGB
|
6 |
-
*/
|
7 |
-
|
8 |
-
if ( ! class_exists( 'UAGB_Loader' ) ) {
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Class UAGB_Loader.
|
12 |
-
*/
|
13 |
-
final class UAGB_Loader {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Member Variable
|
17 |
-
*
|
18 |
-
* @var instance
|
19 |
-
*/
|
20 |
-
private static $instance;
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Initiator
|
24 |
-
*/
|
25 |
-
public static function get_instance() {
|
26 |
-
if ( ! isset( self::$instance ) ) {
|
27 |
-
self::$instance = new self;
|
28 |
-
}
|
29 |
-
return self::$instance;
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Constructor
|
34 |
-
*/
|
35 |
-
public function __construct() {
|
36 |
-
|
37 |
-
// Activation hook.
|
38 |
-
register_activation_hook( UAGB_FILE, array( $this, 'activation_reset' ) );
|
39 |
-
|
40 |
-
// deActivation hook.
|
41 |
-
register_deactivation_hook( UAGB_FILE, array( $this, 'deactivation_reset' ) );
|
42 |
-
|
43 |
-
if ( ! $this->is_gutenberg_active() ) {
|
44 |
-
/* TO DO */
|
45 |
-
add_action( 'admin_notices', array( $this, 'uagb_fails_to_load' ) );
|
46 |
-
return;
|
47 |
-
}
|
48 |
-
|
49 |
-
$this->define_constants();
|
50 |
-
|
51 |
-
$this->loader();
|
52 |
-
|
53 |
-
add_action( 'plugins_loaded', array( $this, 'load_plugin' ) );
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Loads Other files.
|
58 |
-
*
|
59 |
-
* @since 1.0.0
|
60 |
-
*
|
61 |
-
* @return void
|
62 |
-
*/
|
63 |
-
public function loader() {
|
64 |
-
require( UAGB_DIR . 'classes/class-uagb-helper.php' );
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Defines all constants
|
69 |
-
*
|
70 |
-
* @since 1.0.0
|
71 |
-
*/
|
72 |
-
public function define_constants() {
|
73 |
-
define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
|
74 |
-
define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
|
75 |
-
define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
|
76 |
-
define( 'UAGB_VER', '1.12.
|
77 |
-
define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
|
78 |
-
define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
|
79 |
-
define( 'UAGB_SLUG', 'uag' );
|
80 |
-
define( 'UAGB_TABLET_BREAKPOINT', '976' );
|
81 |
-
define( 'UAGB_MOBILE_BREAKPOINT', '767' );
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Loads plugin files.
|
86 |
-
*
|
87 |
-
* @since 1.0.0
|
88 |
-
*
|
89 |
-
* @return void
|
90 |
-
*/
|
91 |
-
function load_plugin() {
|
92 |
-
|
93 |
-
$this->load_textdomain();
|
94 |
-
|
95 |
-
require( UAGB_DIR . 'classes/class-uagb-core-plugin.php' );
|
96 |
-
require_once UAGB_DIR . 'dist/blocks/post/index.php';
|
97 |
-
require_once UAGB_DIR . 'dist/blocks/post-timeline/index.php';
|
98 |
-
require_once UAGB_DIR . 'dist/blocks/cf7-styler/index.php';
|
99 |
-
require_once UAGB_DIR . 'dist/blocks/gf-styler/index.php';
|
100 |
-
}
|
101 |
-
|
102 |
-
/**
|
103 |
-
* Check if Gutenberg is active
|
104 |
-
*
|
105 |
-
* @since 1.1.0
|
106 |
-
*
|
107 |
-
* @return boolean
|
108 |
-
*/
|
109 |
-
public function is_gutenberg_active() {
|
110 |
-
return function_exists( 'register_block_type' );
|
111 |
-
}
|
112 |
-
|
113 |
-
/**
|
114 |
-
* Load Ultimate Gutenberg Text Domain.
|
115 |
-
* This will load the translation textdomain depending on the file priorities.
|
116 |
-
* 1. Global Languages /wp-content/languages/ultimate-addons-for-gutenberg/ folder
|
117 |
-
* 2. Local dorectory /wp-content/plugins/ultimate-addons-for-gutenberg/languages/ folder
|
118 |
-
*
|
119 |
-
* @since 1.0.0
|
120 |
-
* @return void
|
121 |
-
*/
|
122 |
-
public function load_textdomain() {
|
123 |
-
|
124 |
-
/**
|
125 |
-
* Filters the languages directory path to use for AffiliateWP.
|
126 |
-
*
|
127 |
-
* @param string $lang_dir The languages directory path.
|
128 |
-
*/
|
129 |
-
$lang_dir = apply_filters( 'uagb_languages_directory', UAGB_ROOT . '/languages/' );
|
130 |
-
|
131 |
-
load_plugin_textdomain( 'ultimate-addons-for-gutenberg', false, $lang_dir );
|
132 |
-
}
|
133 |
-
|
134 |
-
/**
|
135 |
-
* Fires admin notice when Gutenberg is not installed and activated.
|
136 |
-
*
|
137 |
-
* @since 1.0.0
|
138 |
-
*
|
139 |
-
* @return void
|
140 |
-
*/
|
141 |
-
public function uagb_fails_to_load() {
|
142 |
-
$class = 'notice notice-error';
|
143 |
-
/* translators: %s: html tags */
|
144 |
-
$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>' );
|
145 |
-
|
146 |
-
$plugin = 'gutenberg/gutenberg.php';
|
147 |
-
|
148 |
-
if ( _is_gutenberg_installed( $plugin ) ) {
|
149 |
-
if ( ! current_user_can( 'activate_plugins' ) ) {
|
150 |
-
return;
|
151 |
-
}
|
152 |
-
|
153 |
-
$action_url = wp_nonce_url( 'plugins.php?action=activate&plugin=' . $plugin . '&plugin_status=all&paged=1&s', 'activate-plugin_' . $plugin );
|
154 |
-
$button_label = __( 'Activate Gutenberg', 'ultimate-addons-for-gutenberg' );
|
155 |
-
} else {
|
156 |
-
if ( ! current_user_can( 'install_plugins' ) ) {
|
157 |
-
return;
|
158 |
-
}
|
159 |
-
|
160 |
-
$action_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=gutenberg' ), 'install-plugin_gutenberg' );
|
161 |
-
$button_label = __( 'Install Gutenberg', 'ultimate-addons-for-gutenberg' );
|
162 |
-
}
|
163 |
-
|
164 |
-
$button = '<p><a href="' . $action_url . '" class="button-primary">' . $button_label . '</a></p><p></p>';
|
165 |
-
|
166 |
-
printf( '<div class="%1$s"><p>%2$s</p>%3$s</div>', esc_attr( $class ), $message, $button );
|
167 |
-
}
|
168 |
-
|
169 |
-
/**
|
170 |
-
* Activation Reset
|
171 |
-
*/
|
172 |
-
function activation_reset() {
|
173 |
-
update_option( '__uagb_do_redirect', true );
|
174 |
-
}
|
175 |
-
|
176 |
-
/**
|
177 |
-
* Deactivation Reset
|
178 |
-
*/
|
179 |
-
function deactivation_reset() {
|
180 |
-
update_option( '__uagb_do_redirect', false );
|
181 |
-
}
|
182 |
-
}
|
183 |
-
|
184 |
-
/**
|
185 |
-
* Prepare if class 'UAGB_Loader' exist.
|
186 |
-
* Kicking this off by calling 'get_instance()' method
|
187 |
-
*/
|
188 |
-
UAGB_Loader::get_instance();
|
189 |
-
}
|
190 |
-
|
191 |
-
/**
|
192 |
-
* Is Gutenberg plugin installed.
|
193 |
-
*/
|
194 |
-
if ( ! function_exists( '_is_gutenberg_installed' ) ) {
|
195 |
-
|
196 |
-
/**
|
197 |
-
* Check if Gutenberg Pro is installed
|
198 |
-
*
|
199 |
-
* @since 1.0.0
|
200 |
-
*
|
201 |
-
* @param string $plugin_path Plugin path.
|
202 |
-
* @return boolean true | false
|
203 |
-
* @access public
|
204 |
-
*/
|
205 |
-
function _is_gutenberg_installed( $plugin_path ) {
|
206 |
-
$plugins = get_plugins();
|
207 |
-
|
208 |
-
return isset( $plugins[ $plugin_path ] );
|
209 |
-
}
|
210 |
-
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UAGB Loader.
|
4 |
+
*
|
5 |
+
* @package UAGB
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! class_exists( 'UAGB_Loader' ) ) {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Class UAGB_Loader.
|
12 |
+
*/
|
13 |
+
final class UAGB_Loader {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Member Variable
|
17 |
+
*
|
18 |
+
* @var instance
|
19 |
+
*/
|
20 |
+
private static $instance;
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Initiator
|
24 |
+
*/
|
25 |
+
public static function get_instance() {
|
26 |
+
if ( ! isset( self::$instance ) ) {
|
27 |
+
self::$instance = new self;
|
28 |
+
}
|
29 |
+
return self::$instance;
|
30 |
+
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Constructor
|
34 |
+
*/
|
35 |
+
public function __construct() {
|
36 |
+
|
37 |
+
// Activation hook.
|
38 |
+
register_activation_hook( UAGB_FILE, array( $this, 'activation_reset' ) );
|
39 |
+
|
40 |
+
// deActivation hook.
|
41 |
+
register_deactivation_hook( UAGB_FILE, array( $this, 'deactivation_reset' ) );
|
42 |
+
|
43 |
+
if ( ! $this->is_gutenberg_active() ) {
|
44 |
+
/* TO DO */
|
45 |
+
add_action( 'admin_notices', array( $this, 'uagb_fails_to_load' ) );
|
46 |
+
return;
|
47 |
+
}
|
48 |
+
|
49 |
+
$this->define_constants();
|
50 |
+
|
51 |
+
$this->loader();
|
52 |
+
|
53 |
+
add_action( 'plugins_loaded', array( $this, 'load_plugin' ) );
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Loads Other files.
|
58 |
+
*
|
59 |
+
* @since 1.0.0
|
60 |
+
*
|
61 |
+
* @return void
|
62 |
+
*/
|
63 |
+
public function loader() {
|
64 |
+
require( UAGB_DIR . 'classes/class-uagb-helper.php' );
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Defines all constants
|
69 |
+
*
|
70 |
+
* @since 1.0.0
|
71 |
+
*/
|
72 |
+
public function define_constants() {
|
73 |
+
define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
|
74 |
+
define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
|
75 |
+
define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
|
76 |
+
define( 'UAGB_VER', '1.12.4' );
|
77 |
+
define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
|
78 |
+
define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
|
79 |
+
define( 'UAGB_SLUG', 'uag' );
|
80 |
+
define( 'UAGB_TABLET_BREAKPOINT', '976' );
|
81 |
+
define( 'UAGB_MOBILE_BREAKPOINT', '767' );
|
82 |
+
}
|
83 |
+
|
84 |
+
/**
|
85 |
+
* Loads plugin files.
|
86 |
+
*
|
87 |
+
* @since 1.0.0
|
88 |
+
*
|
89 |
+
* @return void
|
90 |
+
*/
|
91 |
+
function load_plugin() {
|
92 |
+
|
93 |
+
$this->load_textdomain();
|
94 |
+
|
95 |
+
require( UAGB_DIR . 'classes/class-uagb-core-plugin.php' );
|
96 |
+
require_once UAGB_DIR . 'dist/blocks/post/index.php';
|
97 |
+
require_once UAGB_DIR . 'dist/blocks/post-timeline/index.php';
|
98 |
+
require_once UAGB_DIR . 'dist/blocks/cf7-styler/index.php';
|
99 |
+
require_once UAGB_DIR . 'dist/blocks/gf-styler/index.php';
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* Check if Gutenberg is active
|
104 |
+
*
|
105 |
+
* @since 1.1.0
|
106 |
+
*
|
107 |
+
* @return boolean
|
108 |
+
*/
|
109 |
+
public function is_gutenberg_active() {
|
110 |
+
return function_exists( 'register_block_type' );
|
111 |
+
}
|
112 |
+
|
113 |
+
/**
|
114 |
+
* Load Ultimate Gutenberg Text Domain.
|
115 |
+
* This will load the translation textdomain depending on the file priorities.
|
116 |
+
* 1. Global Languages /wp-content/languages/ultimate-addons-for-gutenberg/ folder
|
117 |
+
* 2. Local dorectory /wp-content/plugins/ultimate-addons-for-gutenberg/languages/ folder
|
118 |
+
*
|
119 |
+
* @since 1.0.0
|
120 |
+
* @return void
|
121 |
+
*/
|
122 |
+
public function load_textdomain() {
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Filters the languages directory path to use for AffiliateWP.
|
126 |
+
*
|
127 |
+
* @param string $lang_dir The languages directory path.
|
128 |
+
*/
|
129 |
+
$lang_dir = apply_filters( 'uagb_languages_directory', UAGB_ROOT . '/languages/' );
|
130 |
+
|
131 |
+
load_plugin_textdomain( 'ultimate-addons-for-gutenberg', false, $lang_dir );
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* Fires admin notice when Gutenberg is not installed and activated.
|
136 |
+
*
|
137 |
+
* @since 1.0.0
|
138 |
+
*
|
139 |
+
* @return void
|
140 |
+
*/
|
141 |
+
public function uagb_fails_to_load() {
|
142 |
+
$class = 'notice notice-error';
|
143 |
+
/* translators: %s: html tags */
|
144 |
+
$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>' );
|
145 |
+
|
146 |
+
$plugin = 'gutenberg/gutenberg.php';
|
147 |
+
|
148 |
+
if ( _is_gutenberg_installed( $plugin ) ) {
|
149 |
+
if ( ! current_user_can( 'activate_plugins' ) ) {
|
150 |
+
return;
|
151 |
+
}
|
152 |
+
|
153 |
+
$action_url = wp_nonce_url( 'plugins.php?action=activate&plugin=' . $plugin . '&plugin_status=all&paged=1&s', 'activate-plugin_' . $plugin );
|
154 |
+
$button_label = __( 'Activate Gutenberg', 'ultimate-addons-for-gutenberg' );
|
155 |
+
} else {
|
156 |
+
if ( ! current_user_can( 'install_plugins' ) ) {
|
157 |
+
return;
|
158 |
+
}
|
159 |
+
|
160 |
+
$action_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=gutenberg' ), 'install-plugin_gutenberg' );
|
161 |
+
$button_label = __( 'Install Gutenberg', 'ultimate-addons-for-gutenberg' );
|
162 |
+
}
|
163 |
+
|
164 |
+
$button = '<p><a href="' . $action_url . '" class="button-primary">' . $button_label . '</a></p><p></p>';
|
165 |
+
|
166 |
+
printf( '<div class="%1$s"><p>%2$s</p>%3$s</div>', esc_attr( $class ), $message, $button );
|
167 |
+
}
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Activation Reset
|
171 |
+
*/
|
172 |
+
function activation_reset() {
|
173 |
+
update_option( '__uagb_do_redirect', true );
|
174 |
+
}
|
175 |
+
|
176 |
+
/**
|
177 |
+
* Deactivation Reset
|
178 |
+
*/
|
179 |
+
function deactivation_reset() {
|
180 |
+
update_option( '__uagb_do_redirect', false );
|
181 |
+
}
|
182 |
+
}
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Prepare if class 'UAGB_Loader' exist.
|
186 |
+
* Kicking this off by calling 'get_instance()' method
|
187 |
+
*/
|
188 |
+
UAGB_Loader::get_instance();
|
189 |
+
}
|
190 |
+
|
191 |
+
/**
|
192 |
+
* Is Gutenberg plugin installed.
|
193 |
+
*/
|
194 |
+
if ( ! function_exists( '_is_gutenberg_installed' ) ) {
|
195 |
+
|
196 |
+
/**
|
197 |
+
* Check if Gutenberg Pro is installed
|
198 |
+
*
|
199 |
+
* @since 1.0.0
|
200 |
+
*
|
201 |
+
* @param string $plugin_path Plugin path.
|
202 |
+
* @return boolean true | false
|
203 |
+
* @access public
|
204 |
+
*/
|
205 |
+
function _is_gutenberg_installed( $plugin_path ) {
|
206 |
+
$plugins = get_plugins();
|
207 |
+
|
208 |
+
return isset( $plugins[ $plugin_path ] );
|
209 |
+
}
|
210 |
+
}
|
dist/blocks.style.build.css
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
-
.wp-block-uagb-advanced-heading{padding:0;margin:0 auto}.wp-block-uagb-advanced-heading .uagb-heading-text{margin:0;text-align:center}.wp-block-uagb-advanced-heading .uagb-separator-wrap{font-size:0;text-align:center}.wp-block-uagb-advanced-heading .uagb-separator{border-top-style:solid;display:inline-block;border-top-width:2px;width:5%;margin:0px 0px 10px 0px}.wp-block-uagb-advanced-heading .uagb-desc-text{margin:0;text-align:center}
|
2 |
-
.uagb-post-grid{margin:0;position:relative}.uagb-post-grid .is-grid article{float:left;display:inline-block}.uagb-post-grid .uagb-post__items{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.uagb-post-grid .is-grid.uagb-post__equal-height .uagb-post__inner-wrap{height:100%}.uagb-post-grid .is-masonry .uagb-post__inner-wrap{height:100%}.uagb-post-grid .uagb-post__inner-wrap>p{display:none}.uagb-post-grid .uagb-post__author span,.uagb-post-grid .uagb-post__comment span,.uagb-post-grid .uagb-post__date span{font-size:inherit;line-height:inherit;width:inherit;height:inherit;margin-right:4px}.uagb-post-grid .uagb-post__columns-8 article{width:12.5%}.uagb-post-grid .uagb-post__columns-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-5 article{width:20%}.uagb-post-grid .uagb-post__columns-4 article{width:25%}.uagb-post-grid .uagb-post__columns-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-2 article{width:50%}.uagb-post-grid .uagb-post__columns-1 article{width:100%}@media only screen and (max-width: 600px){.uagb-post-grid div[class*="columns"].is-grid{grid-template-columns:1fr}}.uagb-post-grid .uagb-post__image img{display:block;width:100%}.uagb-post-grid .uagb-post__text{text-align:left}.uagb-post-grid .uagb-post__title{margin-top:0;margin-bottom:15px;word-break:break-word}.uagb-post-grid .uagb-post__title a{color:inherit;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:.3s ease;-o-transition:.3s ease;transition:.3s ease;text-decoration:none}.uagb-post-grid .uagb-post__title a:hover{text-decoration:none}.uagb-post-grid .uagb-post__title a:focus{text-decoration:none}.uagb-post-grid .uagb-post__title a:active{text-decoration:none}.uagb-post-grid .uagb-post-grid-byline{text-transform:uppercase;font-size:11px;letter-spacing:1px;margin-bottom:15px}.uagb-post-grid .uagb-post__text .uagb-post-grid-byline>*{margin-right:10px}.uagb-post-grid .uagb-post-grid-byline a,.uagb-post-grid .uagb-post-grid-byline a:focus,.uagb-post-grid .uagb-post-grid-byline a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__title a,.uagb-post-grid .uagb-post__title a:focus,.uagb-post-grid .uagb-post__title a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__author,.uagb-post-grid .uagb-post__date{display:inline-block;word-break:break-all}.uagb-post-grid .uagb-post__author:not(:last-child):after,.uagb-post-grid .uagb-post__date:not(:last-child):after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.uagb-post-grid .uagb-post__comment{display:inline-block}.uagb-post-grid .uagb-post__author a{-webkit-box-shadow:none;box-shadow:none}.uagb-post-grid .uagb-post__author a:hover{color:inherit;-webkit-box-shadow:0 -1px 0 inset;box-shadow:0 -1px 0 inset}.uagb-post-grid .uagb-post__excerpt{margin-bottom:25px;word-break:break-word}.uagb-post-grid .uagb-post__text p{margin:0 0 15px 0}.uagb-post-grid .uagb-post__text p:last-of-type{margin-bottom:0}.uagb-post-grid .uagb-post__cta{border:none;display:inline-block}.uagb-post-grid .uagb-post__link{display:inline-block;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:.3s ease;-o-transition:.3s ease;transition:.3s ease;font-weight:bold;color:inherit;text-decoration:none;padding:5px 10px}.uagb-post-grid .uagb-post__excerpt div+p{margin-top:15px}.uagb-post-grid .uagb-post__excerpt p{color:inherit}.uagb-post-grid .uagb-post__link-complete-box{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}.uagb-post__image-position-background .uagb-post__text{opacity:1;position:relative;z-index:10;overflow:hidden;width:100%}.uagb-post__image-position-background .uagb-post__inner-wrap{position:relative;width:100%}.uagb-post__image-position-background .uagb-post__image img{position:absolute;width:auto;height:auto;min-width:100%;max-width:none;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);min-height:100%}.uagb-post__image-position-background .uagb-post__image{background-size:cover;background-repeat:no-repeat;background-position:center;overflow:hidden;text-align:center;position:relative}.uagb-post__image-position-background .uagb-post__image{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2}.uagb-post__image-position-background .uagb-post__image::before{content:'';position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:rgba(255,255,255,0.5)}.uagb-post-grid[data-equal-height="yes"] .uagb-post__inner-wrap{display:inline-block;height:100%}.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:-45px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:-45px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:-45px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:-45px;right:auto}.uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:25px;z-index:1}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:auto;right:25px}.uagb-post__arrow-inside.uagb-post-grid .slick-next{right:25px}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-next{left:25px;right:auto}.uagb-post-grid .is-grid article,.uagb-post-grid .is-masonry article,.uagb-post-grid .is-carousel article{-webkit-box-sizing:border-box;box-sizing:border-box}@media (max-width: 976px){.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:15px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:15px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:15px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:15px;right:auto}.uagb-post-grid .uagb-post__columns-tablet-1 article{width:100%}.uagb-post-grid .uagb-post__columns-tablet-2 article{width:50%}.uagb-post-grid .uagb-post__columns-tablet-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-tablet-4 article{width:25%}.uagb-post-grid .uagb-post__columns-tablet-5 article{width:20%}.uagb-post-grid .uagb-post__columns-tablet-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}@media (max-width: 767px){.uagb-post-grid .uagb-post__columns-mobile-1 article{width:100%}.uagb-post-grid .uagb-post__columns-mobile-2 article{width:50%}.uagb-post-grid .uagb-post__columns-mobile-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-mobile-4 article{width:25%}.uagb-post-grid .uagb-post__columns-mobile-5 article{width:20%}.uagb-post-grid .uagb-post__columns-mobile-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}.entry .entry-content .uagb-post-grid a{text-decoration:none}
|
3 |
-
.uagb-section__wrap{position:relative}.uagb-section__wrap .uagb-section__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2}.uagb-section__wrap .uagb-section__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-section__wrap .uagb-section__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-section__wrap .uagb-section__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}@media only screen and (max-width: 449px){.uagb-section__wrap.uagb-section__background-image{background-attachment:scroll !important}}
|
4 |
-
.uagb-buttons__outer-wrap .uagb-buttons__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.uagb-buttons__outer-wrap .uagb-button__active,.uagb-buttons__outer-wrap .uagb-button__active:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8)}.uagb-buttons__outer-wrap a.uagb-button__link:focus,.uagb-buttons__outer-wrap .uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-buttons__outer-wrap .uagb-button__wrapper{padding:0;border:1px solid #333;border-radius:2px;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex}.uagb-buttons__outer-wrap .uagb-button__wrapper:first-child{margin-left:0}.uagb-buttons__outer-wrap .uagb-button__wrapper:last-child{margin-right:0}.uagb-buttons__outer-wrap .uagb-button__wrapper a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-button__link{padding:10px 14px;width:100%;color:#333;text-decoration:none;font-family:inherit;line-height:inherit;font-weight:inherit}.uagb-buttons__outer-wrap .uagb-button__wrapper a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper:hover a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper:hover .uagb-button__link{text-decoration:none}
|
5 |
-
.uagb-ifb-icon-wrap,.uagb-ifb-icon-wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-ifb-icon-wrap .uagb-ifb-icon,.uagb-ifb-content{display:inline-block}.uagb-ifb-icon svg{width:inherit;height:inherit;vertical-align:middle}.infobox-icon-above-title .uagb-ifb-left-right-wrap{text-align:center}a.uagb-infobox-cta-link span{font-size:inherit}.uagb-ifb-cta.uagb-infobox-cta-link-style:empty{display:none}a.uagb-infobox-cta-link,.entry .entry-content a.uagb-infobox-cta-link,a.uagb-infobox-link-wrap,.entry .entry-content a.uagb-infobox-link-wrap{text-decoration:none}a.uagb-infobox-cta-link:hover,.entry .entry-content a.uagb-infobox-cta-link:hover,a.uagb-infobox-link-wrap:hover,.entry .entry-content a.uagb-infobox-link-wrap:hover .entry .entry-content a.uagb-infobox-cta-link:hover{color:inherit}.uagb-infobox-icon-left-title.uagb-infobox-image-valign-middle .uagb-ifb-title-wrap,.uagb-infobox-icon-right-title.uagb-infobox-image-valign-middle .uagb-ifb-title-wrap,.uagb-infobox-image-valign-middle .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-image-valign-middle .uagb-ifb-content,.uagb-infobox-icon-right.uagb-infobox-image-valign-middle .uagb-ifb-content{-ms-flex-item-align:center;align-self:center}.uagb-infobox-left{text-align:left;-ms-flex-pack:start;justify-content:flex-start}.uagb-infobox-center{text-align:center;-ms-flex-pack:center;justify-content:center}.uagb-infobox-right{text-align:right;-ms-flex-pack:end;justify-content:flex-end}.uagb-ifb-left-right-wrap{width:100%;word-break:break-word}.uagb-infobox-icon-above-title .uagb-ifb-left-right-wrap,.uagb-infobox-icon-below-title .uagb-ifb-left-right-wrap{display:block;min-width:100%;width:100%}.uagb-infobox-icon-left-title .uagb-ifb-icon-wrap,.uagb-infobox-icon-left .uagb-ifb-icon-wrap{margin-right:10px}.uagb-infobox-icon-right-title .uagb-ifb-icon-wrap,.uagb-infobox-icon-right .uagb-ifb-icon-wrap{margin-left:10px}.uagb-infobox-icon-left .uagb-ifb-left-right-wrap,.uagb-infobox-icon-right .uagb-ifb-left-right-wrap,.uagb-infobox-icon-left-title .uagb-ifb-left-title-image,.uagb-infobox-icon-right-title .uagb-ifb-right-title-image{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-infobox-icon-right .uagb-ifb-left-right-wrap,.uagb-infobox-icon-right-title .uagb-ifb-right-title-image{-ms-flex-pack:end;justify-content:flex-end}.uagb-ifb-icon-wrap .uagb-ifb-icon span{font-style:initial;height:auto;width:auto}.uagb-ifb-imgicon-wrap .uagb-ifb-image-content{display:inline-block;line-height:0;position:relative;max-width:100%}.uagb-ifb-imgicon-wrap .uagb-ifb-image-content img{display:inline;height:auto !important;max-width:100%;width:auto;-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:inherit}.uagb-ifb-imgicon-wrap .uagb-image-crop-circle img{border-radius:100%}.uagb-ifb-imgicon-wrap .uagb-image-crop-square img{border-radius:0}.uagb-infobox-module-link{position:absolute;width:100%;height:100%;left:0;top:0;bottom:0;right:0;z-index:4}.uagb-edit-mode .uagb-infobox-module-link{z-index:2}.uagb-infobox-link-icon-after{margin-left:5px;margin-right:0}.uagb-infobox-link-icon-before{margin-left:0;margin-right:5px}.uagb-infobox-link-icon{-webkit-transition:all 200ms linear;-o-transition:all 200ms linear;transition:all 200ms linear}.uagb-infobox{position:relative}.uagb-ifb-separator{width:30%;border-top-width:2px;border-top-color:#333;border-top-style:solid;display:inline-block;margin:0}.uagb-ifb-separator-parent{line-height:0em;margin-left:0;margin-right:0;margin-bottom:10px}.uagb-ifb-cta-button{display:inline-block;line-height:1;background-color:#818a91;color:#fff;text-align:center}.uagb-ifb-cta a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-ifb-title-wrap{width:100%}.uagb-ifb-title-wrap .uagb-ifb-title,.uagb-ifb-title-wrap .uagb-ifb-title-prefix{padding:0;margin:0;display:block}.uagb-infobox__content-wrap.uagb-infobox{position:relative}.uagb-ifb-icon span{font-size:40px;height:40px;color:#333;width:40px}.uagb-ifb-icon svg{fill:#333}.uagb-ifb-content{width:100%}.uagb-infobox__content-wrap.uagb-infobox,.uagb-ifb-content,.uagb-ifb-title-wrap,.uagb-ifb-title-prefix *,svg.dashicon.dashicons-upload{z-index:1}.uagb-ifb-left-right-wrap,button.components-button{z-index:1}.uagb-infobox-cta-link{cursor:pointer}a.uagb-infobox-link-wrap{color:inherit}.uagb-ifb-content p:empty{display:none}.uagb-infobox .uagb-ifb-icon,.uagb-infobox .uagb-ifb-image-content img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-ifb-align-icon-after{margin-left:5px}.uagb-ifb-align-icon-before{margin-right:5px}span.uagb-ifb-button-icon.uagb-ifb-align-icon-after{float:right}.uagb-ifb-button-icon{height:15px;width:15px;font-size:15px;vertical-align:middle}.uagb-ifb-text-icon{height:15px;width:15px;font-size:15px;line-height:15px;vertical-align:middle;display:inline-block}.uagb-ifb-button-icon svg,.uagb-ifb-text-icon svg{height:inherit;width:inherit;display:inline-block}.block-editor-page #wpwrap .uagb-infobox-cta-link svg,.uagb-infobox-cta-link svg{font-style:normal}.uagb-infobox__outer-wrap{position:relative}a.uagb-infbox__link-to-all{height:100%;width:100%;top:0;left:0;position:absolute;z-index:999;-webkit-box-shadow:none;box-shadow:none;text-decoration:none}@media only screen and (max-width: 976px){.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{padding:0;margin-bottom:20px}.uagb-infobox-stacked-tablet.uagb-reverse-order-tablet .uagb-ifb-left-right-wrap{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-content,.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{display:block;width:100%;text-align:center}.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{margin-left:0px;margin-right:0px}.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap{display:inline-block}.uagb-infobox-icon-left-title.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap{margin-right:0px}.uagb-infobox-icon-right-title.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-right.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap{margin-left:0px}.uagb-infobox-icon-left-title .uagb-ifb-separator-parent{margin:10px 0}}@media screen and (max-width: 767px){.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{padding:0;margin-bottom:20px}.uagb-infobox-stacked-mobile.uagb-reverse-order-mobile .uagb-ifb-left-right-wrap{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-content,.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{display:block;width:100%;text-align:center}.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{margin-left:0px;margin-right:0px}.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap{display:inline-block}.uagb-infobox-icon-left-title.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap{margin-right:0px}.uagb-infobox-icon-right-title.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-right.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap{margin-left:0px}.uagb-infobox-icon-left-title .uagb-ifb-separator-parent{margin:10px 0}}
|
6 |
-
.uagb-testimonial__wrap{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}.uagb-testimonial__wrap,.uagb-testimonial__wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-icon-wrap .uagb-icon{display:inline-block}.uagb-tm__image{position:relative}.uagb-tm__imgicon-style-circle .uagb-tm__image img{border-radius:100%;-webkit-border-radius:100%}.uagb-tm__imgicon-style-square .uagb-tm__image img{border-radius:0%;-webkit-border-radius:0%}.uagb-tm__image img,.slick-slide .uagb-tm__image img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-tm__author-name,.uagb-tm__company{display:inline-block}.uagb-tm__content{overflow:hidden;text-align:center;word-break:break-word;padding:15px;border-radius:inherit;position:relative}.uagb-tm__image-position-left .uagb-tm__content,.uagb-tm__image-position-right .uagb-tm__content{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-tm__meta-inner{display:inline-block}.uagb-tm__image-position-bottom .uagb-tm__image-content,.uagb-tm__image-position-bottom .uagb-testimonial-details{display:table-cell;vertical-align:middle}.uagb-tm__meta{width:100%;line-height:1}.uagb-tm__image-position-bottom .uagb-tm__image-content{padding-right:10px}.uagb-tm__author-name,.uagb-tm__company{display:block}.uagb-tm__image-aligned-middle .uagb-tm__image-content{-ms-flex-item-align:center;align-self:center}.uagb-tm__desc{margin-bottom:15px}.uagb-tm__author-name{margin-bottom:5px;font-size:30px;line-height:1em}.uagb-tm__company{font-size:15px;font-style:italic;line-height:1em;color:#888888}.is-carousel .uagb-testomonial__outer-wrap{padding-left:10px;padding-right:10px}.uagb-tm__overlay{height:100%;width:100%;top:0;left:0;position:absolute;background:transparent}.uagb-tm__text-wrap{position:relative}.uagb-tm__items{visibility:hidden}.uagb-tm__items.slick-initialized{visibility:visible}.uagb-tm__image-position-top .uagb-tm__image-content{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}@media (max-width: 976px){.uagb-tm__image-position-bottom.uagb-tm-stacked-tablet .uagb-tm__image-content,.uagb-tm__image-position-bottom.uagb-tm-stacked-tablet .uagb-testimonial-details{display:block;vertical-align:middle}.uagb-tm__image-position-left.uagb-tm-stacked-tablet .uagb-tm__content,.uagb-tm__image-position-right.uagb-tm-stacked-tablet .uagb-tm__content{display:block;-js-display:block;display:block}.uagb-tm__image-position-right.uagb-tm-stacked-tablet.uagb-tm-reverse-order-tablet .uagb-tm__content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-tm__image-aligned-top.uagb-tm-stacked-tablet .uagb-tm__image-content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-item-align:center;align-self:center}}@media (max-width: 768px){.uagb-tm__image-position-bottom.uagb-tm-stacked-mobile .uagb-tm__image-content,.uagb-tm__image-position-bottom.uagb-tm-stacked-mobile .uagb-testimonial-details{display:block;vertical-align:middle}.uagb-tm__image-position-left.uagb-tm-stacked-mobile .uagb-tm__content,.uagb-tm__image-position-right.uagb-tm-stacked-mobile .uagb-tm__content{display:block;-js-display:block;display:block}.uagb-tm__image-position-right.uagb-tm-stacked-mobile.uagb-tm-reverse-order-mobile .uagb-tm__content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-tm__image-aligned-top.uagb-tm-stacked-mobile .uagb-tm__image-content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-item-align:center;align-self:center}}.uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{right:-45px}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{left:-45px;right:auto}.uagb-tm__arrow-inside.uagb-slick-carousel .slick-prev{left:25px;z-index:1}[dir="rtl"] .uagb-tm__arrow-inside.uagb-slick-carousel .slick-prev{left:auto;right:25px}.uagb-tm__arrow-inside.uagb-slick-carousel .slick-next{right:25px}[dir="rtl"] .uagb-tm__arrow-inside.uagb-slick-carousel .slick-next{left:25px;right:auto}@media (max-width: 976px){.uagb-tm__arrow-outside.uagb-slick-carousel .slick-prev{left:15px;z-index:1}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-prev{left:auto;right:15px}.uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{right:15px}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{left:15px;right:auto}}
|
7 |
-
.uagb-team__outer-wrap .uagb-team__prefix{font-size:15px;font-style:italic;color:#888}.uagb-team__outer-wrap .uagb-team__image-wrap img{display:inline;height:auto !important;max-width:100%;width:inherit;-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:inherit}.uagb-team__outer-wrap .uagb-team__image-wrap.uagb-team__image-crop-circle img{border-radius:100%}.uagb-team__outer-wrap .uagb-team__image-wrap.uagb-team__image-crop-square img{border-radius:0}.uagb-team__outer-wrap .uagb-team__social-icon-wrap ul{list-style:none;display:-ms-flexbox;display:flex}.uagb-team__outer-wrap .uagb-team__social-icon a span,.uagb-team__outer-wrap .uagb-team__social-icon a span:before{color:inherit;font-size:inherit;height:inherit;width:inherit}.uagb-team__outer-wrap .uagb-team__social-icon a{font-size:20px;width:20px;height:20px;color:#333;display:block}.uagb-team__outer-wrap .uagb-team__social-icon{margin-right:20px;margin-left:0}.uagb-team__outer-wrap .uagb-team__social-list{margin:0;padding:0}.uagb-team__image-position-above.uagb-team__align-center{text-align:center}.uagb-team__image-position-above.uagb-team__align-left{text-align:left}.uagb-team__image-position-above.uagb-team__align-right{text-align:right}.uagb-team__image-position-left .uagb-team__wrap,.uagb-team__image-position-right .uagb-team__wrap{-js-display:flex;display:-ms-flexbox;display:flex}.uagb-team__image-position-left .uagb-team__content{text-align:left}.uagb-team__image-position-right .uagb-team__content{text-align:right}.uagb-team__image-position-left .uagb-team__social-icon-wrap ul{-ms-flex-pack:start;justify-content:flex-start;margin:0;padding:0}.uagb-team__image-position-right .uagb-team__social-icon-wrap ul{-ms-flex-pack:end;justify-content:flex-end;margin:0;padding:0}.uagb-team__image-position-left li{margin-right:5px}.uagb-team__image-position-right li{margin-left:5px}.uagb-team__image-position-above .uagb-team__social-icon-wrap{display:inline-block}.uagb-team__image-position-above.uagb-team__align-center .uagb-team__content{text-align:center}.uagb-team__image-position-above.uagb-team__align-left .uagb-team__content{text-align:left}.uagb-team__image-position-above.uagb-team__align-right .uagb-team__content{text-align:right}@media only screen and (max-width: 976px){.uagb-team__stack-tablet,.uagb-team__stack-tablet .uagb-team__content{text-align:center}.uagb-team__stack-tablet .uagb-team__wrap{display:inline-block}.uagb-team__stack-tablet .uagb-team__image-wrap{margin-left:auto !important;margin-right:auto !important}.uagb-team__stack-tablet .uagb-team__social-icon-wrap ul{-ms-flex-pack:center;justify-content:center}}@media screen and (max-width: 767px){.uagb-team__stack-mobile,.uagb-team__stack-mobile .uagb-team__content{text-align:center}.uagb-team__stack-mobile .uagb-team__wrap{display:inline-block}.uagb-team__stack-mobile .uagb-team__image-wrap{margin-left:auto !important;margin-right:auto !important}.uagb-team__stack-mobile .uagb-team__social-icon-wrap ul{-ms-flex-pack:center;justify-content:center}}
|
8 |
-
.uagb-social-share__outer-wrap .uagb-social-share__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.uagb-social-share__outer-wrap a.uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none}.uagb-social-share__outer-wrap .uagb-ss__wrapper{padding:0;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex;text-align:center}.uagb-social-share__outer-wrap .uagb-ss__source-wrap{display:inline-block}.uagb-social-share__outer-wrap .uagb-ss__link{color:#3a3a3a;display:inline-table;line-height:0;cursor:pointer}.uagb-social-share__outer-wrap .uagb-ss__source-icon{font-size:40px;width:40px;height:40px}.uagb-social-share__outer-wrap .uagb-ss__source-image{width:40px}.uagb-social-share__outer-wrap .uagb-ss__wrapper:first-child{margin-left:0}.uagb-social-share__outer-wrap .uagb-ss__wrapper:last-child{margin-right:0}
|
9 |
-
.uagb-google-map__wrap{display:-ms-flexbox;display:flex}.uagb-google-map__wrap .uagb-google-map__iframe{width:100%;-webkit-box-shadow:none;box-shadow:none;border:none;padding:0;margin:0}
|
10 |
-
.uagb-icon-list__outer-wrap .uagb-icon-list__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:flex-start;align-items:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start}.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:focus,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:active,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:visited{text-decoration:none}.uagb-icon-list__outer-wrap a.uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper>p{display:none}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper{padding:0;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex;text-align:center}.uagb-icon-list__outer-wrap .uagb-icon-list__content-wrap,.uagb-icon-list__outer-wrap .uagb-icon-list__source-wrap{width:inherit;display:inline-block}.uagb-icon-list__outer-wrap .uagb-icon-list__source-wrap{display:inherit;-ms-flex-align:center;align-items:center}.uagb-icon-list__outer-wrap .uagb-icon-list__content-wrap{color:#3a3a3a;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon,.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon:before{font-size:40px;width:40px;height:40px}.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon svg{display:block}.uagb-icon-list__outer-wrap .uagb-icon-list__source-image{width:40px}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper:first-child{margin-left:0}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper:last-child{margin-right:0}.uagb-icon-list__outer-wrap .uagb-icon-list__wrap>p{display:none}.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper[href="javascript:void(0);"]{pointer-events:none;cursor:text}.uagb-icon-list__outer-wrap:not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap{margin-right:15px}.uagb-icon-list__outer-wrap.uagb-icon-list__icon-at-top .uagb-icon-list__source-wrap{-ms-flex-item-align:flex-start;align-self:flex-start;margin-top:5px}
|
11 |
-
.uagb-rest_menu__wrap{position:relative;padding-left:5px;padding-right:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.uagb-rest_menu__wrap,.uagb-rest_menu__wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-rm__image img,.slick-slide .uagb-rm__image img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-rm__title,.uagb-rm__price{display:inline-block}.uagb-rm__desc{margin-bottom:15px;font-style:italic}.uagb-rm__content{overflow:hidden;text-align:left;word-break:break-word;padding:15px;border-radius:inherit;position:relative;padding:5px}.uagb-rm__image-position-left .uagb-rm__content,.uagb-rm__image-position-right .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-rm-details{display:table;width:100%}.uagb-rm__title-wrap,.uagb-rm__price-wrap{display:table-cell}.uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:85%}.uagb-rm__price-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:15%}.uagb-rm__title,.uagb-rm__price{display:block}.uagb-rm__align-center .uagb-rm-details,.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%}.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:center;align-self:center}.uagb-rm__image{overflow:hidden}.uagb-rm__title{margin-bottom:5px;font-size:20px}.uagb-rm__price{font-style:italic;text-align:right}.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm-details,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%;text-align:center}.uagb-rm__align-center .uagb-rm__price{text-align:center}.uagb-rm__align-right .uagb-rm-details{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-rm__align-right .uagb-rm__price{text-align:left}.uagb-rm__align-left .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm-details{display:-ms-flexbox;display:flex;-ms-flex-direction:unset;flex-direction:unset;text-align:left}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__image-content{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm-details{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;text-align:right}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__image-content{text-align:right}.uagb-rest_menu__outer-wrap{position:relative}.uagb-rm__overlay{height:100%;width:100%;top:0;left:0;position:absolute;background:transparent}.uagb-tm-parent{padding:30px}.uagb-rm__text-wrap{position:relative;display:block;width:100%}.uagb-rest_menu__wrap{position:relative}.uagb-rest_menu__outer-wrap:after{content:"";display:block;clear:both}.uagb-rest_menu__wrap.uagb-rm__desk-column-3{display:block;width:33%;float:left;width:calc(100% / 3);padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-2{display:block;width:49%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-1{display:block;width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__separator-parent{line-height:0em;margin-left:0;margin-right:0;margin-bottom:10px;-js-display:flex;display:-moz-flexbox;display:-ms-flexbox;display:flex}.uagb-rm__separator{width:100%;border-top-width:1px;border-top-color:#b2b4b5;border-top-style:inherit}.uagb-rm__image-position-left .uagb-rm__image{margin-right:10px}.uagb-rm__image-position-right .uagb-rm__image{margin-left:10px}@media (max-width: 976px){.uagb-rm__image-position-left.uagb-rm-stacked-tablet .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-tablet .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm-reverse-order-tablet .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:-moz-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-rest_menu__wrap.uagb-rm__tablet-column-3{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__tablet-column-2{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__tablet-column-1{width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:end;align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:start;align-self:flex-start}}@media (max-width: 767px){.uagb-rm__image-position-left.uagb-rm-stacked-mobile .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-mobile .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm-reverse-order-mobile .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:-moz-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-rest_menu__wrap.uagb-rm__mobile-column-3{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-2{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-1{width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:end;align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:start;align-self:flex-start}}
|
12 |
-
.uagb-timeline__widget{position:relative;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.uagb-timeline__widget a{text-decoration:none;color:inherit}.uagb-timeline__heading a{font-size:inherit;color:inherit;margin-bottom:inherit}.uagb-timeline__image a{display:block;position:relative;max-width:100%}.uagb-timeline__image img{display:inline-block;-webkit-box-sizing:content-box;-mz-box-sizing:content-box;box-sizing:content-box}.uagb-timeline__author{text-transform:uppercase}.uagb-timeline__main{position:relative}.uagb-content{word-break:break-word}a.uagb-timeline__link{padding:5px 10px;display:inline-block}h1.uagb-timeline__heading,h2.uagb-timeline__heading,h3.uagb-timeline__heading,h4.uagb-timeline__heading,h5.uagb-timeline__heading,h6.uagb-timeline__heading{margin-bottom:0px}.uagb-timeline__inner-date-new p{margin-bottom:0}.uagb-timeline__date-inner .uagb-timeline__inner-date-new p{margin-bottom:0px}.uagb-timeline__line{background-color:#eeeeee}.uagb-timeline__line__inner{background-color:#5cb85c;width:100%}.uagb-timeline__main .uagb-timeline__icon-new{line-height:1em;display:inline-block;vertical-align:middle;font-style:normal}.uagb-timeline__center-block .uagb-timeline__date-hide{display:none}.uagb-timeline__field:not(:last-child){margin-bottom:20px}.uagb-timeline__center-block .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__right-block .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:inherit}.uagb-timeline__center-block .uagb-timeline__date-new{display:block}.uagb-timeline__right-block .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{top:0;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__right-block .uagb-timeline__marker,.uagb-timeline__right-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__right-block .uagb-timeline__day-new{margin-right:14px}.uagb-timeline__right-block .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__right-block .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__left-block .uagb-timeline__marker,.uagb-timeline__left-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__left-block .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__left-block .uagb-timeline__day-new{margin-left:14px}.uagb-timeline__left-block .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__left-block .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{top:0;width:10px;height:40px;position:absolute}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__marker{background-color:#eeeeee;border-radius:999px;position:relative;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.uagb-timeline__main .uagb-timeline__days .uagb-timeline__field-wrap:hover .uagb-timeline__marker{-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.uagb-timeline__center-block .uagb-timeline__marker{-ms-flex-order:1;order:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block .uagb-timeline__day-new,.uagb-timeline__center-block .uagb-timeline__date-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:100%;position:relative}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:2;order:2;padding-left:0;padding-right:12px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:2;order:2;padding-right:0;padding-left:12px}.uagb-timeline__events-inner-new{padding:40px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__right-block .uagb-timeline__date-new{margin-left:10px}.uagb-timeline__right-block .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow{right:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow{left:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__arrow-center .uagb-timeline__widget{-ms-flex-align:center;align-items:center}.uagb-timeline__arrow-bottom .uagb-timeline__widget{-ms-flex-align:end;align-items:flex-end}.uagb-timeline__arrow-center .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-center .uagb-timeline__right .uagb-timeline__arrow{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__arrow-bottom .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-bottom .uagb-timeline__right .uagb-timeline__arrow{top:100%;-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.uagb-timeline__day-right .uagb-timeline__events-inner{text-align:right}.uagb-timeline__day-left .uagb-timeline__events-inner{text-align:left}.uagb-timeline__arrow-top .uagb-timeline__date-new .uagb-timeline__date-new,.uagb-timeline__arrow-bottom .uagb-timeline__date-new .uagb-timeline__date-new{padding-top:8px;padding-bottom:8px}.uagb-timeline__events-inner-new,.uagb-timeline__arrow{-webkit-transition:background .2s ease-in-out;-o-transition:background .2s ease-in-out;transition:background .2s ease-in-out}.uagb-timeline__arrow:after{-webkit-transition:border-color .2s ease-in-out;-o-transition:border-color .2s ease-in-out;transition:border-color .2s ease-in-out}.uagb-timeline__date-new{-webkit-transition:color .2s ease-in-out;-o-transition:color .2s ease-in-out;transition:color .2s ease-in-out}.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__main .uagb-timeline__year{-js-display:flex;display:-ms-flexbox;display:flex;position:relative}.uagb-timeline__main .uagb-timeline__year span{display:inline-block;padding-bottom:6px}.uagb-timeline__day-left .uagb-timeline__arrow:after{content:'';left:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__day-left .uagb-timeline__arrow:after{right:0}.uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__icon{width:100px;height:100px;border-radius:50%;text-align:center;line-height:100px;vertical-align:middle;position:relative;z-index:1}.uagb-timeline__main .uagb-timeline__date .uagb-timeline__inner-date-new{white-space:nowrap;margin:0px}.uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-timeline__right-block .uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block .uagb-timeline__line{left:50%;right:auto}.uagb-timeline__main .in-view i.uagb-timeline__in-view-icon{-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-in-out;-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;-o-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out}.uagb-timeline__left-block .uagb-timeline__days{text-align:left}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block .uagb-timeline__days{text-align:center}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__days{text-align:right}.uagb-timeline__outer-wrap span.dashicons-admin-users.dashicons{display:inline;vertical-align:baseline;margin-right:4px}@media screen and (max-width: 1023px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}@media screen and (max-width: 767px){.uagb-timeline-responsive-none .uagb-timeline__events-inner-new{padding:15px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__day-left .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}.uagb-timeline__line__inner{background-color:#61ce70;width:100%}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.rtl .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.rtl .uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__day-right .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__day-left .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__line{width:3px}.uagb-timeline__main .uagb-timeline__icon-new{font-size:16px}.uagb-timeline__marker{min-height:3em;min-width:3em;line-height:3em}.uagb-timeline__arrow{height:3em}.uagb-timeline__left-block .uagb-timeline__line{left:calc(3em / 2)}.uagb-timeline__right-block .uagb-timeline__line{right:calc(3em / 2)}.rtl .uagb-timeline__left-block .uagb-timeline__line{right:calc(3em / 2);left:auto}.rtl .uagb-timeline__right-block .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline-desc-content p{font-size:inherit}.uagb-timeline__main p:empty{display:none}@media (max-width: 976px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}}@media (max-width: 767px){.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:calc(3em / 2);left:auto}}
|
13 |
-
.uagb-cta__outer-wrap{position:relative}.uagb-cta__outer-wrap .uagb-cta__content{display:inline-block}.uagb-cta__outer-wrap a.uagb-cta__block-link span{font-size:inherit;vertical-align:middle;display:inline-block;float:left}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__link-wrapper{width:30%}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__content{width:70%}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:right}.uagb-cta__outer-wrap .uagb-cta__link-wrapper.uagb-cta__block-link-style:empty{display:none}.uagb-cta__outer-wrap a.uagb-cta__block-link,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link,.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link-wrap{text-decoration:none}.uagb-cta__outer-wrap a.uagb-cta__block-link:hover,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link:hover,.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap:hover,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link-wrap:hover .entry .entry-content a.uagb-cta__block-link:hover{color:inherit}.uagb-cta__outer-wrap .uagb-cta__content-right{text-align:right;-ms-flex-pack:end;justify-content:flex-end}.uagb-cta__outer-wrap .uagb-cta__left-right-wrap{width:100%;word-break:break-word}.uagb-cta__outer-wrap .uagb-cta__icon-position-below-title .uagb-cta__left-right-wrap{display:block;min-width:100%;width:100%}.uagb-cta__outer-wrap .uagb-cta__icon-position-left .uagb-cta__left-right-wrap,.uagb-cta__outer-wrap .uagb-cta__icon-position-right .uagb-cta__left-right-wrap{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-cta__outer-wrap .uagb-cta__icon-position-right .uagb-cta__left-right-wrap{-ms-flex-pack:end;justify-content:flex-end}.uagb-cta__outer-wrap .uagb-cta__block-link-icon-after{margin-left:5px;margin-right:0}.uagb-cta__outer-wrap .uagb-cta__block-link-icon-before{margin-left:0;margin-right:5px}.uagb-cta__outer-wrap .uagb-cta__block-link-icon,.uagb-cta__outer-wrap .uagb-cta__block svg{-webkit-transition:all 200ms linear;-o-transition:all 200ms linear;transition:all 200ms linear}.uagb-cta__outer-wrap .uagb-cta__block{position:relative}.uagb-cta__outer-wrap .uagb-cta-typeof-button{display:inline-block;line-height:1;background-color:transparent;color:#333;text-align:center}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-link-wrapper,.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link,.uagb-cta__outer-wrap .uagb-cta__content-right.uagb-cta__button-valign-middle .uagb-cta__left-right-wrap{display:-ms-flexbox;-js-display:flex;display:flex;-ms-flex-align:center;align-items:center}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-link-wrapper,.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link{-ms-flex-pack:center;justify-content:center}.uagb-cta__outer-wrap .uagb-cta__link-wrapper a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-cta__outer-wrap .uagb-cta__title-wrap .uagb-cta__title{padding:0;margin:0;display:block}.uagb-cta__outer-wrap .uagb-cta__block,.uagb-cta__outer-wrap .uagb-cta__content{z-index:1}.uagb-cta__outer-wrap .uagb-cta__left-right-wrap{z-index:1}.uagb-cta__outer-wrap .uagb-cta__block-link{cursor:pointer}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link{display:inline-block;float:right;padding:10px 14px}.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap{color:inherit}.uagb-cta__outer-wrap .uagb-cta__content p:empty{display:none}.uagb-cta__outer-wrap .uagb-cta__button-type-none .uagb-cta__content{width:100%}.uagb-cta__outer-wrap .uagb-cta-with-svg{height:14px;width:14px;line-height:14px;display:inline-block;vertical-align:middle}.uagb-cta__outer-wrap .uagb-cta__block svg{display:block;height:inherit;width:inherit}.uagb-cta__outer-wrap .uagb-cta__align-button-after{margin-left:5px}.uagb-cta__outer-wrap .uagb-cta__align-button-before{margin-right:5px}.uagb-cta__outer-wrap .uagb-cta__block-link i{font-style:normal}.uagb-cta__outer-wrap a.uagb-cta__link-to-all{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}@media only screen and (max-width: 976px){.uagb-cta__content-stacked-tablet .uagb-cta__left-right-wrap{-ms-flex-direction:column;flex-direction:column;text-align:center}.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:none;margin:0 auto}.uagb-cta__content-stacked-tablet .uagb-cta__left-right-wrap .uagb-cta__content{margin-left:0;margin-right:0}.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content,.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper{width:100% !important}}@media screen and (max-width: 767px){.uagb-cta__content-stacked-mobile .uagb-cta__left-right-wrap{-ms-flex-direction:column;flex-direction:column;text-align:center}.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:none;margin:0 auto}.uagb-cta__content-stacked-mobile .uagb-cta__left-right-wrap .uagb-cta__content{margin-left:0;margin-right:0}.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content,.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper{width:100% !important}}
|
14 |
-
.uagb-column__wrap{position:relative;overflow:hidden}.uagb-column__wrap .uagb-column__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2;-ms-flex:1;flex:1;width:100%}.uagb-column__wrap.uagb-column__align-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__wrap.uagb-column__align-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}.uagb-column__wrap .uagb-column__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-column__wrap .uagb-column__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-column__wrap .uagb-column__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.wp-block-uagb-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;padding-left:0;padding-right:0;margin-left:-14px;margin-right:-14px;min-width:0;word-break:break-word;overflow-wrap:break-word;-ms-flex-preferred-size:100%;flex-basis:100%}@media (max-width: 976px){.uagb-column__align-tablet-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__align-tablet-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}}@media (max-width: 767px){.uagb-column__align-mobile-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__align-mobile-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}}@media (max-width: 449px){.uagb-columns__wrap.uagb-columns__background-image{background-attachment:scroll !important}}
|
15 |
-
.uagb-columns__wrap{position:relative}.uagb-columns__wrap .uagb-columns__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2}.uagb-columns__wrap .uagb-columns__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-columns__wrap .uagb-columns__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-columns__wrap .uagb-columns__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.uagb-columns__wrap .uagb-column__wrap{display:-ms-flexbox;display:flex}.uagb-columns__wrap .uagb-columns__shape{overflow:hidden;position:absolute;left:0;width:100%;line-height:0;direction:ltr;z-index:1}.uagb-columns__wrap .uagb-columns__shape-top{top:-3px}.uagb-columns__wrap .uagb-columns__shape-bottom{bottom:-3px}.uagb-columns__wrap .uagb-columns__shape[data-negative="false"].uagb-columns__shape-bottom{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape[data-negative="true"].uagb-columns__shape-top{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape.uagb-columns__shape-flip svg{-webkit-transform:translateX(-50%) rotateY(180deg);transform:translateX(-50%) rotateY(180deg)}.uagb-columns__wrap .uagb-columns__shape svg{display:block;width:calc(100% + 1.3px);position:relative;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-columns__wrap .uagb-columns__shape .uagb-columns__shape-fill{fill:#333;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}.uagb-columns__wrap .uagb-columns__shape.uagb-columns__shape-above-content{z-index:9;pointer-events:none}.uagb-columns__valign-middle .uagb-column__wrap{-ms-flex-align:center;align-items:center}.uagb-columns__valign-top .uagb-column__wrap{-ms-flex-align:flex-start;align-items:flex-start}.uagb-columns__valign-bottom .uagb-column__wrap{-ms-flex-align:flex-end;align-items:flex-end}.uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.uagb-columns__columns-1>.uagb-column__wrap{width:100%}.uagb-columns__columns-2>.uagb-column__wrap{width:50%}.uagb-columns__columns-3>.uagb-column__wrap{width:33.33%}.uagb-columns__columns-4>.uagb-column__wrap{width:25%}.uagb-columns__columns-5>.uagb-column__wrap{width:20%}.uagb-columns__columns-6>.uagb-column__wrap{width:16.66%}.uagb-columns__gap-nogap>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:0}.uagb-columns__gap-default>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:10px}.uagb-columns__gap-narrow>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:5px}.uagb-columns__gap-extended>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:15px}.uagb-columns__gap-wide>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:20px}.uagb-columns__gap-wider>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:30px}@media (max-width: 976px){.uagb-columns__stack-tablet .uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-tablet .uagb-columns__inner-wrap{display:block}.uagb-columns__reverse-tablet .uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 767px){.uagb-columns__stack-mobile .uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-mobile .uagb-columns__inner-wrap{display:block}.uagb-columns__reverse-mobile .uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 449px){.uagb-columns__wrap .uagb-column__wrap.uagb-column__background-image{background-attachment:scroll !important}}
|
16 |
-
.wp-block-uagb-cf7-styler .wpcf7 *,.wp-block-uagb-cf7-styler .wpcf7 :after,.wp-block-uagb-cf7-styler .wpcf7 :before{-webkit-box-sizing:border-box;box-sizing:border-box}.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::before,.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::after{content:" "}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{content:'';display:inline-block;vertical-align:middle;margin-right:10px;text-align:center;height:15px;width:15px;border-style:solid;border-color:#eaeaea;border-width:1px 1px 1px 1px}.wp-block-uagb-cf7-styler span.wpcf7-list-item{display:inline-block;margin:0 1em 0 0}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]:checked+span:before{content:"\2714";line-height:1.2}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{-webkit-box-sizing:content-box;box-sizing:content-box}.wp-block-uagb-cf7-styler input[type=checkbox]:checked+span:before{font-size:calc(12px / 1.2)}.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{border-radius:100%}.wp-block-uagb-cf7-styler .uagb-cf7-styler__field-style-box .wpcf7-radio input[type="radio"]:checked+span:before,.wp-block-uagb-cf7-styler .uagb-cf7-styler__field-style-underline .wpcf7-radio input[type="radio"]:checked+span:before{background-color:#545454;-webkit-box-shadow:inset 0px 0px 0px 4px #fafafa;box-shadow:inset 0px 0px 0px 4px #fafafa}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-justify input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-left input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-right input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-center input.wpcf7-form-control.wpcf7-submit{display:-ms-flexbox;-js-display:flex;display:flex;width:auto;line-height:1em;background:transparent;border-color:#333;border-width:1px;padding:10px 25px}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-right input.wpcf7-form-control.wpcf7-submit{margin-left:auto;margin-right:0}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-left input.wpcf7-form-control.wpcf7-submit{margin-right:auto;margin-left:0}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-center input.wpcf7-form-control.wpcf7-submit{margin-right:auto;margin-left:auto}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-justify input.wpcf7-form-control.wpcf7-submit{-ms-flex-pack:center;justify-content:center;width:100%}.wp-block-uagb-cf7-styler .wpcf7 input[type=checkbox],.wp-block-uagb-cf7-styler .wpcf7 input[type=radio]{display:none}.wp-block-uagb-cf7-styler .wpcf7 select{height:auto;padding:10px;-webkit-appearance:menulist-button;-moz-appearance:menulist-button;-webkit-appearance:menulist-button}.wp-block-uagb-cf7-styler select.wpcf7-form-control.wpcf7-select[multiple="multiple"]{padding:0}.wp-block-uagb-cf7-styler .wpcf7 select option{padding:10px}.wp-block-uagb-cf7-styler .uagb-cf7-styler__highlight-style-bottom_right span.wpcf7-not-valid-tip{display:inline-block;right:0;top:100%;padding:.1em .8em;border-radius:2px;color:#ffffff;background-color:rgba(255,0,0,0.6);padding:5px 10px;font-size:15px;float:right;margin-top:5px}.wp-block-uagb-cf7-styler .wpcf7 input[type="number"]{height:auto}.wp-block-uagb-cf7-styler .wpcf7 input.wpcf7-date{-webkit-appearance:none}@media (min-width: 769px){.wp-block-uagb-cf7-styler .uagb-cf7_styler-col{-js-display:flex;display:-ms-flexbox;display:flex}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col label,.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:100%;flex-basis:100%}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col br{display:none}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span.uagb-cf7_styler-col-1{padding-left:0;padding-right:15px}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span.uagb-cf7_styler-col-3{padding-left:15px;padding-right:0}.wp-block-uagb-cf7-styler .wpcf7 .uagb-cf7_styler-col span.wpcf7-form-control-wrap{height:100%}.wp-block-uagb-cf7-styler .wpcf7 .uagb-cf7_styler-col select{height:100%}}
|
17 |
-
.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-multi .chosen-choices,.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0;height:auto;border:1px solid #AAA;border-radius:0;background:#FFF;-webkit-box-shadow:none;box-shadow:none;color:#444;text-decoration:none;white-space:nowrap}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single span{line-height:1}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-active.chosen-with-drop .chosen-single{background:#FFF}.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=submit]{display:inline-block}.uagb-gf-styler__check-style-enabled .gform_wrapper .gf_progressbar_wrapper h3.gf_progressbar_title,.uagb-gf-styler__check-style-enabled .gform_wrapper .gf_progressbar_wrapper .gf_progressbar_title{opacity:1}.uagb-gf-styler__check-style-enabled .uag-gf-select-custom{position:relative}.uagb-gf-styler__check-style-enabled .uag-gf-select-custom:after{content:"\f078";font-family:'FontAwesome' !important;font-size:0.7em;line-height:1;position:absolute;top:45%;-webkit-transform:translateY(-45%);-ms-transform:translateY(-45%);transform:translateY(-45%);right:0.5em;pointer-events:none;z-index:5}.uagb-gf-styler__check-style-enabled span.name_prefix_select .uag-gf-select-custom{display:inline;vertical-align:middle}.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]:checked+label:before{-webkit-box-shadow:inset 0px 0px 0px 4px #fafafa;box-shadow:inset 0px 0px 0px 4px #fafafa}.uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]:checked+label:before{font-weight:700}.uagb-gf-styler__check-style-enabled select,.uagb-gf-styler__check-style-enabled .chosen-single{-webkit-appearance:none;-moz-appearance:none;appearance:none}.uagb-gf-styler__check-style-enabled .gform_wrapper div.validation_error{border-top:none;border-bottom:none}.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield_radio li label{margin:0 0 0 0}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_body{width:100% !important}.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="checkbox"]:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="radio"]:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="checkbox"]+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="radio"]+label:before{-webkit-box-sizing:content-box !important;box-sizing:content-box !important}.uagb-gf-styler__check-style-enabled .gform_wrapper .gsection{margin-right:0}.uag-gf-btn-size-xs .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-xs .uagb-gf-styler__check-style-enabled input[type=button]{font-size:13px;padding:10px 20px;border-radius:2px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:13px;padding:8px 10px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:13px;padding:6px 10px}.ginput_container select{height:100%;line-height:inherit}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:13px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:10px;width:10px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 10px / 1.2)}.uag-gf-btn-size-sm .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-sm .uagb-gf-styler__check-style-enabled input[type=button]{font-size:15px;padding:12px 24px;border-radius:3px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:15px;padding:12px 10px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:15px;padding:10px 10px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:15px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:12px;width:12px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 12px / 1.2)}.uag-gf-btn-size-md .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-md .uagb-gf-styler__check-style-enabled input[type=button]{font-size:16px;padding:15px 30px;border-radius:4px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:16px;padding:15px 10px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:16px;padding:13px 10px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:16px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:15px;width:15px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 15px / 1.2)}.uag-gf-btn-size-lg .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-lg .uagb-gf-styler__check-style-enabled input[type=button]{font-size:18px;padding:20px 40px;border-radius:5px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:18px;padding:20px 10px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:18px;padding:18px 10px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:18px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:20px;width:20px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 20px / 1.2)}.uag-gf-btn-size-xl .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-xl .uagb-gf-styler__check-style-enabled input[type=button]{font-size:20px;padding:25px 50px;border-radius:6px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:20px;padding:25px 10px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:20px;padding:23px 10px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:20px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:25px;width:25px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]:checked+label:before{font-size:calc( 25px / 1.2)}.uagb-gf-styler__btn-align-right .gform_next_button,.uagb-gf-styler__btn-align-right .gform_previous_button{margin-right:5px !important}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_footer:not(.top_label){padding:0 0 0 0;margin-right:0;margin-left:0;width:100%}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_page_footer.left_label,.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_page_footer.right_label{padding:0 0 0 0}.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before{border-radius:100%}.uagb-gf-styler__check-style-enabled .gform_wrapper .top_label .gfield_error{width:100% !important}.uagb-gf-styler__check-style-enabled .gform_wrapper.gform_validation_error .gform_body ul li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half){max-width:100% !important}.uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=submit]{display:-ms-flexbox;-js-display:flex;display:flex;width:auto}.uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto}.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto}.uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0}.uagb-gf-styler__btn-align-justify .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox'],.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_radio .gfield_radio input[type='radio'],.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']{display:none}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox']+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_radio .gfield_radio input[type='radio']+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']+label:before{content:'';display:inline-block;vertical-align:middle;margin-right:10px;text-align:center}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox']:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']:checked+label:before{content:"\2714";line-height:1.2}.uagb-gf-styler__check-style-enabled .gform_wrapper ul.gform_fields li.gfield:not(.gf_left_half):not(.gf_left_third):not(.gf_middle_third){padding-right:0}.uagb-gf-styler__btn-align-width-full_width .gform_footer input[type=submit]{display:block;text-align:center;width:100%}.uagb-gf-styler__check-style-enabled .gform_body ul{margin-left:0;list-style:none}.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container select,.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container .chosen-single,.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container .chosen-choices,.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input[type="text"],.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input.default{height:auto}.elementor-widget-uag-gf-styler .uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input[type="text"]{padding:0px 0px 0px 0px}.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=button]{margin-bottom:20px}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single div{display:none}.uagb-gf-styler__hide-label .gform_wrapper .gform_fields .gfield_label,.uagb-gf-styler__hide-label .gform_wrapper .gform_fields .gfield_required{display:none}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single .chosen-single span{margin-bottom:0;width:100%}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single .chosen-single{border:none}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single.chosen-container-active .chosen-single{border:none}@media only screen and (max-width: 976px){.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uag-tablet-gf-button-center .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-center .gform_page .gform_page_footer input[type="button"],.uag-tablet-gf-button-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto;width:auto}.uag-tablet-gf-button-left .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-left .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-left .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto;width:auto}.uag-tablet-gf-button-right .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-right .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-right .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0;width:auto}.uag-tablet-gf-button-justify .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-justify .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}}@media only screen and (max-width: 767px){.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uag-mobile-gf-button-center .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-center .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto;width:auto}.uag-mobile-gf-button-left .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-left .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-left .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto;width:auto}.uag-mobile-gf-button-right .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-right .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-right .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0;width:auto}.uag-mobile-gf-button-justify .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-justify .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}}
|
18 |
-
.wp-block-uagb-blockquote{padding:0;margin:0 auto}.wp-block-uagb-blockquote .uagb-blockquote__content,.wp-block-uagb-blockquote cite.uagb-blockquote__author{font-style:normal;display:block}.wp-block-uagb-blockquote cite.uagb-blockquote__author,.wp-block-uagb-blockquote .uagb-blockquote__author{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation blockquote.uagb-blockquote{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;quotes:none;border-left:0 none;border-right:0 none;border-top:0 none;border-bottom:0 none;font-style:normal}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap{position:relative;display:inline-block;padding:0px;z-index:1;background:#333;padding:10px;border-radius:100%;margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon{height:25px;width:25px;display:inline-block;float:left}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg{height:inherit;width:inherit;display:inherit}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation.uagb-blockquote__style-style_2 .uagb-blockquote__icon-wrap{display:inline-block;float:left}.wp-block-uagb-blockquote blockquote.uagb-blockquote{margin:0;padding:0}.wp-block-uagb-blockquote .uagb-blockquote__wrap,.wp-block-uagb-blockquote .uagb-blockquote__wrap *{-webkit-box-sizing:border-box;box-sizing:border-box}.wp-block-uagb-blockquote .uagb-blockquote__style-style_2 .uagb-blockquote__icon-wrap{display:inline-block;float:left;text-align:left}.wp-block-uagb-blockquote .uagb-blockquote__separator-parent{display:-ms-flexbox;-js-display:flex;display:flex;-ms-flex-pack:start;justify-content:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote footer{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.wp-block-uagb-blockquote .uagb-blockquote a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.wp-block-uagb-blockquote .uagb-blockquote a.uagb-blockquote__tweet-button{display:-ms-flexbox;display:flex;-webkit-transition:0.2s;-o-transition:0.2s;transition:0.2s;-ms-flex-item-align:end;align-self:flex-end;line-height:1;position:relative;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0;color:#1DA1F2;background-color:transparent;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button svg{height:15px;width:15px;margin-right:5px;fill:#fff;vertical-align:middle;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button svg{font-style:normal}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon a.uagb-blockquote__tweet-button svg{margin-right:0}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon_text svg{margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon a.uagb-blockquote__tweet-button{padding:8px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote .uagb-blockquote__tweet-text a.uagb-blockquote__tweet-button{padding:10px 14px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button{padding:10px 0}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button{background-color:#1DA1F2;border-radius:100em;color:#fff}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{content:'';border:solid 0.5em transparent;border-right-color:#1DA1F2;position:absolute;left:-0.8em;top:50%;-webkit-transform:translateY(-50%) scale(1, 0.65);-ms-transform:translateY(-50%) scale(1, 0.65);transform:translateY(-50%) scale(1, 0.65);-webkit-transition:0.2s;-o-transition:0.2s;transition:0.2s}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:auto;right:-0.8em;-webkit-transform:translateY(-50%) scale(1, 0.65) rotate(180deg);-ms-transform:translateY(-50%) scale(1, 0.65) rotate(180deg);transform:translateY(-50%) scale(1, 0.65) rotate(180deg)}.wp-block-uagb-blockquote .uagb-blockquote__align-center.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet.uagb-blockquote__align-center .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__align-center .uagb-blockquote footer{display:block;text-align:center}.wp-block-uagb-blockquote .uagb-blockquote__align-center a.uagb-blockquote__tweet-button{display:block;text-align:center;margin:0 auto;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet.uagb-blockquote__align-right .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote footer{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wp-block-uagb-blockquote .uagb-blockquote__author-image{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__author-image img{width:50px;height:50px;border-radius:100%;margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-left .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{justify-content:flex-end;-webkit-box-pack:flex-end;-ms-flex-pack:flex-end;-webkit-justify-content:flex-end;-moz-box-pack:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{justify-content:flex-start;-webkit-box-pack:flex-start;-ms-flex-pack:flex-start;-webkit-justify-content:flex-start;-moz-box-pack:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote__author-wrap{justify-content:unset;-webkit-box-pack:unset;-ms-flex-pack:unset;-webkit-justify-content:unset;-moz-box-pack:unset}.wp-block-uagb-blockquote .uagb-blockquote__align-center .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-center.uagb-blockquote__with-tweet .uagb-blockquote__author-wrap{justify-content:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;-moz-box-pack:center}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .uagb-blockquote__author,.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .editor-rich-text{width:inherit}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{width:auto}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap .editor-rich-text{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{text-align:right}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img{margin-left:10px;margin-right:0}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{-ms-flex-direction:column;flex-direction:column}@media only screen and (max-width: 976px){.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left{-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left .uagb-blockquote__author-image img{margin-left:0;margin-right:0;margin-bottom:10px}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__with-tweet .uagb-blockquote footer{-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right.uagb-blockquote__with-tweet .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet a.uagb-blockquote__tweet-button{margin-top:10px}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__stack-img-tablet .uagb-blockquote__author-image{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-left.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}}@media screen and (max-width: 767px){.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left{-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left .uagb-blockquote__author-image img{margin-left:0;margin-right:0;margin-bottom:10px}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__with-tweet .uagb-blockquote footer{-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right.uagb-blockquote__with-tweet .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile a.uagb-blockquote__tweet-button{margin-top:10px}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__stack-img-mobile .uagb-blockquote__author-image{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-mobile .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-left.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}}
|
19 |
-
.wp-block-uagb-marketing-button .uagb-marketing-btn__wrap>p,.wp-block-uagb-marketing-button p:empty{display:none}.wp-block-uagb-marketing-button h6.uagb-marketing-btn__title,.wp-block-uagb-marketing-button p.uagb-marketing-btn__prefix{margin:0}.wp-block-uagb-marketing-button .uagb-marketing-btn__wrap{display:-ms-flexbox;display:flex}.wp-block-uagb-marketing-button .uagb-marketing-btn__link{z-index:1}.wp-block-uagb-marketing-button .uagb-marketing-btn__link{display:inline-block;position:relative;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.wp-block-uagb-marketing-button .uagb-marketing-btn__icon-wrap{width:20px;height:20px;display:-ms-flexbox;display:flex;z-index:1}.wp-block-uagb-marketing-button .uagb-marketing-btn__icon-wrap svg{width:inherit;height:inherit}.wp-block-uagb-marketing-button .uagb-marketing-btn__title-wrap{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-center .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-center .uagb-marketing-btn__title-wrap{-ms-flex-pack:center;justify-content:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-left .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-left .uagb-marketing-btn__title-wrap{-ms-flex-pack:start;justify-content:flex-start}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-right .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__title-wrap{-ms-flex-pack:end;justify-content:flex-end}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-full .uagb-marketing-btn__link{width:100%}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-center .uagb-marketing-btn__prefix-wrap{text-align:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-left .uagb-marketing-btn__prefix-wrap{text-align:left}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__prefix-wrap{text-align:right}.wp-block-uagb-marketing-button.uagb-marketing-btn__icon-after .uagb-marketing-btn__title-wrap{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.entry-content .wp-block-uagb-marketing-button .uagb-marketing-btn__link{text-decoration:none}
|
1 |
+
.wp-block-uagb-advanced-heading{padding:0;margin:0 auto}.wp-block-uagb-advanced-heading .uagb-heading-text{margin:0;text-align:center}.wp-block-uagb-advanced-heading .uagb-separator-wrap{font-size:0;text-align:center}.wp-block-uagb-advanced-heading .uagb-separator{border-top-style:solid;display:inline-block;border-top-width:2px;width:5%;margin:0px 0px 10px 0px}.wp-block-uagb-advanced-heading .uagb-desc-text{margin:0;text-align:center}
|
2 |
+
.uagb-post-grid{margin:0;position:relative}.uagb-post-grid .is-grid article{float:left;display:inline-block}.uagb-post-grid .uagb-post__items{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.uagb-post-grid .is-grid.uagb-post__equal-height .uagb-post__inner-wrap{height:100%}.uagb-post-grid .is-masonry .uagb-post__inner-wrap{height:100%}.uagb-post-grid .uagb-post__inner-wrap>p{display:none}.uagb-post-grid .uagb-post__author span,.uagb-post-grid .uagb-post__comment span,.uagb-post-grid .uagb-post__date span{font-size:inherit;line-height:inherit;width:inherit;height:inherit;margin-right:4px}.uagb-post-grid .uagb-post__columns-8 article{width:12.5%}.uagb-post-grid .uagb-post__columns-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-5 article{width:20%}.uagb-post-grid .uagb-post__columns-4 article{width:25%}.uagb-post-grid .uagb-post__columns-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-2 article{width:50%}.uagb-post-grid .uagb-post__columns-1 article{width:100%}@media only screen and (max-width: 600px){.uagb-post-grid div[class*="columns"].is-grid{grid-template-columns:1fr}}.uagb-post-grid .uagb-post__image img{display:block;width:100%}.uagb-post-grid .uagb-post__text{text-align:left}.uagb-post-grid .uagb-post__title{margin-top:0;margin-bottom:15px;word-break:break-word}.uagb-post-grid .uagb-post__title a{color:inherit;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:.3s ease;-o-transition:.3s ease;transition:.3s ease;text-decoration:none}.uagb-post-grid .uagb-post__title a:hover{text-decoration:none}.uagb-post-grid .uagb-post__title a:focus{text-decoration:none}.uagb-post-grid .uagb-post__title a:active{text-decoration:none}.uagb-post-grid .uagb-post-grid-byline{text-transform:uppercase;font-size:11px;letter-spacing:1px;margin-bottom:15px}.uagb-post-grid .uagb-post__text .uagb-post-grid-byline>*{margin-right:10px}.uagb-post-grid .uagb-post-grid-byline a,.uagb-post-grid .uagb-post-grid-byline a:focus,.uagb-post-grid .uagb-post-grid-byline a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__title a,.uagb-post-grid .uagb-post__title a:focus,.uagb-post-grid .uagb-post__title a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__author,.uagb-post-grid .uagb-post__date{display:inline-block;word-break:break-all}.uagb-post-grid .uagb-post__author:not(:last-child):after,.uagb-post-grid .uagb-post__date:not(:last-child):after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.uagb-post-grid .uagb-post__comment{display:inline-block}.uagb-post-grid .uagb-post__author a{-webkit-box-shadow:none;box-shadow:none}.uagb-post-grid .uagb-post__author a:hover{color:inherit;-webkit-box-shadow:0 -1px 0 inset;box-shadow:0 -1px 0 inset}.uagb-post-grid .uagb-post__excerpt{margin-bottom:25px;word-break:break-word}.uagb-post-grid .uagb-post__text p{margin:0 0 15px 0}.uagb-post-grid .uagb-post__text p:last-of-type{margin-bottom:0}.uagb-post-grid .uagb-post__cta{border:none;display:inline-block}.uagb-post-grid .uagb-post__link{display:inline-block;-webkit-box-shadow:none;box-shadow:none;-webkit-transition:.3s ease;-o-transition:.3s ease;transition:.3s ease;font-weight:bold;color:inherit;text-decoration:none;padding:5px 10px}.uagb-post-grid .uagb-post__excerpt div+p{margin-top:15px}.uagb-post-grid .uagb-post__excerpt p{color:inherit}.uagb-post-grid .uagb-post__link-complete-box{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}.uagb-post__image-position-background .uagb-post__text{opacity:1;position:relative;z-index:10;overflow:hidden;width:100%}.uagb-post__image-position-background .uagb-post__inner-wrap{position:relative;width:100%}.uagb-post__image-position-background .uagb-post__image img{position:absolute;width:auto;height:auto;min-width:100%;max-width:none;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);min-height:100%}.uagb-post__image-position-background .uagb-post__image{background-size:cover;background-repeat:no-repeat;background-position:center;overflow:hidden;text-align:center;position:relative}.uagb-post__image-position-background .uagb-post__image{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2}.uagb-post__image-position-background .uagb-post__image::before{content:'';position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:rgba(255,255,255,0.5)}.uagb-post-grid[data-equal-height="yes"] .uagb-post__inner-wrap{display:inline-block;height:100%}.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:-45px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:-45px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:-45px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:-45px;right:auto}.uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:25px;z-index:1}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:auto;right:25px}.uagb-post__arrow-inside.uagb-post-grid .slick-next{right:25px}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-next{left:25px;right:auto}.uagb-post-grid .is-grid article,.uagb-post-grid .is-masonry article,.uagb-post-grid .is-carousel article{-webkit-box-sizing:border-box;box-sizing:border-box}@media (max-width: 976px){.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:15px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:15px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:15px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:15px;right:auto}.uagb-post-grid .uagb-post__columns-tablet-1 article{width:100%}.uagb-post-grid .uagb-post__columns-tablet-2 article{width:50%}.uagb-post-grid .uagb-post__columns-tablet-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-tablet-4 article{width:25%}.uagb-post-grid .uagb-post__columns-tablet-5 article{width:20%}.uagb-post-grid .uagb-post__columns-tablet-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}@media (max-width: 767px){.uagb-post-grid .uagb-post__columns-mobile-1 article{width:100%}.uagb-post-grid .uagb-post__columns-mobile-2 article{width:50%}.uagb-post-grid .uagb-post__columns-mobile-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-mobile-4 article{width:25%}.uagb-post-grid .uagb-post__columns-mobile-5 article{width:20%}.uagb-post-grid .uagb-post__columns-mobile-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}.entry .entry-content .uagb-post-grid a{text-decoration:none}
|
3 |
+
.uagb-section__wrap{position:relative}.uagb-section__wrap .uagb-section__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2}.uagb-section__wrap .uagb-section__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-section__wrap .uagb-section__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-section__wrap .uagb-section__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}@media only screen and (max-width: 449px){.uagb-section__wrap.uagb-section__background-image{background-attachment:scroll !important}}
|
4 |
+
.uagb-buttons__outer-wrap .uagb-buttons__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.uagb-buttons__outer-wrap .uagb-button__active,.uagb-buttons__outer-wrap .uagb-button__active:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8)}.uagb-buttons__outer-wrap a.uagb-button__link:focus,.uagb-buttons__outer-wrap .uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-buttons__outer-wrap .uagb-button__wrapper{padding:0;border:1px solid #333;border-radius:2px;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex}.uagb-buttons__outer-wrap .uagb-button__wrapper:first-child{margin-left:0}.uagb-buttons__outer-wrap .uagb-button__wrapper:last-child{margin-right:0}.uagb-buttons__outer-wrap .uagb-button__wrapper a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-button__link{padding:10px 14px;width:100%;color:#333;text-decoration:none;font-family:inherit;line-height:inherit;font-weight:inherit}.uagb-buttons__outer-wrap .uagb-button__wrapper a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper:hover a.uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper .uagb-button__link,.uagb-buttons__outer-wrap .uagb-button__wrapper:hover .uagb-button__link{text-decoration:none}
|
5 |
+
.uagb-ifb-icon-wrap,.uagb-ifb-icon-wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-ifb-icon-wrap .uagb-ifb-icon,.uagb-ifb-content{display:inline-block}.uagb-ifb-icon svg{width:inherit;height:inherit;vertical-align:middle}.infobox-icon-above-title .uagb-ifb-left-right-wrap{text-align:center}a.uagb-infobox-cta-link span{font-size:inherit}.uagb-ifb-cta.uagb-infobox-cta-link-style:empty{display:none}a.uagb-infobox-cta-link,.entry .entry-content a.uagb-infobox-cta-link,a.uagb-infobox-link-wrap,.entry .entry-content a.uagb-infobox-link-wrap{text-decoration:none}a.uagb-infobox-cta-link:hover,.entry .entry-content a.uagb-infobox-cta-link:hover,a.uagb-infobox-link-wrap:hover,.entry .entry-content a.uagb-infobox-link-wrap:hover .entry .entry-content a.uagb-infobox-cta-link:hover{color:inherit}.uagb-infobox-icon-left-title.uagb-infobox-image-valign-middle .uagb-ifb-title-wrap,.uagb-infobox-icon-right-title.uagb-infobox-image-valign-middle .uagb-ifb-title-wrap,.uagb-infobox-image-valign-middle .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-image-valign-middle .uagb-ifb-content,.uagb-infobox-icon-right.uagb-infobox-image-valign-middle .uagb-ifb-content{-ms-flex-item-align:center;align-self:center}.uagb-infobox-left{text-align:left;-ms-flex-pack:start;justify-content:flex-start}.uagb-infobox-center{text-align:center;-ms-flex-pack:center;justify-content:center}.uagb-infobox-right{text-align:right;-ms-flex-pack:end;justify-content:flex-end}.uagb-ifb-left-right-wrap{width:100%;word-break:break-word}.uagb-infobox-icon-above-title .uagb-ifb-left-right-wrap,.uagb-infobox-icon-below-title .uagb-ifb-left-right-wrap{display:block;min-width:100%;width:100%}.uagb-infobox-icon-left-title .uagb-ifb-icon-wrap,.uagb-infobox-icon-left .uagb-ifb-icon-wrap{margin-right:10px}.uagb-infobox-icon-right-title .uagb-ifb-icon-wrap,.uagb-infobox-icon-right .uagb-ifb-icon-wrap{margin-left:10px}.uagb-infobox-icon-left .uagb-ifb-left-right-wrap,.uagb-infobox-icon-right .uagb-ifb-left-right-wrap,.uagb-infobox-icon-left-title .uagb-ifb-left-title-image,.uagb-infobox-icon-right-title .uagb-ifb-right-title-image{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-infobox-icon-right .uagb-ifb-left-right-wrap,.uagb-infobox-icon-right-title .uagb-ifb-right-title-image{-ms-flex-pack:end;justify-content:flex-end}.uagb-ifb-icon-wrap .uagb-ifb-icon span{font-style:initial;height:auto;width:auto}.uagb-ifb-imgicon-wrap .uagb-ifb-image-content{display:inline-block;line-height:0;position:relative;max-width:100%}.uagb-ifb-imgicon-wrap .uagb-ifb-image-content img{display:inline;height:auto !important;max-width:100%;width:auto;-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:inherit}.uagb-ifb-imgicon-wrap .uagb-image-crop-circle img{border-radius:100%}.uagb-ifb-imgicon-wrap .uagb-image-crop-square img{border-radius:0}.uagb-infobox-module-link{position:absolute;width:100%;height:100%;left:0;top:0;bottom:0;right:0;z-index:4}.uagb-edit-mode .uagb-infobox-module-link{z-index:2}.uagb-infobox-link-icon-after{margin-left:5px;margin-right:0}.uagb-infobox-link-icon-before{margin-left:0;margin-right:5px}.uagb-infobox-link-icon{-webkit-transition:all 200ms linear;-o-transition:all 200ms linear;transition:all 200ms linear}.uagb-infobox{position:relative}.uagb-ifb-separator{width:30%;border-top-width:2px;border-top-color:#333;border-top-style:solid;display:inline-block;margin:0}.uagb-ifb-separator-parent{line-height:0em;margin-left:0;margin-right:0;margin-bottom:10px}.uagb-ifb-cta-button{display:inline-block;line-height:1;background-color:#818a91;color:#fff;text-align:center}.uagb-ifb-cta a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-ifb-title-wrap{width:100%}.uagb-ifb-title-wrap .uagb-ifb-title,.uagb-ifb-title-wrap .uagb-ifb-title-prefix{padding:0;margin:0;display:block}.uagb-infobox__content-wrap.uagb-infobox{position:relative}.uagb-ifb-icon span{font-size:40px;height:40px;color:#333;width:40px}.uagb-ifb-icon svg{fill:#333}.uagb-ifb-content{width:100%}.uagb-infobox__content-wrap.uagb-infobox,.uagb-ifb-content,.uagb-ifb-title-wrap,.uagb-ifb-title-prefix *,svg.dashicon.dashicons-upload{z-index:1}.uagb-ifb-left-right-wrap,button.components-button{z-index:1}.uagb-infobox-cta-link{cursor:pointer}a.uagb-infobox-link-wrap{color:inherit}.uagb-ifb-content p:empty{display:none}.uagb-infobox .uagb-ifb-icon,.uagb-infobox .uagb-ifb-image-content img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-ifb-align-icon-after{margin-left:5px}.uagb-ifb-align-icon-before{margin-right:5px}span.uagb-ifb-button-icon.uagb-ifb-align-icon-after{float:right}.uagb-ifb-button-icon{height:15px;width:15px;font-size:15px;vertical-align:middle}.uagb-ifb-text-icon{height:15px;width:15px;font-size:15px;line-height:15px;vertical-align:middle;display:inline-block}.uagb-ifb-button-icon svg,.uagb-ifb-text-icon svg{height:inherit;width:inherit;display:inline-block}.block-editor-page #wpwrap .uagb-infobox-cta-link svg,.uagb-infobox-cta-link svg{font-style:normal}.uagb-infobox__outer-wrap{position:relative}a.uagb-infbox__link-to-all{height:100%;width:100%;top:0;left:0;position:absolute;z-index:999;-webkit-box-shadow:none;box-shadow:none;text-decoration:none}@media only screen and (max-width: 976px){.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{padding:0;margin-bottom:20px}.uagb-infobox-stacked-tablet.uagb-reverse-order-tablet .uagb-ifb-left-right-wrap{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-content,.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{display:block;width:100%;text-align:center}.uagb-infobox.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{margin-left:0px;margin-right:0px}.uagb-infobox-stacked-tablet .uagb-ifb-left-right-wrap{display:inline-block}.uagb-infobox-icon-left-title.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap{margin-right:0px}.uagb-infobox-icon-right-title.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-right.uagb-infobox-stacked-tablet .uagb-ifb-imgicon-wrap{margin-left:0px}.uagb-infobox-icon-left-title .uagb-ifb-separator-parent{margin:10px 0}}@media screen and (max-width: 767px){.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{padding:0;margin-bottom:20px}.uagb-infobox-stacked-mobile.uagb-reverse-order-mobile .uagb-ifb-left-right-wrap{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-content,.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{display:block;width:100%;text-align:center}.uagb-infobox.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap .uagb-ifb-imgicon-wrap{margin-left:0px;margin-right:0px}.uagb-infobox-stacked-mobile .uagb-ifb-left-right-wrap{display:inline-block}.uagb-infobox-icon-left-title.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-left.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap{margin-right:0px}.uagb-infobox-icon-right-title.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap,.uagb-infobox-icon-right.uagb-infobox-stacked-mobile .uagb-ifb-imgicon-wrap{margin-left:0px}.uagb-infobox-icon-left-title .uagb-ifb-separator-parent{margin:10px 0}}
|
6 |
+
.uagb-testimonial__wrap{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}.uagb-testimonial__wrap,.uagb-testimonial__wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-icon-wrap .uagb-icon{display:inline-block}.uagb-tm__image{position:relative}.uagb-tm__imgicon-style-circle .uagb-tm__image img{border-radius:100%;-webkit-border-radius:100%}.uagb-tm__imgicon-style-square .uagb-tm__image img{border-radius:0%;-webkit-border-radius:0%}.uagb-tm__image img,.slick-slide .uagb-tm__image img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-tm__author-name,.uagb-tm__company{display:inline-block}.uagb-tm__content{overflow:hidden;text-align:center;word-break:break-word;padding:15px;border-radius:inherit;position:relative}.uagb-tm__image-position-left .uagb-tm__content,.uagb-tm__image-position-right .uagb-tm__content{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-tm__meta-inner{display:inline-block}.uagb-tm__image-position-bottom .uagb-tm__image-content,.uagb-tm__image-position-bottom .uagb-testimonial-details{display:table-cell;vertical-align:middle}.uagb-tm__meta{width:100%;line-height:1}.uagb-tm__image-position-bottom .uagb-tm__image-content{padding-right:10px}.uagb-tm__author-name,.uagb-tm__company{display:block}.uagb-tm__image-aligned-middle .uagb-tm__image-content{-ms-flex-item-align:center;align-self:center}.uagb-tm__desc{margin-bottom:15px}.uagb-tm__author-name{margin-bottom:5px;font-size:30px;line-height:1em}.uagb-tm__company{font-size:15px;font-style:italic;line-height:1em;color:#888888}.is-carousel .uagb-testomonial__outer-wrap{padding-left:10px;padding-right:10px}.uagb-tm__overlay{height:100%;width:100%;top:0;left:0;position:absolute;background:transparent}.uagb-tm__text-wrap{position:relative}.uagb-tm__items{visibility:hidden}.uagb-tm__items.slick-initialized{visibility:visible}.uagb-tm__image-position-top .uagb-tm__image-content{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}@media (max-width: 976px){.uagb-tm__image-position-bottom.uagb-tm-stacked-tablet .uagb-tm__image-content,.uagb-tm__image-position-bottom.uagb-tm-stacked-tablet .uagb-testimonial-details{display:block;vertical-align:middle}.uagb-tm__image-position-left.uagb-tm-stacked-tablet .uagb-tm__content,.uagb-tm__image-position-right.uagb-tm-stacked-tablet .uagb-tm__content{display:block;-js-display:block;display:block}.uagb-tm__image-position-right.uagb-tm-stacked-tablet.uagb-tm-reverse-order-tablet .uagb-tm__content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-tm__image-aligned-top.uagb-tm-stacked-tablet .uagb-tm__image-content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-item-align:center;align-self:center}}@media (max-width: 768px){.uagb-tm__image-position-bottom.uagb-tm-stacked-mobile .uagb-tm__image-content,.uagb-tm__image-position-bottom.uagb-tm-stacked-mobile .uagb-testimonial-details{display:block;vertical-align:middle}.uagb-tm__image-position-left.uagb-tm-stacked-mobile .uagb-tm__content,.uagb-tm__image-position-right.uagb-tm-stacked-mobile .uagb-tm__content{display:block;-js-display:block;display:block}.uagb-tm__image-position-right.uagb-tm-stacked-mobile.uagb-tm-reverse-order-mobile .uagb-tm__content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-tm__image-aligned-top.uagb-tm-stacked-mobile .uagb-tm__image-content{display:-ms-inline-flexbox;-js-display:inline-flex;display:inline-flex;-ms-flex-item-align:center;align-self:center}}.uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{right:-45px}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{left:-45px;right:auto}.uagb-tm__arrow-inside.uagb-slick-carousel .slick-prev{left:25px;z-index:1}[dir="rtl"] .uagb-tm__arrow-inside.uagb-slick-carousel .slick-prev{left:auto;right:25px}.uagb-tm__arrow-inside.uagb-slick-carousel .slick-next{right:25px}[dir="rtl"] .uagb-tm__arrow-inside.uagb-slick-carousel .slick-next{left:25px;right:auto}@media (max-width: 976px){.uagb-tm__arrow-outside.uagb-slick-carousel .slick-prev{left:15px;z-index:1}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-prev{left:auto;right:15px}.uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{right:15px}[dir="rtl"] .uagb-tm__arrow-outside.uagb-slick-carousel .slick-next{left:15px;right:auto}}
|
7 |
+
.uagb-team__outer-wrap .uagb-team__prefix{font-size:15px;font-style:italic;color:#888}.uagb-team__outer-wrap .uagb-team__image-wrap img{display:inline;height:auto !important;max-width:100%;width:inherit;-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:inherit}.uagb-team__outer-wrap .uagb-team__image-wrap.uagb-team__image-crop-circle img{border-radius:100%}.uagb-team__outer-wrap .uagb-team__image-wrap.uagb-team__image-crop-square img{border-radius:0}.uagb-team__outer-wrap .uagb-team__social-icon-wrap ul{list-style:none;display:-ms-flexbox;display:flex}.uagb-team__outer-wrap .uagb-team__social-icon a span,.uagb-team__outer-wrap .uagb-team__social-icon a span:before{color:inherit;font-size:inherit;height:inherit;width:inherit}.uagb-team__outer-wrap .uagb-team__social-icon a{font-size:20px;width:20px;height:20px;color:#333;display:block}.uagb-team__outer-wrap .uagb-team__social-icon{margin-right:20px;margin-left:0}.uagb-team__outer-wrap .uagb-team__social-list{margin:0;padding:0}.uagb-team__image-position-above.uagb-team__align-center{text-align:center}.uagb-team__image-position-above.uagb-team__align-left{text-align:left}.uagb-team__image-position-above.uagb-team__align-right{text-align:right}.uagb-team__image-position-left .uagb-team__wrap,.uagb-team__image-position-right .uagb-team__wrap{-js-display:flex;display:-ms-flexbox;display:flex}.uagb-team__image-position-left .uagb-team__content{text-align:left}.uagb-team__image-position-right .uagb-team__content{text-align:right}.uagb-team__image-position-left .uagb-team__social-icon-wrap ul{-ms-flex-pack:start;justify-content:flex-start;margin:0;padding:0}.uagb-team__image-position-right .uagb-team__social-icon-wrap ul{-ms-flex-pack:end;justify-content:flex-end;margin:0;padding:0}.uagb-team__image-position-left li{margin-right:5px}.uagb-team__image-position-right li{margin-left:5px}.uagb-team__image-position-above .uagb-team__social-icon-wrap{display:inline-block}.uagb-team__image-position-above.uagb-team__align-center .uagb-team__content{text-align:center}.uagb-team__image-position-above.uagb-team__align-left .uagb-team__content{text-align:left}.uagb-team__image-position-above.uagb-team__align-right .uagb-team__content{text-align:right}@media only screen and (max-width: 976px){.uagb-team__stack-tablet,.uagb-team__stack-tablet .uagb-team__content{text-align:center}.uagb-team__stack-tablet .uagb-team__wrap{display:inline-block}.uagb-team__stack-tablet .uagb-team__image-wrap{margin-left:auto !important;margin-right:auto !important}.uagb-team__stack-tablet .uagb-team__social-icon-wrap ul{-ms-flex-pack:center;justify-content:center}}@media screen and (max-width: 767px){.uagb-team__stack-mobile,.uagb-team__stack-mobile .uagb-team__content{text-align:center}.uagb-team__stack-mobile .uagb-team__wrap{display:inline-block}.uagb-team__stack-mobile .uagb-team__image-wrap{margin-left:auto !important;margin-right:auto !important}.uagb-team__stack-mobile .uagb-team__social-icon-wrap ul{-ms-flex-pack:center;justify-content:center}}
|
8 |
+
.uagb-social-share__outer-wrap .uagb-social-share__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.uagb-social-share__outer-wrap a.uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none}.uagb-social-share__outer-wrap .uagb-ss__wrapper{padding:0;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex;text-align:center}.uagb-social-share__outer-wrap .uagb-ss__source-wrap{display:inline-block}.uagb-social-share__outer-wrap .uagb-ss__link{color:#3a3a3a;display:inline-table;line-height:0;cursor:pointer}.uagb-social-share__outer-wrap .uagb-ss__source-icon{font-size:40px;width:40px;height:40px}.uagb-social-share__outer-wrap .uagb-ss__source-image{width:40px}.uagb-social-share__outer-wrap .uagb-ss__wrapper:first-child{margin-left:0}.uagb-social-share__outer-wrap .uagb-ss__wrapper:last-child{margin-right:0}
|
9 |
+
.uagb-google-map__wrap{display:-ms-flexbox;display:flex}.uagb-google-map__wrap .uagb-google-map__iframe{width:100%;-webkit-box-shadow:none;box-shadow:none;border:none;padding:0;margin:0}
|
10 |
+
.uagb-icon-list__outer-wrap .uagb-icon-list__wrap{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:flex-start;align-items:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start}.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:focus,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:active,.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper:visited{text-decoration:none}.uagb-icon-list__outer-wrap a.uagb-button__link:focus{-webkit-box-shadow:none;box-shadow:none}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper>p{display:none}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper{padding:0;margin-left:5px;margin-right:5px;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;display:-ms-inline-flexbox;display:inline-flex;text-align:center}.uagb-icon-list__outer-wrap .uagb-icon-list__content-wrap,.uagb-icon-list__outer-wrap .uagb-icon-list__source-wrap{width:inherit;display:inline-block}.uagb-icon-list__outer-wrap .uagb-icon-list__source-wrap{display:inherit;-ms-flex-align:center;align-items:center}.uagb-icon-list__outer-wrap .uagb-icon-list__content-wrap{color:#3a3a3a;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon,.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon:before{font-size:40px;width:40px;height:40px}.uagb-icon-list__outer-wrap .uagb-icon-list__source-icon svg{display:block}.uagb-icon-list__outer-wrap .uagb-icon-list__source-image{width:40px}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper:first-child{margin-left:0}.uagb-icon-list__outer-wrap .uagb-icon-list__wrapper:last-child{margin-right:0}.uagb-icon-list__outer-wrap .uagb-icon-list__wrap>p{display:none}.uagb-icon-list__outer-wrap a.uagb-icon-list__wrapper[href="javascript:void(0);"]{pointer-events:none;cursor:text}.uagb-icon-list__outer-wrap:not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap{margin-right:15px}.uagb-icon-list__outer-wrap.uagb-icon-list__icon-at-top .uagb-icon-list__source-wrap{-ms-flex-item-align:flex-start;align-self:flex-start;margin-top:5px}
|
11 |
+
.uagb-rest_menu__wrap{position:relative;padding-left:5px;padding-right:5px;-webkit-box-sizing:border-box;box-sizing:border-box}.uagb-rest_menu__wrap,.uagb-rest_menu__wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-rm__image img,.slick-slide .uagb-rm__image img{display:inline-block;-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-rm__title,.uagb-rm__price{display:inline-block}.uagb-rm__desc{margin-bottom:15px;font-style:italic}.uagb-rm__content{overflow:hidden;text-align:left;word-break:break-word;padding:15px;border-radius:inherit;position:relative;padding:5px}.uagb-rm__image-position-left .uagb-rm__content,.uagb-rm__image-position-right .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-rm-details{display:table;width:100%}.uagb-rm__title-wrap,.uagb-rm__price-wrap{display:table-cell}.uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:85%}.uagb-rm__price-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:15%}.uagb-rm__title,.uagb-rm__price{display:block}.uagb-rm__align-center .uagb-rm-details,.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%}.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:center;align-self:center}.uagb-rm__image{overflow:hidden}.uagb-rm__title{margin-bottom:5px;font-size:20px}.uagb-rm__price{font-style:italic;text-align:right}.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm-details,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%;text-align:center}.uagb-rm__align-center .uagb-rm__price{text-align:center}.uagb-rm__align-right .uagb-rm-details{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-rm__align-right .uagb-rm__price{text-align:left}.uagb-rm__align-left .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm-details{display:-ms-flexbox;display:flex;-ms-flex-direction:unset;flex-direction:unset;text-align:left}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__image-content{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm-details{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;text-align:right}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__image-content{text-align:right}.uagb-rest_menu__outer-wrap{position:relative}.uagb-rm__overlay{height:100%;width:100%;top:0;left:0;position:absolute;background:transparent}.uagb-tm-parent{padding:30px}.uagb-rm__text-wrap{position:relative;display:block;width:100%}.uagb-rest_menu__wrap{position:relative}.uagb-rest_menu__outer-wrap:after{content:"";display:block;clear:both}.uagb-rest_menu__wrap.uagb-rm__desk-column-3{display:block;width:33%;float:left;width:calc(100% / 3);padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-2{display:block;width:49%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-1{display:block;width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__separator-parent{line-height:0em;margin-left:0;margin-right:0;margin-bottom:10px;-js-display:flex;display:-moz-flexbox;display:-ms-flexbox;display:flex}.uagb-rm__separator{width:100%;border-top-width:1px;border-top-color:#b2b4b5;border-top-style:inherit}.uagb-rm__image-position-left .uagb-rm__image{margin-right:10px}.uagb-rm__image-position-right .uagb-rm__image{margin-left:10px}@media (max-width: 976px){.uagb-rm__image-position-left.uagb-rm-stacked-tablet .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-tablet .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm-reverse-order-tablet .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:-moz-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-rest_menu__wrap.uagb-rm__tablet-column-3{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__tablet-column-2{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__tablet-column-1{width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:end;align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:start;align-self:flex-start}}@media (max-width: 767px){.uagb-rm__image-position-left.uagb-rm-stacked-mobile .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-mobile .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm-reverse-order-mobile .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:-moz-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.uagb-rest_menu__wrap.uagb-rm__mobile-column-3{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-2{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-1{width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:end;align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:start;align-self:flex-start}}
|
12 |
+
.uagb-timeline__widget{position:relative;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.uagb-timeline__widget a{text-decoration:none;color:inherit}.uagb-timeline__heading a{font-size:inherit;color:inherit;margin-bottom:inherit}.uagb-timeline__image a{display:block;position:relative;max-width:100%}.uagb-timeline__image img{display:inline-block;-webkit-box-sizing:content-box;-mz-box-sizing:content-box;box-sizing:content-box}.uagb-timeline__author{text-transform:uppercase}.uagb-timeline__main{position:relative}.uagb-content{word-break:break-word}a.uagb-timeline__link{padding:5px 10px;display:inline-block}h1.uagb-timeline__heading,h2.uagb-timeline__heading,h3.uagb-timeline__heading,h4.uagb-timeline__heading,h5.uagb-timeline__heading,h6.uagb-timeline__heading{margin-bottom:0px}.uagb-timeline__inner-date-new p{margin-bottom:0}.uagb-timeline__date-inner .uagb-timeline__inner-date-new p{margin-bottom:0px}.uagb-timeline__line{background-color:#eeeeee}.uagb-timeline__line__inner{background-color:#5cb85c;width:100%}.uagb-timeline__main .uagb-timeline__icon-new{line-height:1em;display:inline-block;vertical-align:middle;font-style:normal}.uagb-timeline__center-block .uagb-timeline__date-hide{display:none}.uagb-timeline__field:not(:last-child){margin-bottom:20px}.uagb-timeline__center-block .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__right-block .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:inherit}.uagb-timeline__center-block .uagb-timeline__date-new{display:block}.uagb-timeline__right-block .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{top:0;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__right-block .uagb-timeline__marker,.uagb-timeline__right-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__right-block .uagb-timeline__day-new{margin-right:14px}.uagb-timeline__right-block .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__right-block .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__left-block .uagb-timeline__marker,.uagb-timeline__left-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__left-block .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__left-block .uagb-timeline__day-new{margin-left:14px}.uagb-timeline__left-block .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__left-block .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{top:0;width:10px;height:40px;position:absolute}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__marker{background-color:#eeeeee;border-radius:999px;position:relative;-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.uagb-timeline__main .uagb-timeline__days .uagb-timeline__field-wrap:hover .uagb-timeline__marker{-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.uagb-timeline__center-block .uagb-timeline__marker{-ms-flex-order:1;order:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block .uagb-timeline__day-new,.uagb-timeline__center-block .uagb-timeline__date-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:100%;position:relative}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:2;order:2;padding-left:0;padding-right:12px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:2;order:2;padding-right:0;padding-left:12px}.uagb-timeline__events-inner-new{padding:40px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__right-block .uagb-timeline__date-new{margin-left:10px}.uagb-timeline__right-block .uagb-timeline__date-new{-js-display:flex;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow{right:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow{left:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__arrow-center .uagb-timeline__widget{-ms-flex-align:center;align-items:center}.uagb-timeline__arrow-bottom .uagb-timeline__widget{-ms-flex-align:end;align-items:flex-end}.uagb-timeline__arrow-center .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-center .uagb-timeline__right .uagb-timeline__arrow{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__arrow-bottom .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-bottom .uagb-timeline__right .uagb-timeline__arrow{top:100%;-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}.uagb-timeline__day-right .uagb-timeline__events-inner{text-align:right}.uagb-timeline__day-left .uagb-timeline__events-inner{text-align:left}.uagb-timeline__arrow-top .uagb-timeline__date-new .uagb-timeline__date-new,.uagb-timeline__arrow-bottom .uagb-timeline__date-new .uagb-timeline__date-new{padding-top:8px;padding-bottom:8px}.uagb-timeline__events-inner-new,.uagb-timeline__arrow{-webkit-transition:background .2s ease-in-out;-o-transition:background .2s ease-in-out;transition:background .2s ease-in-out}.uagb-timeline__arrow:after{-webkit-transition:border-color .2s ease-in-out;-o-transition:border-color .2s ease-in-out;transition:border-color .2s ease-in-out}.uagb-timeline__date-new{-webkit-transition:color .2s ease-in-out;-o-transition:color .2s ease-in-out;transition:color .2s ease-in-out}.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__main .uagb-timeline__year{-js-display:flex;display:-ms-flexbox;display:flex;position:relative}.uagb-timeline__main .uagb-timeline__year span{display:inline-block;padding-bottom:6px}.uagb-timeline__day-left .uagb-timeline__arrow:after{content:'';left:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__day-left .uagb-timeline__arrow:after{right:0}.uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__icon{width:100px;height:100px;border-radius:50%;text-align:center;line-height:100px;vertical-align:middle;position:relative;z-index:1}.uagb-timeline__main .uagb-timeline__date .uagb-timeline__inner-date-new{white-space:nowrap;margin:0px}.uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-timeline__right-block .uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block .uagb-timeline__line{left:50%;right:auto}.uagb-timeline__main .in-view i.uagb-timeline__in-view-icon{-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-in-out;-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;-o-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out}.uagb-timeline__left-block .uagb-timeline__days{text-align:left}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block .uagb-timeline__days{text-align:center}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__days{text-align:right}.uagb-timeline__outer-wrap span.dashicons-admin-users.dashicons{display:inline;vertical-align:baseline;margin-right:4px}@media screen and (max-width: 1023px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}@media screen and (max-width: 767px){.uagb-timeline-responsive-none .uagb-timeline__events-inner-new{padding:15px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__day-left .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}.uagb-timeline__line__inner{background-color:#61ce70;width:100%}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.rtl .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.rtl .uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__day-right .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__day-left .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__line{width:3px}.uagb-timeline__main .uagb-timeline__icon-new{font-size:16px}.uagb-timeline__marker{min-height:3em;min-width:3em;line-height:3em}.uagb-timeline__arrow{height:3em}.uagb-timeline__left-block .uagb-timeline__line{left:calc(3em / 2)}.uagb-timeline__right-block .uagb-timeline__line{right:calc(3em / 2)}.rtl .uagb-timeline__left-block .uagb-timeline__line{right:calc(3em / 2);left:auto}.rtl .uagb-timeline__right-block .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline-desc-content p{font-size:inherit}.uagb-timeline__main p:empty{display:none}@media (max-width: 976px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}}@media (max-width: 767px){.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:calc(3em / 2);left:auto}}
|
13 |
+
.uagb-cta__outer-wrap{position:relative}.uagb-cta__outer-wrap .uagb-cta__content{display:inline-block}.uagb-cta__outer-wrap a.uagb-cta__block-link span{font-size:inherit;vertical-align:middle;display:inline-block;float:left}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__link-wrapper{width:30%}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__content{width:70%}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:right}.uagb-cta__outer-wrap .uagb-cta__link-wrapper.uagb-cta__block-link-style:empty{display:none}.uagb-cta__outer-wrap a.uagb-cta__block-link,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link,.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link-wrap{text-decoration:none}.uagb-cta__outer-wrap a.uagb-cta__block-link:hover,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link:hover,.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap:hover,.uagb-cta__outer-wrap .entry .entry-content a.uagb-cta__block-link-wrap:hover .entry .entry-content a.uagb-cta__block-link:hover{color:inherit}.uagb-cta__outer-wrap .uagb-cta__content-right{text-align:right;-ms-flex-pack:end;justify-content:flex-end}.uagb-cta__outer-wrap .uagb-cta__left-right-wrap{width:100%;word-break:break-word}.uagb-cta__outer-wrap .uagb-cta__icon-position-below-title .uagb-cta__left-right-wrap{display:block;min-width:100%;width:100%}.uagb-cta__outer-wrap .uagb-cta__icon-position-left .uagb-cta__left-right-wrap,.uagb-cta__outer-wrap .uagb-cta__icon-position-right .uagb-cta__left-right-wrap{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-cta__outer-wrap .uagb-cta__icon-position-right .uagb-cta__left-right-wrap{-ms-flex-pack:end;justify-content:flex-end}.uagb-cta__outer-wrap .uagb-cta__block-link-icon-after{margin-left:5px;margin-right:0}.uagb-cta__outer-wrap .uagb-cta__block-link-icon-before{margin-left:0;margin-right:5px}.uagb-cta__outer-wrap .uagb-cta__block-link-icon,.uagb-cta__outer-wrap .uagb-cta__block svg{-webkit-transition:all 200ms linear;-o-transition:all 200ms linear;transition:all 200ms linear}.uagb-cta__outer-wrap .uagb-cta__block{position:relative}.uagb-cta__outer-wrap .uagb-cta-typeof-button{display:inline-block;line-height:1;background-color:transparent;color:#333;text-align:center}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-link-wrapper,.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link,.uagb-cta__outer-wrap .uagb-cta__content-right.uagb-cta__button-valign-middle .uagb-cta__left-right-wrap{display:-ms-flexbox;-js-display:flex;display:flex;-ms-flex-align:center;align-items:center}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__button-link-wrapper,.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link{-ms-flex-pack:center;justify-content:center}.uagb-cta__outer-wrap .uagb-cta__link-wrapper a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.uagb-cta__outer-wrap .uagb-cta__title-wrap .uagb-cta__title{padding:0;margin:0;display:block}.uagb-cta__outer-wrap .uagb-cta__block,.uagb-cta__outer-wrap .uagb-cta__content{z-index:1}.uagb-cta__outer-wrap .uagb-cta__left-right-wrap{z-index:1}.uagb-cta__outer-wrap .uagb-cta__block-link{cursor:pointer}.uagb-cta__outer-wrap .uagb-cta__content-right .uagb-cta__block-link{display:inline-block;float:right;padding:10px 14px}.uagb-cta__outer-wrap a.uagb-cta__block-link-wrap{color:inherit}.uagb-cta__outer-wrap .uagb-cta__content p:empty{display:none}.uagb-cta__outer-wrap .uagb-cta__button-type-none .uagb-cta__content{width:100%}.uagb-cta__outer-wrap .uagb-cta-with-svg{height:14px;width:14px;line-height:14px;display:inline-block;vertical-align:middle}.uagb-cta__outer-wrap .uagb-cta__block svg{display:block;height:inherit;width:inherit}.uagb-cta__outer-wrap .uagb-cta__align-button-after{margin-left:5px}.uagb-cta__outer-wrap .uagb-cta__align-button-before{margin-right:5px}.uagb-cta__outer-wrap .uagb-cta__block-link i{font-style:normal}.uagb-cta__outer-wrap a.uagb-cta__link-to-all{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}@media only screen and (max-width: 976px){.uagb-cta__content-stacked-tablet .uagb-cta__left-right-wrap{-ms-flex-direction:column;flex-direction:column;text-align:center}.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:none;margin:0 auto}.uagb-cta__content-stacked-tablet .uagb-cta__left-right-wrap .uagb-cta__content{margin-left:0;margin-right:0}.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content,.uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper{width:100% !important}}@media screen and (max-width: 767px){.uagb-cta__content-stacked-mobile .uagb-cta__left-right-wrap{-ms-flex-direction:column;flex-direction:column;text-align:center}.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__button-wrapper{display:inline-block;float:none;margin:0 auto}.uagb-cta__content-stacked-mobile .uagb-cta__left-right-wrap .uagb-cta__content{margin-left:0;margin-right:0}.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content,.uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper{width:100% !important}}
|
14 |
+
.uagb-column__wrap{position:relative;overflow:hidden}.uagb-column__wrap .uagb-column__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2;-ms-flex:1;flex:1;width:100%}.uagb-column__wrap.uagb-column__align-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__wrap.uagb-column__align-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}.uagb-column__wrap .uagb-column__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-column__wrap .uagb-column__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-column__wrap .uagb-column__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.wp-block-uagb-columns>.editor-inner-blocks>.editor-block-list__layout>[data-type="uagb/column"]{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;padding-left:0;padding-right:0;margin-left:-14px;margin-right:-14px;min-width:0;word-break:break-word;overflow-wrap:break-word;-ms-flex-preferred-size:100%;flex-basis:100%}@media (max-width: 976px){.uagb-column__align-tablet-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__align-tablet-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}}@media (max-width: 767px){.uagb-column__align-mobile-left .uagb-column__inner-wrap{margin-left:0;margin-right:auto}.uagb-column__align-mobile-right .uagb-column__inner-wrap{margin-left:auto;margin-right:0}}@media (max-width: 449px){.uagb-columns__wrap.uagb-columns__background-image{background-attachment:scroll !important}}
|
15 |
+
.uagb-columns__wrap{position:relative}.uagb-columns__wrap .uagb-columns__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2}.uagb-columns__wrap .uagb-columns__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-columns__wrap .uagb-columns__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-columns__wrap .uagb-columns__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.uagb-columns__wrap .uagb-column__wrap{display:-ms-flexbox;display:flex}.uagb-columns__wrap .uagb-columns__shape{overflow:hidden;position:absolute;left:0;width:100%;line-height:0;direction:ltr;z-index:1}.uagb-columns__wrap .uagb-columns__shape-top{top:-3px}.uagb-columns__wrap .uagb-columns__shape-bottom{bottom:-3px}.uagb-columns__wrap .uagb-columns__shape[data-negative="false"].uagb-columns__shape-bottom{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape[data-negative="true"].uagb-columns__shape-top{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape.uagb-columns__shape-flip svg{-webkit-transform:translateX(-50%) rotateY(180deg);transform:translateX(-50%) rotateY(180deg)}.uagb-columns__wrap .uagb-columns__shape svg{display:block;width:calc(100% + 1.3px);position:relative;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-columns__wrap .uagb-columns__shape .uagb-columns__shape-fill{fill:#333;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}.uagb-columns__wrap .uagb-columns__shape.uagb-columns__shape-above-content{z-index:9;pointer-events:none}.uagb-columns__valign-middle .uagb-column__wrap{-ms-flex-align:center;align-items:center}.uagb-columns__valign-top .uagb-column__wrap{-ms-flex-align:flex-start;align-items:flex-start}.uagb-columns__valign-bottom .uagb-column__wrap{-ms-flex-align:flex-end;align-items:flex-end}.uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.uagb-columns__columns-1>.uagb-column__wrap{width:100%}.uagb-columns__columns-2>.uagb-column__wrap{width:50%}.uagb-columns__columns-3>.uagb-column__wrap{width:33.33%}.uagb-columns__columns-4>.uagb-column__wrap{width:25%}.uagb-columns__columns-5>.uagb-column__wrap{width:20%}.uagb-columns__columns-6>.uagb-column__wrap{width:16.66%}.uagb-columns__gap-nogap>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:0}.uagb-columns__gap-default>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:10px}.uagb-columns__gap-narrow>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:5px}.uagb-columns__gap-extended>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:15px}.uagb-columns__gap-wide>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:20px}.uagb-columns__gap-wider>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:30px}@media (max-width: 976px){.uagb-columns__stack-tablet .uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-tablet .uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-tablet .uagb-columns__inner-wrap{display:block}.uagb-columns__reverse-tablet .uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 767px){.uagb-columns__stack-mobile .uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-mobile .uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-mobile .uagb-columns__inner-wrap{display:block}.uagb-columns__reverse-mobile .uagb-columns__inner-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}}@media (max-width: 449px){.uagb-columns__wrap .uagb-column__wrap.uagb-column__background-image{background-attachment:scroll !important}}
|
16 |
+
.wp-block-uagb-cf7-styler .wpcf7 *,.wp-block-uagb-cf7-styler .wpcf7 :after,.wp-block-uagb-cf7-styler .wpcf7 :before{-webkit-box-sizing:border-box;box-sizing:border-box}.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::before,.wp-block-uagb-cf7-styler span.wpcf7-list-item-label::after{content:" "}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{content:'';display:inline-block;vertical-align:middle;margin-right:10px;text-align:center;height:15px;width:15px;border-style:solid;border-color:#eaeaea;border-width:1px 1px 1px 1px}.wp-block-uagb-cf7-styler span.wpcf7-list-item{display:inline-block;margin:0 1em 0 0}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]:checked+span:before{content:"\2714";line-height:1.2}.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-acceptance input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]+span:before,.wp-block-uagb-cf7-styler .wpcf7-checkbox input[type=checkbox]:checked+span:before,.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{-webkit-box-sizing:content-box;box-sizing:content-box}.wp-block-uagb-cf7-styler input[type=checkbox]:checked+span:before{font-size:calc(12px / 1.2)}.wp-block-uagb-cf7-styler .wpcf7-radio input[type=radio]+span:before{border-radius:100%}.wp-block-uagb-cf7-styler .uagb-cf7-styler__field-style-box .wpcf7-radio input[type="radio"]:checked+span:before,.wp-block-uagb-cf7-styler .uagb-cf7-styler__field-style-underline .wpcf7-radio input[type="radio"]:checked+span:before{background-color:#545454;-webkit-box-shadow:inset 0px 0px 0px 4px #fafafa;box-shadow:inset 0px 0px 0px 4px #fafafa}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-justify input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-left input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-right input.wpcf7-form-control.wpcf7-submit,.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-center input.wpcf7-form-control.wpcf7-submit{display:-ms-flexbox;-js-display:flex;display:flex;width:auto;line-height:1em;background:transparent;border-color:#333;border-width:1px;padding:10px 25px}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-right input.wpcf7-form-control.wpcf7-submit{margin-left:auto;margin-right:0}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-left input.wpcf7-form-control.wpcf7-submit{margin-right:auto;margin-left:0}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-center input.wpcf7-form-control.wpcf7-submit{margin-right:auto;margin-left:auto}.wp-block-uagb-cf7-styler .uagb-cf7-styler__btn-align-justify input.wpcf7-form-control.wpcf7-submit{-ms-flex-pack:center;justify-content:center;width:100%}.wp-block-uagb-cf7-styler .wpcf7 input[type=checkbox],.wp-block-uagb-cf7-styler .wpcf7 input[type=radio]{display:none}.wp-block-uagb-cf7-styler .wpcf7 select{height:auto;padding:10px;-webkit-appearance:menulist-button;-moz-appearance:menulist-button;-webkit-appearance:menulist-button}.wp-block-uagb-cf7-styler select.wpcf7-form-control.wpcf7-select[multiple="multiple"]{padding:0}.wp-block-uagb-cf7-styler .wpcf7 select option{padding:10px}.wp-block-uagb-cf7-styler .uagb-cf7-styler__highlight-style-bottom_right span.wpcf7-not-valid-tip{display:inline-block;right:0;top:100%;padding:.1em .8em;border-radius:2px;color:#ffffff;background-color:rgba(255,0,0,0.6);padding:5px 10px;font-size:15px;float:right;margin-top:5px}.wp-block-uagb-cf7-styler .wpcf7 input[type="number"]{height:auto}.wp-block-uagb-cf7-styler .wpcf7 input.wpcf7-date{-webkit-appearance:none}@media (min-width: 769px){.wp-block-uagb-cf7-styler .uagb-cf7_styler-col{-js-display:flex;display:-ms-flexbox;display:flex}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col label,.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:100%;flex-basis:100%}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col br{display:none}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span.uagb-cf7_styler-col-1{padding-left:0;padding-right:15px}.wp-block-uagb-cf7-styler .uagb-cf7_styler-col>span.uagb-cf7_styler-col-3{padding-left:15px;padding-right:0}.wp-block-uagb-cf7-styler .wpcf7 .uagb-cf7_styler-col span.wpcf7-form-control-wrap{height:100%}.wp-block-uagb-cf7-styler .wpcf7 .uagb-cf7_styler-col select{height:100%}}
|
17 |
+
.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-multi .chosen-choices,.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0;height:auto;border:1px solid #AAA;border-radius:0;background:#FFF;-webkit-box-shadow:none;box-shadow:none;color:#444;text-decoration:none;white-space:nowrap}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single span{line-height:1}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-active.chosen-with-drop .chosen-single{background:#FFF}.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=submit]{display:inline-block}.uagb-gf-styler__check-style-enabled .gform_wrapper .gf_progressbar_wrapper h3.gf_progressbar_title,.uagb-gf-styler__check-style-enabled .gform_wrapper .gf_progressbar_wrapper .gf_progressbar_title{opacity:1}.uagb-gf-styler__check-style-enabled .uag-gf-select-custom{position:relative}.uagb-gf-styler__check-style-enabled .uag-gf-select-custom:after{content:"\f078";font-family:'FontAwesome' !important;font-size:0.7em;line-height:1;position:absolute;top:45%;-webkit-transform:translateY(-45%);-ms-transform:translateY(-45%);transform:translateY(-45%);right:0.5em;pointer-events:none;z-index:5}.uagb-gf-styler__check-style-enabled span.name_prefix_select .uag-gf-select-custom{display:inline;vertical-align:middle}.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]:checked+label:before{-webkit-box-shadow:inset 0px 0px 0px 4px #fafafa;box-shadow:inset 0px 0px 0px 4px #fafafa}.uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{-webkit-box-sizing:content-box;box-sizing:content-box}.uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]:checked+label:before{font-weight:700}.uagb-gf-styler__check-style-enabled select,.uagb-gf-styler__check-style-enabled .chosen-single{-webkit-appearance:none;-moz-appearance:none;appearance:none}.uagb-gf-styler__check-style-enabled .gform_wrapper div.validation_error{border-top:none;border-bottom:none}.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield_radio li label{margin:0 0 0 0}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_body{width:100% !important}.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="checkbox"]:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="radio"]:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="checkbox"]+label:before,.uagb-gf-styler__check-style-enabled .gform_wrapper input[type="radio"]+label:before{-webkit-box-sizing:content-box !important;box-sizing:content-box !important}.uagb-gf-styler__check-style-enabled .gform_wrapper .gsection{margin-right:0}.uag-gf-btn-size-xs .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-xs .uagb-gf-styler__check-style-enabled input[type=button]{font-size:13px;padding:10px 20px;border-radius:2px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:13px;padding:8px 10px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:13px;padding:6px 10px}.ginput_container select{height:100%;line-height:inherit}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:13px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:10px;width:10px}.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-xs .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 10px / 1.2)}.uag-gf-btn-size-sm .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-sm .uagb-gf-styler__check-style-enabled input[type=button]{font-size:15px;padding:12px 24px;border-radius:3px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:15px;padding:12px 10px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:15px;padding:10px 10px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:15px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:12px;width:12px}.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-sm .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 12px / 1.2)}.uag-gf-btn-size-md .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-md .uagb-gf-styler__check-style-enabled input[type=button]{font-size:16px;padding:15px 30px;border-radius:4px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:16px;padding:15px 10px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:16px;padding:13px 10px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:16px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:15px;width:15px}.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-md .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 15px / 1.2)}.uag-gf-btn-size-lg .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-lg .uagb-gf-styler__check-style-enabled input[type=button]{font-size:18px;padding:20px 40px;border-radius:5px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:18px;padding:20px 10px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:18px;padding:18px 10px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:18px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:20px;width:20px}.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-lg .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{font-size:calc( 20px / 1.2)}.uag-gf-btn-size-xl .uagb-gf-styler__check-style-enabled input[type=submit],.uag-gf-btn-size-xl .uagb-gf-styler__check-style-enabled input[type=button]{font-size:20px;padding:25px 50px;border-radius:6px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gform_body input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container textarea,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container .chosen-single,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container .chosen-choices{font-size:20px;padding:25px 10px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container select{font-size:20px;padding:23px 10px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .uag-gf-select-custom{font-size:20px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]+label:before{height:25px;width:25px}.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .gfield_checkbox input[type="checkbox"]:checked+label:before,.uag-gf-input-size-xl .uagb-gf-styler__check-style-enabled .ginput_container_consent input[type="checkbox"]:checked+label:before{font-size:calc( 25px / 1.2)}.uagb-gf-styler__btn-align-right .gform_next_button,.uagb-gf-styler__btn-align-right .gform_previous_button{margin-right:5px !important}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_footer:not(.top_label){padding:0 0 0 0;margin-right:0;margin-left:0;width:100%}.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_page_footer.left_label,.uagb-gf-styler__check-style-enabled .gform_wrapper .gform_page_footer.right_label{padding:0 0 0 0}.uagb-gf-styler__check-style-enabled .gfield_radio input[type="radio"]+label:before{border-radius:100%}.uagb-gf-styler__check-style-enabled .gform_wrapper .top_label .gfield_error{width:100% !important}.uagb-gf-styler__check-style-enabled .gform_wrapper.gform_validation_error .gform_body ul li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half){max-width:100% !important}.uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=submit]{display:-ms-flexbox;-js-display:flex;display:flex;width:auto}.uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto}.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto}.uagb-gf-styler__btn-align-right .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_wrapper .gform_footer input[type=submit],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=button],html[dir=rtl] .uagb-gf-styler__btn-align-left .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0}.uagb-gf-styler__btn-align-justify .gform_wrapper .gform_footer input[type=submit],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=button],.uagb-gf-styler__btn-align-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox'],.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_radio .gfield_radio input[type='radio'],.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']{display:none}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox']+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_radio .gfield_radio input[type='radio']+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']+label:before{content:'';display:inline-block;vertical-align:middle;margin-right:10px;text-align:center}.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_checkbox .gfield_checkbox input[type='checkbox']:checked+label:before,.uagb-gf-styler__check-style-enabled .gform_body .ginput_container_consent input[type='checkbox']:checked+label:before{content:"\2714";line-height:1.2}.uagb-gf-styler__check-style-enabled .gform_wrapper ul.gform_fields li.gfield:not(.gf_left_half):not(.gf_left_third):not(.gf_middle_third){padding-right:0}.uagb-gf-styler__btn-align-width-full_width .gform_footer input[type=submit]{display:block;text-align:center;width:100%}.uagb-gf-styler__check-style-enabled .gform_body ul{margin-left:0;list-style:none}.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container select,.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container .chosen-single,.uagb-gf-styler__check-style-enabled .gform_wrapper .gfield .ginput_container .chosen-choices,.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input[type="text"],.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input.default{height:auto}.elementor-widget-uag-gf-styler .uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-choices li.search-field input[type="text"]{padding:0px 0px 0px 0px}.uagb-gf-styler__check-style-enabled .gform_page .gform_page_footer input[type=button]{margin-bottom:20px}.uagb-gf-styler__check-style-enabled .gform_wrapper .chosen-container-single .chosen-single div{display:none}.uagb-gf-styler__hide-label .gform_wrapper .gform_fields .gfield_label,.uagb-gf-styler__hide-label .gform_wrapper .gform_fields .gfield_required{display:none}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single .chosen-single span{margin-bottom:0;width:100%}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single .chosen-single{border:none}.wp-block-uagb-gf-styler .gform_wrapper .chosen-container-single.chosen-container-active .chosen-single{border:none}@media only screen and (max-width: 976px){.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uag-tablet-gf-button-center .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-center .gform_page .gform_page_footer input[type="button"],.uag-tablet-gf-button-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto;width:auto}.uag-tablet-gf-button-left .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-left .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-left .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto;width:auto}.uag-tablet-gf-button-right .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-right .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-right .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0;width:auto}.uag-tablet-gf-button-justify .gform_wrapper .gform_footer input[type=submit],.uag-tablet-gf-button-justify .gform_page .gform_page_footer input[type=button],.uag-tablet-gf-button-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}}@media only screen and (max-width: 767px){.uagb-gf-styler__btn-align-center .gform_page .gform_page_footer{text-align:center}.uagb-gf-styler__btn-align-right .gform_page .gform_page_footer{text-align:right}.uag-mobile-gf-button-center .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-center .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-center .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:auto;width:auto}.uag-mobile-gf-button-left .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-left .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-left .gform_page .gform_page_footer input[type=submit]{margin-left:0;margin-right:auto;width:auto}.uag-mobile-gf-button-right .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-right .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-right .gform_page .gform_page_footer input[type=submit]{margin-left:auto;margin-right:0;width:auto}.uag-mobile-gf-button-justify .gform_wrapper .gform_footer input[type=submit],.uag-mobile-gf-button-justify .gform_page .gform_page_footer input[type=button],.uag-mobile-gf-button-justify .gform_page .gform_page_footer input[type=submit]{-ms-flex-pack:center;justify-content:center;width:100%}}
|
18 |
+
.wp-block-uagb-blockquote{padding:0;margin:0 auto}.wp-block-uagb-blockquote .uagb-blockquote__content,.wp-block-uagb-blockquote cite.uagb-blockquote__author{font-style:normal;display:block}.wp-block-uagb-blockquote cite.uagb-blockquote__author,.wp-block-uagb-blockquote .uagb-blockquote__author{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation blockquote.uagb-blockquote{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;quotes:none;border-left:0 none;border-right:0 none;border-top:0 none;border-bottom:0 none;font-style:normal}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon-wrap{position:relative;display:inline-block;padding:0px;z-index:1;background:#333;padding:10px;border-radius:100%;margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon{height:25px;width:25px;display:inline-block;float:left}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation .uagb-blockquote__icon svg{height:inherit;width:inherit;display:inherit}.wp-block-uagb-blockquote .uagb-blockquote__skin-quotation.uagb-blockquote__style-style_2 .uagb-blockquote__icon-wrap{display:inline-block;float:left}.wp-block-uagb-blockquote blockquote.uagb-blockquote{margin:0;padding:0}.wp-block-uagb-blockquote .uagb-blockquote__wrap,.wp-block-uagb-blockquote .uagb-blockquote__wrap *{-webkit-box-sizing:border-box;box-sizing:border-box}.wp-block-uagb-blockquote .uagb-blockquote__style-style_2 .uagb-blockquote__icon-wrap{display:inline-block;float:left;text-align:left}.wp-block-uagb-blockquote .uagb-blockquote__separator-parent{display:-ms-flexbox;-js-display:flex;display:flex;-ms-flex-pack:start;justify-content:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote footer{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.wp-block-uagb-blockquote .uagb-blockquote a{-webkit-box-shadow:none;box-shadow:none;text-decoration:none}.wp-block-uagb-blockquote .uagb-blockquote a.uagb-blockquote__tweet-button{display:-ms-flexbox;display:flex;-webkit-transition:0.2s;-o-transition:0.2s;transition:0.2s;-ms-flex-item-align:end;align-self:flex-end;line-height:1;position:relative;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0;color:#1DA1F2;background-color:transparent;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button svg{height:15px;width:15px;margin-right:5px;fill:#fff;vertical-align:middle;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote a.uagb-blockquote__tweet-button svg{font-style:normal}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon a.uagb-blockquote__tweet-button svg{margin-right:0}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon_text svg{margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon a.uagb-blockquote__tweet-button{padding:8px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-icon_text a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote .uagb-blockquote__tweet-text a.uagb-blockquote__tweet-button{padding:10px 14px}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-link a.uagb-blockquote__tweet-button{padding:10px 0}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-classic a.uagb-blockquote__tweet-button,.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button{background-color:#1DA1F2;border-radius:100em;color:#fff}.wp-block-uagb-blockquote .uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{content:'';border:solid 0.5em transparent;border-right-color:#1DA1F2;position:absolute;left:-0.8em;top:50%;-webkit-transform:translateY(-50%) scale(1, 0.65);-ms-transform:translateY(-50%) scale(1, 0.65);transform:translateY(-50%) scale(1, 0.65);-webkit-transition:0.2s;-o-transition:0.2s;transition:0.2s}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:auto;right:-0.8em;-webkit-transform:translateY(-50%) scale(1, 0.65) rotate(180deg);-ms-transform:translateY(-50%) scale(1, 0.65) rotate(180deg);transform:translateY(-50%) scale(1, 0.65) rotate(180deg)}.wp-block-uagb-blockquote .uagb-blockquote__align-center.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet.uagb-blockquote__align-center .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__align-center .uagb-blockquote footer{display:block;text-align:center}.wp-block-uagb-blockquote .uagb-blockquote__align-center a.uagb-blockquote__tweet-button{display:block;text-align:center;margin:0 auto;-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet.uagb-blockquote__align-right .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote footer{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wp-block-uagb-blockquote .uagb-blockquote__author-image{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__author-image img{width:50px;height:50px;border-radius:100%;margin-right:10px}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-left .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{justify-content:flex-end;-webkit-box-pack:flex-end;-ms-flex-pack:flex-end;-webkit-justify-content:flex-end;-moz-box-pack:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{justify-content:flex-start;-webkit-box-pack:flex-start;-ms-flex-pack:flex-start;-webkit-justify-content:flex-start;-moz-box-pack:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote__author-wrap{justify-content:unset;-webkit-box-pack:unset;-ms-flex-pack:unset;-webkit-justify-content:unset;-moz-box-pack:unset}.wp-block-uagb-blockquote .uagb-blockquote__align-center .uagb-blockquote__author-wrap,.wp-block-uagb-blockquote .uagb-blockquote__align-center.uagb-blockquote__with-tweet .uagb-blockquote__author-wrap{justify-content:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;-moz-box-pack:center}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .uagb-blockquote__author,.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top .editor-rich-text{width:inherit}.wp-block-uagb-blockquote .uagb-blockquote__with-tweet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{width:auto}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap .editor-rich-text{-ms-flex-item-align:center;align-self:center}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wp-block-uagb-blockquote .uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{text-align:right}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img{margin-left:10px;margin-right:0}.wp-block-uagb-blockquote .uagb-blockquote__author-wrap.uagb-blockquote__author-at-top{-ms-flex-direction:column;flex-direction:column}@media only screen and (max-width: 976px){.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left{-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left .uagb-blockquote__author-image img{margin-left:0;margin-right:0;margin-bottom:10px}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__with-tweet .uagb-blockquote footer{-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right.uagb-blockquote__with-tweet .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet a.uagb-blockquote__tweet-button{margin-top:10px}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__stack-img-tablet .uagb-blockquote__author-image{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-tablet.uagb-blockquote__align-left.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}}@media screen and (max-width: 767px){.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author{width:100%}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left{-ms-flex-direction:column;flex-direction:column}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-right .uagb-blockquote__author-image img,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left .uagb-blockquote__author-image img{margin-left:0;margin-right:0;margin-bottom:10px}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__with-tweet .uagb-blockquote footer{-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right.uagb-blockquote__with-tweet .uagb-blockquote footer,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right .uagb-blockquote__author-wrap.uagb-blockquote__author-at-left,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right a.uagb-blockquote__tweet-button{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile a.uagb-blockquote__tweet-button{margin-top:10px}.wp-block-uagb-blockquote .uagb-blockquote__align-right.uagb-blockquote__stack-img-mobile .uagb-blockquote__author-image{-ms-flex-item-align:flex-end;align-self:flex-end}.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-mobile .uagb-blockquote__author-image,.wp-block-uagb-blockquote .uagb-blockquote__align-left.uagb-blockquote__stack-img-tablet .uagb-blockquote__author{-ms-flex-item-align:flex-start;align-self:flex-start}.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-right.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before,.wp-block-uagb-blockquote .uagb-blockquote__stack-img-mobile.uagb-blockquote__align-left.uagb-blockquote__tweet-style-bubble a.uagb-blockquote__tweet-button:before{left:50%;top:-0.8em;right:auto;-webkit-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);-ms-transform:translateX(-50%) scale(1, 0.85) rotate(90deg);transform:translate(-50%, 10%) scale(1, 0.85) rotate(90deg)}}
|
19 |
+
.wp-block-uagb-marketing-button .uagb-marketing-btn__wrap>p,.wp-block-uagb-marketing-button p:empty{display:none}.wp-block-uagb-marketing-button h6.uagb-marketing-btn__title,.wp-block-uagb-marketing-button p.uagb-marketing-btn__prefix{margin:0}.wp-block-uagb-marketing-button .uagb-marketing-btn__wrap{display:-ms-flexbox;display:flex}.wp-block-uagb-marketing-button .uagb-marketing-btn__link{z-index:1}.wp-block-uagb-marketing-button .uagb-marketing-btn__link{display:inline-block;position:relative;-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.wp-block-uagb-marketing-button .uagb-marketing-btn__icon-wrap{width:20px;height:20px;display:-ms-flexbox;display:flex;z-index:1}.wp-block-uagb-marketing-button .uagb-marketing-btn__icon-wrap svg{width:inherit;height:inherit}.wp-block-uagb-marketing-button .uagb-marketing-btn__title-wrap{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-center .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-center .uagb-marketing-btn__title-wrap{-ms-flex-pack:center;justify-content:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-left .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-left .uagb-marketing-btn__title-wrap{-ms-flex-pack:start;justify-content:flex-start}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-right .uagb-marketing-btn__wrap,.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__title-wrap{-ms-flex-pack:end;justify-content:flex-end}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-full .uagb-marketing-btn__link{width:100%}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-center .uagb-marketing-btn__prefix-wrap{text-align:center}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-left .uagb-marketing-btn__prefix-wrap{text-align:left}.wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__prefix-wrap{text-align:right}.wp-block-uagb-marketing-button.uagb-marketing-btn__icon-after .uagb-marketing-btn__title-wrap{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.entry-content .wp-block-uagb-marketing-button .uagb-marketing-btn__link{text-decoration:none}
|
dist/blocks/post/index.php
CHANGED
@@ -1,1694 +1,1694 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Server-side rendering for the post block.
|
4 |
-
*
|
5 |
-
* @since 0.0.1
|
6 |
-
* @package UAGB
|
7 |
-
*/
|
8 |
-
|
9 |
-
global $uagb_post_settings;
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Renders the post carousel block on server.
|
13 |
-
*
|
14 |
-
* @param array $attributes Array of block attributes.
|
15 |
-
*
|
16 |
-
* @since 0.0.1
|
17 |
-
*/
|
18 |
-
function uagb_post_carousel_callback( $attributes ) {
|
19 |
-
$query = UAGB_Helper::get_query( $attributes, 'carousel' );
|
20 |
-
global $uagb_post_settings;
|
21 |
-
|
22 |
-
$uagb_post_settings['carousel'][ $attributes['block_id'] ] = $attributes;
|
23 |
-
|
24 |
-
ob_start();
|
25 |
-
|
26 |
-
uagb_get_post_html( $attributes, $query, 'carousel' );
|
27 |
-
// Output the post markup.
|
28 |
-
return ob_get_clean();
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Renders the post grid block on server.
|
33 |
-
*
|
34 |
-
* @param array $attributes Array of block attributes.
|
35 |
-
*
|
36 |
-
* @since 0.0.1
|
37 |
-
*/
|
38 |
-
function uagb_post_grid_callback( $attributes ) {
|
39 |
-
$query = UAGB_Helper::get_query( $attributes, 'grid' );
|
40 |
-
global $uagb_post_settings;
|
41 |
-
|
42 |
-
$uagb_post_settings['grid'][ $attributes['block_id'] ] = $attributes;
|
43 |
-
|
44 |
-
ob_start();
|
45 |
-
|
46 |
-
uagb_get_post_html( $attributes, $query, 'grid' );
|
47 |
-
// Output the post markup.
|
48 |
-
return ob_get_clean();
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* Renders the post masonry block on server.
|
53 |
-
*
|
54 |
-
* @param array $attributes Array of block attributes.
|
55 |
-
*
|
56 |
-
* @since 0.0.1
|
57 |
-
*/
|
58 |
-
function uagb_post_masonry_callback( $attributes ) {
|
59 |
-
$query = UAGB_Helper::get_query( $attributes, 'masonry' );
|
60 |
-
global $uagb_post_settings;
|
61 |
-
|
62 |
-
$uagb_post_settings['masonry'][ $attributes['block_id'] ] = $attributes;
|
63 |
-
|
64 |
-
ob_start();
|
65 |
-
uagb_get_post_html( $attributes, $query, 'masonry' );
|
66 |
-
|
67 |
-
// Output the post markup.
|
68 |
-
return ob_get_clean();
|
69 |
-
}
|
70 |
-
|
71 |
-
add_action( 'wp_footer', 'uagb_post_block_add_script', 1000 );
|
72 |
-
|
73 |
-
/**
|
74 |
-
* Renders the post masonry related script.
|
75 |
-
*
|
76 |
-
* @since 0.0.1
|
77 |
-
*/
|
78 |
-
function uagb_post_block_add_script() {
|
79 |
-
global $uagb_post_settings;
|
80 |
-
if ( isset( $uagb_post_settings['masonry'] ) && ! empty( $uagb_post_settings['masonry'] ) ) {
|
81 |
-
foreach ( $uagb_post_settings['masonry'] as $key => $value ) {
|
82 |
-
?>
|
83 |
-
<script type="text/javascript" id="uagb-post-masonry-script-<?php echo $key; ?>">
|
84 |
-
( function( $ ) {
|
85 |
-
|
86 |
-
var $scope = $( '#uagb-post__masonry-<?php echo $key; ?>' );
|
87 |
-
$scope.imagesLoaded( function() {
|
88 |
-
$scope.find( '.is-masonry' ).isotope();
|
89 |
-
});
|
90 |
-
|
91 |
-
$( window ).resize( function() {
|
92 |
-
$scope.find( '.is-masonry' ).isotope();
|
93 |
-
} );
|
94 |
-
} )( jQuery );
|
95 |
-
</script>
|
96 |
-
<?php
|
97 |
-
}
|
98 |
-
}
|
99 |
-
|
100 |
-
if ( isset( $uagb_post_settings['carousel'] ) && ! empty( $uagb_post_settings['carousel'] ) ) {
|
101 |
-
foreach ( $uagb_post_settings['carousel'] as $key => $value ) {
|
102 |
-
|
103 |
-
$dots = ( 'dots' == $value['arrowDots'] || 'arrows_dots' == $value['arrowDots'] ) ? true : false;
|
104 |
-
$arrows = ( 'arrows' == $value['arrowDots'] || 'arrows_dots' == $value['arrowDots'] ) ? true : false;
|
105 |
-
$equal_height = isset( $value['equalHeight'] ) ? $value['equalHeight'] : '';
|
106 |
-
$tcolumns = ( isset( $value['tcolumns'] ) ) ? $value['tcolumns'] : 2;
|
107 |
-
$mcolumns = ( isset( $value['mcolumns'] ) ) ? $value['mcolumns'] : 1;
|
108 |
-
|
109 |
-
?>
|
110 |
-
<script type="text/javascript" id="
|
111 |
-
++ <?php echo $key; ?>">
|
112 |
-
( function( $ ) {
|
113 |
-
var cols = parseInt( '<?php echo $value['columns']; ?>' );
|
114 |
-
var scope = $( '#uagb-post__carousel-<?php echo $key; ?>' ).find( '.is-carousel' );
|
115 |
-
|
116 |
-
if ( cols >= scope.children().length ) {
|
117 |
-
return;
|
118 |
-
}
|
119 |
-
|
120 |
-
var slider_options = {
|
121 |
-
'slidesToShow' : cols,
|
122 |
-
'slidesToScroll' : 1,
|
123 |
-
'autoplaySpeed' : <?php echo $value['autoplaySpeed']; ?>,
|
124 |
-
'autoplay' : Boolean( '<?php echo $value['autoplay']; ?>' ),
|
125 |
-
'infinite' : Boolean( '<?php echo $value['infiniteLoop']; ?>' ),
|
126 |
-
'pauseOnHover' : Boolean( '<?php echo $value['pauseOnHover']; ?>' ),
|
127 |
-
'speed' : <?php echo $value['transitionSpeed']; ?>,
|
128 |
-
'arrows' : Boolean( '<?php echo $arrows; ?>' ),
|
129 |
-
'dots' : Boolean( '<?php echo $dots; ?>' ),
|
130 |
-
'rtl' : false,
|
131 |
-
'prevArrow' : '<button type=\"button\" data-role=\"none\" class=\"slick-prev\" aria-label=\"Previous\" tabindex=\"0\" role=\"button\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 256 512\"><path d=\"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z\"></path></svg><\/button>',
|
132 |
-
'nextArrow' : '<button type=\"button\" data-role=\"none\" class=\"slick-next\" aria-label=\"Next\" tabindex=\"0\" role=\"button\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 256 512\"><path d=\"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z\"></path></svg><\/button>',
|
133 |
-
'responsive' : [
|
134 |
-
{
|
135 |
-
'breakpoint' : 1024,
|
136 |
-
'settings' : {
|
137 |
-
'slidesToShow' : <?php echo $tcolumns; ?>,
|
138 |
-
'slidesToScroll' : 1,
|
139 |
-
}
|
140 |
-
},
|
141 |
-
{
|
142 |
-
'breakpoint' : 767,
|
143 |
-
'settings' : {
|
144 |
-
'slidesToShow' : <?php echo $mcolumns; ?>,
|
145 |
-
'slidesToScroll' : 1,
|
146 |
-
}
|
147 |
-
}
|
148 |
-
]
|
149 |
-
};
|
150 |
-
|
151 |
-
scope.slick( slider_options );
|
152 |
-
|
153 |
-
var enableEqualHeight = ( '<?php echo $equal_height; ?>' )
|
154 |
-
|
155 |
-
if( enableEqualHeight ){
|
156 |
-
scope.imagesLoaded( function() {
|
157 |
-
UAGBPostCarousel._setHeight( scope );
|
158 |
-
});
|
159 |
-
|
160 |
-
scope.on( 'afterChange', function() {
|
161 |
-
UAGBPostCarousel._setHeight( scope );
|
162 |
-
} );
|
163 |
-
}
|
164 |
-
|
165 |
-
} )( jQuery );
|
166 |
-
</script>
|
167 |
-
<?php
|
168 |
-
}
|
169 |
-
}
|
170 |
-
}
|
171 |
-
|
172 |
-
/**
|
173 |
-
* Renders the post grid block on server.
|
174 |
-
*
|
175 |
-
* @param array $attributes Array of block attributes.
|
176 |
-
*
|
177 |
-
* @param object $query WP_Query object.
|
178 |
-
* @param string $layout post grid/masonry/carousel layout.
|
179 |
-
* @since 0.0.1
|
180 |
-
*/
|
181 |
-
function uagb_get_post_html( $attributes, $query, $layout ) {
|
182 |
-
$attributes['post_type'] = $layout;
|
183 |
-
|
184 |
-
$wrap = array(
|
185 |
-
'uagb-post__items uagb-post__columns-' . $attributes['columns'],
|
186 |
-
'is-' . $layout,
|
187 |
-
'uagb-post__columns-tablet-' . $attributes['tcolumns'],
|
188 |
-
'uagb-post__columns-mobile-' . $attributes['mcolumns'],
|
189 |
-
);
|
190 |
-
|
191 |
-
$outerwrap = array(
|
192 |
-
'uagb-post-grid',
|
193 |
-
( isset( $attributes['className'] ) ) ? $attributes['className'] : '',
|
194 |
-
'uagb-post__image-position-' . $attributes['imgPosition'],
|
195 |
-
);
|
196 |
-
|
197 |
-
$block_id = 'uagb-post__' . $layout . '-' . $attributes['block_id'];
|
198 |
-
|
199 |
-
switch ( $layout ) {
|
200 |
-
case 'masonry':
|
201 |
-
break;
|
202 |
-
|
203 |
-
case 'grid':
|
204 |
-
if ( $attributes['equalHeight'] ) {
|
205 |
-
array_push( $wrap, 'uagb-post__equal-height' );
|
206 |
-
}
|
207 |
-
break;
|
208 |
-
|
209 |
-
case 'carousel':
|
210 |
-
array_push( $outerwrap, 'uagb-post__arrow-outside' );
|
211 |
-
|
212 |
-
if ( $attributes['equalHeight'] ) {
|
213 |
-
array_push( $wrap, 'uagb-post__carousel_equal-height' );
|
214 |
-
}
|
215 |
-
|
216 |
-
if ( $query->post_count > $attributes['columns'] ) {
|
217 |
-
array_push( $outerwrap, 'uagb-slick-carousel' );
|
218 |
-
}
|
219 |
-
break;
|
220 |
-
|
221 |
-
default:
|
222 |
-
// Nothing to do here.
|
223 |
-
break;
|
224 |
-
}
|
225 |
-
?>
|
226 |
-
<div id="<?php echo $block_id; ?>" class="<?php echo implode( ' ', $outerwrap ); ?>">
|
227 |
-
|
228 |
-
<div class="<?php echo implode( ' ', $wrap ); ?>">
|
229 |
-
|
230 |
-
<?php
|
231 |
-
while ( $query->have_posts() ) {
|
232 |
-
$query->the_post();
|
233 |
-
include 'single.php';
|
234 |
-
}
|
235 |
-
wp_reset_postdata();
|
236 |
-
?>
|
237 |
-
</div>
|
238 |
-
</div>
|
239 |
-
<?php
|
240 |
-
}
|
241 |
-
|
242 |
-
/**
|
243 |
-
* Registers the `core/latest-posts` block on server.
|
244 |
-
*
|
245 |
-
* @since 0.0.1
|
246 |
-
*/
|
247 |
-
function uagb_register_blocks() {
|
248 |
-
// Check if the register function exists.
|
249 |
-
if ( ! function_exists( 'register_block_type' ) ) {
|
250 |
-
return;
|
251 |
-
}
|
252 |
-
|
253 |
-
register_block_type(
|
254 |
-
'uagb/post-grid',
|
255 |
-
array(
|
256 |
-
'attributes' => array(
|
257 |
-
'block_id' => array(
|
258 |
-
'type' => 'string',
|
259 |
-
'default' => 'not_set',
|
260 |
-
),
|
261 |
-
'categories' => array(
|
262 |
-
'type' => 'string',
|
263 |
-
),
|
264 |
-
'postType' => array(
|
265 |
-
'type' => 'string',
|
266 |
-
'default' => 'post',
|
267 |
-
),
|
268 |
-
'taxonomyType' => array(
|
269 |
-
'type' => 'string',
|
270 |
-
'default' => 'category',
|
271 |
-
),
|
272 |
-
'postsToShow' => array(
|
273 |
-
'type' => 'number',
|
274 |
-
'default' => 6,
|
275 |
-
),
|
276 |
-
'displayPostDate' => array(
|
277 |
-
'type' => 'boolean',
|
278 |
-
'default' => true,
|
279 |
-
),
|
280 |
-
'displayPostExcerpt' => array(
|
281 |
-
'type' => 'boolean',
|
282 |
-
'default' => true,
|
283 |
-
),
|
284 |
-
'excerptLength' => array(
|
285 |
-
'type' => 'number',
|
286 |
-
'default' => 25,
|
287 |
-
),
|
288 |
-
'displayPostAuthor' => array(
|
289 |
-
'type' => 'boolean',
|
290 |
-
'default' => true,
|
291 |
-
),
|
292 |
-
'displayPostComment' => array(
|
293 |
-
'type' => 'boolean',
|
294 |
-
'default' => true,
|
295 |
-
),
|
296 |
-
'displayPostImage' => array(
|
297 |
-
'type' => 'boolean',
|
298 |
-
'default' => true,
|
299 |
-
),
|
300 |
-
'imgSize' => array(
|
301 |
-
'type' => 'string',
|
302 |
-
'default' => 'large',
|
303 |
-
),
|
304 |
-
'imgPosition' => array(
|
305 |
-
'type' => 'string',
|
306 |
-
'default' => 'top',
|
307 |
-
),
|
308 |
-
'linkBox' => array(
|
309 |
-
'type' => 'boolean',
|
310 |
-
),
|
311 |
-
'bgOverlayColor' => array(
|
312 |
-
'type' => 'string',
|
313 |
-
'default' => '#ffffff',
|
314 |
-
),
|
315 |
-
'overlayOpacity' => array(
|
316 |
-
'type' => 'number',
|
317 |
-
'default' => '50',
|
318 |
-
),
|
319 |
-
'displayPostLink' => array(
|
320 |
-
'type' => 'boolean',
|
321 |
-
'default' => true,
|
322 |
-
),
|
323 |
-
'newTab' => array(
|
324 |
-
'type' => 'boolean',
|
325 |
-
'default' => false,
|
326 |
-
),
|
327 |
-
'ctaText' => array(
|
328 |
-
'type' => 'string',
|
329 |
-
'default' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
330 |
-
),
|
331 |
-
'borderWidth' => array(
|
332 |
-
'type' => 'number',
|
333 |
-
'default' => 1,
|
334 |
-
),
|
335 |
-
'btnHPadding' => array(
|
336 |
-
'type' => 'number',
|
337 |
-
'default' => 10,
|
338 |
-
),
|
339 |
-
'btnVPadding' => array(
|
340 |
-
'type' => 'number',
|
341 |
-
'default' => 5,
|
342 |
-
),
|
343 |
-
'borderStyle' => array(
|
344 |
-
'type' => 'string',
|
345 |
-
'default' => 'none',
|
346 |
-
),
|
347 |
-
'borderColor' => array(
|
348 |
-
'type' => 'string',
|
349 |
-
'default' => '#3b3b3b',
|
350 |
-
),
|
351 |
-
'borderHColor' => array(
|
352 |
-
'type' => 'string',
|
353 |
-
),
|
354 |
-
'borderRadius' => array(
|
355 |
-
'type' => 'number',
|
356 |
-
'default' => 0,
|
357 |
-
),
|
358 |
-
'columns' => array(
|
359 |
-
'type' => 'number',
|
360 |
-
'default' => 3,
|
361 |
-
),
|
362 |
-
'tcolumns' => array(
|
363 |
-
'type' => 'number',
|
364 |
-
'default' => 2,
|
365 |
-
),
|
366 |
-
'mcolumns' => array(
|
367 |
-
'type' => 'number',
|
368 |
-
'default' => 1,
|
369 |
-
),
|
370 |
-
'align' => array(
|
371 |
-
'type' => 'string',
|
372 |
-
'default' => 'left',
|
373 |
-
),
|
374 |
-
'width' => array(
|
375 |
-
'type' => 'string',
|
376 |
-
'default' => 'wide',
|
377 |
-
),
|
378 |
-
'order' => array(
|
379 |
-
'type' => 'string',
|
380 |
-
'default' => 'desc',
|
381 |
-
),
|
382 |
-
'orderBy' => array(
|
383 |
-
'type' => 'string',
|
384 |
-
'default' => 'date',
|
385 |
-
),
|
386 |
-
'rowGap' => array(
|
387 |
-
'type' => 'number',
|
388 |
-
'default' => 20,
|
389 |
-
),
|
390 |
-
'columnGap' => array(
|
391 |
-
'type' => 'number',
|
392 |
-
'default' => 20,
|
393 |
-
),
|
394 |
-
'bgColor' => array(
|
395 |
-
'type' => 'string',
|
396 |
-
'default' => '#e4e4e4',
|
397 |
-
),
|
398 |
-
'titleColor' => array(
|
399 |
-
'type' => 'string',
|
400 |
-
'default' => '#3b3b3b',
|
401 |
-
),
|
402 |
-
'titleTag' => array(
|
403 |
-
'type' => 'string',
|
404 |
-
'default' => 'h3',
|
405 |
-
),
|
406 |
-
'titleFontSize' => array(
|
407 |
-
'type' => 'number',
|
408 |
-
'default' => '',
|
409 |
-
),
|
410 |
-
'titleFontSizeType' => array(
|
411 |
-
'type' => 'string',
|
412 |
-
'default' => 'px',
|
413 |
-
),
|
414 |
-
'titleFontSizeMobile' => array(
|
415 |
-
'type' => 'number',
|
416 |
-
),
|
417 |
-
'titleFontSizeTablet' => array(
|
418 |
-
'type' => 'number',
|
419 |
-
),
|
420 |
-
'titleFontFamily' => array(
|
421 |
-
'type' => 'string',
|
422 |
-
'default' => '',
|
423 |
-
),
|
424 |
-
'titleFontWeight' => array(
|
425 |
-
'type' => 'string',
|
426 |
-
),
|
427 |
-
'titleFontSubset' => array(
|
428 |
-
'type' => 'string',
|
429 |
-
),
|
430 |
-
'titleLineHeightType' => array(
|
431 |
-
'type' => 'string',
|
432 |
-
'default' => 'em',
|
433 |
-
),
|
434 |
-
'titleLineHeight' => array(
|
435 |
-
'type' => 'number',
|
436 |
-
),
|
437 |
-
'titleLineHeightTablet' => array(
|
438 |
-
'type' => 'number',
|
439 |
-
),
|
440 |
-
'titleLineHeightMobile' => array(
|
441 |
-
'type' => 'number',
|
442 |
-
),
|
443 |
-
'titleLoadGoogleFonts' => array(
|
444 |
-
'type' => 'boolean',
|
445 |
-
'default' => false,
|
446 |
-
),
|
447 |
-
|
448 |
-
'metaFontSize' => array(
|
449 |
-
'type' => 'number',
|
450 |
-
'default' => '',
|
451 |
-
),
|
452 |
-
'metaFontSizeType' => array(
|
453 |
-
'type' => 'string',
|
454 |
-
'default' => 'px',
|
455 |
-
),
|
456 |
-
'metaFontSizeMobile' => array(
|
457 |
-
'type' => 'number',
|
458 |
-
),
|
459 |
-
'metaFontSizeTablet' => array(
|
460 |
-
'type' => 'number',
|
461 |
-
),
|
462 |
-
'metaFontFamily' => array(
|
463 |
-
'type' => 'string',
|
464 |
-
'default' => '',
|
465 |
-
),
|
466 |
-
'metaFontWeight' => array(
|
467 |
-
'type' => 'string',
|
468 |
-
),
|
469 |
-
'metaFontSubset' => array(
|
470 |
-
'type' => 'string',
|
471 |
-
),
|
472 |
-
'metaLineHeightType' => array(
|
473 |
-
'type' => 'string',
|
474 |
-
'default' => 'em',
|
475 |
-
),
|
476 |
-
'metaLineHeight' => array(
|
477 |
-
'type' => 'number',
|
478 |
-
),
|
479 |
-
'metaLineHeightTablet' => array(
|
480 |
-
'type' => 'number',
|
481 |
-
),
|
482 |
-
'metaLineHeightMobile' => array(
|
483 |
-
'type' => 'number',
|
484 |
-
),
|
485 |
-
'metaLoadGoogleFonts' => array(
|
486 |
-
'type' => 'boolean',
|
487 |
-
'default' => false,
|
488 |
-
),
|
489 |
-
|
490 |
-
'excerptFontSize' => array(
|
491 |
-
'type' => 'number',
|
492 |
-
'default' => '',
|
493 |
-
),
|
494 |
-
'excerptFontSizeType' => array(
|
495 |
-
'type' => 'string',
|
496 |
-
'default' => 'px',
|
497 |
-
),
|
498 |
-
'excerptFontSizeMobile' => array(
|
499 |
-
'type' => 'number',
|
500 |
-
),
|
501 |
-
'excerptFontSizeTablet' => array(
|
502 |
-
'type' => 'number',
|
503 |
-
),
|
504 |
-
'excerptFontFamily' => array(
|
505 |
-
'type' => 'string',
|
506 |
-
'default' => '',
|
507 |
-
),
|
508 |
-
'excerptFontWeight' => array(
|
509 |
-
'type' => 'string',
|
510 |
-
),
|
511 |
-
'excerptFontSubset' => array(
|
512 |
-
'type' => 'string',
|
513 |
-
),
|
514 |
-
'excerptLineHeightType' => array(
|
515 |
-
'type' => 'string',
|
516 |
-
'default' => 'em',
|
517 |
-
),
|
518 |
-
'excerptLineHeight' => array(
|
519 |
-
'type' => 'number',
|
520 |
-
),
|
521 |
-
'excerptLineHeightTablet' => array(
|
522 |
-
'type' => 'number',
|
523 |
-
),
|
524 |
-
'excerptLineHeightMobile' => array(
|
525 |
-
'type' => 'number',
|
526 |
-
),
|
527 |
-
'excerptLoadGoogleFonts' => array(
|
528 |
-
'type' => 'boolean',
|
529 |
-
'default' => false,
|
530 |
-
),
|
531 |
-
|
532 |
-
'ctaFontSize' => array(
|
533 |
-
'type' => 'number',
|
534 |
-
'default' => '',
|
535 |
-
),
|
536 |
-
'ctaFontSizeType' => array(
|
537 |
-
'type' => 'string',
|
538 |
-
'default' => 'px',
|
539 |
-
),
|
540 |
-
'ctaFontSizeMobile' => array(
|
541 |
-
'type' => 'number',
|
542 |
-
),
|
543 |
-
'ctaFontSizeTablet' => array(
|
544 |
-
'type' => 'number',
|
545 |
-
),
|
546 |
-
'ctaFontFamily' => array(
|
547 |
-
'type' => 'string',
|
548 |
-
'default' => '',
|
549 |
-
),
|
550 |
-
'ctaFontWeight' => array(
|
551 |
-
'type' => 'string',
|
552 |
-
),
|
553 |
-
'ctaFontSubset' => array(
|
554 |
-
'type' => 'string',
|
555 |
-
),
|
556 |
-
'ctaLineHeightType' => array(
|
557 |
-
'type' => 'string',
|
558 |
-
'default' => 'em',
|
559 |
-
),
|
560 |
-
'ctaLineHeight' => array(
|
561 |
-
'type' => 'number',
|
562 |
-
),
|
563 |
-
'ctaLineHeightTablet' => array(
|
564 |
-
'type' => 'number',
|
565 |
-
),
|
566 |
-
'ctaLineHeightMobile' => array(
|
567 |
-
'type' => 'number',
|
568 |
-
),
|
569 |
-
'ctaLoadGoogleFonts' => array(
|
570 |
-
'type' => 'boolean',
|
571 |
-
'default' => false,
|
572 |
-
),
|
573 |
-
'metaColor' => array(
|
574 |
-
'type' => 'string',
|
575 |
-
'default' => '#777777',
|
576 |
-
),
|
577 |
-
'excerptColor' => array(
|
578 |
-
'type' => 'string',
|
579 |
-
'default' => '',
|
580 |
-
),
|
581 |
-
'ctaColor' => array(
|
582 |
-
'type' => 'string',
|
583 |
-
'default' => '#ffffff',
|
584 |
-
),
|
585 |
-
'ctaBgColor' => array(
|
586 |
-
'type' => 'string',
|
587 |
-
'default' => '#333333',
|
588 |
-
),
|
589 |
-
'ctaHColor' => array(
|
590 |
-
'type' => 'string',
|
591 |
-
),
|
592 |
-
'ctaBgHColor' => array(
|
593 |
-
'type' => 'string',
|
594 |
-
),
|
595 |
-
'contentPadding' => array(
|
596 |
-
'type' => 'number',
|
597 |
-
'default' => 20,
|
598 |
-
),
|
599 |
-
'contentPaddingMobile' => array(
|
600 |
-
'type' => 'number',
|
601 |
-
),
|
602 |
-
'titleBottomSpace' => array(
|
603 |
-
'type' => 'number',
|
604 |
-
'default' => 15,
|
605 |
-
),
|
606 |
-
'metaBottomSpace' => array(
|
607 |
-
'type' => 'number',
|
608 |
-
'default' => 15,
|
609 |
-
),
|
610 |
-
'excerptBottomSpace' => array(
|
611 |
-
'type' => 'number',
|
612 |
-
'default' => 25,
|
613 |
-
),
|
614 |
-
'equalHeight' => array(
|
615 |
-
'type' => 'boolean',
|
616 |
-
'default' => true,
|
617 |
-
),
|
618 |
-
),
|
619 |
-
'render_callback' => 'uagb_post_grid_callback',
|
620 |
-
)
|
621 |
-
);
|
622 |
-
|
623 |
-
register_block_type(
|
624 |
-
'uagb/post-carousel',
|
625 |
-
array(
|
626 |
-
'attributes' => array(
|
627 |
-
'block_id' => array(
|
628 |
-
'type' => 'string',
|
629 |
-
'default' => 'not_set',
|
630 |
-
),
|
631 |
-
'categories' => array(
|
632 |
-
'type' => 'string',
|
633 |
-
),
|
634 |
-
'postType' => array(
|
635 |
-
'type' => 'string',
|
636 |
-
'default' => 'post',
|
637 |
-
),
|
638 |
-
'taxonomyType' => array(
|
639 |
-
'type' => 'string',
|
640 |
-
'default' => 'category',
|
641 |
-
),
|
642 |
-
'postsToShow' => array(
|
643 |
-
'type' => 'number',
|
644 |
-
'default' => 6,
|
645 |
-
),
|
646 |
-
'displayPostDate' => array(
|
647 |
-
'type' => 'boolean',
|
648 |
-
'default' => true,
|
649 |
-
),
|
650 |
-
'displayPostExcerpt' => array(
|
651 |
-
'type' => 'boolean',
|
652 |
-
'default' => true,
|
653 |
-
),
|
654 |
-
'excerptLength' => array(
|
655 |
-
'type' => 'number',
|
656 |
-
'default' => 25,
|
657 |
-
),
|
658 |
-
'displayPostAuthor' => array(
|
659 |
-
'type' => 'boolean',
|
660 |
-
'default' => true,
|
661 |
-
),
|
662 |
-
'displayPostComment' => array(
|
663 |
-
'type' => 'boolean',
|
664 |
-
'default' => true,
|
665 |
-
),
|
666 |
-
'displayPostImage' => array(
|
667 |
-
'type' => 'boolean',
|
668 |
-
'default' => true,
|
669 |
-
),
|
670 |
-
'imgSize' => array(
|
671 |
-
'type' => 'string',
|
672 |
-
'default' => 'large',
|
673 |
-
),
|
674 |
-
'imgPosition' => array(
|
675 |
-
'type' => 'string',
|
676 |
-
'default' => 'top',
|
677 |
-
),
|
678 |
-
'linkBox' => array(
|
679 |
-
'type' => 'boolean',
|
680 |
-
),
|
681 |
-
'bgOverlayColor' => array(
|
682 |
-
'type' => 'string',
|
683 |
-
'default' => '#ffffff',
|
684 |
-
),
|
685 |
-
'overlayOpacity' => array(
|
686 |
-
'type' => 'number',
|
687 |
-
'default' => '50',
|
688 |
-
),
|
689 |
-
'displayPostLink' => array(
|
690 |
-
'type' => 'boolean',
|
691 |
-
'default' => true,
|
692 |
-
),
|
693 |
-
'newTab' => array(
|
694 |
-
'type' => 'boolean',
|
695 |
-
'default' => false,
|
696 |
-
),
|
697 |
-
'ctaText' => array(
|
698 |
-
'type' => 'string',
|
699 |
-
'default' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
700 |
-
),
|
701 |
-
'borderWidth' => array(
|
702 |
-
'type' => 'number',
|
703 |
-
'default' => 1,
|
704 |
-
),
|
705 |
-
'btnHPadding' => array(
|
706 |
-
'type' => 'number',
|
707 |
-
'default' => 10,
|
708 |
-
),
|
709 |
-
'btnVPadding' => array(
|
710 |
-
'type' => 'number',
|
711 |
-
'default' => 5,
|
712 |
-
),
|
713 |
-
'borderStyle' => array(
|
714 |
-
'type' => 'string',
|
715 |
-
'default' => 'none',
|
716 |
-
),
|
717 |
-
'borderColor' => array(
|
718 |
-
'type' => 'string',
|
719 |
-
'default' => '#3b3b3b',
|
720 |
-
),
|
721 |
-
'borderHColor' => array(
|
722 |
-
'type' => 'string',
|
723 |
-
),
|
724 |
-
'borderRadius' => array(
|
725 |
-
'type' => 'number',
|
726 |
-
'default' => 0,
|
727 |
-
),
|
728 |
-
'columns' => array(
|
729 |
-
'type' => 'number',
|
730 |
-
'default' => 3,
|
731 |
-
),
|
732 |
-
'tcolumns' => array(
|
733 |
-
'type' => 'number',
|
734 |
-
'default' => 2,
|
735 |
-
),
|
736 |
-
'mcolumns' => array(
|
737 |
-
'type' => 'number',
|
738 |
-
'default' => 1,
|
739 |
-
),
|
740 |
-
'align' => array(
|
741 |
-
'type' => 'string',
|
742 |
-
'default' => 'left',
|
743 |
-
),
|
744 |
-
'width' => array(
|
745 |
-
'type' => 'string',
|
746 |
-
'default' => 'wide',
|
747 |
-
),
|
748 |
-
'order' => array(
|
749 |
-
'type' => 'string',
|
750 |
-
'default' => 'desc',
|
751 |
-
),
|
752 |
-
'orderBy' => array(
|
753 |
-
'type' => 'string',
|
754 |
-
'default' => 'date',
|
755 |
-
),
|
756 |
-
'rowGap' => array(
|
757 |
-
'type' => 'number',
|
758 |
-
'default' => 20,
|
759 |
-
),
|
760 |
-
'columnGap' => array(
|
761 |
-
'type' => 'number',
|
762 |
-
'default' => 20,
|
763 |
-
),
|
764 |
-
'bgColor' => array(
|
765 |
-
'type' => 'string',
|
766 |
-
'default' => '#e4e4e4',
|
767 |
-
),
|
768 |
-
'titleColor' => array(
|
769 |
-
'type' => 'string',
|
770 |
-
'default' => '#3b3b3b',
|
771 |
-
),
|
772 |
-
'titleTag' => array(
|
773 |
-
'type' => 'string',
|
774 |
-
'default' => 'h3',
|
775 |
-
),
|
776 |
-
'titleFontSize' => array(
|
777 |
-
'type' => 'number',
|
778 |
-
'default' => '',
|
779 |
-
),
|
780 |
-
'titleFontSizeType' => array(
|
781 |
-
'type' => 'string',
|
782 |
-
'default' => 'px',
|
783 |
-
),
|
784 |
-
'titleFontSizeMobile' => array(
|
785 |
-
'type' => 'number',
|
786 |
-
),
|
787 |
-
'titleFontSizeTablet' => array(
|
788 |
-
'type' => 'number',
|
789 |
-
),
|
790 |
-
'titleFontFamily' => array(
|
791 |
-
'type' => 'string',
|
792 |
-
'default' => '',
|
793 |
-
),
|
794 |
-
'titleFontWeight' => array(
|
795 |
-
'type' => 'string',
|
796 |
-
),
|
797 |
-
'titleFontSubset' => array(
|
798 |
-
'type' => 'string',
|
799 |
-
),
|
800 |
-
'titleLineHeightType' => array(
|
801 |
-
'type' => 'string',
|
802 |
-
'default' => 'em',
|
803 |
-
),
|
804 |
-
'titleLineHeight' => array(
|
805 |
-
'type' => 'number',
|
806 |
-
),
|
807 |
-
'titleLineHeightTablet' => array(
|
808 |
-
'type' => 'number',
|
809 |
-
),
|
810 |
-
'titleLineHeightMobile' => array(
|
811 |
-
'type' => 'number',
|
812 |
-
),
|
813 |
-
'titleLoadGoogleFonts' => array(
|
814 |
-
'type' => 'boolean',
|
815 |
-
'default' => false,
|
816 |
-
),
|
817 |
-
'metaFontSize' => array(
|
818 |
-
'type' => 'number',
|
819 |
-
'default' => '',
|
820 |
-
),
|
821 |
-
'metaFontSizeType' => array(
|
822 |
-
'type' => 'string',
|
823 |
-
'default' => 'px',
|
824 |
-
),
|
825 |
-
'metaFontSizeMobile' => array(
|
826 |
-
'type' => 'number',
|
827 |
-
),
|
828 |
-
'metaFontSizeTablet' => array(
|
829 |
-
'type' => 'number',
|
830 |
-
),
|
831 |
-
'metaFontFamily' => array(
|
832 |
-
'type' => 'string',
|
833 |
-
'default' => '',
|
834 |
-
),
|
835 |
-
'metaFontWeight' => array(
|
836 |
-
'type' => 'string',
|
837 |
-
),
|
838 |
-
'metaFontSubset' => array(
|
839 |
-
'type' => 'string',
|
840 |
-
),
|
841 |
-
'metaLineHeightType' => array(
|
842 |
-
'type' => 'string',
|
843 |
-
'default' => 'em',
|
844 |
-
),
|
845 |
-
'metaLineHeight' => array(
|
846 |
-
'type' => 'number',
|
847 |
-
),
|
848 |
-
'metaLineHeightTablet' => array(
|
849 |
-
'type' => 'number',
|
850 |
-
),
|
851 |
-
'metaLineHeightMobile' => array(
|
852 |
-
'type' => 'number',
|
853 |
-
),
|
854 |
-
'metaLoadGoogleFonts' => array(
|
855 |
-
'type' => 'boolean',
|
856 |
-
'default' => false,
|
857 |
-
),
|
858 |
-
'excerptFontSize' => array(
|
859 |
-
'type' => 'number',
|
860 |
-
'default' => '',
|
861 |
-
),
|
862 |
-
'excerptFontSizeType' => array(
|
863 |
-
'type' => 'string',
|
864 |
-
'default' => 'px',
|
865 |
-
),
|
866 |
-
'excerptFontSizeMobile' => array(
|
867 |
-
'type' => 'number',
|
868 |
-
),
|
869 |
-
'excerptFontSizeTablet' => array(
|
870 |
-
'type' => 'number',
|
871 |
-
),
|
872 |
-
'excerptFontFamily' => array(
|
873 |
-
'type' => 'string',
|
874 |
-
'default' => '',
|
875 |
-
),
|
876 |
-
'excerptFontWeight' => array(
|
877 |
-
'type' => 'string',
|
878 |
-
),
|
879 |
-
'excerptFontSubset' => array(
|
880 |
-
'type' => 'string',
|
881 |
-
),
|
882 |
-
'excerptLineHeightType' => array(
|
883 |
-
'type' => 'string',
|
884 |
-
'default' => 'em',
|
885 |
-
),
|
886 |
-
'excerptLineHeight' => array(
|
887 |
-
'type' => 'number',
|
888 |
-
),
|
889 |
-
'excerptLineHeightTablet' => array(
|
890 |
-
'type' => 'number',
|
891 |
-
),
|
892 |
-
'excerptLineHeightMobile' => array(
|
893 |
-
'type' => 'number',
|
894 |
-
),
|
895 |
-
'excerptLoadGoogleFonts' => array(
|
896 |
-
'type' => 'boolean',
|
897 |
-
'default' => false,
|
898 |
-
),
|
899 |
-
'ctaFontSize' => array(
|
900 |
-
'type' => 'number',
|
901 |
-
'default' => '',
|
902 |
-
),
|
903 |
-
'ctaFontSizeType' => array(
|
904 |
-
'type' => 'string',
|
905 |
-
'default' => 'px',
|
906 |
-
),
|
907 |
-
'ctaFontSizeMobile' => array(
|
908 |
-
'type' => 'number',
|
909 |
-
),
|
910 |
-
'ctaFontSizeTablet' => array(
|
911 |
-
'type' => 'number',
|
912 |
-
),
|
913 |
-
'ctaFontFamily' => array(
|
914 |
-
'type' => 'string',
|
915 |
-
'default' => '',
|
916 |
-
),
|
917 |
-
'ctaFontWeight' => array(
|
918 |
-
'type' => 'string',
|
919 |
-
),
|
920 |
-
'ctaFontSubset' => array(
|
921 |
-
'type' => 'string',
|
922 |
-
),
|
923 |
-
'ctaLineHeightType' => array(
|
924 |
-
'type' => 'string',
|
925 |
-
'default' => 'em',
|
926 |
-
),
|
927 |
-
'ctaLineHeight' => array(
|
928 |
-
'type' => 'number',
|
929 |
-
),
|
930 |
-
'ctaLineHeightTablet' => array(
|
931 |
-
'type' => 'number',
|
932 |
-
),
|
933 |
-
'ctaLineHeightMobile' => array(
|
934 |
-
'type' => 'number',
|
935 |
-
),
|
936 |
-
'ctaLoadGoogleFonts' => array(
|
937 |
-
'type' => 'boolean',
|
938 |
-
'default' => false,
|
939 |
-
),
|
940 |
-
'metaColor' => array(
|
941 |
-
'type' => 'string',
|
942 |
-
'default' => '#777777',
|
943 |
-
),
|
944 |
-
'excerptColor' => array(
|
945 |
-
'type' => 'string',
|
946 |
-
'default' => '',
|
947 |
-
),
|
948 |
-
'ctaColor' => array(
|
949 |
-
'type' => 'string',
|
950 |
-
'default' => '#ffffff',
|
951 |
-
),
|
952 |
-
'ctaBgColor' => array(
|
953 |
-
'type' => 'string',
|
954 |
-
'default' => '#333333',
|
955 |
-
),
|
956 |
-
'ctaHColor' => array(
|
957 |
-
'type' => 'string',
|
958 |
-
),
|
959 |
-
'ctaBgHColor' => array(
|
960 |
-
'type' => 'string',
|
961 |
-
),
|
962 |
-
'contentPadding' => array(
|
963 |
-
'type' => 'number',
|
964 |
-
'default' => 20,
|
965 |
-
),
|
966 |
-
'contentPaddingMobile' => array(
|
967 |
-
'type' => 'number',
|
968 |
-
),
|
969 |
-
'titleBottomSpace' => array(
|
970 |
-
'type' => 'number',
|
971 |
-
'default' => 15,
|
972 |
-
),
|
973 |
-
'metaBottomSpace' => array(
|
974 |
-
'type' => 'number',
|
975 |
-
'default' => 15,
|
976 |
-
),
|
977 |
-
'excerptBottomSpace' => array(
|
978 |
-
'type' => 'number',
|
979 |
-
'default' => 25,
|
980 |
-
),
|
981 |
-
'pauseOnHover' => array(
|
982 |
-
'type' => 'boolean',
|
983 |
-
'default' => true,
|
984 |
-
),
|
985 |
-
'infiniteLoop' => array(
|
986 |
-
'type' => 'boolean',
|
987 |
-
'default' => true,
|
988 |
-
),
|
989 |
-
'transitionSpeed' => array(
|
990 |
-
'type' => 'number',
|
991 |
-
'default' => 500,
|
992 |
-
),
|
993 |
-
'arrowDots' => array(
|
994 |
-
'type' => 'string',
|
995 |
-
'default' => 'arrows_dots',
|
996 |
-
),
|
997 |
-
'autoplay' => array(
|
998 |
-
'type' => 'boolean',
|
999 |
-
'default' => true,
|
1000 |
-
),
|
1001 |
-
'autoplaySpeed' => array(
|
1002 |
-
'type' => 'number',
|
1003 |
-
'default' => 2000,
|
1004 |
-
),
|
1005 |
-
'arrowSize' => array(
|
1006 |
-
'type' => 'number',
|
1007 |
-
'default' => 20,
|
1008 |
-
),
|
1009 |
-
'arrowBorderSize' => array(
|
1010 |
-
'type' => 'number',
|
1011 |
-
'default' => 1,
|
1012 |
-
),
|
1013 |
-
'arrowBorderRadius' => array(
|
1014 |
-
'type' => 'number',
|
1015 |
-
'default' => 0,
|
1016 |
-
),
|
1017 |
-
'arrowColor' => array(
|
1018 |
-
'type' => 'string',
|
1019 |
-
'default' => '#aaaaaa',
|
1020 |
-
),
|
1021 |
-
'equalHeight' => array(
|
1022 |
-
'type' => 'boolean',
|
1023 |
-
'default' => false,
|
1024 |
-
),
|
1025 |
-
),
|
1026 |
-
'render_callback' => 'uagb_post_carousel_callback',
|
1027 |
-
)
|
1028 |
-
);
|
1029 |
-
|
1030 |
-
register_block_type(
|
1031 |
-
'uagb/post-masonry',
|
1032 |
-
array(
|
1033 |
-
'attributes' => array(
|
1034 |
-
'block_id' => array(
|
1035 |
-
'type' => 'string',
|
1036 |
-
'default' => 'not_set',
|
1037 |
-
),
|
1038 |
-
'categories' => array(
|
1039 |
-
'type' => 'string',
|
1040 |
-
),
|
1041 |
-
'postType' => array(
|
1042 |
-
'type' => 'string',
|
1043 |
-
'default' => 'post',
|
1044 |
-
),
|
1045 |
-
'taxonomyType' => array(
|
1046 |
-
'type' => 'string',
|
1047 |
-
'default' => 'category',
|
1048 |
-
),
|
1049 |
-
'postsToShow' => array(
|
1050 |
-
'type' => 'number',
|
1051 |
-
'default' => 6,
|
1052 |
-
),
|
1053 |
-
'displayPostDate' => array(
|
1054 |
-
'type' => 'boolean',
|
1055 |
-
'default' => true,
|
1056 |
-
),
|
1057 |
-
'displayPostExcerpt' => array(
|
1058 |
-
'type' => 'boolean',
|
1059 |
-
'default' => true,
|
1060 |
-
),
|
1061 |
-
'excerptLength' => array(
|
1062 |
-
'type' => 'number',
|
1063 |
-
'default' => 25,
|
1064 |
-
),
|
1065 |
-
'displayPostAuthor' => array(
|
1066 |
-
'type' => 'boolean',
|
1067 |
-
'default' => true,
|
1068 |
-
),
|
1069 |
-
'displayPostComment' => array(
|
1070 |
-
'type' => 'boolean',
|
1071 |
-
'default' => true,
|
1072 |
-
),
|
1073 |
-
'displayPostImage' => array(
|
1074 |
-
'type' => 'boolean',
|
1075 |
-
'default' => true,
|
1076 |
-
),
|
1077 |
-
'imgSize' => array(
|
1078 |
-
'type' => 'string',
|
1079 |
-
'default' => 'large',
|
1080 |
-
),
|
1081 |
-
'imgPosition' => array(
|
1082 |
-
'type' => 'string',
|
1083 |
-
'default' => 'top',
|
1084 |
-
),
|
1085 |
-
'linkBox' => array(
|
1086 |
-
'type' => 'boolean',
|
1087 |
-
),
|
1088 |
-
'bgOverlayColor' => array(
|
1089 |
-
'type' => 'string',
|
1090 |
-
'default' => '#ffffff',
|
1091 |
-
),
|
1092 |
-
'overlayOpacity' => array(
|
1093 |
-
'type' => 'number',
|
1094 |
-
'default' => '50',
|
1095 |
-
),
|
1096 |
-
'displayPostLink' => array(
|
1097 |
-
'type' => 'boolean',
|
1098 |
-
'default' => true,
|
1099 |
-
),
|
1100 |
-
'newTab' => array(
|
1101 |
-
'type' => 'boolean',
|
1102 |
-
'default' => false,
|
1103 |
-
),
|
1104 |
-
'ctaText' => array(
|
1105 |
-
'type' => 'string',
|
1106 |
-
'default' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
1107 |
-
),
|
1108 |
-
'borderWidth' => array(
|
1109 |
-
'type' => 'number',
|
1110 |
-
'default' => 1,
|
1111 |
-
),
|
1112 |
-
'btnHPadding' => array(
|
1113 |
-
'type' => 'number',
|
1114 |
-
'default' => 10,
|
1115 |
-
),
|
1116 |
-
'btnVPadding' => array(
|
1117 |
-
'type' => 'number',
|
1118 |
-
'default' => 5,
|
1119 |
-
),
|
1120 |
-
'borderStyle' => array(
|
1121 |
-
'type' => 'string',
|
1122 |
-
'default' => 'none',
|
1123 |
-
),
|
1124 |
-
'borderColor' => array(
|
1125 |
-
'type' => 'string',
|
1126 |
-
'default' => '#3b3b3b',
|
1127 |
-
),
|
1128 |
-
'borderHColor' => array(
|
1129 |
-
'type' => 'string',
|
1130 |
-
),
|
1131 |
-
'borderRadius' => array(
|
1132 |
-
'type' => 'number',
|
1133 |
-
'default' => 0,
|
1134 |
-
),
|
1135 |
-
'columns' => array(
|
1136 |
-
'type' => 'number',
|
1137 |
-
'default' => 3,
|
1138 |
-
),
|
1139 |
-
'tcolumns' => array(
|
1140 |
-
'type' => 'number',
|
1141 |
-
'default' => 2,
|
1142 |
-
),
|
1143 |
-
'mcolumns' => array(
|
1144 |
-
'type' => 'number',
|
1145 |
-
'default' => 1,
|
1146 |
-
),
|
1147 |
-
'align' => array(
|
1148 |
-
'type' => 'string',
|
1149 |
-
'default' => 'left',
|
1150 |
-
),
|
1151 |
-
'width' => array(
|
1152 |
-
'type' => 'string',
|
1153 |
-
'default' => 'wide',
|
1154 |
-
),
|
1155 |
-
'order' => array(
|
1156 |
-
'type' => 'string',
|
1157 |
-
'default' => 'desc',
|
1158 |
-
),
|
1159 |
-
'orderBy' => array(
|
1160 |
-
'type' => 'string',
|
1161 |
-
'default' => 'date',
|
1162 |
-
),
|
1163 |
-
'rowGap' => array(
|
1164 |
-
'type' => 'number',
|
1165 |
-
'default' => 20,
|
1166 |
-
),
|
1167 |
-
'columnGap' => array(
|
1168 |
-
'type' => 'number',
|
1169 |
-
'default' => 20,
|
1170 |
-
),
|
1171 |
-
'bgColor' => array(
|
1172 |
-
'type' => 'string',
|
1173 |
-
'default' => '#e4e4e4',
|
1174 |
-
),
|
1175 |
-
'titleColor' => array(
|
1176 |
-
'type' => 'string',
|
1177 |
-
'default' => '#3b3b3b',
|
1178 |
-
),
|
1179 |
-
'titleTag' => array(
|
1180 |
-
'type' => 'string',
|
1181 |
-
'default' => 'h3',
|
1182 |
-
),
|
1183 |
-
'titleFontSize' => array(
|
1184 |
-
'type' => 'number',
|
1185 |
-
'default' => '',
|
1186 |
-
),
|
1187 |
-
'titleFontSizeType' => array(
|
1188 |
-
'type' => 'string',
|
1189 |
-
'default' => 'px',
|
1190 |
-
),
|
1191 |
-
'titleFontSizeMobile' => array(
|
1192 |
-
'type' => 'number',
|
1193 |
-
),
|
1194 |
-
'titleFontSizeTablet' => array(
|
1195 |
-
'type' => 'number',
|
1196 |
-
),
|
1197 |
-
'titleFontFamily' => array(
|
1198 |
-
'type' => 'string',
|
1199 |
-
'default' => '',
|
1200 |
-
),
|
1201 |
-
'titleFontWeight' => array(
|
1202 |
-
'type' => 'string',
|
1203 |
-
),
|
1204 |
-
'titleFontSubset' => array(
|
1205 |
-
'type' => 'string',
|
1206 |
-
),
|
1207 |
-
'titleLineHeightType' => array(
|
1208 |
-
'type' => 'string',
|
1209 |
-
'default' => 'em',
|
1210 |
-
),
|
1211 |
-
'titleLineHeight' => array(
|
1212 |
-
'type' => 'number',
|
1213 |
-
),
|
1214 |
-
'titleLineHeightTablet' => array(
|
1215 |
-
'type' => 'number',
|
1216 |
-
),
|
1217 |
-
'titleLineHeightMobile' => array(
|
1218 |
-
'type' => 'number',
|
1219 |
-
),
|
1220 |
-
'titleLoadGoogleFonts' => array(
|
1221 |
-
'type' => 'boolean',
|
1222 |
-
'default' => false,
|
1223 |
-
),
|
1224 |
-
|
1225 |
-
'metaFontSize' => array(
|
1226 |
-
'type' => 'number',
|
1227 |
-
'default' => '',
|
1228 |
-
),
|
1229 |
-
'metaFontSizeType' => array(
|
1230 |
-
'type' => 'string',
|
1231 |
-
'default' => 'px',
|
1232 |
-
),
|
1233 |
-
'metaFontSizeMobile' => array(
|
1234 |
-
'type' => 'number',
|
1235 |
-
),
|
1236 |
-
'metaFontSizeTablet' => array(
|
1237 |
-
'type' => 'number',
|
1238 |
-
),
|
1239 |
-
'metaFontFamily' => array(
|
1240 |
-
'type' => 'string',
|
1241 |
-
'default' => '',
|
1242 |
-
),
|
1243 |
-
'metaFontWeight' => array(
|
1244 |
-
'type' => 'string',
|
1245 |
-
),
|
1246 |
-
'metaFontSubset' => array(
|
1247 |
-
'type' => 'string',
|
1248 |
-
),
|
1249 |
-
'metaLineHeightType' => array(
|
1250 |
-
'type' => 'string',
|
1251 |
-
'default' => 'em',
|
1252 |
-
),
|
1253 |
-
'metaLineHeight' => array(
|
1254 |
-
'type' => 'number',
|
1255 |
-
),
|
1256 |
-
'metaLineHeightTablet' => array(
|
1257 |
-
'type' => 'number',
|
1258 |
-
),
|
1259 |
-
'metaLineHeightMobile' => array(
|
1260 |
-
'type' => 'number',
|
1261 |
-
),
|
1262 |
-
'metaLoadGoogleFonts' => array(
|
1263 |
-
'type' => 'boolean',
|
1264 |
-
'default' => false,
|
1265 |
-
),
|
1266 |
-
'excerptFontSize' => array(
|
1267 |
-
'type' => 'number',
|
1268 |
-
'default' => '',
|
1269 |
-
),
|
1270 |
-
'excerptFontSizeType' => array(
|
1271 |
-
'type' => 'string',
|
1272 |
-
'default' => 'px',
|
1273 |
-
),
|
1274 |
-
'excerptFontSizeMobile' => array(
|
1275 |
-
'type' => 'number',
|
1276 |
-
),
|
1277 |
-
'excerptFontSizeTablet' => array(
|
1278 |
-
'type' => 'number',
|
1279 |
-
),
|
1280 |
-
'excerptFontFamily' => array(
|
1281 |
-
'type' => 'string',
|
1282 |
-
'default' => '',
|
1283 |
-
),
|
1284 |
-
'excerptFontWeight' => array(
|
1285 |
-
'type' => 'string',
|
1286 |
-
),
|
1287 |
-
'excerptFontSubset' => array(
|
1288 |
-
'type' => 'string',
|
1289 |
-
),
|
1290 |
-
'excerptLineHeightType' => array(
|
1291 |
-
'type' => 'string',
|
1292 |
-
'default' => 'em',
|
1293 |
-
),
|
1294 |
-
'excerptLineHeight' => array(
|
1295 |
-
'type' => 'number',
|
1296 |
-
),
|
1297 |
-
'excerptLineHeightTablet' => array(
|
1298 |
-
'type' => 'number',
|
1299 |
-
),
|
1300 |
-
'excerptLineHeightMobile' => array(
|
1301 |
-
'type' => 'number',
|
1302 |
-
),
|
1303 |
-
'excerptLoadGoogleFonts' => array(
|
1304 |
-
'type' => 'boolean',
|
1305 |
-
'default' => false,
|
1306 |
-
),
|
1307 |
-
'ctaFontSize' => array(
|
1308 |
-
'type' => 'number',
|
1309 |
-
'default' => '',
|
1310 |
-
),
|
1311 |
-
'ctaFontSizeType' => array(
|
1312 |
-
'type' => 'string',
|
1313 |
-
'default' => 'px',
|
1314 |
-
),
|
1315 |
-
'ctaFontSizeMobile' => array(
|
1316 |
-
'type' => 'number',
|
1317 |
-
),
|
1318 |
-
'ctaFontSizeTablet' => array(
|
1319 |
-
'type' => 'number',
|
1320 |
-
),
|
1321 |
-
'ctaFontFamily' => array(
|
1322 |
-
'type' => 'string',
|
1323 |
-
'default' => '',
|
1324 |
-
),
|
1325 |
-
'ctaFontWeight' => array(
|
1326 |
-
'type' => 'string',
|
1327 |
-
),
|
1328 |
-
'ctaFontSubset' => array(
|
1329 |
-
'type' => 'string',
|
1330 |
-
),
|
1331 |
-
'ctaLineHeightType' => array(
|
1332 |
-
'type' => 'string',
|
1333 |
-
'default' => 'em',
|
1334 |
-
),
|
1335 |
-
'ctaLineHeight' => array(
|
1336 |
-
'type' => 'number',
|
1337 |
-
),
|
1338 |
-
'ctaLineHeightTablet' => array(
|
1339 |
-
'type' => 'number',
|
1340 |
-
),
|
1341 |
-
'ctaLineHeightMobile' => array(
|
1342 |
-
'type' => 'number',
|
1343 |
-
),
|
1344 |
-
'ctaLoadGoogleFonts' => array(
|
1345 |
-
'type' => 'boolean',
|
1346 |
-
'default' => false,
|
1347 |
-
),
|
1348 |
-
'metaColor' => array(
|
1349 |
-
'type' => 'string',
|
1350 |
-
'default' => '#777777',
|
1351 |
-
),
|
1352 |
-
'excerptColor' => array(
|
1353 |
-
'type' => 'string',
|
1354 |
-
'default' => '',
|
1355 |
-
),
|
1356 |
-
'ctaColor' => array(
|
1357 |
-
'type' => 'string',
|
1358 |
-
'default' => '#ffffff',
|
1359 |
-
),
|
1360 |
-
'ctaBgColor' => array(
|
1361 |
-
'type' => 'string',
|
1362 |
-
'default' => '#333333',
|
1363 |
-
),
|
1364 |
-
'ctaHColor' => array(
|
1365 |
-
'type' => 'string',
|
1366 |
-
),
|
1367 |
-
'ctaBgHColor' => array(
|
1368 |
-
'type' => 'string',
|
1369 |
-
),
|
1370 |
-
'contentPadding' => array(
|
1371 |
-
'type' => 'number',
|
1372 |
-
'default' => 20,
|
1373 |
-
),
|
1374 |
-
'contentPaddingMobile' => array(
|
1375 |
-
'type' => 'number',
|
1376 |
-
),
|
1377 |
-
'titleBottomSpace' => array(
|
1378 |
-
'type' => 'number',
|
1379 |
-
'default' => 15,
|
1380 |
-
),
|
1381 |
-
'metaBottomSpace' => array(
|
1382 |
-
'type' => 'number',
|
1383 |
-
'default' => 15,
|
1384 |
-
),
|
1385 |
-
'excerptBottomSpace' => array(
|
1386 |
-
'type' => 'number',
|
1387 |
-
'default' => 25,
|
1388 |
-
),
|
1389 |
-
),
|
1390 |
-
'render_callback' => 'uagb_post_masonry_callback',
|
1391 |
-
)
|
1392 |
-
);
|
1393 |
-
}
|
1394 |
-
|
1395 |
-
add_action( 'init', 'uagb_register_blocks' );
|
1396 |
-
|
1397 |
-
/**
|
1398 |
-
* Create API fields for additional info
|
1399 |
-
*
|
1400 |
-
* @since 0.0.1
|
1401 |
-
*/
|
1402 |
-
function uagb_blocks_register_rest_fields() {
|
1403 |
-
$post_type = UAGB_Helper::get_post_types();
|
1404 |
-
|
1405 |
-
foreach ( $post_type as $key => $value ) {
|
1406 |
-
// Add featured image source.
|
1407 |
-
register_rest_field(
|
1408 |
-
$value['value'],
|
1409 |
-
'uagb_featured_image_src',
|
1410 |
-
array(
|
1411 |
-
'get_callback' => 'uagb_blocks_get_image_src',
|
1412 |
-
'update_callback' => null,
|
1413 |
-
'schema' => null,
|
1414 |
-
)
|
1415 |
-
);
|
1416 |
-
|
1417 |
-
// Add author info.
|
1418 |
-
register_rest_field(
|
1419 |
-
$value['value'],
|
1420 |
-
'uagb_author_info',
|
1421 |
-
array(
|
1422 |
-
'get_callback' => 'uagb_blocks_get_author_info',
|
1423 |
-
'update_callback' => null,
|
1424 |
-
'schema' => null,
|
1425 |
-
)
|
1426 |
-
);
|
1427 |
-
|
1428 |
-
// Add comment info.
|
1429 |
-
register_rest_field(
|
1430 |
-
$value['value'],
|
1431 |
-
'uagb_comment_info',
|
1432 |
-
array(
|
1433 |
-
'get_callback' => 'uagb_blocks_get_comment_info',
|
1434 |
-
'update_callback' => null,
|
1435 |
-
'schema' => null,
|
1436 |
-
)
|
1437 |
-
);
|
1438 |
-
|
1439 |
-
// Add excerpt info.
|
1440 |
-
register_rest_field(
|
1441 |
-
$value['value'],
|
1442 |
-
'uagb_excerpt',
|
1443 |
-
array(
|
1444 |
-
'get_callback' => 'uagb_blocks_get_excerpt',
|
1445 |
-
'update_callback' => null,
|
1446 |
-
'schema' => null,
|
1447 |
-
)
|
1448 |
-
);
|
1449 |
-
}
|
1450 |
-
}
|
1451 |
-
|
1452 |
-
add_action( 'rest_api_init', 'uagb_blocks_register_rest_fields' );
|
1453 |
-
|
1454 |
-
/**
|
1455 |
-
* Create API Order By Fields
|
1456 |
-
*
|
1457 |
-
* @since 1.12.0
|
1458 |
-
*/
|
1459 |
-
function uagb_blocks_register_rest_orderby_fields() {
|
1460 |
-
$post_type = UAGB_Helper::get_post_types();
|
1461 |
-
|
1462 |
-
foreach ( $post_type as $key => $type ) {
|
1463 |
-
add_filter( "rest_{$type['value']}_collection_params", 'uagb_blocks_add_orderby', 10, 1 );
|
1464 |
-
}
|
1465 |
-
}
|
1466 |
-
|
1467 |
-
add_action( 'init', 'uagb_blocks_register_rest_orderby_fields' );
|
1468 |
-
|
1469 |
-
|
1470 |
-
/**
|
1471 |
-
* Get featured image source for the rest field as per size
|
1472 |
-
*
|
1473 |
-
* @param object $object Post Object.
|
1474 |
-
* @param string $field_name Field name.
|
1475 |
-
* @param object $request Request Object.
|
1476 |
-
* @since 0.0.1
|
1477 |
-
*/
|
1478 |
-
function uagb_blocks_get_image_src( $object, $field_name, $request ) {
|
1479 |
-
$image_sizes = UAGB_Helper::get_image_sizes();
|
1480 |
-
|
1481 |
-
$featured_images = array();
|
1482 |
-
|
1483 |
-
foreach ( $image_sizes as $key => $value ) {
|
1484 |
-
$size = $value['value'];
|
1485 |
-
|
1486 |
-
$featured_images[ $size ] = wp_get_attachment_image_src(
|
1487 |
-
$object['featured_media'],
|
1488 |
-
$size,
|
1489 |
-
false
|
1490 |
-
);
|
1491 |
-
}
|
1492 |
-
return $featured_images;
|
1493 |
-
}
|
1494 |
-
|
1495 |
-
/**
|
1496 |
-
* Get author info for the rest field
|
1497 |
-
*
|
1498 |
-
* @param object $object Post Object.
|
1499 |
-
* @param string $field_name Field name.
|
1500 |
-
* @param object $request Request Object.
|
1501 |
-
* @since 0.0.1
|
1502 |
-
*/
|
1503 |
-
function uagb_blocks_get_author_info(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|