HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/html/ielts-store/wp-content/themes/oceanwp/woocommerce/checkout/checkout-timeline.php
<?php
/**
 * Multi-step checkout timeline template.
 *
 * @package OceanWP WordPress theme
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

// Vars.
$i = 0;

$enable_login_reminder = 'yes' === get_option( 'woocommerce_enable_checkout_login_reminder', 'yes' ) ? true : false;
$is_logged_in          = is_user_logged_in();
$show_login_step       = ! $is_logged_in && $enable_login_reminder;

// Style.
$style = get_theme_mod( 'ocean_woo_multi_step_checkout_timeline_style', 'arrow' );
$style = $style ? $style : 'arrow';

// Define classes.
$classes = array( 'owp-woo-checkout-timeline', 'clr' );

// Style.
$classes[] = $style;

// If login.
if ( $show_login_step ) {
	$classes[] = 'step-4';
}

// Turn classes into string.
$classes = implode( ' ', $classes ); ?>

<ul id="owp-checkout-timeline" class="<?php echo esc_attr( $classes ); ?>">

	<?php if ( $show_login_step ) { ?>
		<li id="timeline-0" data-step="0" class="timeline login <?php echo ! $is_logged_in ? 'active' : ''; ?>">
			<div class="timeline-wrapper">
				<span class="timeline-step"><?php echo $i = $i + 1 ?>.</span>
				<span class="timeline-label"><?php esc_html_e( 'Login', 'oceanwp' ); ?></span>
			</div>
		</li>
	<?php } ?>

	<li id="timeline-1" data-step="1" class="timeline billing <?php echo ! $show_login_step ? 'active' : ''; ?>">
		<div class="timeline-wrapper">
			<span class="timeline-step"><?php echo $i = $i + 1 ?>.</span>
			<span class="timeline-label"><?php esc_html_e( 'Billing', 'oceanwp' ); ?></span>
		</div>
	</li>

	<li id="timeline-2" data-step="2" class="timeline shipping" >
		<div class="timeline-wrapper">
			<span class="timeline-step"><?php echo $i = $i + 1 ?>.</span>
			<span class="timeline-label"><?php esc_html_e( 'Shipping', 'oceanwp' ); ?></span>
		</div>
	</li>

	<li id="timeline-3" data-step="3" class="timeline payment">
		<div class="timeline-wrapper">
			<span class="timeline-step"><?php echo $i = $i + 1 ?>.</span>
			<span class="timeline-label"><?php esc_html_e( 'Payment Info', 'oceanwp' ); ?></span>
		</div>
	</li>

</ul>