array( 'page_title' => get_the_title( $account ), 'page_url' => get_the_permalink( $account ), 'icon' => 'fa-user', ), 'shop' => array( 'page_title' => get_the_title( $shop ), 'page_url' => get_the_permalink( $shop ), 'icon' => 'fa-store', ), 'cart' => array( 'page_title' => get_the_title( $cart ), 'page_url' => get_the_permalink( $cart ), 'icon' => 'fa-shopping-cart', ), 'checkout' => array( 'page_title' => get_the_title( $checkout ), 'page_url' => get_the_permalink( $checkout ), 'icon' => 'fa-shopping-bag', ), ); return $woocommerce_menu; } function render_animatedfsmenu_nav() { //phpcs:ignore $settings = get_option( 'animatedfsm_settings' ); $privacy_policy_on = ( isset( $settings['animatedfsm_privacy_on'] ) ? $settings['animatedfsm_privacy_on'] : false ); $googlefont = $settings['animatedfsm_font']; $background01 = $settings['animatedfsm_background01']; $background02 = $settings['animatedfsm_background02']; $background_image = ( isset( $settings['animatedfsm_backgroundimage'] ) ? $settings['animatedfsm_backgroundimage'] : null ); $menu_id = $settings['animatedfsm_menuselected']; $textcolor = $settings['animatedfsm_textcolor']; $social_media_array = $settings['socialicons_group']; $animation_class = 'animatedfsmenu__' . esc_attr( $settings['animatedfsm_animation'] ); $mobile_only = ( isset( $settings['animatedfsm_mobile_only'] ) ? $settings['animatedfsm_mobile_only'] : false ); $mobile_class = ( 'on' === $mobile_only ? 'animatedfsmenu__mobile' : '' ); $woocommerce_on = ( isset( $settings['animatedfsm_woocommerce_on'] ) ? $settings['animatedfsm_woocommerce_on'] : false ); $language_switcher = ( isset( $settings['animatedfsm_languageswitcher'] ) ? $settings['animatedfsm_languageswitcher'] : false ); if ( count( $social_media_array ) > 0 || 'on' === $woocommerce_on ) { animatedfsm_enqueue_fontawesome(); } if ( $googlefont ) { animatedfsm_enqueue_google_fonts( $googlefont ); ?> '; pll_the_languages( array( 'display_names_as' => $display, 'show_flags' => $flags, ) ); echo ''; } } ?>