admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'mi_admin_nonce' ), 'strings' => array( 'downloading' => __( 'Downloading...', 'maple-icons' ), 'deleting' => __( 'Deleting...', 'maple-icons' ), 'activating' => __( 'Activating...', 'maple-icons' ), 'confirmDelete' => __( 'Are you sure you want to delete this icon set?', 'maple-icons' ), 'downloadError' => __( 'Download failed. Please try again.', 'maple-icons' ), 'deleteError' => __( 'Delete failed. Please try again.', 'maple-icons' ), 'activateError' => __( 'Activation failed. Please try again.', 'maple-icons' ), 'downloadSuccess'=> __( 'Icon set downloaded successfully!', 'maple-icons' ), 'deleteSuccess' => __( 'Icon set deleted successfully!', 'maple-icons' ), 'activateSuccess'=> __( 'Icon set activated!', 'maple-icons' ), ), ) ); } /** * Render the settings page. */ public function render_page() { if ( ! current_user_can( 'manage_options' ) ) { return; } $registry = MI_Icon_Registry::get_instance(); $all_sets = MI_Icon_Sets::get_all(); $downloaded = $registry->get_downloaded_sets(); $active_set = $registry->get_active_set(); ?>

$set ) : ?>

0 ) : ?>

' . esc_html( MI_ICONS_DIR ) . '' ); ?>