addtheme
This commit is contained in:
16
user/themes/lecampus/templates/partials/blog/date.html.twig
Normal file
16
user/themes/lecampus/templates/partials/blog/date.html.twig
Normal file
@ -0,0 +1,16 @@
|
||||
<div class="date">
|
||||
<span class="dt">
|
||||
Du
|
||||
{% if page.header.date_begin %}
|
||||
<time class="dt-begin" datetime="{{ page.header.date_begin|date("c") }}">
|
||||
{{ page.header.date_begin|date(system.pages.dateformat.short) }}
|
||||
</time>
|
||||
{% endif %}
|
||||
à
|
||||
{% if page.header.date_end %}
|
||||
<time class="dt-end" datetime="{{ page.header.date_end|date("c") }}">
|
||||
{{ page.header.date_end|date(system.pages.dateformat.short) }}
|
||||
</time>
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
@ -0,0 +1,8 @@
|
||||
<div class="p-summary e-content">
|
||||
{% if page.summary != page.content %}
|
||||
{{ page.summary|raw }}
|
||||
{% else %}
|
||||
{{ page.content|raw }}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@ -0,0 +1,8 @@
|
||||
<div class="publics">
|
||||
<span class="pc">
|
||||
{% set page_public = page.header.public %}
|
||||
{% for public in page_public %}
|
||||
{{ public }}
|
||||
{% endfor %}
|
||||
</span>
|
||||
</div>
|
@ -0,0 +1,10 @@
|
||||
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
||||
|
||||
{% if taxlist %}
|
||||
<span class="tags">
|
||||
{% for tax,value in taxlist[taxonomy] %}
|
||||
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
||||
<a class="label label-rounded {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
@ -0,0 +1,9 @@
|
||||
<div class="reseaux-sociaux">
|
||||
{% if page.header.rs %}
|
||||
{% for rs in page.header.rs %}
|
||||
<span class="rs">
|
||||
{{ rs }}
|
||||
</span>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
@ -0,0 +1,7 @@
|
||||
{% if page.taxonomy.tag %}
|
||||
<span class="tags">
|
||||
{% for tag in page.taxonomy.tag %}
|
||||
<a class="label label-rounded {{ label_style ?: 'label-secondary' }} p-category" href="{{ blog.url|rtrim('/') }}/tag{{ config.system.param_sep }}{{ tag }}#body-wrapper">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
11
user/themes/lecampus/templates/partials/blog/title.html.twig
Normal file
11
user/themes/lecampus/templates/partials/blog/title.html.twig
Normal file
@ -0,0 +1,11 @@
|
||||
{% set title_level = title_level ?: 'h2' %}
|
||||
{% if page.header.link %}
|
||||
<{{ title_level }} class="p-name mt-1">
|
||||
{% if page.header.continue_link is not same as(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>
|
||||
</{{ title_level }}>
|
||||
{% else %}
|
||||
<{{ title_level }} class="p-name mt-1"><a href="{{ page.url }}" class="u-url">{{ page.title }}</a></{{ title_level }}>
|
||||
{% endif %}
|
Reference in New Issue
Block a user