./* ============================================================================
 * PASTE THIS AT THE VERY END of:
 *   wp-content/plugins/eziline-design/eziline-design.php
 *
 * Easiest route: WP Admin -> Tools -> Plugin File Editor -> "Eziline 2026 Design"
 * -> scroll to the bottom -> paste -> Update File.
 * (Or cPanel File Manager -> edit the same file.)
 *
 * Do NOT add a closing ?> tag.
 *
 * What it does: loads assets/ez-design.css once, cached by the browser, instead
 * of the identical 77 KB that is currently inlined into all 14 redesign pages.
 * Nothing changes visually until the inline <style> blocks are removed — this
 * patch is safe to apply on its own.
 * ========================================================================= */

/**
 * Shared design stylesheet.
 *
 * Loads only where needed: any singular view whose content carries the design
 * root (id="ez"), plus the post/portfolio views the EZ Shell wraps.
 */
function ez_needs_shared_css() {
	if ( is_admin() || ! is_singular() ) {
		return false;
	}
	if ( ( is_singular( 'post' ) || is_singular( 'thegem_pf_item' ) ) && ez_shell_enabled() ) {
		return true;
	}
	$post = get_queried_object();
	if ( ! $post instanceof WP_Post ) {
		return false;
	}
	return false !== strpos( $post->post_content, 'id="ez"' );
}

function ez_enqueue_shared_css() {
	if ( ! ez_needs_shared_css() ) {
		return;
	}
	wp_enqueue_style(
		'eziline-fonts',
		'https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap',
		array(),
		null
	);
	$file = EZ_DESIGN_DIR . 'assets/ez-design.css';
	wp_enqueue_style(
		'eziline-design',
		plugins_url( 'assets/ez-design.css', __FILE__ ),
		array( 'eziline-fonts' ),
		file_exists( $file ) ? (string) filemtime( $file ) : '1.0.3'
	);
}
add_action( 'wp_enqueue_scripts', 'ez_enqueue_shared_css', 20 );
<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet type='text/xsl' href='https://www.eziline.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl'?><!-- sitemap-generator-url='http://www.arnebrachhold.de' sitemap-generator-version='4.1.24' -->
<!-- generated-on='September 15, 2026 8:23 am' -->
<urlset xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd' xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'></urlset><!-- Request ID: 5723dca4d76154ff1470e09728ee2243; Queries for sitemap: 1; Total queries: 151; Seconds: 0; Memory for sitemap: 2MB; Total memory: 98MB -->
