1 ) ? true : false; if ( $actual_step_number > $i ) { $css_class_for_step = ' wpbc_steps_for_timeline_step_completed'; $css_class_for_line = 'wpbc_steps_for_timeline_line_active'; } elseif ( $actual_step_number === $i ) { $css_class_for_step = ' wpbc_steps_for_timeline_step_active'; $css_class_for_line = 'wpbc_steps_for_timeline_line_active'; } else { $css_class_for_step = ''; $css_class_for_line = ''; } if ( $is_line_exist ) { echo "
"; } echo "
"; echo wpbc_ui__steps_timeline__get_icons(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '
'; } ?>
"[wpbc_dismiss6764]" * shortcodes => array( * 'wpbc_dismiss6764' => array( * shortcode => "[wpbc_dismiss6764]", * params => array( id => "wpbc_top_news__offer_2023_04_21" ) * shortcode_original => "[wpbc_dismiss id="wpbc_top_news__offer_2023_04_21"]" * ) * ) * ) */ $form_content = str_replace( 'steps_timline', 'steps_timeline', $form_content ); $shortcodes_arr = wpbc_get_shortcodes_in_text__as_unique_replace( $form_content, array( 'steps_timeline' ) ); $string = $shortcodes_arr['content']; foreach ( $shortcodes_arr['shortcodes'] as $shortcode_text_to_replace => $shortcode_params_arr ) { $steps_count = 1; $step_number = 1; if ( isset( $shortcode_params_arr['params']['steps_count'] ) ) { $steps_count = intval( $shortcode_params_arr['params']['steps_count'] ); } if ( isset( $shortcode_params_arr['params']['active_step'] ) ) { $step_number = intval( $shortcode_params_arr['params']['active_step'] ); } $new_html = ''; $new_html .= wpbc_ui__steps_timeline__get_html( $steps_count, $step_number ); $new_html .= ''; if ( isset( $shortcode_params_arr['params']['color'] ) ) { $color = esc_attr( $shortcode_params_arr['params']['color'] ); $new_html .= ''; } $string = str_replace( '[' . $shortcode_text_to_replace . ']', $new_html, $string ); } return $string; } add_filter( 'wpbc_booking_form_content__after_load', 'wpbc_update_bookingform_content__steps_timeline', 10, 3 );