block.json
1 year ago
controller.php
1 year ago
index.asset.php
1 year ago
index.js
1 year ago
style-index-rtl.css
1 year ago
style-index.css
1 year ago
view.php
1 year ago
controller.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | $styles = sc_get_block_styles(); |
| 4 | |
| 5 | $wrapper_style = ''; |
| 6 | |
| 7 | if ( ! empty( $styles['declarations'] ) ) { |
| 8 | $wrapper_style .= isset( $styles['declarations']['margin-top'] ) |
| 9 | ? esc_attr( safecss_filter_attr( 'margin-top:' . $styles['declarations']['margin-top'] ) ) . ';' |
| 10 | : ''; |
| 11 | $wrapper_style .= isset( $styles['declarations']['margin-bottom'] ) |
| 12 | ? esc_attr( safecss_filter_attr( 'margin-bottom:' . $styles['declarations']['margin-bottom'] ) ) . ';' |
| 13 | : ''; |
| 14 | } |
| 15 | |
| 16 | // Return the view. |
| 17 | return 'file:./view.php'; |
| 18 |