Advertisement
Guest User

andrea-brunelleschi

a guest
Jan 29th, 2012
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.77 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Loads the child themes translated strings.
  4.  *
  5.  * If the current locale exists as a .mo file in the child themes root directory, it
  6.  * will be included in the translated strings by the $domain.
  7.  *
  8.  * The .mo files must be named based on the locale exactly.
  9.  *
  10.  * @since 2.9.0
  11.  *
  12.  * @param string $domain Unique identifier for retrieving translated strings
  13.  */
  14.  
  15. /* Run Brunelleschi Theme Setup */
  16. add_action( 'after_setup_theme', 'brunelleschi_setup' );
  17.  
  18. /* brunelleschi setup */
  19. if ( ! function_exists( 'brunelleschi_setup' ) ):
  20.     function brunelleschi_setup() {
  21.        
  22.         /* Load Theme TextDomain */
  23.         /*load_theme_textdomain( 'brunelleschi', TEMPLATEPATH . '/languages' );*/
  24.         load_child_theme_textdomain( 'andreabrunelleschi', STYLESHEETPATH . '/lngs' );
  25.        
  26.         $locale = get_locale();
  27.         $locale_file = TEMPLATEPATH . "/languages/$locale.php";
  28.         if ( is_readable( $locale_file ) )
  29.         require_once( $locale_file );
  30.        
  31.         /* Add Custom Background */
  32.         add_custom_background();
  33.        
  34.         /* Add Theme Support for Aside and Gallery */
  35.         add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );
  36.        
  37.         /* Add Editor Style */
  38.         add_editor_style();
  39.        
  40.         /* Add Automatic Feed Links */
  41.         add_theme_support( 'automatic-feed-links' );
  42.        
  43.         /* Load Theme Textdomain */
  44.         /*load_theme_textdomain( 'brunelleschi', TEMPLATEPATH . '/languages' );*/
  45.         load_child_theme_textdomain( 'andreabrunelleschi', STYLESHEETPATH . '/lngs' );
  46.        
  47.         /* Register Navigation */
  48.         register_nav_menus( array(
  49.             'primary' => __( 'Primary Navigation', 'andreabrunelleschi' ),
  50.         ) );
  51.        
  52.         /* Default Header Stuff */
  53.         if ( ! defined( 'HEADER_TEXTCOLOR' ) ) { define( 'HEADER_TEXTCOLOR', '' ); }
  54.         if ( ! defined( 'NO_HEADER_TEXT' ) ) { define( 'NO_HEADER_TEXT', true ); }
  55.     }
  56. endif;
  57. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement