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 / general-04--layout-content.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
general-04--layout-content.php
150 lines
1 <?php
2 /**
3 * Layout content settings.
4 *
5 * @package Hustle
6 * @since 4.3.0
7 */
8
9 global $wp_locale;
10
11 $is_rtl = $wp_locale->is_rtl();
12
13 $component = '.hustle-layout .hustle-layout-content';
14 $component_main_wrapper = '.hustle-main-wrapper';
15
16 // SETTINGS: Padding.
17 $padding_top = ( '' !== $advanced['layout_content_padding_top'] ) ? $advanced['layout_content_padding_top'] . $advanced['layout_content_padding_unit'] : '0';
18 $padding_right = ( '' !== $advanced['layout_content_padding_right'] ) ? $advanced['layout_content_padding_right'] . $advanced['layout_content_padding_unit'] : '0';
19 $padding_bottom = ( '' !== $advanced['layout_content_padding_bottom'] ) ? $advanced['layout_content_padding_bottom'] . $advanced['layout_content_padding_unit'] : '0';
20 $padding_left = ( '' !== $advanced['layout_content_padding_left'] ) ? $advanced['layout_content_padding_left'] . $advanced['layout_content_padding_unit'] : '0';
21
22 $padding = ( ! $is_rtl ) ? $padding_top . ' ' . $padding_right . ' ' . $padding_bottom . ' ' . $padding_left : $padding_top . ' ' . $padding_left . ' ' . $padding_bottom . ' ' . $padding_right;
23
24 $mobile_padding_top = ( '' !== $advanced['layout_content_padding_top_mobile'] ) ? $advanced['layout_content_padding_top_mobile'] . $advanced['layout_content_padding_unit_mobile'] : $padding_top;
25 $mobile_padding_right = ( '' !== $advanced['layout_content_padding_right_mobile'] ) ? $advanced['layout_content_padding_right_mobile'] . $advanced['layout_content_padding_unit_mobile'] : $padding_right;
26 $mobile_padding_bottom = ( '' !== $advanced['layout_content_padding_bottom_mobile'] ) ? $advanced['layout_content_padding_bottom_mobile'] . $advanced['layout_content_padding_unit_mobile'] : $padding_bottom;
27 $mobile_padding_left = ( '' !== $advanced['layout_content_padding_left_mobile'] ) ? $advanced['layout_content_padding_left_mobile'] . $advanced['layout_content_padding_unit_mobile'] : $padding_left;
28
29 $mobile_padding = $mobile_padding_top . ' ' . $mobile_padding_right . ' ' . $mobile_padding_bottom . ' ' . $mobile_padding_left;
30 $mobile_padding = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $padding : $mobile_padding;
31
32 // SETTINGS: Border.
33 $border_top = ( '' !== $advanced['layout_content_border_top'] ) ? $advanced['layout_content_border_top'] . $advanced['layout_content_border_unit'] : '0';
34 $border_right = ( '' !== $advanced['layout_content_border_right'] ) ? $advanced['layout_content_border_right'] . $advanced['layout_content_border_unit'] : '0';
35 $border_bottom = ( '' !== $advanced['layout_content_border_bottom'] ) ? $advanced['layout_content_border_bottom'] . $advanced['layout_content_border_unit'] : '0';
36 $border_left = ( '' !== $advanced['layout_content_border_left'] ) ? $advanced['layout_content_border_left'] . $advanced['layout_content_border_unit'] : '0';
37
38 $border_width = $border_top . ' ' . $border_right . ' ' . $border_bottom . ' ' . $border_left;
39 $border_style = $advanced['layout_content_border_type'];
40 $border_color = $colors['layout_content_border'];
41
42 $mobile_border_top = ( '' !== $advanced['layout_content_border_top_mobile'] ) ? $advanced['layout_content_border_top_mobile'] . $advanced['layout_content_border_unit_mobile'] : $border_top;
43 $mobile_border_right = ( '' !== $advanced['layout_content_border_right_mobile'] ) ? $advanced['layout_content_border_right_mobile'] . $advanced['layout_content_border_unit_mobile'] : $border_right;
44 $mobile_border_bottom = ( '' !== $advanced['layout_content_border_bottom_mobile'] ) ? $advanced['layout_content_border_bottom_mobile'] . $advanced['layout_content_border_unit_mobile'] : $border_bottom;
45 $mobile_border_left = ( '' !== $advanced['layout_content_border_left_mobile'] ) ? $advanced['layout_content_border_left_mobile'] . $advanced['layout_content_border_unit_mobile'] : $border_left;
46
47 $mobile_border_width = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $border_width : $mobile_border_top . ' ' . $mobile_border_right . ' ' . $mobile_border_bottom . ' ' . $mobile_border_left;
48 $mobile_border_style = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $border_style : $advanced['layout_content_border_type_mobile'];
49
50 // SETTINGS: Border Radius.
51 $radius_topleft = ( '' !== $advanced['layout_content_radius_top_left'] ) ? $advanced['layout_content_radius_top_left'] . $advanced['layout_content_radius_unit'] : '0';
52 $radius_topright = ( '' !== $advanced['layout_content_radius_top_right'] ) ? $advanced['layout_content_radius_top_right'] . $advanced['layout_content_radius_unit'] : '0';
53 $radius_bottomright = ( '' !== $advanced['layout_content_radius_bottom_right'] ) ? $advanced['layout_content_radius_bottom_right'] . $advanced['layout_content_radius_unit'] : '0';
54 $radius_bottomleft = ( '' !== $advanced['layout_content_radius_bottom_left'] ) ? $advanced['layout_content_radius_bottom_left'] . $advanced['layout_content_radius_unit'] : '0';
55
56 $border_radius = ( ! $is_rtl ) ? $radius_topleft . ' ' . $radius_topright . ' ' . $radius_bottomright . ' ' . $radius_bottomleft : $radius_topright . ' ' . $radius_topleft . ' ' . $radius_bottomleft . ' ' . $radius_bottomright;
57
58 $mobile_radius_topleft = ( '' !== $advanced['layout_content_radius_top_left_mobile'] ) ? $advanced['layout_content_radius_top_left_mobile'] . $advanced['layout_content_radius_unit_mobile'] : $radius_topleft;
59 $mobile_radius_topright = ( '' !== $advanced['layout_content_radius_top_right_mobile'] ) ? $advanced['layout_content_radius_top_right_mobile'] . $advanced['layout_content_radius_unit_mobile'] : $radius_topright;
60 $mobile_radius_bottomright = ( '' !== $advanced['layout_content_radius_bottom_right_mobile'] ) ? $advanced['layout_content_radius_bottom_right_mobile'] . $advanced['layout_content_radius_unit_mobile'] : $radius_bottomright;
61 $mobile_radius_bottomleft = ( '' !== $advanced['layout_content_radius_bottom_left_mobile'] ) ? $advanced['layout_content_radius_bottom_left_mobile'] . $advanced['layout_content_radius_unit_mobile'] : $radius_bottomleft;
62
63 $mobile_border_radius = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $border_radius : $mobile_radius_topleft . ' ' . $mobile_radius_topright . ' ' . $mobile_radius_bottomright . ' ' . $mobile_radius_bottomleft;
64
65 // SETTINGS: Box Shadow.
66 $shadow_offset_x = ( '' !== $advanced['layout_content_drop_shadow_x'] ) ? ( ( ! $is_rtl ) ? $advanced['layout_content_drop_shadow_x'] : ( -1 * $advanced['layout_content_drop_shadow_x'] ) ) . $advanced['layout_content_drop_shadow_unit'] : '0';
67 $shadow_offset_y = ( '' !== $advanced['layout_content_drop_shadow_y'] ) ? ( ( ! $is_rtl ) ? $advanced['layout_content_drop_shadow_y'] : ( -1 * $advanced['layout_content_drop_shadow_y'] ) ) . $advanced['layout_content_drop_shadow_unit'] : '0';
68 $shadow_blur = ( '' !== $advanced['layout_content_drop_shadow_blur'] ) ? $advanced['layout_content_drop_shadow_blur'] . $advanced['layout_content_drop_shadow_unit'] : '0';
69 $shadow_spread = ( '' !== $advanced['layout_content_drop_shadow_spread'] ) ? $advanced['layout_content_drop_shadow_spread'] . $advanced['layout_content_drop_shadow_unit'] : '0';
70 $shadow_color = $colors['layout_content_drop_shadow'];
71
72 $box_shadow = $shadow_offset_x . ' ' . $shadow_offset_y . ' ' . $shadow_blur . ' ' . $shadow_spread . ' ' . $shadow_color;
73
74 $mobile_shadow_offset_x = ( '' !== $advanced['layout_content_drop_shadow_x_mobile'] ) ? $advanced['layout_content_drop_shadow_x_mobile'] . $advanced['layout_content_drop_shadow_unit_mobile'] : $shadow_offset_x;
75 $mobile_shadow_offset_y = ( '' !== $advanced['layout_content_drop_shadow_y_mobile'] ) ? $advanced['layout_content_drop_shadow_y_mobile'] . $advanced['layout_content_drop_shadow_unit_mobile'] : $shadow_offset_y;
76 $mobile_shadow_blur = ( '' !== $advanced['layout_content_drop_shadow_blur_mobile'] ) ? $advanced['layout_content_drop_shadow_blur_mobile'] . $advanced['layout_content_drop_shadow_unit_mobile'] : $shadow_blur;
77 $mobile_shadow_spread = ( '' !== $advanced['layout_content_drop_shadow_spread_mobile'] ) ? $advanced['layout_content_drop_shadow_spread_mobile'] . $advanced['layout_content_drop_shadow_unit_mobile'] : $shadow_spread;
78
79 $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;
80
81 // SETTINGS: Colors.
82 $background_color = $colors['layout_content_bg'];
83
84 // SETTINGS: Close icon.
85 $position = $design['close_icon_position'];
86 $position_mobile = ( '' !== $design['close_icon_position_mobile'] && $is_mobile_enabled ) ? $design['close_icon_position_mobile'] : $design['close_icon_position'];
87 $alignment_y = $design['close_icon_alignment_y'];
88 $alignment_y_mobile = ( '' !== $design['close_icon_alignment_y_mobile'] && $is_mobile_enabled ) ? $design['close_icon_alignment_y_mobile'] : $design['close_icon_alignment_y'];
89 $icon_style = $design['close_icon_style'];
90 $icon_style_mobile = ( '' !== $design['close_icon_style_mobile'] && $is_mobile_enabled ) ? $design['close_icon_style_mobile'] : $design['close_icon_style'];
91 $close_icon_size = $design['close_icon_size'];
92 $close_icon_size_mobile = ( '' !== $design['close_icon_size_mobile'] && $is_mobile_enabled ) ? $design['close_icon_size_mobile'] : $design['close_icon_size'];
93
94 // ==================================================
95 // Mobile styles.
96 $style .= ' ';
97 $style .= $prefix_mobile . $component . ' {';
98 $style .= 'padding: ' . $mobile_padding . ';';
99 $style .= 'border-width: ' . $mobile_border_width . ';';
100 $style .= 'border-style: ' . $mobile_border_style . ';';
101 $style .= 'border-radius: ' . $mobile_border_radius . ';';
102 $style .= ( ! $is_vanilla ) ? 'border-color: ' . $border_color . ';' : '';
103 $style .= ( ! $is_vanilla ) ? 'background-color: ' . $background_color . ';' : '';
104 $style .= ( ! $is_vanilla ) ? '-moz-box-shadow: ' . $mobile_box_shadow . ';' : '';
105 $style .= ( ! $is_vanilla ) ? '-webkit-box-shadow: ' . $mobile_box_shadow . ';' : '';
106 $style .= ( ! $is_vanilla ) ? 'box-shadow: ' . $mobile_box_shadow . ';' : '';
107 $style .= '}';
108
109 $style .= $prefix_mobile . $component_main_wrapper . ' {';
110 $style .= 'position: relative;';
111 if ( 'outside' === $position_mobile ) {
112 if ( 'center' === $alignment_y_mobile ) {
113 $style .= 'padding: 0;';
114 } else {
115 $style .= ( 'top' === $alignment_y_mobile ) ? 'padding:' . ( $close_icon_size_mobile + 20 ) . 'px 0 0;' : 'padding: 0 0 ' . ( $close_icon_size_mobile + 20 ) . 'px';
116 }
117 } else {
118 $style .= 'padding: 0;';
119 }
120 $style .= '}';
121
122 // Desktop styles.
123 if ( $is_mobile_enabled ) {
124 $style .= $breakpoint . ' {';
125 $style .= $prefix_desktop . $component . ' {';
126 $style .= 'padding: ' . $padding . ';';
127 $style .= 'border-width: ' . $border_width . ';';
128 $style .= 'border-style: ' . $border_style . ';';
129 $style .= 'border-radius: ' . $border_radius . ';';
130 $style .= ( ! $is_vanilla ) ? '-moz-box-shadow: ' . $box_shadow . ';' : '';
131 $style .= ( ! $is_vanilla ) ? '-webkit-box-shadow: ' . $box_shadow . ';' : '';
132 $style .= ( ! $is_vanilla ) ? 'box-shadow: ' . $box_shadow . ';' : '';
133 $style .= '}';
134 $style .= '}';
135
136 $style .= $breakpoint . ' {';
137 $style .= $prefix_desktop . $component_main_wrapper . ' {';
138 if ( 'outside' === $position ) {
139 if ( 'center' === $alignment_y ) {
140 $style .= 'padding: 0;';
141 } else {
142 $style .= ( 'top' === $alignment_y ) ? 'padding:' . ( $close_icon_size + 20 ) . 'px 0 0;' : 'padding: 0 0 ' . ( $close_icon_size + 20 ) . 'px';
143 }
144 } else {
145 $style .= 'padding: 0;';
146 }
147 $style .= '}';
148 $style .= '}';
149 }
150