Untitled
raw download clone
TEXT
views 66
,
size 7274 b
<?php
    session_start();
    /**
     * The theme header
     *
     * @package bootstrap-basic
     */
?>
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
    <meta charset="<?php bloginfo('charset'); ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
          integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
    <link rel='stylesheet' href='http://czernichow24.pl/wp-content/themes/Czernichow24/style1.css?ver=5.0.3'
          type='text/css' media='all'/>
    <link rel="profile" href="http://gmpg.org/xfn/11">
    <link href="https://fonts.googleapis.com/css?family=Lato:400,400i,700" rel="stylesheet">
    <script src="https://ajax.googleapis.com/ajax/libs/d3js/5.7.0/d3.min.js"></script>

    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">

    <!--wordpress head-->
    <?php wp_head(); ?>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-133838080-2"></script>
    <script>
        window.dataLayer = window.dataLayer || [];

        function gtag() {
            dataLayer.push(arguments);
        }

        gtag('js', new Date());

        gtag('config', 'UA-133838080-2');
    </script>


    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-36159035-6"></script>
    <script>
        window.dataLayer = window.dataLayer || [];

        function gtag() {
            dataLayer.push(arguments);
        }

        gtag('js', new Date());

        gtag('config', 'UA-36159035-6');
    </script>
    <script type="text/javascript">
        (function ($) {
            $(document).ready(function () {
                var originalSize = $('div').css('font-size');
                // reset
                $(".resetMe").click(function () {
                    $('div').css('font-size', originalSize);
                });

                // Increase Font Size
                $(".increase").click(function () {
                    var currentSize = $('div').css('font-size');
                    var currentSize = parseFloat(currentSize) * 1.15;
                    if (currentSize > 21) {
                        return false;
                    }

                    $('div').css('font-size', currentSize);
                    return false;
                });

                // Decrease Font Size
                $(".decrease").click(function () {
                    var currentFontSize = $('div').css('font-size');
                    var currentSize = $('div').css('font-size');
                    var currentSize = parseFloat(currentSize) * 0.9;
                    if (currentSize < 12) {
                        return false;
                    }
                    $('div').css('font-size', currentSize);
                    return false;
                });
            });
        })(jQuery);
    </script>


</head>
<?php
    $url = 'https://czernichow24.pl' . $_SERVER['REQUEST_URI'];
    $wcag = 'https://czernichow24.pl/home/';
    $no_wcag = 'https://czernichow24.pl/';
    $wcag_link='&wcag=1';
    $wcag = $_GET['wcag'];
    if ($wcag == '1'){

        $_SESSION["usertemplate_css"] = 'wcag-theme';
        $wcag_link='/';

    }

    /* if (($url == $wcag) || ($_SERVER['HTTP_REFERER'] == $wcag)) {
        session_set_cookie_params();
        session_start();
        $_SESSION["usertemplate_css"] = 'wcag-theme';
        $link = 'https://czernichow24.pl/';
        //header("location: /");

    }elseif (($url == $no_wcag) || ($_SERVER['HTTP_REFERER'] == $no_wcag)) {
        $_SESSION["usertemplate_css"] = '';
        $link = 'https://czernichow24.pl/home/';
    }
    else {
        $link = 'https://czernichow24.pl/home';
        //session_destroy();
    }*/

?>

<body <?php body_class(); ?> id="<?php echo $_SESSION["usertemplate_css"]; ?>">
<!--[if lt IE 8]>
<p class="ancient-browser-alert">You are using an <strong>outdated</strong> browser. Please <a
        href="https://browsehappy.com/" target="_blank">upgrade your browser</a>.</p>
<![endif]-->


<div class="page-container">
    <?php do_action('before'); ?>
    <header role="banner">
        <div class="container">

            <div class="row-with-vspace site-branding col-md-3 col-sm-12">
                <div class="site-logo">

                    <a href="<?php echo esc_url(home_url('/')); ?>"><img
                                src="http://czernichow24.pl/wp-content/uploads/2019/01/logo3.png"> </a>


                </div>
            </div><!--.site-branding-->

            <div class="row main-navigation col-md-9 col-sm-12">
                <div class="col-md-12">
                    <nav class="navbar navbar-default" role="navigation">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse"
                                    data-target=".navbar-primary-collapse">
                                <span class="sr-only"><?php _e('Toggle navigation', 'bootstrap-basic'); ?></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                        </div>

                        <div class="collapse navbar-collapse navbar-primary-collapse">
                            <?php wp_nav_menu(array('theme_location' => 'primary', 'container' => false, 'menu_class' => 'nav navbar-nav', 'walker' => new BootstrapBasicMyWalkerNavMenu())); ?>
                            <?php dynamic_sidebar('navbar-right'); ?>
                        </div><!--.navbar-collapse-->
                    </nav>
                </div>
            </div>
            <!--<a class="face" href="https://www.facebook.com/Czernichow24pl-2145125198904845/"><i class="fab fa-facebook-square"></i></a> -->
            <div class="wcag-div">
                <a href="<?php echo $wcag_link;?>" name="wcag1" class="wcag-button" id="wcag-button">
                    <i class="fas fa-adjust"></i>
                </a>
                <input type="button" class="increase" value=" A+ ">
                <input type="button" class="decrease" value=" A- ">
                <input type="button" class="resetMe" value=" A ">
            </div>
            <!--.main-navigation-->

        </div>
    </header>
</div>

<div id="content" class="row row-with-vspace site-content">
close fullscreen
Login or Register to edit or fork this paste. It's free.