WIP
This commit is contained in:
@@ -1312,7 +1312,31 @@ class Site
|
||||
|
||||
if (file_exists(get_template_directory() . "/assets/favicon.ico")) {
|
||||
add_action('wp_head', function () {
|
||||
echo "<link rel='icon' type='image/x-icon' href='".get_template_directory_uri()."/assets/favicon.ico'>";
|
||||
echo "<link rel='icon' type='image/x-icon' href='".get_template_directory_uri()."/assets/favicon.ico'>".PHP_EOL;
|
||||
});
|
||||
}
|
||||
|
||||
if (file_exists(get_template_directory() . "/assets/favicon-16x16.png")) {
|
||||
add_action('wp_head', function () {
|
||||
echo "<link rel='icon' type='image/png' href='".get_template_directory_uri()."/assets/favicon-16x16.png'>".PHP_EOL;
|
||||
});
|
||||
}
|
||||
|
||||
if (file_exists(get_template_directory() . "/assets/favicon-32x32.png")) {
|
||||
add_action('wp_head', function () {
|
||||
echo "<link rel='icon' type='image/png' href='".get_template_directory_uri()."/assets/favicon-32x32.png'>".PHP_EOL;
|
||||
});
|
||||
}
|
||||
|
||||
if (file_exists(get_template_directory() . "/assets/apple-touch-icon.png")) {
|
||||
add_action('wp_head', function () {
|
||||
echo "<link rel='apple-touch-icon' type='image/png' href='".get_template_directory_uri()."/assets/apple-touch-icon.png'>".PHP_EOL;
|
||||
});
|
||||
}
|
||||
|
||||
if (file_exists(get_template_directory() . "/assets/site.webmanifest")) {
|
||||
add_action('wp_head', function () {
|
||||
echo "<link rel='manifest' href='".get_template_directory_uri()."/assets/site.webmanifest'>".PHP_EOL;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user