PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.3.7
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.3.7
7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / inc / front / non-sshare-styles / module-size-slidein.php
wordpress-popup / inc / front / non-sshare-styles Last commit date
form-01--form-container.php 5 years ago form-02--form-fields.php 5 years ago form-03--input.php 5 years ago form-04--select2.php 5 years ago form-05--select2-dropdown.php 5 years ago form-06--timepicker-dropdown.php 5 years ago form-07--radio.php 5 years ago form-08--checkbox.php 5 years ago form-09--calendar.php 5 years ago form-10--submit.php 5 years ago form-11--options-container.php 5 years ago form-12--options-title.php 5 years ago form-13--gdpr.php 5 years ago form-14--error-message.php 5 years ago form-15--success-message.php 5 years ago form-16--recaptcha.php 5 years ago general-01--module-container.php 5 years ago general-02--main-layout.php 5 years ago general-03--layout-header.php 5 years ago general-04--layout-content.php 5 years ago general-05--layout-footer.php 5 years ago general-06--image-size.php 5 years ago general-07--image-fitting.php 5 years ago general-08--image-position.php 5 years ago general-09--content-wrapper.php 5 years ago general-10--title.php 5 years ago general-11--subtitle.php 5 years ago general-12--content.php 5 years ago general-13--cta-container.php 5 years ago general-14--cta-button.php 5 years ago general-15--cta-alignment.php 5 years ago general-16--nsa-link.php 5 years ago general-17--close-button.php 5 years ago general-18--popup-mask.php 5 years ago module-size-embed.php 5 years ago module-size-popup.php 5 years ago module-size-slidein.php 5 years ago
module-size-slidein.php
528 lines
1 <?php
2 /**
3 * Slide-in custom size settings.
4 *
5 * @package Hustle
6 * @since 4.3.0
7 */
8
9 // phpcs:disable Generic.WhiteSpace.ScopeIndent.Incorrect
10
11 $component = '.hustle-slidein-content';
12
13 $is_desktop_custom = ( '1' === $design['customize_size'] );
14 $is_mobile_custom = ( '1' === $design['customize_size_mobile'] );
15
16 $has_content = ( '' !== $content['title'] || '' !== $content['sub_title'] || '' !== $content['main_content'] || '1' === $content['show_cta'] );
17 $has_image = ( '' !== $content['feature_image'] );
18
19 // SETTINGS: Width.
20 $desktop_width = $design['custom_width'];
21 $desktop_width = ( '' !== $desktop_width ) ? $desktop_width . $design['custom_width_unit'] : '800px';
22 $desktop_width = ( 'auto' !== $design['custom_width_unit'] ) ? $desktop_width : '';
23
24 $mobile_width = $design['custom_width_mobile'];
25 $mobile_width = ( '' !== $mobile_width ) ? $mobile_width . $design['custom_width_unit_mobile'] : '';
26 $mobile_width = ( 'auto' !== $design['custom_width_unit_mobile'] ) ? $mobile_width : '';
27
28 // SETTINGS: Height.
29 $desktop_height = $design['custom_height'];
30 $desktop_height = ( '' !== $desktop_height ) ? $desktop_height . $design['custom_height_unit'] : '';
31 $desktop_height = ( 'auto' !== $design['custom_height_unit'] ) ? $desktop_height : '';
32
33 $mobile_height = $design['custom_height_mobile'];
34 $mobile_height = ( '' !== $mobile_height ) ? $mobile_height . $design['custom_height_unit_mobile'] : '';
35 $mobile_height = ( 'auto' !== $design['custom_height_unit_mobile'] ) ? $mobile_height : '';
36
37 // Check if module is slide-in.
38 if ( $is_slidein ) {
39
40 if ( ! $is_vanilla ) {
41
42 $style .= '';
43
44 // Mobile styles.
45 if ( $is_mobile_enabled && $is_mobile_custom ) {
46
47 // Width.
48 if ( '' !== $mobile_width ) {
49 $style .= $breakpoint_sm . ' {';
50 $style .= ( $is_optin ) ? $prefix_mobile . $component . ' .hustle-optin {' : $prefix_mobile . $component . ' .hustle-info {';
51 $style .= 'max-width: ' . $mobile_width . ';';
52 $style .= '}';
53 $style .= '}';
54 }
55
56 // Height.
57 if ( '' !== $mobile_height ) {
58 $style .= $breakpoint_sm . ' {';
59 $style .= ( $is_optin ) ? $prefix_mobile . $component . ' .hustle-optin {' : $prefix_mobile . $component . ' .hustle-info {';
60 $style .= 'height: calc(' . $mobile_height . ' - 30px);';
61 $style .= '}';
62 $style .= '}';
63
64 // Check if module is an opt-in.
65 if ( $is_optin ) {
66
67 // LAYOUT: Default.
68 if ( 'one' === $layout_optin ) {
69 $style .= $breakpoint_sm . ' {';
70 $style .= $prefix_mobile . $component . ' .hustle-layout {';
71 $style .= 'min-height: 100%;';
72 $style .= 'display: -webkit-box;';
73 $style .= 'display: -ms-flexbox;';
74 $style .= 'display: flex;';
75 $style .= '-webkit-box-orient: vertical;';
76 $style .= '-webkit-box-direction: normal;';
77 $style .= '-ms-flex-direction: column;';
78 $style .= 'flex-direction: column;';
79 $style .= '}';
80 $style .= $prefix_mobile . $component . ' .hustle-layout-body {';
81 $style .= 'display: -webkit-box;';
82 $style .= 'display: -ms-flexbox;';
83 $style .= 'display: flex;';
84 $style .= '-webkit-box-flex: 1;';
85 $style .= '-ms-flex: 1;';
86 $style .= 'flex: 1;';
87 $style .= '-webkit-box-orient: vertical;';
88 $style .= '-webkit-box-direction: normal;';
89 $style .= '-ms-flex-direction: column;';
90 $style .= 'flex-direction: column;';
91 $style .= '}';
92 $style .= $prefix_mobile . $component . ' .hustle-layout-form {';
93 $style .= '-webkit-box-flex: 1;';
94 $style .= '-ms-flex: 1;';
95 $style .= 'flex: 1;';
96 $style .= '}';
97 $style .= '}';
98 }
99
100 // LAYOUT: Compact.
101 if ( 'two' === $layout_optin ) {
102 $style .= $breakpoint_sm . ' {';
103 $style .= $prefix_mobile . $component . ' .hustle-optin-content {';
104 $style .= 'min-height: 100%;';
105 $style .= 'display: -webkit-box;';
106 $style .= 'display: -ms-flexbox;';
107 $style .= 'display: flex;';
108 $style .= '-webkit-box-orient: vertical;';
109 $style .= '-webkit-box-direction: normal;';
110 $style .= '-ms-flex-direction: column;';
111 $style .= 'flex-direction: column;';
112 $style .= '}';
113 $style .= $prefix_mobile . $component . ' .hustle-layout,';
114 $style .= $prefix_mobile . $component . ' .hustle-layout-body {';
115 $style .= 'display: -webkit-box;';
116 $style .= 'display: -ms-flexbox;';
117 $style .= 'display: flex;';
118 $style .= '-webkit-box-flex: 1;';
119 $style .= '-ms-flex: 1;';
120 $style .= 'flex: 1;';
121 $style .= '-webkit-box-orient: vertical;';
122 $style .= '-webkit-box-direction: normal;';
123 $style .= '-ms-flex-direction: column;';
124 $style .= 'flex-direction: column;';
125 $style .= '}';
126 $style .= $prefix_mobile . $component . ' .hustle-image {';
127 $style .= '-webkit-box-flex: 0;';
128 $style .= '-ms-flex: 0 0 auto;';
129 $style .= 'flex: 0 0 auto;';
130 $style .= '}';
131 $style .= $prefix_mobile . $component . ' .hustle-layout-content {';
132 $style .= 'display: -webkit-box;';
133 $style .= 'display: -ms-flexbox;';
134 $style .= 'display: flex;';
135 $style .= '-webkit-box-flex: 1;';
136 $style .= '-ms-flex: 1;';
137 $style .= 'flex: 1;';
138 $style .= '-webkit-box-orient: vertical;';
139 $style .= '-webkit-box-direction: normal;';
140 $style .= '-ms-flex-direction: column;';
141 $style .= 'flex-direction: column;';
142 $style .= '}';
143 $style .= $prefix_mobile . $component . ' .hustle-content {';
144 $style .= '-webkit-box-flex: 0;';
145 $style .= '-ms-flex: 0 0 auto;';
146 $style .= 'flex: 0 0 auto;';
147 $style .= '}';
148 $style .= $prefix_mobile . $component . ' .hustle-layout-form {';
149 $style .= '-webkit-box-flex: 1;';
150 $style .= '-ms-flex: 1;';
151 $style .= 'flex: 1;';
152 $style .= '}';
153 $style .= '}';
154 }
155
156 // LAYOUT: Opt-in Focus.
157 if ( 'three' === $layout_optin ) {
158 $style .= $breakpoint_sm . ' {';
159 $style .= $prefix_mobile . $component . ' .hustle-layout {';
160 $style .= 'min-height: 100%;';
161 $style .= 'display: -webkit-box;';
162 $style .= 'display: -ms-flexbox;';
163 $style .= 'display: flex;';
164 $style .= '-webkit-box-orient: vertical;';
165 $style .= '-webkit-box-direction: normal;';
166 $style .= '-ms-flex-direction: column;';
167 $style .= 'flex-direction: column;';
168 $style .= '}';
169 $style .= $prefix_mobile . $component . ' .hustle-layout-body {';
170 $style .= 'display: -webkit-box;';
171 $style .= 'display: -ms-flexbox;';
172 $style .= 'display: flex;';
173 $style .= '-webkit-box-flex: 1;';
174 $style .= '-ms-flex: 1;';
175 $style .= 'flex: 1;';
176 $style .= '-webkit-box-orient: vertical;';
177 $style .= '-webkit-box-direction: normal;';
178 $style .= '-ms-flex-direction: column;';
179 $style .= 'flex-direction: column;';
180 $style .= '}';
181 $style .= $prefix_mobile . $component . ' .hustle-layout-form {';
182 $style .= '-webkit-box-flex: 1;';
183 $style .= '-ms-flex: 1;';
184 $style .= 'flex: 1;';
185 $style .= '}';
186 $style .= '}';
187 }
188
189 // LAYOUT: Content Focus.
190 if ( 'four' === $layout_optin ) {
191 $style .= $breakpoint_sm . ' {';
192 $style .= $prefix_mobile . $component . ' .hustle-layout {';
193 $style .= 'min-height: 100%;';
194 $style .= 'display: -webkit-box;';
195 $style .= 'display: -ms-flexbox;';
196 $style .= 'display: flex;';
197 $style .= '-webkit-box-orient: vertical;';
198 $style .= '-webkit-box-direction: normal;';
199 $style .= '-ms-flex-direction: column;';
200 $style .= 'flex-direction: column;';
201 $style .= '}';
202 $style .= $prefix_mobile . $component . ' .hustle-layout-body {';
203 $style .= 'display: -webkit-box;';
204 $style .= 'display: -ms-flexbox;';
205 $style .= 'display: flex;';
206 $style .= '-webkit-box-flex: 1;';
207 $style .= '-ms-flex: 1;';
208 $style .= 'flex: 1;';
209 $style .= '-webkit-box-orient: vertical;';
210 $style .= '-webkit-box-direction: normal;';
211 $style .= '-ms-flex-direction: column;';
212 $style .= 'flex-direction: column;';
213 $style .= '}';
214 $style .= $prefix_mobile . $component . ' .hustle-layout-sidebar,';
215 $style .= $prefix_mobile . $component . ' .hustle-layout-content {';
216 $style .= '-webkit-box-flex: 1;';
217 $style .= '-ms-flex: 1;';
218 $style .= 'flex: 1;';
219 $style .= '}';
220 $style .= '}';
221
222 if ( ! $has_content ) {
223 $style .= $breakpoint_sm . ' {';
224 $style .= $prefix_mobile . $component . ' .hustle-layout-sidebar {';
225 $style .= 'display: -webkit-box;';
226 $style .= 'display: -ms-flexbox;';
227 $style .= 'display: flex;';
228 $style .= '-webkit-box-orient: vertical;';
229 $style .= '-webkit-box-direction: normal;';
230 $style .= '-ms-flex-direction: column;';
231 $style .= 'flex-direction: column;';
232 $style .= '}';
233 $style .= $prefix_mobile . $component . ' .hustle-image {';
234 $style .= '-webkit-box-flex: 0;';
235 $style .= '-ms-flex: 0 0 auto;';
236 $style .= 'flex: 0 0 auto;';
237 $style .= '}';
238 $style .= $prefix_mobile . $component . ' .hustle-layout-form {';
239 $style .= '-webkit-box-flex: 1;';
240 $style .= '-ms-flex: 1;';
241 $style .= 'flex: 1;';
242 $style .= '}';
243 $style .= '}';
244 }
245 }
246 } else {
247
248 $style .= $breakpoint_sm . ' {';
249 $style .= $prefix_mobile . $component . ' .hustle-layout {';
250 $style .= 'min-height: 100%;';
251 $style .= '}';
252 $style .= '}';
253
254 }
255 }
256 }
257
258 // Desktop styles.
259 if ( $is_desktop_custom ) {
260
261 $style .= $breakpoint . ' {';
262 $style .= ( $is_optin ) ? $prefix_desktop . $component . ' .hustle-optin {' : $prefix_desktop . $component . ' .hustle-info {';
263 $style .= 'max-width: ' . $desktop_width . ';';
264 $style .= ( '' !== $desktop_height ) ? 'height: calc(' . $desktop_height . ' - 30px);' : '';
265 $style .= '}';
266 $style .= '}';
267
268 // Check if module is an opt-in.
269 if ( $is_optin ) {
270
271 // LAYOUT: Default.
272 if ( 'one' === $layout_optin ) {
273
274 if ( '' !== $desktop_height ) {
275
276 $style .= $breakpoint . ' {';
277 $style .= $prefix_desktop . $component . ' .hustle-layout,';
278 $style .= $prefix_desktop . $component . ' .hustle-layout-body {';
279 $style .= 'display: -webkit-box;';
280 $style .= 'display: -ms-flexbox;';
281 $style .= 'display: flex;';
282 $style .= '-webkit-box-orient: vertical;';
283 $style .= '-webkit-box-direction: normal;';
284 $style .= '-ms-flex-direction: column;';
285 $style .= 'flex-direction: column;';
286 $style .= '}';
287 $style .= $prefix_desktop . $component . ' .hustle-layout {';
288 $style .= 'height: 100%;';
289 $style .= '}';
290 $style .= $prefix_desktop . $component . ' .hustle-layout-body {';
291 $style .= '-webkit-box-flex: 1;';
292 $style .= '-ms-flex: 1;';
293 $style .= 'flex: 1;';
294 $style .= '}';
295 $style .= $prefix_desktop . $component . ' .hustle-layout-form {';
296 $style .= 'min-height: 1px;';
297 $style .= '-webkit-box-flex: 1;';
298 $style .= '-ms-flex: 1 1 auto;';
299 $style .= 'flex: 1 1 auto;';
300 $style .= '}';
301 $style .= $prefix_desktop . $component . ' .hustle-layout-content {';
302 $style .= 'min-height: 0;';
303 $style .= '-webkit-box-flex: 0;';
304 $style .= '-ms-flex: 0 0 auto;';
305 $style .= 'flex: 0 0 auto;';
306 $style .= '}';
307 $style .= '}';
308
309 }
310 }
311
312 // LAYOUT: Compact.
313 if ( 'two' === $layout_optin ) {
314
315 if ( '' !== $desktop_height ) {
316
317 $style .= $breakpoint . ' {';
318 $style .= $prefix_desktop . $component . ' .hustle-optin-content {';
319 $style .= 'height: 100%;';
320 $style .= '}';
321 $style .= $prefix_desktop . $component . ' .hustle-layout {';
322 $style .= 'min-height: 100%;';
323 $style .= 'display: -webkit-box;';
324 $style .= 'display: -ms-flexbox;';
325 $style .= 'display: flex;';
326 $style .= '-webkit-box-orient: vertical;';
327 $style .= '-webkit-box-direction: normal;';
328 $style .= '-ms-flex-direction: column;';
329 $style .= 'flex-direction: column;';
330 $style .= '}';
331 $style .= $prefix_desktop . $component . ' .hustle-layout-body {';
332 $style .= '-webkit-box-flex: 1;';
333 $style .= '-ms-flex: 1 1 auto;';
334 $style .= 'flex: 1 1 auto;';
335 $style .= '}';
336 $style .= '}';
337
338 }
339 }
340
341 // LAYOUT: Opt-in Focus.
342 if ( 'three' === $layout_optin ) {
343
344 if ( '' !== $desktop_height ) {
345
346 $style .= $breakpoint . ' {';
347 $style .= $prefix_desktop . $component . ' .hustle-layout {';
348 $style .= 'min-height: 100%;';
349 $style .= 'display: -webkit-box;';
350 $style .= 'display: -ms-flexbox;';
351 $style .= 'display: flex;';
352 $style .= '-webkit-box-orient: vertical;';
353 $style .= '-webkit-box-direction: normal;';
354 $style .= '-ms-flex-direction: column;';
355 $style .= 'flex-direction: column;';
356 $style .= '}';
357 $style .= $prefix_desktop . $component . ' .hustle-layout-body {';
358 $style .= '-webkit-box-flex: 1;';
359 $style .= '-ms-flex: 1 1 auto;';
360 $style .= 'flex: 1 1 auto;';
361 $style .= '}';
362 $style .= '}';
363
364 }
365 }
366
367 // LAYOUT: Content Focus.
368 if ( 'four' === $layout_optin ) {
369
370 if ( '' !== $desktop_height ) {
371
372 $style .= $breakpoint . ' {';
373 $style .= $prefix_desktop . $component . ' .hustle-layout {';
374 $style .= 'min-height: 100%;';
375 $style .= 'display: -webkit-box;';
376 $style .= 'display: -ms-flexbox;';
377 $style .= 'display: flex;';
378 $style .= '-webkit-box-orient: vertical;';
379 $style .= '-webkit-box-direction: normal;';
380 $style .= '-ms-flex-direction: column;';
381 $style .= 'flex-direction: column;';
382 $style .= '}';
383 $style .= $prefix_desktop . $component . ' .hustle-layout-body {';
384 $style .= '-webkit-box-flex: 1;';
385 $style .= '-ms-flex: 1 1 auto;';
386 $style .= 'flex: 1 1 auto;';
387 $style .= '}';
388 $style .= '}';
389
390 if ( $has_image ) {
391
392 $style .= $breakpoint . ' {';
393 $style .= $prefix_desktop . $component . ' .hustle-layout-sidebar {';
394 $style .= ( ! $has_content ) ? 'max-width: 100%;' : '';
395 $style .= ( ! $has_content ) ? 'display: -webkit-box;' : '';
396 $style .= ( ! $has_content ) ? 'display: -ms-flexbox;' : '';
397 $style .= ( ! $has_content ) ? 'display: flex;' : '';
398 $style .= ( ! $has_content ) ? '-webkit-box-orient: vertical;' : '';
399 $style .= ( ! $has_content ) ? '-webkit-box-direction: normal;' : '';
400 $style .= ( ! $has_content ) ? '-ms-flex-direction: column;' : '';
401 $style .= ( ! $has_content ) ? 'flex-direction: column;' : '';
402 $style .= ( ! $has_content ) ? '-webkit-box-flex: 1;' : '';
403 $style .= ( ! $has_content ) ? '-ms-flex: 1;' : '-ms-flex-negative: 1;';
404 $style .= ( ! $has_content ) ? 'flex: 1;' : 'flex-shrink: 1;';
405 $style .= '}';
406 $style .= $prefix_desktop . $component . ' .hustle-layout-form {';
407 $style .= ( $has_content ) ? 'height: 100%;' : 'height: auto;';
408 $style .= '}';
409 $style .= '}';
410
411 } else {
412
413 $style .= $breakpoint . ' {';
414 $style .= $prefix_desktop . $component . ' .hustle-layout-sidebar {';
415 $style .= ( ! $has_content ) ? 'width: 100%;' : 'width: 50%;';
416 $style .= ( ! $has_content ) ? '-webkit-box-flex: 1;' : '-webkit-box-flex: 0;';
417 $style .= ( ! $has_content ) ? '-ms-flex: 1;' : '-ms-flex: 0 0 auto;';
418 $style .= ( ! $has_content ) ? 'flex: 1;' : 'flex: 0 0 auto;';
419 $style .= '}';
420 $style .= $prefix_desktop . $component . ' .hustle-layout-form {';
421 $style .= 'height: 100%;';
422 $style .= '}';
423 $style .= '}';
424
425 }
426
427 $style .= $breakpoint . ' {';
428 $style .= $prefix_desktop . $component . ' .hustle-layout-form {';
429 $style .= '-webkit-box-flex: 1;';
430 $style .= '-ms-flex: 1;';
431 $style .= 'flex: 1;';
432 $style .= '}';
433 $style .= $prefix_desktop . $component . ' .hustle-layout-footer {';
434 $style .= '-webkit-box-flex: 0;';
435 $style .= '-ms-flex: 0 0 auto;';
436 $style .= 'flex: 0 0 auto;';
437 $style .= '}';
438 $style .= '}';
439
440 } else {
441
442 $style .= $breakpoint . ' {';
443 $style .= $prefix_desktop . $component . ' .hustle-layout-sidebar {';
444 $style .= ( ! $has_content ) ? 'max-width: 100%;' : '';
445 $style .= ( ! $has_content ) ? '-webkit-box-flex: 1;' : '';
446 $style .= ( ! $has_content ) ? '-ms-flex: 1;' : '';
447 $style .= ( ! $has_content ) ? 'flex: 1;' : '';
448 $style .= '}';
449 $style .= $prefix_desktop . $component . ' .hustle-layout-form {';
450 $style .= ( $has_content ) ? 'height: 100%;' : 'height: auto;';
451 $style .= '}';
452 $style .= '}';
453
454 }
455 }
456 } else {
457
458 $style .= $breakpoint . ' {';
459 $style .= $prefix_desktop . $component . ' .hustle-layout {';
460 $style .= 'min-height: 100%;';
461 $style .= '}';
462 $style .= '}';
463
464 }
465 } else {
466
467 $style .= $breakpoint . ' {';
468 $style .= ( $is_optin ) ? $prefix_desktop . $component . ' .hustle-optin {' : $prefix_desktop . $component . ' .hustle-info {';
469 $style .= 'max-width: 800px;';
470 $style .= '}';
471 $style .= '}';
472
473 // Check if module is an opt-in.
474 if ( $is_optin ) {
475
476 // LAYOUT: Content Focus.
477 if ( 'four' === $layout_optin ) {
478
479 if ( ! $has_image ) {
480 $style .= $breakpoint . ' {';
481 $style .= $prefix_desktop . $component . ' .hustle-layout-sidebar {';
482 $style .= ( $has_content ) ? 'width: 50%;' : 'width: 100%;';
483 $style .= ( $has_content ) ? 'max-width: 320px;' : '';
484 $style .= ( $has_content ) ? '-webkit-box-flex: 0;' : '';
485 $style .= ( $has_content ) ? '-ms-flex: 0 0 auto;' : '';
486 $style .= ( $has_content ) ? 'flex: 0 0 auto;' : '';
487 $style .= '}';
488 $style .= $prefix_desktop . $component . ' .hustle-layout-form {';
489 $style .= 'height: 100%;';
490 $style .= '}';
491 $style .= '}';
492 }
493 }
494 }
495 }
496 } else {
497
498 $style .= $breakpoint . ' {';
499 $style .= ( $is_optin ) ? $prefix_desktop . $component . ' .hustle-optin {' : $prefix_desktop . $component . ' .hustle-info {';
500 $style .= 'max-width: 800px;';
501 $style .= '}';
502 $style .= '}';
503
504 // Check if module is an opt-in.
505 if ( $is_optin ) {
506
507 // LAYOUT: Content Focus.
508 if ( 'four' === $layout_optin ) {
509
510 if ( ! $has_image ) {
511 $style .= $breakpoint . ' {';
512 $style .= $prefix_desktop . $component . ' .hustle-layout-sidebar {';
513 $style .= ( $has_content ) ? 'width: 50%;' : 'width: 100%;';
514 $style .= ( $has_content ) ? 'max-width: 320px;' : '';
515 $style .= ( $has_content ) ? '-webkit-box-flex: 0;' : '';
516 $style .= ( $has_content ) ? '-ms-flex: 0 0 auto;' : '';
517 $style .= ( $has_content ) ? 'flex: 0 0 auto;' : '';
518 $style .= '}';
519 $style .= $prefix_desktop . $component . ' .hustle-layout-form {';
520 $style .= 'height: 100%;';
521 $style .= '}';
522 $style .= '}';
523 }
524 }
525 }
526 }
527 }
528