render_admin_interface();
        }
        
        // Also display the announcements timeline for viewing
        echo '
';
        echo '
' . __('Published Announcements', 'hvac') . '
';
        
        // First try the_content() to get any shortcode from post_content
        ob_start();
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                the_content();
            }
        }
        $post_content = ob_get_clean();
        // If post_content is empty or just contains the shortcode without rendering, try direct shortcode
        if (empty(trim(strip_tags($post_content))) || strpos($post_content, '[hvac_announcements_timeline]') !== false) {
            // Ensure the shortcode class is initialized
            if (class_exists('HVAC_Announcements_Display')) {
                $instance = HVAC_Announcements_Display::get_instance();
                if (method_exists($instance, 'render_timeline_shortcode')) {
                    echo $instance->render_timeline_shortcode();
                } else {
                    echo do_shortcode('[hvac_announcements_timeline]');
                }
            } else {
                echo '
Announcements system is not available. Please contact an administrator.
';
            }
        } else {
            echo $post_content;
        }
        
        echo '
'; // .announcements-display-section
        ?>