has_pro() && 'on' === ( $shopify_checkout_options['enable_multi_step'] ?? 'off' ); } /** * Is Clickable * * @return bool */ public static function is_review_item_clickble() { global $shopify_checkout_options; return 'on' === ( $shopify_checkout_options['order_review_item_link'] ?? 'off' ); } /** * Generates HTML markup for displaying an endpoint icon. * * @return string */ public static function print_text_setting( $field_key, $default = '' ) { global $shopify_checkout_options; $text = do_shortcode( $shopify_checkout_options[ $field_key ] ?? $default ); if ( empty( $text ) ) { return; } $text = str_replace( '{year}', gmdate( 'Y' ), $text ); Fns::print_html( $text ); } /** * Generates HTML markup for displaying an endpoint icon. * * @return string */ public static function print_footer_menu() { global $shopify_checkout_options; $menu_slug = $shopify_checkout_options['footer_menu'] ?? false; if ( ! $menu_slug ) { return; } // Get the menu object by slug. $menu = wp_get_nav_menu_object( $menu_slug ); if ( ! $menu ) { return; } // Get menu items by menu ID. $menu_items = wp_get_nav_menu_items( $menu->term_id ); if ( empty( $menu_items ) ) { return; } $menu_html = '
'; Fns::print_html( $menu_html, true ); } /** * Generates HTML markup for displaying an endpoint icon. * * @return string */ public static function get_shopify_page_logo( $isReturn = false ) { global $shopify_checkout_options; $cart_image_icon = ! empty( $shopify_checkout_options['shopify_page_logo'] ) ? json_decode( stripslashes( $shopify_checkout_options['shopify_page_logo'] ), true ) : false; if ( empty( $cart_image_icon ) ) { return; } $style = ''; if ( ! empty( $shopify_checkout_options['shopify_logo_height'] ) ) { $style .= 'height:' . $shopify_checkout_options['shopify_logo_height'] . 'px;'; } $icon_id = $cart_image_icon['id'] ?? 0; if ( ! wp_attachment_is_image( $icon_id ) ) { return; } $html = '