<?php
header('Cache-Control: max-age=31536000');
header('Set-Cookie: cross-site-cookie=bar; SameSite=None; Secure');
?>
<!DOCTYPE html>
<html> 
    <head>
        <meta name="google-site-verification" content="T6ceVlWePVJNBfnOedadS269JW0fV4-QJGAj-t0n_PM" />        
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Amazônia Cursos - <?php echo $titulo ?></title>
        <meta http-equiv="cache-control" content="public, max-age=31536000" /> 
        <meta HTTP-EQUIV="Expires" CONTENT="Wed, 05 May 2021 11:45:13 GMT">
        <meta http-equiv="Pragma" content="public"> <!-- reconhecida por todas as versões do HTTP -->
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="google-signin-client_id" content="636369693955-u7ocgefaim3qqcu8l4chk4cll65mn3h0.apps.googleusercontent.com">
        <meta property="og:title" content="Amazônia Cursos" />
        <meta property="og:type" content="website" />
        <meta property="og:description" content="<?= !empty($descricao)? $descricao : '' ?>" />
        <meta property="og:site_name" content="Amazônia Cursos" /> 
        <meta property="og:url" content="<?= base_url() ?>" />
        <meta property="og:image" content="<?= base_url('assets/img/amazonia-logo.png') ?>" />
        <meta property="og:image:secure_url" content="<?= base_url('assets/img/amazonia-logo.png') ?>" />
        <meta property="og:image:type" content="image/png" />
        <meta property="og:image:width" content="500" />
        <meta property="og:image:height" content="500" />
        <meta property="og:image:alt" content="Imagem logo do Amazônia Cursos" />
        
        <!-- FIREFOX META TAGS -->
        <meta name="description" content="<?=  !empty($descricao)? $descricao : '' ?>" />
        <meta property="site_name" content="Amazônia Cursos" /> 
        <meta property="url" content="<?= base_url() ?>" />
        <meta property="image" content="<?= base_url('assets/img/amazonia-logo.png') ?>" />
        <meta property="image:secure_url" content="<?= base_url('assets/img/amazonia-logo.png') ?>" />
        <meta property="image:type" content="image/png" />
        <meta property="image:width" content="500" />
        <meta property="image:height" content="500" />
        <meta property="image:alt" content="Imagem logo do Amazônia Cursos" />
        <!-- FIREFOX META TAGS -->
        
        <meta name="keywords" content="cursos, cursos livres, cursos de graça, cursos gratuítos, cursos com certificado, certificado" />
        <meta name="author" content="Amazônia Cursos">
        <meta name="robots" content="">
        <meta name="language" content="Portuguese">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
        <link rel="icon" type="image/png" href="<?php echo base_url('assets/img/favicon.png'); ?>"/>
        <base href="<?= base_url() ?>" target="_self">
        <!-- Global site tag (gtag.js) - Google Ads: 1024701292 -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=AW-1024701292"></script>
        <!-- Google api -->
        
        
        <!-- Global site tag (gtag.js) - Google Ads: 1024701292 --> 
        <script async src="https://www.googletagmanager.com/gtag/js?id=AW-1024701292"></script> 
        <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-1024701292'); </script> 
        
    
        
        <?php if ($titulo !== 'Página Inicial') { ?>
        <script src="https://apis.google.com/js/api:client.js"></script>
        <?php } ?>
        <script src="https://apis.google.com/js/platform.js" async defer></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','https://www.google-analytics.com/analytics.js','ga');ga('create','UA-62753732-1','auto');ga('send','pageview')
        </script>
        <?php if ($titulo == 'Login' || $titulo == 'Cadastro') { ?>    
        <script>
            window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}
            gtag("js",new Date),gtag("config","AW-1024701292"),gapi.load("auth2",function(){auth2=gapi.auth2.init({})})
        </script>
        
        
        
        <?php } ?>
        <?php
        if ($this->uri->segment(1) == 'finalizarpedido') { ?>
        
            <!-- Event snippet for Amazônia Cursos conversion page --> 
            <script> 
                gtag('event', 'conversion', { 'send_to': 'AW-1024701292/5i8WCNSt2AEQ7ObO6AM', 'value': <?= $_SESSION['dados']['valor'] ?>, 'currency': 'BRL' }); 
            </script>       
        
            
         <?php } ?>
            
        <!-- Material Design -->
        <link href="<?php echo base_url('assets/css/materialize.min.css') ?>" rel='stylesheet'>
        <link href="<?php echo base_url('assets/css/style.css') ?>" rel='stylesheet'>
        <link href="<?php echo base_url('assets/css/custom.css') ?>" rel='stylesheet'>
        <?php if ($titulo !== 'Página Inicial') { ?>
            <style>
                .autocomplete-content{display:none}.g-signin2{display:none}.aux{display:none}.owl-nav i{font-size:30px}select{cursor:pointer}@media only screen and (max-width:768px){.btn-google-li{width:100%}.btn-facebook-li{width:100%!important}.btn-facebook{width:100%!important;margin-bottom:3%}.g-signin2{width:100%!important}}
            </style>    
        <?php } ?>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" ></script>
        <?php if ($titulo !== 'Página Inicial') { ?>
        <script>
            $(window).on("load", function(){
            function formatar(mascara,documento){var i=documento.value.length;var saida=mascara.substring(0,1);var texto=mascara.substring(i);if(texto.substring(0,1)!==saida){documento.value+=texto.substring(0,1)}}
            $(function(){var scre=$("body").width();if(scre>=768){var li=$('.youtube-card');$.fn.equalizeHeights=function(){var maxHeight=this.map(function(i,e){return $(e).height()}).get();return this.height(Math.max.apply(this,maxHeight))};$(li).equalizeHeights()}})
            });
        </script>
        <?php } ?>
        <!-- Facebook Pixel Code -->
        <script>
            !function (f, b, e, v, n, t, s)
            {
                if (f.fbq)
                    return;
                n = f.fbq = function () {
                    n.callMethod ?
                            n.callMethod.apply(n, arguments) : n.queue.push(arguments)
                };
                if (!f._fbq)
                    f._fbq = n;
                n.push = n;
                n.loaded = !0;
                n.version = '2.0';
                n.queue = [];
                t = b.createElement(e);
                t.async = !0;
                t.src = v;
                s = b.getElementsByTagName(e)[0];
                s.parentNode.insertBefore(t, s)
            }(window, document, 'script',
                    'https://connect.facebook.net/en_US/fbevents.js');
            fbq('init', '537204713124039');
            fbq('track', 'PageView');
<?php if ($titulo == 'Afinidade') { ?>
            fbq('track', 'Lead');
<?php } ?>
        </script>
        <noscript><img height="1" width="1" src="https://www.facebook.com/tr?id=537204713124039&ev=PageView&noscript=1"/></noscript>
    <!-- End Facebook Pixel Code --> 
    <?php if ($titulo === 'Página Inicial') { ?>    
    <!--Notificação Push-->
    <link rel="manifest" href="<?= base_url('Token/manifest.json') ?>">
    <script src="https://www.gstatic.com/firebasejs/5.8.2/firebase-app.js" /></script>
    <script>
    var scriptpath = '<?= base_url("Token") ?>' + "/";
    </script>
    <script src="<?= base_url('Token/firebase-messaging.js') ?>" ></script>
    <script>
    var url_envio = '<?= base_url("sendTokenToServer") ?>';
    </script>
    <script src="<?= base_url('Token/fcm.js') ?>"></script>
    <!--Notificação Push-->
    <?php } ?>
<?php if ($titulo == 'Login' || $titulo == 'Cadastro') { ?>    
    <script>
      setTimeout(function (){$('.g-signin2 div div span span:last').text("LOGIN COM GOOGLE");$('.g-signin2 div div span span:first').text("LOGIN COM GOOGLE");$(".g-signin2").css("display","block")},1000);
    </script>
<?php } ?>
    
<?php if ($titulo == 'Login' || $titulo == 'Cadastro') { ?>
    <script src="<?php echo base_url('assets/js/login.js') ?>" async defer></script> 
<?php } ?>
 <!-- Meta Pixel Code formacao facil -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1805112446629508');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1805112446629508&ev=PageView&noscript=1"
/></noscript>
<!-- End Meta Pixel Code -->  
</head>