'widget_thrive_author', 'description' => __( 'Short introduction of the blog author/owner.', 'thrive' ) ); parent::__construct( 'widget_thrive_author', __( 'Thrive Author Widget', 'thrive' ), $widget_ops ); $this->alt_option_name = 'widget_thrive_author'; add_action( 'save_post', array( &$this, 'flush_widget_cache' ) ); add_action( 'deleted_post', array( &$this, 'flush_widget_cache' ) ); add_action( 'switch_theme', array( &$this, 'flush_widget_cache' ) ); } function widget( $args, $instance ) { if ( ! isset( $args['widget_id'] ) ) { $args['widget_id'] = "widget-thrive" . rand( 0, 999 ); } $author_email = null; if ( $instance['user_profile'] && $instance['user_profile'] > 0 ) { $author_email = get_the_author_meta( 'user_email', $instance['user_profile'] ); } ?>

flush_widget_cache(); $alloptions = wp_cache_get( 'alloptions', 'options' ); if ( isset( $alloptions['widget_thrive_author'] ) ) { delete_option( 'widget_thrive_author' ); } return $instance; } function flush_widget_cache() { wp_cache_delete( 'widget_thrive_author', 'widget' ); } function form( $instance ) { $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; $profile = isset( $instance['user_profile'] ) ? absint( $instance['user_profile'] ) : 0; $custom_image = isset( $instance['custom_image'] ) ? esc_attr( $instance['custom_image'] ) : ''; $custom_text = isset( $instance['custom_text'] ) ? ( $instance['custom_text'] ) : ''; //$custom_url = isset($instance['custom_url']) ? esc_attr($instance['custom_url']) : ''; $all_users = get_users( array( 'fields' => array( 'ID', 'user_login' ), ) ); $user_info = get_userdata( $profile ); ?>

_btn_upload' value=''/>