default_settings = apply_filters( 'powerkit_pinterest_profile_widget_settings', array( 'title' => esc_html__( 'Pinterest Profile', 'powerkit' ), 'href' => '', ) ); $widget_details = array( 'classname' => 'powerkit_pinterest_profile_widget', 'description' => esc_html__( 'Add the Pinterest Profile widget to your sidebar.', 'powerkit' ), ); parent::__construct( 'powerkit_pinterest_profile_widget', esc_html__( 'Pinterest Profile', 'powerkit' ), $widget_details ); } /** * Outputs the content for the current widget instance. * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current widget instance. */ public function widget( $args, $instance ) { $params = array_merge( $this->default_settings, $instance ); // Before Widget. echo $args['before_widget']; // XSS OK. ?>
default_settings, $instance ); ?>