ID, $coauthor->user_nicename ); $show_profile = __( 'Show profile', 'co-authors-widget' ); $hide_profile = __( 'Hide profile', 'co-authors-widget' ); $i = 0; foreach ( $coauthors as $coauthor ) { $i++; ?>
ID, $coauthor->user_nicename ); ?>>display_name; ?>
description; ?>
ID, $coauthor->user_nicename ); ?>>display_name; ?>
__( 'Show avatars and names of the authors', 'co-authors-widget' ), ) ); } // Widget front-end public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', $instance['title'] ); // before and after echo $args['before_widget']; if ( ! empty( $title ) ) echo $args['before_title'] . $title . $args['after_title']; // output blog_avatars(); echo $args['after_widget']; } // Widget backend public function form( $instance ) { if ( isset( $instance[ 'title' ] ) ) { $title = $instance[ 'title' ]; } else { $title = __( 'Written by', 'co-authors-widget' ); } // Widget form ?>