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-12--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-12--content.php
323 lines
1 <?php
2 /**
3 * Main content.
4 *
5 * @package Hustle
6 * @since 4.3.0
7 */
8
9 $component = '.hustle-layout .hustle-group-content';
10
11 // SETTINGS: Margin.
12 $margin_top = ( '' !== $advanced['main_content_margin_top'] ) ? $advanced['main_content_margin_top'] . $advanced['main_content_margin_unit'] : '0';
13 $margin_right = ( '' !== $advanced['main_content_margin_right'] ) ? $advanced['main_content_margin_right'] . $advanced['main_content_margin_unit'] : '0';
14 $margin_bottom = ( '' !== $advanced['main_content_margin_bottom'] ) ? $advanced['main_content_margin_bottom'] . $advanced['main_content_margin_unit'] : '0';
15 $margin_left = ( '' !== $advanced['main_content_margin_left'] ) ? $advanced['main_content_margin_left'] . $advanced['main_content_margin_unit'] : '0';
16
17 $margin = $margin_top . ' ' . $margin_right . ' ' . $margin_bottom . ' ' . $margin_left;
18
19 $mobile_margin_top = ( '' !== $advanced['main_content_margin_top_mobile'] ) ? $advanced['main_content_margin_top_mobile'] . $advanced['main_content_margin_unit_mobile'] : $margin_top;
20 $mobile_margin_right = ( '' !== $advanced['main_content_margin_right_mobile'] ) ? $advanced['main_content_margin_right_mobile'] . $advanced['main_content_margin_unit_mobile'] : $margin_right;
21 $mobile_margin_bottom = ( '' !== $advanced['main_content_margin_bottom_mobile'] ) ? $advanced['main_content_margin_bottom_mobile'] . $advanced['main_content_margin_unit_mobile'] : $margin_bottom;
22 $mobile_margin_left = ( '' !== $advanced['main_content_margin_left_mobile'] ) ? $advanced['main_content_margin_left_mobile'] . $advanced['main_content_margin_unit_mobile'] : $margin_left;
23
24 $mobile_margin = $mobile_margin_top . ' ' . $mobile_margin_right . ' ' . $mobile_margin_bottom . ' ' . $mobile_margin_left;
25 $mobile_margin = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $margin : $mobile_margin;
26
27 // SETTINGS: Padding.
28 $padding_top = ( '' !== $advanced['main_content_padding_top'] ) ? $advanced['main_content_padding_top'] . $advanced['main_content_padding_unit'] : '0';
29 $padding_right = ( '' !== $advanced['main_content_padding_right'] ) ? $advanced['main_content_padding_right'] . $advanced['main_content_padding_unit'] : '0';
30 $padding_bottom = ( '' !== $advanced['main_content_padding_bottom'] ) ? $advanced['main_content_padding_bottom'] . $advanced['main_content_padding_unit'] : '0';
31 $padding_left = ( '' !== $advanced['main_content_padding_left'] ) ? $advanced['main_content_padding_left'] . $advanced['main_content_padding_unit'] : '0';
32
33 $padding = $padding_top . ' ' . $padding_right . ' ' . $padding_bottom . ' ' . $padding_left;
34
35 $mobile_padding_top = ( '' !== $advanced['main_content_padding_top_mobile'] ) ? $advanced['main_content_padding_top_mobile'] . $advanced['main_content_padding_unit_mobile'] : $padding_top;
36 $mobile_padding_right = ( '' !== $advanced['main_content_padding_right_mobile'] ) ? $advanced['main_content_padding_right_mobile'] . $advanced['main_content_padding_unit_mobile'] : $padding_right;
37 $mobile_padding_bottom = ( '' !== $advanced['main_content_padding_bottom_mobile'] ) ? $advanced['main_content_padding_bottom_mobile'] . $advanced['main_content_padding_unit_mobile'] : $padding_bottom;
38 $mobile_padding_left = ( '' !== $advanced['main_content_padding_left_mobile'] ) ? $advanced['main_content_padding_left_mobile'] . $advanced['main_content_padding_unit_mobile'] : $padding_left;
39
40 $mobile_padding = $mobile_padding_top . ' ' . $mobile_padding_right . ' ' . $mobile_padding_bottom . ' ' . $mobile_padding_left;
41 $mobile_padding = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $padding : $mobile_padding;
42
43 // SETTINGS: Border.
44 $border_top = ( '' !== $advanced['main_content_border_top'] ) ? $advanced['main_content_border_top'] . $advanced['main_content_border_unit'] : '0';
45 $border_right = ( '' !== $advanced['main_content_border_right'] ) ? $advanced['main_content_border_right'] . $advanced['main_content_border_unit'] : '0';
46 $border_bottom = ( '' !== $advanced['main_content_border_bottom'] ) ? $advanced['main_content_border_bottom'] . $advanced['main_content_border_unit'] : '0';
47 $border_left = ( '' !== $advanced['main_content_border_left'] ) ? $advanced['main_content_border_left'] . $advanced['main_content_border_unit'] : '0';
48
49 $border_width = $border_top . ' ' . $border_right . ' ' . $border_bottom . ' ' . $border_left;
50 $border_style = ( '' !== $advanced['main_content_border_type'] ) ? $advanced['main_content_border_type'] : 'solid';
51 $border_color = $colors['content_border'];
52
53 $mobile_border_top = ( '' !== $advanced['main_content_border_top_mobile'] ) ? $advanced['main_content_border_top_mobile'] . $advanced['main_content_border_unit_mobile'] : $border_top;
54 $mobile_border_right = ( '' !== $advanced['main_content_border_right_mobile'] ) ? $advanced['main_content_border_right_mobile'] . $advanced['main_content_border_unit_mobile'] : $border_right;
55 $mobile_border_bottom = ( '' !== $advanced['main_content_border_bottom_mobile'] ) ? $advanced['main_content_border_bottom_mobile'] . $advanced['main_content_border_unit_mobile'] : $border_bottom;
56 $mobile_border_left = ( '' !== $advanced['main_content_border_left_mobile'] ) ? $advanced['main_content_border_left_mobile'] . $advanced['main_content_border_unit_mobile'] : $border_left;
57
58 $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;
59 $mobile_border_style = ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_advanced ) ) ? $border_style : $advanced['main_content_border_type_mobile'];
60
61 // SETTINGS: Colors.
62 $font_color = $colors['content_color'];
63 $link_default = $colors['link_static_color'];
64 $link_hover = $colors['link_hover_color'];
65 $link_focus = $colors['link_active_color'];
66
67 // ==================================================
68 // Check if main content is not empty.
69 if ( '' !== $content['main_content'] ) {
70
71 $style .= ' ';
72
73 // Mobile styles.
74 $style .= $prefix_mobile . $component . ' {';
75 $style .= 'margin: ' . $mobile_margin . ';';
76 $style .= 'padding: ' . $mobile_padding . ';';
77 $style .= ( ! $is_vanilla ) ? 'border-color: ' . $border_color . ';' : '';
78 $style .= 'border-width: ' . $mobile_border_width . ';';
79 $style .= 'border-style: ' . $mobile_border_style . ';';
80 $style .= ( ! $is_vanilla ) ? 'color: ' . $font_color . ';' : '';
81 $style .= '}';
82
83 $style .= $prefix_mobile . $component . ' b,';
84 $style .= $prefix_mobile . $component . ' strong {';
85 $style .= 'font-weight: bold;';
86 $style .= '}';
87
88 if ( ! $is_vanilla ) {
89
90 $style .= $prefix_mobile . $component . ' a,';
91 $style .= $prefix_mobile . $component . ' a:visited {';
92 $style .= 'color: ' . $link_default . ';';
93 $style .= '}';
94
95 $style .= $prefix_mobile . $component . ' a:hover {';
96 $style .= 'color: ' . $link_hover . ';';
97 $style .= '}';
98
99 $style .= $prefix_mobile . $component . ' a:focus,';
100 $style .= $prefix_mobile . $component . ' a:active {';
101 $style .= 'color: ' . $link_focus . ';';
102 $style .= '}';
103
104 }
105
106 // Desktop styles.
107 if ( $is_mobile_enabled ) {
108 $style .= $breakpoint . ' {';
109 $style .= $prefix_desktop . $component . ' {';
110 $style .= 'margin: ' . $margin . ';';
111 $style .= 'padding: ' . $padding . ';';
112 $style .= 'border-width: ' . $border_width . ';';
113 $style .= 'border-style: ' . $border_style . ';';
114 $style .= '}';
115 $style .= '}';
116 }
117 }
118
119 // ==================================================
120 // Add styles for typography.
121 $typos = array(
122 'p' => 'paragraph',
123 'h1' => 'heading_one',
124 'h2' => 'heading_two',
125 'h3' => 'heading_three',
126 'h4' => 'heading_four',
127 'h5' => 'heading_five',
128 'h6' => 'heading_six',
129 'li' => 'lists',
130 );
131
132 foreach ( $typos as $key => $prop ) {
133 $font_family = $typography[ 'main_content_' . $prop . '_font_family' ];
134 $font_size = ( '' !== $typography[ 'main_content_' . $prop . '_font_size' ] ) ? $typography[ 'main_content_' . $prop . '_font_size' ] . $typography[ 'main_content_' . $prop . '_font_size_unit' ] : '0';
135 $font_weight = $typography[ 'main_content_' . $prop . '_font_weight' ];
136 $font_style = 'normal';
137 $line_height = ( '' !== $typography[ 'main_content_' . $prop . '_line_height' ] ) ? $typography[ 'main_content_' . $prop . '_line_height' ] . $typography[ 'main_content_' . $prop . '_line_height_unit' ] : '0';
138 $letter_spacing = ( '' !== $typography[ 'main_content_' . $prop . '_letter_spacing' ] ) ? $typography[ 'main_content_' . $prop . '_letter_spacing' ] . $typography[ 'main_content_' . $prop . '_letter_spacing_unit' ] : '0';
139 $text_transform = $typography[ 'main_content_' . $prop . '_text_transform' ];
140 $text_decoration = $typography[ 'main_content_' . $prop . '_text_decoration' ];
141
142 if ( 'custom' === $font_family ) {
143 $font_family = ( '' !== $typography[ 'main_content_' . $prop . '_custom_font_family' ] ) ? $typography[ 'main_content_' . $prop . '_custom_font_family' ] : 'inherit';
144 }
145
146 if ( 'regular' === $font_weight ) {
147 $font_weight = 'normal';
148 } elseif ( 'italic' === $font_weight ) {
149 $font_weight = 'normal';
150 $font_style = 'italic';
151 } elseif ( preg_match( '/(italic)/', $font_weight ) ) { // Check if font weight is italic.
152 $font_weight = str_replace( 'italic', '', $font_weight );
153 $font_style = 'italic';
154 }
155
156 $mobile_font_size = ( '' !== $typography[ 'main_content_' . $prop . '_font_size_mobile' ] ) ? $typography[ 'main_content_' . $prop . '_font_size_mobile' ] . $typography[ 'main_content_' . $prop . '_font_size_unit_mobile' ] : $font_size;
157 $mobile_font_weight = $typography[ 'main_content_' . $prop . '_font_weight_mobile' ];
158 $mobile_font_style = 'normal';
159 $mobile_line_height = ( '' !== $typography[ 'main_content_' . $prop . '_line_height_mobile' ] ) ? $typography[ 'main_content_' . $prop . '_line_height_mobile' ] . $typography[ 'main_content_' . $prop . '_line_height_unit_mobile' ] : $line_height;
160 $mobile_letter_spacing = ( '' !== $typography[ 'main_content_' . $prop . '_letter_spacing_mobile' ] ) ? $typography[ 'main_content_' . $prop . '_letter_spacing_mobile' ] . $typography[ 'main_content_' . $prop . '_letter_spacing_unit_mobile' ] : $letter_spacing;
161 $mobile_text_transform = $typography[ 'main_content_' . $prop . '_text_transform_mobile' ];
162 $mobile_text_decoration = $typography[ 'main_content_' . $prop . '_text_decoration_mobile' ];
163
164 if ( 'regular' === $font_weight ) {
165 $font_weight = 'normal';
166 } elseif ( 'italic' === $font_weight ) {
167 $font_weight = 'normal';
168 $font_style = 'italic';
169 } elseif ( preg_match( '/(italic)/', $mobile_font_weight ) ) { // Check if font weight is italic.
170 $mobile_font_weight = str_replace( 'italic', '', $mobile_font_weight );
171 $mobile_font_style = 'italic';
172 }
173
174 if ( ! $is_mobile_enabled || ( $is_mobile_enabled && $default_typography ) ) {
175 $mobile_font_size = $font_size;
176 $mobile_font_weight = $font_weight;
177 $mobile_font_style = $font_style;
178 $mobile_line_height = $line_height;
179 $mobile_letter_spacing = $letter_spacing;
180 $mobile_text_transform = $text_transform;
181 $mobile_text_decoration = $text_decoration;
182 }
183
184 // Check if main content is not empty.
185 if ( '' !== $content['main_content'] ) {
186
187 if ( 'li' === $key ) {
188 $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]),';
189 $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]) {';
190 $style .= 'margin: 0 0 10px;';
191 $style .= '}';
192 $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]):last-child,';
193 $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]):last-child {';
194 $style .= 'margin-bottom: 0;';
195 $style .= '}';
196 }
197
198 if ( 'p' === $key ) {
199
200 // Mobile styles.
201 $style .= $prefix_mobile . $component . ' {';
202 $style .= ( ! $is_vanilla ) ? 'color: ' . $font_color . ';' : '';
203 $style .= 'font-size: ' . $mobile_font_size . ';';
204 $style .= 'line-height: ' . $mobile_line_height . ';';
205 $style .= 'font-family: ' . $font_family . ';';
206 $style .= '}';
207
208 // Desktop styles.
209 if ( $is_mobile_enabled ) {
210 $style .= $breakpoint . ' {';
211 $style .= $prefix_desktop . $component . ' {';
212 $style .= 'font-size: ' . $font_size . ';';
213 $style .= 'line-height: ' . $line_height . ';';
214 $style .= '}';
215 $style .= '}';
216 }
217 }
218
219 // Mobile styles.
220 $style .= $prefix_mobile . $component . ' ' . $key . ':not([class*="forminator-"]) {';
221 $style .= ( 'li' === $key ) ? 'margin: 0 0 5px;' : 'margin: 0 0 10px;';
222 if ( 'li' === $key ) {
223 $style .= 'display: flex;';
224 $style .= 'align-items: flex-start;';
225 }
226 $style .= ( ! $is_vanilla ) ? 'color: ' . $font_color . ';' : '';
227 $style .= ( 'inherit' !== $font_family ) ? 'font: ' . $mobile_font_weight . ' ' . $mobile_font_size . '/' . $mobile_line_height . ' ' . $font_family . ';' : '';
228 $style .= ( 'inherit' === $font_family ) ? 'font-size: ' . $mobile_font_size . ';' : '';
229 $style .= ( 'inherit' === $font_family ) ? 'line-height: ' . $mobile_line_height . ';' : '';
230 $style .= ( 'inherit' === $font_family ) ? 'font-weight: ' . $mobile_font_weight . ';' : '';
231 $style .= 'font-style: ' . $mobile_font_style . ';';
232 $style .= 'letter-spacing: ' . $mobile_letter_spacing . ';';
233 $style .= 'text-transform: ' . $mobile_text_transform . ';';
234 $style .= 'text-decoration: ' . $mobile_text_decoration . ';';
235 $style .= '}';
236 $style .= $prefix_mobile . $component . ' ' . $key . ':not([class*="forminator-"]):last-child {';
237 $style .= 'margin-bottom: 0;';
238 $style .= '}';
239
240 if ( 'li' === $key && ! $is_vanilla ) {
241
242 $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]) ' . $key . ':before {';
243 $style .= 'color: ' . $colors['ol_counter'] . ';';
244 $style .= 'flex-shrink: 0;';
245 $style .= '}';
246
247 $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]) ' . $key . ':before {';
248 $style .= 'color: ' . $colors['ul_bullets'] . ';';
249 $style .= 'content: "\2022";';
250 $style .= 'font-size: 16px;';
251 $style .= 'flex-shrink: 0;';
252 $style .= '}';
253
254 }
255
256 // Desktop styles.
257 if ( $is_mobile_enabled ) {
258
259 if ( 'li' === $key ) {
260 $style .= $breakpoint . ' {';
261 $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]),';
262 $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]) {';
263 $style .= 'margin: 0 0 20px;';
264 $style .= '}';
265 $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]):last-child,';
266 $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]):last-child {';
267 $style .= 'margin: 0;';
268 $style .= '}';
269 $style .= '}';
270 }
271
272 $style .= $breakpoint . ' {';
273 $style .= $prefix_desktop . $component . ' ' . $key . ':not([class*="forminator-"]) {';
274 $style .= ( 'li' === $key ) ? 'margin: 0 0 5px;' : 'margin: 0 0 10px;';
275 $style .= ( 'inherit' !== $font_family ) ? 'font: ' . $font_weight . ' ' . $font_size . '/' . $line_height . ' ' . $font_family . ';' : '';
276 $style .= ( 'inherit' === $font_family ) ? 'font-size: ' . $font_size . ';' : '';
277 $style .= ( 'inherit' === $font_family ) ? 'line-height: ' . $line_height . ';' : '';
278 $style .= ( 'inherit' === $font_family ) ? 'font-weight: ' . $font_weight . ';' : '';
279 $style .= 'font-style: ' . $font_style . ';';
280 $style .= 'letter-spacing: ' . $letter_spacing . ';';
281 $style .= 'text-transform: ' . $text_transform . ';';
282 $style .= 'text-decoration: ' . $text_decoration . ';';
283 $style .= '}';
284 $style .= $prefix_desktop . $component . ' ' . $key . ':not([class*="forminator-"]):last-child {';
285 $style .= 'margin-bottom: 0;';
286 $style .= '}';
287 $style .= '}';
288
289 } else {
290
291 if ( 'li' === $key ) {
292 $style .= $breakpoint . ' {';
293 $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]),';
294 $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]) {';
295 $style .= 'margin: 0 0 20px;';
296 $style .= '}';
297 $style .= $prefix_mobile . $component . ' ol:not([class*="forminator-"]):last-child,';
298 $style .= $prefix_mobile . $component . ' ul:not([class*="forminator-"]):last-child {';
299 $style .= 'margin: 0;';
300 $style .= '}';
301 $style .= '}';
302 }
303
304 $style .= $breakpoint . ' {';
305 $style .= $prefix_desktop . $component . ' ' . $key . ':not([class*="forminator-"]) {';
306 $style .= ( 'li' === $key ) ? 'margin: 0 0 5px;' : 'margin: 0 0 10px;';
307 $style .= '}';
308 $style .= $prefix_desktop . $component . ' ' . $key . ':not([class*="forminator-"]):last-child {';
309 $style .= 'margin-bottom: 0;';
310 $style .= '}';
311 $style .= '}';
312
313 }
314 }
315 }
316
317 if ( '' !== $content['main_content'] ) {
318 $style .= $prefix_mobile . $component . ' blockquote {';
319 $style .= 'margin-right: 0;';
320 $style .= 'margin-left: 0;';
321 $style .= '}';
322 }
323