fix language and access thumbnail

This commit is contained in:
2020-08-01 13:41:27 +02:00
parent 0a3af11f13
commit 838a3d4a0a
7 changed files with 69 additions and 8 deletions
+3
View File
@@ -4,6 +4,9 @@
# 'example.settings.local.php' file, which sits next to this file.
parameters:
http.response.debug_cacheability_headers: true
twig.config:
debug: false
auto_reload: true
services:
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
@@ -213,11 +213,11 @@
if ($(this).attr('id') == 'edit-field-theme-target-id') {
var newhtml = optionContent.replace("- Any -", "Thèmes");
var newhtml = optionContent.replace("- Any -", "Thèmes").replace("- Tout -", "Thèmes");
} else if ($(this).attr('id') == 'edit-field-type-de-publication-target-id' ) {
var newhtml = optionContent.replace("- Any -", "Publications");
var newhtml = optionContent.replace("- Any -", "Publications").replace("- Tout -", "Publications");
} else {
// nothing
@@ -96,4 +96,10 @@
</div>
<div class="col-12 px-0 col-md-12 col-lg-8">
<div class="video">
{{content.field_le_direct}}
</div>
</div>
</article>
@@ -34,7 +34,7 @@
{# {% include 'themes/custom/popsu_colloque/template/components/thumbnails.html.twig' %} #}
{% if fields.field_accessible.content %}
{% if fields.field_accessible.content == "1" %}
<a href="{{fields.view_node.content}}">
{% endif %}
@@ -56,10 +56,9 @@
</div>
<div class="__content">
<div class="__content {{fields.field_accessible.content}}">
{{fields.title.content}}
{% if fields.field_accessible.content %}
{% if fields.field_accessible.content == "1" %}
{% else %}
{{fields.field_role_de_l_intervenant.content}}
{% endif %}
@@ -34,7 +34,7 @@
{# {% include 'themes/custom/popsu_colloque/template/components/thumbnails.html.twig' %} #}
{% if fields.field_accessible.content %}
{% if fields.field_accessible.content == "1" %}
<a href="{{fields.view_node.content}}">
{% endif %}
<figure class="__img">