This commit is contained in:
2019-04-02 19:54:29 +02:00
parent 14139c7bc8
commit 03694c1aa6
101 changed files with 11348 additions and 2 deletions

View File

@ -0,0 +1,13 @@
<ul class="archives">
{% for month,items in archives_data %}
<li>
<a href="{{ base_url }}/{{ config.plugins.archives.taxonomy_names.month }}{{ config.system.param_sep }}{{ month|date('M_Y')|lower|e('url') }}">
{% if archives_show_count %}
<span class="label label-rounded label-primary">{{ items|length }}</span>
{% endif %}
<span class="archive_date">{{ month }}</span>
</a>
</li>
{% endfor %}
</ul>

View File

@ -0,0 +1,133 @@
{% set body_classes = body_class(['header-fixed', 'header-animated', 'header-dark', 'header-transparent', 'sticky-footer']) %}
{% set grid_size = theme_var('grid-size') %}
{% set compress = theme_var('production-mode') ? '.min.css' : '.css' %}
<!DOCTYPE html>
<html lang="{{ grav.language.getActive ?: grav.config.site.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/favicon.png') }}" />
<link rel="canonical" href="{{ page.url(true, true) }}" />
{% block stylesheets %}
{% do assets.addCss('theme://css-compiled/spectre'~compress) %}
{% if theme_var('spectre.exp') %}{% do assets.addCss('theme://css-compiled/spectre-exp'~compress) %}{% endif %}
{% if theme_var('spectre.icons') %}{% do assets.addCss('theme://css-compiled/spectre-icons'~compress) %}{% endif %}
{% do assets.addCss('theme://css-compiled/theme'~compress) %}
{% do assets.addCss('theme://css/custom.css') %}
{% do assets.addCss('theme://css/line-awesome.min.css') %}
{% endblock %}
{% block javascripts %}
{% do assets.addJs('jquery', 101) %}
{% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %}
{% block assets deferred %}
{{ assets.css()|raw }}
{{ assets.js()|raw }}
{% endblock %}
<!-- <script>
$(document).ready(function(){
var form = $('#ajax-test-form');
form.submit(function(e) {
// prevent form submission
e.preventDefault();
// submit the form via Ajax
$.ajax({
url: form.attr('action'),
type: form.attr('method'),
dataType: 'html',
data: form.serialize(),
success: function(result) {
// Inject the result in the HTML
$('#form-result').html(result);
}
});
});
});
</script> -->
{% endblock head %}
</head>
<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}">
<div id="page-wrapper">
{% block header %}
<section id="header" class="section">
<section class="container {{ grid_size }}">
<nav class="navbar">
<section class="navbar-section logo">
{% include 'partials/logo.html.twig' %}
</section>
<section class="navbar-section desktop-menu">
<nav class="dropmenu animated">
{% block header_navigation %}
{% include 'partials/navigation.html.twig' %}
{% endblock %}
</nav>
{% if config.plugins.login.enabled and grav.user.username %}
<span class="login-status-wrapper"><i class="fa fa-user"></i> {% include 'partials/login-status.html.twig' %}</span>
{% endif %}
</section>
</nav>
</section>
</section>
<div class="mobile-menu">
<div class="button_container" id="toggle">
<span class="top"></span>
<span class="middle"></span>
<span class="bottom"></span>
</div>
</div>
{% endblock %}
{% block hero %}{% endblock %}
<section id="start">
{% block body %}
<section id="body-wrapper" class="section">
<section class="container {{ grid_size }}">
{% block messages %}
{% include 'partials/messages.html.twig' ignore missing %}
{% endblock %}
{% block content %}{% endblock %}
{% block sidebar %}{% endblock %}
</section>
</section>
{% endblock %}
</section>
</div>
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}
<div class="mobile-container">
<div class="overlay" id="overlay">
<div class="mobile-logo">
{% include 'partials/logo.html.twig' with {mobile: true} %}
</div>
<nav class="overlay-menu">
{% include 'partials/navigation.html.twig' with {tree: true} %}
</nav>
</div>
</div>
{% block bottom %}
{{ assets.js('bottom')|raw }}
{% endblock %}
</body>
</html>

View File

@ -0,0 +1,20 @@
{% set image = page.media.images|first %}
<div class="content-item h-entry">
{% if image %}
{{ image.html }}
{% endif %}
{% if not hero_image_name %}
<div class="content-title text-center">
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
{% if page.header.subtitle %}
<h3 >{{ page.header.subtitle }}</h3>
{% endif %}
</div>
{% endif %}
<div class="e-content">
{{ page.content|raw }}
</div>
</div>

View File

@ -0,0 +1,26 @@
<div class="card">
<div class="card-footer">
{% include 'partials/blog/public.html.twig' %}
</div>
{% set image = page.media.images|first %}
{% if image %}
<div class="card-image">
<a href="{{ page.url }}">{{ image.cropZoom(800,400).html }}</a>
</div>
{% endif %}
<div class="card-header">
<div class="card-title">
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
</div>
<div class="card-subtitle text-gray">
{% include 'partials/blog/date.html.twig' %}
</div>
</div>
<div class="card-body">
{% if page.summary != page.content %}
{{ page.summary|raw }}
{% else %}
{{ page.content|raw }}
{% endif %}
</div>
</div>

View 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>

View File

@ -0,0 +1,8 @@
<div class="p-summary e-content">
{% if page.summary != page.content %}
{{ page.summary|raw }}
{% else %}
{{ page.content|raw }}
{% endif %}
</div>

View File

@ -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>

View File

@ -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 %}

View File

@ -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>

View File

@ -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 %}

View 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 %}

View File

@ -0,0 +1,23 @@
{% set image = page.media.images|first %}
<div class="content-item h-entry">
{% if not hero_image_name %}
<div class="content-title text-center">
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
{% if page.header.subtitle %}
<h3 >{{ page.header.subtitle }}</h3>
{% endif %}
{% include 'partials/blog/public.html.twig' %}
{% include 'partials/blog/date.html.twig' %}
{% include 'partials/blog/reseaux_sociaux.html.twig' %}
</div>
{% endif %}
<div class="e-content">
{% if image %}
{{ image.html }}
{% endif %}
{{ page.content|raw }}
</div>
</div>

View File

@ -0,0 +1,26 @@
<div class="card">
<div class="card-footer">
{% include 'partials/blog/public.html.twig' %}
</div>
{% set image = page.media.images|first %}
{% if image %}
<div class="card-image">
<a href="{{ page.url }}">{{ image.cropZoom(800,400).html }}</a>
</div>
{% endif %}
<div class="card-header">
<div class="card-title">
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
</div>
<div class="card-subtitle text-gray">
{% include 'partials/blog/date.html.twig' %}
</div>
</div>
<div class="card-body">
{% if page.summary != page.content %}
{{ page.summary|raw }}
{% else %}
{{ page.content|raw }}
{% endif %}
</div>
</div>

View File

@ -0,0 +1,10 @@
{% set collection = page.collection() %}
{% set image = page.media.images|first %}
<section id="footer" class="section blog-listing">
{% for p in page.find('/home').children if p != page %}
<h1>{{p.title}}</h1>
{{p.content}}
<div class="map"></div>
{% endfor %}
</section>

View File

@ -0,0 +1,6 @@
{% if form.message %}
{% set inline_errors = form.inline_errors is not null ? form.inline_errors : config.plugins.form.inline_errors(false) %}
{% set status_mapping = {'success':'green', 'error': 'red', 'warning': 'yellow'} %}
{% set message = inline_errors and form.messages ? "FORM.VALIDATION_FAIL"|t : form.message %}
<div class="toast toast-{{ form.status }} {{ status_mapping[form.status] ?: 'green' }} mt-2 mb-2">{{ message|raw }}</div>
{% endif %}

View File

@ -0,0 +1,7 @@
<section id="{{ id }}" class="section modular-hero hero {{ page.header.hero_classes }} {{ page.header.background.parallax ? 'parallax' : '' }}" {% if hero_image %}style="background-image: url({{ hero_image.url }});"{% endif %}>
<div class="image-overlay"></div>
<section class="container {{ grid_size }}" style="text-align: {{ page.header.hero_align|default('center') }}">
{{ content|raw }}
</section>
<i id="to-start" class="pulse fa fa-angle-down"></i>
</section>

View File

@ -0,0 +1,15 @@
{% set item_col = show_sidebar ? 'col-9 col-md-12' : 'col-12' %}
{% set sidebar_col = show_sidebar ? 'col-3 col-md-12' : 'col-12' %}
<div class="columns">
<div id="item" class="column {{ item_col }} extra-spacing">
{% block item %}{% endblock %}
</div>
{% if show_sidebar %}
<div id="sidebar" class="column {{ sidebar_col }}">
{% block sidebar %}
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
</div>
{% endif %}
</div>

View File

@ -0,0 +1,9 @@
{% set logo = theme_var(mobile ? 'custom_logo_mobile' : 'custom_logo') %}
<a href="{{ home_url }}" class="navbar-brand mr-10">
{% if logo %}
{% set logo_file = (logo|first).name %}
<img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ site.name }}" />
{% else %}
{% include('@images/grav-logo.svg') %}
{% endif %}
</a>

View File

@ -0,0 +1,17 @@
{% set type_mapping = {'info':'success', 'error': 'error', 'warning': 'warning'} %}
{% set icon_mapping = {'info':'checkmark', 'error':'wrong', 'warning':'information'} %}
{% if grav.messages.all %}
<div id="messages">
{% for message in grav.messages.fetch %}
{% set scope = message.scope|e %}
{% set type = type_mapping[scope] %}
{% set icon = icon_mapping[scope] %}
<div class="toast toast-{{ type }} {{ scope }}">
<i class="icon dripicons-{{ icon }}"></i> {{ message.message|raw }}
</div>
{% endfor %}
</div>
{% endif %}

View File

@ -0,0 +1,5 @@
{% import 'macros/macros.html.twig' as macros %}
<ul {{ tree ? 'class="tree"' : '' }}>
{{ macros.nav_loop(pages) }}
</ul>

View File

@ -0,0 +1,15 @@
<ul class="related-pages menu">
{% for related_path, score in related_pages %}
{% set related = grav['pages'].get(related_path) %}
{% if related %}
<li class="menu-item">
{% if config.plugins.relatedpages.show_score %}
<div class="menu-badge">
<span class="label lable-primary">{{ score }}</span>
</div>
{% endif %}
<a href="{{ related.url }}" title="{{ related.title }}">{{ related.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>

View File

@ -0,0 +1,15 @@
{% set options = { items: {'@page.children': '/agenda'}, 'limit': 3, 'order': {'by': 'date', 'dir': 'desc'} } %}
<div class="sidebar">
<div class="side-agenda">
<h2>À venir</h2>
{% for p in page.collection(options)%}
{{p.title}}
{% include 'partials/blog/date.html.twig' with {page: p } %}
{% endfor %}
<a href="agenda">voir tout l'agenda</a>
</div>
<div class="side-newsletter">
<h3>Recevoir lactualté du Campus</h3>
</div>
</div>

View File

@ -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 %}