Kapazitätsanzeige-Plugin hinzugefügt und juconnect-strict-theme-v3 aktualisiert

This commit is contained in:
2026-02-15 11:33:18 +01:00
parent 28b5061650
commit 60cade23b2
5 changed files with 437 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ if (!defined('ABSPATH')) exit;
function juconnect_setup() {
add_theme_support('title-tag');
add_theme_support('post-thumbnails');
add_theme_support('site-icon');
add_theme_support('custom-logo', [
'height' => 120,
'width' => 120,
@@ -18,6 +19,19 @@ function juconnect_setup() {
}
add_action('after_setup_theme', 'juconnect_setup');
/**
* Fallback favicon when no Site Icon is set in WordPress.
*/
function juconnect_favicon_fallback() {
if (has_site_icon()) {
return;
}
$icon_url = get_template_directory_uri() . '/assets/img/juconnect_icon.svg';
echo '<link rel="icon" href="' . esc_url($icon_url) . '" type="image/svg+xml" />' . "\n";
}
add_action('wp_head', 'juconnect_favicon_fallback');
function juconnect_assets() {
$theme_ver = wp_get_theme()->get('Version');
$style_ver = filemtime(get_stylesheet_directory() . '/style.css');