rtsb_name = esc_html__( 'Notice', 'shopbuilder' ); $this->rtsb_base = 'rtsb-wc-notice'; parent::__construct( $data, $args ); $this->rtsb_category = 'rtsb-shopbuilder-general'; } /** * Widget Field * * @return array */ public function widget_fields() { return NoticeSettings::widget_fields( $this ); } /** * Set Widget Keyword. * * @return array */ public function get_keywords() { return [ 'Notice' ] + parent::get_keywords(); } /** * @return void */ public function apply_the_hooks() { } /** * Render Function * * @return void */ protected function render() { $this->apply_the_hooks(); $this->theme_support(); if ( $this->is_edit_mode() ) { $all_notices = [ 'success' => [ [ 'notice' => esc_html__( 'This is demo preview for success notice.', 'shopbuilder' ) . '' . esc_html__( 'Demo Button', 'shopbuilder' ) . '', 'data' => [], ], ], 'error' => [ [ 'notice' => esc_html__( 'This is demo preview for error notice.', 'shopbuilder' ), 'data' => [], ], ], 'notice' => [ [ 'notice' => esc_html__( 'This is demo preview for info notice.', 'shopbuilder' ), 'data' => [], ], ], ]; $notice_types = [ 'success', 'error', 'notice' ]; echo '