// Build ticker HTML once
function eventory_ticker_html() {
    $items = [
        ['num' => '1,247', 'text' => 'events planned this month'],
        ['num' => '65+',   'text' => 'expert guides published'],
        ['num' => '4.9/5', 'text' => 'average reader rating'],
        ['num' => 'Weekly','text' => 'new decoration trends'],
        ['num' => '3',     'text' => 'free planning tools'],
        ['num' => 'AI',    'text' => 'curated content daily'],
        ['num' => '35+',   'text' => 'decoration ideas'],
        ['num' => '9+',    'text' => 'venue categories'],
    ];
    $all = array_merge($items, $items);
    $h = '<div class="eventory-ticker-bar" role="marquee" aria-label="Site statistics"><div class="eventory-ticker-track">';
    foreach ($all as $it) {
        $h .= '<span class="eventory-ticker-item"><span class="eventory-ticker-dot"></span><span class="eventory-ticker-num">'.esc_html($it['num']).'</span><span>'.esc_html($it['text']).'</span></span>';
    }
    $h .= '</div></div>';
    return $h;
}

// Insert exactly one ticker right after <body ...> via full-page output buffer
add_action('template_redirect', function() {
    if (!is_front_page()) return;
    ob_start(function($html) {
        if (strpos($html, 'eventory-ticker-bar') !== false) {
            // strip any already-injected bars to avoid duplicates
            $html = preg_replace('/<div class="eventory-ticker-bar".*?<\/div><\/div>/s', '', $html, -1, $n);
        }
        $bar = eventory_ticker_html();
        $html = preg_replace('/(<body[^>]*>)/i', '$1'.$bar, $html, 1);
        return $html;
    });
}, 0);
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//www.eventory.store/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://www.eventory.store/post-sitemap.xml</loc>
		<lastmod>2026-06-23T20:30:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.eventory.store/page-sitemap.xml</loc>
		<lastmod>2026-06-21T03:00:38+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.eventory.store/product-sitemap.xml</loc>
		<lastmod>2026-06-17T09:41:44+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.eventory.store/web-story-sitemap.xml</loc>
		<lastmod>2026-04-21T15:39:25+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.eventory.store/category-sitemap.xml</loc>
		<lastmod>2026-06-23T20:30:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.eventory.store/blc-product-review-categories-sitemap.xml</loc>
		<lastmod>2026-06-09T10:06:54+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->