layout.html 21.5 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{%- block doctype -%}
<!DOCTYPE html>
{%- endblock %}
{%- set reldelim1 = reldelim1 is not defined and ' &raquo;' or reldelim1 %}
{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
{%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool) and
(sidebars != []) %}
{%- set url_root = pathto('', 1) %}
{# XXX necessary? #}
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
{%- if not embedded and docstitle %}
{%- set titlesuffix = " &mdash; "|safe + docstitle|e %}
{%- else %}
{%- set titlesuffix = "" %}
Glenn Walbran's avatar
Glenn Walbran committed
15
16
{%- endif %}

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{%- if theme_bootstrap_version == "3" %}
  {%- set bs_span_prefix = "col-md-" %}
  {%- set class_device_xs= "xs" %}
  {%- set class_device_sm= "sm" %}
  {%- set class_device_md= "md" %}
  {%- set class_row = "row" %}
{%- else %}
  {%- set bs_span_prefix = "span" %}
  {%- set class_device_xs= "phone" %}
  {%- set class_device_sm= "tablet" %}
  {%- set class_device_md= "desktop" %}
  {%- if (not theme_row_fixed|tobool) %}
    {%- set class_row = "row-fluid" %}
  {%- else %}
    {%- set class_row = "row" %}
  {%- endif %}
{%- endif %}
Glenn Walbran's avatar
Glenn Walbran committed
34
35
36
37

{%- macro relbar() %}
<div id="navbar-related" class=" related navbar {% if (theme_relbar_inverse|tobool) %}navbar-inverse{% else %}navbar-default{% endif %}" role="navigation" aria-label="related navigation">
  <div class="navbar-inner">
38
    <ul class="nav navbar-nav {% if theme_noresponsiverelbar|tobool %}text-center{% endif %} navbar-left-link">
Glenn Walbran's avatar
Glenn Walbran committed
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
        <li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></li>
    </ul>
<ul class="nav navbar-nav {% if not theme_noresponsiverelbar|tobool %}pull-right hidden-{{ class_device_xs }} hidden-{{ class_device_sm }}{% else %}text-center{% endif %}">
      {% if not (theme_nosidebar|tobool) %}
        {%- for rellink in rellinks|reverse %}
        <li><a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}" {{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a></li>
        {%- endfor %}
        {%- block rootrellink %}
        {%- endblock %}
        {%- for parent in parents %}
        <li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a></li>
        {%- endfor %}
        <li><a href="#">top</a></li>
        {%- block relbaritems %} {% endblock %}
      {% else %}
        {%- if prev %}
        <li><a href="{{ prev.link|e }}"><i class="icon icon-double-angle-left"></i>&nbsp;{{ prev.title }}</a></li>
        {%- endif %}
        <li><a class="uplink" href="{{ pathto(master_doc) }}">{{ _('Contents') }}</a></li>
        {%- if next %}
        <li><a href="{{ next.link|e }}">{{ next.title }}&nbsp;<i class="icon icon-double-angle-right"></i></a></li>
        {%- endif %}
        <li><a href="#">top</a></li>
      {%- endif %}
    </ul>
  </div>
</div>
{%- endmacro %}

68
69
70
71
72
73
{%- macro sidebar() %}
{%- if render_sidebar %}
<div class="{{ bs_span_prefix }}{{ theme_sidebar_span }} hidden-{{ class_device_xs }}" id="sidebar-wrapper">
  <div class="sidebar hidden-{{ class_device_xs }}" role="navigation" aria-label="main navigation">
    {%- block sidebarlogo %}
    {%- endblock %}
Glenn Walbran's avatar
Glenn Walbran committed
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
    {%- if sidebars != None %}
    {#- new style sidebar: explicitly include/exclude templates #}
    {%- for sidebartemplate in sidebars %}
    {%- include sidebartemplate %}
    {%- endfor %}
    {%- else %}
    {#- old style sidebars: using blocks -- should be deprecated #}
    {%- block sidebartoc %}
    {%- include "localtoc.html" %}
    {%- endblock %}
    {%- block sidebarrel %}
    {%- include "relations.html" %}
    {%- endblock %}
    {%- block sidebarsourcelink %}
    {%- endblock %}
    {%- if customsidebar %}
    {%- include customsidebar %}
    {%- endif %}
    {%- block sidebarsearch %}
    {%- include "searchbox.html" %}
    {%- endblock %}
    {%- endif %}
  </div>
</div>
{%- endif %}
{%- endmacro %}

{% set script_files = script_files + ['_static/js/bootstrap' + theme_bootstrap_version + '.min.js'] %}
{%- macro script() %}
<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 %}
    {%- if scriptfile == '_static/jquery.js' %}
    <script type="text/javascript" src="{{ pathto('_static/js/jquery.min.js', 1) }}"></script>
    {%- else %}
    <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
    {%- endif %}
{%- endfor %}
<script type="text/javascript" src="{{ pathto('_static/js/jquery.cookie.min.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/basicstrap.js', 1) }}"></script>
<script type="text/javascript">
</script>
{%- endmacro %}

{%- macro css() %}
{%- if (theme_googlewebfont|tobool) %}
<link rel="stylesheet" href="{{ pathto(theme_googlewebfont_url, 1) }}" media="screen and (min-width:481px)" type="text/css" />
{%- endif %}

<link rel="stylesheet" href="{{ pathto('_static/css/basicstrap-base.css', 1) }}" type="text/css" />

{%- if (theme_inner_theme|tobool) %}
<link rel="stylesheet" id="current-theme" href="{{ pathto('_static/css/bootstrap' + theme_bootstrap_version + '/' + theme_inner_theme_name + '.css', 1) }}" type="text/css" />
<link rel="stylesheet" id="current-adjust-theme" href="{{ pathto('_static/css/adjust_theme/' + theme_inner_theme_name + '.css', 1) }}" type="text/css" />
{%- else %}
<link rel="stylesheet" id="current-theme" href="{{ pathto('_static/css/bootstrap' + theme_bootstrap_version + '/bootstrap.min.css', 1) }}" type="text/css" />
<link rel="stylesheet" id="current-adjust-theme" type="text/css" />
{%- endif %}

{%- if theme_bootstrap_version == "3" and theme_noflatdesign|tobool %}
<link rel="stylesheet" href="{{ pathto('_static/css/bootstrap' + theme_bootstrap_version + '/bootstrap-theme.min.css', 1) }}" type="text/css" />
{%- endif %}

<link rel="stylesheet" href="{{ pathto('_static/css/font-awesome.min.css', 1) }}">
{% if (theme_nav_fixed_top|tobool) %}
<style type="text/css">
  body {
    {%- if theme_bootstrap_version == "3" %}
    padding-top: 60px;
    padding-bottom: 40px;
    {%- else %}
    padding-top: 60px;
    padding-bottom: 40px;
    {%- endif %}
  }
</style>
{% endif %}
<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 theme_noresponsive|tobool) and theme_bootstrap_version == "2" %}
<link rel="stylesheet" href="{{ pathto('_static/css/bootstrap2/bootstrap-responsive.min.css', 1) }}" type="text/css" />
{%- endif %}

{%- if theme_noresponsive|tobool and theme_bootstrap_version == "3" %}
<link rel="stylesheet" href="{{ pathto('_static/css/bootstrap3/bootstrap-non-responsive.css', 1) }}" type="text/css" />
{%- endif %}

{%- endmacro %}

<html lang="{{ theme_lang }}">
  <head>
    <meta charset="{{ encoding }}" />
    {{ metatags }}
    {%- block htmltitle %}
    <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
    {%- endblock %}

    {%- if theme_noresponsive|tobool and theme_bootstrap_version == "3" %}
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    {%- endif %}
    <meta name="description" content="">
    <meta name="author" content="">

    {{ css() }}
    {%- if not embedded %}
    {{ script() }}
    {%- if use_opensearch %}
    <link rel="search" type="application/opensearchdescription+xml"
    title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
    href="{{ pathto('_static/opensearch.xml', 1) }}"/>
    {%- endif %}
    {%- 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') }}" />
Glenn Walbran's avatar
Glenn Walbran committed
209
    {%- endif %}
210
211
    {%- if hasdoc('copyright') %}
    <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
Glenn Walbran's avatar
Glenn Walbran committed
212
    {%- endif %}
213
214
215
    <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 }}" />
Glenn Walbran's avatar
Glenn Walbran committed
216
    {%- endif %}
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
    {%- 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 %}
    <!--[if lte IE 6]>
    <link rel="stylesheet" href="{{ pathto('_static/ie6.css', 1) }}" type="text/css" media="screen" charset="utf-8" />
    <![endif]-->
    {%- if theme_favicon %}
    <link rel="shortcut icon" href="{{ pathto('_static/'+theme_favicon, 1) }}"/>
    {%- endif %}

    <!--Font Awesome support -->
    <script src="https://use.fontawesome.com/e37a07b9f0.js"></script>


    <!-- Piwik -->
    <script type="text/javascript">
      var _paq = _paq || [];
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="//www.catalyst-analytics.nz/";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', 5]);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <noscript><p><img src="//www.catalyst-analytics.nz/piwik.php?idsite=5" style="border:0;" alt="" /></p></noscript>
    <!-- End Piwik Code -->

252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
    <script type="text/javascript">
    /**
     * Offset html anchors for fixed header
     */
    jQuery(function($) {
        $(document).on('click', 'a', function(event) {
            if ($(this.hash).length && location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '')) {
                event.preventDefault();
                var target = $(this.hash);
                var headerheight = 0;
                if ($('#navbar-top').length) {
                    headerheight = $('#navbar-top').height();
                }
                else if ($('.container-fluid').length) {
                    headerheight = $('.container-fluid').offset().top;
                }
                $('html, body').animate({
                    scrollTop: (target.offset().top - (headerheight * 2))
                }, 500);
            }
        });
    });
    </script>

276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
    {% endblock %}
  </head>
  <body role="document">

    {%- block header %}

    {%- if theme_bootstrap_version == "3" %}
    <div id="navbar-top" class="navbar {% if (theme_nav_fixed_top|tobool) %}navbar-fixed-top {% endif %}{% if (theme_header_inverse|tobool) %}navbar-inverse{% else %}navbar-default{% endif %}" role="navigation" aria-label="top navigation">
      <div class="{% if (not theme_nav_fixed|tobool) %}container-fluid{% else %}container{% endif %}">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">

            {%- if (not theme_noresponsive|tobool) and display_toc %}
              <li class="dropdown visible-{{ class_device_xs }}">
                <a role="button" id="localToc" data-toggle="dropdown" data-target="#" href="#">{{ _('Table Of Contents') }} <b class="caret"></b></a>
                <ul class="dropdown-menu localtoc sp-localtoc" role="menu" aria-labelledby="localToc">
                {{ toc }}
                </ul>
              </li>
            {%- endif %}

            {%- if theme_theme_preview|tobool %}
            <li><a href="#" data-toggle="modal" data-target=".debug-modal">theme preview</a></li>
            {%- endif %}

            {% if not (theme_nosidebar|tobool) %}
              {%- for rellink in rellinks|reverse %}
              <li><a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}" {{ accesskey(rellink[2]) }}>{{ rellink[3] }} </a></li>
              {%- endfor %}
              {%- for parent in parents %}
              <li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a></li>
              {%- endfor %}
            {% else %}
              <li><a class="uplink" href="{{ pathto(master_doc) }}">{{ _('Contents') }}</a></li>
              {%- if prev %}
              <li><a href="{{ prev.link|e }}"><i class="icon icon-double-angle-left"></i>&nbsp;{{ prev.title }}</a></li>
              {%- endif %}
              {%- if next %}
              <li><a href="{{ next.link|e }}">{{ next.title }}&nbsp;<i class="icon icon-double-angle-right"></i></a></li>
              {%- endif %}
            {%- endif %}

            {%- if not theme_noresponsive|tobool %}
            {%- if show_source and has_source and sourcename %}
            <li class="visible-{{ class_device_xs }}"><a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow">{{ _('Show Source') }}</a></li>
            {%- endif %}

            <li class="visible-{{ class_device_xs }}">
                <form class="search form-search form-inline navbar-form navbar-right sp-searchbox" action="{{ pathto('search') }}" method="get">
                  <div class="input-append input-group">
                    <input type="text" class="search-query form-control" name="q" placeholder="Search...">
                    <span class="input-group-btn">
                    <input type="submit" class="btn" value="{{ _('Go') }}" />
                    </span>
                  </div>
                  <input type="hidden" name="check_keywords" value="yes" />
                  <input type="hidden" name="area" value="default" />
                </form>
            </li>
            {%- endif %}

            {% if (theme_nosidebar|tobool) and (theme_header_searchbox|tobool) %}
            <li>
              <form class="navbar-form navbar-right" action="{{ pathto('search') }}" method="get">
               <div class="form-group" style="padding-right:20px;">
                <input type="text" name="q" class="form-control" placeholder="Search" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="navbar" />
               </div>
              </form>
            </li>
            {% endif %}

          </ul>

        </div>
      </div>
Glenn Walbran's avatar
Glenn Walbran committed
362
    </div>
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508

    {%- else %}

    <div id="navbar-top" class="navbar {% if (theme_nav_fixed_top|tobool) %}navbar-fixed-top {% endif %}{% if (theme_header_inverse|tobool) %}navbar-inverse{% else %}navbar-default{% endif %}" role="navigation" aria-label="top navigation">
      <div class="navbar-inner">
        <div class="{% if (not theme_nav_fixed|tobool) %}container-fluid{% else %}container{% endif %}">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <div role="banner">
            <a class="brand" href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>
          </div>
          <div class="nav-collapse collapse">
            <ul class="nav pull-right">

              {%- if (not theme_noresponsive|tobool) and display_toc %}
                <li class="dropdown hidden-lg hidden-{{ class_device_md }}">
                  <a role="button" id="localToc" data-toggle="dropdown" data-target="#" href="#">{{ _('Table Of Contents') }} <b class="caret"></b></a>
                  <ul class="dropdown-menu localtoc sp-localtoc" role="menu" aria-labelledby="localToc">
                  {{ toc }}
                  </ul>
                </li>
              {%- endif %}

              {%- if theme_theme_preview|tobool %}
              <li><a href="#" data-toggle="modal" data-target=".debug-modal">quick preview</a></li>
              {%- endif %}

              {% if not (theme_nosidebar|tobool) %}
                {%- for rellink in rellinks|reverse %}
                <li><a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}" {{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a></li>
                {%- endfor %}
                {%- for parent in parents %}
                <li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a></li>
                {%- endfor %}
              {% else %}
                <li><a class="uplink" href="{{ pathto(master_doc) }}">{{ _('Contents') }}</a></li>
                {%- if prev %}
                <li><a href="{{ prev.link|e }}"><i class="icon icon-double-angle-left"></i>&nbsp;{{ prev.title }}</a></li>
                {%- endif %}
                {%- if next %}
                <li><a href="{{ next.link|e }}">{{ next.title }}&nbsp;<i class="icon icon-double-angle-right"></i></a></li>
                {%- endif %}
              {%- endif %}

              {%- if not theme_noresponsive|tobool %}
              {%- if show_source and has_source and sourcename %}
              <li class="hidden-lg hidden-{{ class_device_md }}"><a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow">{{ _('Show Source') }}</a></li>
              {%- endif %}

              <li class="hidden-lg hidden-{{ class_device_md }}">
                  <form class="search form-search form-inline sp-searchbox" action="{{ pathto('search') }}" method="get">
                    <div class="input-append">
                      <input type="text" class="search-query form-control" name="q" placeholder="Search...">
                      <input type="submit" class="btn" value="{{ _('Go') }}" />
                    </div>
                    <input type="hidden" name="check_keywords" value="yes" />
                    <input type="hidden" name="area" value="default" />
                  </form>
              </li>
              {%- endif %}

            </ul>
          </div>
        </div>
      </div>
    </div>
    {%- endif %}
    {% endblock %}

    <!-- container -->
    <div class="{% if (not theme_content_fixed|tobool) %}container-fluid{% else %}container{% endif %}">

      <!-- row -->
      <div class="{{ class_row }}">
        {%- block content %}

        {%- block sidebar1 %}
        {% if (not theme_rightsidebar|tobool) %} {{ sidebar() }} {% endif %}
        {% endblock %}

        <div class="{% if (not theme_nosidebar|tobool) %}{{ bs_span_prefix }}{{ 12 - theme_sidebar_span|int }}{% else %}{{ bs_span_prefix }}12{% endif %}" id="content-wrapper">
          <div class="document" role="main">
            {%- block document %}
            <div class="documentwrapper">
              {%- if render_sidebar %}
              <div class="bodywrapper">
                {%- endif %}
                <div class="body">
                  {% block body %} {% endblock %}
                </div>
                {%- if render_sidebar %}
              </div>
              {%- endif %}
            </div>
            {%- endblock %}
          </div>
        </div>

        {%- block sidebar2 %}
        {% if (theme_rightsidebar|tobool) %} {{ sidebar() }} {% endif %}
        {% endblock %}

        {%- endblock %}{# /content block #}
      </div><!-- /row -->

    </div>
    <!-- /container -->

    <div class="footer-wrap">
      <!-- row -->
      <div class="{{ class_row }} footer-relbar"><div class="container-fluid">
        {%- block relbar2 %}{{ relbar() }}{% endblock %}
      </div></div><!-- /row -->

      <!-- footer -->
      {%- block footer %}
          <div class="footer"><div class="container-fluid">
          {%- if show_copyright %}
            {%- if hasdoc('copyright') %}
              {% trans path=pathto('copyright'), copyright=copyright|e %}The Mahara manual is licensed under your choice of <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 unported</a> or <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License version 3 or later</a>{{ copyright }}.{% endtrans %}
            {%- else %}
              {% trans copyright=copyright|e %}The Mahara manual is licensed under your choice of <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 unported</a> or <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License version 3 or later</a> {{ 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>
      {%- endblock %}
      <!-- /footer -->

    </div>
    <!-- /container -->

    {%- if theme_theme_preview|tobool %}
    {%- include "_theme_preview.html" %}
    {%- endif %}

  </body>
</html>