diff --git a/assets/android-chrome-192x192.png b/assets/android-chrome-192x192.png new file mode 100644 index 0000000..2f055dd Binary files /dev/null and b/assets/android-chrome-192x192.png differ diff --git a/assets/android-chrome-512x512.png b/assets/android-chrome-512x512.png new file mode 100644 index 0000000..151f4c0 Binary files /dev/null and b/assets/android-chrome-512x512.png differ diff --git a/assets/apple-touch-icon.png b/assets/apple-touch-icon.png new file mode 100644 index 0000000..f1a6bff Binary files /dev/null and b/assets/apple-touch-icon.png differ diff --git a/assets/favicon-16x16.png b/assets/favicon-16x16.png new file mode 100644 index 0000000..51cf98a Binary files /dev/null and b/assets/favicon-16x16.png differ diff --git a/assets/favicon-32x32.png b/assets/favicon-32x32.png new file mode 100644 index 0000000..e084d3a Binary files /dev/null and b/assets/favicon-32x32.png differ diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100644 index 0000000..4d3da6c Binary files /dev/null and b/assets/favicon.ico differ diff --git a/assets/site.webmanifest b/assets/site.webmanifest new file mode 100644 index 0000000..a0f30fb --- /dev/null +++ b/assets/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/wp-content/themes/chatte-theme/assets/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/wp-content/themes/chatte-theme/assets//android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php b/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php index 4ece89a..0830210 100644 --- a/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php +++ b/vendor/open-function-computers-llc/rad-theme-engine/src/Site.php @@ -40,6 +40,8 @@ class Site private function bootstrap() { + $this->checkfavicons(); + // wordpress added this style for us, but we don't want it add_action('wp_enqueue_scripts', function () { wp_dequeue_style('classic-theme-styles'); @@ -1301,4 +1303,17 @@ class Site Util::processFieldGroup($templateFields); } + + private function checkfavicons() + { + if (!is_dir($manifestFile = get_template_directory() . "/assets")) { + return; + } + + if (file_exists(get_template_directory() . "/assets/favicon.ico")) { + add_action('wp_head', function () { + echo ""; + }); + } + } }