<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>

<%@ Import Namespace="Umbraco.Web" %>
<%@ Import Namespace="Umbraco.Web.Security" %>
<%@ Register TagPrefix="CD" Namespace="ClientDependency.Core.Controls" Assembly="ClientDependency.Core" %>
<%@ Register TagPrefix="CD" Namespace="OurUmbraco.Our" Assembly="OurUmbraco" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <!doctype html>
    <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
    <!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
    <!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
    <!--[if gt IE 8]><!-->
    <html class="no-js" lang="en">
    <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

        <link rel="alternate" type="application/rss+xml" title="Latest packages" href="//our.umbraco.org/rss/projects" />
        <link rel="alternate" type="application/rss+xml" title="Package updates" href="//our.umbraco.org/rss/projectsupdate" />
        <link rel="alternate" type="application/rss+xml" title="Active forum topics" href="//our.umbraco.org/rss/activetopics" />
        <link rel="alternate" type="application/rss+xml" title="Community blogs" href="//pipes.yahoo.com/pipes/pipe.run?_id=8llM7pvk3RGFfPy4pgt1Yg&_render=rss" />

        <link rel="search" type="application/opensearchdescription+xml" title="our.umbraco.org" href="/scripts/OpenSearch.xml">


        <!-- Application name -->
        <meta name="application-name" content="Our Umbraco" />
        <meta name="apple-mobile-web-app-title" content="Our Umbraco">

        <!-- Icons -->
        <link rel="apple-touch-icon-precomposed" href="/assets/images/app-icons/icon-60.png">
        <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/assets/images/app-icons/icon-72.png">
        <link rel="apple-touch-icon-precomposed" sizes="76x76" href="/assets/images/app-icons/icon-76.png">
        <link rel="icon" sizes="192x192" href="/assets/images/app-icons/touch-icon-192x192.png">

        <meta name="msapplication-TileImage" content="/assets/images/app-icons/tile.png" />
        <meta name="msapplication-config" content="/assets/images/app-icons/browserconfig.xml">

        <link rel="icon" type="image/png" href="/assets/images/app-icons/favicon.png">

        <title>
            <umbraco:Macro Alias="Title" runat="server"></umbraco:Macro>
        </title>
        <meta name="description" content="">
        <meta name="author" content="">
        
        <CD:HackedCdfLoader runat="server" ID="Loader" />
        <CD:HtmlInclude runat="server">
            <link rel="stylesheet" type="text/css" href="/assets/css/style.min.css" />
        </CD:HtmlInclude>
        <link href="https://fonts.googleapis.com/css?family=Asap:400,700,400italic,700italic" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css" />

        <asp:PlaceHolder runat="server" ID="CssPlaceHolder"></asp:PlaceHolder>


        <!--[if lt IE 9]>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.7.1/modernizr.min.js"></script>
        <![endif]-->
        <script type="text/javascript" src="https://code.jquery.com/jquery-1.7.2.min.js"></script>

        <umbraco:Macro Alias="MembersJsValues" runat="server" />


        <asp:ContentPlaceHolder ID="Head" runat="server"></asp:ContentPlaceHolder>

        <script>
            var _prum = [['id', '529dbcf6abe53d055a000000'],
            ['mark', 'firstbyte', (new Date()).getTime()]];
            (function () {
                var s = document.getElementsByTagName('script')[0]
                    , p = document.createElement('script');
                p.async = 'async';
                p.src = '//rum-static.pingdom.net/prum.min.js';
                s.parentNode.insertBefore(p, s);
            })();
        </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', '//www.google-analytics.com/analytics.js', 'ga');

            ga('create', 'UA-120590-4', 'auto');
            ga('send', 'pageview');
        </script>

    </head>

    <%
        var model = UmbracoContext.Current.PublishedContentRequest.PublishedContent;
        var bodyCss =
            model.Level > 2 && model.AncestorOrSelf(3).Id == 1057
            ? "profile has-sidebar"
            : model.DocumentTypeAlias.ToLower().Replace(" ", "-") + "-page";
    %>

    <body class="<%= bodyCss %>">
        <form runat="server">

            <umbraco:Macro Alias="MembersQuickMenu" runat="server"></umbraco:Macro>

            <div class="wrapper">

                <header>

                    <div class="navigation">

                        <div class="container">
                            <div class="row">

                                <div class="col-md-3">
                                    <a class="logo" href="/">Our Umbraco</a>
                                </div>

                                <div id="toggle" class="menu-toggle">
                                    <a href="#" class="toggle cross"><span></span></a>
                                </div>

                                <nav class="col-md-9">
                                    <umbraco:Macro Alias="NavigationTopNavigation" runat="server" />
                                </nav>

                            </div>
                        </div>

                    </div>

                </header>

                <%  
                    var ms = new MembershipHelper(UmbracoContext.Current);
                    var member = ms.GetCurrentMember();
                    var memberIsBlocked = false;
                    if (member != null)
                    {
                        memberIsBlocked = member.GetPropertyValue<bool>("blocked");
                    }
                    if (memberIsBlocked == false)
                    {
                %>
                <umbraco:Macro Alias="GlobalAlertBar" runat="server"></umbraco:Macro>

                <asp:ContentPlaceHolder ID="Search" runat="server" />

                <asp:ContentPlaceHolder ID="Main" runat="server" />
                <% }
                    else
                    { %>
                <section class="forum">
                    <div class="container">
                        <div class="row">
                            <div class="col-md-12">
                                <h1 class="text-center">Computer says no</h1>
                                <p>Unfortunaly, it seems that your account has been blocked.</p>
                            </div>
                        </div>
                    </div>
                </section>
                <% } %>

                <footer>
                    <div class="container">
                        <div class="row">

                            <div class="col-xs-12">
                                Our.umbraco.org is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community.
                                <% if (Request.UserAgent.ToLower().Contains("googlebot"))
                                   { %>
                                    This site is running Umbraco.
                                <% }
                                   else
                                   { %>
                                    This site is running
                                <data id="umbraco-version" value='<%= Umbraco.Core.Configuration.UmbracoVersion.GetSemanticVersion() %>'>Umbraco version <%= Umbraco.Core.Configuration.UmbracoVersion.GetSemanticVersion() %></data>
                                <% } %>
                            </div>

                        </div>
                    </div>
                </footer>

            </div>
            <!--.wrapper-->
            
            <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.13.1/jquery.validate.min.js"></script>
            <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/mvc/4.0/jquery.validate.unobtrusive.min.js"></script>
            <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pagedown/1.0/Markdown.Converter.js"> </script>
            <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pagedown/1.0/Markdown.Editor.js"> </script>
            <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pagedown/1.0/Markdown.Sanitizer.js"> </script>
            <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/0.8.1/mustache.min.js"> </script>
            <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js"></script>

            <CD:HtmlInclude runat="server">
                <script type="text/javascript" src="/assets/js/jquery.ajaxfileupload.js"></script>

                <script type="text/javascript" src="/assets/js/jquery.scrolly.js"></script>
                <script type="text/javascript" src="/assets/js/lodash.min.js"></script>
                <script type="text/javascript" src="/assets/js/community.js"></script>
                <script type="text/javascript" src="/assets/js/app.min.js"></script>
                <script type="text/javascript" src="/assets/js/editor.min.js"></script>                
            </CD:HtmlInclude>

            <asp:PlaceHolder runat="server" ID="JavaScriptPlaceHolder"></asp:PlaceHolder>

            <script type="text/javascript">
                classOnScroll('header', 'sticky', 10);
            </script>


            <asp:ContentPlaceHolder ID="EndScripts" runat="server" />
        </form>
    </body>
    </html>
</asp:Content>
