<?php $block_id = 'block_qsrxbqv1'; if (!isset($HTMX_BLOCK_ID) || $HTMX_BLOCK_ID === $block_id) { $doc_icon = '';

$sec1_posts = get_posts(['category_name' => 'pool-light-troubleshooting', 'posts_per_page' => -1, 'post_status' => 'publish']);
$sec2_posts = get_posts(['category_name' => 'pool-light-water-issues,pool-light-failure-analysis', 'posts_per_page' => -1, 'post_status' => 'publish']);
$sec3_posts = get_posts(['category_name' => 'pool-light-installation-guides', 'posts_per_page' => -1, 'post_status' => 'publish']);
$sec4_posts = get_posts(['category_name' => 'pool-light-compatibility', 'posts_per_page' => -1, 'post_status' => 'publish']);
$sec5_posts = get_posts(['category_name' => 'pentair-globrite-replacement', 'posts_per_page' => -1, 'post_status' => 'publish']);
$sec6_posts = get_posts(['category_name' => 'pool-light-cost-replacement', 'posts_per_page' => -1, 'post_status' => 'publish']);

$build_list = function($posts) use ($doc_icon) {
    if (!is_array($posts) || empty($posts)) {
        return '';
    }
    $items = [];
    foreach ($posts as $item) {
        $url = esc_url(get_permalink($item->ID));
        $title = esc_html($item->post_title);
        $items[] = <<
                        
                            {$doc_icon}
                            {$title}
                        
                    

HTML; } return implode("n", $items); };

$sec1_html = $build_list($sec1_posts);
$sec2_html = $build_list($sec2_posts);
$sec3_html = $build_list($sec3_posts);
$sec4_html = $build_list($sec4_posts);
$sec5_html = $build_list($sec5_posts);
$sec6_html = $build_list($sec6_posts);

echo <<

Pentair GloBrite Replacement Knowledge Center

This page organizes all available technical resources related to Pentair GloBrite replacement lights, helping pool owners and professionals quickly find troubleshooting, installation, and compatibility information.

GloBrite Common Problems

Common failure symptoms and troubleshooting resources.

    {$sec1_html}

Water Intrusion & Failure Analysis

Technical analysis of why nicheless pool lights fail.

    {$sec2_html}

Installation & Replacement Guides

Installation instructions and replacement procedures.

    {$sec3_html}

Pentair Automation Compatibility

Resources related to IntelliCenter, IntelliTouch, EasyTouch, and color synchronization.

    {$sec4_html}

Replacement Options Comparison

Comparisons between OEM and aftermarket replacement solutions.

    {$sec5_html}

Buying Guides

Guides to help choose the correct replacement light.

    {$sec6_html}

HTML; } ?>