'', 'size' => '', 'visibility' => 'all', ); $args['values'] = isset( $args['values'] ) ? wp_parse_args( $args['values'], $values ) : $values; $args['values']['style'] = sanitize_text_field( $args['values']['style'] ); $args['values']['size'] = sanitize_text_field( $args['values']['size'] ); parent::__construct( $args ); $this->name = __( 'Social Links', 'bloghash' ); $this->description = __( 'Links to your social media profiles.', 'bloghash' ); $this->icon = 'dashicons dashicons-twitter'; $this->type = 'socials'; $this->styles = isset( $args['styles'] ) ? $args['styles'] : array(); $this->sizes = isset( $args['sizes'] ) ? $args['sizes'] : 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() { parent::form(); if ( ! empty( $this->styles ) ) { ?>
sizes ) ) { ?>