{% 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 %} {% endblock %} {% block body %}
{% if users is not empty %} Membres  {% endif %} {% if illustrations is not empty %} Illustrations  {% endif %} {% if not webzines is empty %} Webzines  {% endif %} {% if not links is empty %} Liens  {% endif %}
{% if app.user %} {% if is_granted('ROLE_ADMIN') %} {% endif %} {% else %} {% if(appNinegateurl and appNinegatemoderegistration!="none") %} {% endif %} {% endif %}
{%if not app.session.get("hero01") is empty %}
{%endif%} {%if not app.session.get("hero02") is empty %}
{%endif%} {%if not app.session.get("hero03") is empty %}
{%endif%} {%if not app.session.get("hero04") is empty %}
{%endif%} {%if not app.session.get("hero05") is empty %}
{%endif%}
{% if app.user %} {% if is_granted('ROLE_ADMIN') %} {% endif %} {% else %} {% if(appNinegateurl and appNinegatemoderegistration!="none") %} {% endif %} {% endif %}

{{ (app.session.get("appname")) }}

{% if not app.session.get("appsubname") is empty %} {{ app.session.get("appsubname") }}
{% endif %}
{% if app.session.get('email') is not empty %} {% endif %} {% if app.session.get('facebook') is not empty %} {% endif %} {% if app.session.get('instagram') is not empty %} {% endif %} {% if app.session.get('twitter') is not empty %} {% endif %} {% if app.session.get('google') is not empty %} {% endif %} {% if app.session.get('youtube') is not empty %} {% endif %}
{% if not users is empty %} Membres
{% endif %} {% if not illustrations is empty %} Illustrations
{% endif %} {% if not webzines is empty %} Webzines
{% endif %} {% if not links is empty %} Liens
{% endif %}
{% if not items is empty %}
{% for item in items %} {% if item.title|lower != "ninefolio" %}
{{ item.title }}
{% endif %} {% endfor %}
{% endif %}
{% if not app.session.get("appdescription") is empty %}
{{ app.session.get("appdescription")|raw}}
{%endif%} {% for user in users %} {% if user.hasRole('ROLE_MEMBER') %} {{ render(path("app_home_userhero",{userpseudo:user.slug})) }} {% endif %} {% endfor %}
{% set qrCode = qr_code_result(absolute_url(path("app_home"))) %}
{% if app.user %} {% endif %} {% endblock %} {% block localjavascript %} $(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) { $(document).scrollTop( $(location.hash).offset().top -60); } }); }); $(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() { $(".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); } } }); setTimeout(() => { $(".userhero").each(function() { height=$(this).find(".herouseravatar").height(); $(this).height(height+60); pos=height+60; height=$(this).find(".userherocontainer").css({ top: '-'+pos+'px' }); }); }, "100"); } {% endblock %}