{% extends "MuzichHomeBundle::layout.html.twig" %} {% if login is not defined %} {% set login = false %} {% endif %} {% if page_title is not defined %} {% set page_title = null %} {% endif %} {% block title %}{% if page_title %}{{ page_title }}{% else %}{{ 'title.home'|trans({}, 'userui') }}{% endif %}{% endblock %} {% block mainbox_classes %}mainbox_margintop mainbox_nopadding{% endblock %} {% block content %} {% include 'MuzichCoreBundle:Component:element_add_buttons.html.twig' %} {% include 'MuzichHomeBundle:Component:filter_menu.html.twig' %} {% include 'MuzichCoreBundle:Component:element_add_box.html.twig' with { 'box_title': 'home.add_element_box.title'|trans({}, 'navigationui') } %} {% if app.user %} {% if app.user.wantSeeHelp('home') %} {% include 'MuzichCoreBundle:HelpTour:home.html.twig' with {'start' : true} %} {% endif %} {% else %} {% include 'MuzichCoreBundle:HelpTour:home.html.twig' with {'start' : false} %} {% endif %} {# TODO: Cette partie de javascript ne devra plus exister après la réecriture du code javascript #} {% if from_url is defined %} {% if from_url %} {% endif %} {% endif %} {% if login %} {% endif %}
{% include "MuzichCoreBundle:SearchElement:form.html.twig" with { 'form_name' : search_form_name, 'search_tags' : search_tags_id, 'display_help_notags' : true } %}
{% include "MuzichCoreBundle:SearchElement:default.html.twig" with { 'noelements_filter' : true, 'display_new_elements' : true, 'display_autoplay' : true, 'autoplay_context' : 'home' }%}
{% if elements|length %} {% include "MuzichCoreBundle:SearchElement:more_button.html.twig" with { 'more_path' : path('search_elements', {'context':'home'}) }%} {% endif %} {% endblock %}