Skip to content

Instantly share code, notes, and snippets.

@kirillrocks
Created March 22, 2020 14:04
Show Gist options
  • Save kirillrocks/e9e4163252a718e46629cdaa81e21ecf to your computer and use it in GitHub Desktop.
Save kirillrocks/e9e4163252a718e46629cdaa81e21ecf to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="fi">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="//use.typekit.net" crossorigin>
<link rel="preconnect" href="//cdnjs.cloudflare.com" crossorigin>
<link rel="preload" as="font" href="https://static.nettikasinot.com/themes/nettikasinot/fonts/Raleway-Black.woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="https://static.nettikasinot.com/themes/nettikasinot/fonts/Raleway-Bold.woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="https://static.nettikasinot.com/themes/nettikasinot/fonts/Raleway-Regular.woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="https://static.nettikasinot.com/themes/nettikasinot/fonts/Raleway-SemiBold.woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="https://static.nettikasinot.com/themes/nettikasinot/fonts/fontello.woff2" crossorigin="anonymous">
<script>function loadTk(){try{Typekit.load({async:true})}catch(e){}}</script>
<script src="https://use.typekit.net/juh5xnk.js" async onload="loadTk()"></script>
<script>(function () {
if (typeof MutationObserver === 'undefined') {
return;
}
var fixFontDisplay = function () {
// inject font-display option into typekit fonts
var styles = document.getElementsByTagName('style');
for (var i = 0; i < styles.length; i++) {
if (
styles[i].innerText
&& styles[i].innerText.indexOf('brandon-grotesque') !== -1
&& styles[i].innerText.indexOf('@font-face{font-display:swap;') === -1
) {
styles[i].innerText = styles[i].innerText
.split('@font-face{').join('@font-face{font-display:swap;');
}
}
};
var observer = new MutationObserver(function (mutationsList, observer) {
for (var i = 0; i < mutationsList.length; i++) {
fixFontDisplay();
}
});
observer.observe(
document.getElementsByTagName('head')[0],
{attributes: false, childList: true, subtree: false}
);
window.fixFontObserver = observer;
})();</script>
<?php if (defined('NOINDEX') && NOINDEX): ?>
<meta name="robots" content="noindex">
<?php endif ?>
<?php if ( WP_DEBUG || $_SERVER['SERVER_NAME'] !== 'www.nettikasinot.com' ): ?>
<meta name="robots" content="noindex,nofollow">
<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-KT9Q9V5');</script>
<!-- End Google Tag Manager -->
<style>.async-hide { opacity: 0 !important} </style>
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
})(window,document.documentElement,'async-hide','dataLayer',4000,
{'GTM-5L85FJC':true});</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','/ga.php','ga');
ga('create', 'UA-68608070-4', 'auto');
ga('require', 'GTM-5L85FJC');
ga('send', 'pageview');
// track link click to ga
var siirry = function(category, label) {
ga('send', 'event', category, 'click', label);
}
</script>
<?php elseif ( ! is_admin() ): ?>
<!-- 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-KT9Q9V5');</script>
<!-- End Google Tag Manager -->
<style>.async-hide { opacity: 0 !important} </style>
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
})(window,document.documentElement,'async-hide','dataLayer',4000,
{'GTM-5L85FJC':true});</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','/ga.php','ga');
ga('create', 'UA-68608070-2', 'auto');
ga('require', 'GTM-5L85FJC');
ga('send', 'pageview');
// track link click to ga
var siirry = function(category, label) {
ga('send', 'event', category, 'click', label);
}
</script>
<?php endif; ?>
<meta name="theme-color" content="#1e5bab">
<link rel="icon" href="<?= get_stylesheet_directory_uri() ?>/favicon.png">
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js?ver=3.4.1' defer></script>
<?php wp_head() ?>
<?php if(is_page_template('page-templates/arvostelut.php') || is_page_template('page-templates/peliesittely.php') || get_post_type() == 'casino_review' || get_post_type() == 'game_review' ): ?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/detect_swipe/2.1.3/jquery.detect_swipe.min.js" defer></script>
<!-- <script src="//cdnjs.cloudflare.com/ajax/libs/featherlight/1.6.1/featherlight.min.js" defer></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/featherlight/1.6.1/featherlight.gallery.min.js" defer></script> -->
<script>
if (!window.location.hash) {
window.onload = function() {
document.getElementById('primary').scrollIntoView();
}
}
</script>
<style><?php
if(is_page_template('page-templates/arvostelut.php') || get_post_type() == 'casino_review' ):
$esittelycss = file_get_contents(get_template_directory() . "/kasinoesittelyt.css");
endif;
if(is_page_template('page-templates/peliesittely.php') || get_post_type() == 'game_review'):
$esittelycss = file_get_contents(get_template_directory() . "/peliesittelyt.css");
endif;
echo (WP_DEBUG ? str_replace('https://static.nettikasinot.com/themes/nettikasinot/', '/wp-content/themes/nettikasinot/', $esittelycss) : $esittelycss);
?></style>
<?php endif; ?>
<style><?php
$atfcss = file_get_contents(get_template_directory() . "/atf.css");
// remove BOM character
$atfcss = str_replace("\xEF\xBB\xBF", '', $atfcss);
echo (WP_DEBUG ? str_replace('https://static.nettikasinot.com/themes/nettikasinot/', '/wp-content/themes/nettikasinot/', $atfcss) : $atfcss);
?></style>
<?php
if (get_the_ID() == '7906'): ?>
<meta property="og:url" content="https://www.nettikasinot.com/casino-joulukalenteri/" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Casino Joulukalenteri 2017 - Hyödynnä Joulukuun Erikoistarjoukset" />
<meta property="og:description" content="Katso sivustoltamme kattava casino joulukalenteri 2017 ja hyödynnä casinoiden erikoistarjoukset joulukuun jokaiselle päivälle - Nettikasinot.com" />
<meta property="og:image" content="https://static.nettikasinot.com/themes/nettikasinot/kuvat/joulu/kalenteri/nk-joulukalenteri-2017-jako.jpg" />
<?php endif; ?>
</head>
<body <?php body_class() ?>>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KT9Q9V5"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<?php
global $post;
$brands = trim( \GGData\Settings\Config::get( 'epBrands' ), ',' );
if (! empty($brands)) :
$cards = (new \GGData\Toplist\Cards(''))->get('', 999, 'exit_popup', $brands);
$where_to_show = (int)\GGData\Settings\Config::get('epShowsOn');
$current_slug = $post->post_name;
$specifics = explode(PHP_EOL, trim(\GGData\Settings\Config::get('epSpecificPages'), ','));
$specifics = array_map(function ($el) {
return trim($el);
}, $specifics);
if ($where_to_show === 0 || ($where_to_show === 1 && get_post_type() !== 'casino_review') || ($where_to_show === 2 && in_array($current_slug,
$specifics)) || ($where_to_show === 3 && ! in_array($current_slug, $specifics))) :
?>
<div id="netti-exit-modal">
<div class="modal-box">
<button class="modal-close"><img src="<?php echo get_stylesheet_directory_uri(); ?>/ggdata-img/x.png"
alt=""></button>
<div class="modal-container"
style="background-image: url('<?php echo get_stylesheet_directory_uri(); ?>/ggdata-img/popup_bg.jpg');">
<div class="modal-content">
<div class="modal-top-slogan"><?php echo \GGData\Settings\Config::get('epTitle'); ?></div>
<div class="modal-slogan"
style="background-image: url('<?php echo get_stylesheet_directory_uri(); ?>/ggdata-img/underline.jpg');"><?php echo \GGData\Settings\Config::get('epSubtitle'); ?></div>
<div class="casinos-offer">
<?php echo $cards; ?>
</div>
</div>
</div>
<img src="<?php echo get_stylesheet_directory_uri(); ?>/ggdata-img/bear.png" class="modal-bear">
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<div id="page" class="site">
<?php if (get_post_type() == 'vieraskyna'): ?>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/fi_FI/sdk.js#xfbml=1&version=v2.7";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php endif; ?>
<header id="top-section" class="site-header">
<div class="site-header-main">
<div class="site-branding">
<a class="site-logo" href="/" rel="home">
<img width="400" src="<?= get_template_directory_uri() ?>/kuvat/nettikasinot-com-logo.svg" alt="<?php bloginfo('name') ?> - <?php bloginfo('description') ?>">
</a>
<a class="header-badge" href="/parhaat-casinot/" title="Vuoden 2019 parhaat casinot">
<span>
<img class="no-mobile klikkaatxt" width="100" height="31" src="<?= get_template_directory_uri() ?>/kuvat/badget/klikkaa-txt.svg" alt="Klikkaa">
<img class="badge-parhaat" width="135" height="100" src="<?= get_template_directory_uri() ?>/kuvat/badget/katso-pelialan-parhaat-2019.svg" alt="Katso pelialan parhaat 2019">
</span>
</a>
</div>
</div>
<div id="site-header-menu" class="site-header-menu">
<?php if (has_nav_menu('primary')): ?>
<nav id="site-navigation" class="main-navigation" aria-label="Päävalikko">
<?php
wp_nav_menu([
'theme_location' => 'primary',
'menu_class' => 'primary-menu',
'menu_id' => 'primary-menu',
]);
?>
</nav>
<?php endif ?>
</div>
<div id="site-fixed-menu-mob" class="site-fixed-menu-mobile">
<?php if (has_nav_menu('primary-mobile')): ?>
<nav id="site-navigation-mobile" class="main-navigation-mobile" aria-label="Päävalikko mobiili">
<?php
wp_nav_menu([
'theme_location' => 'primary-mobile',
'menu_class' => 'primary-menu primary-menu-mobile',
'menu_id' => 'primary-menu-mob',
]);
?>
</nav>
<?php endif ?>
<?php
if (has_nav_menu('secondary-mobile')): ?>
<nav class="secondary-navigation-mobile">
<?php
wp_nav_menu([
'theme_location' => 'secondary-mobile',
'menu_class' => 'mobile-menu secondary-menu',
'menu_id' => 'secondary-menu-mob'
]);
?>
</nav>
<?php endif; ?>
</div>
<div id="site-header-secondary-menu" class="site-header-secondary-menu">
<?php if (has_nav_menu('secondary')): ?>
<nav id="site-navigation-sec" class="secondary-navigation" aria-label="Toissijainen valikko">
<?php
wp_nav_menu([
'theme_location' => 'secondary',
'menu_class' => 'secondary-menu',
'menu_id' => 'secondary-menu',
]);
?>
</nav>
<?php endif ?>
</div>
<?php if (class_exists('\GGData\Statistics')): ?>
<div class="site-stats-cont">
<div class="site-stats">
<div id="site-stats-bonus" class="site-stats-item">
<span class="item-cont"><span class="amount"><?= \GGData\Statistics::getBonusTotal() ?>€</span>kasinobonuksia</span>
</div>
<div id="site-stats-ik" class="site-stats-item">
<span class="item-cont"><span class="amount"><?= \GGData\Statistics::getFreeSpinsTotal() ?></span>ilmaiskierrosta</span>
</div>
<div id="site-stats-ratings" class="site-stats-item">
<span class="item-cont"><span class="amount"><?= \GGData\Statistics::getCasinoReviewCount() ?></span>kasinoarvostelua</span>
</div>
</div>
</div>
<?php endif ?>
</header>
<div class="site-inner">
<div id="content" class="site-content">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment