Changes to backend and tabs UI
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user