'e6e6e6', 'text' => '333333', 'link' => '226699', 'border' => 'AABBBB', 'url' => '649DC9' ); function andreas04_body_classes( $classes ) { // Remove body classes that conflict with legacy CSS $classes = array_merge( array_diff( $classes, array( 'date' ) ) ); return $classes; } add_filter( 'body_class', 'andreas04_body_classes' ); if ( function_exists('register_sidebars') ) register_sidebars(2); add_theme_support( 'automatic-feed-links' ); // Custom background add_custom_background(); add_theme_support( 'print-style' ); function andreas04_custom_background() { if ( '' != get_background_color() && '' == get_background_image() ) { ?> __( 'Primary Navigation', 'andreas04' ) ) ); // Fallback for primary navigation function andreas04_page_menu() { ?>
  • id="comment-">

    | 'div-comment', 'before'=>' | ', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>

    Name; if ( ! get_user_meta( get_current_user_id(), "$current_theme-theme-update", true ) ) { add_settings_error( 'theme-update', 'theme-update', sprintf( __( 'Howdy! Your current theme, %1$s, has seen an update in the form of a brand new theme, %2$s. For more information, check out our blog post introducing %2$s to the world. %5$s' ), $current_theme, // Old theme 'Able', // New theme admin_url( 'themes.php?s=able' ), // Link to new theme esc_url( 'http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sight/' ), // Link to announcement post sprintf( '×', __( 'Dismiss' ) ) // Dismiss ), 'updated' ); remove_action( 'admin_notices', 'show_tip' ); if ( ! has_filter( 'admin_notices', 'settings_errors' ) ) add_action( 'admin_notices', 'settings_errors' ); wp_enqueue_script( 'dismiss-theme-update', get_template_directory_uri() . '/js/dismiss-theme-update.js', array( 'jquery' ), 20130225 ); wp_localize_script( 'dismiss-theme-update', 'dismissThemeUpdate', array( 'theme' => $current_theme, 'nonce' => wp_create_nonce( "$current_theme-theme-update" ), ) ); } } add_action( 'admin_init', 'andreas04_add_notice' ); /** * Updates user setting when theme update notice was dismissed. */ function andreas04_dismiss_theme_update() { $current_theme = wp_get_theme()->Name; check_ajax_referer( "$current_theme-theme-update", 'nonce' ); if ( $_REQUEST['theme'] == $current_theme ) { update_user_meta( get_current_user_id(), "$current_theme-theme-update", true ); wp_die( 1 ); } } add_action( 'wp_ajax_dismiss_theme_update', 'andreas04_dismiss_theme_update' );