Changes to backend and tabs UI

This commit is contained in:
Jeremy Rangel
2025-01-03 16:33:20 -08:00
parent b79a4ece03
commit 63e181109c
15 changed files with 118 additions and 83 deletions

View File

@ -170,32 +170,6 @@ function drop_lcp_icons_table() {
/* BACKEND ICON ADDER */
// Register the dashboard page in the admin menu
function lcp_register_dashboard_page() {
add_menu_page(
'Icon Management', // Page Title
'Icon Management', // Menu Title
'manage_options', // Capability
'icon-management', // Menu Slug
'lcp_dashboard_page', // Callback function
'dashicons-images-alt2', // Icon for the menu item
60 // Position
);
}
add_action('admin_menu', 'lcp_register_dashboard_page');
// Callback function to display the dashboard page content
function lcp_dashboard_page() {
?>
<div class="wrap">
<h1><?php esc_html_e('Icon Management Dashboard', 'lcp'); ?></h1>
<div id="icon-dashboard-container">
<?php lcp_display_icon_sets(); ?>
</div> <!-- This will be populated by PHP -->
</div>
<?php
}
// Function to read and display icon sets from the JSON file
// Function to read and display icon sets from the JSON file