This commit is contained in:
2019-04-05 00:19:26 +02:00
parent 2ddc3ef8b5
commit 52fe56a7fc
36 changed files with 1449 additions and 274 deletions

View File

@@ -2,14 +2,8 @@
{% set collection = page.collection() %}
{% set image = page.media.images|first %}
{% block stylesheets %}
{% do assets.addCss('theme://css/bricklayer.css') %}
{{ parent() }}
{% endblock %}
{% block body %}
<section id="body-wrapper" class="section blog-listing">
<section id="item" class="section blog-listing">
<div class="bandeau">
{% if image %}
{{image.html}}
@@ -19,18 +13,21 @@
<div class="content">
<h2>{{page.title}}</h2>
{{content}}
{% for item in page.collection %}
<div class="sub-content">
<h3>{{item.title}}</h3>
{{item.content}}
</div>
{% endfor %}
</div>
{% if show_sidebar %}
{% block sidebar %}
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
{% endif %}
{% if show_sidebar %}
{% block sidebar %}
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
{% endif %}
<!-- {% for item in page.collection %}
<h3>{{item.title}}</h3>
{{item.content}}
{% endfor %} -->
</section>
{% endblock %}

View File

@@ -6,42 +6,31 @@
{% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
{% block stylesheets %}
{% do assets.addCss('theme://css/bricklayer.css') %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% do assets.add('theme://js/bricklayer.min.js') %}
{% do assets.add('theme://js/scopedQuerySelectorShim.min.js') %}
{% endblock %}
{% block hero %}
{% include 'partials/hero.html.twig' with {id: 'blog-hero', content: page.content, hero_image: blog_image} %}
{% endblock %}
{% block body %}
<section id="body-wrapper" class="section blog-listing">
<section class="container {{ grid_size }}">
<section id="body-wrapper" class="section blog-listing">
<section class="container {{ grid_size }}">
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
{% embed 'partials/layout.html.twig' with {blog: page} %}
{% embed 'partials/layout.html.twig' with {blog: page} %}
{% block item %}
{% for child in collection %}
{% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
{% endfor %}
{% block item %}
<div class="cat">
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
</div>
{% for child in collection %}
{% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
{% endfor %}
{% endblock %}
{% endembed %}
</section>
</section>
{% endblock %}
{% endembed %}
</section>
</section>
<script>
//Bricklayer
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
</script>
{% endblock %}

View File

@@ -1,13 +1,19 @@
{% extends 'partials/base.html.twig' %}
{% set image = page.media.images|first %}
{% set image = page.media.images %}
{% block content %}
{% if image %}
{{ image.html }}
{% endif %}
<div class="gal">
{% if image %}
{% for images in image %}
{{ images }}
{% endfor %}
{% endif %}
</div>
<div class="content">
{{ page.content|raw }}
</div>
{% endblock %}
{% block sidebar %}

View File

@@ -11,7 +11,7 @@
{# {{ macros.nav_loop(p) }} #}
{% for i in p.children.visible %}
<li>
<a href="{{ p.url }}"{{ active_page }}>
<a href="{{ i.url }}"{{ active_page }}>
{{ i.menu }}
</a>
</li>

View File

@@ -18,20 +18,25 @@
{% block stylesheets %}
{% do assets.addCss('theme://css-compiled/spectre'~compress) %}
{% do assets.addCss('theme://css-compiled/theme'~compress) %}
{% do assets.addCss('theme://css/leaflet.css') %}
{% endblock %}
{% block javascripts %}
{% do assets.addJs('jquery', 101) %}
{% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/multipleFilterMasonry.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/jquery.slides.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/leaflet.js', {group:'bottom'}) %}
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
{% endblock %}
{% block assets deferred %}
{{ assets.css()|raw }}
{{ assets.js()|raw }}
{% endblock %}
<script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/a98b763288f940083bf28857c/d26d4af6b93e3686e6a245680.js");</script>
{% endblock head %}
</head>
<body id="top" class="{% block body_classes %}{{ body_classes }}{% endblock %}">
@@ -39,7 +44,7 @@
<section id="header" class="section">
<nav class="navbar">
<section class="logo">
<h1>{{site.title}}</h1>
<a href="/"><h1>{{site.title}}</h1></a>
</section>
<section class="desktop-menu">
@@ -47,12 +52,17 @@
{% 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 %}
<div class="reso">
<img src="/user/themes/lecampus/images/fb.svg" alt="">
<img src="/user/themes/lecampus/images/yt.svg" alt="">
</div>
</section>
</nav>
</section>
@@ -60,13 +70,10 @@
{% block hero %}{% endblock %}
<section id="start">
<section id="{{page.template}}" class="start">
{% block body %}
<section id="body-wrapper" class="section">
<section class="container {{ grid_size }}">
{% block messages %}
{% include 'partials/messages.html.twig' ignore missing %}
{% endblock %}
<section id="item">
{% block content %}{% endblock %}
{% block sidebar %}{% endblock %}
</section>

View File

@@ -1,8 +1,17 @@
<div class="publics">
<span class="pc">
{% set page_public = page.header.public %}
<!-- {% set page_public = page.header.public %}
{% for public in page_public %}
{{ public }}
{% endfor %}
{% endfor %} -->
{% if page.taxonomy.tag %}
<span class="tags">
{% for tag in page.taxonomy.tag %}
<a class="label label-rounded {{ label_style ?: 'label-secondary' }} p-tag" href="{{ blog.url|rtrim('/') }}/tag{{ config.system.param_sep }}{{ tag }}#body-wrapper">{{ tag }}</a>
{% endfor %}
</span>
{% endif %}
</span>
</div>

View File

@@ -2,15 +2,15 @@
<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>
<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">

View File

@@ -6,16 +6,4 @@
<h1>{{p.title}}</h1>
{{p.content}}
{% endfor %}
<div class="map"></div>
<div id="mc_embed_signup">
<form action="https://kevintessier.us19.list-manage.com/subscribe/post?u=a98b763288f940083bf28857c&amp;id=96d6b6e702" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<label for="mce-EMAIL">Inscrivez-vous à la newsletter :</label></br>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_a98b763288f940083bf28857c_96d6b6e702" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</div>
</form>
</div>
</section>

View File

@@ -1,13 +1,11 @@
{% 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 id="item">
{% block item %}{% endblock %}
{% if show_sidebar %}
<div id="sidebar" class="column {{ sidebar_col }}">
{% block sidebar %}
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
</div>
{% endif %}
</div>
<div id="item">
{% block item %}{% endblock %}
{% if show_sidebar %}
{% block sidebar %}
{% include 'partials/sidebar.html.twig' %}
{% endblock %}
{% endif %}
</div>

View File

@@ -4,8 +4,10 @@
<h2>À venir</h2>
{% for p in page.collection(options)%}
<div class="side-agenda">
<a href="{{p.url}}">
{% include 'partials/blog/date.html.twig' with {page: p } %}
{{p.title}}
{% include 'partials/blog/date.html.twig' with {page: p } %}
</a>
</div>
{% endfor %}
<div class="side-all-agenda">

View File

@@ -2,9 +2,11 @@
{% if taxlist %}
<span class="tags">
<a class="" href="#">Tous</a>
{% 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 %}
<a class="" href="#">Achives</a>
</span>
{% endif %}