/** * Plugin Name: Admin Bar Styler * Description: Colorize the admin bar to match your site style, or make a visual distinction between different environments such as DEV, QA, UAT, PROD. * Version: 1.0.0 * Author: John Alarcon * Author URI: https://johnalarcon.com * Text Domain: alar-admin-bar-styler * Domain Path: /languages * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * * This is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * See http://www.gnu.org/licenses/gpl-2.0.txt. * */ jQuery(document).ready(function($) { $(".admin_bar_styler_preset.red").click(function(){ $("#enviro_bg_color").val("#d32f2f"); $("#enviro_font_color").val("#dddddd"); $("#enviro_hover_color").val("#b71c1c"); }); $(".admin_bar_styler_preset.yellow").click(function(){ $("#enviro_bg_color").val("#fdd835"); $("#enviro_font_color").val("#555555"); $("#enviro_hover_color").val("#ffeb3b"); }); $(".admin_bar_styler_preset.green").click(function(){ $("#enviro_bg_color").val("#1b5e20"); $("#enviro_font_color").val("#dddddd"); $("#enviro_hover_color").val("#558b2f"); }); $(".admin_bar_styler_preset.blue").click(function(){ $("#enviro_bg_color").val("#1565c0"); $("#enviro_font_color").val("#dddddd"); $("#enviro_hover_color").val("#0d47a1"); }); });