array( 'name' => esc_html__( 'Meta Cats', 'mega' ), 'description' => esc_html__( 'Meta Cats Block', 'mega' )), 'before' => '
', 'after' => '
', 'class_base'=> 'ys-meta-cats' ); parent::__construct( __CLASS__, $args ); } public function settings( $form ) { $form->add_control( 'Mega_Control_Text', array( 'label' => esc_html__( 'Cat', 'mega' ), 'value' => esc_html__( 'Cats:', 'mega' ), 'name' => 'category' )); $form->add_control( 'Mega_Control_Text', array( 'label' => esc_html__( 'Cat Sep', 'mega' ), 'value' => ', ', 'name' => 'cat_sep' )); } public function callback() { if ( !Mega_Block_Meta::getWrap( 'category', $this->mega['settings'] )) return; parent::callback(); } public function block() { echo '' . Mega_Block_Meta::getWrap( 'category', $this->mega['settings'] ); } }