first commit

This commit is contained in:
armansansd
2023-07-12 16:31:19 +01:00
commit 3424b1927b
23306 changed files with 2217776 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
{% set source = top.header.media_thumbnail %}
{% if source != null%}
{% set info = "url('"~top.url~"\/"~source~"')" %}
{% else %}
{% set info = null %}
{% endif %}
{% set color = top.header.color %}
{% switch color %}
{% case "blue" %}
{% set c1 = "rgba(59,109,125,1)" %}
{% set c2 = "rgba(59,109,125,0)" %}
{% case "green" %}
{% set c1 = "rgba(116,162,111,1)" %}
{% set c2 = "rgba(116,162,111,0)" %}
{% case "red" %}
{% set c1 = "rgba(216,98,100,1)" %}
{% set c2 = "rgba(216,98,100,0)" %}
{% endswitch %}
<div class="columns small-12 art_head">
{% if page.template == "home" %}
<a style="background:{{ info }} {{c1}}" href="{{ top.url }}">
<div class="row align-bottom">
{% else %}
{# <a style="background:{{ info }} {{c1}}"> #}
<div style="background:{{ info }} {{c1}}" class="row align-bottom">
{% endif %}
<div style="z-index:0;background:linear-gradient(to right, {{c1}},{{c2}});" class=" cover_top"></div>
{% if page.template == "home" %}
<div class="columns medium-8 medium-offset-2 small-8 small-offset-1 align-self-bottom info_top top_home">
{% else %}
<div class="columns medium-8 medium-offset-2 small-8 small-offset-1 align-self-bottom info_top">
{% endif %}
<span class="tag pinky" style="background:{{c1}}" ><span>{{ top.header.taxonomy.category|first }}</span></span>
<br>
<mark>{{ top.title }}</mark>
<br>
{% if page.template == "home" %}
{% if top.header.dlp != "" %}
<span class="date" >{{ top.header.dlp }}</span>
{% else %}
<span class="date" >
{{top.header.date|date('d')}} {{'GRAV.MONTHS_OF_THE_YEAR'|ta(top.header.date|date('n') - 1)}} {{top.header.date|date('Y')}}
</span>
{% endif %}
{% endif %}
</div>
</div>
{% if page.template == "home" %}
</a>
{% endif %}
</div>
+62
View File
@@ -0,0 +1,62 @@
{% set theme_config = attribute(config.themes, config.system.pages.theme) %}
<!DOCTYPE html>
<html lang="{{ grav.language.getActive ?: theme_config.default_lang }}">
<head>
{% block head %}
<meta charset="utf-8" />
<title>{% if header.title %}{{ header.title|e('html') }} ~ {% endif %}{{ site.title|e('html') }}</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% include 'partials/metadata.html.twig' %}
<!-- <link rel="icon" type="image/png" href="{ # url('theme://images/logo.png') #}" /> -->
<link rel="canonical" href="{{ page.url(true, true) }}" />
{% block stylesheets %}
{% do assets.addCss('theme://css/app.css?q=577') %}
{% endblock %}
{# <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.css"/> #}
{{ assets.css() }}
{% block javascripts %}
{% do assets.addJs('theme://js/app.js?q=39', 100) %}
{% endblock %}
{{ assets.js() }}
{% endblock head%}
</head>
<body id="top" class="{{ page.header.body_classes }}">
{% set yt = page.find("\/contact").header.yt %}
{% set fb = page.find("\/contact").header.fb %}
{% set tw = page.find("\/contact").header.tw %}
{% set newsletter = page.find("\/contact").header.newsletter %}
{% include 'partials/header.html.twig' %}
{% block body %}
<data id="mj-w-res-data" data-token="32f3438cb8ff66b06fae26eea7341b92" class="mj-w-data" data-apikey="ctK" data-w-id="Hrj" data-lang="fr_FR" data-base="https://app.mailjet.com" data-width="640" data-height="450" data-statics="statics"></data>
<div class="row main">
{% block content %}
{% endblock %}
</div>
{% endblock %}
{% block footer %}
<div class="row">
<div class="footer columns small-12">
{% include 'partials/footer.html.twig' %}
</div>
</div>
{% endblock %}
{% block bottom %}
{{ assets.js('bottom') }}
<script type="text/javascript" src="https://app.mailjet.com/statics/js/widget.modal.js"></script>
{% endblock %}
</body>
</html>
View File
+39
View File
@@ -0,0 +1,39 @@
{% macro menu(page) %}
{% for p in page.children %}
{% if p.template == "default" or p.template == "info" %}
<a class="item" href="{{ p.url }}">{{ p.title }}</a>&nbsp;|&nbsp;
{% endif %}
{% endfor %}
{% endmacro %}
<div class="row">
<div class="columns medium-8 medium-offset-1 small-6 small-offset-1">
<ul class="nav-footer">
{{ _self.menu(pages) }}
</ul>
</div>
<div class="columns medium-2 small-4 media">
<div class="row align-middle">
<div class="columns small-12 socials">
<a href="{{tw}}">
<img src="{{ url('theme://images/tw.svg') }}" alt="">
</a>
<a href="{{yt}}">
<img src="{{ url('theme://images/YT.svg') }}" alt="">
</a>
<a href="{{fb}}">
<img src="{{ url('theme://images/fb.svg') }}" alt="">
</a>
</div>
</div>
</div>
</div>
+46
View File
@@ -0,0 +1,46 @@
{% set source = post.header.media_thumbnail %}
{% if source != null%}
{% set info = "url('"~post.url~"\/"~source~"')" %}
{% else %}
{% set info = null %}
{% endif %}
{% set color = post.header.color %}
{% switch color %}
{% case "blue" %}
{% set c1 = "rgba(59,109,125,1)" %}
{% set c2 = "rgba(59,109,125,0)" %}
{% case "green" %}
{% set c1 = "rgba(116,162,111,1)" %}
{% set c2 = "rgba(116,162,111,0)" %}
{% case "red" %}
{% set c1 = "rgba(216,98,100,1)" %}
{% set c2 = "rgba(216,98,100,0)" %}
{% endswitch %}
<div class=" columns medium-4 small-12 recent-posts">
<div class="row">
<div class="columns large-12 thumb_news">
<a style="background:{{ info }} {{c1}}" href="{{ post.url }}">
<div class="row">
<div class="columns small-12 align-self-bottom info_vign">
<div style="z-index:0;background:linear-gradient(to right, {{c1}},{{c2}});" class=" cover_vign"></div>
<span class="tag" ><span>{{ post.header.taxonomy.category|first }}</span></span>
<mark>{{ post.title }}</mark>
<br>
{% if post.header.dlp != "" %}
<span class="date" >{{ post.header.dlp }}</span>
{% else %}
<span class="date" >
{{post.header.date|date('d')}} {{'GRAV.MONTHS_OF_THE_YEAR'|ta(post.header.date|date('n') - 1)}} {{post.header.date|date('Y')}}
</span>
{% endif %}
</div>
</div>
</a>
</div>
</div>
</div>
+119
View File
@@ -0,0 +1,119 @@
{% macro menu(page) %}
<div class="row">
<div class="columns medium-10 medium-offset-1 small-12">
<div class="button hollow smph show_menu">+ menu </div>
<ul class="nav">
{% for p in page.children %}
{% if p.slug != "home" and p.template != "default" and p.template != "info" %}
<li>
<a class="item" href="{{ p.url }}">{{ p.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="small-12 bb">
</div>
<div class="columns medium-10 medium-offset-1 small-12">
<ul class="subnav">
{% for p in page.children %}
{% if p.slug != "home" and p.template != "default" and p.template != "info" %}
<li>
{% if p.header.modules %}
<ul class="chapter">
{% for m in p.header.modules %}
<li><a href="{{ p.url }}#{{m.title|replace({' ': '-' })|lower }}">{{ m.title }}</a></li>
{% endfor %}
{% if p.slug == "formations" %}
<li><a href="{{ p.url }}#sessions">Sessions Annuelles</a></li>
<li><a href="{{ p.url }}#evenements">ÉVÈNEMENTS</a></li>
{% endif %}
{% if p.slug == "realisations" and p.header.pod == true %}
<li>
<a class="item" href="{{ p.url }}#podcast">podcast</a>
</li>
{% endif %}
{% if p.slug == "qui-sommes-nous" %}
<li>
<a class="item" href="{{ p.url }}#team">L'équipe</a>
</li>
<li>
<a class="item" href="{{ p.url }}#part">Les Partenaires</a>
</li>
{% endif %}
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
{% endmacro %}
<div class="row">
<div class="columns small-10 small-offset-1">
<div class="row header align-middle">
<div class="columns medium-3 small-6 logo">
<a href="{{base_url}}">
<img src="{{ url('theme://images/logos_ceras.svg') }}" alt="">
</a>
</div>
<div class="columns medium-4 medium-offset-2 small-6">
<div class="row align-middle">
<div class="columns medium-4 small-6 ">
<a class="br" href="https://www.doctrine-sociale-catholique.fr/">
<img src="{{ url('theme://images/DSC.png') }}" alt="">
</a>
</div>
<div class="columns medium-4 small-6 pr">
<a class="br"href="https://www.revue-projet.com/">
<img src="{{ url('theme://images/projet.png') }}" alt="">
</a>
</div>
<div class="columns medium-4 small-8 socials_container">
<div class="row align-middle">
<div class="columns small-4 socials">
<a href="{{tw}}">
<img src="{{ url('theme://images/tw.svg') }}" alt="">
</a>
</div>
<div class="columns small-4 socials">
<a href="{{yt}}">
<img src="{{ url('theme://images/YT.svg') }}" alt="">
</a>
</div>
<div class="columns small-4 socials">
<a href="{{fb}}">
<img src="{{ url('theme://images/fb.svg') }}" alt="">
</a>
</div>
</div>
</div>
</div>
</div>
<div class="columns medium-3 small-12 newsletter">
<a href="#" data-token="32f3438cb8ff66b06fae26eea7341b92" onclick="mjOpenPopin(event, this)">
<div class="button">
Je m'abonne à la newsletter
</div>
</a>
</div>
</div>
</div>
<div class="columns small-12 navigation">
{{ _self.menu(pages) }}
</div>
</div>
+34
View File
@@ -0,0 +1,34 @@
<div class="columns small-12 intertitre">
<div class="row ">
<div id="{{module.title|replace({' ': '-' })|lower }}" class="columns small-10 small-offset-1 medium-8 medium-offset-2">
<h3>{{ module.title }}</h3>
</div>
</div>
</div>
{% if page.slug != "realisations" %}
<div class="columns medium-6 medium-offset-3 small-10 small-offset-1 module">
{{ module.content }}
</div>
{% else %}
<div class="columns medium-6 medium-offset-3 small-10 small-offset-1 rea">
{% for item in module.content %}
<div class="row">
<div class="columns small-12">
<a href="{{ item.url }}" >
<img style="margin-bottom:0.5rem;" src="{{ page.url }}/{{ item.img }}" alt="">
</a>
</div>
<div class="columns small-12">
<a href="{{ item.url }}">
{{ item.text }}
</a>
</div>
</div>
{% endfor %}
</div>
{% endif %}
+36
View File
@@ -0,0 +1,36 @@
{% set pagination = pagination|default(page.collection.params.pagination) %}
{% set base_url = base_url|default(page.url) %}
{% if pagination|length > 1 %}
<div class="columns small-6 small-offset-3">
<ul class="pagination">
{% if pagination.hasPrev %}
{% set url = (base_url ~ pagination.params ~ pagination.prevUrl)|replace({'//':'\/'}) %}
<li><a rel="prev" href="{{ url }}">&laquo;</a></li>
{% else %}
<li><span>&laquo;</span></li>
{% endif %}
{% for paginate in pagination %}
{% if paginate.isCurrent %}
<li><span class="active">{{ paginate.number }}</span></li>
{% elseif paginate.isInDelta %}
{% set url = (base_url ~ pagination.params ~ paginate.url)|replace({'//':'\/'}) %}
<li><a href="{{ url }}">{{ paginate.number }}</a></li>
{% elseif paginate.isDeltaBorder %}
<li class="gap"><span>&hellip;</span></li>
{% endif %}
{% endfor %}
{% if pagination.hasNext %}
{% set url = (base_url ~ pagination.params ~ pagination.nextUrl)|replace({'//':'\/'}) %}
<li><a rel="next" href="{{ url }}">&raquo;</a></li>
{% else %}
<li><span>&raquo;</span></li>
{% endif %}
</ul>
</div>
{% endif %}
+8
View File
@@ -0,0 +1,8 @@
{{ _self.img(page) }}
<div id="carousel">
{% for image in page.header.custom.gallery %}
{% endfor %}
</div>