75 lines
2.6 KiB
Twig
Raw Normal View History

2019-05-27 17:03:03 +02:00
<script type='application/ld+json'>
{
"@type": "Event",
"name": "agenda",
"url": "{{uri.base}}",
2019-07-08 14:37:24 +02:00
"description": "{{page.summary|striptags}}",
2019-05-27 17:03:03 +02:00
"startDate": "{{page.header.date_begin}}",
"endDate": "{{page.header.date_end}}",
"location": {
"@type": "Place",
"name": "{{page.title}}",
"address": {
"@type": "PostalAddress",
"streetAddress": "Place Michel Paulus,Ecosite du Val de Drôme",
"addressLocality": "Eurre",
"addressRegion": "Val de Drôme",
"postalCode": "26400",
"addressCountry": "France"
}
}
}
2019-07-08 14:37:24 +02:00
2019-05-27 17:03:03 +02:00
</script>
2019-04-02 19:54:29 +02:00
{% set image = page.media.images|first %}
2019-05-14 19:59:47 +02:00
<div class="event">
2019-05-27 17:03:03 +02:00
2019-05-31 23:37:11 +02:00
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
{% import _self as macro %}
{% for tag in page.taxonomy.tag %}
<div class="card-header {{ macro.pageLinkName(tag) }}">
{% endfor %}
2019-05-09 00:26:27 +02:00
{% include 'partials/blog/public.html.twig' %}
</div>
2019-05-14 19:59:47 +02:00
2019-05-09 00:26:27 +02:00
{% if image %}
2019-05-14 19:59:47 +02:00
<div class="card-image">
2019-07-08 13:09:07 +02:00
{{ image.html('',page.title) }}
2019-05-14 19:59:47 +02:00
</div>
2019-05-09 00:26:27 +02:00
{% endif %}
2019-05-14 19:59:47 +02:00
2019-05-09 00:26:27 +02:00
<div class="card-body">
<div class="card-title">
{% include 'partials/blog/date.html.twig' %}
2019-05-14 19:59:47 +02:00
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
2019-04-08 18:00:38 +02:00
</div>
2019-05-14 19:59:47 +02:00
</div>
<div class="card-content">
2019-05-09 00:26:27 +02:00
<div class="reso">
<!-- Your share button code -->
2019-06-19 16:33:20 +02:00
<div>
2019-05-27 17:03:03 +02:00
<a href="//www.facebook.com/sharer/sharer.php?u={{uri.route(true, true)}}" class="sharebox" target="_blank" rel =" noopener " onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=700');return false;">
Partager
<img src="/user/themes/lecampus/images/fb_black.svg" alt="facebook">
</a>
</div>
2019-06-13 12:12:10 +02:00
<a target="_blank" rel =" noopener " title="Twitter" href="https://twitter.com/share?url={{uri.route(true, true)}}" rel="nofollow" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=700');return false;">
2019-05-27 17:03:03 +02:00
Partager
<img src="/user/themes/lecampus/images/twitter.svg" alt="Twitter">
</a>
2019-06-13 12:12:10 +02:00
<a target="_blank" rel =" noopener " href=" http://www.linkedin.com/shareArticle?mini=true&url={{uri.route(true, true)}}" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=700');return false;">
Partager
2019-05-27 17:03:03 +02:00
<img src="/user/themes/lecampus/images/in_black.svg" alt="linkedin" />
</a>
2019-05-09 00:26:27 +02:00
</div>
2019-05-14 19:59:47 +02:00
<div class="txt">
2019-05-09 00:26:27 +02:00
{{page.content}}
2019-04-02 19:54:29 +02:00
</div>
2019-05-09 00:26:27 +02:00
</div>
</div>