__( 'Primary Navigation', 'AlphaTr' ), ) ); // This theme allows users to set a custom background add_custom_background(); // We'll be using post thumbnails for custom header images on posts and pages. // We want them to be 940 pixels wide by 198 pixels tall. // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. set_post_thumbnail_size( '150', '150', true ); //Sidebars function AlphaTr_sidebars(){ register_sidebar(array( 'name' => __('Sidebar', 'AlphaTr'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } add_action('widgets_init', 'AlphaTr_sidebars'); } endif; //Content width if (!isset($content_width)) { $content_width = 630; } // add default gravatar add_filter( 'avatar_defaults', 'newgravatar' ); function newgravatar ($avatar_defaults) { $myavatar = get_bloginfo('template_directory') . '/images/userlogo.png'; $avatar_defaults[$myavatar] = "自定义头像"; return $avatar_defaults; } ?>