Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Loads the child themes translated strings.
- *
- * If the current locale exists as a .mo file in the child themes root directory, it
- * will be included in the translated strings by the $domain.
- *
- * The .mo files must be named based on the locale exactly.
- *
- * @since 2.9.0
- *
- * @param string $domain Unique identifier for retrieving translated strings
- */
- /* Run Brunelleschi Theme Setup */
- add_action( 'after_setup_theme', 'brunelleschi_setup' );
- /* brunelleschi setup */
- if ( ! function_exists( 'brunelleschi_setup' ) ):
- function brunelleschi_setup() {
- /* Load Theme TextDomain */
- /*load_theme_textdomain( 'brunelleschi', TEMPLATEPATH . '/languages' );*/
- load_child_theme_textdomain( 'andreabrunelleschi', STYLESHEETPATH . '/lngs' );
- $locale = get_locale();
- $locale_file = TEMPLATEPATH . "/languages/$locale.php";
- if ( is_readable( $locale_file ) )
- require_once( $locale_file );
- /* Add Custom Background */
- add_custom_background();
- /* Add Theme Support for Aside and Gallery */
- add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );
- /* Add Editor Style */
- add_editor_style();
- /* Add Automatic Feed Links */
- add_theme_support( 'automatic-feed-links' );
- /* Load Theme Textdomain */
- /*load_theme_textdomain( 'brunelleschi', TEMPLATEPATH . '/languages' );*/
- load_child_theme_textdomain( 'andreabrunelleschi', STYLESHEETPATH . '/lngs' );
- /* Register Navigation */
- register_nav_menus( array(
- 'primary' => __( 'Primary Navigation', 'andreabrunelleschi' ),
- ) );
- /* Default Header Stuff */
- if ( ! defined( 'HEADER_TEXTCOLOR' ) ) { define( 'HEADER_TEXTCOLOR', '' ); }
- if ( ! defined( 'NO_HEADER_TEXT' ) ) { define( 'NO_HEADER_TEXT', true ); }
- }
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement