Compare commits

..

7 Commits

6 changed files with 34 additions and 36 deletions

View File

@ -12,7 +12,7 @@ type: link
settings: { }
module: link
locked: false
cardinality: 1
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false

View File

@ -74,24 +74,9 @@ display:
separator: ', '
field_api_classes: false
pager:
type: mini
type: none
options:
offset: 0
pagination_heading_level: h4
items_per_page: 10
total_pages: null
id: 0
tags:
next:
previous:
expose:
items_per_page: false
items_per_page_label: 'Éléments par page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- Tout -'
offset: false
offset_label: Décalage
exposed_form:
type: basic
options:
@ -187,7 +172,6 @@ display:
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags: { }
@ -304,7 +288,18 @@ display:
display_plugin: page
position: 1
display_options:
display_extenders: { }
display_extenders:
matomo:
enabled: false
keyword_gets: ''
keyword_behavior: first
keyword_concat_separator: ' '
category_behavior: none
category_gets: ''
category_concat_separator: ' '
category_fallback: ''
category_facets: { }
category_facets_concat_separator: ', '
path: actualites
menu:
type: normal
@ -321,7 +316,6 @@ display:
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags: { }

View File

@ -3625,12 +3625,12 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
font-size: 1.2rem;
}
}
.actu_full .liens_fixed > div > div:nth-of-type(2), .actu_full .file_fixed > div > div > div {
.actu_full .liens_fixed > div > div:nth-of-type(2) > div, .actu_full .file_fixed > div > div > div {
padding: 0 1.5vw;
text-align: right;
margin: 2rem 0;
}
.actu_full .liens_fixed > div > div:nth-of-type(2) a, .actu_full .file_fixed > div > div > div a {
.actu_full .liens_fixed > div > div:nth-of-type(2) > div a, .actu_full .file_fixed > div > div > div a {
text-align: center;
color: black;
font-family: "Marianne", sans-serif;
@ -3642,27 +3642,27 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
transition: background-color 0.3s ease;
text-wrap: nowrap !important;
}
.actu_full .liens_fixed > div > div:nth-of-type(2) a svg, .actu_full .file_fixed > div > div > div a svg {
.actu_full .liens_fixed > div > div:nth-of-type(2) > div a svg, .actu_full .file_fixed > div > div > div a svg {
display: none;
}
.actu_full .liens_fixed > div > div:nth-of-type(2) a:hover, .actu_full .file_fixed > div > div > div a:hover {
.actu_full .liens_fixed > div > div:nth-of-type(2) > div a:hover, .actu_full .file_fixed > div > div > div a:hover {
background-color: #00ff80;
}
.actu_full .liens_fixed > div > div:nth-of-type(2) a, .actu_full .file_fixed > div > div > div a {
.actu_full .liens_fixed > div > div:nth-of-type(2) > div a, .actu_full .file_fixed > div > div > div a {
display: inline-block;
}
@media (min-width: 1080px) {
.actu_full .liens_fixed > div > div:nth-of-type(2), .actu_full .file_fixed > div > div > div {
.actu_full .liens_fixed > div > div:nth-of-type(2) > div, .actu_full .file_fixed > div > div > div {
margin-bottom: 0 !important;
margin: 0;
position: fixed;
left: 75vw;
bottom: 10vh;
}
.actu_full .liens_fixed > div > div:nth-of-type(2) > div, .actu_full .file_fixed > div > div > div > div {
.actu_full .liens_fixed > div > div:nth-of-type(2) > div > div, .actu_full .file_fixed > div > div > div > div {
height: 3vh;
}
.actu_full .liens_fixed > div > div:nth-of-type(2) a, .actu_full .file_fixed > div > div > div a {
.actu_full .liens_fixed > div > div:nth-of-type(2) > div a, .actu_full .file_fixed > div > div > div a {
max-width: 19vw;
}
}

View File

@ -138,7 +138,7 @@
//
let fluoButtons;
if (document.querySelector('.actu_full')) {
fluoButtons = document.querySelectorAll('.liens_fixed > div > div:nth-of-type(2):not(.visually-hidden), .file_fixed > div > .visually-hidden + div > div');
fluoButtons = document.querySelectorAll('.liens_fixed > div > div:nth-of-type(2):not(.visually-hidden) > div, .file_fixed > div > .visually-hidden + div > div');
} else if (document.querySelector('.offre-content')) {
fluoButtons = document.querySelectorAll('.liens_fixed > div, .file_fixed > div > div');
} else if (document.querySelector('.projets')) {
@ -199,6 +199,8 @@
let liens = document.querySelectorAll('.file a');
for (let lien of liens) {
lien.innerHTML = 'Télécharger le document';
lien.setAttribute('href', lien.getAttribute('href').replace('/index.php', ''));
lien.setAttribute('target', '_blank');
}
// si la ressource n'a pas de date afficher le lien plus haute
// et la ressource en premier
@ -245,8 +247,8 @@
socialsClone.id = 'socials-in-menu-wrapper';
let menuContainer = document.querySelector('#hamburger + ul');
let socialsContainer = document.createElement('li');
socialsContainer.append(socialsClone);
menuContainer.append(socialsContainer);
socialsContainer?.append(socialsClone);
menuContainer?.append(socialsContainer);
//
// Retirer paragraphes vides fullpage
@ -365,7 +367,7 @@
for (let item of asideProjectMenu.children) {
const itemTitle = item.innerText;
const contentPage = document.querySelector('.projet_full');
const contentPageTitle = contentPage.querySelector('h2').innerText;
const contentPageTitle = contentPage.querySelector('h2')?.innerText;
if (itemTitle.toLowerCase() === contentPageTitle.toLowerCase()) {
item.querySelector('a').classList.add('is-active');
@ -453,8 +455,10 @@
});
let initiatedMap = document.querySelector(`#${mapid}`);
const currentLibelle = initiatedMap.parentElement.nextElementSibling.innerText;
initiatedMap.parentElement.nextElementSibling.remove();
const currentLibelle = initiatedMap.parentElement.nextElementSibling?.innerText;
if (currentLibelle) {
initiatedMap.parentElement.nextElementSibling.remove();
}
if (document.querySelectorAll('.leaflet-container').length <= 1) {
firstMap = map;

View File

@ -61,7 +61,7 @@
@include sous_titre();
}
.liens_fixed > div > div:nth-of-type(2), .file_fixed > div > div > div {
.liens_fixed > div > div:nth-of-type(2) > div, .file_fixed > div > div > div {
padding: 0 calc($x_margin / 2);
text-align: right;
margin: 2rem 0;

View File

@ -13,4 +13,4 @@
*/
#}
<img{{ attributes }} />
<div class="legende" style="display: none;">{{ attributes.title }}</div>
<div class="legende" style="display: none;">{{ attributes.title|raw }}</div>