'."\r\n"; } */ class comicpress_dogecoins_widget extends WP_Widget { /** * Register widget with WordPress. */ function __construct() { parent::__construct( __CLASS__, // Base ID __( 'ComicPress - Dogecoins Button', 'comicpress' ), // Name array( 'classname' => __CLASS__, 'description' => __( 'An accept Dogecoins button.', 'comicpress' ), ) // Args ); } function widget($args, $instance) { extract($args, EXTR_SKIP); echo $before_widget; $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']); if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; echo ' '; echo $after_widget; } function update($new_instance, $old_instance) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); $instance['wallet_id'] = strip_tags($new_instance['wallet_id']); return $instance; } function form($instance) { $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'wallet_id' => '' ) ); $title = strip_tags($instance['title']); $wallet_id = strip_tags($instance['wallet_id']); ?>