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/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>
  <!-- Google Tag Manager 11-03-2021 -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-P8HG23S');</script>
<!-- End Google Tag Manager 11-03-2021 -->
  <?php echo get_option('google_analytics'); ?>
	
  <meta charset="<?php bloginfo( 'charset' ); ?>">
  <!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- 	<meta name="viewport" content="width=device-width, initial-scale=1"> -->
	<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">
<!-- Google Tag Manager (noscript) 11-03-2021 -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P8HG23S"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) 11-03-2021 -->
<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">
          <a href="<?php echo get_option('cc_login'); ?>" class="login msp-login-btn hvr-shutter-out-horizontal">Login</a>
<!--           <a href="<?php //echo get_site_url(); ?>/pricing-msp" class="login GetaDemo hvr-shutter-out-horizontal">Start 30-Day Preview</a>                -->
      </div>
    </div>
  </nav>