reorder css
Some checks failed
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Has been cancelled
Some checks failed
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Has been cancelled
This commit is contained in:
@@ -10,14 +10,15 @@
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
// Stylesheet einbinden
|
||||
|
||||
add_action('admin_enqueue_scripts', function($hook) {
|
||||
// Nur auf den Plugin-Seiten laden (optional: prüfe $hook!)
|
||||
if (strpos($hook, 'kc_') !== false) {
|
||||
wp_enqueue_style(
|
||||
'kc-admin-style',
|
||||
plugin_dir_url(__FILE__) . 'assets/kc-admin-style.css',
|
||||
plugin_dir_url(__FILE__) . 'assets/kc-admin.css',
|
||||
[],
|
||||
filemtime(plugin_dir_path(__FILE__) . 'assets/kc-admin-style.css')
|
||||
filemtime(plugin_dir_path(__FILE__) . 'assets/kc-admin.css')
|
||||
);
|
||||
}
|
||||
});
|
||||
@@ -32,10 +33,14 @@ add_action('admin_enqueue_scripts', function($hook) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
add_action('wp_enqueue_scripts', function() {
|
||||
wp_enqueue_style('kc-workshopwahl-form', plugins_url('assets/frontend-form.css', __FILE__));
|
||||
wp_enqueue_style('kc-workshopwahl-frontend', plugins_url('assets/frontend.css', __FILE__));
|
||||
});
|
||||
|
||||
|
||||
|
||||
// Zentrale Admin-Menüstruktur
|
||||
add_action('admin_menu', function() {
|
||||
add_menu_page('Wahlen', 'Wahlen', 'manage_options', 'kc_wahlen', 'kc_wahlen_page');
|
||||
|
||||
Reference in New Issue
Block a user