Merge branch 'update' into 'develop'

Update

See merge request ldc-web/projets/ldc!100
This commit is contained in:
karl.muller 2025-12-22 14:14:49 +00:00
commit f7933e1a87
4 changed files with 6 additions and 1 deletions

View file

@ -14,6 +14,7 @@ enum ModelsList: int
*/
case dynamic_pages = 1;
case news = 2;
case documents = 3;
/**
* Labels definition.
@ -25,6 +26,7 @@ enum ModelsList: int
private const LABELS = [
self::dynamic_pages->name => 'enums.model-list.dynamic-page',
self::news->name => 'enums.model-list.news',
self::documents->name => 'enums.model-list.document',
];
/**
@ -35,6 +37,7 @@ enum ModelsList: int
private const TARGETFIELD = [
self::dynamic_pages->name => 'title',
self::news->name => 'title',
self::documents->name => 'name',
];
/**

View file

@ -119,5 +119,6 @@ return [
'dynamic-page' => Str::ucFirst(trans_choice('models.classes.dynamic-page', 1)),
'news' => Str::ucFirst(trans_choice('models.classes.news', 1)),
'company' => Str::ucFirst(trans_choice('models.classes.company', 1)),
'document' => Str::ucFirst(trans_choice('models.classes.document', 1)),
],
];

View file

@ -121,5 +121,6 @@ return [
'dynamic-page' => Str::ucFirst(trans_choice('models.classes.dynamic-page', 1)),
'news' => Str::ucFirst(trans_choice('models.classes.news', 1)),
'company' => Str::ucFirst(trans_choice('models.classes.company', 1)),
'document' => Str::ucFirst(trans_choice('models.classes.document', 1)),
],
];

View file

@ -110,7 +110,7 @@
}
}
@endphp
@if(!empty($brands))
@if(!empty($brands) && request()->route()->getName() === "front.dynamic-pages.bien-nourrir.fr")
<x-front.brands-icons.brands-icons :brands="$brands" :title="$section['string_title']" :subtitle="$section['string_subtitle']"
:isOnCommitmentPage="true" />
@else