Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html <?php language_attributes(); ?>>
- <head>
- <meta charset="<?php bloginfo( 'charset' ); ?>">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" />
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300">
- <?php $health_data= health_care_get_options(); ?>
- <?php if($health_data['upload_image_favicon']!=''){ ?>
- <link rel="shortcut icon" href="<?php echo $health_data['upload_image_favicon']; ?>" />
- <?php } ?>
- <?php wp_head(); ?>
- </head>
- <?php if($health_data['custom_bg']=='on') { ?>
- <body <?php body_class(); ?> >
- <?php }else{ ?>
- <body <?php body_class(); ?> <?php if($health_data['site_bg']){ ?> style="background:url('<?php echo $health_data['site_bg']; ?>') repeat fixed;" <?php } ?>>
- <?php } ?>
- <div id="wrapper" class="<?php echo $health_data['site_layout']; ?>">
- <!-- Start Header-->
- <header id="top">
- <div class="container-fluid top">
- <div class="container">
- <div class="col-md-4 header-info">
- <?php if($health_data['social_phone']!=''){ ?>
- <a href="tel:<?php echo $health_data['social_phone'];?>" ><span><i class="fa fa-phone"></i><?php echo $health_data['social_phone'];?> </span></a><?php } ?>
- <?php if($health_data['social_email']!=''){ ?>
- <a href="mailto:<?php echo $health_data['social_email'];?>" ><span><i class="fa fa-envelope"></i> <?php echo $health_data['social_email'];?> </span></a><?php } ?>
- </div>
- <div class="col-md-6 header-timing">
- <?php if($health_data['social_timing']!='') echo '<span class="timing">'.$health_data['social_timing'].'</span>';?>
- </div>
- <?php if($health_data['header_social_icon']=='on'){ ?>
- <div class="col-md-2 header-social">
- <?php for($i=1; $i<=6; $i++){
- if($health_data['social_icon_'.$i]!=''){
- ?>
- <a href="<?php echo $health_data['social_link_'.$i]; ?>" target="_blank"><span class="<?php echo $health_data['social_icon_'.$i]; ?> header-icon"></span></a>
- <?php }
- } ?>
- </div>
- <?php } ?>
- </div>
- </div>
- <nav class="navbar navbar-static-top marginBottom-0 menu <?php if($health_data['fix_header']=='on') echo 'menu-layout'; ?>">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
- <span class="sr-only"><?php _e('Toggle navigation','weblizar'); ?></span>
- <span class="icon-bar black"></span>
- <span class="icon-bar black"></span>
- <span class="icon-bar black"></span>
- </button>
- <a href="<?php echo esc_url(home_url( '/' )); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" class="navbar-brand">
- <?php if($health_data['upload_image_logo']!=''){ ?>
- <img src="<?php echo $health_data['upload_image_logo']; ?>" style="height:<?php echo $health_data['logo_height']; ?>px; width:<?php echo $health_data['logo_width']; ?>px;" alt="<?php echo get_bloginfo('name'); ?>"/>
- <?php }else{
- echo '<span class="site_title">'.get_bloginfo('name').'</span>'; } ?></a>
- </div>
- <div class="collapse navbar-collapse" id="navbar-collapse-1">
- <?php wp_nav_menu( array(
- 'theme_location' => 'primary',
- 'menu_class' => 'nav navbar-nav navbar-right',
- 'fallback_cb' => 'weblizar_fallback_page_menu',
- 'walker' => new weblizar_nav_walker(),
- )
- ); ?>
- </div><!-- /.navbar-collapse -->
- </div>
- </nav>
- </header>
- <!-- End Header -->
- <div class="home_menu">
- <div id="scroll_menu">
- <a href="<?php echo esc_url(home_url( '/' )); ?>" class="btn " data-toggle="tooltip" title="Home"><i class="fa fa-home"></i></a><br />
- <a href="<?php echo esc_url(home_url( '/' )); ?>#myCarousel" class="btn " data-toggle="tooltip" title="Slider"><i class="fa fa-caret-square-o-right"></i></a><br />
- <?php $data = $health_data['home_page_layout'];
- if($data)
- { foreach($data as $key=>$value)
- { switch($value)
- { case 'callout': ?>
- <a href="<?php if(!is_home()){ echo esc_url(home_url( '/' )); } ?>#callout-section" class="btn " data-toggle="tooltip" title="callout"><i class="fa fa-yelp"></i></a><br />
- <?php break;
- case 'services': ?>
- <a href="<?php if(!is_home()){ echo esc_url(home_url( '/' )); } ?>#service-section" class="btn " data-toggle="tooltip" title="services"><i class="fa fa-picture-o"></i></a><br />
- <?php break;
- case 'deptt': ?>
- <a href="<?php if(!is_home()){ echo esc_url(home_url( '/' )); } ?>#deptt" class="btn " data-toggle="tooltip" title="deptt"><i class="fa fa-desktop"></i></a><br />
- <?php break;
- case 'doctor': ?>
- <a href="<?php if(!is_home()){ echo esc_url(home_url( '/' )); } ?>#deppartment-section" class="btn" data-toggle="tooltip" title="doctor"><i class="fa fa-book"></i></a><br />
- <?php break;
- case 'testimonial': ?>
- <a href="<?php if(!is_home()){ echo esc_url(home_url( '/' )); } ?>#testimonial-section" class="btn " data-toggle="tooltip" title="testimonial"><i class="fa fa-user"></i></a><br />
- <?php break;
- case 'blog': ?>
- <a href="<?php if(!is_home()){ echo esc_url(home_url( '/' )); } ?>#blog-section" class="btn " data-toggle="tooltip" title="blog"><i class="fa fa-users"></i></a><br />
- <?php break;
- case 'gallery': ?>
- <a href="<?php if(!is_home()){ echo esc_url(home_url( '/' )); } ?>#gallery-section" class="btn " data-toggle="tooltip" title="gallery"><i class="fa fa-heart"></i></a><br />
- <?php break;
- case 'facts': ?>
- <a href="<?php if(!is_home()){ echo esc_url(home_url( '/' )); } ?>#facts-section" class="btn " data-toggle="tooltip" title="facts"><i class="fa fa-sort-numeric-desc"></i></a><br />
- <?php break;
- case 'clients': ?>
- <a href="<?php if(!is_home()){ echo esc_url(home_url( '/' )); } ?>#client-section" class="btn " data-toggle="tooltip" title="clients"><i class="fa fa-users"></i></a><br />
- <?php break;
- case 'appointment': ?>
- <a href="<?php if(!is_home()){ echo esc_url(home_url( '/' )); } ?>#appoinment" class="btn " data-toggle="tooltip" title="appointment"><i class="fa fa-phone-square"></i></a><br />
- <?php break; }
- }
- }
- ?>
- </div>
- <div class="scroll_toggle">
- <i class="fa fa-arrow-circle-o-right" id="bt1" onclick="setVisibility('scroll_menu'); "></i>
- </div>
- </div>
- <script>
- //Fade Up Menu
- jQuery(window).scroll(function() {
- // 100 = The point you would like to fade the nav in.
- if (jQuery(window).scrollTop() > 100 ){
- jQuery('.top_fix').addClass('fd');
- } else {
- jQuery('.top_fix').removeClass('fd');
- };
- });
- //parallax menu
- function setVisibility(id) {
- if(document.getElementById('bt1').value=='Hide'){
- document.getElementById('bt1').value = 'Show';
- document.getElementById(id).style.display = 'none';
- }else{
- document.getElementById('bt1').value = 'Hide';
- document.getElementById(id).style.display = 'inline';
- }
- }
- //image rotate
- jQuery(document).ready(function() {
- var rotation=0;
- var trans = "all 0.6s ease-out";
- jQuery(document).on('click','#bt1',function(){
- rotation+=180;
- if(rotation == 360){
- rotation=0;
- }
- var rotate = "rotate(" + rotation + "deg)"
- jQuery("#bt1").css({
- "-webkit-transform": rotate,
- "-moz-transform": rotate,
- "-o-transform": rotate,
- "msTransform": rotate,
- "transform": rotate,
- "-webkit-transition": trans,
- "-moz-transition": trans,
- "-o-transition": trans,
- "transition": trans
- });
- });
- });
- //parallax js
- jQuery(document).ready(function() {
- jQuery('.testimonail').parallax("50%", 0.4);
- jQuery('.cover').parallax("50%", 0.4);
- jQuery('.cover2').parallax("50%", 0.4);
- jQuery('.facts').parallax("50%", 0.4);
- jQuery('.carousel-caption').parallax("50%", 0.4);
- });
- //menu scroll js
- jQuery('a[href*="#"]:not([href="#"]):not([href="#show"]):not([href="#hide"])').click(function() {
- if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
- var target = jQuery(this.hash);
- target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
- if (target.length) {
- jQuery('html,body').animate({
- scrollTop: target.offset().top
- }, 1000);
- return false;
- }
- }
- });
- </script>
Add Comment
Please, Sign In to add comment