' . esc_html( Nodebook_Node::headline( $items, $name ) ) . '
' . esc_html( Nodebook_Node::setup_line( $next, $done, count( $steps ), $intro, $name ) ) . '
'; echo '' . esc_html( $step['help'] ) . '
' . ( ! empty( $step['choices'] ) ? '' . esc_html( $tip['text'] ) . '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- blob() escapes its own attributes. if ( ! empty( $tip['action'] ) ) { echo '' . esc_html( $tip['action'][0] ) . ''; } echo '' . esc_html( $text ) . '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- blob() escapes its own attributes. if ( $actions ) { echo ''; $first = true; foreach ( $actions as $label => $url ) { echo '' . esc_html( $label ) . ' '; $first = false; } echo '
'; } echo '' . esc_html__( 'One moment…', 'nodebook' ) . '
' . esc_html( Nodebook_Node::headline( $items, $name ) ) . '
' . esc_html( $tip['text'] ) . '
' . esc_html( $tip['action'][0] ) . '' . esc_html( $item['text'] ) . '
' . esc_html( $item['action'][0] ) . '' . esc_html__( 'Open Today', 'nodebook' ) . ' →'; if ( current_user_can( 'manage_options' ) ) { echo '' . esc_html__( 'Node settings', 'nodebook' ) . ''; } echo '
'; wp_send_json_success( array( 'html' => ob_get_clean(), 'count' => count( $items ), ) ); } /** AJAX: "Not now" in the panel. */ public static function dismiss_ajax() { check_ajax_referer( 'nodebook_node', 'nonce' ); Nodebook_Admin::require_cap(); $key = isset( $_POST['key'] ) ? sanitize_text_field( wp_unslash( $_POST['key'] ) ) : ''; if ( '' !== $key ) { Nodebook_Node::dismiss( $key ); } self::panel_ajax(); } }