* @copyright Copyright (c) 2013-2014, Arthur Gareginyan * @link http://mycyberuniverse.com/anarcho-notepad.html * @license http://www.gnu.org/licenses/gpl-3.0.html */ // Add some CSS so I can Style the Theme Options Page function anarcho_include_theme_options_style() { wp_enqueue_style('anarcho_theme_options_styles', get_template_directory_uri() . '/theme_info.css', false, '1.0'); } add_action('admin_print_styles-appearance_page_theme_options', 'anarcho_include_theme_options_style'); // Create the Theme Information page (Theme Options) function anarcho_theme_options_do_page() { ?>

add_menu( array( 'parent' => 'top-secondary', // Off on the right side 'id' => 'anarcho-help' , 'title' => __( 'Help' , 'anarcho-notepad' ), 'href' => admin_url( 'themes.php?page=theme_options' ), 'meta' => array( 'title' => __( 'Need help with Anarcho-Notepad? Click here!', 'anarcho-notepad' ), ), )); } } add_action ( 'wp_before_admin_bar_render', 'anarcho_add_help_button' ); //enqueue additional styling for admin screens function anarcho_include_admin_style() { wp_enqueue_style( 'anarcho_admin_styles', get_template_directory_uri() . '/admin.css' ); } add_action( 'admin_init', 'anarcho_include_admin_style' ); // Add WordPress customizer page to the admin bar menu. function anarcho_add_admin_bar_options_menu() { if ( current_user_can( 'edit_theme_options' ) ) { global $wp_admin_bar; $wp_admin_bar->add_menu( array( 'parent' => false, 'id' => 'anarcho-customizr' , 'title' => __( 'Customiz\'it!' , 'anarcho-notepad' ), 'href' => admin_url( 'customize.php' ), 'meta' => array( 'title' => __( 'Customize your website at any time!', 'anarcho-notepad' ), ), )); } } add_action('wp_before_admin_bar_render', 'anarcho_add_admin_bar_options_menu');