Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Digital Raindrops Twenty Eleven Theme Colors
- */
- function drtc_admin_enqueue_scripts( $hook_suffix ) {
- wp_enqueue_style( 'farbtastic' );
- wp_admin_css( 'dashboard' );
- wp_enqueue_style( 'drtc-theme-colors', get_stylesheet_directory_uri() . '/includes/theme-colors.css', false, '2011-04-28' );
- wp_enqueue_script( 'drtc-theme-colors', get_stylesheet_directory_uri() . '/includes/theme-colors.js', array( 'farbtastic' ), '2011-06-10' );
- wp_enqueue_script( 'dashboard' );
- }
- add_action( 'admin_print_styles-appearance_page_theme_colors', 'drtc_admin_enqueue_scripts' );
- /* Add our theme colors page to the admin menu */
- function drtc_theme_colors_add_page() {
- $color_page = add_theme_page(
- __( 'Theme Colors', 'drtc' ),
- __( 'Theme Colors', 'drtc' ),
- 'edit_theme_options',
- 'theme_colors',
- 'theme_colors_render_page'
- );
- }
- add_action( 'admin_menu', 'drtc_theme_colors_add_page' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement