get_checklist_option( 'status' ); $checklist_classes = $checklist_class->get_steps_css(); $check_list_completed = $checklist_class->is_checklist_completed() ? 'charitable-checklist-completed' : ''; $check_list_close_button_text = $checklist_class->is_checklist_completed() ? esc_attr__( 'Close checklist', 'charitable' ) : esc_attr__( 'Skip checklist', 'charitable' ); $checklist_stats = $checklist_class->get_steps_stats(); if ( ! is_array( $checklist_stats ) || empty( $checklist_stats ) ) { $checklist_stats = [ 'completed' => 0, 'total' => 5, ]; } $base_class = 'init' === $checklist_state || 'start' === $checklist_state ? 'charitable-checklist-start' : ''; $base_class = $checklist_class->is_checklist_completed() ? 'charitable-checklist-completed' : $base_class; $start_checklist_url = $checklist_class->get_start_checklist_url(); $next_checklist_url = $checklist_class->get_next_checklist_url(); $closed_css = $checklist_class->get_checklist_option( 'window_closed' ) ? 'closed' : ''; // phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound ?>
Charitable Checklist and get up and running within %1$s.', 'charitable' ), __( 'minutes', 'charitable' ) ), [ 'b' => [] ] ); ?>
' . absint( $checklist_stats['completed'] ) . '', '' . absint( $checklist_stats['total'] ) . '' ), [ 'b' => [] ] ); ?>