This commit is contained in:
nguyen dung
2022-02-18 16:43:41 +07:00
commit 39b8cb3612
4470 changed files with 1378320 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
jQuery( document ).ready( function() {
var self;
self = {
queriedPost: new wp.customize.Value()
};
// Listen for queried-post messages from the preview.
wp.customize.bind( 'ready', function() {
wp.customize.previewer.bind( 'queried-post', function( queriedPost ) {
self.queriedPost.set( queriedPost || false );
} );
} );
// Listen for post
self.queriedPost.bind( function( newPost, oldPost ) {
window.kirkiPost = false;
if ( newPost || oldPost ) {
window.kirkiPost = ( newPost ) ? newPost : oldPost;
}
} );
} );