summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/_themes/eldocs/layout.html
blob: 4e083a1d3074bf7319c4fabdbaa0ec3fe5bee013 (plain)
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
{%- block doctype -%}
<!DOCTYPE html>
{%- endblock %}
{%- set reldelim1 = reldelim1 is not defined and ' &rsaquo;' or reldelim1 %}
{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
{%- set url_root = pathto('', 1) %}
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
{% set project_abbreviation = 'ee' %}{% set project_domain = 'expressionengine.com' %}
{%- if project == 'ExpressionEngine' %}{% set project_abbreviation = 'ee' %}{% set project_domain = 'expressionengine.com' %}{% endif -%}
{%- if project == 'CodeIgniter' %}{% set project_abbreviation = 'ci' %}{% set project_domain = 'codeigniter.com' %}{% endif -%}
{%- if project == 'MojoMotor' %}{% set project_abbreviation = 'mm' %}{% set project_domain = 'mojomotor.com' %}{% endif -%}

<html>
	<head>
		<meta charset="{{ encoding }}">
	    {{ metatags }}
	    {%- if not embedded and docstitle %}
	      {%- set titlesuffix = " &mdash; "|safe + docstitle|e %}
	    {%- else %}
	      {%- set titlesuffix = "" %}
	    {%- endif %}
	    {%- block htmltitle %}
	    <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
	    {%- endblock %}

	    <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
	    <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
	    {%- for cssfile in css_files %}
	    <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
	    {%- endfor %}
	
    {%- if not embedded %}
	    <script type="text/javascript">
	      var DOCUMENTATION_OPTIONS = {
	        URL_ROOT:    '{{ url_root }}',
	        VERSION:     '{{ release|e }}',
	        COLLAPSE_INDEX: false,
	        FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
	        HAS_SOURCE:  {{ has_source|lower }}
	      };
	    </script>
	    {%- for scriptfile in script_files %}
	    <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
	    {%- endfor %}

	    {%- if favicon %}
	    <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
	    {%- endif %}
	{%- endif %}
	
	{%- block linktags %}
	    {%- if hasdoc('about') %}
	    <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
	    {%- endif %}
	    {%- if hasdoc('genindex') %}
	    <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
	    {%- endif %}
	    {%- if hasdoc('search') %}
	    <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
	    {%- endif %}
	    {%- if hasdoc('copyright') %}
	    <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
	    {%- endif %}
	    <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
	    {%- if parents %}
	    <link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}" />
	    {%- endif %}
	    {%- if next %}
	    <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" />
	    {%- endif %}
	    {%- if prev %}
	    <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" />
	    {%- endif %}
	{%- endblock %}
		{%- block extrahead %} {% endblock %}
	</head>
	<body>
	{%- block content %}
		<div id="table-contents">
			<div class="toctree-wrapper compound">
			{{ toctree(collapse=true) }}
			</div>
		</div>

		<div id="brand" class="{{ project_abbreviation }}">
			<a href="http://{{ project_domain }}/"><img src="{{ pathto('_static/asset/img/' + project_abbreviation + '-logo.gif', 1) }}" alt="{{ project }}"></a>
			<p>{{ version }} User Guide</p>
			{%- if show_source and has_source and sourcename %}
		    <p><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
			           rel="nofollow">{{ _('Show Source') }}</a></p>
			{%- endif %}
		</div><!-- /#brand -->

		<div id="header">
			<form method="get" action="http://www.google.com/search">
				<fieldset>
					<input type="text" name="q" id="q" value="">
					<input type="hidden" name="as_sitesearch" id="as_sitesearch" value="{{ project_domain }}/user_guide/" />
					<input class="grades" type="submit" value="search">
				</fieldset>
			</form>
			<ul>
				{%- block rootrellink %}
				<li><a href="{{ pathto(master_doc) }}">Home</a>&nbsp;&nbsp;{{ reldelim1 }}</li>
				<li><a id="toc-link" href="{{ pathto(master_doc) }}">Table of Contents</a>&nbsp;&nbsp;{{ reldelim1 }}</li>
				{%- endblock %}
				
				{%- for parent in parents %}
				<li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>&nbsp;&nbsp; {{ reldelim1 }}</li>
		        {%- endfor %}

				<li><strong>{{ title }}</strong></li>
			</ul>
		</div><!-- /#header -->

		<div class="section" id="content">
			{{ body }}
		</div>
	{%- endblock %}

		{% if pagename not in exclude_comments -%}
		<!-- {user_guide_comments} -->
		{% endif %}
	
	{%- block footer %}			
		<div id="footer">
			<p class="top"><a href="#header" title="Return to top">Return to top</a></p>
			<p><a href="{{ project_url }}">{{ project }}</a> &ndash; Copyright &copy; {{ copyright }}</a></p>
		</div><!-- /#footer -->
	{%- endblock %}
	
	<script src="{{ pathto('_static/asset/js/jquery-ui-min.js', 1) }}" type="text/javascript" charset="utf-8" async></script>
	<script type="text/javascript" charset="utf-8">
		$('#toc-link').click(function(){
			$('#table-contents').animate({ left: '0' },1000);
			return false;
		});
		$('html').click(function(){
			if ($('#table-contents').css("left") == '0px'){
				$('#table-contents').animate({ left: '-520' },1000);
			}
		});
		$('#table-contents').click(function(event){
			event.stopPropagation();
		});
/*		$('*:not(#table-contents,#toc-link)').click(function(){
			if ($('#table-contents').css("left") == '0px'){
				$('#table-contents').animate({ left: '-520' },1000);
			}
		});
/*		$("#toc-link").click(function () {
			$('#table-contents').show("slide", { direction: "left" }, 100);
			event.stopPropagation();
			return false;
		});
		$('*:not(#table-contents,#toc-link)').click(function () {
			if ($('#table-contents').is(":visible")) {
				$('#table-contents').hide("slide", { direction: "left" }, 100);
				event.stopPropagation();	
			}
		}); */
	</script>
	</body>
</html>