HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/Velosophe/dev.abloc.cc/wwwroot/backup/wp-content/themes/abloc-child/header.php
<?php
	global $nm_theme_options, $nm_globals, $nm_body_class;
	
	// Favicon
	$custom_favicon = false;
	if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) {
		if ( isset( $nm_theme_options['favicon'] ) && strlen( $nm_theme_options['favicon']['url'] ) > 0 ) {
			$custom_favicon = true;
			$favicon_url = ( is_ssl() ) ? str_replace( 'http://', 'https://', $nm_theme_options['favicon']['url'] ) : $nm_theme_options['favicon']['url'];
		}
	}

    // Page load transition class
    $nm_body_class .= ' nm-page-load-transition-' . $nm_theme_options['page_load_transition'];
	
	// CSS animations preload class
	$nm_body_class .= ' nm-preload';
	
	// Top bar
    $top_bar = $nm_theme_options['top_bar'];
	$top_bar_column_left_size = intval( $nm_theme_options['top_bar_left_column_size'] );
	$top_bar_column_right_size = 12 - $top_bar_column_left_size;
    $nm_body_class .= ( $top_bar ) ? ' has-top-bar' : '';
    
	// Header fixed class
	$nm_body_class .= ( $nm_theme_options['header_fixed'] ) ? ' header-fixed' : '';
    
	if ( is_front_page() ) {
        // Header transparency class - Home-page
        $nm_body_class .= ( $nm_theme_options['header_transparency'] != '0' ) ? ' header-transparency' : '';
        
		// Header border class - Home-page
		$nm_body_class .= ( isset( $_GET['header_border'] ) ) ? ' header-border-1' : ' header-border-' . $nm_theme_options['home_header_border'];
	} elseif ( nm_woocommerce_activated() && ( is_shop() || is_product_taxonomy() ) ) {
        // Header transparency class - Shop
        $nm_body_class .= ( $nm_theme_options['header_transparency'] == 'home-shop' ) ? ' header-transparency' : '';
        
		// Header border class - Shop
		$nm_body_class .= ' header-border-' . $nm_theme_options['shop_header_border'];
	} else {
		// Header border class
		$nm_body_class .= ' header-border-' . $nm_theme_options['header_border'];
	}
	
    // Widget panel class
    $nm_body_class .= ' widget-panel-' . $nm_theme_options['widget_panel_color'];

	// Sticky footer class
	$sticky_footer_class = ' footer-sticky-' . $nm_theme_options['footer_sticky'];
    
    // Header: Mobile layout class
    $nm_body_class .= ' header-mobile-' . $nm_theme_options['header_layout_mobile'];

    // Header: Layout slug
    $header_slugs = array( 'default' => '', 'menu-centered' => '', 'centered' => '', 'stacked' => '', 'stacked-centered' => '' );
    $nm_globals['header_layout'] = ( isset( $_GET['header'] ) && isset( $header_slugs[$_GET['header']] ) ) ? $_GET['header'] : $nm_theme_options['header_layout'];
    
    // WooCommerce login
    if ( nm_woocommerce_activated() && ! is_user_logged_in() && is_account_page() ) {
        $nm_body_class .= ' nm-woocommerce-account-login';
    }
?>
<!DOCTYPE html>

<html <?php language_attributes(); ?> class="<?php echo esc_attr( $sticky_footer_class ); ?>">
	
    <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
        
        <link rel="profile" href="http://gmpg.org/xfn/11">
		<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
        
        <?php if ( $custom_favicon ) : ?>
		<!-- Favicon -->
		<link href="<?php echo esc_url( $favicon_url ); ?>" rel="shortcut icon">
        <?php endif; ?>
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Covered+By+Your+Grace%7CAsap" media="all">
        <script src="https://use.typekit.net/msv6xly.js"></script>
        <script>try{Typekit.load({ async: true });}catch(e){}</script>	
		<?php wp_head(); ?>
    </head>
    
	<body <?php body_class( esc_attr( $nm_body_class ) ); ?>>
        
        <?php if ( $nm_theme_options['page_load_transition'] ) : ?>
        <div id="nm-page-load-overlay" class="nm-page-load-overlay"></div>
        <?php endif; ?>
        
        <!-- page overflow wrapper -->
        <div class="nm-page-overflow">
        
            <!-- page wrapper -->
            <div class="nm-page-wrap">
            
                <?php if ( $top_bar ) : ?>
                <!-- top bar -->
                <div id="nm-top-bar" class="nm-top-bar">
                    <div class="nm-row">
                        <div class="nm-top-bar-left col-xs-<?php echo esc_attr( $top_bar_column_left_size ); ?>">
                            <?php
								// Social icons (left column)
								if ( $nm_theme_options['top_bar_social_icons'] == 'l_c' ) {
									echo nm_get_social_profiles( 'nm-top-bar-social' ); // Args: $wrapper_class 
								}
							?>
                            
                            <div class="nm-top-bar-text">
                                <?php echo wp_kses_post( do_shortcode( $nm_theme_options['top_bar_text'] ) ); ?>
                            </div>
                        </div>
                                                
                        <div class="nm-top-bar-right col-xs-<?php echo esc_attr( $top_bar_column_right_size ); ?>">
                            <?php /*if ( is_active_sidebar( 'top-bar' ) ) : ?>
                                <ul id="nm-top-bar-widgets">
                                    <?php dynamic_sidebar( 'top-bar' ); ?>
                                </ul>
                            <?php endif;*/ ?>
                            
                            <?php
								// Social icons (right column)
								if ( $nm_theme_options['top_bar_social_icons'] == 'r_c' ) {
									echo nm_get_social_profiles( 'nm-top-bar-social' ); // Args: $wrapper_class 
								}
							?>
							
							<?php
								// Top-bar menu
								wp_nav_menu( array(
                                    'theme_location'	=> 'top-bar-menu',
                                    'container'       	=> false,
                                    'menu_id'			=> 'nm-top-menu',
                                    'fallback_cb'     	=> false,
                                    'items_wrap'      	=> '<ul id="%1$s" class="nm-menu">%3$s</ul>'
                                ) );
                            ?>
                        </div>
                    </div>                
                </div>
                <!-- /top bar -->
                <?php endif; ?>
                            
                <div class="nm-page-wrap-inner">
                
                    <div id="nm-header-placeholder" class="nm-header-placeholder"></div>
                            
                    <?php
                        // Include header layout
                        if ( $nm_globals['header_layout'] == 'centered' ) {
                            get_header( 'centered' );
                        } else {
                            get_header( 'default' );
                        }
                    ?>