2014-02-15 06:10:08 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="<%= SiteSetting.default_locale %>">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title><%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.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" %>
|
2015-01-14 18:52:42 +08:00
|
|
|
<%- unless customization_disabled? %>
|
|
|
|
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
|
|
|
|
<%- end %>
|
2015-02-02 16:49:58 +08:00
|
|
|
<%= render_google_universal_analytics_code %>
|
2014-03-15 22:32:23 +08:00
|
|
|
<%= yield :head %>
|
2015-01-15 17:31:30 +08:00
|
|
|
<style>
|
2015-01-15 18:20:38 +08:00
|
|
|
img { max-width: 100%; width: auto; height: auto; }
|
2015-01-15 17:31:30 +08:00
|
|
|
</style>
|
2014-02-15 06:10:08 +08:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<%- unless customization_disabled? %>
|
|
|
|
<%= SiteCustomization.custom_header(session[:preview_style]) %>
|
|
|
|
<%- end %>
|
2015-01-15 17:31:30 +08:00
|
|
|
<header>
|
2015-03-09 08:45:36 +08:00
|
|
|
<a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo"></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>
|
2015-04-16 10:40:54 +08:00
|
|
|
<%= link_to t('js.filters.categories.title'), main_app.categories_path %>
|
|
|
|
<%= link_to t('guidelines_topic.title'), main_app.guidelines_path %>
|
|
|
|
<%= link_to t('tos_topic.title'), main_app.tos_path %>
|
|
|
|
<%= link_to t('privacy_topic.title'), main_app.privacy_path %>
|
2015-02-13 19:34:22 +08:00
|
|
|
</nav>
|
2014-06-20 05:32:26 +08:00
|
|
|
<p><%= t 'powered_by_html' %></p>
|
|
|
|
</footer>
|
2015-02-02 16:49:58 +08:00
|
|
|
<%= render_google_analytics_code %>
|
|
|
|
<%- unless customization_disabled? %>
|
|
|
|
<%= raw SiteCustomization.custom_body_tag(session[:preview_style]) %>
|
|
|
|
<%- end %>
|
2014-02-15 06:10:08 +08:00
|
|
|
</body>
|
|
|
|
</html>
|