This commit is contained in:
emmymayo
2025-02-05 23:15:46 +01:00
commit 7269c99357
16995 changed files with 3389680 additions and 0 deletions
@@ -0,0 +1,24 @@
/* global site_logo_header_classes */
/**
* JS for handling the "Display Header Text" setting's realtime preview.
*/
( function ( $ ) {
var api = wp.customize,
$classes = site_logo_header_classes.classes;
api( 'site_logo_header_text', function ( value ) {
value.bind( function ( to ) {
if ( true === to ) {
$( $classes ).css( {
position: 'static',
clip: 'auto',
} );
} else {
$( $classes ).css( {
position: 'absolute',
clip: 'rect(1px 1px 1px 1px)',
} );
}
} );
} );
} )( jQuery );
@@ -0,0 +1 @@
!function(t){var i=wp.customize,o=site_logo_header_classes;i("site_logo_header_text",function(i){i.bind(function(i){t(o).css(!0===i?{position:"static",clip:"auto"}:{position:"absolute",clip:"rect(1px 1px 1px 1px)"})})})}(jQuery);