block.json
1 year ago
controller.php
1 year ago
index.asset.php
6 months ago
index.js
6 months ago
style-index-rtl.css
1 year ago
style-index.css
1 year ago
view.php
1 year ago
controller.php
20 lines
| 1 | <?php |
| 2 | $wrapper_style = ''; |
| 3 | $wrapper_style .= ! empty( $attributes['border'] ) |
| 4 | ? esc_attr( safecss_filter_attr( 'border-bottom:var(--sc-drawer-border)' ) ) . ';' |
| 5 | : ''; |
| 6 | $wrapper_style .= ! empty( $attributes['padding'] ) |
| 7 | ? esc_attr( safecss_filter_attr( 'padding:' . $attributes['padding']['top'] . ' ' . $attributes['padding']['right'] . ' ' . $attributes['padding']['bottom'] . ' ' . $attributes['padding']['left'] ) ) . ';' |
| 8 | : ''; |
| 9 | $wrapper_style .= ! empty( $attributes['sectionBackgroundColor'] ) |
| 10 | ? esc_attr( safecss_filter_attr( 'background-color:' . $attributes['sectionBackgroundColor'] ) ) . ';' |
| 11 | : ''; |
| 12 | $wrapper_style .= ! empty( $attributes['textColor'] ) |
| 13 | ? esc_attr( safecss_filter_attr( 'color:' . $attributes['textColor'] ) ) . ';' |
| 14 | : ''; |
| 15 | |
| 16 | $styles = sc_get_block_styles(); |
| 17 | |
| 18 | // Return the view. |
| 19 | return 'file:./view.php'; |
| 20 |