104 lines
4.3 KiB
Plaintext
104 lines
4.3 KiB
Plaintext
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" CodeBehind="App.master.cs" %>
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<asp:ContentPlaceHolder id="init" runat="server">
|
|
</asp:ContentPlaceHolder>
|
|
<% ViewState["orgtitle"] = Html.Translate(Page.Title);
|
|
Page.Title = ViewState["orgtitle"] + " - " + YavscHelpers.SiteName;
|
|
%><head runat="server">
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="stylesheet" href="<%=Url.Content("~/App_Themes/style.css")%>" />
|
|
<link rel="stylesheet" href="<%=Url.Content("~/App_Themes/font-awesome.css")%>" />
|
|
<link rel="stylesheet" href="<%=Url.Content("~/App_Themes/jquery-ui.css")%>" />
|
|
<link rel="icon" type="image/png" href="/favicon.png?v=3" />
|
|
<script src="<%=Url.Content("~/Scripts/jquery-2.1.4.min.js")%>"></script>
|
|
<script src="<%=Url.Content("~/Scripts/jquery-ui-1.11.4.js")%>"></script>
|
|
<script src="<%=Url.Content("~/Scripts/parralax.js")%>"></script>
|
|
<script type="text/javascript">
|
|
var apiBaseUrl = '<%=Url.Content(Yavsc.WebApiConfig.UrlPrefixRelative)%>';
|
|
</script>
|
|
<script src="<%=Url.Content("~/Scripts/yavsc.js")%>">
|
|
|
|
</script>
|
|
<asp:ContentPlaceHolder id="head" runat="server">
|
|
</asp:ContentPlaceHolder>
|
|
</head>
|
|
<body>
|
|
<header data-type="background" data-speed="8" >
|
|
<asp:ContentPlaceHolder ID="overHeaderOne" runat="server">
|
|
<h1><a href="<%= Url.Content("~/") %>">
|
|
<%=ViewState["orgtitle"]%></a>
|
|
- <a href="<%= Url.Content("~/") %>"><%= YavscHelpers.SiteName %></a>
|
|
</h1>
|
|
</asp:ContentPlaceHolder>
|
|
<asp:ContentPlaceHolder ID="header" runat="server"></asp:ContentPlaceHolder>
|
|
<div id="notifications"></div>
|
|
<script>
|
|
$(document).ready(function(){
|
|
<%if (ViewData ["Notifications"]!=null) { %>
|
|
<% foreach (string notice in (IEnumerable<string>) ViewData ["Notifications"] ) { %>
|
|
Yavsc.notice('<%=notice%>');
|
|
<% } %>
|
|
<% } %>
|
|
$body = $("body");
|
|
$(document).on({
|
|
ajaxStart: function() { $body.addClass("loading"); },
|
|
ajaxStop: function() { $body.removeClass("loading"); }
|
|
});
|
|
});
|
|
</script>
|
|
</header>
|
|
<nav data-type="background" data-speed="2">
|
|
<% if (Membership.GetUser()==null) { %>
|
|
|
|
<a href="<%= Url.RouteUrl("Default", new { controller = "Account", action = "Login", returnUrl=Request.Url.PathAndQuery}) %>" class="menuitem" accesskey = "C">
|
|
<i class="fa fa-sign-in">Connexion</i>
|
|
</a>
|
|
<% } else { %>
|
|
<a href="<%=Url.RouteUrl("Blogs", new { user = HttpContext.Current.User.Identity.Name } )%>" accesskey = "B" class="menuitem" >
|
|
<img src="<%=Url.AvatarUrl(HttpContext.Current.User.Identity.Name)%>" alt="vos billets" class="iconsmall" />
|
|
<span class="hint">Vos billets</span>
|
|
</a>
|
|
<a href="<%= Url.RouteUrl("Default", new { controller = "Account", action = "Profile", id = HttpContext.Current.User.Identity.Name} ) %>" accesskey="P" class="menuitem">
|
|
<i class="fa fa-user"><%= HttpContext.Current.User.Identity.Name %>
|
|
<span class="hint"> Édition de votre profile </span></i>
|
|
</a>
|
|
<a href="/Blogs/Post" accesskey="P" class="menuitem">
|
|
<i class="fa fa-pencil"><u>P</u>oster
|
|
<span class="hint">Édition d'un nouveau billet </span></i>
|
|
</a>
|
|
|
|
<a href="<%= Url.RouteUrl("Default", new { controller = "Account", action = "Logout", returnUrl=Request.Url.PathAndQuery}) %>" accesskey = "C" class="menuitem">
|
|
<i class="fa fa-sign-out">Deconnexion</i></a>
|
|
<% } %>
|
|
</nav>
|
|
<main data-type="background" data-speed="10" data-emheight="10" data-posx="0" data-posy="22" >
|
|
<asp:ContentPlaceHolder ID="MainContent" runat="server">
|
|
</asp:ContentPlaceHolder>
|
|
</main>
|
|
<asp:ContentPlaceHolder ID="MASContent" runat="server">
|
|
</asp:ContentPlaceHolder>
|
|
<footer data-type="background" data-speed="2" >
|
|
<div id="copyr">
|
|
© 2012 Totem Production. Tous droits réservés.
|
|
</div>
|
|
<div >
|
|
<p class="control">
|
|
<%= Html.ActionLink("Formulaire de contact","Contact","Home") %>
|
|
</p>
|
|
<p>
|
|
<a href="https://fr-fr.facebook.com/Brahms.Totem.officiel" ><img src="/images/facebook.png" alt="facebook"/></a>
|
|
<a href="http://twitter.com/TotemOfficiel"><img src="/images/twiter.png" alt="twiter"/></a>
|
|
</p>
|
|
<script src="https://apis.google.com/js/platform.js" defer>
|
|
{lang: 'fr'}
|
|
</script>
|
|
<div id="gspacer" class="control"><div class="g-plusone" data-annotation="inline" data-width="170"></div>
|
|
</div>
|
|
</div>
|
|
</footer><div class="modal"></div>
|
|
</body>
|
|
</html>
|