@using Valorizza.PortalIntegrar.RH.Login
@using Valorizza.Web.Common
@using Site.Models

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.NomeSite - @ViewBag.Title</title>

    <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,500,700' rel='stylesheet' type='text/css'>
    <meta name="google-site-verification" content="BLK56ZNG2ySvm0Dc4ND9a_uPKApMY0oCMONioqAx1Jc" />
    @Html.Partial("PartialTags", (RedeSocialModel)ViewBag.RedeSocialModel)
    <meta name="author" content="Valorizza" />
    <meta name="company" content="Valorizza - Soluções Web e Mobile" />
    @RenderSection("header", false)

    <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', '//www.google-analytics.com/analytics.js', 'ga');

        ga('create', '@ParametersHelper.BuscaParametro("ChaveGoogleAnalitics")', 'auto');
        ga('send', 'pageview');
    </script>

    <script type="text/javascript">var ROOT_URL = '@Href("~/")';</script>

    @Styles.Render("~/Content/css")
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    <div class="header-container" style="@(WebSecurityWrapper.CurrentUserIsAuthenticated ? "height: 112px;" : string.Empty)">
        <div class="conteudo-site">
            @if (WebSecurityWrapper.CurrentUserIsAuthenticated)
            {
                <div class="usuario-autenticado">
                    <span>Seja bem-vindo Sr.(a) @LoginSessionWrapper.UsuarioAtual.Nome</span>
                    <a href="@Href("~/LogoutHandler.ashx")">Sair</a>
                </div>
            }
            <div class="header-content">
                @if (Request.Url.AbsolutePath.Contains("/Home") || Request.Url.AbsolutePath.Equals("/"))
                {
                    <h1><a class="logo" href="~/Home"><span class="sr-only">@ViewBag.NomeSite</span></a></h1>
                }
                else
                {
                    <a class="logo" href="~/Home"><span class="sr-only">@ViewBag.NomeSite</span></a>
                }
                <ul>
                    <li><a @(Request.Url.AbsolutePath.Contains("/Home") || Request.Url.AbsolutePath.Equals("/") ? "class = active" : "") href="@Href("~/Home")">Home</a></li>
                    <li><a @(Request.Url.AbsolutePath.Contains("/Institucional") ? "class = active" : "") href="@Href("~/Institucional")">Institucional</a></li>
                    <li><a @(Request.Url.AbsolutePath.Contains("/Servicos") ? "class = active" : "") href="@Href("~/Servicos")">Serviços</a></li>
                    <li><a @(Request.Url.AbsolutePath.Contains("/Vagas") ? "class = active" : "") href="@Href("~/Vagas/Listagem/" + Site.Properties.Settings.Default.ClassificacaoCargoAdministrativo)">Vagas</a></li>
                    <li><a @(Request.Url.AbsolutePath.Contains("/Contato") ? "class = active" : "") href="@Href("~/Contato")">Contato</a></li>

                    @if (!WebSecurityWrapper.CurrentUserIsAuthenticated)
                    {
                        <li><a href="@string.Format("{0}loginempresa.aspx", ParametersHelper.PortalBaseHost)" class="auth-link">Acesso Empresa</a></li>
                        <li><a href="@string.Format("{0}logincandidato.aspx", ParametersHelper.PortalBaseHost)" class="auth-link">Acesso Candidato</a></li>
                    }
                    else
                    {
                        <li><a href="~/AcessoHandler.ashx" style="margin-left:80px;margin-right:80px;" class="auth-link">@((LoginSessionWrapper.UsuarioAtual.TipoUsuario == TipoUsuario.Cliente) ? "Minhas Vagas" : "Meu Currículo")</a></li>
                    }
                </ul>

                <div class="redes-sociais-header">
                    <a href="@ViewBag.FacebookLink" target="_blank"><span class="sr-only">Acessar Facebook da Concisa Gestão de Pessoas</span></a>
                    <a href="@ViewBag.LinkedinLink" target="_blank"><span class="sr-only">Acessar LinkedIn da Concisa Gestão de Pessoas</span></a>
                </div>

                <div class="header-overflow overflow-right">
                </div>

                <div class="header-overflow overflow-left">
                </div>
            </div>
        </div>
    </div>

    @RenderBody()
    <div class="receba-vagas oculto">
        <div class="cabecalho">
            @ViewBag.CadastroInteresseAssunto
            <a id="cabecalho-click" data-status="false"><span class="sr-only">Expandir formulário para receber novidades sobre vagas</span></a>
        </div>
        <div id="conteudo-vaga" class="conteudo-vaga">
            @Html.Action("Inscricao", "Interesse")
        </div>
    </div>

    <div class="receba-vagas-reduzido oculto">
        <span></span>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/Scripts/jquery.mask.min.js")
    @Scripts.Render("~/bundles/scripts")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("Scripts", required: false)
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
</body>
</html>
