diff --git a/content/themes/ldc/alm_templates/list-item-press.php b/content/themes/ldc/alm_templates/list-item-press.php index 765490be..6b36119d 100644 --- a/content/themes/ldc/alm_templates/list-item-press.php +++ b/content/themes/ldc/alm_templates/list-item-press.php @@ -23,11 +23,11 @@
-
name) ?>
+
name) ?>
-
+
Télécharger le document
diff --git a/content/themes/ldc/functions.php b/content/themes/ldc/functions.php index d077d252..c4d9150b 100644 --- a/content/themes/ldc/functions.php +++ b/content/themes/ldc/functions.php @@ -868,3 +868,14 @@ function remove_menus(){ if (ENV !== ENV_LOCAL){ add_action( 'admin_menu', 'remove_menus' ); } + +function str_lreplace($search, $replace, $subject) +{ + $pos = strrpos($subject, $search); + + if ($pos !== false) { + $subject = substr_replace($subject, $replace, $pos, strlen($search)); + } + + return $subject; +} \ No newline at end of file diff --git a/content/themes/ldc/partials/list-item-event.php b/content/themes/ldc/partials/list-item-event.php index 76947bbb..3ff0aa07 100644 --- a/content/themes/ldc/partials/list-item-event.php +++ b/content/themes/ldc/partials/list-item-event.php @@ -23,11 +23,11 @@
-
name) ?>
+
name) ?>
-
+
diff --git a/content/themes/ldc/partials/list-item-press.php b/content/themes/ldc/partials/list-item-press.php index 1c240e5d..a148e4c3 100644 --- a/content/themes/ldc/partials/list-item-press.php +++ b/content/themes/ldc/partials/list-item-press.php @@ -23,7 +23,7 @@
-
+
$tag): ?> , name); ?> @@ -31,7 +31,7 @@
-
+
diff --git a/content/themes/ldc/partials/list-item.php b/content/themes/ldc/partials/list-item.php index 1c4b505b..f9ed9984 100644 --- a/content/themes/ldc/partials/list-item.php +++ b/content/themes/ldc/partials/list-item.php @@ -21,7 +21,7 @@
-
+
$tag): ?> , name); ?> @@ -29,7 +29,7 @@
-
ID); ?>
+
ID); ?>