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 21:28:18 +02:00
|
|
|
/**
|
2014-11-17 19:25:23 +01: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 21:28:18 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
( function( $ ) {
|
2014-12-16 13:27:26 +01:00
|
|
|
var $style = $( '#twentyfifteen-color-scheme-css' ),
|
|
|
|
api = wp.customize;
|
2014-11-07 22:11:25 +01:00
|
|
|
|
|
|
|
if ( ! $style.length ) {
|
|
|
|
$style = $( 'head' ).append( '<style type="text/css" id="twentyfifteen-color-scheme-css" />' )
|
|
|
|
.find( '#twentyfifteen-color-scheme-css' );
|
|
|
|
}
|
|
|
|
|
2014-11-11 20:36:23 +01:00
|
|
|
// Site title.
|
2014-12-16 13:27:26 +01: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 21:28:18 +02:00
|
|
|
value.bind( function( to ) {
|
|
|
|
$( '.site-title a' ).text( to );
|
|
|
|
} );
|
|
|
|
} );
|
2014-11-07 22:11:25 +01:00
|
|
|
|
2014-11-11 20:36:23 +01:00
|
|
|
// Site tagline.
|
2014-12-16 13:27:26 +01: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 21:28:18 +02:00
|
|
|
value.bind( function( to ) {
|
|
|
|
$( '.site-description' ).text( to );
|
|
|
|
} );
|
|
|
|
} );
|
2014-11-11 20:36:23 +01:00
|
|
|
|
|
|
|
// Color Scheme CSS.
|
2014-12-16 13:27:26 +01:00
|
|
|
api.bind( 'preview-ready', function() {
|
|
|
|
api.preview.bind( 'update-color-scheme-css', function( css ) {
|
|
|
|
$style.html( css );
|
2014-11-07 22:11:25 +01:00
|
|
|
} );
|
|
|
|
} );
|
|
|
|
|
2014-12-10 14:39:24 +01:00
|
|
|
} )( jQuery );
|