function restaurant_wp_preloader() { $theme_option_data = restaurant_wp_get_theme_option_data(); if (isset($theme_option_data['restaurant_wp_display_preloader']) && $theme_option_data['restaurant_wp_display_preloader']) { ?> <div id="loader-wrapper"> <div id="loader"></div> </div> <?php } }
<body <?php body_class(); ?> > <?php do_action('restaurant_wp_before'); ?> <div id="wrapper-container" class="wrapper"> <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e('Skip to content', 'restaurant-wp'); ?> </a> <?php $option_data = restaurant_wp_get_theme_option_data(); $header = ''; if (isset($option_data['restaurant_wp_sticky_menu']) && $option_data['restaurant_wp_sticky_menu'] == 0) { $header .= ' no-affix-top'; } else { $header .= ' affix-top'; } if (isset($option_data['restaurant_wp_header_style']) && $option_data['restaurant_wp_header_style'] == 'default') { $header .= ' header-default'; } else { $header .= ' header-overlay'; } ?> <!-- menu for mobile --> <nav class="visible-xs mobile-menu-container mobile-effect" itemscope itemtype="http://schema.org/SiteNavigationElement"> <?php