{% extends "base.html.twig" %} {% block localstyle %} #main { padding: 0px; display:none; margin-bottom:200px; } {% if app.session.get("appthumbfilter")=="1" %} .cssfilter { filter: grayscale({{app.session.get("appthumbfiltergrayscale")}}%) opacity({{app.session.get("appthumbfilteropacity")}}%) sepia({{app.session.get("appthumbfiltersepia")}}%); transition: -webkit-filter 0.1s; } .cssfilter:hover { filter: unset; -webkit-filter: unset; -moz-filter: unset; -o-filter: unset; -ms-filter: unset; -webkit-transition: -webkit-filter 0.1s; transition: -webkit-filter 0.1s; } {% endif %} {% for category in categorys|sort((a, b) => a.order <=> b.order) %} {% if category.usecategoryconfig and category.appthumbfilter %} .cssfilter-{{category.id}} { filter: grayscale({{category.appthumbfiltergrayscale}}%) opacity({{category.appthumbfilteropacity}}%) sepia({{category.appthumbfiltersepia}}%); transition: -webkit-filter 0.1s; } .cssfilter-{{category.id}}:hover { filter: unset; -webkit-filter: unset; -moz-filter: unset; -o-filter: unset; -ms-filter: unset; -webkit-transition: -webkit-filter 0.1s; transition: -webkit-filter 0.1s; } {% endif %} {% endfor %} {% endblock %} {% block body %}
Accueil  {% for category in categorys|sort((a, b) => a.order <=> b.order) %} {% if not category.illustrations is empty %} {{category.name}}  {% endif %} {% endfor %} {% if not webzines is empty %} Webzines  {% endif %} Liens  Contact 
{% if app.user %} {% if is_granted('ROLE_ADMIN') %} {% endif %} {% else %} {% endif %}
{%if not config.hero01 is empty %}
{%endif%} {%if not config.hero02 is empty %}
{%endif%} {%if not config.hero03 is empty %}
{%endif%} {%if not config.hero04 is empty %}
{%endif%} {%if not config.hero05 is empty %}
{%endif%}
{% if app.user %} {% if is_granted('ROLE_ADMIN') %} {% endif %} {% else %} {% endif %}

{{ (user.pseudo?user.pseudo:user.displayname) }}

{% if not config.appsubname is empty %} {{ config.appsubname }}
{% endif %}
{% if user.email is not empty %} {% endif %} {% if config.facebook is not empty %} {% endif %} {% if config.instagram is not empty %} {% endif %} {% if config.twitter is not empty %} {% endif %} {% if config.google is not empty %} {% endif %} {% if config.youtube is not empty %} {% endif %}
Accueil
{% for category in categorys|sort((a, b) => a.order <=> b.order) %} {% if not category.illustrations is empty %} {{category.name}}
{% endif %} {% endfor %} {% if not webzines is empty %} Webzines
{% endif %} {% if not links is empty %} Liens
{% endif %} Contact
{% set style="margin:30px" %} {% if app.session.get("appmaxthumbwidth")!="0" %} {% set style="max-width:"~app.session.get("appmaxthumbwidth")~"px; margin:30px auto;" %} {% endif %}
{% for category in categorys|sort((a, b) => a.order <=> b.order) %} {% if not category.illustrations is empty %}

{{ category.name }}

{% for illustration in category.illustrations %} {% set appthumbwidth=app.session.get("appthumbwidth") %} {% set appthumbheight=app.session.get("appthumbheight") %} {% if category.usecategoryconfig %} {% set appthumbwidth=category.appthumbwidth %} {% set appthumbheight=category.appthumbheight %} {% endif %} {% if appthumbwidth==0 %} {% set class="" %} {% if loop.index < 40 %} {% if loop.index == 1 %} {% set class="grid-item-size-4" %} {% elseif loop.index is divisible by(28) %} {% set class="grid-item-size-4" %} {% elseif loop.index is divisible by(7) %} {% set class="grid-item-size-2" %} {% elseif loop.index is divisible by(46) %} {% set class="grid-item-size-4" %} {% endif %} {% elseif loop.index > 48 %} {% if loop.index == 49 %} {% set class="grid-item-size-4" %} {% elseif (loop.index-49) is divisible by(28) %} {% set class="grid-item-size-4" %} {% elseif (loop.index-49) is divisible by(7) %} {% set class="grid-item-size-2" %} {% endif %} {% endif %} {% elseif appthumbwidth==1 %} {% set class="" %} {% elseif appthumbwidth==2 %} {% set class="grid-item-size-2" %} {% endif %} {%if appthumbheight==0 %} {% set class=class~" grid-item-size-square" %} {% elseif appthumbheight==1 %} {% set class=class~" grid-item-size-proportion" %} {% else %} {% set class=class~" grid-item-size-page" %} {% endif %} {% set source="thumb_"~illustration.illustration %} {% if appthumbheight!=0 %} {% set source="thumbori_"~illustration.illustration %} {% endif %}
{% endfor %} {% endif %} {% endfor %} {% if not webzines is empty %}

Webzines

{% endif %} {% set setname="" %} {% for webzine in webzines %} {% if not webzine.webzinepages is empty %} {% if setname!=webzine.set %} {% if not webzine.set is empty %}

{{webzine.set}}

{% endif %} {% set setname=webzine.set %} {% endif %} {% set page=webzine.webzinepages[0] %} {% set source="thumbori_"~page.illustration %} {% set class=" grid-item-size-2 grid-item-size-page" %}
{% endif %} {% endfor %} {% if not links is empty %}
{% for link in links|sort((a, b) => a.order <=> b.order) %} {{ link.name }} {% endfor %}
{%endif%}

Contact

{{ user.pseudo }}

{% if not config.appsubname is empty %} {{ config.appsubname }}
{%endif%} {% if not config.appdescription is empty %}
{{ config.appdescription|raw }}

{%endif%}
{% if user.email is not empty %} Email = {{ user.email }}
{% endif %} {% if config.facebook is not empty %} Facebook = {{ config.facebook }}
{% endif %} {% if config.instagram is not empty %} Instagram = {{ config.instagram }}
{% endif %} {% if config.twitter is not empty %} Twitter = {{ config.twitter }}
{% endif %} {% if config.google is not empty %} Google = {{ config.google }}
{% endif %} {% if config.youtube is not empty %} Youtube = {{ config.youtube }}
{% endif %}
{% if app.user %} {% endif %} {% endblock %} {% block localjavascript %} function getNoCacheBgElements() { return document.querySelectorAll('.no-cache-bg'); } function loadBgImageForElement(element) { element.style['background-image'] = 'url('+ element.attributes['data-background-image'].value + '?' + (new Date()).getTime() +')'; } function loadBgImages() { for( var i = 0, elements = getNoCacheBgElements(); i < elements.length; loadBgImageForElement(elements[i]), i++ ); } window.onload = function() { loadBgImages(); }; $(document).ready(function() { $('body').imagesLoaded(function() { height=Math.max(500,$(window).height()); $('.heroheader').height(height); himg=$('.herologo img').height(); $('.herologo').css({ top: (height-himg-50) +'px' }); $('.heroheader').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 6000, dots: true, touchMove: false, pauseOnDotsHover: true, fade: true, cssEase: 'linear', prevArrow: false, nextArrow: false, customPaging: function(slider, i) { return ''; } }); $("#main").show(); resizeThumb(); $('.grid').masonry({ columnWidth: '.grid-sizer', gutter: '.gutter-sizer', itemSelector: '.grid-item', percentPosition: true, horizontalOrder: false, }); if (location.hash) { console.log(location.hash); $(document).scrollTop( $(location.hash).offset().top -60); // = location.hash; } }); }); $(window).resize(function() { $(window).scroll(); height=Math.max(500,$(window).height()); $('.heroheader').height(height); himg=$('.herologo img').height(); $('.herologo').css({ top: (height-himg-50) +'px' }); resizeThumb(); }); $(window).scroll(function () { if($(window).width()>=980) { // set distance user needs to scroll before we start fadeIn if ($(this).scrollTop() > 300) { if($('.foliomenu').is(":hidden")) $('.foliomenu').show(); } else { if($('.foliomenu').is(":visible")) $('.foliomenu').hide(); } } else { if($('.foliomenu').is(":hidden")) $('.foliomenu').show(); } if ($(this).scrollTop() > 300) { if($('.foliotop').is(":hidden")) $('.foliotop').show(); } else { if($('.foliotop').is(":visible")) $('.foliotop').hide(); } }); function resizeThumb() { {% if app.session.get("appmaxthumbwidth")!="0" %} width=$(window).width(); maxwidth={{ app.session.get("appmaxthumbwidth") }}; if(maxwidth+30>width) { $(".grid").css("max-width","none"); $(".grid").css("margin","30px"); } else { $(".grid").css("max-width","{{ app.session.get("appmaxthumbwidth") }}px"); $(".grid").css("margin","30px auto"); } {% endif %} $(".grid-item-size").each(function() { if(!$(this).hasClass("grid-item-size-noresize")) { if($(this).hasClass("grid-item-size-square")) { $(this).height($(this).width()); } else if($(this).hasClass("grid-item-size-proportion")) { var width=$(this).width(); var oriwidth=$(this).data("width") if(oriwidth>0) { pourcentage=width*100/oriwidth; height=$(this).data("height")*pourcentage/100; $(this).height(height); } else { $(this).height($(this).width()); } } else { $(this).height($(this).width()*30/21); } } }); } {% endblock %}