-
Notifications
You must be signed in to change notification settings - Fork 0
/
record-sidebar-right.twig
65 lines (63 loc) · 2.79 KB
/
record-sidebar-right.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
53
54
55
56
57
58
59
60
61
62
63
64
65
{% extends 'master.twig' %}
{% block content %}
<!-- Main -->
<section id="main" class="wrapper style1">
<header class="major">
<h2>Right Sidebar</h2>
<p>Tempus adipiscing commodo ut aliquam blandit</p>
</header>
<div class="container">
<div class="row">
<div class="8u">
<section>
<h2>{{ record.title }}</h2>
{% if record.image is not empty %}
<a href="#" class="image fit"><img src="{{ record.image|image }}" alt="" /></a>
{% endif %}
<p>{{ record.body }}</p>
</section>
</div>
<div class="4u">
<section>
{% setcontent lastNews = 'news/latest/1' %}
{% for oneNews in lastNews %}
<h3>{{ oneNews.title }}</h3>
<p>{{ oneNews.text|excerpt(220) }}</p>
<ul class="actions">
<li><a href="{{ oneNews.link }}" class="button alt">Learn More</a></li>
</ul>
{% endfor %}
</section>
<hr />
<section>
{% setcontent news = 'news/latest/5' where { status: 'published' } orderby 'datepublish' limit 9 %}
<h3>Ante sed commodo</h3>
<ul class="alt">
{% for item in news %}
<li><a href="{{ item.link }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
</section>
</div>
</div>
<hr class="major" />
<div class="row">
{% setcontent entries = 'entries/latest/2' %}
{% for entry in entries %}
<div class="6u">
<section class="special">
{% if entry.image is not empty %}
<a href="#" class="image fit"><img src="{{ entry.image|image }}" alt="" /></a>
{% endif %}
<h3>{{ entry.title }}</h3>
<p>{{ entry.teaser|excerpt(220) }}</p>
<ul class="actions">
<li><a href="{{ entry.link }}" class="button alt">Learn More</a></li>
</ul>
</section>
</div>
{% endfor %}
</div>
</div>
</section>
{% endblock content %}