block_asset_uri( 'index.js' ) ); wp_register_script( self::JS_FRONT_SCRIPT_KEY, $this->block_asset_uri( 'front.js' ), array( VideoPressHQ::GLOBAL_JS_SCRIPT_ID, VideoPressHQ::GLOBAL_FUNCTIONS_SCRIPT_ID ) ); wp_register_style( self::CSS_SCRIPT_KEY, $this->block_asset_uri( 'style.css' ) ); } protected function get_block_name(): string { return 'post-content'; } protected function get_view_name(): string { return 'post-content'; } protected function get_view_vars( $attibutes, $content, $block ): array { return array( 'block' => $block ); } protected function get_block_register_params(): array { return array( 'editor_script_handles' => array( self::JS_SCRIPT_KEY ), 'editor_style_handles' => array( 'wp-block-post-content-editor' ), 'script_handles' => array( self::JS_FRONT_SCRIPT_KEY ), 'style_handles' => array( self::CSS_SCRIPT_KEY, 'dashicons' ), 'uses_context' => array( 'postId', 'postType', 'queryId' ), 'supports' => array( 'align' => array( 'wide', 'full' ), 'html' => false, 'layout' => true, 'dimensions' => array( 'minHeight' => true ), 'typography' => array( 'fontSize' => true, 'lineHeight' => true, '__experimentalFontFamily' => true, '__experimentalFontWeight' => true, '__experimentalFontStyle' => true, '__experimentalTextTransform' => true, '__experimentalTextDecoration' => true, '__experimentalLetterSpacing' => true, '__experimentalDefaultControls' => array( 'fontSize' => true ), ), ), ); } }