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