ID, $coauthor->user_nicename ); $i = 0; foreach ( $coauthors as $coauthor ) { $i++; ?>
ID, $coauthor->user_nicename ); ?>>display_name; ?>
description; ?>
ID, $coauthor->user_nicename ); ?>>display_name; ?>
__( 'Widget per mostrare avatar e nomi degli autori', 'blog_widget_domain' ), ) ); } // creazione del front-end del widget public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', $instance['title'] ); // argomenti before e after echo $args['before_widget']; if ( ! empty( $title ) ) echo $args['before_title'] . $title . $args['after_title']; // il codice mostra l'output blog_avatars(); echo $args['after_widget']; } // backend del widget public function form( $instance ) { if ( isset( $instance[ 'title' ] ) ) { $title = $instance[ 'title' ]; } else { $title = __( 'Articolo di', 'blog_widget_domain' ); } // il form del widget ?>