2014-02-15 06:10:08 +08:00
|
|
|
<!DOCTYPE html>
|
2018-08-20 19:55:58 +08:00
|
|
|
<html lang="<%= html_lang %>">
|
2014-02-15 06:10:08 +08:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2017-06-13 01:50:30 +08:00
|
|
|
<title><%= content_for?(:title) ? yield(:title) : SiteSetting.title %></title>
|
2014-06-20 06:17:52 +08:00
|
|
|
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
|
|
|
|
<%= render partial: "layouts/head" %>
|
2016-11-15 04:32:59 +08:00
|
|
|
<%- if rtl? %>
|
2018-03-19 09:15:58 +08:00
|
|
|
<%= discourse_stylesheet_link_tag(mobile_view? ? :mobile_rtl : :desktop_rtl) %>
|
2016-11-15 04:32:59 +08:00
|
|
|
<%- else %>
|
2018-03-19 09:15:58 +08:00
|
|
|
<%= discourse_stylesheet_link_tag(mobile_view? ? :mobile : :desktop) %>
|
|
|
|
<%- end %>
|
2018-08-08 12:46:34 +08:00
|
|
|
<%- if theme_ids.present? %>
|
2018-03-19 09:15:58 +08:00
|
|
|
<%= discourse_stylesheet_link_tag(mobile_view? ? :mobile_theme : :desktop_theme) %>
|
2015-01-14 18:52:42 +08:00
|
|
|
<%- end %>
|
2017-04-12 22:52:52 +08:00
|
|
|
<%= theme_lookup("head_tag") %>
|
2015-02-02 16:49:58 +08:00
|
|
|
<%= render_google_universal_analytics_code %>
|
2014-03-15 22:32:23 +08:00
|
|
|
<%= yield :head %>
|
2014-02-15 06:10:08 +08:00
|
|
|
</head>
|
2016-11-15 04:32:59 +08:00
|
|
|
<body class="crawler">
|
2017-04-12 22:52:52 +08:00
|
|
|
<%= theme_lookup("header") %>
|
2015-01-15 17:31:30 +08:00
|
|
|
<header>
|
2016-11-15 04:32:59 +08:00
|
|
|
<a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 150px;"></a>
|
2014-02-15 06:10:08 +08:00
|
|
|
</header>
|
2015-07-28 16:02:39 +08:00
|
|
|
<div id="main-outlet" class="wrap">
|
2014-02-15 06:10:08 +08:00
|
|
|
<%= yield %>
|
|
|
|
</div>
|
2014-11-12 21:35:20 +08:00
|
|
|
<footer class="container">
|
2015-02-13 19:34:22 +08:00
|
|
|
<nav itemscope itemtype='http://schema.org/SiteNavigationElement'>
|
2015-05-01 00:46:19 +08:00
|
|
|
<a href='<%= path "/" %>'><%= t 'home_title' %></a>
|
2016-01-21 19:43:56 +08:00
|
|
|
<%= link_to t('js.filters.categories.title'), path("/categories") %>
|
|
|
|
<%= link_to t('guidelines_topic.title'), path("/guidelines") %>
|
|
|
|
<%= link_to t('tos_topic.title'), path("/tos") %>
|
2016-01-22 04:55:07 +08:00
|
|
|
<%= link_to t('privacy_topic.title'), path("/privacy") %>
|
2015-02-13 19:34:22 +08:00
|
|
|
</nav>
|
2014-06-20 05:32:26 +08:00
|
|
|
<p><%= t 'powered_by_html' %></p>
|
|
|
|
</footer>
|
2017-04-12 22:52:52 +08:00
|
|
|
<%= theme_lookup("body_tag") %>
|
2014-02-15 06:10:08 +08:00
|
|
|
</body>
|
2016-08-01 13:06:55 +08:00
|
|
|
<%= yield :after_body %>
|
2014-02-15 06:10:08 +08:00
|
|
|
</html>
|