HEX
Server: Apache
System: Linux server1.panigaletech.com 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/dev.captainschairit.com/wp-content/themes/captainschare/header.php
<?php
/**
 * The template for displaying the header
 *
 * Displays all of the head element and everything up until the "site-content" div.
 *
 * @package WordPress
 * @subpackage Twenty_Sixteen
 * @since Twenty Sixteen 1.0
 */

?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">

<head>
	<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- 	<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151814359-1"></script>
	<script>
	window.dataLayer = window.dataLayer || [];
	function gtag(){dataLayer.push(arguments);}
	gtag('js', new Date());
	gtag('config', 'UA-151814359-1');
	</script> -->
  <meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; connect-src 'self'; img-src 'self'; style-src 'self';>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
	<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
	<?php endif; ?>

  <link rel="shortcut icon" type="image/png" href="<?php echo get_bloginfo('template_directory');?>/img/favicon.ico" id="favicon" data-original-href="<?php echo get_bloginfo('template_directory');?>/img/favicon.ico" />

  <!-- Bootstrap core CSS -->
  <link href="<?php echo get_bloginfo('template_directory');?>/css/bootstrap.min.css" rel="stylesheet">
   <!-- hover Effect CSS -->
  <link href="<?php echo get_bloginfo('template_directory');?>/css/hover.css" rel="stylesheet" media="all">
  <!-- Animation CSS -->
  <link rel="stylesheet" href="<?php echo get_bloginfo('template_directory');?>/css/animate.css">
  <!-- Custom fonts for this template -->
  <link href="<?php echo get_bloginfo('template_directory');?>/fonts/css/all.min.css" rel="stylesheet" type="text/css">
  <link href="https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&display=swap" rel="stylesheet">
  <!-- Serialize CSS -->
  <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/css/selectize.bootstrap3.min.css" integrity="sha256-ze/OEYGcFbPRmvCnrSeKbRTtjG4vGLHXgOqsyLFTRjg=" crossorigin="anonymous" /> -->
  <link rel="stylesheet" type="text/css" href="<?php echo get_bloginfo('template_directory');?>/css/slick.css">
  <link rel="stylesheet" type="text/css" href="<?php echo get_bloginfo('template_directory');?>/css/slick-theme.css">
  <!-- Custom styles for this template -->
  <link href="<?php echo get_bloginfo('template_directory');?>/css/custom.css" rel="stylesheet">
<?php session_start(); ?>
<?php wp_head(); ?>
</head>

<body id="page-top">
<a href="#" id="scroll" style="display: none;"><span></span></a>
  <!-- Navigation -->
  <nav class="navbar navbar-expand-lg navbar-dark main-navigation msp-menu" id="mainNav">
	  <?php  //$announcement = get_option('announcement');
	  // if($announcement != '') { ?>
		<!-- <div class="top-header topHeader">
			<div class="container">
				<div class="row">
				<div class="col">
        
					<p class="text-center">
          <a href="<?php //echo get_option('announcement_link'); ?>" target="_blank"><?php //echo get_option('announcement'); ?>
          <i class="fas fa-arrow-right"></i></a>
						<i class="fas fa-times-circle remove"></i>
          </p>
        
				</div>
				</div>
			</div>
		</div> -->
		<?php
		//} ?>

    <div class="container">
      <a class="navbar-brand js-scroll-trigger" href="<?php echo get_site_url(); ?>">
        <img src="<?php echo get_option('site_logo'); ?>" alt="Captains Chair">
      </a>

      <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
        data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false"
        aria-label="Toggle navigation"><i class="fas fa-bars"></i></button>

        <div class="collapse navbar-collapse" id="navbarResponsive">
        <ul class="navbar-nav ml-auto">
        <?php
          $locations = get_nav_menu_locations();
          // echo '<pre>'; print_r($locations);
          if ( isset( $locations[ 'primary' ] ) ) {
            $menu = get_term( $locations[ 'primary' ], 'nav_menu' );
            $menu_array = wp_get_menu_array($menu);
            // echo '<pre>'; print_r($menu_array);
            foreach($menu_array as $menu_item) {
              if(count($menu_item['children']) > 0) {
                // echo '<pre>'; print_r($menu_item); ?>
                <li class="nav-item dropdown has-mega-menu">
                  <a class="nav-link dropdown-toggle hvr-underline-from-center" data-toggle="dropdown" href="" role="button" aria-haspopup="true" aria-expanded="false"><?php echo $menu_item['title']; ?></a>
                  <!--Mega Menu-->
                  <div class="dropdown-menu one-dropdown-menu">
                    <?php foreach($menu_item['children'] as $sub_item) { ?>
                      <a class="dropdown-item js-scroll-trigger" href="<?php echo $sub_item['url'] ?>"><?php echo $sub_item['title']; ?></a> 
                    <?php
                    } ?>
                  </div>
                  <!--Mega Menu-->
                </li>
              <?php
              } else { ?>
                <li class="nav-item">
                  <a class="nav-link hvr-underline-from-center" href="<?php echo $menu_item['url']; ?>"><?php echo $menu_item['title']; ?></a>
                </li>
              <?php
              }
            }  
          }
        ?>
        </ul>
      </div>
      <div class="demo-login-btn">
          <?php //if(is_user_logged_in()) {
            // echo '<a href="'. wp_logout_url(get_site_url()).'" class="login msp-login-btn hvr-shutter-out-horizontal">Log Out</a>';
          // } else { ?>
            <a href="<?php echo get_option('cc_login'); ?>" class="login msp-login-btn hvr-shutter-out-horizontal">Login</a>
            <!-- <a class="login msp-login-btn hvr-shutter-out-horizontal" href="<?php //echo get_site_url(); ?>/cc-login" title="Login"><?php //_e('Login','woothemes'); ?></a> -->
          <?php
          //} ?>
<!--           <a href="<?php //echo get_site_url(); ?>/pricing-msp" class="login GetaDemo hvr-shutter-out-horizontal">Start 30-Day Preview</a>        -->
<!-- 		  <a href="javascript:void(0);" class="login GetaDemo hvr-shutter-out-horizontal">Try It Free</a>     -->
      </div>
    </div>
  </nav>