From 395122a4116f71b3482e94f3a2862a49d783518d Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Fri, 8 Sep 2023 13:35:14 +0300 Subject: [PATCH] Change fb_preview filename format to match the other images --- functions.php | 2 +- img/{2020_fb_preview.jpg => fb_preview_2020.jpg} | Bin img/{2021_fb_preview.jpg => fb_preview_2021.jpg} | Bin img/{2022_fb_preview.jpg => fb_preview_2022.jpg} | Bin img/{2023_fb_preview.jpg => fb_preview_2023.jpg} | Bin 5 files changed, 1 insertion(+), 1 deletion(-) rename img/{2020_fb_preview.jpg => fb_preview_2020.jpg} (100%) rename img/{2021_fb_preview.jpg => fb_preview_2021.jpg} (100%) rename img/{2022_fb_preview.jpg => fb_preview_2022.jpg} (100%) rename img/{2023_fb_preview.jpg => fb_preview_2023.jpg} (100%) diff --git a/functions.php b/functions.php index d8563a7..943911d 100644 --- a/functions.php +++ b/functions.php @@ -16,7 +16,7 @@ function get_blog_slug() { function og_image( $tags ) { $blog_slug = get_blog_slug(); - $imagePath = __DIR__ . '/img/' . $blog_slug . '_fb_preview.jpg'; + $imagePath = __DIR__ . '/img/fb_preview_' . $blog_slug . '.jpg'; if (file_exists($imagePath)) { $imageUrl = esc_url('https://www.openfest.org/wp-content/themes/initfest/img/' . basename($imagePath)); diff --git a/img/2020_fb_preview.jpg b/img/fb_preview_2020.jpg similarity index 100% rename from img/2020_fb_preview.jpg rename to img/fb_preview_2020.jpg diff --git a/img/2021_fb_preview.jpg b/img/fb_preview_2021.jpg similarity index 100% rename from img/2021_fb_preview.jpg rename to img/fb_preview_2021.jpg diff --git a/img/2022_fb_preview.jpg b/img/fb_preview_2022.jpg similarity index 100% rename from img/2022_fb_preview.jpg rename to img/fb_preview_2022.jpg diff --git a/img/2023_fb_preview.jpg b/img/fb_preview_2023.jpg similarity index 100% rename from img/2023_fb_preview.jpg rename to img/fb_preview_2023.jpg