forked from cakephp/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.html
225 lines (203 loc) · 7.81 KB
/
layout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{% extends 'default/layout.html' -%}
{%- block doctype %}
<!DOCTYPE html>
{% endblock -%}
{% block extrahead %}
<link href="{{ pathto('_static/favicon.ico', 1) }}" type="image/x-icon" rel="icon" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{% for lang in languages %}
{%- if lang != language -%}
{%- if has_lang(lang, pagename) -%}
<link rel="alternate" hreflang="{{ lang }}" href="{{ lang_link(lang, pagename) }}" />
{%- endif -%}
{%- endif -%}
{% endfor %}
<link rel="search" type="application/opensearchdescription+xml" title="CakePHP Book 2.x Search" href="{{ pathto('_static/opensearchdescription-book-2-x.xml', 1) }}">
<script type="text/javascript">
window.lang = "{{ language }}";
</script>
{% endblock %}
{%- set script_files = script_files + ["_static/app.js", "_static/modernizr.foundation.js", "_static/foundation.js"] -%}
{# Use the header block to insert the CSF navbar #}
{%- block header %}
{# Outer wrapper for pushing the footer to the bottom #}
<div id="container">
<div id="cakephp-global-navigation">
<ul>
<li class="main"><a href="http://cakephp.org">CakePHP</a></li>
<li class="primary"><a href="#" class="empty">Downloads</a>
<ul class="second-level">
<li><a href="https://github.com/cakephp/cakephp/tags">Releases</a></li>
<li><a href="http://pear.cakephp.org">Pear channel</a></li>
</ul>
</li>
<li class="primary"><a href="#" class="empty">Documentation</a>
<ul class="second-level">
<li><a href="http://api.cakephp.org">API</a></li>
<li><a href="http://book.cakephp.org">Book</a></li>
</ul>
</li>
<li class="primary"><a href="http://community.cakephp.org">Community</a>
<ul class="second-level">
<li><a href="http://webchat.freenode.net/?channels=cakephp&uio=MT1mYWxzZSY5PXRydWUmMTE9MjQ2b8">Help & Support</a></li>
<li><a href="https://github.com/cakephp/cakephp/issues">Issues</a></li>
<li><a href="http://bakery.cakephp.org">The Bakery</a></li>
<li><a href="http://stackoverflow.com/tags/cakephp">Stack Overflow</a></li>
<li><a href="http://www.facebook.com/groups/cake.community">Facebook Group</a></li>
<li><a href="http://goo.gl/mSC0s">Google+ Community</a></li>
<li><a href="http://www.youtube.com/user/CakePHP">YouTube Channel</a></li>
<li><a href="http://podcast.cakephp.org">CakePHP Podcast</a></li>
<li><a href="http://twitter.com/CakePHP">Follow us on Twitter</a></li>
<li><a href="http://groups.google.com/group/cake-php">Google Group</a></li>
<li><a href="http://github.com/cakephp/cakephp/contributors">Contributors</a></li>
<li><a href="http://plugins.cakephp.org">Plugins & Packages</a></li>
<li><a href="http://community.cakephp.org/get-involved">Get Involved</a></li>
<li><a href="http://community.cakephp.org/guidelines">Guidelines</a></li>
<li><a href="http://cakefest.org">CakeFest</a></li>
<li><a href="http://cakephp.org/logos">Logo</a></li>
</ul>
</li>
<li class="primary"><a href="http://cakephp.org/services">Services</a>
<ul class="second-level">
<li><a href="http://cakephp.org/services/certification">Certification</a></li>
<li><a href="http://cakephp.org/services/consultation">Consultation</a></li>
<li><a href="http://cakephp.org/services/support">Support</a></li>
<li><a href="http://training.cakephp.org">Training</a></li>
</ul>
</li>
</ul>
</div>
{% endblock -%}
{%- block relbar1 %}
<div class="masthead">
<div class="header-backing"></div>
<div class="searchbar row">
<div class="columns three phone-one">
<a class="logo" href="{{ pathto(master_doc) }}">
<img src="{{ pathto('_static/cake-logo.png', 1) }}" alt="CakePHP" width="70" />
</a>
</div>
{% include 'searchbox.html' %}
</div>
</div>
<div class="breadcrumb-header">
<div class="related row">
<div class="columns three root-link">
<a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>
</div>
<div class="columns nine">
<ul class="inline breadcrumb">
{%- for parent in parents %}
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %} itemprop="url"><span itemprop="title">{{ parent.title }}</span></a>
</li>
{%- endfor %}
</ul>
<div class="versions dropdown">
<a href="#">2.x Book</a>
<ul>
<li><a href="http://book.cakephp.org/3.0/en">3.0 Book</a></li>
<li><a href="http://book.cakephp.org/1.3/{{ language }}/">1.3 Book</a></li>
<li><a href="http://book.cakephp.org/1.2/{{ language }}/">1.2 Book</a></li>
<li><a href="http://book.cakephp.org/1.1/en">1.1 Book</a></li>
</ul>
</div>
<div class="languages dropdown">
{% for lang in languages %}
{%- if lang == language -%}
<a href="#">{{ lang }}</a>
{%- endif -%}
{% endfor %}
<ul>
{% for lang in languages %}
<li>
{%- if lang == language -%}
{# Do nothing, we print the active one above #}
{%- elif has_lang(lang, pagename) -%}
<a href="{{ lang_link(lang, pagename) }}">{{ lang }}</a>
{%- else -%}
<span class="disabled">{{ lang }}</span>
{%- endif -%}
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</div>
{% endblock -%}
{%- block content %}
<div class="content row">
<div class="document columns nine push-three">
<div class="body">
{%- if pagename != 'search' -%}
<a class="button pale improve" href="https://github.com/cakephp/docs/edit/{{ branch }}/{{ lang_dir(language) }}/{{ pagename }}.rst" target="_blank">Improve this Doc</a>
{%- endif -%}
{% block body %} {% endblock %}
</div>
</div>
<div class="sidebar columns three pull-nine">
{%- for sidebartemplate in sidebars %}
{%- include sidebartemplate %}
{%- endfor %}
</div>
</div>
<div class="content row">
<ul class="related-pages inline">
{%- for rellink in rellinks %}
<li>
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}" {{ accesskey(rellink[2]) }}>
{{- rellink[3] -}}
</a>
</li>
{%- endfor %}
</ul>
</div>
<div class="footer-push"> </div>
</div>
{# End of div[id=wrapper] #}
{% endblock -%}
{%- block relbar2 %}
{# Empty so links aren't duplicated #}
{% endblock %}
{%- block footer %}
{# Push the footer down to the bottom of the page #}
<div class="footer">
<div class="row">
<div class="columns six offset-by-three contribute">
<strong>Found an issue?</strong>
Submit a correction on <a href="https://github.com/cakephp/docs">GitHub</a><br />
<a href="http://book.cakephp.org/2.0/en/contributing/documentation.html">[ documentation on how to contribute ]</a>
</div>
</div>
<div class="row">
<div class="columns nine offset-by-three copyright">
{%- if show_copyright %}
{%- if hasdoc('copyright') %}
{% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
{%- else %}
{% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}
{%- endif %}
{%- endif %}
{%- if last_updated %}
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
{%- endif %}
{%- if show_sphinx %}
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
{%- endif %}
</div>
</div>
</div>
<div id="nav-modal" class="reveal-modal"> </div>
<div id="inline-search-results"></div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-743287-3']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{%- endblock %}