Add flowblock for images
Former-commit-id: b7d8a1e9c747d1b6794905f11534215cc034c03f [formerly a5ba32508b2443e151b2a6eeb6a8146c68e31969] [formerly 1d264ce107f18188eca33f09d3e4cab3ec57de77 [formerly 57b7f8d59b9f6d8cff17389a8639d921d14da555]] Former-commit-id: 28ff10f6c80e469e25a122428ff65346ce705d85 [formerly 0754f0ea986eb131959f1fbbfdb9b999653ba8e0] Former-commit-id: 843a7eb673e9cd4dd0d0005652752ae259a8461c
This commit is contained in:
parent
46358a5bd4
commit
9a8f01266d
8 changed files with 1475 additions and 7 deletions
1434
assets/images/c3woc.svg
Normal file
1434
assets/images/c3woc.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 122 KiB |
|
@ -1 +0,0 @@
|
||||||
Subproject commit ea629a08b9bf19b71637deedc20557a09abeda5b
|
|
|
@ -66,3 +66,12 @@ Am Samstag ist dann auch die Unterstützung aus Darmstadt aufgetaucht. Und es ha
|
||||||
<span class="image main">
|
<span class="image main">
|
||||||
<img src="/blog/gluehpn/fine.jpg" />
|
<img src="/blog/gluehpn/fine.jpg" />
|
||||||
</span>
|
</span>
|
||||||
|
---
|
||||||
|
project:
|
||||||
|
|
||||||
|
#### image ####
|
||||||
|
image: vegan.jpg
|
||||||
|
#### image ####
|
||||||
|
image: vegan.jpg
|
||||||
|
---
|
||||||
|
galerie:
|
||||||
|
|
9
flowblocks/image.ini
Normal file
9
flowblocks/image.ini
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
[block]
|
||||||
|
name = Bild
|
||||||
|
button_label = [[image]]
|
||||||
|
|
||||||
|
[fields.image]
|
||||||
|
label = Bild (im Anhnag dieser Seite)
|
||||||
|
type = select
|
||||||
|
source = record.attachments.images
|
||||||
|
|
|
@ -46,3 +46,9 @@ type = markdown
|
||||||
label = Non Public Body
|
label = Non Public Body
|
||||||
type = markdown
|
type = markdown
|
||||||
|
|
||||||
|
[fields.galerie]
|
||||||
|
label = Galerie
|
||||||
|
type = flow
|
||||||
|
flow_blocks = image
|
||||||
|
width = 1/2
|
||||||
|
|
||||||
|
|
4
templates/blocks/image.html
Normal file
4
templates/blocks/image.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{% set img = record.attachments.images.get(this.image) %}
|
||||||
|
<a href="{{ img.path }}">
|
||||||
|
<img class="image" src="{{ img.thumbnail(360, 360)|url }}" />
|
||||||
|
</a>
|
|
@ -84,7 +84,7 @@
|
||||||
<p>{% if bag('translate', this.alt, 'whoami')
|
<p>{% if bag('translate', this.alt, 'whoami')
|
||||||
%}{{ bag('translate', this.alt, 'whoami') }}{% else %}Das C3WOC besteht aus Hackern aus dem Chaosumfeld. Nimm doch mal mit uns Kontakt auf und lass uns zusammen Waffeln machen!</p>{% endif %}
|
%}{{ bag('translate', this.alt, 'whoami') }}{% else %}Das C3WOC besteht aus Hackern aus dem Chaosumfeld. Nimm doch mal mit uns Kontakt auf und lass uns zusammen Waffeln machen!</p>{% endif %}
|
||||||
<form>
|
<form>
|
||||||
<img src="{{ '/images/logo/c3woc.svg'|url }}" style="width: 100%;"/>
|
<img src="{{ '/images/c3woc.svg'|url }}" style="width: 100%;"/>
|
||||||
</form>
|
</form>
|
||||||
<ul class="contact">
|
<ul class="contact">
|
||||||
{% for icon, link, name in [
|
{% for icon, link, name in [
|
||||||
|
|
|
@ -36,8 +36,15 @@
|
||||||
{{ post.body }}
|
{{ post.body }}
|
||||||
{% if from_index == False %}
|
{% if from_index == False %}
|
||||||
{{ post.privatebody }}
|
{{ post.privatebody }}
|
||||||
|
{{ post.galerie }}
|
||||||
|
{% if post.galerie %}
|
||||||
|
<div class="lightgallery" class="row alt">{%
|
||||||
|
for blk in post.galerie.blocks %}
|
||||||
|
{{ blk }}
|
||||||
|
{% endfor %}</div>{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<h2 class="major">{% if bag('translate', post.alt, 'read')
|
<h2 class="major">{%
|
||||||
|
if bag('translate', post.alt, 'read')
|
||||||
%}{{ bag('translate', post.alt, 'read') }}{% else %}Weiter lesen{% endif %}</h2>
|
%}{{ bag('translate', post.alt, 'read') }}{% else %}Weiter lesen{% endif %}</h2>
|
||||||
<a class="button special fit" href="{{ post|url }}">{{ post.title }}</a>
|
<a class="button special fit" href="{{ post|url }}">{{ post.title }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue