$step ) { $is_active = $active_step === $key; $step_attrs = array( 'id' => 'frm-checklist__step-' . $key, 'class' => 'frm-checklist__step', ); if ( $is_active ) { $step_attrs['class'] .= ' frm-checklist__step--active'; } if ( $step['completed'] ) { $step_attrs['class'] .= ' frm-checklist__step--completed'; } if ( ! empty( $step['link'] ) ) { $step_attrs['data-link'] = $step['link']; } $active_step_url = $is_active && in_array( $active_step, array( 'style-form', 'embed-form' ), true ) ? FrmStylesHelper::get_list_url( $current_form_id ) : ''; ?>