first commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{% embed 'partials/base.html.twig' %}
|
||||
|
||||
{% set collection = page.collection() %}
|
||||
|
||||
{% block content %}
|
||||
{% set blog_image = page.media.images|first.grayscale().contrast(20).brightness(-100).colorize(-35,81,122) %}
|
||||
|
||||
{% if blog_image %}
|
||||
<div class="flush-top blog-header blog-header-image" style="background-image: url({{ blog_image.url }});">
|
||||
{% else %}
|
||||
<div class="blog-header">
|
||||
{% endif %}
|
||||
{{ page.content }}
|
||||
</div>
|
||||
|
||||
{% if config.plugins.breadcrumbs.enabled %}
|
||||
{% include 'partials/breadcrumbs.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
<div class="content-wrapper blog-content-list grid pure-g">
|
||||
<div id="listing" class="block pure-u-2-3 h-feed">
|
||||
{% for child in collection %}
|
||||
{% include 'partials/blog_item.html.twig' with {'blog':page, 'page':child, 'truncate':true} %}
|
||||
{% endfor %}
|
||||
|
||||
{% if config.plugins.pagination.enabled and collection.params.pagination %}
|
||||
{% include 'partials/pagination.html.twig' with {'base_url':page.url, 'pagination':collection.params.pagination} %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div id="sidebar" class="block size-1-3 pure-u-1-3">
|
||||
{% include 'partials/sidebar.html.twig' with {'blog':page} %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% endembed %}
|
||||
@@ -0,0 +1,5 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
{{ page.content }}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,12 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<div id="error">
|
||||
<div>
|
||||
<h1>{{ 'ERROR'|t }} {{ page.header.http_response_code }}</h1>
|
||||
<p>
|
||||
{{ page.content }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ content }}
|
||||
{% include "forms/form.html.twig" %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,43 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
|
||||
{% set cc = taxonomy.findTaxonomy({'category':'sous-menu'}) %}
|
||||
|
||||
{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block javascripts %}
|
||||
{% if show_onpage_menu %}
|
||||
{% endif %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block header_navigation %}
|
||||
{% if show_onpage_menu %}
|
||||
<ul class="navigation">
|
||||
{% for module in page.collection() %}
|
||||
<li class="{{module.header.body_classes}}">
|
||||
<a href="#{{ _self.pageLinkName(module.folder) }}">{{ module.menu }}</a>
|
||||
{% for child in module.collection %}
|
||||
{% if child in cc %}
|
||||
<ol>
|
||||
<a href="#{{ _self.pageLinkName(child.folder) }}">{{ child.menu }}</a>
|
||||
</ol>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
</ul>
|
||||
{% else %}
|
||||
{{ parent() }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{{ page.content }}
|
||||
{% for module in page.collection() %}
|
||||
<div id="{{ _self.pageLinkName(module.folder) }}" class="column ">
|
||||
{{ module.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,18 @@
|
||||
{% embed 'partials/base.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
{% if config.plugins.breadcrumbs.enabled %}
|
||||
{% include 'partials/breadcrumbs.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
<div class="blog-content-item grid pure-g-r">
|
||||
<div id="item" class="block pure-u-2-3 h-entry">
|
||||
{% include 'partials/blog_item.html.twig' with {'blog':page.parent, 'truncate':false} %}
|
||||
</div>
|
||||
<div id="sidebar" class="block size-1-3 pure-u-1-3">
|
||||
{% include 'partials/sidebar.html.twig' with {'blog':page.parent}%}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% endembed %}
|
||||
@@ -0,0 +1,3 @@
|
||||
{% macro input(name, value, type, size) %}
|
||||
<input type="{{ type|default('text') }}" name="{{ name }}" value="{{ value|e }}" size="{{ size|default(20) }}" />
|
||||
{% endmacro %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{{ header.title }}</h3>
|
||||
{{ page.content }}
|
||||
{% for child in page.collection() %}
|
||||
<div id="{{ _self.pageLinkName(child.folder) }}">
|
||||
{{ child.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{{ header.title }}</h2>
|
||||
{{ page.content }}
|
||||
{% for module in page.collection() %}
|
||||
<div id="{{ _self.pageLinkName(module.folder) }}">
|
||||
{{ module.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{{ header.title }}</h3>
|
||||
{{ page.content }}
|
||||
{% for child in page.collection() %}
|
||||
<div id="{{ _self.pageLinkName(child.folder) }}">
|
||||
{{ child.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,6 @@
|
||||
{% set image = page.media.images|first %}
|
||||
{% if image %}
|
||||
{{ image.cropResize(400,400).html('','','align-'~page.header.image_align) }}
|
||||
{% endif %}
|
||||
<h3>{{ header.title }}</h3>
|
||||
{{ content }}
|
||||
@@ -0,0 +1,13 @@
|
||||
{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<div class="multi-column">
|
||||
<h2>{{ header.title }}</h2>
|
||||
{{ page.content }}
|
||||
</div>
|
||||
{% for module in page.collection() %}
|
||||
<div id="{{ _self.pageLinkName(module.folder) }}" class="mutli-column">
|
||||
{{ module.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,6 @@
|
||||
{% set image = page.media.images|first %}
|
||||
{% if image %}
|
||||
{{ image.cropResize(400,400).html('','','align-'~page.header.image_align) }}
|
||||
{% endif %}
|
||||
<h3>{{ header.title }}</h3>
|
||||
{{ content }}
|
||||
@@ -0,0 +1,14 @@
|
||||
{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2>{{ header.title }}</h2>
|
||||
|
||||
{{ page.content }}
|
||||
{% for module in page.collection() %}
|
||||
|
||||
<div id="{{ _self.pageLinkName(module.folder) }}" class="column">
|
||||
{{ module.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,22 @@
|
||||
<div class="modular-row features {{ page.header.class}}">
|
||||
{{ content }}
|
||||
<div class="feature-items">
|
||||
{% for feature in page.header.features %}
|
||||
<div class="feature">
|
||||
{% if feature.icon %}
|
||||
<i class="fa fa-fw fa-{{ feature.icon }}"></i>
|
||||
<div class="feature-content icon-offset">
|
||||
{% else %}
|
||||
<div class="feature-content">
|
||||
{% endif %}
|
||||
{% if feature.header %}
|
||||
<h4>{{ feature.header }}</h4>
|
||||
{% endif %}
|
||||
{% if feature.text %}
|
||||
<p>{{ feature.text }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="modular-row gallery-container {{ page.header.class }}">
|
||||
{{ unite_gallery(page.media.images) }}
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
{% macro pageLinkName(text) %}{{ text|lower|replace({'01._':'','02._':'','03._':'','04._':'','05._':'','06._':'','07._':'','08._':'','09._':''}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{{ header.title }}</h3>
|
||||
{{ page.content }}
|
||||
{% for child in page.collection() %}
|
||||
<div id="{{ _self.pageLinkName(child.folder) }}">
|
||||
{{ child.content }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,13 @@
|
||||
{% set showcase_image = page.media.images|first.grayscale().contrast(20).brightness(-125).colorize(-35,81,122) %}
|
||||
{% if showcase_image %}
|
||||
<div class="modular-row showcase{% if page == page.parent.collection.first %} flush-top{% endif %}" style="background-image: url({{ showcase_image.url }});">
|
||||
{% else %}
|
||||
<div class="modular-row showcase">
|
||||
{% endif %}
|
||||
{{ content }}
|
||||
|
||||
{% for button in page.header.buttons %}
|
||||
<a class="button{% if button.primary %} primary{% endif %}" href="{{ button.url }}">{{ button.text }}</a>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,85 @@
|
||||
{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ grav.language.getLanguage ?: 'fr' }}">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta charset="utf-8" />
|
||||
<title>{% if header.title %}{{ header.title|e('html') }} | {% endif %}{{ config.site.title|t('html') }}</title>
|
||||
{% include 'partials/metadata.html.twig' %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<link rel="icon" type="image/png" href="{{ url('theme://images/favicon.png') }}" />
|
||||
<link rel="canonical" href="{{ page.url(true, true) }}" />
|
||||
<link rel="alternate" href="/home-fr" hreflang="fr" />
|
||||
<link rel="alternate" href="/home-en" hreflang="en" />
|
||||
|
||||
{% block stylesheets %}
|
||||
{% do assets.addCss('theme://css/jquery.bxslider.css', 101) %}
|
||||
{% do assets.addCss('theme://css/style.css', 101) %}
|
||||
{% do assets.addCss('theme://css-compiled/template.css', 101) %}
|
||||
{% do assets.addCss('theme://css/jquery.mCustomScrollbar.css', 101) %}
|
||||
{% do assets.addCss('theme://css/media-queries.css', 101) %}
|
||||
|
||||
{% endblock %}
|
||||
{{ assets.css() }}
|
||||
|
||||
{% block javascripts %}
|
||||
{% do assets.addJs('jquery', 101) %}
|
||||
{% do assets.addJs('theme://js/jquery.mCustomScrollbar.concat.min.js') %}
|
||||
{% do assets.addJs('theme://js/jquery.bxslider.min.js') %}
|
||||
{% do assets.addJs('theme://js/script.js') %}
|
||||
|
||||
{% endblock %}
|
||||
{{ assets.js() }}
|
||||
{% endblock head %}
|
||||
</head>
|
||||
|
||||
<body id="top">
|
||||
|
||||
{% block header %}
|
||||
<header id="header">
|
||||
<div id="logo">
|
||||
<h1><a href="{{ base_url == '' ? '/fr' : base_url }}">{{ config.site.title|t }}</a></h1>
|
||||
<div class="fr-en">
|
||||
<a href="fr">Fr</a>
|
||||
/
|
||||
<a href="en">En</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="navbar">
|
||||
<div class="menu-ui">
|
||||
<div class="picto">
|
||||
</div>
|
||||
</div>
|
||||
{% block header_navigation %}{% endblock %}
|
||||
</div>
|
||||
<div class="app">
|
||||
<a href="https://ethica-spinoza.net/">
|
||||
<img src="/user/themes/ethica/images/logo.svg" alt="">
|
||||
<strong>Ethica-spinoza.net</strong>
|
||||
</a>
|
||||
</div>
|
||||
<div class="separation"></div>
|
||||
</header>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<section id="body">
|
||||
<div class="content">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
<footer id="footer">
|
||||
</footer>
|
||||
{% endblock %}
|
||||
|
||||
{% block bottom %}
|
||||
{{ assets.js('bottom') }}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,88 @@
|
||||
<div class="list-item h-entry">
|
||||
|
||||
{% set header_image = page.header.header_image|defined(true) %}
|
||||
{% set header_image_width = page.header.header_image_width|defined(900) %}
|
||||
{% set header_image_height = page.header.header_image_height|defined(300) %}
|
||||
{% set header_image_file = page.header.header_image_file %}
|
||||
|
||||
<div class="list-blog-header">
|
||||
<span class="list-blog-date">
|
||||
<time class="dt-published" datetime="{{ page.date|date("c") }}">
|
||||
<span>{{ page.date|date("d") }}</span>
|
||||
<em>{{ page.date|date("M") }}</em>
|
||||
</time>
|
||||
</span>
|
||||
{% if page.header.link %}
|
||||
<h4 class="p-name">
|
||||
{% if page.header.continue_link is not sameas(false) %}
|
||||
<a href="{{ page.url }}"><i class="fa fa-angle-double-right u-url"></i></a>
|
||||
{% endif %}
|
||||
<a href="{{ page.header.link }}" class="u-url">{{ page.title }}</a>
|
||||
</h4>
|
||||
{% else %}
|
||||
<h4 class="p-name"><a href="{{ page.url }}" class="u-url">{{ page.title }}</a></h4>
|
||||
{% endif %}
|
||||
|
||||
{% if page.taxonomy.tag %}
|
||||
<span class="tags">
|
||||
{% for tag in page.taxonomy.tag %}
|
||||
<a href="{{ blog.url|rtrim('/') }}/tag{{ config.system.param_sep }}{{ tag }}" class="p-category">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if header_image %}
|
||||
{% if header_image_file %}
|
||||
{% set header_image_media = page.media.images[header_image_file] %}
|
||||
{% else %}
|
||||
{% set header_image_media = page.media.images|first %}
|
||||
{% endif %}
|
||||
{{ header_image_media.cropZoom(header_image_width, header_image_height).html }}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="list-blog-padding">
|
||||
|
||||
{% if page.header.continue_link is sameas(false) %}
|
||||
<div class="e-content">
|
||||
{{ page.content }}
|
||||
</div>
|
||||
{% if not truncate %}
|
||||
{% set show_prev_next = true %}
|
||||
{% endif %}
|
||||
{% elseif truncate and page.summary != page.content %}
|
||||
<div class="p-summary e-content">
|
||||
{{ page.summary }}
|
||||
<p><a href="{{ page.url }}">{{ 'BLOG.ITEM.CONTINUE_READING'|t }}</a></p>
|
||||
</div>
|
||||
{% elseif truncate %}
|
||||
<div class="p-summary e-content">
|
||||
{{ page.content }}
|
||||
<p><a href="{{ page.url }}">{{ 'BLOG.ITEM.CONTINUE_READING'|t }}</a></p>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="e-content">
|
||||
{{ page.content }}
|
||||
</div>
|
||||
|
||||
{% if config.plugins.comments.enabled %}
|
||||
{% include 'partials/comments.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
{% set show_prev_next = true %}
|
||||
{% endif %}
|
||||
|
||||
{% if show_prev_next %}
|
||||
<p class="prev-next">
|
||||
{% if not page.isFirst %}
|
||||
<a class="button" href="{{ page.nextSibling.url }}"><i class="fa fa-chevron-left"></i> {{ 'BLOG.ITEM.NEXT_POST'|t }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if not page.isLast %}
|
||||
<a class="button" href="{{ page.prevSibling.url }}">{{ 'BLOG.ITEM.PREV_POST'|t }} <i class="fa fa-chevron-right"></i></a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,30 @@
|
||||
<ul class="langswitcher">
|
||||
{% for language in langswitcher.languages %}
|
||||
|
||||
{% set show_language = true %}
|
||||
{% if language == langswitcher.current %}
|
||||
{% set lang_url = page.url %}
|
||||
{% set active_class = ' active' %}
|
||||
{% else %}
|
||||
{% set base_lang_url = base_url_simple ~ grav.language.getLanguageURLPrefix(language) %}
|
||||
{% set lang_url = base_lang_url ~ langswitcher.page_route ~ page.urlExtension %}
|
||||
{% set untranslated_pages_behavior = grav.config.plugins.langswitcher.untranslated_pages_behavior %}
|
||||
{% if untranslated_pages_behavior != 'none' %}
|
||||
{% set translated_page = langswitcher.translated_pages[language] %}
|
||||
{% if (not translated_page) or (not translated_page.published) %}
|
||||
{% if untranslated_pages_behavior == 'redirect' %}
|
||||
{% set lang_url = base_lang_url ~ '/' %}
|
||||
{% elseif untranslated_pages_behavior == 'hide' %}
|
||||
{% set show_language = false %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% set active_class = '' %}
|
||||
{% endif %}
|
||||
|
||||
{% if show_language %}
|
||||
<li><a href="{{ lang_url ~ uri.params }}" class="external{{ active_class }}">{{ native_name(language)|capitalize }}</a></li>
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
@@ -0,0 +1,3 @@
|
||||
{% for meta in page.metadata %}
|
||||
<meta {% if meta.name %}name="{{ meta.name }}" {% endif %}{% if meta.http_equiv %}http-equiv="{{ meta.http_equiv }}" {% endif %}{% if meta.charset %}charset="{{ meta.charset }}" {% endif %}{% if meta.property %}property="{{ meta.property }}" {% endif %}{% if meta.content %}content="{{ meta.content }}" {% endif %}/>
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,51 @@
|
||||
{% macro loop(page) %}
|
||||
{% for p in page.children.visible %}
|
||||
{% set current_page = (p.active or p.activeChild) ? 'active' : '' %}
|
||||
{% if p.children.visible.count > 0 %}
|
||||
<li>
|
||||
<a href="{{ p.url }}">
|
||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||
{{ p.menu }}
|
||||
<span></span>
|
||||
</a>
|
||||
<ul>
|
||||
{{ _self.loop(p) }}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li>
|
||||
<a href="{{ p.url }}">
|
||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||
{{ p.menu }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
|
||||
<ul class="navigation">
|
||||
{% if theme_config.dropdown.enabled %}
|
||||
{{ _self.loop(pages) }}
|
||||
{% else %}
|
||||
{% for page in pages.children.visible %}
|
||||
{% set current_page = (page.active or page.activeChild) ? 'active' : '' %}
|
||||
<li>
|
||||
<a href="{{ page.url }}">
|
||||
{% if page.header.icon %}<i class="fa fa-{{ page.header.icon }}"></i>{% endif %}
|
||||
{{ page.menu }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% for mitem in site.menu %}
|
||||
<li>
|
||||
<a href="{{ mitem.url }}">
|
||||
{% if mitem.icon %}<i class="fa fa-{{ mitem.icon }}"></i>{% endif %}
|
||||
{{ mitem.text }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% if config.plugins.login.enabled and grav.user.username %}
|
||||
<li><i class="fa fa-lock"></i> {% include 'partials/login-status.html.twig' %}</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
@@ -0,0 +1,42 @@
|
||||
{% set feed_url = blog.url == '/' or blog.url == base_url_relative ? (base_url_relative~'/'~blog.slug) : blog.url %}
|
||||
{% set new_base_url = blog.url == '/' ? '' : blog.url %}
|
||||
|
||||
{% if config.plugins.simplesearch.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>{{ 'SIDEBAR.SIMPLE_SEARCH.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/simplesearch_searchbox.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.plugins.relatedpages.enabled and related_pages|length > 0 %}
|
||||
<h4>{{ 'SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/relatedpages.html.twig' %}
|
||||
{% endif %}
|
||||
{% if config.plugins.random.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>{{ 'SIDEBAR.RANDOM_ARTICLE.HEADLINE'|t }}</h4>
|
||||
<a class="button" href="{{ base_url }}/random"><i class="fa fa-retweet"></i> {{ 'SIDEBAR.RANDOM_ARTICLE.FEELING_LUCKY'|t }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="sidebar-content">
|
||||
<h4>{{ 'SIDEBAR.SOME_TEXT_WIDGET.HEADLINE'|t }}</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.</p>
|
||||
</div>
|
||||
{% if config.plugins.taxonomylist.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>{{ 'SIDEBAR.POPULAR_TAGS.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag'} %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.plugins.archives.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>{{ 'SIDEBAR.ARCHIVES.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/archives.html.twig' with {'base_url':new_base_url} %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.plugins.feed.enabled %}
|
||||
<div class="sidebar-content syndicate">
|
||||
<h4>{{ 'SIDEBAR.SYNDICATE.HEADLINE'|t }}</h4>
|
||||
<a class="button" href="{{ feed_url }}.atom"><i class="fa fa-rss-square"></i> Atom 1.0</a>
|
||||
<a class="button" href="{{ feed_url }}.rss"><i class="fa fa-rss-square"></i> RSS</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user