'My account', 'wf_compare_btn' => 'Compare products', 'wf_favourite_btn' => 'Wishlist', 'wf_preloader-close' => 'Close loading screen', 'wf_mobilenav-topbar-toggle' => 'Toggle mobile menu options', 'wf_mobilenav-mainmenu-toggle' => 'Open navigation menu', 'wf_header-closemenu' => 'Close navigation menu', 'wf_uptop' => 'Back to top', 'wf_search-submit' => 'Search products', 'wf_search-close' => 'Close search', 'quickview-close' => 'Close quick view', 'add_to_wishlist' => 'Add to wishlist' ]; foreach ($labels as $class => $label) { $q = preg_quote($class, '/'); $pattern = '/<(a|button)\b(?=[^>]*\bclass="[^"]*\b' . $q . '\b)(?![^>]*\baria-label=)([^>]*)>/i'; $html = preg_replace_callback($pattern, function($m) use ($label) { return '<' . $m[1] . $m[2] . ' aria-label="' . esc_attr($label) . '">'; }, $html); } $html = preg_replace_callback('/]*\bclass="[^"]*\bcompare-btn\b[^"]*")(?=[^>]*\bdata-id="(\d+)")(?![^>]*\baria-label=)([^>]*)>/i', function($m) { $product = function_exists('wc_get_product') ? wc_get_product(absint($m[1])) : false; $name = $product ? $product->get_name() : 'this product'; return ''; }, $html); /* FM_HOME_NAV_HEADING_AND_LOGO_PRIORITY_TUNE_20261109: navigation labels are not page-content headings; let the hero retain LCP priority. */ $html = str_replace('
Main Menu
', '

Main Menu

', $html); $html = str_replace('
Browse Categories
', '

Browse Categories

', $html); $html = preg_replace('/(]*\bclass="[^"]*\bcustom-logo\b)[^>]*?)\sfetchpriority="high"/i', '$1', $html); /* FM_HOME_DECORATIVE_FOOTER_IMAGE_INTRINSIC_SIZE_20261109: verified source asset is 435x592. */ $html = preg_replace_callback('/]*(?:src|data-src)="[^"]*footer-shape\.png")[^>]*>/i', function($m) { $tag = $m[0]; if (!preg_match('/\bwidth\s*=/', $tag)) $tag = preg_replace('/^]*\bclass="[^"]*\bfm-home-hero-image\b[^"]*")[^>]*>/i', function($m) { $tag = preg_replace('/\s+(?:fetchpriority|loading|decoding)="[^"]*"/i', '', $m[0]); $first = (bool) preg_match('/(?:src|data-src)="[^"]*enc-buds-pro-3\.webp/i', $tag); $attrs = ' fetchpriority="' . ($first ? 'high' : 'low') . '" loading="' . ($first ? 'eager' : 'lazy') . '" decoding="async"'; return preg_replace('/^]*\bclass="[^"]*\bwf-col-lg-12\b[^"]*")[^>]*>/i', function($matches) { $tag = $matches[0]; $tag = preg_replace('/\s+wow(?=\s|")/i', '', $tag); $tag = preg_replace('/\s+fadeInUp(?=\s|")/i', '', $tag); return $tag; }, $html, 1 ); }); }, -4); https://fmelectronic.com/post-sitemap.xml 2026-11-07T13:31:01+00:00 https://fmelectronic.com/page-sitemap.xml 2026-11-09T06:27:28+00:00 https://fmelectronic.com/product-sitemap.xml 2026-11-09T03:26:33+00:00 https://fmelectronic.com/category-sitemap.xml 2026-11-07T13:31:01+00:00 https://fmelectronic.com/product_cat-sitemap.xml 2026-11-09T03:26:33+00:00