html archive
This commit is contained in:
		@@ -18,6 +18,10 @@ form:
 | 
			
		||||
          fields:
 | 
			
		||||
            overrides:
 | 
			
		||||
              fields:
 | 
			
		||||
                header.redirect:
 | 
			
		||||
                  toggleable: false
 | 
			
		||||
                  default: /
 | 
			
		||||
 | 
			
		||||
                header.child_type:
 | 
			
		||||
                  default: item
 | 
			
		||||
        blog:
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,7 @@ form:
 | 
			
		||||
                  type: filepicker
 | 
			
		||||
                  folder: '@self'
 | 
			
		||||
                  preview_images: true
 | 
			
		||||
                  label: Select a file
 | 
			
		||||
                  label: Selectionner une image
 | 
			
		||||
            header.entete:
 | 
			
		||||
              type: fieldset
 | 
			
		||||
              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() {
 | 
			
		||||
  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');
 | 
			
		||||
 | 
			
		||||
  $a.on('click', function(e) {
 | 
			
		||||
 
 | 
			
		||||
@@ -317,7 +317,7 @@
 | 
			
		||||
      border-radius: 20px;
 | 
			
		||||
      position: fixed;
 | 
			
		||||
      width: 30%;
 | 
			
		||||
      height: 30%;
 | 
			
		||||
      min-height: 30%;
 | 
			
		||||
      left: 50%;
 | 
			
		||||
      top: 50%;
 | 
			
		||||
      padding: 50px;
 | 
			
		||||
@@ -1312,7 +1312,7 @@
 | 
			
		||||
 | 
			
		||||
// Overlay de la boite de dialogue
 | 
			
		||||
.cookie-inform-and-ask {
 | 
			
		||||
  background-color: green; 
 | 
			
		||||
  background-color: green;
 | 
			
		||||
  display: none;
 | 
			
		||||
  height: 100%;
 | 
			
		||||
  left: 0;
 | 
			
		||||
 
 | 
			
		||||
@@ -12,32 +12,32 @@
 | 
			
		||||
 | 
			
		||||
{% block body %}
 | 
			
		||||
 | 
			
		||||
  <section class="header-wrapper">
 | 
			
		||||
    <div class="title">
 | 
			
		||||
      <h1>{{page.title}}</h1>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="cat">
 | 
			
		||||
      {% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
 | 
			
		||||
    </div>
 | 
			
		||||
  </section>
 | 
			
		||||
<section class="header-wrapper">
 | 
			
		||||
  <div class="title">
 | 
			
		||||
    <h1>{{page.title}}</h1>
 | 
			
		||||
  </div>
 | 
			
		||||
  <div class="cat">
 | 
			
		||||
    {% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
 | 
			
		||||
  </div>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
  <section class="body-wrapper" class="section blog-listing">
 | 
			
		||||
      {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
 | 
			
		||||
          {% include 'partials/breadcrumbs.html.twig' %}
 | 
			
		||||
      {% endif %}
 | 
			
		||||
<section class="body-wrapper" class="section blog-listing">
 | 
			
		||||
    {% 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 page.find('/agenda').children.order('date','desc') %}
 | 
			
		||||
        {% block item %}
 | 
			
		||||
          {% for child in page.find('/agenda').children.order('date','desc') %}
 | 
			
		||||
 | 
			
		||||
              {% if child.header.date|date("ymd") <= "now"|date("ymd") %}
 | 
			
		||||
                {% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
 | 
			
		||||
              {% endif %}
 | 
			
		||||
            {% if child.header.date|date("ymd") <= "now"|date("ymd") %}
 | 
			
		||||
              {% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
          {% endblock %}
 | 
			
		||||
      {% endembed %}
 | 
			
		||||
  </section>
 | 
			
		||||
          {% endfor %}
 | 
			
		||||
        {% endblock %}
 | 
			
		||||
    {% endembed %}
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
      <h1>{{page.title}}</h1>
 | 
			
		||||
    </div>
 | 
			
		||||
    <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>
 | 
			
		||||
  </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' : '' %}
 | 
			
		||||
    {% if p.children.visible.count > 0 %}
 | 
			
		||||
      <li>
 | 
			
		||||
        <a href="{{ p.url }}"{{ active_page }}>
 | 
			
		||||
        <a class="no-click" href="{{ p.url }}"{{ active_page }}>
 | 
			
		||||
          {{ p.menu }}
 | 
			
		||||
        </a>
 | 
			
		||||
        <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">
 | 
			
		||||
 | 
			
		||||
        <!-- Your share button code -->
 | 
			
		||||
      <div class="fb-share-button"
 | 
			
		||||
        data-href="{{uri.route(true, true)}}"
 | 
			
		||||
        data-layout="button">
 | 
			
		||||
      <div>
 | 
			
		||||
        <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">
 | 
			
		||||
 
 | 
			
		||||
@@ -10,17 +10,22 @@
 | 
			
		||||
        <input type="radio" name="options">
 | 
			
		||||
        Tous
 | 
			
		||||
      </label>
 | 
			
		||||
    {% for tax,value in taxlist[taxonomy] %}
 | 
			
		||||
 | 
			
		||||
      {% for tax,value in taxlist[taxonomy] %}
 | 
			
		||||
        {% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
 | 
			
		||||
            <label class="btn btn-default {{ macro.pageLinkName(tax) }}" data-filter="{{tax}}">
 | 
			
		||||
              <input type="radio" name="options" >
 | 
			
		||||
              {{tax}}
 | 
			
		||||
            </label>
 | 
			
		||||
    {% endfor %}
 | 
			
		||||
        <label class="btn btn-default {{ macro.pageLinkName(tax) }}" data-filter="{{tax}}">
 | 
			
		||||
          <input type="radio" name="options" >
 | 
			
		||||
          {{tax}}
 | 
			
		||||
        </label>
 | 
			
		||||
      {% endfor %}
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="btn-group ">
 | 
			
		||||
      <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>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user