html archive
This commit is contained in:
parent
35580d75a0
commit
d58b67aadd
@ -18,6 +18,10 @@ form:
|
|||||||
fields:
|
fields:
|
||||||
overrides:
|
overrides:
|
||||||
fields:
|
fields:
|
||||||
|
header.redirect:
|
||||||
|
toggleable: false
|
||||||
|
default: /
|
||||||
|
|
||||||
header.child_type:
|
header.child_type:
|
||||||
default: item
|
default: item
|
||||||
blog:
|
blog:
|
||||||
|
@ -19,7 +19,7 @@ form:
|
|||||||
type: filepicker
|
type: filepicker
|
||||||
folder: '@self'
|
folder: '@self'
|
||||||
preview_images: true
|
preview_images: true
|
||||||
label: Select a file
|
label: Selectionner une image
|
||||||
header.entete:
|
header.entete:
|
||||||
type: fieldset
|
type: fieldset
|
||||||
title: Texte en-tête
|
title: Texte en-tête
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -82,7 +82,7 @@ function slide() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function links() {
|
function links() {
|
||||||
var $a = $('li a[href="/organisez-vos-evenements"],li a[href="/qui-sommes-nous"] ');
|
var $a = $('.dropmenu > ul > li > .no-click');
|
||||||
var $map = $('a#carte');
|
var $map = $('a#carte');
|
||||||
|
|
||||||
$a.on('click', function(e) {
|
$a.on('click', function(e) {
|
||||||
|
@ -317,7 +317,7 @@
|
|||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
height: 30%;
|
min-height: 30%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
padding: 50px;
|
padding: 50px;
|
||||||
@ -1312,7 +1312,7 @@
|
|||||||
|
|
||||||
// Overlay de la boite de dialogue
|
// Overlay de la boite de dialogue
|
||||||
.cookie-inform-and-ask {
|
.cookie-inform-and-ask {
|
||||||
background-color: green;
|
background-color: green;
|
||||||
display: none;
|
display: none;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -12,32 +12,32 @@
|
|||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
||||||
<section class="header-wrapper">
|
<section class="header-wrapper">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h1>{{page.title}}</h1>
|
<h1>{{page.title}}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="cat">
|
<div class="cat">
|
||||||
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
|
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="body-wrapper" class="section blog-listing">
|
<section class="body-wrapper" class="section blog-listing">
|
||||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
||||||
{% include 'partials/breadcrumbs.html.twig' %}
|
{% include 'partials/breadcrumbs.html.twig' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% embed 'partials/layout.html.twig' with {blog: page} %}
|
{% embed 'partials/layout.html.twig' with {blog: page} %}
|
||||||
|
|
||||||
{% block item %}
|
{% block item %}
|
||||||
{% for child in page.find('/agenda').children.order('date','desc') %}
|
{% for child in page.find('/agenda').children.order('date','desc') %}
|
||||||
|
|
||||||
{% if child.header.date|date("ymd") <= "now"|date("ymd") %}
|
{% if child.header.date|date("ymd") <= "now"|date("ymd") %}
|
||||||
{% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
|
{% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endembed %}
|
{% endembed %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<h1>{{page.title}}</h1>
|
<h1>{{page.title}}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="cat">
|
<div class="cat">
|
||||||
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
|
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag', children_only: true} %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
{% set collection = page.collection() %}
|
|
||||||
{% set image = page.media.images|first %}
|
|
||||||
|
|
||||||
<section id="footer" class="section blog-listing">
|
|
||||||
{% if image %}
|
|
||||||
{{image.html('', 'footer')}}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% for item in collection %}
|
|
||||||
<div class="sub-content ">
|
|
||||||
{{item.content}}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</section>
|
|
@ -4,7 +4,7 @@
|
|||||||
{% set active_page = (p.active or p.activeChild) ? 'active' : '' %}
|
{% set active_page = (p.active or p.activeChild) ? 'active' : '' %}
|
||||||
{% if p.children.visible.count > 0 %}
|
{% if p.children.visible.count > 0 %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ p.url }}"{{ active_page }}>
|
<a class="no-click" href="{{ p.url }}"{{ active_page }}>
|
||||||
{{ p.menu }}
|
{{ p.menu }}
|
||||||
</a>
|
</a>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -1,42 +0,0 @@
|
|||||||
{% extends 'partials/base.html.twig' %}
|
|
||||||
{% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %}
|
|
||||||
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog])|defined(true) %}
|
|
||||||
{% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
|
|
||||||
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
|
|
||||||
{% set hero_image_name = page.header.hero_image %}
|
|
||||||
|
|
||||||
{% block hero %}
|
|
||||||
{% if hero_image_name %}
|
|
||||||
{% set hero_image = page.media[hero_image_name] %}
|
|
||||||
{% set content %}
|
|
||||||
<h1>{{ page.title }}</h1>
|
|
||||||
<h2>{{ page.header.subtitle }}</h2>
|
|
||||||
{% include 'partials/blog/date.html.twig' %}
|
|
||||||
{% include 'partials/blog/taxonomy.html.twig' %}
|
|
||||||
{% endset %}
|
|
||||||
{% include 'partials/hero.html.twig' with {id: 'blog-hero'} %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
|
||||||
{% include 'partials/breadcrumbs.html.twig' %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% embed 'partials/layout.html.twig' %}
|
|
||||||
{% block item %}
|
|
||||||
<div class="content">
|
|
||||||
<div class="txt">
|
|
||||||
<h2>{{page.title}}</h2>
|
|
||||||
{{content}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
{% endembed %}
|
|
||||||
|
|
||||||
{% for child in page.collection %}
|
|
||||||
{{child.content}}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% endblock %}
|
|
@ -1,69 +0,0 @@
|
|||||||
{% extends 'partials/base.html.twig' %}
|
|
||||||
|
|
||||||
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
|
|
||||||
|
|
||||||
{% import _self as macro %}
|
|
||||||
|
|
||||||
{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
|
|
||||||
|
|
||||||
{% block javascripts %}
|
|
||||||
{% if show_onpage_menu %}
|
|
||||||
{% do assets.add('theme://js/singlepagenav.min.js') %}
|
|
||||||
{% endif %}
|
|
||||||
{{ parent() }}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block bottom %}
|
|
||||||
{{ parent() }}
|
|
||||||
{% if show_onpage_menu %}
|
|
||||||
<script>
|
|
||||||
// singlePageNav initialization & configuration
|
|
||||||
$('ul.navigation').singlePageNav({
|
|
||||||
offset: $('#header').outerHeight(),
|
|
||||||
filter: ':not(.external)',
|
|
||||||
updateHash: true,
|
|
||||||
currentClass: 'active'
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block header_navigation %}
|
|
||||||
{% if show_onpage_menu %}
|
|
||||||
<ul class="navigation">
|
|
||||||
{% for module in page.collection() if module.header.visible is not same as(false) %}
|
|
||||||
{% set current_module = (module.active or module.activeChild) ? 'active' : '' %}
|
|
||||||
<li><a class="{{ current_module }}" href="#{{ macro.pageLinkName(module.menu) }}">{{ module.menu }}</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
{% for mitem in site.menu %}
|
|
||||||
<li>
|
|
||||||
<a {% if mitem.class %}class="{{ mitem.class }}"{% endif %} href="{{ mitem.url }}">
|
|
||||||
{% if mitem.icon %}<i class="fa fa-{{ mitem.icon }}"></i>{% endif %}
|
|
||||||
{{ mitem.text }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
{% else %}
|
|
||||||
{{ parent() }}
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block hero %}
|
|
||||||
{% for module in page.collection() if module.template == 'modular/hero' %}
|
|
||||||
<div id="{{ macro.pageLinkName(module.menu) }}"></div>
|
|
||||||
{{ module.content|raw }}
|
|
||||||
{% endfor %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
<span class="ariane">
|
|
||||||
{% for module in page.collection() if module.template != 'modular/hero' %}
|
|
||||||
{{module.title}}
|
|
||||||
{% endfor %}
|
|
||||||
</span>
|
|
||||||
{% for module in page.collection() if module.template != 'modular/hero' %}
|
|
||||||
<div id="{{ macro.pageLinkName(module.menu) }}"></div>
|
|
||||||
{{ module.content|raw }}
|
|
||||||
{% endfor %}
|
|
||||||
{% endblock %}
|
|
@ -50,9 +50,7 @@
|
|||||||
<div class="reso">
|
<div class="reso">
|
||||||
|
|
||||||
<!-- Your share button code -->
|
<!-- Your share button code -->
|
||||||
<div class="fb-share-button"
|
<div>
|
||||||
data-href="{{uri.route(true, true)}}"
|
|
||||||
data-layout="button">
|
|
||||||
<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;">
|
<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
|
Partager
|
||||||
<img src="/user/themes/lecampus/images/fb_black.svg" alt="facebook">
|
<img src="/user/themes/lecampus/images/fb_black.svg" alt="facebook">
|
||||||
|
@ -10,17 +10,22 @@
|
|||||||
<input type="radio" name="options">
|
<input type="radio" name="options">
|
||||||
Tous
|
Tous
|
||||||
</label>
|
</label>
|
||||||
{% for tax,value in taxlist[taxonomy] %}
|
|
||||||
|
{% for tax,value in taxlist[taxonomy] %}
|
||||||
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
||||||
<label class="btn btn-default {{ macro.pageLinkName(tax) }}" data-filter="{{tax}}">
|
<label class="btn btn-default {{ macro.pageLinkName(tax) }}" data-filter="{{tax}}">
|
||||||
<input type="radio" name="options" >
|
<input type="radio" name="options" >
|
||||||
{{tax}}
|
{{tax}}
|
||||||
</label>
|
</label>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group ">
|
<div class="btn-group ">
|
||||||
<label class="btn-default archive">
|
<label class="btn-default archive">
|
||||||
<a href="/archive">archive</a>
|
{% if page.title == 'Archive' %}
|
||||||
|
<a href="/{{page.parent.title|lower}}">{{page.parent.title}}</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="{{page.url}}/archive">Archive</a>
|
||||||
|
{% endif %}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user