zZzzZ.
home2
/
zrzvbdry
/
airuzu.com
/
wp-content
/
themes
/
savings-pro-main
New Folder
Editing: header.php
Save
Cancel
<?php /** * The header for our theme. * * Displays all of the <head> section and everything up till <div id="content"> * * @package Savings Pro */ global $st_option; ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="page" class="hfeed site"> <header id="masthead" class="ui page site-header" role="banner"> <?php do_action('wpcoupon_before_header_top'); ?> <div class="primary-header"> <div class="container"> <div class="logo_area" style="<?php $logo_width = wpcoupon_get_option('logo_width'); if ($logo_width ) { echo 'width: ' . esc_attr($logo_width) . 'px;'; } else { echo 'width: 20%; height: 40px;'; } ?>" > <?php if ( wpcoupon_get_option('site_logo_retina', false, 'url') != '' ) { ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <img src="<?php echo wpcoupon_get_option('site_logo_retina', false, 'url'); ?>" alt="<?php echo get_bloginfo( 'name' ) ?>" /> </a> <?php } else if ( wpcoupon_get_option('site_logo', false, 'url') != '' ) { ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <img src="<?php echo wpcoupon_get_option('site_logo', false, 'url'); ?>" alt="<?php echo get_bloginfo( 'name' ) ?>" /> </a> <?php } else { ?> <div class="title_area"> <?php if ( is_home() || is_front_page() ) { ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <?php } else { ?> <h2 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h2> <?php } ?> <p class="site-description"><?php bloginfo( 'description' ); ?></p> </div> <?php } ?> </div> <?php //get login and coupon submit button option value $is_enable_login_btn = wpcoupon_get_option( 'enable_header_login_button', true ); $is_enable_submit_btn = wpcoupon_get_option( 'enable_header_coupon_submit_button', true ); $hs_width = ''; $hr_display = ''; if ($is_enable_login_btn=="0" && $is_enable_submit_btn=="0"){ $hs_width = 'width:70%;'; $hr_display = 'display:none;'; } ?> <div id="site-header-nav" class="site-navigation" style="<?php echo $hs_width;?>"> <nav class="primary-navigation clearfix fleft" role="navigation"> <a href="#content" class="screen-reader-text skip-link"><?php esc_html_e( 'Skip to content', 'savings-pro' ); ?></a> <div id="nav_toggle_open" class="nav-toggle"> <i class="bars icon"></i> </div> <div id="nav_toggle_close" class="nav-toggle"> <i class="close icon"></i> </div> <ul class="st-menu"> <?php wp_nav_menu( array('theme_location' => 'primary', 'container' => '', 'items_wrap' => '%3$s' ) ); ?> <?php if($is_enable_login_btn){ ?> <?php $is_logged_in = is_user_logged_in(); $user = wp_get_current_user(); $link = WP_Users()->get_profile_link( $user ); ?> <li class="sm-user-access-list"> <?php if($is_logged_in){ ?> <a data-is-logged="<?php echo is_user_logged_in() ? 'true' : 'false'; ?>" class="wpu-signup" href="<?php echo WP_Users()->get_profile_link(); ?>"> <span> <i class="user icon"></i> </span> <?php echo wpcoupon_get_option('my_account_text', 'savings-pro'); ?> </a> <?php }else{ ?> <a href="#" type="button" class="wpu-reg-btn" id="wpu-reg-btn"> <span> <i class="user icon"></i> </span> <?php echo wpcoupon_get_option('sign_up_text', 'savings-pro'); ?> </a> <?php } ?> </li> <li class="sm-user-access-list"> <?php if($is_logged_in){ ?> <a data-is-logged="<?php echo is_user_logged_in() ? 'true' : 'false'; ?>" class="wpu-login-btn" href="<?php echo wp_logout_url(); ?>"> <span> <i class="sign-out icon"></i> </span> <?php echo wpcoupon_get_option('sign_out_text', 'savings-pro'); ?> </a> <?php }else{ ?> <a data-is-logged="<?php echo is_user_logged_in() ? 'true' : 'false'; ?>" class="wpu-login-btn" href="<?php echo WP_Users()->get_profile_link(); ?>"> <span> <i class="sign in alternate icon"></i> </span> <?php echo wpcoupon_get_option('sign_in_text', 'savings-pro'); ?> </a> <?php } ?> </li> <?php } ?> </ul> </nav> <!-- END .primary-navigation --> </div> <!-- END #primary-navigation --> <?php if($is_enable_login_btn){ ?> <div class="header_right" style="<?php echo $hr_display;?>"> <div class="nav-user-action fright clearfix"> <?php if ( class_exists( 'WPCoupon_User' ) ) { WPCoupon_User::nav(); } ?> </div> <!-- END .nav_user_action --> </div> <?php } ?> </div> </div> <!-- END .header --> <?php do_action('wpcoupon_after_header_top'); ?> </header><!-- END #masthead --> <div id="content" class="site-content"> <?php