forked from praswicaksono/html5up-striped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_sidebar.twig
52 lines (43 loc) · 1.73 KB
/
_sidebar.twig
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
<!-- Sidebar -->
<div id="sidebar">
<!-- Logo -->
<h1 id="logo"><a href="{{ paths.root }}">{{ app.config.get('general/sitename') }}</a></h1>
<!-- Nav -->
{{ menu('main', '_menu.twig') }}
<!-- Search -->
<section class="box search">
<form method="get" action="{{ paths.root }}search" id="searchform" enctype="text/plain">
<input type="search" class="text" name="search" value="{% if search is defined %}{{ search|escape }}{% endif %}" placeholder="{{ __("Search …") }}" placeholder="Search" />
</form>
</section>
<!-- Text -->
<section class="box text-style1">
<div class="inner">
<p>
{{ app.config.get('general/payoff') }}
</p>
</div>
</section>
{{ widgets('aside_top') }}
<!-- Recent Posts -->
<section class="box recent-posts">
{% for ct in app.config.get('contenttypes') if not ct.viewless|default(false) %}
{% setcontent records = ct.slug ~ "/latest/5" %}
<header>
<h2>{{ __('contenttypes.generic.recent', {'%contenttypes%': ct.slug}) }}</h2>
</header>
<ul>
{% for record in records %}
<li><a href="{{ record.link }}">{{ record.title }}</a></li>
{% else %}
<li>{{ __('contenttypes.generic.no-recent', {'%contenttype%': ct.slug}) }}</li>
{% endfor %}
</ul>
{% endfor %}
</section>
{{ widgets('aside_bottom') }}
<!-- Copyright -->
<ul id="copyright">
<li>© Untitled.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>