From: Stephen Cameron Date: Thu, 29 Jul 2021 18:32:22 +0000 (+0200) Subject: Preparations for the English version of the CCV website. WIP #4615 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=29a21a6b06b8b22fedab5ba667b26513c6f598d1;p=ccv-wordpress.git Preparations for the English version of the CCV website. WIP #4615 @0.5 --- diff --git a/.htaccess b/.htaccess index ab52f30..24d2c4c 100644 --- a/.htaccess +++ b/.htaccess @@ -22,7 +22,7 @@ Options -Indexes RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # EN version (temporarily redirecting everything to FR home page since the new EN site isn't ready) - RedirectMatch 302 (?i)^/en/(.*) / + #RedirectMatch 302 (?i)^/en/(.*) / # FR website RedirectMatch 301 (?i)^/equipe-medicale-centre-de-chirurgie-vertebrale-montpellier.php /la-clinique/lequipe/ @@ -56,11 +56,12 @@ Options -Indexes # BEGIN WordPress -# Les directives (lignes) entre 'BEGIN WordPress' et 'END WordPress' sont -# généré dynamiquement, et ne doivent uniquement être modifiées via les filtres WordPress. -# Toute modification des directives entre ces marqueurs sera outrepassée. +# Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées +# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress. +# Toute modification des directives situées entre ces marqueurs sera surchargée. RewriteEngine On +RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f diff --git a/wp-content/themes/CCV/resources/views/archive-scientific_news.blade.php b/wp-content/themes/CCV/resources/views/archive-scientific_news.blade.php index c31b25b..c8c0b4e 100644 --- a/wp-content/themes/CCV/resources/views/archive-scientific_news.blade.php +++ b/wp-content/themes/CCV/resources/views/archive-scientific_news.blade.php @@ -10,9 +10,9 @@
@if (! have_posts()) - @alert(['type' => 'warning']) + {{ __("Désolé, aucun résultat n'a été trouvé", 'ccv') }} - @endalert + {!! get_search_form(false) !!} @endif diff --git a/wp-content/themes/CCV/resources/views/index.blade.php b/wp-content/themes/CCV/resources/views/index.blade.php index 59003cd..d678fb5 100644 --- a/wp-content/themes/CCV/resources/views/index.blade.php +++ b/wp-content/themes/CCV/resources/views/index.blade.php @@ -21,9 +21,9 @@
@if (! have_posts()) - @alert(['type' => 'warning']) + {{ __("Désolé, aucun résultat n'a été trouvé", 'ccv') }} - @endalert + {!! get_search_form(false) !!} @endif diff --git a/wp-content/themes/CCV/resources/views/partials/comments.blade.php b/wp-content/themes/CCV/resources/views/partials/comments.blade.php index ebc2080..23c6bdd 100644 --- a/wp-content/themes/CCV/resources/views/partials/comments.blade.php +++ b/wp-content/themes/CCV/resources/views/partials/comments.blade.php @@ -29,9 +29,9 @@ @endif @if (! comments_open() && get_comments_number() != '0' && post_type_supports(get_post_type(), 'comments')) - @alert + {{ __('Comments are closed.', 'ccv') }} - @endalert + @endif @php(comment_form()) diff --git a/wp-content/themes/CCV/resources/views/search.blade.php b/wp-content/themes/CCV/resources/views/search.blade.php index c83d4e9..16a0163 100644 --- a/wp-content/themes/CCV/resources/views/search.blade.php +++ b/wp-content/themes/CCV/resources/views/search.blade.php @@ -7,9 +7,9 @@ @include('partials.page-header') @if (! have_posts()) - @alert(['type' => 'warning']) + {{ __("Désolé, aucun résultat n'a été trouvé", 'ccv') }} - @endalert + {!! get_search_form(false) !!} @endif