array( 'class' => array(), 'data-history' => array(), 'data-post' => array(), 'data-type' => array(), 'data-alphabetical' => array(), 'data-date' => array(), 'data-current-page' => array(), 'style' => array() ), 'img' => array( 'src' => array(), 'alt' => array(), ), 'span' => array(), 'strong' => array(), 'em' => array(), 'a' => array() ); // Check if the 'aipv_clear_data' option is set, otherwise set default to false $clear_data = get_option( 'aipv_clear_data', false ); // Fetch posts, post types, and history using the custom methods from the plugin instance $posts = aipv()->posts()->aipv_get_posts(); $post_types = aipv()->posts()->aipv_get_post_types(); $history = aipv()->posts()->aipv_get_history(); // Fetch admin URL for internal linking purposes $admin_url = aipv()->plugin()->aipv_get_admin_url(); // Variable to track if the API key is validated $validation = false; // API key presence + source (env/constant/encrypted option). $api_key_source = aipv()->plugin()->aipv_get_dalle_api_key_source(); // Fetch the viewer mode (light/dark) for setting the theme in the admin view $viewer_mode = get_option( 'aipv_viewer_mode', 'dark' ); // Default to 'dark' if no mode is set // Set validation flag if DALLE API key exists $validation = (bool) aipv()->plugin()->aipv_has_dalle_api_key(); // Begin rendering the admin page view ?>