first commit
This commit is contained in:
Executable
+223
@@ -0,0 +1,223 @@
|
||||
(function( $ ) {
|
||||
|
||||
$.fn.blockScroll = function(options) {
|
||||
var settings = $.extend({
|
||||
// These are the defaults.
|
||||
startDiv : 1,
|
||||
fadeDuration : "slow",
|
||||
paddingRatio : 0.05,
|
||||
triggerRatio : 0.005,
|
||||
scrollDuration: "fast",
|
||||
fadeBlocks: true
|
||||
}, options );
|
||||
|
||||
if(settings.triggerRatio > settings.paddingRatio*.95) { settings.triggerRatio = settings.paddingRatio*.95 }
|
||||
|
||||
var theDivs = this.children().filter("div");
|
||||
var activeDiv = settings.startDiv-1; //Active did is 0-index, settings is 1-index
|
||||
var windowHeight;
|
||||
var paddingHeight;
|
||||
var triggerHeight;
|
||||
var currentDownTrigger;
|
||||
var currentUpTrigger;
|
||||
var totalDivs = theDivs.length;
|
||||
var lastScrollPos;
|
||||
var activelyScrolling = false;
|
||||
var activeBackground= 0;
|
||||
|
||||
// Ensure that all of the elements are hidden just in case the css is not setup properly
|
||||
if(settings.fadeBlocks)
|
||||
{
|
||||
this.children().each(function() {
|
||||
$(this).css('opacity','0');
|
||||
});
|
||||
}
|
||||
|
||||
arrange();
|
||||
// Fade in the first div
|
||||
$(theDivs[activeDiv]).animate({opacity: 1},settings.fadeDuration,'linear', function() {
|
||||
$(window).scrollTop(0);
|
||||
calcTriggers();
|
||||
bindEvents();
|
||||
lastScrollPos = $(window).scrollTop();
|
||||
});
|
||||
|
||||
function bindEvents()
|
||||
{
|
||||
$(window).on('scroll', function(e) {
|
||||
var scrollPosition = $(window).scrollTop();
|
||||
var scrollDistance = $(window).height();
|
||||
var indexOfClosest = 0;
|
||||
|
||||
theDivs.each(function(index, element) {
|
||||
var $this = $(this);
|
||||
var topPosition = $this.offset().top;
|
||||
var newScrollDistance = Math.abs(scrollPosition - topPosition);
|
||||
if(newScrollDistance < scrollDistance)
|
||||
{
|
||||
indexOfClosest = index;
|
||||
scrollDistance = newScrollDistance;
|
||||
}
|
||||
});
|
||||
gotoDiv(indexOfClosest);
|
||||
}, 250);
|
||||
|
||||
$(window).resize(function() {
|
||||
arrange();
|
||||
});
|
||||
|
||||
$("#block-up-arrow").click(function() {
|
||||
goUp();
|
||||
});
|
||||
|
||||
$("#block-down-arrow").click(function() {
|
||||
goDown();
|
||||
});
|
||||
|
||||
$(document).keydown(function(e){
|
||||
if (e.keyCode == 37 || e.keyCode == 38) {
|
||||
goUp();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (e.keyCode == 39 || e.keyCode == 40) {
|
||||
goDown();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
$(window).bind('mousewheel', function(e){
|
||||
if(e.originalEvent.wheelDelta > 119) {
|
||||
goUp();
|
||||
}
|
||||
else if (e.originalEvent.wheelDelta < -119) {
|
||||
goDown();
|
||||
}
|
||||
});
|
||||
$(window).bind('DOMMouseScroll', function(e){
|
||||
if(e.originalEvent.detail < 0) {
|
||||
goUp();
|
||||
}
|
||||
else if (e.originalEvent.detail > 0) {
|
||||
goDown();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function goUp()
|
||||
{
|
||||
if(activeDiv > 0 && !activelyScrolling)
|
||||
{
|
||||
gotoDiv(activeDiv-1);
|
||||
}
|
||||
}
|
||||
|
||||
function goDown()
|
||||
{
|
||||
if(activeDiv < totalDivs - 1 && !activelyScrolling)
|
||||
{
|
||||
gotoDiv(activeDiv+1);
|
||||
}
|
||||
}
|
||||
|
||||
function gotoDiv(number)
|
||||
{
|
||||
if(number == 0)
|
||||
$("#block-up-arrow").hide();
|
||||
else
|
||||
$("#block-up-arrow").show();
|
||||
if(number == totalDivs-1)
|
||||
$("#block-down-arrow").hide();
|
||||
else
|
||||
$("#block-down-arrow").show();
|
||||
activeDiv = number;
|
||||
activelyScrolling = true;
|
||||
$('html, body').animate({scrollTop: $(theDivs[activeDiv]).offset().top}, settings.scrollDuration, 'linear', function() {
|
||||
$(theDivs[activeDiv]).animate({opacity: 1}, settings.fadeDuration,'linear', function() {
|
||||
setTimeout(function(){
|
||||
activelyScrolling = false; lastScrollPos = $(window).scrollTop();
|
||||
},50);
|
||||
});
|
||||
});
|
||||
calcTriggers();
|
||||
}
|
||||
|
||||
function calcTriggers()
|
||||
{
|
||||
if (activeDiv < totalDivs -1)
|
||||
{
|
||||
currentDownTrigger = $(theDivs[activeDiv+1]).offset().top;
|
||||
} else {
|
||||
currentDownTrigger = -1;
|
||||
}
|
||||
|
||||
if (activeDiv > 0) {
|
||||
currentUpTrigger = $(theDivs[activeDiv-1]).offset().top;
|
||||
} else {
|
||||
currentUpTrigger = -1;
|
||||
}
|
||||
}
|
||||
|
||||
function calcDims()
|
||||
{
|
||||
windowHeight = $(window).height();
|
||||
paddingHeight = windowHeight * settings.paddingRatio;
|
||||
triggerHeight = windowHeight * settings.triggerRatio;
|
||||
}
|
||||
|
||||
|
||||
function arrange()
|
||||
{
|
||||
calcDims();
|
||||
theDivs.each(function(index, element) {
|
||||
var $this = $(this);
|
||||
$this.height('auto');
|
||||
if($this.height() < windowHeight)
|
||||
{
|
||||
var margin = windowHeight/2 - $this.height()/2;
|
||||
$this.height(windowHeight-margin);
|
||||
$this.css('padding-top', margin + "px");
|
||||
var $innerDiv = $($this.children().filter('div')[0]);
|
||||
// $innerDiv.css('padding-top', margin + "px");
|
||||
}
|
||||
if(index != totalDivs - 1)
|
||||
{
|
||||
//$this.css('padding-bottom',paddingHeight + 'px');
|
||||
}
|
||||
});
|
||||
gotoDiv(activeDiv);
|
||||
}
|
||||
|
||||
var gotoView = function(number)
|
||||
{
|
||||
gotoDiv(number-1);
|
||||
}
|
||||
|
||||
return {
|
||||
goto: gotoView
|
||||
};
|
||||
}
|
||||
|
||||
}( jQuery ));
|
||||
|
||||
;(function ($) {
|
||||
var on = $.fn.on, timer;
|
||||
$.fn.on = function () {
|
||||
var args = Array.apply(null, arguments);
|
||||
var last = args[args.length - 1];
|
||||
|
||||
if (isNaN(last) || (last === 1 && args.pop())) return on.apply(this, args);
|
||||
|
||||
var delay = args.pop();
|
||||
var fn = args.pop();
|
||||
|
||||
args.push(function () {
|
||||
var self = this, params = arguments;
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(function () {
|
||||
fn.apply(self, params);
|
||||
}, delay);
|
||||
});
|
||||
|
||||
return on.apply(this, args);
|
||||
};
|
||||
}(this.jQuery || this.Zepto));
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
||||
/*!
|
||||
* jQuery Mousewheel 3.1.13
|
||||
*
|
||||
* Copyright 2015 jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
|
||||
File diff suppressed because one or more lines are too long
+87
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
treeMenu - jQuery plugin
|
||||
version: 0.6
|
||||
|
||||
Copyright 2014 Stepan Krapivin
|
||||
|
||||
*/
|
||||
(function($){
|
||||
$.fn.treemenu = function(options) {
|
||||
options = options || {};
|
||||
options.delay = options.delay || 0;
|
||||
options.openActive = options.openActive || false;
|
||||
options.closeOther = options.closeOther || false;
|
||||
options.activeSelector = options.activeSelector || ".active";
|
||||
|
||||
this.addClass("treemenu");
|
||||
|
||||
if (!options.nonroot) {
|
||||
this.addClass("treemenu-root");
|
||||
}
|
||||
|
||||
options.nonroot = true;
|
||||
|
||||
this.find("> li").each(function() {
|
||||
e = $(this);
|
||||
var subtree = e.find('> ul');
|
||||
var button = e.find('.toggler').eq(0);
|
||||
|
||||
if(button.length == 0) {
|
||||
// create toggler
|
||||
var button = $('<span>');
|
||||
button.addClass('toggler');
|
||||
e.prepend(button);
|
||||
}
|
||||
|
||||
if(subtree.length > 0) {
|
||||
subtree.hide();
|
||||
|
||||
e.addClass('tree-closed');
|
||||
|
||||
e.find(button).click(function() {
|
||||
var li = $(this).parent('li');
|
||||
|
||||
if (options.closeOther && li.hasClass('tree-closed')) {
|
||||
var siblings = li.parent('ul').find("li:not(.tree-empty)");
|
||||
siblings.removeClass("tree-opened");
|
||||
siblings.addClass("tree-closed");
|
||||
siblings.removeClass(options.activeSelector);
|
||||
siblings.find('> ul').slideUp(options.delay);
|
||||
}
|
||||
|
||||
li.find('> ul').slideToggle(options.delay);
|
||||
li.toggleClass('tree-opened');
|
||||
li.toggleClass('tree-closed');
|
||||
li.toggleClass(options.activeSelector);
|
||||
});
|
||||
|
||||
$(this).find('> ul').treemenu(options);
|
||||
} else {
|
||||
$(this).addClass('tree-empty');
|
||||
}
|
||||
});
|
||||
|
||||
if (options.openActive) {
|
||||
var cls = this.attr("class");
|
||||
|
||||
this.find(options.activeSelector).each(function(){
|
||||
var el = $(this).parent();
|
||||
|
||||
while (el.attr("class") !== cls) {
|
||||
el.find('> ul').show();
|
||||
if(el.prop("tagName") === 'UL') {
|
||||
el.show();
|
||||
} else if (el.prop("tagName") === 'LI') {
|
||||
el.removeClass('tree-closed');
|
||||
el.addClass("tree-opened");
|
||||
el.show();
|
||||
}
|
||||
|
||||
el = el.parent();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
})(jQuery);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,51 @@
|
||||
/* -- Filter Plugin -- */
|
||||
(function ($) {
|
||||
'use strict';
|
||||
$.fn.masonryFilter = function (options) {
|
||||
//reload masonry
|
||||
var reload = function ($container) {
|
||||
setTimeout(function () {
|
||||
$container.masonry("layout");
|
||||
}, 100);
|
||||
};
|
||||
|
||||
var process = function ($container) {
|
||||
var items = $container.masonry("getAllItems"),
|
||||
revealItems = [],
|
||||
hideItems = [];
|
||||
|
||||
$.each(items, function(i) {
|
||||
var item = items[i];
|
||||
var elm = $(item.element),
|
||||
shouldShow = options.filter && options.filter.call(elm);
|
||||
|
||||
if (shouldShow) {
|
||||
if (item.isHidden) {
|
||||
// -- Have to set this property so masonry does
|
||||
// not include hidden items when calling "layout"
|
||||
item.isIgnored = false;
|
||||
revealItems.push(item);
|
||||
}
|
||||
} else {
|
||||
if (!item.isHidden) {
|
||||
// -- Easier to set this property directy rather than
|
||||
// using the "ignore" method, as it takes in a DOM
|
||||
// element rather than the masonry item object.
|
||||
item.isIgnored = true;
|
||||
hideItems.push(item);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$container.masonry('hide', hideItems);
|
||||
$container.masonry('reveal', revealItems);
|
||||
|
||||
reload($container);
|
||||
};
|
||||
|
||||
return this.each(function () {
|
||||
var self = $(this);
|
||||
process(self);
|
||||
});
|
||||
};
|
||||
}(window.jQuery));
|
||||
+2911
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,97 @@
|
||||
(function($){
|
||||
'use strict';
|
||||
$.fn.multipleFilterMasonry = function(options){
|
||||
var cache=[];
|
||||
var filters = [];
|
||||
|
||||
if(options.selectorType === 'list') {
|
||||
$(options.filtersGroupSelector).children().each(function() {
|
||||
filters.push($(this).data('filter'));
|
||||
});
|
||||
}
|
||||
|
||||
//the main job of the function is to cache the item,because we are going to filter the items later
|
||||
var init = function($container){
|
||||
$container.find(options.itemSelector).each(function(){
|
||||
cache.push($(this));
|
||||
});
|
||||
$container.masonry(options);
|
||||
};
|
||||
|
||||
//filter items in cache
|
||||
var filterItems = function(selector){
|
||||
var result=[];
|
||||
$(cache).each(function(item){
|
||||
$(selector).each(function(index,sel) {
|
||||
if(cache[item].is(sel)){
|
||||
if($.inArray(cache[item], result) === -1) result.push(cache[item]);
|
||||
}
|
||||
});
|
||||
});
|
||||
return result;
|
||||
};
|
||||
|
||||
//reload masonry
|
||||
var reload = function($container,items){
|
||||
$container.empty();
|
||||
$(items).each(function(){
|
||||
$($container).append($(this));
|
||||
});
|
||||
$container.masonry('reloadItems');
|
||||
$container.masonry();
|
||||
};
|
||||
|
||||
// Hash filter
|
||||
var hashFilter = function($container) {
|
||||
var hash = window.location.hash.replace("#", "");
|
||||
if($.inArray(hash, filters) !== -1) {
|
||||
reload($container, $('.' + hash));
|
||||
}
|
||||
};
|
||||
|
||||
var proc = function($container){
|
||||
$(options.filtersGroupSelector).find('input[type=checkbox]').each(function(){
|
||||
$(this).change(function(){
|
||||
var selector = [];
|
||||
$(options.filtersGroupSelector).find('input[type=checkbox]').each( function() {
|
||||
if ( $(this).is(':checked') ) {
|
||||
selector.push( '.' + $(this).val() );
|
||||
}
|
||||
});
|
||||
var items = cache;
|
||||
if (selector.length > 0) {
|
||||
items = filterItems(selector);
|
||||
}
|
||||
reload($container,items);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
var procUL = function($container){
|
||||
$(options.filtersGroupSelector).children().each(function(){
|
||||
$(this).click(function(){
|
||||
$(options.filtersGroupSelector).children().removeClass('selected');
|
||||
window.location.hash = $(this).data('filter');
|
||||
var selector = [];
|
||||
selector.push( '.' + $(this).data('filter') );
|
||||
$(this).addClass('selected');
|
||||
var items = cache;
|
||||
if (selector.length > 0) {
|
||||
items = filterItems(selector);
|
||||
}
|
||||
reload($container,items);
|
||||
});
|
||||
});
|
||||
|
||||
hashFilter($container);
|
||||
$(options.filtersGroupSelector).children().removeClass('selected');
|
||||
$('.filters li[data-filter='+window.location.hash.replace("#", "")+']').addClass('selected');
|
||||
};
|
||||
|
||||
return this.each(function() {
|
||||
var $$ = $(this);
|
||||
init($$);
|
||||
options.selectorType === 'list' ? procUL($$) : proc($$);
|
||||
});
|
||||
};
|
||||
}(window.jQuery));
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,121 @@
|
||||
var $cards = $('#items .full-works');
|
||||
var $card = $('#items .card');
|
||||
var $cat = $('.cat-list .cat a');
|
||||
var $img = $('.item #items .img');
|
||||
|
||||
function masonry() {
|
||||
var $grid = $cards.masonry({
|
||||
itemSelector: '.card',
|
||||
columnWidth: '.card',
|
||||
percentPosition: true,
|
||||
gutter: 10,
|
||||
isAnimated: true,
|
||||
transitionDuration: '0.5s'
|
||||
});
|
||||
|
||||
var $grid2 = $img.masonry({
|
||||
itemSelector: '.img-card',
|
||||
columnWidth: '.img-card',
|
||||
percentPosition: true,
|
||||
gutter: 10,
|
||||
transitionDuration: '0.2s'
|
||||
});
|
||||
|
||||
$(".cat-list .btn a").click(function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
$('.active').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
|
||||
var filter = $(this).attr("data-filter");
|
||||
var self = $('#body-wrapper #items .full-works');
|
||||
|
||||
self.masonryFilter({
|
||||
filter: function () {
|
||||
if (!filter) return true;
|
||||
return $(this).attr("data-filter") == filter;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$grid.imagesLoaded().progress(function() {
|
||||
$grid.masonry();
|
||||
});
|
||||
|
||||
$grid2.imagesLoaded().progress(function() {
|
||||
$grid2.masonry();
|
||||
});
|
||||
}
|
||||
|
||||
function filteritem() {
|
||||
var $card = $('#body > .card');
|
||||
var $cat = $('.cat a');
|
||||
var $img = $('#body .img');
|
||||
}
|
||||
|
||||
function contact() {
|
||||
var $contact = $('header .contact h3');
|
||||
|
||||
$contact.on('click', function() {
|
||||
if ($(this).parent(".contact").hasClass('open')) {
|
||||
$(this).parent(".contact").removeClass('open');
|
||||
$(this).parent(".contact").addClass('close');
|
||||
} else {
|
||||
$(this).parent(".contact").addClass('open');
|
||||
$(this).parent(".contact").removeClass('close');
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
var $page = $('#page-wrapper.blog');
|
||||
function customscroll($page_item) {
|
||||
var $page_item = $("#page-wrapper.item");
|
||||
|
||||
$page_item.mCustomScrollbar({
|
||||
theme: "dark",
|
||||
scrollbarPosition: "outside",
|
||||
scrollInertia: 1000,
|
||||
callbacks: {
|
||||
onInit: function(){
|
||||
$('.top').on('click', function() {
|
||||
event.preventDefault()
|
||||
$page_item.mCustomScrollbar('scrollTo',['top',null]);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$("#page-wrapper.blog").mCustomScrollbar({
|
||||
theme: "dark",
|
||||
scrollbarPosition: "outside",
|
||||
callbacks: {
|
||||
whileScrolling: function() {
|
||||
var pct = this.mcs.topPct;
|
||||
if ( ($page.hasClass('down')) ) {
|
||||
} else {
|
||||
$("#page-wrapper").addClass("down");
|
||||
$(this).mCustomScrollbar("disable",true);
|
||||
setTimeout(function(){
|
||||
console.log('time');
|
||||
$("#page-wrapper").mCustomScrollbar("update");
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function clickscroll() {
|
||||
var $btnscroll = $('.scroll');
|
||||
$btnscroll.on('click', function() {
|
||||
$page.addClass("down");
|
||||
})
|
||||
}
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
masonry();
|
||||
filteritem();
|
||||
contact();
|
||||
customscroll();
|
||||
clickscroll();
|
||||
});
|
||||
+1
@@ -0,0 +1 @@
|
||||
function map(){var $carte=$('#carte');if($carte.length){var mymap=L.map('carte').setView([44.7365818,4.9776488],13);var greenIcon=L.icon({iconUrl:'/user/themes/lecampus/images/mappoint.svg',iconSize:[38,95],iconAnchor:[22,94],popupAnchor:[-3,-76]});L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw',{maxZoom:18,id:'mapbox.streets'}).addTo(mymap);L.marker([44.7365818,4.9776488],{icon:greenIcon}).addTo(mymap);function onMapClick(e){popup.setLatLng(e.latlng).setContent("You clicked the map at "+e.latlng.toString()).openOn(mymap)}mymap.on('click',onMapClick)}}function filteritem(){var $card=$('.body-wrapper > .card');var $cat=$('.cat a');var $img=$('.body-wrapper .img');$(".filters .btn").click(function(e){e.preventDefault();var filter=$(this).attr("data-filter");var self=$('.body-wrapper');self.masonryFilter({filter:function(){if(!filter){return true}return $(this).attr("data-filter")==filter}})});var $grid=$('#archive .body-wrapper, #calendrier .body-wrapper').masonry({itemSelector:'.card',gutter:10,transitionDuration:'0.2s'});$grid.imagesLoaded().progress(function(){$grid.masonry()})}function slide(){$('.gal').bxSlider({responsive:true,infiniteLoop:true,preloadImages:'visible',pager:false,auto:true});$('.gal-salles').bxSlider({pagerType:'full',responsive:true,mode:'fade',captions:true})}function links(){var $a=$('li a[href="/organisez-vos-evenements"],li a[href="/qui-sommes-nous"] ');var $map=$('a#carte');$a.on('click',function(e){e.preventDefault()});$map.on('click',function(e){e.preventDefault()})}function clickbutton(){var $button=$('#ajax-test-form .radio label');$button.on('click',function(){$(this).parents('.form-data').find('.check').removeClass('check');$(this).parent('.radio').addClass('check')})}function clicksenddevis(){var $ok=$('.ok');var $send=$('#send-valide');$ok.on('click',function(){$(this).parent('#send-valide').remove()})}function addclass(){var $map=$('a#carte');$map.parents('.content_s').addClass('map');var $reco_click=$('#reco .title');var $reco_txt=$('#reco .txt');$reco_click.on('click',function(){$reco_txt.toggleClass('open');$(this).toggleClass('open');$('html, body').animate({scrollTop:$('#reco').position().top},'slow')});var $out=$('.opt-out .txt');$out.on('click',function(){$(this).parent('.opt-out').toggleClass('open')})}function mapsalles(){var $salles=$('.fond svg path');var $content=$('.content .content_salle');arrayid=[];$('.content .content_salle#salle_trois_becs').css("visibility","visible");$('.fond svg path#salle_trois_becs').css("fill","#0093a3");$salles.on('click',function(idsalle){var idsalle=this.id;arrayid.push(idsalle);$salles.css("fill","white");$(this).css("fill","#0093a3");$('.content .content_salle').css("visibility","hidden");$('.content .content_salle#'+arrayid).css("visibility","visible");arrayid.length=0});var $close=$('.content_salle .header-salles img');$close.on('click',function(){$(this).parents('.content_salle').css("visibility","hidden");$salles.css("fill","white")})};function burger(){$('.navTrigger').click(function(){$(this).toggleClass('active');$('.dropmenu').toggleClass('active')})}function ajaxformulaire(){$(".ok").on('click',function(){$(this).parent('#send-valide').remove();location.reload()});var form=$('#ajax-test-form');form.submit(function(e){e.preventDefault();$.ajax({url:form.attr('action'),type:form.attr('method'),dataType:'html',data:form.serialize(),success:function(result){$('#form-result').html(result)}})})}jQuery(document).ready(function(){addclass();mapsalles();clickbutton();clicksenddevis();links();slide();filteritem();map();burger()});
|
||||
@@ -0,0 +1,23 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
{% set blog_image = page.media.images[page.header.hero_image] ?: page.media.images|first %}
|
||||
{% set collection = page.collection() %}
|
||||
{% 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) %}
|
||||
|
||||
|
||||
{% block body %}
|
||||
<section id="body-wrapper">
|
||||
{% embed 'partials/layout.html.twig' with {blog: page} %}
|
||||
{% block item %}
|
||||
<div class="works full-works">
|
||||
{% for child in collection if child.template == 'item' %}
|
||||
{% include 'partials/blog-list-item.html.twig' with {blog: page, page: child} %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,17 @@
|
||||
{% block content %}
|
||||
<div class="txt">
|
||||
{{ page.content|raw }}
|
||||
<div class="reso">
|
||||
<div class="fb">
|
||||
<a href="https://www.facebook.com/gilles.acezat" target="_blank">
|
||||
<img src="user/themes/gilles_acezat/images/fb.svg" alt="logo facebook">
|
||||
</a>
|
||||
</div>
|
||||
<div class="insta">
|
||||
<a href="https://www.instagram.com/acezatgilles/" target="_blank">
|
||||
<img src="user/themes/gilles_acezat/images/insta.svg" alt="logo instagram">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,12 @@
|
||||
{% extends 'partials/base.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<div id="error">
|
||||
<div>
|
||||
<h1>{{ 'PLUGIN_ERROR.ERROR'|t }} {{ page.header.http_response_code }}</h1>
|
||||
<p>
|
||||
{{ page.content|raw }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,32 @@
|
||||
{% extends "forms/field.html.twig" %}
|
||||
|
||||
{% block label %}
|
||||
{% endblock %}
|
||||
|
||||
{% block input %}
|
||||
{% set id = field.id|default(field.name) ~ '-' ~ key %}
|
||||
<div class="{{ form_field_wrapper_classes ?: 'form-input-wrapper' }} {{ field.size }} {{ field.wrapper_classes }}">
|
||||
<label class="{{ form_field_checkbox_classes }}" for="{{ id|e }}">
|
||||
<input
|
||||
{# required attribute structures #}
|
||||
name="{{ (scope ~ field.name)|fieldName }}"
|
||||
value="{{ value|join(', ') }}"
|
||||
type="checkbox"
|
||||
{% if value == true %} checked="checked" {% endif %}
|
||||
|
||||
{# input attribute structures #}
|
||||
{% block input_attributes %}
|
||||
id="{{ id|e }}"
|
||||
{% if field.classes is defined %}class="{{ field.classes }}" {% endif %}
|
||||
{% if field.style is defined %}style="{{ field.style|e }}" {% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}
|
||||
{% if field.autofocus in ['on', 'true', 1] %}autofocus="autofocus"{% endif %}
|
||||
{% if field.novalidate in ['on', 'true', 1] %}novalidate="novalidate"{% endif %}
|
||||
{% if required %}required="required"{% endif %}
|
||||
{% endblock %}
|
||||
/>
|
||||
<i class="form-icon"></i>
|
||||
{{ field.label|t|e }} {{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}
|
||||
</label>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,44 @@
|
||||
{% extends "forms/field.html.twig" %}
|
||||
|
||||
{% set originalValue = value %}
|
||||
{% set value = (value is null ? field.default : value) %}
|
||||
{% if field.use == 'keys' and field.default %}
|
||||
{% set value = field.default|merge(value) %}
|
||||
{% endif %}
|
||||
|
||||
{% block global_attributes %}
|
||||
{{ parent() }}
|
||||
data-grav-keys="{{ field.use == 'keys' ? 'true' : 'false' }}"
|
||||
data-grav-field-name="{{ (scope ~ field.name)|fieldName }}"
|
||||
{% endblock %}
|
||||
|
||||
{% block input %}
|
||||
{% for key, text in field.options %}
|
||||
|
||||
{% set id = field.id|default(field.name) ~ '-' ~ key %}
|
||||
{% set name = field.use == 'keys' ? key : id %}
|
||||
{% set val = field.use == 'keys' ? '1' : key %}
|
||||
{% set checked = (field.use == 'keys' ? value[key] : key in value) %}
|
||||
{% set help = (key in field.help_options|keys ? field.help_options[key] : false) %}
|
||||
|
||||
<div class="checkboxes {{ form_field_wrapper_classes }} {{ field.wrapper_classes }}">
|
||||
<label class="{{ form_field_checkbox_classes }}" for="{{ id|e }}">
|
||||
<input type="checkbox"
|
||||
id="{{ id|e }}"
|
||||
value="{{ val|e }}"
|
||||
name="{{ (scope ~ field.name)|fieldName ~ '[' ~ name ~ ']' }}"
|
||||
{% if checked %}checked="checked"{% endif %}
|
||||
{% if field.classes is defined %}class="{{ field.classes }}" {% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}
|
||||
|
||||
>
|
||||
<i class="form-icon"></i>
|
||||
{% if help %}
|
||||
<span class="hint--bottom" data-hint="{{ help|t|e('html_attr') }}">{{ text|t|e }}</span>
|
||||
{% else %}
|
||||
{{ text|t|e }}
|
||||
{% endif %}
|
||||
</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,26 @@
|
||||
{% extends "forms/field.html.twig" %}
|
||||
|
||||
{% set originalValue = value %}
|
||||
{% set value = (value is null ? field.default : value) %}
|
||||
|
||||
{% block input %}
|
||||
{% for key, text in field.options %}
|
||||
{% set id = field.id|default(field.name) ~ '-' ~ key %}
|
||||
|
||||
<div class="radio {{ form_field_wrapper_classes }} {{ field.wrapper_classes }}">
|
||||
<label class="{{ form_field_radio_classes }}" for="{{ id|e }}">
|
||||
<input type="radio"
|
||||
value="{{ key|e }}"
|
||||
id="{{ id|e }}"
|
||||
name="{{ (scope ~ field.name)|fieldName }}"
|
||||
{% if field.classes is defined %}class="{{ field.classes }}" {% endif %}
|
||||
{% if key == value %}checked="checked" {% endif %}
|
||||
{% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}
|
||||
{% if required %}required="required"{% endif %}
|
||||
/>
|
||||
<i class="form-icon"></i>
|
||||
{% if grav.twig.twig.filters['tu'] is defined %}{{ text|tu|raw }}{% else %}{{ text|t|raw }}{% endif %}
|
||||
</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,3 @@
|
||||
{% set form_field_checkbox_classes = 'form-switch' %}
|
||||
{% extends "forms/fields/checkbox/checkbox.html.twig" %}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
{% 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 %}
|
||||
<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 %}
|
||||
|
||||
{% embed 'partials/layout.html.twig' %}
|
||||
{% block item %}
|
||||
{% include 'partials/blog-item.html.twig' %}
|
||||
{% endblock %}
|
||||
{% block sidebar %}
|
||||
{% include 'partials/sidebar.html.twig' %}
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
</section>
|
||||
</section>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,8 @@
|
||||
{% macro nav_loop(page) %}
|
||||
{% import _self as macros %}
|
||||
|
||||
{% for p in page.children.visible if p.template == 'default' %}
|
||||
{% set active_page = (p.active or p.activeChild) ? ' class="active"' : '' %}
|
||||
{% include 'default.html.twig' with {blog: page, page: p} %}
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
@@ -0,0 +1,42 @@
|
||||
{% 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 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 %}
|
||||
{% for module in page.collection() if module.template != 'modular/hero' %}
|
||||
<div id="{{ macro.pageLinkName(module.menu) }}"></div>
|
||||
{{ module.content|raw }}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,30 @@
|
||||
{% set grid_size = theme_var('grid-size') %}
|
||||
{% set columns = page.header.class == 'small' ? 'col-3 col-md-4 col-sm-6' : 'col-4 col-md-6 col-sm-12' %}
|
||||
<section class="section modular-features {{ page.header.class}}">
|
||||
<section class="container {{ grid_size }}">
|
||||
<div class="frame-box">
|
||||
|
||||
{{ content|raw }}
|
||||
|
||||
<div class="columns">
|
||||
{% for feature in page.header.features %}
|
||||
<div class="column {{ columns }}">
|
||||
{% if feature.url %}<a href="{{feature.url}}">{% endif %}
|
||||
<div class="feature-icon">
|
||||
<i class="fa fa-fw {{ feature.icon }}"></i>
|
||||
{% if feature.header %}
|
||||
<h6>{{ feature.header }}</h6>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if feature.url %}</a>{% endif %}
|
||||
<div class="feature-content">
|
||||
{% if feature.text %}
|
||||
<p>{{ feature.text }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
@@ -0,0 +1,4 @@
|
||||
{% set grid_size = theme_var('grid-size') %}
|
||||
{% set hero_image = page.header.hero_image ? page.media[page.header.hero_image] : page.media.images|first %}
|
||||
|
||||
{% include 'partials/hero.html.twig' %}
|
||||
@@ -0,0 +1,23 @@
|
||||
{% set grid_size = theme_var('grid-size') %}
|
||||
{% set image = page.media.images|first %}
|
||||
|
||||
<section class="section modular-text {{ page.header.class}} bg-gray">
|
||||
<section class="container {{ grid_size }}">
|
||||
<div class="columns {{ page.header.image_align|default('align-right') }}">
|
||||
{% if image %}
|
||||
<div class="column col-6 col-md-12">
|
||||
{{ content|raw }}
|
||||
</div>
|
||||
<div class="column col-6 col-md-12">
|
||||
{% if image %}
|
||||
{{ image.html|raw }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="column col-12">
|
||||
{{ content|raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,177 @@
|
||||
{% 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/theme'~compress) %}
|
||||
{% endblock %}
|
||||
{{ assets.css()|raw }}
|
||||
|
||||
{% block javascripts %}
|
||||
{% do assets.addJs('jquery', 101) %}
|
||||
{% do assets.addJs('theme://js/jquery.easing.1.3.js', {group:'bottom'}) %}
|
||||
{% do assets.addJs('theme://js/imagesloaded.pkgd.min.js', {group:'bottom'}) %}
|
||||
{% do assets.addJs('theme://js/masonry.filter.js', {group:'bottom'}) %}
|
||||
{% do assets.addJs('theme://js/masonry.pkgd.min.js', {group:'bottom'}) %}
|
||||
{% do assets.addJs('theme://js/jquery.mCustomScrollbar.js', {group:'bottom'}) %}
|
||||
{% do assets.addJs('theme://js/jquery.mousewheel.min.js', {group:'bottom'}) %}
|
||||
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
|
||||
{% endblock %}
|
||||
|
||||
{{ assets.js()|raw }}
|
||||
|
||||
{% endblock head %}
|
||||
</head>
|
||||
|
||||
<body id="top" class="{{page.template}}">
|
||||
<div id="page-wrapper" class=" {{page.template}}">
|
||||
{% block header %}
|
||||
<header class="section">
|
||||
<div class="head">
|
||||
<div class="contact">
|
||||
<svg viewBox="0 0 100 100" shape-rendering="geometricPrecision" >
|
||||
<polygon points="34.2,87.4 12.3,65.5 12.3,34.5 34.2,12.6 65.2,12.6 87.1,34.5 87.1,65.5 65.2,87.4" fill="black"/>
|
||||
</svg>
|
||||
|
||||
<h3>Contact</h3>
|
||||
{% include 'partials/navigation.html.twig' %}
|
||||
</div>
|
||||
<nav class="title">
|
||||
<a href="/">
|
||||
<div class="svg-container">
|
||||
<svg
|
||||
version="1.1"
|
||||
viewBox="0 0 1700 230"
|
||||
preserveAspectRatio="xMinYMin meet"
|
||||
class="svg-content"
|
||||
shape-rendering="geometricPrecision"
|
||||
>
|
||||
<path
|
||||
d="M 1,224.86667 V 14.186658 h 51.52 q 34.653332,0 50.29333,11.653342 15.94667,11.653341 15.94667,39.866682 0,9.199975 -2.14667,17.173304 -1.84,7.666696 -4.90667,13.8 -2.76,6.133344 -6.74666,10.733364 -3.98667,4.59999 -7.973337,7.66666 12.879997,8.58667 18.706667,22.08 6.13333,13.49333 6.13333,31.27997 0,15.9467 -4.6,26.68003 -4.6,10.73333 -13.49333,17.47997 -8.893333,6.44002 -21.466668,9.50669 -12.266664,2.76 -27.906663,2.76 z m 32.199998,-26.67999 h 19.933333 q 8.893334,0 15.640002,-1.22668 6.746665,-1.53332 11.039996,-5.21333 4.600003,-3.98669 7.053335,-10.73333 2.453333,-6.74668 2.453333,-17.48001 0,-19.62667 -8.893334,-27.90667 -8.586667,-8.28 -26.986665,-8.28 h -20.24 z m 0,-95.37335 h 18.706668 q 8.28,0 14.719998,-0.91998 6.440001,-0.92001 10.733332,-4.293351 4.293336,-3.373342 6.440001,-9.506646 2.453333,-6.133342 2.453333,-16.253367 0,-10.733329 -2.453333,-16.866632 -2.453332,-6.133342 -7.053331,-9.200013 -4.600003,-3.066671 -11.04,-3.986683 -6.440001,-0.919975 -14.720001,-0.919975 H 33.199998 Z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path854"
|
||||
/>
|
||||
<path
|
||||
d="m 184.05124,58.959999 v 88.933341 q 0,17.78664 0.61333,28.82664 0.92,11.04 3.06667,17.17335 2.14667,5.82667 6.13333,7.97333 3.98667,2.14665 10.12,2.14665 14.10667,0 19.93333,-11.34663 5.82667,-11.65334 5.82667,-42.32001 V 58.959999 h 30.36 V 224.86667 h -23 l -6.74667,-16.25333 q -7.05333,9.81331 -16.56,14.71997 -9.2,4.60003 -21.15999,4.60003 -21.77334,0 -30.36,-15.64003 -8.58667,-15.94665 -8.58667,-58.5733 V 58.959999 Z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path856"
|
||||
/>
|
||||
<path
|
||||
d="M 295.64437,224.86667 V 58.959999 h 23 l 6.44,16.253329 q 7.66667,-11.346671 19.32,-15.639987 11.96,-4.293354 25.14666,-2.76 v 26.679987 q -1.83999,-0.613342 -3.98666,-0.613342 -2.14667,-0.30652 -4.29334,-0.30652 -14.71999,0 -25.14666,8.893304 -10.42667,8.89334 -10.42667,33.42667 v 99.97334 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path858"
|
||||
/>
|
||||
<path
|
||||
d="m 380.28914,141.45333 q 0,-46.920002 12.87999,-66.240002 13.18666,-19.32 44.16,-19.32 31.27997,0 44.16,19.32 13.18665,19.32 13.18665,66.240002 0,46.61333 -13.18665,66.54667 -12.88003,19.93334 -44.16,19.93334 -30.97334,0 -44.16,-19.93334 -12.87999,-19.93334 -12.87999,-66.54667 z m 30.36,0 q 0,36.80001 5.52,49.68 5.52,12.87998 21.15999,12.87998 15.63998,0 21.15998,-12.87998 5.82667,-12.87999 5.82667,-49.68 0,-36.79998 -5.82667,-49.066661 -5.52,-12.573316 -21.15998,-12.573316 -15.63999,0 -21.15999,12.573316 -5.52,12.266681 -5.52,49.066661 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path860"
|
||||
/>
|
||||
<path
|
||||
d="m 601.0843,1 h 29.74666 v 196.57334 l 3.68001,27.29333 h -27.29333 l -3.37334,-14.72001 q -7.97333,8.58667 -17.47998,13.18665 -9.20001,4.60003 -21.46669,4.60003 -24.53333,0 -34.65332,-20.24001 -10.11998,-20.54665 -10.11998,-65.01332 0,-42.933353 9.81331,-64.706682 9.81336,-22.08 35.88,-22.08 13.49333,0 21.77333,5.826671 8.28,5.52 13.49333,13.493329 z m 0.61334,141.06667 q 0,-35.88 -6.44001,-49.066659 -6.43998,-13.186658 -20.85332,-13.186658 -14.72001,0 -19.62667,12.879987 -4.90666,12.87999 -4.90666,48.75999 0,36.49334 4.90666,49.68 4.90666,12.87998 19.62667,12.87998 14.41334,0 20.85332,-12.87998 6.44001,-13.18666 6.44001,-49.06666 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path862"
|
||||
/>
|
||||
<path
|
||||
d="m 716.69286,204.01331 q 10.11999,0 15.63999,-6.43997 5.52,-6.44001 7.36003,-23.92003 h 29.74665 q -3.98668,28.82669 -16.25332,41.70667 -12.26669,12.57336 -36.80002,12.57336 -29.13331,0 -42.01334,-19.93334 -12.57331,-19.93334 -12.57331,-66.54667 0,-46.613331 12.87998,-65.933331 12.88003,-19.626671 42.01334,-19.626671 15.94666,0 26.37332,5.52 10.73337,5.52 16.86667,15.946658 6.13334,10.426696 8.58667,26.066684 2.76,15.33332 2.76,35.57333 v 10.42666 h -79.11998 q 0.61334,31.89335 5.52,43.24002 5.21332,11.34663 19.01332,11.34663 z m 0,-124.199957 q -12.87998,0 -18.39998,9.813317 -5.21333,9.813316 -5.82667,37.41332 h 48.45331 q -0.61334,-27.600004 -6.13334,-37.41332 -5.52,-9.813317 -18.09332,-9.813317 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path864"
|
||||
/>
|
||||
<path
|
||||
d="m 899.76807,184.08001 q 0,19.9333 -12.26664,31.89332 -12.26668,11.96001 -36.80001,11.96001 -26.37332,0 -38.33333,-14.72001 -11.65334,-14.72002 -12.57332,-39.56002 h 27.29333 q 0.6133,15.33336 5.82663,23.00002 5.52,7.35998 16.86667,7.35998 9.81336,0 15.02669,-5.21333 5.52,-5.21332 5.52,-15.02664 0,-11.96001 -8.58667,-19.32 -8.58667,-7.36003 -20.24002,-14.41334 -12.87998,-7.97333 -25.4533,-19.01333 -12.26668,-11.04 -12.26668,-32.199988 0,-19.626671 12.26668,-30.973341 12.57332,-11.653342 34.03997,-11.653342 23.61336,0 35.57333,13.8 11.96002,13.493329 13.1867,40.173351 h -27.29337 q -0.91997,-15.640022 -5.82663,-23.00001 -4.60003,-7.359987 -14.72001,-7.359987 -8.28,0 -13.49333,5.213329 -4.90666,4.906658 -4.90666,14.413304 0,9.813354 6.74665,16.560004 6.74668,6.44001 17.78668,13.18669 17.1733,9.50665 29.74666,20.85332 12.87998,11.34667 12.87998,34.04001 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path866"
|
||||
/>
|
||||
<path
|
||||
d="M 964.03867,224.86667 H 933.98535 V 82.879986 H 915.27869 V 58.959999 h 19.62667 v -3.680012 q 0,-16.866633 3.68001,-27.293329 3.67998,-10.733329 10.73333,-16.56 7.35999,-6.1333037 18.09332,-8.2799997 Q 978.14535,1 991.94535,1 v 23.920025 q -7.66666,0 -12.87999,0.919975 -4.90666,0.613341 -8.28,3.373341 -3.06667,2.76 -4.59999,8.28 -1.22668,5.52 -1.22668,15.333317 v 6.133341 h 27.29333 v 23.919987 h -28.21335 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path868"
|
||||
/>
|
||||
<path
|
||||
d="m 1003.8048,141.45333 q 0,-46.920002 12.88,-66.240002 13.1867,-19.32 44.16,-19.32 31.28,0 44.16,19.32 13.1867,19.32 13.1867,66.240002 0,46.61333 -13.1867,66.54667 -12.88,19.93334 -44.16,19.93334 -30.9733,0 -44.16,-19.93334 -12.88,-19.93334 -12.88,-66.54667 z m 30.36,0 q 0,36.80001 5.52,49.68 5.52,12.87998 21.16,12.87998 15.64,0 21.16,-12.87998 5.8267,-12.87999 5.8267,-49.68 0,-36.79998 -5.8267,-49.066661 -5.52,-12.573316 -21.16,-12.573316 -15.64,0 -21.16,12.573316 -5.52,12.266681 -5.52,49.066661 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path870"
|
||||
/>
|
||||
<path
|
||||
d="M 1149.1599,224.86667 V 58.959999 h 23 l 6.44,16.253329 q 7.6666,-11.346671 19.32,-15.639987 11.96,-4.293354 25.1467,-2.76 v 26.679987 q -1.84,-0.613342 -3.9867,-0.613342 -2.1467,-0.30652 -4.2933,-0.30652 -14.7201,0 -25.1467,8.893304 -10.4267,8.89334 -10.4267,33.42667 v 99.97334 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path872"
|
||||
/>
|
||||
<path
|
||||
d="M 1241.342,224.86667 V 58.959999 h 23.3067 l 6.7467,16.253329 q 6.1333,-7.973329 15.64,-13.493329 9.5066,-5.826671 22.08,-5.826671 8.5866,0 16.2533,3.986684 7.9733,3.986645 13.1867,15.946658 7.36,-9.506684 17.1733,-14.720013 9.8133,-5.213329 24.84,-5.213329 21.4667,0 28.8267,16.56 7.6666,16.56 7.6666,59.493352 v 92.91999 h -30.36 v -90.77333 q 0,-16.56 -0.6133,-26.98666 -0.6133,-10.733327 -2.4533,-16.866669 -1.5334,-6.133341 -5.2134,-8.28 -3.3733,-2.146658 -9.2,-2.146658 -6.1333,0 -11.04,1.839988 -4.6,1.533316 -7.6666,6.746645 -3.0667,5.213367 -4.6,14.413344 -1.5334,8.89334 -1.5334,23.92002 v 98.13332 h -30.3599 v -90.77333 q 0,-33.42667 -3.0667,-43.853329 -3.0667,-10.426658 -14.72,-10.426658 -13.8,0 -19.32,12.573316 -5.2134,12.266681 -5.2134,41.706671 v 90.77333 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path874"
|
||||
/>
|
||||
<path
|
||||
d="m 1502.5262,204.01331 q 10.12,0 15.64,-6.43997 5.52,-6.44001 7.3599,-23.92003 h 29.7467 q -3.9866,28.82669 -16.2533,41.70667 -12.2667,12.57336 -36.8,12.57336 -29.1333,0 -42.0133,-19.93334 -12.5734,-19.93334 -12.5734,-66.54667 0,-46.613331 12.88,-65.933331 12.88,-19.626671 42.0134,-19.626671 15.9466,0 26.3733,5.52 10.7333,5.52 16.8667,15.946658 6.1333,10.426696 8.5866,26.066684 2.76,15.33332 2.76,35.57333 v 10.42666 h -79.12 q 0.6134,31.89335 5.52,43.24002 5.2134,11.34663 19.0134,11.34663 z m 0,-124.199957 q -12.8801,0 -18.4,9.813317 -5.2134,9.813316 -5.8267,37.41332 h 48.4533 q -0.6133,-27.600004 -6.1333,-37.41332 -5.52,-9.813317 -18.0933,-9.813317 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path876"
|
||||
/>
|
||||
<path
|
||||
d="m 1685.6014,184.08001 q 0,19.9333 -12.2667,31.89332 -12.2666,11.96001 -36.8,11.96001 -26.3733,0 -38.3333,-14.72001 -11.6533,-14.72002 -12.5734,-39.56002 h 27.2934 q 0.6133,15.33336 5.8266,23.00002 5.52,7.35998 16.8667,7.35998 9.8133,0 15.0267,-5.21333 5.52,-5.21332 5.52,-15.02664 0,-11.96001 -8.5867,-19.32 -8.5866,-7.36003 -20.24,-14.41334 -12.88,-7.97333 -25.4533,-19.01333 -12.2667,-11.04 -12.2667,-32.199988 0,-19.626671 12.2667,-30.973341 12.5733,-11.653342 34.04,-11.653342 23.6133,0 35.5733,13.8 11.96,13.493329 13.1867,40.173351 h -27.2934 q -0.92,-15.640022 -5.8266,-23.00001 -4.6,-7.359987 -14.72,-7.359987 -8.28,0 -13.4934,5.213329 -4.9066,4.906658 -4.9066,14.413304 0,9.813354 6.7467,16.560004 6.7466,6.44001 17.7866,13.18669 17.1733,9.50665 29.7467,20.85332 12.88,11.34667 12.88,34.04001 z"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
id="path878"
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
</a>
|
||||
<h2>{{site.header.status|upper}}</h2></a>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="works works-mea">
|
||||
{% for child in collection %}
|
||||
{% set mea = child.header.mea == 'true' %}
|
||||
{% if mea %}
|
||||
{% include 'partials/blog-list-mea.html.twig' with {blog: page, page: child} %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="scroll">
|
||||
<p>
|
||||
<svg
|
||||
version="1.1"
|
||||
width="9.2404556"
|
||||
height="8.180007">
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path984"
|
||||
d="M 0.50358559,0.50617384 4.6454375,7.6800572 8.7368705,0.59348093"
|
||||
style="fill:#000000;fill-opacity:0;stroke:#000000;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
</svg>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
{% endblock %}
|
||||
|
||||
<section id="start" class="section">
|
||||
<div class="cat-list btn-toolbar">
|
||||
<ul>
|
||||
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'category', children_only: true} %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% block body %}
|
||||
{% block content %}{% endblock %}
|
||||
{% endblock %}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{% block bottom %}
|
||||
{{ assets.js('bottom')|raw }}
|
||||
{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,101 @@
|
||||
{% if not hero_image_name %}
|
||||
<div class="header-item">
|
||||
<div class="info">
|
||||
<div class="title">
|
||||
{% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
|
||||
{% if page.header.subtitle %}
|
||||
<h3 >{{ page.header.subtitle }}</h3>
|
||||
{% endif %}
|
||||
{% include 'partials/blog/category.html.twig' %}
|
||||
{% include 'partials/blog/date.html.twig' %}
|
||||
</div>
|
||||
<div class="tags">
|
||||
{% include 'partials/blog/taxonomy.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="content">
|
||||
<div class="txt">
|
||||
{{ page.content|raw }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="prev-next">
|
||||
|
||||
{% if not page.isLast %}
|
||||
<a class="btn" href="{{ page.prevSibling.url }}">
|
||||
<div class="btn-info">
|
||||
|
||||
<span class="title">{{ page.prevSibling.title }}</span>
|
||||
|
||||
{% if page.prevSibling.taxonomy.category %}
|
||||
<span class="tags">
|
||||
{% for category in page.prevSibling.taxonomy.category %}
|
||||
{{ category }}
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
<span class="blog-date">
|
||||
<time class="dt-published" datetime="{{ page.date|date("c") }}">
|
||||
{{ page.prevSibling.date|date("Y") }}
|
||||
</time>
|
||||
</span>
|
||||
</div>
|
||||
<img src="user/themes/gilles_acezat/images/arrow.svg" alt="">
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if page.isLast %}
|
||||
{% set parent = page.parent %}
|
||||
{% for first_item in parent.collection.slice(0, 1) %}
|
||||
|
||||
<a class="btn" href="{{ first_item.url }}">
|
||||
<div class="btn-info">
|
||||
<span class="title">{{ first_item.title }}</span>
|
||||
{% if first_item.taxonomy.category %}
|
||||
<span class="tags">
|
||||
{% for category in first_item.taxonomy.category %}
|
||||
{{ category }}
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<span class="blog-date">
|
||||
<time class="dt-published" datetime="{{ first_item.date|date("c") }}">
|
||||
{{ first_item.date|date("Y") }}
|
||||
</time>
|
||||
</span>
|
||||
</div>
|
||||
<img src="user/themes/gilles_acezat/images/arrow.svg" alt="">
|
||||
</a>
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="img">
|
||||
{% for image in page.media.images %}
|
||||
<div class="img-card">
|
||||
{{ image.html }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="top">
|
||||
<!-- <img src="user/themes/gilles_acezat/images/arrow-top.svg" alt=""> -->
|
||||
<svg
|
||||
version="1.1"
|
||||
width="9.2404556"
|
||||
height="8.180007">
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:0;stroke:#000000;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 8.7368705,7.6738333 4.5950186,0.49994998 0.50358559,7.5865262"
|
||||
id="path995"
|
||||
inkscape:connector-curvature="0" />
|
||||
</svg>
|
||||
|
||||
<!-- <p>top</p> -->
|
||||
</div>
|
||||
@@ -0,0 +1,36 @@
|
||||
{% for category in page.taxonomy.category %}
|
||||
<div class="card" data-filter ="{{category}}">
|
||||
|
||||
{% set image = page.media.images|first %}
|
||||
{% if image %}
|
||||
<div class="card-image">
|
||||
<a href="{{ page.url }}">{{ image.html }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
|
||||
</div>
|
||||
|
||||
|
||||
{% if page.taxonomy.category %}
|
||||
<div class="card-category">
|
||||
{% include 'partials/blog/category.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if page.date %}
|
||||
<div class="card-date">
|
||||
{% include 'partials/blog/date.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if page.taxonomy.tag %}
|
||||
<div class="card-footer">
|
||||
{% include 'partials/blog/taxonomy.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,33 @@
|
||||
{% for category in page.taxonomy.category %}
|
||||
<div class="card {{ category }}">
|
||||
|
||||
<div class="card-image">
|
||||
<a href="{{ page.url }}"><img src="{{page.url}}/{{page.header.meaimg}}" alt="{{page.header.meaimg}}"></a>
|
||||
</div>
|
||||
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
{% include 'partials/blog/title.html.twig' with {title_level: 'h5'} %}
|
||||
</div>
|
||||
|
||||
|
||||
{% if page.taxonomy.category %}
|
||||
<div class="card-category">
|
||||
{% include 'partials/blog/category.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if page.date %}
|
||||
<div class="card-date">
|
||||
{% include 'partials/blog/date.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if page.taxonomy.tag %}
|
||||
<div class="card-footer">
|
||||
{% include 'partials/blog/taxonomy.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,7 @@
|
||||
{% if page.taxonomy.category %}
|
||||
<span class="category">
|
||||
{% for category in page.taxonomy.category %}
|
||||
<a class="label label-rounded {{ label_style ?: 'label-secondary' }} p-category" href="{{page.url}}">{{ category }}</a>
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,3 @@
|
||||
<time datetime="{{ page.date|date("c") }}">
|
||||
{{ page.date|date("Y") }}
|
||||
</time>
|
||||
@@ -0,0 +1,8 @@
|
||||
<div class="p-summary e-content">
|
||||
{% if page.summary != page.content %}
|
||||
{{ page.summary|raw }}
|
||||
{% else %}
|
||||
{{ page.content|raw }}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -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-tag" href="{{page.url}}">{{ tag }}</a>
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{% set title_level = title_level ?: 'h2' %}
|
||||
{% if page.header.link %}
|
||||
<{{ title_level }}>
|
||||
{% 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 %}
|
||||
<a href="{{ page.url }}"><{{ title_level }}>{{ page.title }}</{{ title_level }}></a>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,5 @@
|
||||
<section id="footer" class="section bg-gray">
|
||||
<section class="container {{ grid_size }}">
|
||||
<p><a href="http://getgrav.org">Grav</a> was <i class="fa fa-code"></i> with <i class="fa fa-heart-o pulse "></i> by <a href="https://trilby.media">Trilby Media</a>.</p>
|
||||
</section>
|
||||
</section>
|
||||
@@ -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 %}
|
||||
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div id="items">
|
||||
{% block item %}{% endblock %}
|
||||
</div>
|
||||
@@ -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>
|
||||
@@ -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 %}
|
||||
@@ -0,0 +1,3 @@
|
||||
{% import 'macros/macros.html.twig' as macros %}
|
||||
|
||||
{{ macros.nav_loop(pages) }}
|
||||
@@ -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>
|
||||
@@ -0,0 +1,43 @@
|
||||
{% set feed_url = blog.url == '/' or blog.url == base_url_relative ? (base_url_relative~'/'~blog.slug) : blog.url %}
|
||||
{% set new_base_url = blog.url == '/' ? '' : blog.url %}
|
||||
|
||||
{% if config.plugins.simplesearch.enabled %}
|
||||
<div class="sidebar-content">
|
||||
{% include 'partials/simplesearch_searchbox.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.plugins.relatedpages.enabled and related_pages|length > 0 %}
|
||||
<div class="sidebar-content">
|
||||
<h4>{{ 'THEME_QUARK.SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/relatedpages.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.plugins.random.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>{{ 'THEME_QUARK.SIDEBAR.RANDOM_ARTICLE.HEADLINE'|t }}</h4>
|
||||
<a class="button" href="{{ base_url }}/random"><i class="fa fa-retweet"></i> {{ 'THEME_QUARK.SIDEBAR.RANDOM_ARTICLE.FEELING_LUCKY'|t }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{{ page.find('/modules/sidebar').content|raw }}
|
||||
|
||||
{% if config.plugins.taxonomylist.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>{{ 'THEME_QUARK.SIDEBAR.POPULAR_TAGS.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag'} %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.plugins.archives.enabled %}
|
||||
<div class="sidebar-content">
|
||||
<h4>{{ 'THEME_QUARK.SIDEBAR.ARCHIVES.HEADLINE'|t }}</h4>
|
||||
{% include 'partials/archives.html.twig' with {'base_url':new_base_url} %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if config.plugins.feed.enabled %}
|
||||
<div class="sidebar-content syndicate">
|
||||
<h4>{{ 'THEME_QUARK.SIDEBAR.SYNDICATE.HEADLINE'|t }}</h4>
|
||||
<a class="btn" href="{{ feed_url }}.atom"><i class="fa fa-rss-square"></i> Atom 1.0</a>
|
||||
<a class="btn" href="{{ feed_url }}.rss"><i class="fa fa-rss-square"></i> RSS</a>
|
||||
{% if config.plugins.feed.enable_json_feed %}<a class="btn" href="{{ feed_url }}.json"><i class="fa fa-rss-square"></i> JSON</a>{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,15 @@
|
||||
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
||||
|
||||
{% if taxlist %}
|
||||
<div data-toggle="buttons" class="btn-group">
|
||||
<label class="btn btn-default">
|
||||
<a class="filter" href="#" data-filter="">Tous</a>
|
||||
</label>
|
||||
{% for tax,value in taxlist[taxonomy] %}
|
||||
{% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
|
||||
<label class="btn btn-default">
|
||||
<a class="filter" href="#" data-filter="{{ tax }}">{{tax}}</a>
|
||||
</label>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user