'', 'url' => '', 'target' => '_self', 'class' => '', 'style' => '', 'visibility' => 'all', ); $args['values'] = isset( $args['values'] ) ? wp_parse_args( $args['values'], $values ) : $values; $args['values']['text'] = wp_kses( $args['values']['text'], bloghash_get_allowed_html_tags() ); $args['values']['url'] = esc_url_raw( $args['values']['url'] ); $args['values']['target'] = sanitize_text_field( $args['values']['target'] ); $args['values']['class'] = sanitize_text_field( $args['values']['class'] ); $args['values']['style'] = sanitize_text_field( $args['values']['style'] ); $args['values']['visibility'] = isset( $args['values']['visibility'] ) ? sanitize_text_field( $args['values']['visibility'] ) : 'hide-mobile-tablet'; parent::__construct( $args ); $this->name = __( 'Button', 'bloghash' ); $this->description = __( 'A button with custom link.', 'bloghash' ); $this->icon = 'dashicons dashicons-admin-links'; $this->type = 'button'; $this->styles = isset( $args['styles'] ) ? $args['styles'] : array(); } /** * Displays the form for this widget on the Widgets page of the WP Admin area. * * @since 1.0.0 * @return void */ public function form() { ?>

values['target'], true ); ?> data-option-name="target"> values['target'], true ); ?> data-option-name="target">

styles ) ) { ?>