ASTRA_Ext_WooCommerce_Markup::add_two_step_nav_menu( string $layout_style )
Display Two Step Nav Menu.
Description
Parameters
- $layout_style
-
(string) (Required) layout style.
Return
(void)
Source
File: addons/woocommerce/classes/class-astra-ext-woocommerce-markup.php
public function add_two_step_nav_menu( $layout_style ) { // Get the values form the applied settings. // Get step titles. $step_one_title = astra_get_option( 'two-step-checkout-modern-step-1-text' ); $step_one_sub_title = astra_get_option( 'two-step-checkout-modern-step-1-sub-text' ); $step_two_title = astra_get_option( 'two-step-checkout-modern-step-2-text' ); $step_two_sub_title = astra_get_option( 'two-step-checkout-modern-step-2-sub-text' ); $two_step_section_border = 'none'; $two_step_html = ''; $two_step_html .= "<div class='ast-embed-checkout-form-nav ast-border-" . esc_attr( $two_step_section_border ) . " '>"; $two_step_html .= "<ul class='ast-embed-checkout-form-steps'>"; $two_step_html .= "<div class='steps step-one ast-current'>"; $two_step_html .= "<a href='#customer_details'>"; $two_step_html .= "<div class='step-number'>1</div>"; $two_step_html .= "<div class='step-heading'>"; $two_step_html .= "<div class='step-name'>" . esc_html( $step_one_title ) . '</div>'; $two_step_html .= "<div class='step-sub-name'>" . esc_html( $step_one_sub_title ) . '</div>'; $two_step_html .= '</div>'; $two_step_html .= '</a>'; $two_step_html .= '</div>'; $two_step_html .= "<div class='steps step-two'>"; $two_step_html .= "<a href='#ast-order-wrap'>"; $two_step_html .= "<div class='step-number'>2</div>"; $two_step_html .= "<div class='step-heading'>"; $two_step_html .= "<div class='step-name'>" . esc_html( $step_two_title ) . '</div>'; $two_step_html .= "<div class='step-sub-name'>" . esc_html( $step_two_sub_title ) . '</div>'; $two_step_html .= '</div>'; $two_step_html .= '</a>'; $two_step_html .= '</div>'; $two_step_html .= '</ul>'; $two_step_html .= '</div>'; echo $two_step_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |