'Gebruik deze widget om een cookievrije Twitter volg knop aan je site toe te voegen.' ) // Args ); } // front-end display of widget public function widget( $args, $instance ) { extract( $args ); $twitter_id = apply_filters( 'widget_content', $instance['twitter_id'] ); // echo the standard opening widget HTML echo $before_widget; // echo the Twitter Button html code including the users Twitter ID if ( ! empty( $twitter_id ) ) echo "Volg ons op Twitter!"; // echo the standard closing widget HTML echo $after_widget; } // sanitize widget form values as they are saved public function update( $new_instance, $old_instance ) { $instance = array(); $instance['twitter_id'] = strip_tags( $new_instance['twitter_id'] ); // return array updated safe values to be saved return $instance; } /** * Back-end widget form. * * @param array $instance previously saved values from database */ public function form( $instance ) { if ( isset( $instance[ 'twitter_id' ] ) ) { $twitter_id = $instance[ 'twitter_id' ]; } else { $twitter_id = '123privacy'; } ?>