Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 15:28:18 -04:00
|
|
|
/**
|
2014-11-17 13:25:23 -05:00
|
|
|
* Live-update changed settings in real time in the Customizer preview.
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 15:28:18 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
( function( $ ) {
|
2014-12-16 07:27:26 -05:00
|
|
|
var $style = $( '#twentyfifteen-color-scheme-css' ),
|
|
|
|
api = wp.customize;
|
2014-11-07 16:11:25 -05:00
|
|
|
|
|
|
|
if ( ! $style.length ) {
|
|
|
|
$style = $( 'head' ).append( '<style type="text/css" id="twentyfifteen-color-scheme-css" />' )
|
|
|
|
.find( '#twentyfifteen-color-scheme-css' );
|
|
|
|
}
|
|
|
|
|
2014-11-11 14:36:23 -05:00
|
|
|
// Site title.
|
2014-12-16 07:27:26 -05:00
|
|
|
api( 'blogname', function( value ) {
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 15:28:18 -04:00
|
|
|
value.bind( function( to ) {
|
|
|
|
$( '.site-title a' ).text( to );
|
|
|
|
} );
|
|
|
|
} );
|
2014-11-07 16:11:25 -05:00
|
|
|
|
2014-11-11 14:36:23 -05:00
|
|
|
// Site tagline.
|
2014-12-16 07:27:26 -05:00
|
|
|
api( 'blogdescription', function( value ) {
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 15:28:18 -04:00
|
|
|
value.bind( function( to ) {
|
|
|
|
$( '.site-description' ).text( to );
|
|
|
|
} );
|
|
|
|
} );
|
2014-11-11 14:36:23 -05:00
|
|
|
|
|
|
|
// Color Scheme CSS.
|
2014-12-16 07:27:26 -05:00
|
|
|
api.bind( 'preview-ready', function() {
|
|
|
|
api.preview.bind( 'update-color-scheme-css', function( css ) {
|
|
|
|
$style.html( css );
|
2014-11-07 16:11:25 -05:00
|
|
|
} );
|
|
|
|
} );
|
|
|
|
|
2014-12-10 08:39:24 -05:00
|
|
|
} )( jQuery );
|