HEX
Server:Apache
System:Linux localhost 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64
User:enlugo-es (10006)
PHP:7.4.33
Disabled:opcache_get_status
Upload Files
File: /var/www/vhosts/enlugo.es/httpdocs/wp-content/themes/rubine/js/customizer.js
/*
 * Customizer.js to reload changes on Theme Customizer Preview asynchronously.
 *
 */

( function( $ ) {

	/* Default WordPress Customizer settings */
	wp.customize( 'blogname', function( value ) {
		value.bind( function( to ) {
			$( '#logo .site-title' ).text( to );
		} );
	} );
	wp.customize( 'blogdescription', function( value ) {
		value.bind( function( to ) {
			$( '#logo .site-description' ).text( to );
		} );
	} );
	
	/* Theme Colors */	
	wp.customize( 'rubine_theme_options[header_color]', function( value ) {
		value.bind( function( newval ) {
			$('#header-wrap')
				.css('background-color', newval );
		} );
	} );
	
	wp.customize( 'rubine_theme_options[navi_color]', function( value ) {
		value.bind( function( newval ) {
			$('#mainnav-menu a:link, #mainnav-menu a:visited, #mainnav-menu ul a:link, #mainnav-menu ul a:visited')
				.css('color', newval );
		} );
	} );
	
	wp.customize( 'rubine_theme_options[title_color]', function( value ) {
		value.bind( function( newval ) {
			$('.page-title, .post-title, .post-title a:link, .post-title a:visited ')
				.css('color', newval );
		} );
	} );
	
	wp.customize( 'rubine_theme_options[widget_title_color]', function( value ) {
		value.bind( function( newval ) {
			$('#sidebar .widgettitle, .archive-title, .frontpage-category-title')
				.css('color', newval );
		} );
	} );
	
	wp.customize( 'rubine_theme_options[widget_link_color]', function( value ) {
		value.bind( function( newval ) {
			$('#sidebar .widget a:link, #sidebar .widget a:visited')
				.css('color', newval );
		} );
	} );
	
	wp.customize( 'rubine_theme_options[footer_color]', function( value ) {
		value.bind( function( newval ) {
			$('#footer-bg')
				.css('background', newval );
		} );
	} );
	

} )( jQuery );