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 / general-01--module-container.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
general-01--module-container.php
97 lines
1 <?php
2 /**
3 * "Module Container" settings.
4 *
5 * @package Hustle
6 * @since 4.3.0
7 */
8
9 // phpcs:disable Generic.WhiteSpace.ScopeIndent.Incorrect
10
11 // SETTINGS: Padding.
12 $padding_top = ( '' !== $advanced['popup_cont_padding_top'] ) ? $advanced['popup_cont_padding_top'] . $advanced['popup_cont_padding_unit'] : '0';
13 $padding_right = ( '' !== $advanced['popup_cont_padding_right'] ) ? $advanced['popup_cont_padding_right'] . $advanced['popup_cont_padding_unit'] : '0';
14 $padding_bottom = ( '' !== $advanced['popup_cont_padding_bottom'] ) ? $advanced['popup_cont_padding_bottom'] . $advanced['popup_cont_padding_unit'] : '0';
15 $padding_left = ( '' !== $advanced['popup_cont_padding_left'] ) ? $advanced['popup_cont_padding_left'] . $advanced['popup_cont_padding_unit'] : '0';
16
17 $mobile_padding_top = ( '' !== $advanced['popup_cont_padding_top_mobile'] ) ? $advanced['popup_cont_padding_top_mobile'] . $advanced['popup_cont_padding_unit_mobile'] : $padding_top;
18 $mobile_padding_right = ( '' !== $advanced['popup_cont_padding_right_mobile'] ) ? $advanced['popup_cont_padding_right_mobile'] . $advanced['popup_cont_padding_unit_mobile'] : $padding_right;
19 $mobile_padding_bottom = ( '' !== $advanced['popup_cont_padding_bottom_mobile'] ) ? $advanced['popup_cont_padding_bottom_mobile'] . $advanced['popup_cont_padding_unit_mobile'] : $padding_bottom;
20 $mobile_padding_left = ( '' !== $advanced['popup_cont_padding_left_mobile'] ) ? $advanced['popup_cont_padding_left_mobile'] . $advanced['popup_cont_padding_unit_mobile'] : $padding_left;
21
22 if ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) {
23 $mobile_padding_top = $padding_top;
24 $mobile_padding_right = $padding_right;
25 $mobile_padding_bottom = $padding_bottom;
26 $mobile_padding_left = $padding_left;
27 }
28
29 // SETTINGS: Box Shadow.
30 $shadow_offset_x = ( '' !== $advanced['module_cont_drop_shadow_x'] ) ? $advanced['module_cont_drop_shadow_x'] . $advanced['module_cont_drop_shadow_unit'] : '0';
31 $shadow_offset_y = ( '' !== $advanced['module_cont_drop_shadow_y'] ) ? $advanced['module_cont_drop_shadow_y'] . $advanced['module_cont_drop_shadow_unit'] : '0';
32 $shadow_blur = ( '' !== $advanced['module_cont_drop_shadow_blur'] ) ? $advanced['module_cont_drop_shadow_blur'] . $advanced['module_cont_drop_shadow_unit'] : '0';
33 $shadow_spread = ( '' !== $advanced['module_cont_drop_shadow_spread'] ) ? $advanced['module_cont_drop_shadow_spread'] . $advanced['module_cont_drop_shadow_unit'] : '0';
34 $shadow_color = $colors['module_cont_drop_shadow'];
35
36 $box_shadow = $shadow_offset_x . ' ' . $shadow_offset_y . ' ' . $shadow_blur . ' ' . $shadow_spread . ' ' . $shadow_color;
37
38 $mobile_shadow_offset_x = ( '' !== $advanced['module_cont_drop_shadow_x_mobile'] ) ? $advanced['module_cont_drop_shadow_x_mobile'] . $advanced['module_cont_drop_shadow_unit_mobile'] : $shadow_offset_x;
39 $mobile_shadow_offset_y = ( '' !== $advanced['module_cont_drop_shadow_y_mobile'] ) ? $advanced['module_cont_drop_shadow_y_mobile'] . $advanced['module_cont_drop_shadow_unit_mobile'] : $shadow_offset_y;
40 $mobile_shadow_blur = ( '' !== $advanced['module_cont_drop_shadow_blur_mobile'] ) ? $advanced['module_cont_drop_shadow_blur_mobile'] . $advanced['module_cont_drop_shadow_unit_mobile'] : $shadow_blur;
41 $mobile_shadow_spread = ( '' !== $advanced['module_cont_drop_shadow_spread_mobile'] ) ? $advanced['module_cont_drop_shadow_spread_mobile'] . $advanced['module_cont_drop_shadow_unit_mobile'] : $shadow_spread;
42
43 $mobile_box_shadow = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $box_shadow : $mobile_shadow_offset_x . ' ' . $mobile_shadow_offset_y . ' ' . $mobile_shadow_blur . ' ' . $mobile_shadow_spread . ' ' . $shadow_color;
44
45 // ==================================================
46 // Check if is pop-up.
47 if ( $is_popup ) {
48
49 $style .= ' ';
50
51 // Mobile styles.
52 $style .= $prefix_mobile . ' {';
53 $style .= 'padding-right: ' . $mobile_padding_right . ';';
54 $style .= 'padding-left: ' . $mobile_padding_left . ';';
55 $style .= '}';
56 $style .= $prefix_mobile . ' .hustle-popup-content .hustle-info,';
57 $style .= $prefix_mobile . ' .hustle-popup-content .hustle-optin {';
58 $style .= 'padding-top: ' . $mobile_padding_top . ';';
59 $style .= 'padding-bottom: ' . $mobile_padding_bottom . ';';
60 $style .= '}';
61
62 // Desktop styles.
63 if ( $is_mobile_enabled ) {
64 $style .= $breakpoint . ' {';
65 $style .= $prefix_desktop . ' {';
66 $style .= 'padding-right: ' . $padding_right . ';';
67 $style .= 'padding-left: ' . $padding_left . ';';
68 $style .= '}';
69 $style .= $prefix_desktop . ' .hustle-popup-content .hustle-info,';
70 $style .= $prefix_desktop . ' .hustle-popup-content .hustle-optin {';
71 $style .= 'padding-top: ' . $padding_top . ';';
72 $style .= 'padding-bottom: ' . $padding_bottom . ';';
73 $style .= '}';
74 $style .= '}';
75 }
76 }
77
78 // Check if is slide-in.
79 if ( $is_slidein && ! $is_vanilla ) {
80
81 $style .= $prefix_mobile . ' .hustle-slidein-content {';
82 $style .= '-moz-box-shadow: ' . $mobile_box_shadow . ';';
83 $style .= '-webkit-box-shadow: ' . $mobile_box_shadow . ';';
84 $style .= 'box-shadow: ' . $mobile_box_shadow . ';';
85 $style .= '}';
86
87 if ( $is_mobile_enabled ) {
88 $style .= $breakpoint . ' {';
89 $style .= $prefix_desktop . ' .hustle-slidein-content {';
90 $style .= '-moz-box-shadow: ' . $box_shadow . ';';
91 $style .= '-webkit-box-shadow: ' . $box_shadow . ';';
92 $style .= 'box-shadow: ' . $box_shadow . ';';
93 $style .= '}';
94 $style .= '}';
95 }
96 }
97