|
1 |
| -<%@ Master Language="C#" AutoEventWireup="true" Inherits="StandardSite" CodeBehind="site.master.cs" %> |
| 1 | +<%@ Master Language="C#" AutoEventWireup="true" %> |
2 | 2 | <%@ Import Namespace="BlogEngine.Core" %>
|
3 |
| -<%@ Import Namespace="System.Linq" %> |
| 3 | +<% |
| 4 | + Page.Header.DataBind(); |
| 5 | + |
| 6 | + //TO fix the bug related TO Perisan Culture |
| 7 | + if (System.Threading.Thread.CurrentThread.CurrentCulture.LCID == 1065) |
| 8 | + System.Threading.Thread.CurrentThread.CurrentCulture = new PersianCulture(); |
| 9 | + // for supported of RTL languages |
| 10 | + if (Resources.labels.LangDirection.Equals("rtl", StringComparison.OrdinalIgnoreCase)) |
| 11 | + { |
| 12 | + var lc = new LiteralControl("<link href=\"" + Utils.RelativeWebRoot + "Custom/Themes/Standard/css/rtl.css\" rel=\"stylesheet\" />"); |
| 13 | + HeadContent.Controls.Add(lc); |
| 14 | + } |
| 15 | + |
| 16 | + if (Security.IsAuthenticated) |
| 17 | + { |
| 18 | + aLogin.InnerText = Resources.labels.logoff; |
| 19 | + aLogin.HRef = Utils.RelativeWebRoot + "Account/login.aspx?logoff"; |
| 20 | + } |
| 21 | + else |
| 22 | + { |
| 23 | + aLogin.HRef = Utils.RelativeWebRoot + "Account/login.aspx"; |
| 24 | + aLogin.InnerText = Resources.labels.login; |
| 25 | + } |
| 26 | +%> |
4 | 27 | <!DOCTYPE html>
|
5 | 28 | <html lang="en">
|
6 | 29 | <head runat="server">
|
|
10 | 33 | <link rel="shortcut icon" href="~/Content/images/blog/blogengine.ico" type="image/x-icon" />
|
11 | 34 | <link href="~/scripts/syntaxhighlighter/styles/shCore.css" rel="stylesheet" type="text/css" />
|
12 | 35 | <link href="~/scripts/syntaxhighlighter/styles/shThemeDefault.css" rel="stylesheet" type="text/css" />
|
13 |
| - <script type="text/javascript" src="<%# ShRoot %>scripts/XRegExp.js"></script> |
14 |
| - <script type="text/javascript" src="<%# ShRoot %>scripts/shCore.js"></script> |
15 |
| - <script type="text/javascript" src="<%# ShRoot %>scripts/shAutoloader.js"></script> |
16 |
| - <script type="text/javascript" src="<%# ShRoot %>shActivator.js"></script> |
| 36 | + <script type="text/javascript" src="<%# Utils.ApplicationRelativeWebRoot %>scripts/syntaxhighlighter/scripts/XRegExp.js"></script> |
| 37 | + <script type="text/javascript" src="<%# Utils.ApplicationRelativeWebRoot %>scripts/syntaxhighlighter/scripts/shCore.js"></script> |
| 38 | + <script type="text/javascript" src="<%# Utils.ApplicationRelativeWebRoot %>scripts/syntaxhighlighter/scripts/shAutoloader.js"></script> |
| 39 | + <script type="text/javascript" src="<%# Utils.ApplicationRelativeWebRoot %>scripts/syntaxhighlighter/shActivator.js"></script> |
17 | 40 | <asp:ContentPlaceHolder ID="HeadContent" runat="server"></asp:ContentPlaceHolder>
|
18 | 41 | </head>
|
19 | 42 | <body class="<%=Resources.labels.LangDirection %>">
|
|
0 commit comments