Permalink
Browse files

Change site title and description transport method to postMessage in

Theme Customizer
  • Loading branch information...
1 parent bbb49cb commit d403633ec94517bf4c459d64bc8423afa8270426 @obenland committed Jun 4, 2012
Showing with 18 additions and 2 deletions.
  1. +3 −0 inc/theme-customizer.php
  2. +10 −0 js/theme-customizer.js
  3. +4 −1 readme.txt
  4. +1 −1 style.css
@@ -21,6 +21,9 @@
* @return void
*/
function the_bootstrap_customize_register( $wp_customize ) {
+ $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
+ $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
+
$wp_customize->add_section( 'the_bootstrap_theme_options', array(
'title' => __( 'Theme Options', 'the-bootstrap' ),
'priority' => 99,
@@ -1,4 +1,14 @@
jQuery(function($){
+ wp.customize( 'blogname', function( value ) {
+ value.bind( function( to ) {
+ $( '#site-title span' ).html( to );
+ } );
+ } );
+ wp.customize( 'blogdescription', function( value ) {
+ value.bind( function( to ) {
+ $( '#site-description' ).html( to );
+ } );
+ } );
wp.customize('the_bootstrap_theme_options[theme_layout]',function(value){
value.bind(function(to){
jQuery('body').removeClass('content-sidebar sidebar-content').addClass(to);
View
@@ -4,7 +4,7 @@ Tags: black, blue, white, light, two-columns, left-sidebar, right-sidebar, fl
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=542W6XT4PLT4L
Requires at least: 3.3.0
Tested up to: 3.4
-Stable tag: 1.6.0
+Stable tag: 1.7.0
A WordPress Theme based on Bootstrap, from Twitter
@@ -65,6 +65,9 @@ For more information on SemVer, please visit [http://semver.org/].
== Changelog ==
+= 1.7.0 =
+* Changed site title and description transport method to postMessage in Theme Customizer
+
= 1.6.0 =
* Added a Gallery Widget for sidebars
* Updated Twitter Bootstrap to 2.0.4
View
@@ -5,7 +5,7 @@
* Description: A WordPress Theme based on Bootstrap, from Twitter. It features a 100% responsive layout, a superb gallery and image handling with a custom image meta widget and carousel for gallery post-formats, a clean and simple design and a lot more! The Bootstrap runs on HTML5 and CSS3, a 12-column grid and comes with custom jQuery plugins. See the Bootstrap documentation on GitHub for reference.
* Author: Konstantin Obenland
* Author URI: http://en.wp.obenland.it/
- * Version: 1.6.0
+ * Version: 1.7.0
* Tags: black, blue, white, light, custom-background, custom-header, custom-menu, featured-images, flexible-width, full-width-template, left-sidebar, microformats, post-formats, right-sidebar, sticky-post, theme-options, threaded-comments, translation-ready, two-columns
* Text Domain: the-bootstrap
* Domain Path: /lang

0 comments on commit d403633

Please sign in to comment.