<?php

/*
Plugin Name: EZ WordPress Admin Skins
Plugin URI: http://www.simplesites4u.com
Description: Create simple and beautiful admin skins for wordpress
Author: SimpleSites4U
Version: 1.1
Author URI: http://www.simplesites4u.com
*/

require_once("ez-admin-skins-admin.php");
 
function ez_admin_skins_head() {
	$data = get_option('ez_admin_skin_options');
	$skin = $data['base_scheme'];
echo '<link rel="stylesheet" type="text/css" href="' .get_template_directory_uri() . '/includes/plugins/dasboard-skin/admin-dark.css'.'">';

	echo '<style type="text/css">
	wp-submenu li:hover, .tagadd, .wp-submenu li a:hover, #adminmenu li.menu-top:hover > a, #adminmenu li.menu-top.focused > a, #adminmenu li.menu-top > a:focus, .wp-has-submenu:hover, .wrap .add-new-h2, input.button-primary, #adminmenu .wp-submenu .wp-submenu-head:hover, .wp-core-ui .button-primary {
		background:#'; echo get_option('tigu_accent_color', 'fb2900'); echo' !important;
		background-color:#'; echo get_option('tigu_accent_color', 'fb2900'); echo' !important;
		border-color: transparent;
	}

.tagadd {color:#fff!important; font-weight:normal !important; text-shadow:none!important}

	#adminmenu li.wp-menu-open a:hover, #collapse-menu:hover, .current {
		color:#'; echo get_option('tigu_accent_color', 'fb2900'); echo' !important;
	}
	#adminmenu .awaiting-mod, #adminmenu .update-plugins, #sidemenu a .update-plugins, #rightnow .reallynow, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.current a.menu-top, .folded #adminmenu li.current.menu-top {
		background-color:#';  echo get_option('tigu_accent_color', 'fb2900'); echo' !important;
		-webkit-box-shadow: none;
		box-shadow: none;
	}';

    if(get_option('tigu_show_icons') == 'false'){ echo' 
 
	#adminmenu div.wp-menu-image {
		display: none;
	}

	.folded #adminmenu div.wp-menu-image {
		display: block;
	}';
	} echo'
	</style>';
}

add_action('admin_head', 'ez_admin_skins_head');

?>