File: /var/www/info.viitorcloud.in/wp-content/themes/infoviitorcloud/header.php
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="image/x-icon" href="<?php echo get_template_directory_uri();?>/assets/images/favicon.ico" rel="icon">
<link rel="profile" href="http://gmpg.org/xfn/11">
<!--<link href="https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php //echo get_template_directory_uri();?>/assets/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="<?php //echo get_template_directory_uri();?>/assets/css/style.css">
<script type="text/javascript" src="<?php //echo get_template_directory_uri();?>/assets/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="<?php //echo get_template_directory_uri();?>/assets/js/bootstrap.min.js"></script>-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<!--<script async src="https://www.googletagmanager.com/gtag/js?id=UA-133959750-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-133959750-1');
</script> -->
<!-- Google Tag Manager -->
<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-PWH7B9Z');</script>
<!-- End Google Tag Manager -->
<!--<script src="<?php //echo get_template_directory_uri(); ?>/assets/js/devtools.js" type="text/javascript"></script>-->
<script type='text/javascript'>
/*
document.onkeydown = function(e) {
if(e.keyCode == 123) {
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'K'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.keyCode == 'S'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.keyCode == 'C'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.keyCode == 'V'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.keyCode == 'A'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.keyCode == 'P'.charCodeAt(0)){
return false;
}
}
// get notified when it's opened/closed or orientation changes
Notification.requestPermission(function (permission) {
// If the user accepts, let's create a notification
if (permission === "granted") {
//redirect using javascript here window.location
}
});
window.addEventListener('devtoolschange', function (e) {
//console.log('is DevTools open?', e.detail.open);
window.open('https://info.viitorcloud.com/', "_blank ");
window.location.replace('http://www.google.com');
}); */
</script>
<?php wp_head(); ?>
<?php
$logo = get_field('logo','option');
$header_text = get_field('header_text','option');
?>
</head>
<body <?php body_class(); ?> oncontextmenu="return false;">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PWH7B9Z"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="page" class="site">
<header id="masthead" class="site-header" role="banner">
<div class="container-fluid">
<div class="header-main">
<?php if(!empty($logo)) { ?>
<div class="site-logo">
<img src="<?php echo $logo ?>" alt="logo">
</div>
<?php } ?>
<?php if(!empty($header_text)){ ?>
<div class="site-title">
<span><?php echo $header_text; ?></span>
</div>
<?php } ?>
<div class="logout-button">
<a href="<?php echo wp_logout_url( get_permalink() ); ?>">Logout</a>
</div>
</div>
</div>
</header><!-- #masthead -->
<div class="site-content-contain">
<div id="content" class="site-content">