Skip to content

Commit

Permalink
reorging the custoimzer
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed May 29, 2015
1 parent 9bba75a commit 5eeeacb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions inc/customizer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
function cs_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';

include('customizer-titlebar.php');
include('customizer-nav.php');
include('customizer-colors.php');
include('customizer-homepage-layout.php');
}
add_action( 'customize_register', 'cs_customize_register' );

function cs_customize_preview_js() {
// Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
wp_enqueue_script( 'cs_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true );
}
add_action( 'customize_preview_init', 'cs_customize_preview_js' );

// hides the non-functional 'display Header text' checkbox.
define( 'NO_HEADER_TEXT', true );
?>

0 comments on commit 5eeeacb

Please sign in to comment.