| 1 | <?php | ||
| 15 | abstract class Block { | ||
| 16 | |||
| 17 | const BLOCK_NAME = 'block'; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * Render block shortcode | ||
| 21 | * | ||
| 22 | * @since 2.10.2 | ||
| 23 | * | ||
| 24 | * @param array $attributes | ||
| 25 | * | ||
| 26 | * @return string | ||
| 27 | */ | ||
| 28 | 	public static function render( $attributes = array() ) { | ||
| 31 | |||
| 32 | /** | ||
| 33 | * Register block | ||
| 34 | * | ||
| 35 | * @since 2.10.2 | ||
| 36 | * | ||
| 37 | * @return void | ||
| 38 | */ | ||
| 39 | 	public static function register() { | ||
| 51 | |||
| 52 | /** | ||
| 53 | * Get block attributes | ||
| 54 | * | ||
| 55 | * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/ | ||
| 56 | * | ||
| 57 | * @since 2.10.2 | ||
| 58 | * | ||
| 59 | * @return array | ||
| 60 | */ | ||
| 61 | 	public static function get_block_attributes() { | ||
| 77 | } | ||
| 78 |