{% extends 'base.html.twig' %}
{% block title %}
{{projet.client.code}}
{% endblock %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('css/custom.css')}}">
<link rel="stylesheet" href="{{ asset('css/style.css')}}">
<link rel="stylesheet" href="{{ asset('css/owlcarousel/owl.carousel.min.css')}}">
<link rel="stylesheet" href="{{ asset('css/owlcarousel/owl.theme.default.min.css')}}">
<link rel="stylesheet" media="screen, print" href="{{ asset('youscribe/css/' ~ projet.themeCss) }}">
{% endblock %}
{% block menu %}
<div class="col-xl-12 zone-nav" style="text-align:center">
<a href="{{ path('default_index', {'idc': projet.client.id ,'id': projet.id , 'idUser': idUser}) }}" class="{{title == 'home' ? 'btn-active' :''}} mb-2 mr-3 btn btn-outline-project .btn-project-icon btn-lg btn-icon rounded-circle waves-effect waves-themed" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="Accueil" id="btn">
<i class="fal fa-home"></i>
</a>
{% for categ in categories %}
<a href="{{ path('default_categorie_show', {'idc': projet.client.id ,'id': projet.id , 'idcat': categ.id , 'idUser': idUser}) }}" class=" {{title == categ.name ? 'btn-active' :''}} mb-2 mr-3 btn btn-outline-project .btn-project-icon btn-lg btn-icon rounded-circle waves-effect waves-themed" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="{{categ.name}}">
<i class="{{ (categ.name == 'Presse') ? 'fal fa-newspaper' :(categ.name == 'Livres audio') ? 'fal fa-file-audio' :(categ.name == 'BD') ? 'fal fa-book-user' :(categ.name == 'Ebooks') ? 'fal fa-book'}} "></i>
</a>
{% endfor %}
</div>
<form name="form" method="get" action="{{path('search_youscribe')}}" class="mt-2">
<div
class="input-group input-group-lg mb-5 shadow-1 rounded">
{# {% if words is defined %}
<input type="hidden" id="words" name="words" required="required" value="{{words}}">
{% endif %} #}
<input type="hidden" id="idUser" name="idUser" required="required" value="{{idUser}}">
<input type="hidden" id="projet" name="projet" required="required" value="{{projet.id}}">
<input type="text" id="form_query" name="form[query]" required="required" class="form-control shadow-inset-2" placeholder="Votre recherche">
<div class="input-group-append">
<button class="btn btn-project hidden-sm-down waves-effect waves-themed" type="submit">
<i class="fal fa-search mr-lg-2"></i>
<span class="hidden-md-down">Rechercher</span>
</button>
</div>
</div>
</form>
{% endblock %}
{% block body %}
{% if productsInfos is defined %}
{{include('default/search.html.twig')}}
{% endif %}
<!--home -->
{% if rubriques is defined %}
{{include('default/rubrique.html.twig')}}
{% endif %}
<!--end home -->
<!--display theme by category -->
{% if themes is defined %}
{{include('default/theme.html.twig')}}
{% endif %}
<!--end display theme by category -->
<!--display Tag by theme -->
{% if tags is defined %}
<h6 class="mb-3" style="color: #7d7a7a;">
<a class="text-info" href="{{ path('default_categorie_show', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser}) }}" style="font-weight: bolder;">
{{categorie.name}}
</a>
>
<a href="{{ path('default_categorie_show_tag', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser , 'idTh' : theme.id}) }}" class="opacity-60 text-info" style="font-weight: bolder;">{{theme.label}}</a>
>
<span>{{tagInfo.label == "Tous les sous thèmes" ? 'Tous les sous thèmes' : tagInfo.label }}</span>
</h6>
<div class="alert alert-project-primary" role="alert">
<div class="col-xl-12">
<div style=" display: contents; ">
<a href="{{ path('default_categorie_show_tag', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser, 'idTh' : theme.id}) }}" class="cursor-auto mb-1 btn btn-pills active btn-outline-info d-inline-block js-waves-off">
<b>
{{tagInfo.label == "Tous les sous thèmes" ? countProducts : products.getTotalItemCount }} ouvrages
</b>
</a>
</div>
<div style=" display: contents; ">
<a href="#" class="cursor-auto mb-1 btn btn-pills active btn-outline-success d-inline-block js-waves-off">
{% if idL == 1931 %}
Français
{% elseif idL == 1820 %}
English
{% elseif idL == 340 %}
Arabic
{% elseif idL == 5889 %}
Español
{% elseif idL == 5250 %}
Português
{% elseif idL == 0 %}
Toutes les langues
{% endif %}
</a>
</div>
<div style=" display: contents; ">
<a href="#" class="cursor-auto mb-1 btn btn-pills active btn-outline-success d-inline-block js-waves-off">
{% if idTr == 'sort_title|0' %}
Ordre alphabétique
{% elseif idTr == 'online_date' %}
Derniers ajouts
{% elseif idTr == 'nb_reads_for_thirty_days' %}
Plus lues
{% elseif idTr == null %}
Plus lues
{% endif %}
</a>
</div>
<div style=" display: contents; ">
<a href="{{ path('default_categorie_show_tag', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser,'idTh' : theme.id}) }}" class="{{tagInfo.label == "Tous les sous thèmes" ? 'btn-active1' : ''}} mb-1 btn btn-pills btn-primary d-inline-block js-waves-off">
Tous les sous thèmes
</a>
</div>
{% for tag in tags %}
<div style=" display: contents; ">
<a href="{{ path('default_categorie_show_result', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser ,'idTh' : theme.id ,'idTag': tag.id ,'idL' : 0}) }}" class="{{tagInfo.label == tag.label ? 'btn-active1' : ''}} mb-1 btn btn-pills btn-outline-project1 d-inline-block js-waves-off">
{{tag.label}}
</a>
</div>
{% endfor %}
</div>
</div>
<!-- filter by language and sorting -->
{% if tagInfo.id is defined %}
<div class="row mb-4">
<div class="col-auto mr-auto">
<div class="input-group-prepend show">
<button class="btn btn-outline-default dropdown-toggle waves-effect waves-themed" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">Langue</button>
<div class="dropdown-menu" style="position: absolute; will-change: top, left; top: 37px; left: 0px;" x-placement="bottom-start">
<a class="dropdown-item" href="{{ path('default_categorie_show_result', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser, 'idTh' : theme.id ,'idTag': tagInfo.id ,'idL' : 0 , 'idTr':null}) }}">Toutes les langues</a>
<a class="dropdown-item" href="{{ path('default_categorie_show_result', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser,'idTh' : theme.id ,'idTag': tagInfo.id ,'idL' : 1931 , 'idTr':null}) }}">Français</a>
<a class="dropdown-item" href="{{ path('default_categorie_show_result', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser,'idTh' : theme.id ,'idTag': tagInfo.id ,'idL' : 1820, 'idTr':null}) }}">English</a>
<a class="dropdown-item" href="{{ path('default_categorie_show_result', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser,'idTh' : theme.id ,'idTag': tagInfo.id ,'idL' : 340, 'idTr':null}) }}">Arabic</a>
<a class="dropdown-item" href="{{ path('default_categorie_show_result', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser, 'idTh' : theme.id ,'idTag': tagInfo.id ,'idL' : 5250, 'idTr' : null}) }}">Português</a>
</div>
</div>
</div>
<div class="col-auto mr-6">
<div class="input-group-prepend show">
<button class="btn btn-outline-default dropdown-toggle waves-effect waves-themed" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">Trier par</button>
<div class="dropdown-menu" style="position: absolute; will-change: top, left; top: 37px; left: 0px;" x-placement="bottom-start">
<a class="dropdown-item" href="{{ path('default_categorie_show_result', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id ,'idUser': idUser, 'idTh' : theme.id ,'idTag': tagInfo.id ,'idL' : idL , 'idTr':'nb_reads_for_thirty_days'}) }}">Derniers ajouts</a>
<a class="dropdown-item" href="{{ path('default_categorie_show_result', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser,'idTh' : theme.id ,'idTag': tagInfo.id ,'idL' : idL , 'idTr':'sort_title|0'}) }}">Ordre alphabétique</a>
<a class="dropdown-item" href="{{ path('default_categorie_show_result', {'idc': projet.client.id , 'id': projet.id , 'idcat': categorie.id , 'idUser': idUser,'idTh' : theme.id ,'idTag': tagInfo.id ,'idL' : idL , 'idTr':null}) }}">Plus lues</a>
</div>
</div>
</div>
</div>
{% endif %}
<!-- end filter by language and sorting -->
{{include('default/tag.html.twig')}}
{% endif %}
<!-- end display Tag by theme -->
{% endblock %}
{% block javascripts %}
<script src="{{ asset('js/owl.carousel.min.js')}}"></script>
<script src="{{ asset('js/ledClient.js')}}"></script>
{% endblock %}