field = $value['type']; $this->description = isset( $value['desc'] ) ? $value['desc'] : ''; $this->name = isset( $value['name'] ) ? $value['name'] : ''; $this->id = $value['id']; $this->action = isset( $value['action'] ) ? $value['action'] : ''; $this->href = isset( $value['href'] ) ? $value['href'] : '#'; $this->text = isset( $value['text'] ) ? $value['text'] : __( 'Button', 'socialsnap' ); $this->confirm = isset( $value['confirm'] ) ? $value['confirm'] : ''; $this->dependency = isset( $value['dependency'] ) ? $value['dependency'] : ''; } /** * HTML Output of the field * * @since 1.0.9 */ public function render() { ob_start(); ?>
dependency ); ?>> name ) || ! empty( $this->description ) ) { ?>
name ); ?> description ) { ?> icons->get_svg( 'info' ); // phpcs:ignore ?>
action ) { echo ' data-action="' . esc_attr( $this->action ) . '"'; } ?> confirm ) { echo ' data-confirm="' . esc_attr( $this->confirm ) . '"'; } ?> > text ); ?>