Advertisement
Guest User

Untitled

a guest
May 25th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.17 KB | None | 0 0
  1. if ( ! function_exists( 'expound_setup' ) ) :
  2. /**
  3.  * Sets up theme defaults and registers support for various WordPress features.
  4.  *
  5.  * Note that this function is hooked into the after_setup_theme hook, which runs
  6.  * before the init hook. The init hook is too late for some features, such as indicating
  7.  * support post thumbnails.
  8.  */
  9. function expound_setup() {
  10.  
  11.     /**
  12.      * Custom template tags for this theme.
  13.      */
  14.     require( get_template_directory() . '/inc/template-tags.php' );
  15.  
  16.     /**
  17.      * Custom functions that act independently of the theme templates
  18.      */
  19.     require( get_template_directory() . '/inc/extras.php' );
  20.  
  21.     /**
  22.      * Customizer additions
  23.      */
  24.     require( get_template_directory() . '/inc/customizer.php' );
  25.  
  26.     /**
  27.      * Make theme available for translation
  28.      * Translations can be filed in the /languages/ directory
  29.      * If you're building a theme based on Mag, use a find and replace
  30.      * to change 'expound' to the name of your theme in all the template files
  31.      */
  32.     load_theme_textdomain( 'expound', get_template_directory() . '/languages' );
  33.  
  34.     /**
  35.      * Add default posts and comments RSS feed links to head
  36.      */
  37.     add_theme_support( 'automatic-feed-links' );
  38.  
  39.     /**
  40.      * Editor styles for the win
  41.      */
  42.     add_editor_style( 'css/editor-style.css' );
  43.  
  44.     /**
  45.      * Enable support for Post Thumbnails on posts and pages
  46.      *
  47.      * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
  48.      */
  49.     add_theme_support( 'post-thumbnails' );
  50.     set_post_thumbnail_size( 220, 126, true );
  51.     add_image_size( 'expound-featured', 460, 260, true );
  52.     add_image_size( 'expound-mini', 50, 50, true );
  53.  
  54.     /**
  55.      * This theme uses wp_nav_menu() in one location.
  56.      */
  57.     register_nav_menus( array(
  58.         'primary' => __( 'Primary Menu', 'expound' ),
  59.         'social' => __( 'Social Menu', 'expound' ),
  60.     ) );
  61.  
  62.     /**
  63.      * Enable support for Post Formats
  64.      */
  65.     add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
  66.  
  67.     /**
  68.      * Enable support for Custom Background
  69.      */
  70.     add_theme_support( 'custom-background', array(
  71.         'default-color' => '333333',
  72.     ) );
  73. }
  74. endif; // expound_setup
  75. add_action( 'after_setup_theme', 'expound_setup' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement