2023-01-10 02:46:34 +01:00
|
|
|
{% extends 'partials/base.html.twig' %}
|
2023-01-10 10:42:12 +01:00
|
|
|
{% set blog_image = page.media.images[page.header.hero_image] ?: page.media.images|first %}
|
2023-01-10 02:46:34 +01:00
|
|
|
{% set collection = page.collection() %}
|
2023-01-10 10:42:12 +01:00
|
|
|
{# revise checks for Blog list page options - hibbittsdesign.org #}
|
|
|
|
{% if page.header.show_breadcrumbs is defined %}
|
|
|
|
{% set show_breadcrumbs = page.header.show_breadcrumbs %}
|
|
|
|
{% else %}
|
|
|
|
{% set show_breadcrumbs = true %}
|
|
|
|
{% endif %}
|
|
|
|
{% if page.header.show_sidebar is defined %}
|
|
|
|
{% set show_sidebar = page.header.show_sidebar %}
|
|
|
|
{% else %}
|
|
|
|
{% set show_sidebar = true %}
|
|
|
|
{% endif %}
|
|
|
|
{% if page.header.show_pagination is defined %}
|
|
|
|
{% set show_pagination = page.header.show_pagination %}
|
|
|
|
{% else %}
|
|
|
|
{% set show_pagination = true %}
|
2023-01-10 02:46:34 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2023-01-10 10:42:12 +01:00
|
|
|
{% block stylesheets %}
|
|
|
|
{% do assets.addCss('theme://css/bricklayer.css') %}
|
|
|
|
{{ parent() }}
|
|
|
|
{% endblock %}
|
2023-01-10 10:30:08 +01:00
|
|
|
|
2023-01-10 10:42:12 +01:00
|
|
|
{% block javascripts %}
|
|
|
|
{{ parent() }}
|
|
|
|
{% do assets.add('theme://js/bricklayer.min.js') %}
|
2023-01-10 02:46:34 +01:00
|
|
|
{% endblock %}
|
2023-01-10 10:29:18 +01:00
|
|
|
|
2023-01-10 10:42:12 +01:00
|
|
|
{# check content display flag - hibbittsdesign.org #}
|
|
|
|
{% if not (grav.uri.param('chromeless') or grav.uri.param('embedded') or grav.uri.param('standalone')) and not(theme_var('chromeless.enabled')) %}
|
|
|
|
{% block hero %}
|
|
|
|
{% include 'partials/hero.html.twig' with {id: 'blog-hero', content: page.content, hero_image: blog_image} %}
|
|
|
|
{% endblock %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<section id="body-wrapper" class="section blog-listing">
|
|
|
|
<section class="container {{ grid_size }}">
|
|
|
|
|
|
|
|
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
|
|
|
{% include 'partials/breadcrumbs.html.twig' %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% embed 'partials/layout.html.twig' with {blog: page} %}
|
|
|
|
{% block item %}
|
|
|
|
|
|
|
|
{# Added support for modular page content - hibbittsdesign.org #}
|
|
|
|
{% if ((page.header.bricklayer_layout is not defined) or (page.header.bricklayer_layout)) %}
|
|
|
|
<div class="bricklayermodulars">
|
|
|
|
{% else %}
|
|
|
|
<div>
|
|
|
|
{% endif %}
|
|
|
|
{% if page.collection('modular_content') is not empty %}
|
|
|
|
{% for module in page.collection('modular_content') %}
|
|
|
|
{% if (module.content|striptags)|trim %}
|
|
|
|
<p>{{ module.content|raw }}</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
2023-01-10 11:18:27 +01:00
|
|
|
<div class="events-container">
|
|
|
|
<section class="events-listing">
|
|
|
|
{% if collection|length != 0 %}
|
|
|
|
{% for event in collection %}
|
|
|
|
{% include 'partials/event_item.html.twig' with { 'page': event, 'single': false } %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<h3>{{ "PLUGIN_EVENTS.EVENTS.NO_EVENTS_TITLE"|t }}</h3>
|
|
|
|
<p>{{ ("PLUGIN_EVENTS.EVENTS.NO_EVENTS_CONTENT"|t(uri.param('category')))|markdown }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
|
|
|
</div>
|
2023-01-10 10:42:12 +01:00
|
|
|
|
|
|
|
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
|
|
|
|
<div id="listing-footer">
|
|
|
|
{% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div style="text-align:center;">
|
|
|
|
{# check to display CC License - hibbittsdesign.org #} {# check to display git sync link in page - hibbittsdesign.org #}
|
|
|
|
{% if theme_var('display_of_git_sync_repo_link') == 'page' and not (grav.uri.param('summaryonly') or grav.uri.param('onlysummary')) %}
|
|
|
|
<p>{% include 'partials/git_sync_repo_link_note.html.twig' %}</p>
|
|
|
|
{% endif %}
|
|
|
|
{% if not (grav.uri.param('chromeless') or grav.uri.param('embedded') or grav.uri.param('standalone')) and not(theme_var('chromeless.enabled')) and (theme_var('cc_license.enabled') and not(page.header.hide_cc_license) and not (grav.uri.param('onlysummary'))) %}
|
|
|
|
<p>{% include 'partials/creative_commons_license.html.twig' %}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{# check content display flag - hibbittsdesign.org #}
|
|
|
|
{% if not (grav.uri.param('chromeless') or grav.uri.param('embedded') or grav.uri.param('standalone')) and not(theme_var('chromeless.enabled')) %}
|
|
|
|
{% block sidebar %}
|
2023-01-10 10:43:56 +01:00
|
|
|
{% include 'partials/events_sidebar.html.twig' %}
|
2023-01-10 10:42:12 +01:00
|
|
|
{% endblock %}
|
|
|
|
{% endif %}
|
|
|
|
{% endembed %}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
<script>
|
|
|
|
//Bricklayer
|
|
|
|
{% if ((page.header.bricklayer_layout is not defined) or (page.header.bricklayer_layout)) %}
|
|
|
|
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
|
|
|
|
{% endif %}
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|