22 lines
894 B
PHP
22 lines
894 B
PHP
<?php
|
|
|
|
add_action('admin_enqueue_scripts', 'bdp_update_dashboard_style');
|
|
add_action('login_enqueue_scripts', 'bdp_update_login_style');
|
|
|
|
function bdp_update_login_style() {
|
|
if (false === (bool)get_option( 'use_mareike_theme', false )) {
|
|
$css = file_get_contents( BDP_LV_PLUGIN_DIR . 'assets/dashboard.style.css.tpl' );
|
|
echo str_replace( '%%BDP_LV_PLUGIN_URL%%', BDP_LV_PLUGIN_URL, $css );
|
|
}
|
|
}
|
|
|
|
function bdp_update_dashboard_style() {
|
|
if (true === (bool)get_option( 'use_mareike_theme', false )) {
|
|
wp_enqueue_style( 'custom-dashboard-styles', BDP_LV_PLUGIN_URL . '/assets/mareike.css' );
|
|
} else {
|
|
wp_enqueue_style( 'custom-dashboard-styles', BDP_LV_PLUGIN_URL . '/assets/wordpress-bdp.css' );
|
|
}
|
|
wp_enqueue_style('custom-calendar-styles', BDP_LV_PLUGIN_URL . '/assets/calendar.css');
|
|
wp_enqueue_style('custom-security-styles', BDP_LV_PLUGIN_URL . '/assets/security.css');
|
|
}
|