jekyll-theme-pirati-sk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +187 -0
  3. data/_data/campaigns.yml +19 -0
  4. data/_data/menu.yml +80 -0
  5. data/_data/parties.yml +7 -0
  6. data/_includes/404.html +4 -0
  7. data/_includes/accordeon/accordeon.html +10 -0
  8. data/_includes/article-box/article-box.html +15 -0
  9. data/_includes/article-box/list.html +11 -0
  10. data/_includes/article-infobox.html +5 -0
  11. data/_includes/articles/author.html +8 -0
  12. data/_includes/articles/horizontal-article.html +52 -0
  13. data/_includes/articles/list-responsive.html +5 -0
  14. data/_includes/articles/pagination.html +26 -0
  15. data/_includes/articles/tag-filtered-news.html +16 -0
  16. data/_includes/articles/vertical-article.html +72 -0
  17. data/_includes/avatar.html +9 -0
  18. data/_includes/buttons/basic.html +3 -0
  19. data/_includes/buttons/icon.html +8 -0
  20. data/_includes/buttons/super.html +4 -0
  21. data/_includes/calendar.html +21 -0
  22. data/_includes/candidate-badge.html +57 -0
  23. data/_includes/contact-line.html +4 -0
  24. data/_includes/contacts/residence.html +31 -0
  25. data/_includes/contacts/summary-table.html +64 -0
  26. data/_includes/countdown.html +13 -0
  27. data/_includes/disqus_comments.html +20 -0
  28. data/_includes/elections-header.html +21 -0
  29. data/_includes/footer.html +138 -0
  30. data/_includes/google-analytics.html +12 -0
  31. data/_includes/head-custom.html +0 -0
  32. data/_includes/head.html +76 -0
  33. data/_includes/header.html +167 -0
  34. data/_includes/headline-media.html +16 -0
  35. data/_includes/hero/advanced.html +65 -0
  36. data/_includes/hero/simple.html +13 -0
  37. data/_includes/homepage/banner.html +11 -0
  38. data/_includes/homepage/buttom.html +8 -0
  39. data/_includes/homepage/calendar.html +5 -0
  40. data/_includes/homepage/countdown.html +3 -0
  41. data/_includes/homepage/four-buttoms.html +18 -0
  42. data/_includes/homepage/gif-box.html +9 -0
  43. data/_includes/homepage/news.html +9 -0
  44. data/_includes/homepage/social.html +10 -0
  45. data/_includes/icon-github.html +1 -0
  46. data/_includes/icon-github.svg +1 -0
  47. data/_includes/icon-twitter.html +1 -0
  48. data/_includes/icon-twitter.svg +1 -0
  49. data/_includes/js/main.html +62 -0
  50. data/_includes/page-header.html +9 -0
  51. data/_includes/party.html +15 -0
  52. data/_includes/people/fullname.html +11 -0
  53. data/_includes/people/list-group.html +4 -0
  54. data/_includes/people/list-responsive.html +10 -0
  55. data/_includes/people/profile-badge.html +70 -0
  56. data/_includes/program/list.html +11 -0
  57. data/_includes/program/priorities.html +14 -0
  58. data/_includes/regions/crossroad.html +60 -0
  59. data/_includes/regions/crossroad2.html +5 -0
  60. data/_includes/regions/item.html +26 -0
  61. data/_includes/right-bar/bar_board.html +22 -0
  62. data/_includes/right-bar/bar_fb.html +11 -0
  63. data/_includes/right-bar/bar_garant.html +5 -0
  64. data/_includes/right-bar/bar_kodo.html +12 -0
  65. data/_includes/right-bar/bar_map.html +38 -0
  66. data/_includes/right-bar/bar_page_contact.html +2 -0
  67. data/_includes/right-bar/bar_people.html +16 -0
  68. data/_includes/right-bar/bar_person_articles.html +6 -0
  69. data/_includes/right-bar/bar_profile.html +77 -0
  70. data/_includes/right-bar/bar_program.html +27 -0
  71. data/_includes/right-bar/bar_tag_articles.html +10 -0
  72. data/_includes/right-bar/bar_textbox.html +12 -0
  73. data/_includes/right-bar/bar_tw.html +2 -0
  74. data/_includes/right-bar/bar_video.html +16 -0
  75. data/_includes/right-bar/custom-bars.html +0 -0
  76. data/_includes/right-bar/program-extras.html +0 -0
  77. data/_includes/right-bar/rbar.html +55 -0
  78. data/_includes/right-bar/rbar_articles.html +14 -0
  79. data/_includes/right-bar/rbar_profiles.html +11 -0
  80. data/_includes/sharebox.html +21 -0
  81. data/_includes/social-icon-group.html +23 -0
  82. data/_includes/social-icons.html +8 -0
  83. data/_includes/social.html +14 -0
  84. data/_includes/tables/zebra.html +25 -0
  85. data/_includes/youtube.html +3 -0
  86. data/_layouts/blank-article.html +24 -0
  87. data/_layouts/blank.html +10 -0
  88. data/_layouts/communal-elections.html +172 -0
  89. data/_layouts/compress.html +10 -0
  90. data/_layouts/contacts.html +78 -0
  91. data/_layouts/default.html +19 -0
  92. data/_layouts/home.html +34 -0
  93. data/_layouts/members.html +35 -0
  94. data/_layouts/page.html +5 -0
  95. data/_layouts/person.html +47 -0
  96. data/_layouts/pirate-center.html +91 -0
  97. data/_layouts/post.html +69 -0
  98. data/_layouts/program-post.html +9 -0
  99. data/_layouts/redirected.html +13 -0
  100. data/_layouts/regions.html +15 -0
  101. data/_layouts/regions2.html +9 -0
  102. data/_layouts/taglist.html +31 -0
  103. data/assets/icons/blog.png +0 -0
  104. data/assets/icons/compass.png +0 -0
  105. data/assets/icons/facebook.png +0 -0
  106. data/assets/icons/github.png +0 -0
  107. data/assets/icons/googleplus.png +0 -0
  108. data/assets/icons/instagram.png +0 -0
  109. data/assets/icons/linkedin.png +0 -0
  110. data/assets/icons/pinterest.png +0 -0
  111. data/assets/icons/piratewiki.png +0 -0
  112. data/assets/icons/redmine.png +0 -0
  113. data/assets/icons/twitter.png +0 -0
  114. data/assets/icons/vkontakte.png +0 -0
  115. data/assets/icons/youtube.png +0 -0
  116. data/assets/img/brand/logo-group.png +0 -0
  117. data/assets/img/brand/logo-group.svg +27 -0
  118. data/assets/img/brand/logo-round.png +0 -0
  119. data/assets/img/brand/logo-round.svg +104 -0
  120. data/assets/img/brand/logo.ai +5083 -16
  121. data/assets/img/brand/logo.pdf +1405 -4
  122. data/assets/img/brand/logo.png +0 -0
  123. data/assets/img/brand/logo.svg +10 -0
  124. data/assets/img/brand/logo_easy.png +0 -0
  125. data/assets/img/brand/logo_napis.ai +5003 -21
  126. data/assets/img/brand/logo_napis.pdf +1482 -3
  127. data/assets/img/brand/logo_napis.png +0 -0
  128. data/assets/img/brand/logo_napis.svg +48 -0
  129. data/assets/img/brand/logo_napis_male.png +0 -0
  130. data/assets/img/brand/logo_napis_white.ai +5106 -16
  131. data/assets/img/brand/logo_napis_white.pdf +1532 -2
  132. data/assets/img/brand/logo_napis_white.png +0 -0
  133. data/assets/img/brand/logo_napis_white.svg +51 -0
  134. data/assets/img/brand/logo_white.ai +5194 -23
  135. data/assets/img/brand/logo_white.pdf +1388 -4
  136. data/assets/img/brand/logo_white.png +0 -0
  137. data/assets/img/brand/logo_white.svg +14 -0
  138. data/assets/img/brand/logotyp_email.png +0 -0
  139. data/assets/img/brand/logow.svg +19 -0
  140. data/assets/img/favicon/apple-touch-icon-114x114.png +0 -0
  141. data/assets/img/favicon/apple-touch-icon-120x120.png +0 -0
  142. data/assets/img/favicon/apple-touch-icon-144x144.png +0 -0
  143. data/assets/img/favicon/apple-touch-icon-152x152.png +0 -0
  144. data/assets/img/favicon/apple-touch-icon-57x57.png +0 -0
  145. data/assets/img/favicon/apple-touch-icon-60x60.png +0 -0
  146. data/assets/img/favicon/apple-touch-icon-72x72.png +0 -0
  147. data/assets/img/favicon/apple-touch-icon-76x76.png +0 -0
  148. data/assets/img/favicon/favicon-128x128.png +0 -0
  149. data/assets/img/favicon/favicon-16x16.png +0 -0
  150. data/assets/img/favicon/favicon-196x196.png +0 -0
  151. data/assets/img/favicon/favicon-32x32.png +0 -0
  152. data/assets/img/favicon/favicon-96x96.png +0 -0
  153. data/assets/img/favicon/favicon.ico +0 -0
  154. data/assets/img/favicon/mstile-144x144.png +0 -0
  155. data/assets/img/favicon/mstile-150x150.png +0 -0
  156. data/assets/img/favicon/mstile-310x150.png +0 -0
  157. data/assets/img/favicon/mstile-310x310.png +0 -0
  158. data/assets/img/favicon/mstile-70x70.png +0 -0
  159. data/assets/img/header/background.jpg +0 -0
  160. data/assets/img/map-markers/map-marker-alizarin.svg +138 -0
  161. data/assets/img/map-markers/map-marker-amethyst.svg +138 -0
  162. data/assets/img/map-markers/map-marker-asbestos.svg +138 -0
  163. data/assets/img/map-markers/map-marker-asphalt.svg +138 -0
  164. data/assets/img/map-markers/map-marker-belize-hole.svg +138 -0
  165. data/assets/img/map-markers/map-marker-black.svg +138 -0
  166. data/assets/img/map-markers/map-marker-carrot.svg +138 -0
  167. data/assets/img/map-markers/map-marker-concrete.svg +138 -0
  168. data/assets/img/map-markers/map-marker-emerald.svg +138 -0
  169. data/assets/img/map-markers/map-marker-green-sea.svg +138 -0
  170. data/assets/img/map-markers/map-marker-midnight-blue.svg +138 -0
  171. data/assets/img/map-markers/map-marker-nephritis.svg +138 -0
  172. data/assets/img/map-markers/map-marker-orange.svg +138 -0
  173. data/assets/img/map-markers/map-marker-peter-river.svg +138 -0
  174. data/assets/img/map-markers/map-marker-pomegranate.svg +138 -0
  175. data/assets/img/map-markers/map-marker-pumpkin.svg +138 -0
  176. data/assets/img/map-markers/map-marker-sun-flower.svg +138 -0
  177. data/assets/img/map-markers/map-marker-turqoise.svg +138 -0
  178. data/assets/img/map-markers/map-marker-wisteria.svg +138 -0
  179. data/assets/img/people/ppp.jpg +0 -0
  180. data/assets/img/people/ppp.png +0 -0
  181. data/assets/img/people/unknown-pirate.svg +48 -0
  182. data/assets/img/posts/obrazek.u.tohoto.postu.jpg +0 -0
  183. data/assets/img/praha-index/kandidatka2018.gif +0 -0
  184. data/assets/img/praha-index/naprahuzmeny.jpg +0 -0
  185. data/assets/img/pripoj-se/dotaznik.png +0 -0
  186. data/assets/img/pripoj-se/krajske-forum.jpg +0 -0
  187. data/assets/img/pripoj-se/noviny.jpg +0 -0
  188. data/assets/img/pripoj-se/zastupko.jpg +0 -0
  189. data/assets/img/program/icons/doprava.svg +14 -0
  190. data/assets/img/program/icons/finance.png +0 -0
  191. data/assets/img/program/icons/finance.svg +14 -0
  192. data/assets/img/program/icons/informatika.png +0 -0
  193. data/assets/img/program/icons/informatika.svg +14 -0
  194. data/assets/img/program/icons/ivan-bartos-acta.jpg +0 -0
  195. data/assets/img/program/icons/kontrola.svg +14 -0
  196. data/assets/img/program/icons/kultura.png +0 -0
  197. data/assets/img/program/icons/metropole-01.svg +18 -0
  198. data/assets/img/program/icons/mezinarodni-vztahy.png +0 -0
  199. data/assets/img/program/icons/mezinarodni-vztahy.svg +26 -0
  200. data/assets/img/program/icons/mistni-rozvoj.svg +24 -0
  201. data/assets/img/program/icons/moderni rodina-1.svg +26 -0
  202. data/assets/img/program/icons/obrana.svg +14 -0
  203. data/assets/img/program/icons/obrana2.svg +14 -0
  204. data/assets/img/program/icons/prace-a-socialni-veci.svg +26 -0
  205. data/assets/img/program/icons/prace-a-socialni.png +0 -0
  206. data/assets/img/program/icons/prumysl.png +0 -0
  207. data/assets/img/program/icons/prumysl.svg +14 -0
  208. data/assets/img/program/icons/radnice-01.svg +18 -0
  209. data/assets/img/program/icons/spravedlnost.png +0 -0
  210. data/assets/img/program/icons/spravedlnost.svg +14 -0
  211. data/assets/img/program/icons/svoboda.svg +14 -0
  212. data/assets/img/program/icons/vnitro a otevreny stat.svg +24 -0
  213. data/assets/img/program/icons/vnitro.png +0 -0
  214. data/assets/img/program/icons/vzdelani.png +0 -0
  215. data/assets/img/program/icons/vzdelavani a veda.svg +24 -0
  216. data/assets/img/program/icons/zdravotnictvi.png +0 -0
  217. data/assets/img/program/icons/zdravotnictvi.svg +14 -0
  218. data/assets/img/program/icons/zemedelstvi.png +0 -0
  219. data/assets/img/program/icons/zemedelstvi.svg +14 -0
  220. data/assets/img/program/icons/zivotni-prostredi.png +0 -0
  221. data/assets/img/program/icons/zivotni-prostredi.svg +24 -0
  222. data/assets/img/program/psp2017/doprava.svg +14 -0
  223. data/assets/img/program/psp2017/finance.svg +14 -0
  224. data/assets/img/program/psp2017/informatika.svg +14 -0
  225. data/assets/img/program/psp2017/kultura.png +0 -0
  226. data/assets/img/program/psp2017/mezinarodni-vztahy.svg +26 -0
  227. data/assets/img/program/psp2017/mistni-rozvoj.svg +24 -0
  228. data/assets/img/program/psp2017/obrana.svg +14 -0
  229. data/assets/img/program/psp2017/prumysl.svg +14 -0
  230. data/assets/img/program/psp2017/spravedlnost.svg +14 -0
  231. data/assets/img/program/psp2017/vnitro.png +0 -0
  232. data/assets/img/program/psp2017/vzdelani.png +0 -0
  233. data/assets/img/program/psp2017/zdravotnictvi.svg +14 -0
  234. data/assets/img/program/psp2017/zemedelstvi.png +0 -0
  235. data/assets/img/program/psp2017/zivotni-prostredi.svg +24 -0
  236. data/assets/img/program/volebni-rozcestnik.png +0 -0
  237. data/assets/img/tiles/lightGrey.png +0 -0
  238. data/assets/img/tiles/tableOfContent.png +0 -0
  239. data/jekyll-theme-pirati-sk.gemspec +26 -0
  240. metadata +326 -0
@@ -0,0 +1,57 @@
1
+ <div class="candidate-card container-padding--zero sm:container-padding--auto {{ include.class }}">
2
+ <div class="candidate-card__wrapper {{ include.wrapperClass }}">
3
+ <div class="card candidate-card__body elevation-0 hover:elevation-10 transition duration-200">
4
+ <div class="candidate-card__avatar">
5
+ <div class="candidate-card__position">{{ include.rank }}</div>
6
+
7
+ {% if include.candidatePage.img %}
8
+ {% if site.mediaStorage %}
9
+ {% capture img %}https://a.pirati.cz/resize/225x225/{{ site.mediaStorage }}/img/{{ include.candidatePage.img }}{% endcapture %}
10
+ {%- else -%}
11
+ {% capture img %}{% asset '{{ include.candidatePage.img }}' magick:resize='225x225^' magick:gravity='center' magick:crop='225x225+0+0' @path %}{% endcapture %}
12
+ {%- endif -%}
13
+ {% else %}
14
+ {% capture img %}https://a.pirati.cz/common/img/people/unknown-pirate.svg{% endcapture %}
15
+ {% endif %}
16
+
17
+ {% capture img_alt %}{% include people/fullname.html person=include.candidatePage plain=true %}{% endcapture %}
18
+ {% include avatar.html url=include.candidatePage.url class="avatar--sm sm:avatar--lg" src=img alt=img_alt %}
19
+ </div>
20
+ <div class="candidate-card__bio">
21
+ <h1 class="head-heavy-xs">
22
+ <a href="{{ include.candidatePage.url|relative_url }}">{% include people/fullname.html person=include.candidatePage %}</a>
23
+ </h1>
24
+ {% if include.candidatePage.mail %}
25
+ <a href="mailto:{{ include.candidatePage.mail }}" class="block candidate-card__bio-item mb-4">{{ include.candidatePage.mail }}</a>
26
+ {% endif %}
27
+ <h2 class=" candidate-card__bio-item">{{ include.candidate.profession }}</h2>
28
+ {% if include.candidate.city %}
29
+ <h2 class="head-allcaps-4xs mt-4">
30
+ {{ include.candidate.city }}
31
+ </h2>
32
+ {% endif %}
33
+ </div>
34
+ <div class="candidate-card__affiliation">
35
+ {% if include.candidate.age %}
36
+ <div>{{ include.candidate.age }} let</div>
37
+ {% endif %}
38
+
39
+ {% if include.candidate.partyUid %}
40
+ {% include party.html uid=include.candidate.partyUid %}
41
+ {% endif %}
42
+ </div>
43
+ <div class="card__body candidate-card__social">
44
+ {% if include.candidate.description %}
45
+ <p class="font-light text-sm leading-snug italic mb-4 hidden md:block">{{ include.candidate.description }}</p>
46
+ {% endif %}
47
+ {% unless include.hideSocialProfiles %}
48
+ {% if include.candidatePage %}
49
+ <div class="social-icon-group space-x-2">
50
+ {% include social-icons.html profiles=include.candidatePage.profiles %}
51
+ </div>
52
+ {% endif %}
53
+ {% endunless %}
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
@@ -0,0 +1,4 @@
1
+ <{% if include.href %}a href="{{ include.href }}"{% else %}span{% endif %} class="contact-line icon-link content-block--nostyle {{ include.class }}" {% if include.target == "_blank" %}target="_blank" rel="noopener noreferrer"{% endif %}>
2
+ <i class="{{ include.icon }}"></i>
3
+ <span>{{ include.caption }}</span>
4
+ </{% if include.href %}a{% else %}span{% endif %}>
@@ -0,0 +1,31 @@
1
+
2
+ {% if include.residence %}
3
+ {% assign residence = include.residence %}
4
+ {% else %}
5
+ {% assign residence = site.organization %}
6
+ {% endif %}
7
+
8
+
9
+ {% if residence.residenceImg %}
10
+ <div class="mb-2">
11
+ {% asset '{{ residence.residenceImg }}' magick:resize='400x' alt='Sídlo' class="w-full" %}
12
+ </div>
13
+ {% endif %}
14
+
15
+ {% if residence.url %}
16
+ <a href="{{ residence.url }}"><strong>{{ residence.name }}</strong></a>
17
+ {% else %}
18
+ <strong>{{ residence.name }}</strong>
19
+ {% endif %}
20
+
21
+ <p>
22
+ {{ residence.address | newline_to_br }}
23
+ </p>
24
+
25
+ {% if residence.spravce %}
26
+ {% assign spravce = site.people | where_exp: "item","item.uid contains residence.spravce" | first %}
27
+ {% include people/profile-badge.html item=spravce %}
28
+ {% endif %}
29
+ {% if residence.mapLink %}
30
+ {% include buttons/icon.html href=site.organization.mapLink icon="ico--map" class="btn--fullwidth" cta="Zobrazit mapu" %}
31
+ {% endif %}
@@ -0,0 +1,64 @@
1
+ {% if site.contactSummaryItems %}
2
+ {% for line in site.contactSummaryItems %}
3
+ <div>
4
+ {% if line.type == 'organizationEmail' %}
5
+ <h4>Emailová adresa</h4>
6
+ {% capture href %}mailto:{{ site.organization.email }}{% endcapture %}
7
+ {% include contact-line.html href=href icon="ico--envelope" caption=site.organization.email %}
8
+ {% elsif line.type == 'organizationRedmineLink' %}
9
+ <h4>Podatelna (Redmine)</h4>
10
+ {% include contact-line.html href=site.organization.redmineLink icon="ico--envelope" caption=site.organization.email %}
11
+ {% elsif line.type == 'organizationPhone' %}
12
+ <h4>Telefonický kontakt</h4>
13
+ {% capture href %}tel:{{ site.organization.phone }}{% endcapture %}
14
+ {% include contact-line.html href=href icon="ico--phone" caption=site.organization.phone %}
15
+ {% elsif line.type == 'organizationTransparentAccount' %}
16
+ <h4>Transparentní {% if line.includeMoreLink %}účty{% else %}účet{% endif %}</h4>
17
+ {% capture href %}tel:{{ site.organization.phone }}{% endcapture %}
18
+ {{ site.organization.transparentAccount }}{% if line.includeMoreLink %} a <a href="https://wiki.pirati.cz/fo/seznam_uctu">další účty</a>{% endif %}
19
+ {% elsif line.type == 'organizationDataBox' %}
20
+ <h4>Datová schránka</h4>
21
+ {% include contact-line.html icon="ico--drawer" caption=site.organization.dataBoxId %}
22
+ {% elsif line.type == 'piratiRootWebsite' %}
23
+ <h4>Celostátní web</h4>
24
+ {% include contact-line.html href="https://www.pirati.cz" icon="ico--pirati" caption="www.pirati.cz" %}
25
+ {% elsif line.type == 'custom' %}
26
+ <h4>{{ line.body }}</h4>
27
+ {% if line.iconClass %}
28
+ {% include contact-line.html icon=line.iconClass caption=line.label %}
29
+ {% else %}
30
+ {{ line.label }}
31
+ {% endif %}
32
+ {% endif %}
33
+ </div>
34
+ {% endfor %}
35
+ {% else %}
36
+ {% comment %}Support legacy configuration where site.contactSummaryItems is undefined{% endcomment %}
37
+ <div>
38
+ <h4>Emailová adresa</h4>
39
+ {% capture href %}mailto:{{ site.organization.email }}{% endcapture %}
40
+ {% include contact-line.html href=href icon="ico--envelope" caption=site.organization.email %}
41
+ </div>
42
+ <div>
43
+ <h4>Podatelna (Redmine)</h4>
44
+ {% include contact-line.html href=site.organization.redmineLink icon="ico--envelope" caption=site.organization.email %}
45
+ </div>
46
+ <div>
47
+ <h4>Telefonický kontakt</h4>
48
+ {% capture href %}tel:{{ site.organization.phone }}{% endcapture %}
49
+ {% include contact-line.html href=href icon="ico--phone" caption=site.organization.phone %}
50
+ </div>
51
+ <div>
52
+ <h4>Celostátní web</h4>
53
+ {% include contact-line.html href="https://www.pirati.cz" icon="ico--pirati" caption="www.pirati.cz" %}
54
+ </div>
55
+ <div>
56
+ <h4>Datová schránka</h4>
57
+ {% include contact-line.html icon="ico--drawer" caption=site.organization.dataBoxId %}
58
+ </div>
59
+ <div>
60
+ <h4>Transparentní {% if line.includeMoreLink %}účty{% else %}účet{% endif %}</h4>
61
+ {% capture href %}tel:{{ site.organization.phone }}{% endcapture %}
62
+ {{ site.organization.transparentAccount | default: '2100048174/2010' }}{% if line.includeMoreLink %} a <a href="https://wiki.pirati.cz/fo/seznam_uctu">další účty</a>{% endif %}
63
+ </div>
64
+ {% endif %}
@@ -0,0 +1,13 @@
1
+ <aside class="bg-black text-white px-4 py-12 lg:py-16 lg:px-24 {{ include.classes }}">
2
+ <div class="flex flex-col lg:flex-row items-center">
3
+ <h1 class="head-alt-md md:head-alt-xl flex-grow text-center lg:text-left mb-8 lg:mb-0">Do voleb<br>nám zbývá</h1>
4
+ <div class="__js-root">
5
+ <ui-flip-clock
6
+ clock-classes="text-6xl md:text-7xl lg:text-9xl"
7
+ slot-classes="text-2xl md:text-3xl lg:text-4xl"
8
+ deadline="{{ include.deadline }}"
9
+ units="days,hours"
10
+ />
11
+ </div>
12
+ </div>
13
+ </aside>
@@ -0,0 +1,20 @@
1
+ {%- if page.comments != false and jekyll.environment == "production" -%}
2
+
3
+ <div id="disqus_thread"></div>
4
+ <script>
5
+ var disqus_config = function () {
6
+ this.page.url = '{{ page.url | absolute_url }}';
7
+ this.page.identifier = '{{ page.url | absolute_url }}';
8
+ };
9
+
10
+ (function() {
11
+ var d = document, s = d.createElement('script');
12
+
13
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14
+
15
+ s.setAttribute('data-timestamp', +new Date());
16
+ (d.head || d.body).appendChild(s);
17
+ })();
18
+ </script>
19
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20
+ {%- endif -%}
@@ -0,0 +1,21 @@
1
+ {% if include.bgImg %}
2
+ {% if site.mediaStorage %}
3
+ {% capture imgBgPath %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ include.bgImg }}{% endcapture %}
4
+ {% else %}
5
+ {% capture imgBgPath %}{% asset '{{ include.bgImg }}' @path %}{% endcapture %}
6
+ {% assign imgBgPath = imgBgPath | absolute_url %}
7
+ {% endif %}
8
+ {% endif %}
9
+
10
+ {% if include.mainContent %}
11
+ {% capture mainContent %}{{ include.mainContent }}{% endcapture %}
12
+ {% else %}
13
+ {% capture mainContent %}
14
+ {% if include.candidateListNumber %}
15
+ <div class="flag bg-violet-400 text-white head-alt-base mb-6">Volte č. {{ include.candidateListNumber }}</div>
16
+ {% endif %}
17
+ <h1 class="head-alt-md md:head-alt-xl">{{ page.title }}</h1>
18
+ {% endcapture %}
19
+ {% endif %}
20
+
21
+ {% include hero/advanced.html img=include.img bgImg=imgBgPath mainContent=mainContent subContent=include.subContent contentClass="content-block" imgClass="h-32 lg:h-80 lg:m-auto hidden md:block" %}
@@ -0,0 +1,138 @@
1
+ <footer class="footer bg-grey-700 text-white __js-root">
2
+ <ui-app inline-template>
3
+ <div>
4
+ <div class="footer__main py-4 lg:py-16 container container--default">
5
+ <section class="footer__brand">
6
+ <img src="{{ site.styleguide_base_url }}/images/logo-full-white.svg" alt="Pirátská strana" class="w-32 md:w-40 pb-6" />
7
+ <p class="para hidden md:block md:mb-4 lg:mb-0 text-grey-200">
8
+ Piráti, {{ site.time | date: '%Y' }}. Všechna práva vyhlazena.
9
+ Sdílejte a nechte ostatní sdílet za stejných podmínek.
10
+ </p>
11
+ </section>
12
+ <section class="footer__main-links bg-grey-700 text-white lg:grid grid-cols-3 gap-4">
13
+ {% for linkGroup in site.data.menu.bottom %}
14
+ <div class="{% if forloop.first %}pt-8 pb-4 lg:py-0{% else %}py-4 lg:py-0 border-t border-grey-400 lg:border-t-0{% endif %}">
15
+ <ui-footer-collapsible label="{{ linkGroup.title }}">
16
+ <ul class="mt-6 space-y-2 text-grey-200">
17
+ {% for linkGroupItem in linkGroup.links %}
18
+ <li>
19
+ <a href="{{ linkGroupItem.link }}">{{ linkGroupItem.name }}</a>
20
+ </li>
21
+ {% endfor %}
22
+ </ul>
23
+ </ui-footer-collapsible>
24
+ </div>
25
+ {% endfor %}
26
+ </section>
27
+ <section class="footer__social lg:text-right">
28
+ <div class="mb-4">
29
+ {% include social-icon-group.html class="space-x-2 text-white pb-4" %}
30
+ {% if site.organization.email %}
31
+ <div class="mb-2">
32
+ {% capture href %}mailto:{{ site.organization.email }}{% endcapture %}
33
+ {% include contact-line.html href=href icon="ico--envelope" caption="Dejte nám vědět" %}
34
+ </div>
35
+ {% endif %}
36
+ {% if site.github %}
37
+ <div class="mb-2">
38
+ {% capture href %}{{ site.github.url }}edit/{{ site.github.branch }}/{{ page.path }}{% endcapture %}
39
+ {% include contact-line.html href=href icon="ico--pencil" caption="Navrhni úpravu" %}
40
+ </div>
41
+ {% endif %}
42
+ </div>
43
+ <div class="flex flex-col md:flex-row lg:flex-col lg:items-end space-y-2 md:space-y-0 md:space-x-2 lg:space-x-0 lg:space-y-2">
44
+ <a href="{{ site.organization.donateLink | default: 'https://dary.pirati.cz' }}" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--cyan-200 btn--hoveractive text-lg btn--fullwidth sm:btn--autowidth">
45
+ <div class="btn__body-wrap">
46
+ <div class="btn__body ">Přispěj</div>
47
+ <div class="btn__icon ">
48
+ <i class="ico--pig"></i>
49
+ </div>
50
+ </div>
51
+ </a>
52
+
53
+ <a href="{{ site.organization.onboardingLink | default: 'https://nalodeni.pirati.cz' }}" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--blue-300 btn--hoveractive text-lg btn--fullwidth sm:btn--autowidth">
54
+ <div class="btn__body-wrap">
55
+ <div class="btn__body ">Naloď se</div>
56
+ <div class="btn__icon ">
57
+ <i class="ico--anchor"></i>
58
+ </div>
59
+ </div>
60
+ </a>
61
+
62
+ </div>
63
+ </section>
64
+ </div>
65
+
66
+ {% if site.data.menu.transparencySection %}
67
+ <section class="footer__sub-links lg:border-t border-grey-400">
68
+ <div class="container container--default">
69
+ <ui-footer-collapsible label="Otevřenost" labelClass="lg:w-1/4" wrapperClass="flex flex-col lg:flex-row lg:space-x-4 lg:items-center py-4 lg:py-8 border-t border-grey-400 lg:border-t-0" slotWrapperclass="lg:w-2/4">
70
+ <ul class="lg:w-full lg:pr-8 grid grid-cols-1 lg:grid-cols-3 lg:gap-4 items-center mt-6 space-y-2 lg:mt-0 lg:space-y-0 text-grey-200">
71
+ <li class="w-full">
72
+ <a href="https://ucet.pirati.cz" rel="noreferrer noopener" target="_blank">Transparentní účet</a>
73
+ </li>
74
+ <li class="w-full">
75
+ <a href="https://smlouvy.pirati.cz" rel="noreferrer noopener" target="_blank">Registr smluv</a>
76
+ </li>
77
+ <li class="w-full">
78
+ <a href="https://wiki.pirati.cz/fo/otevrene_ucetnictvi" rel="noreferrer noopener" target="_blank">Otevřené účetnictví</a>
79
+ </li>
80
+ </ul>
81
+ </ui-footer-collapsible>
82
+ </div>
83
+ </section>
84
+ {% endif %}
85
+
86
+ <section class="bg-black py-4 lg:py-12">
87
+ <div class="container container--default">
88
+ <div class="grid gap-4 grid-cols-1 md:grid-cols-2 xl:grid-cols-3">
89
+ {% if site.data.menu.contact %}
90
+ {% for contact in site.data.menu.contact %}
91
+ {% if contact.id %}
92
+ {% assign person = site.people | where_exp:"item","item.uid contains contact.id" | first %}
93
+ {% assign description = contact.position %}
94
+ {% else %}
95
+ {% assign person = site.people | where_exp:"item","item.uid contains contact" | first %}
96
+ {% assign description = person.teamDescription['contact'] %}
97
+ {% endif %}
98
+ {% include people/profile-badge.html item=person description=description %}
99
+ {% endfor %}
100
+ {% else %}
101
+ {% assign contactPerson = site.people | where_exp: "item","item.uid contains site.organization.contactUid" | first %}
102
+ {% assign contactPersons = site.people | where_exp: "item","item.category contains 'kontaktni_osoba'" | sort:"ordpak" %}
103
+ {% unless contactPersons == empty or contactPersons == blank or contactPersons == nil %}
104
+ {% for person in contactPersons %}
105
+ {% include people/profile-badge.html item=person %}
106
+ {% endfor %}
107
+ {% endunless %}
108
+ {% endif %}
109
+ </div>
110
+ </div>
111
+ </section>
112
+ </div>
113
+ </ui-app>
114
+ </footer>
115
+
116
+
117
+
118
+ <!-- Styles -->
119
+ <link rel="stylesheet" href="https://www.piratiastarostove.cz/static/elections2021/css/styleguide.min.css">
120
+ <link rel="stylesheet" href="https://www.piratiastarostove.cz/static/elections2021/css/styles.css">
121
+ <style type="text/css">
122
+ sup {
123
+ white-space: nowrap;
124
+ }
125
+ </style>
126
+
127
+
128
+
129
+ <div class=" bg-white ">
130
+
131
+ <div class="row">
132
+ <section class="bg-black py-4 lg:py-12">
133
+ <div class="medium-12 large-7 text-white" ><center>
134
+ <a href="https://www.pirati.cz/o-nas/ochrana-osobnich-udaju/">Zásady zpracování osobních údajů a informace o využití cookies</a></center>
135
+ </div>
136
+ </section>
137
+ </div>
138
+ </div>
@@ -0,0 +1,12 @@
1
+ <script>
2
+ if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7
+
8
+ ga('create', '{{ site.google_analytics }}', 'auto');
9
+ ga('send', 'pageview');
10
+ }
11
+ </script>
12
+
File without changes
@@ -0,0 +1,76 @@
1
+ <head>
2
+ {% capture title %}{% if page.ogtitle %}{{page.ogtitle}} | {% elsif page.title %}{{ page.title | escape }} | {% endif %}{{ site.title | escape }}{% endcapture %}
3
+ {% capture description %}{% if page.description %}{{ page.description }}{% elsif page.desc %}{{ page.desc }}{% elsif page.excerpt %}Pirátská strana: {{ page.excerpt | strip_html | strip_newlines | truncate: 330 }}{% else %}{{ site.description }}{% endif %}{% endcapture %}
4
+ {% capture keywords %}
5
+ {{ site.keywords }}
6
+ {% if page.title %}, {{ page.title }}{% endif %}
7
+ {% if page.name %}, {{ page.name }}{% endif %}
8
+ {% if page.keywords %}, {{ page.keywords }}{% endif %}
9
+ {% if page.tags %}, {{ page.tags }}{% endif %}
10
+ {% endcapture %}
11
+ <meta charset="utf-8">
12
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
13
+ <meta name="viewport" content="width=device-width, initial-scale=1">
14
+ <title>{{ title }}</title>
15
+ <meta name="author" content="Česká pirátská strana" />
16
+ <meta name="robots" content="index,follow" />
17
+ <meta name="description" content="{{description}}">
18
+ <meta name="keywords" content="{{keywords}}" />
19
+ <!-- Favicons -->
20
+ <link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ 'assets/img/favicon/apple-touch-icon-57x57.png' | relative_url }}">
21
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ 'assets/img/favicon/apple-touch-icon-114x114.png' | relative_url }}">
22
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ 'assets/img/favicon/apple-touch-icon-72x72.png' | relative_url }}">
23
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ 'assets/img/favicon/apple-touch-icon-144x144.png' | relative_url }}">
24
+ <link rel="apple-touch-icon-precomposed" sizes="60x60" href="{{ 'assets/img/favicon/apple-touch-icon-60x60.png' | relative_url }}">
25
+ <link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{ 'assets/img/favicon/apple-touch-icon-120x120.png' | relative_url }}">
26
+ <link rel="apple-touch-icon-precomposed" sizes="76x76" href="{{ 'assets/img/favicon/apple-touch-icon-76x76.png' | relative_url }}">
27
+ <link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ 'assets/img/favicon/apple-touch-icon-152x152.png' | relative_url }}">
28
+ <link rel="icon" type="image/png" href="{{ 'assets/img/favicon/favicon-196x196.png' | relative_url }}" sizes="196x196">
29
+ <link rel="icon" type="image/png" href="{{ 'assets/img/favicon/favicon-96x96.png' | relative_url }}" sizes="96x96">
30
+ <link rel="icon" type="image/png" href="{{ 'assets/img/favicon/favicon-16x16.png' | relative_url }}" sizes="16x16">
31
+ <link rel="icon" type="image/png" href="{{ 'assets/img/favicon/favicon-32x32.png' | relative_url }}" sizes="32x32">
32
+ <link rel="icon" type="image/png" href="{{ 'assets/img/favicon/favicon-128x128.png' | relative_url }}" sizes="128x128">
33
+ <link rel="alternate" type="application/rss+xml" title="{{ site.organization.name }} RSS" href="{{ '/feed.xml' | relative_url }}">
34
+ <meta name="application-name" content="{{ site.organization.name | escape }}">
35
+ <meta name="msapplication-TileColor" content="#000000">
36
+ <meta name="msapplication-TileImage" content="{{ 'assets/img/favicon/mstile-144x144.png' | relative_url }}">
37
+ <meta name="msapplication-square70x70logo" content="{{ 'assets/img/favicon/mstile-70x70.png' | relative_url }}">
38
+ <meta name="msapplication-square150x150logo" content="{{ 'assets/img/favicon/mstile-150x150.png' | relative_url }}">
39
+ <meta name="msapplication-wide310x150logo" content="{{ 'assets/img/favicon/mstile-310x150.png' | relative_url }}">
40
+ <meta name="msapplication-square310x310logo" content="{{ 'assets/img/favicon/mstile-310x310.png' | relative_url }}">
41
+ <meta property="og:url" content="{{ page.url | absolute_url }}" />
42
+ <meta property="og:type" content="website" />
43
+ <meta property="og:title" content="{{ title }}" />
44
+ <meta property="og:description" content="{{ description }}" />
45
+ {% if page.layout == 'post' %}
46
+ {% if site.mediaStorage %}
47
+ {% capture img_path %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ page.image }}{% endcapture %}
48
+ {% else %}
49
+ {% capture img_path %}{% asset '{{ page.image }}' @path %}{% endcapture %}
50
+ {% endif %}
51
+ <meta property="og:image" content="{{ img_path | absolute_url }}" />
52
+ {% elsif page.img %}
53
+ {% if site.mediaStorage %}
54
+ {% capture img_path %}https://a.pirati.cz/{{ site.mediaStorage }}/img/{{ page.img }}{% endcapture %}
55
+ {% else %}
56
+ {% capture img_path %}{% asset '{{ page.img }}' @path %}{% endcapture %}
57
+ {% endif %}
58
+ <meta property="og:image" content="{{ img_path | absolute_url }}" />
59
+ {% else %}
60
+ <meta property="og:image" content="{{ 'assets/img/brand/logo-round.png' | absolute_url }}" />
61
+ {% endif %}
62
+ <!-- Fonts -->
63
+ {% if page.layout != 'blank' %}
64
+ <link rel="stylesheet" href="{{ site.styleguide_base_url }}/css/styles.css">
65
+ {% endif %}
66
+ <!-- API Mapy.cz that has to be in the header -->
67
+ {% if page.mapycz_api %}
68
+ <script type="text/javascript" src="https://api.mapy.cz/loader.js"></script>
69
+ <script type="text/javascript">Loader.load({% if page.mapycz_api=='mini-api' %}null, {api:"simple"}{% endif %})</script>
70
+ <style>.smap img { max-width: none !important; transform: none;}</style>
71
+ {% endif %}
72
+
73
+ {% comment %}You can add your own content in _includes/head-custom.html and it will get appended to the page head{% endcomment %}
74
+ {% include head-custom.html %}
75
+ </head>
76
+
@@ -0,0 +1,167 @@
1
+ <nav class="navbar __js-root">
2
+ <ui-app inline-template>
3
+ <ui-navbar inline-template>
4
+ <div>
5
+ <div class="container container--wide navbar__content" :class="{'navbar__content--initialized': true}">
6
+ <div class="navbar__brand my-4 flex items-center lg:block lg:pr-8 lg:my-0">
7
+ <a href="{{ '/' | absolute_url }}">
8
+ <img src="{{ site.styleguide_base_url }}/images/logo-round-white.svg" class="w-8 lg:w-full lg:border-r lg:border-grey-300 lg:pr-8" />
9
+ </a>
10
+ <span class="lg:hidden pl-4 font-bold text-xl">Pirátská strana</span>
11
+ </div>
12
+ <div class="navbar__menutoggle my-4 flex justify-end lg:hidden">
13
+ <a href="#" @click="show = !show" class="no-underline hover:no-underline">
14
+ <i class="ico--menu text-3xl"></i>
15
+ </a>
16
+ </div>
17
+ <div v-if="show || isLgScreenSize" class="navbar__external navbar__section navbar__section--expandable container-padding--zero lg:container-padding--auto lg:flex lg:space-x-8 lg:pb-2">
18
+ <div class="text-grey-200 text-sm lg:space-x-8 leading-loose lg:leading-normal">
19
+ {% for item in site.data.menu.top %}
20
+ {% include contact-line.html href=item.url icon=item.icon caption=item.link class="block lg:inline-block" target="_blank" %}
21
+ {% endfor %}
22
+ </div>
23
+ {% include social-icon-group.html class="space-x-2 text-grey-200 py-4 lg:py-0" %}
24
+ </div>
25
+ <div v-if="show || isLgScreenSize" class="navbar__main navbar__section navbar__section--expandable container-padding--zero lg:container-padding--auto">
26
+ {% if site.data.menu.main %}
27
+ <ul class="navbar-menu text-white">
28
+ {% for item in site.data.menu.main %}
29
+ <li class="navbar-menu__item">
30
+ {% if item.submenu %}
31
+ <ui-navbar-subitem label="{{ item.name }}">
32
+ <ul class="navbar-menu__submenu">
33
+ {% for subitem in item.submenu %}
34
+ <li><a href="{{ subitem.link }}" class="navbar-menu__link">{{ subitem.name }}</a></li>
35
+ {% endfor %}
36
+ </ul>
37
+ </ui-navbar-subtitem>
38
+ {% else %}
39
+ <a href="{{ item.link | relative_url }}" class="navbar-menu__link">{{ item.name }}</a>
40
+ {% endif %}
41
+ </li>
42
+ {% endfor %}
43
+ </ul>
44
+ {% endif %}
45
+ </div>
46
+ <div v-if="show || isLgScreenSize" class="navbar__actions navbar__section navbar__section--expandable container-padding--zero lg:container-padding--auto self-start flex flex-col sm:flex-row lg:flex-col sm:space-x-4 space-y-2 sm:space-y-0 lg:space-y-2 xl:flex-row xl:space-x-2 xl:space-y-0">
47
+ <a href="{{ site.organization.donateLink | default: 'https://dary.pirati.cz' }}" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--cyan-200 btn--hoveractive btn--condensed btn--fullwidth md:btn--autowidth lg:text-sm xl:text-base">
48
+ <div class="btn__body-wrap">
49
+ <div class="btn__body ">Přispěj</div>
50
+ <div class="btn__icon ">
51
+ <i class="ico--pig"></i>
52
+ </div>
53
+ </div>
54
+ </a>
55
+ <a href="{{ site.organization.onboardingLink | default: 'https://nalodeni.pirati.cz' }}" rel="noopener noreferrer" target="_blank" class="btn btn--icon btn--blue-300 btn--hoveractive btn--condensed btn--fullwidth md:btn--autowidth lg:text-sm xl:text-base">
56
+ <div class="btn__body-wrap">
57
+ <div class="btn__body ">Naloď se</div>
58
+ <div class="btn__icon ">
59
+ <i class="ico--anchor"></i>
60
+ </div>
61
+ </div>
62
+ </a>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </ui-navbar>
67
+ </ui-app>
68
+ </nav>
69
+
70
+ <div class="__js-root" @click="replaceHTMLEnts();">
71
+ <ui-app inline-template>
72
+ {% if site.env.GOOGLE_CALENDAR_APIKEY and site.calendar.id %}
73
+ <ui-calendar-google-provider v-slot="{ events, onShowMore, hasMore }" :calendar-id="'{{ site.calendar.id }}'" :api-key="'{{ site.env.GOOGLE_CALENDAR_APIKEY }}'">
74
+ {% assign calendarProvided = true %}
75
+ {% endif %}
76
+
77
+ <ui-view-provider :initial="{regions: false, calendar: false}" v-slot="{ isCurrentView, toggleView }">
78
+ <nav class="subnav">
79
+ <div class="container container--wide">
80
+ <div class="flex">
81
+ <button @click="toggleView('regions');" class="btn btn--condensed btn--grey-500 btn--hoveractive btn--to-white text-sm mr-2" :class="{'btn--activated': isCurrentView('regions')}">
82
+ <div class="btn__body">
83
+ <span>{{ site.organization.name }}</span>
84
+ <i class="ico--chevron-down ml-4"></i>
85
+ </div>
86
+ </button>
87
+
88
+ <button @click="toggleView('calendar');replaceHTMLEnts();" class="btn btn--inline-icon btn--condensed btn--hoveractive btn--grey-500 btn--to-orange-300 text-sm" :class="{'btn--activated': isCurrentView('calendar')}">
89
+ <div class="btn__body">
90
+ <i class="btn__inline-icon ico--calendar mr-0 md:mr-2 text-orange-300"></i>
91
+ <span class="hidden md:block">{{ site.calendar.title }}</span>
92
+ </div>
93
+ </button>
94
+
95
+ {% if calendarProvided %}
96
+ <a href="#" class="btn text-sm max-w-full hidden lg:block" @click="toggleView('calendar');" v-if="events.length > 0" v-cloak>
97
+ <div class="btn__body bg-grey-800 text-grey-200 flex divide-x">
98
+ <span class="pr-4">&#123;{events[0].title}&#125;</span>
99
+ <span class="pl-4">&#123;{events[0].allDay ? 'Celý den' : events[0].startDateVerbose + ', ' + events[0].startTimeVerbose}&#125;</span>
100
+ </div>
101
+ </a>
102
+ {% endif %}
103
+
104
+ {% if site.facebook.profilePage %}
105
+ <a href="{{ site.facebook.profilePage }}" target="_blank" rel="noopener noreferrer" class="btn btn--inline-icon btn--condensed btn--hoveractive btn--grey-500 btn--to-brands-facebook text-sm ml-2">
106
+ <div class="btn__body">
107
+ <i class="btn__inline-icon ico--facebook mr-0 md:mr-2 text-brands-facebook"></i>
108
+ <span class="hidden md:block">{{ site.facebook.profilePageName }}</span>
109
+ </div>
110
+ </a>
111
+ {% endif %}
112
+ </div>
113
+ </div>
114
+ </nav>
115
+
116
+ <aside class="subnav-aside">
117
+ <div class="subnav-aside__item" :class="{'subnav-aside__item--visible': isCurrentView('regions')}">
118
+ <a @click="toggleView('regions')" class="subnav-aside__close"><i class="ico--close"></i></a>
119
+ <ui-region-map class="container container--default" />
120
+ </div>
121
+ <div class="subnav-aside__item" :class="{'subnav-aside__item--visible': isCurrentView('calendar')}">
122
+ <a @click="toggleView('calendar');replaceHTMLEnts();" class="subnav-aside__close"><i class="ico--close"></i></a>
123
+ <div class="container container--default">
124
+ {% if calendarProvided %}
125
+ <ui-calendar-renderer :events="events" :on-show-more="onShowMore" :has-more="hasMore" :name="'{{ site.calendar.title }}'"></ui-calendar-renderer>
126
+ {% elsif site.calendar.page %}
127
+ <iframe src="{{ site.calendar.page }}" style="border-width:0; width: 100%; height: 410px; border: 0; overflow: hidden;"></iframe>
128
+ <p class="mt-4">
129
+ <a class="btn btn--orange-200 btn--hoveractive" href="{{ site.calendar.page | relative_url }}">
130
+ <span class="btn__body">Zobrazit všechny akce</span>
131
+ </a>
132
+ </p>
133
+ {% endif %}
134
+ </div>
135
+ </div>
136
+ </aside>
137
+ </ui-view-provider>
138
+
139
+ {% if calendarProvided %}
140
+ </ui-calendar-google-provider>
141
+ {% endif %}
142
+ </ui-app>
143
+ </div>
144
+ <script>
145
+ function replaceHTMLEnts() {
146
+ // Get all <p> elements in the document
147
+ var x = document.querySelectorAll("p");
148
+ var i;
149
+ for (i = 0; i < x.length; i++) {
150
+ x[i].innerHTML=htmlDecode(x[i].innerHTML);
151
+
152
+ }
153
+ x = document.querySelectorAll("a");
154
+ for (i = 0; i < x.length; i++) {
155
+ if (x[i].hasOwnProperty("font-bold") && x[i].hasOwnProperty("block")) {
156
+ x[i].innerHTML=htmlDecode(x[i].innerHTML);
157
+ }
158
+ }
159
+ }
160
+
161
+ function htmlDecode(input){
162
+ var e = document.createElement('div');
163
+ e.innerHTML = input;
164
+ return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue;
165
+ }
166
+
167
+ </script>
@@ -0,0 +1,16 @@
1
+ {% comment %}If youtube video id is provided, it takes precendece over the image{% endcomment %}
2
+ {%- if include.youtubeVideoId %}
3
+ {% include youtube.html width="100%" id=include.youtubeVideoId %}
4
+ {% else %}
5
+ {% if site.mediaStorage %}
6
+ {% capture imgPath %}https://a.pirati.cz/crop/1200x675/{{ site.mediaStorage }}/img/{{ include.image }}{% endcapture %}
7
+ {% else %}
8
+ {% capture imgPath %}{% asset '{{ include.image }}' magick:resize='1200x675^' magick:gravity='center' magick:crop='1200x675+0+0' @path %}{% endcapture %}
9
+ {% endif %}
10
+
11
+ <figure class="figure">
12
+ <img src="{{ imgPath }}" alt="{{ include.title }}" />
13
+ </figure>
14
+ {%- endif %}
15
+
16
+