__( 'Display the most recent posts from all categories.', 'elif-lite' ) ) ); } public function form( $instance ) { $defaults = array( 'comments' => 1, 'date' => 1, 'show_thumb' => 1, 'display_type' => 'horizontal', ); $instance = wp_parse_args((array) $instance, $defaults); $title = isset( $instance[ 'title' ] ) ? $instance[ 'title' ] : __( 'Recent Posts', 'elif-lite' ); $qty = isset( $instance[ 'qty' ] ) ? intval( $instance[ 'qty' ] ) : 5; $comments = isset( $instance[ 'comments' ] ) ? esc_attr( $instance[ 'comments' ] ) : 1; $date = isset( $instance[ 'date' ] ) ? esc_attr( $instance[ 'date' ] ) : 1; $show_thumb = isset( $instance[ 'show_thumb' ] ) ? esc_attr( $instance[ 'show_thumb' ] ) : 1; $display_type = isset( $instance[ 'display_type' ] ) ? strip_tags( $instance[ 'display_type' ] ) : 'horizontal'; ?>