Commit ded691b2 authored by ancoats's avatar ancoats
Browse files

Add image grid and body fields to local group user template

parent e94d5a51
contentColumnType: string
fieldGroup: 49d14a4d-e8f9-429c-8347-b8c146f3d1fc
handle: avatar
instructions: ''
name: Avatar
searchable: false
settings:
allowSelfRelations: false
allowUploads: true
allowedKinds: null
defaultUploadLocationSource: 'volume:891621e5-4843-479a-a05d-54d8a9f69add'
defaultUploadLocationSubpath: ''
limit: '1'
localizeRelations: false
previewMode: full
restrictFiles: ''
selectionLabel: ''
showSiteMenu: false
showUnpermittedFiles: false
showUnpermittedVolumes: false
singleUploadLocationSource: 'volume:891621e5-4843-479a-a05d-54d8a9f69add'
singleUploadLocationSubpath: ''
source: null
sources: '*'
targetSiteId: null
useSingleFolder: false
validateRelatedElements: false
viewMode: large
translationKeyFormat: null
translationMethod: site
type: craft\fields\Assets
dateModified: 1611411740
dateModified: 1611428597
email:
fromEmail: it@extinctionrebellion.be
fromName: 'Extinction Rebellion Belgium'
......
......@@ -28,6 +28,35 @@ tabs:
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: b17fc616-8104-4f01-ad1f-d05f58e99614
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
type: craft\fieldlayoutelements\HorizontalRule
-
fieldUid: b9ef778d-4043-4f7b-ac8e-8f7e36981eaa
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: 5c9e387a-9279-4455-889d-a528b2950a08
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
name: Profile
sortOrder: 1
-
......
......@@ -26,13 +26,9 @@
{% include '_partials/components/template-page/page-header.twig' %}
<div class="tell-the-truth">
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: user.userURL,
tileButtonLabel: user.userURL | replace({
'http://': '',
'https://': '',
'www.': ''
}),
tileTheme: 'extinction-part-one'
tileButtonURL: (queryEvents.count() ? '#upcoming-events'),
tileButtonLabel: (queryEvents.count() ? 'Upcoming events'|t),
tileTheme: 'hourglass'
} %}
{% include '_partials/components/shared/tile.twig' with {
tileButtonURL: (user.userEmailPublic ? "mailto:#{user.userEmailPublic}"),
......@@ -45,17 +41,31 @@
user: user
} %}
</div>
{% embed '_partials/components/default/entries-grid.twig' with {
entries: queryEvents.limit(entriesPerPage).all(),
heading: 'Upcoming events from {author}'|t({
author: user.userNamePublic | default(user.name)
})
} %}
{% block loop %}
{% for entry in entries %}
{% include '_partials/components/template-entry-event/entry-card.twig' %}
{% endfor %}
{% endblock %}
{% endembed %}
{% if user.body %}
<section class="c-panel">
<div class="container">
<div class="s-redactor">
{{ user.body }}
</div>
</div>
</section>
{% endif %}
</article>
{% embed '_partials/components/default/entries-grid.twig' with {
entries: queryEvents.limit(entriesPerPage).all(),
class: 'u-background-color-blue-lazuli u-color-white',
id: 'upcoming-events',
heading: 'Upcoming events from {user}'|t({
user: user.userNamePublic | default(user.name)
})
} %}
{% block loop %}
{% for entry in entries %}
{% include '_partials/components/template-entry-event/entry-card.twig' %}
{% endfor %}
{% endblock %}
{% endembed %}
{% include '_partials/components/shared/image-grid.twig' with {
images: user.imageGrid.all()
} %}
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment