block_name = 'smart-search'; $this->category = 'sp-smart-post-show-pro-blocks'; $this->editor_scripts = array( 'sp_smart_post_blocks_index_js' ); $this->styles = array( 'sp_smart_post_blocks_css', 'sp_smart_post_blocks_style' ); $this->scripts = array( 'sp_smart_post_smart_search_script' ); } /** * Block render function. * * @param array $attributes attributes. * @param string $content Content to be rendered. * @param array $blocks blocks. * @return string Rendered HTML content. */ public function render_block( $attributes, $content = '', $blocks = array() ) { if ( Helper::is_editor_page() ) { return $content; } return ''; } }