From 4a7604746684a68baf973b93d24d78ed791f0672 Mon Sep 17 00:00:00 2001 From: soufiane Date: Mon, 5 May 2025 12:05:33 +0200 Subject: [PATCH] wait #7512 @0h05 --- .htaccess | 17 ++++++ wp-content/themes/miranui_new/functions.php | 66 +++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 .htaccess create mode 100644 wp-content/themes/miranui_new/functions.php diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..d7aa9b2 --- /dev/null +++ b/.htaccess @@ -0,0 +1,17 @@ + +# BEGIN WordPress +# 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 +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /index.php [L] +Header set X-Robots-Tag "noindex, nofollow" + + +# END WordPress \ No newline at end of file diff --git a/wp-content/themes/miranui_new/functions.php b/wp-content/themes/miranui_new/functions.php new file mode 100644 index 0000000..ece1ef4 --- /dev/null +++ b/wp-content/themes/miranui_new/functions.php @@ -0,0 +1,66 @@ +composer install.', 'sage')); +} + +require $composer; + +/* +|-------------------------------------------------------------------------- +| Register The Bootloader +|-------------------------------------------------------------------------- +| +| The first thing we will do is schedule a new Acorn application container +| to boot when WordPress is finished loading the theme. The application +| serves as the "glue" for all the components of Laravel and is +| the IoC container for the system binding all of the various parts. +| +*/ + +Application::configure() + ->withProviders([ + App\Providers\ThemeServiceProvider::class, + ]) + ->boot(); + +/* +|-------------------------------------------------------------------------- +| Register Sage Theme Files +|-------------------------------------------------------------------------- +| +| Out of the box, Sage ships with categorically named theme files +| containing common functionality and setup to be bootstrapped with your +| theme. Simply add (or remove) files from the array below to change what +| is registered alongside Sage. +| +*/ + +collect(['setup', 'filters']) + ->each(function ($file) { + if (! locate_template($file = "app/{$file}.php", true, true)) { + wp_die( + /* translators: %s is replaced with the relative file path */ + sprintf(__('Error locating %s for inclusion.', 'sage'), $file) + ); + } + }); + +add_filter('wp_robots', function($robots) { + $robots['noindex'] = true; + $robots['nofollow'] = true; + return $robots; +}); -- 2.39.5