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