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
+1
View File
@@ -35,6 +35,7 @@
"drupal/metatag": "^1.13",
"drupal/paragraphs": "^1.12",
"drupal/pathauto": "^1.8",
"drupal/redirect": "^1.6",
"drupal/redirect_after_login": "^2.6",
"drupal/schema_metatag": "^1.5",
"drupal/site_settings": "^1.19",
Generated
+53 -1
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "4adedd5f54b7450a9a32db9fc6e7b567",
"content-hash": "a7bde48f6a0f27cdbff9b3e6987b76f4",
"packages": [
{
"name": "asm89/stack-cors",
@@ -4104,6 +4104,58 @@
"documentation": "https://www.drupal.org/docs/8/modules/pathauto"
}
},
{
"name": "drupal/redirect",
"version": "1.6.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/redirect.git",
"reference": "8.x-1.6"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/redirect-8.x-1.6.zip",
"reference": "8.x-1.6",
"shasum": "f848e001deac8425ae57d4b9397087c491d37294"
},
"require": {
"drupal/core": "^8.8 || ^9"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-1.6",
"datestamp": "1589312204",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "Berdir",
"homepage": "https://www.drupal.org/user/214652"
},
{
"name": "Dave Reid",
"homepage": "https://www.drupal.org/user/53892"
},
{
"name": "pifagor",
"homepage": "https://www.drupal.org/user/2375692"
}
],
"description": "Allows users to redirect from old URLs to new URLs.",
"homepage": "https://www.drupal.org/project/redirect",
"support": {
"source": "https://git.drupalcode.org/project/redirect"
}
},
{
"name": "drupal/redirect_after_login",
"version": "2.6.0",
+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">