PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
email-templates
/
admin
/
js
(function( $ ) { wp.customize( 'mailtpl_opts[body_bg]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#body' ).css( 'background-color', newval ); } ); } ); wp.customize( 'mailtpl_opts[body_size]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#template_container' ).css( 'max-width', newval + 'px' ); } ); } ); wp.customize( 'mailtpl_opts[custom_css]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#custom-css' ).html( newval ); } ); } ); wp.customize( 'mailtpl_opts[header_logo]', function( value ) { value.bind( function( newval ) { if( newval.length ) { $( '#logo a' ).html( '<img src="'+newval+'" alt="logo" class="mailtpl_img"/>' ); } else { $( '#logo a' ).html( '' ); } } ); } ); wp.customize( 'mailtpl_opts[header_logo_text]', function( value ) { value.bind( function( newval ) { if( newval.length && ! $('#logo img.mailtpl_img').length ) $( '#logo a' ).html( newval ); if( newval.length && $('#logo img').length ) $( '#logo img' ).prop('alt', newval ); } ); } ); wp.customize( 'mailtpl_opts[header_aligment]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#logo' ).css( 'text-align', newval ); } ); } ); wp.customize( 'mailtpl_opts[header_bg]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#template_header' ).css( 'background-color', newval ); } ); } ); wp.customize( 'mailtpl_opts[header_text_size]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#logo' ).css( 'font-size', newval +'px' ); } ); } ); wp.customize( 'mailtpl_opts[header_text_color]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#logo a' ).css( 'color', newval ); } ); } ); wp.customize( 'mailtpl_opts[email_body_bg]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#mailtpl_body_bg' ).css( 'background-color', newval ); } ); } ); wp.customize( 'mailtpl_opts[body_text_size]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#mailtpl_body' ).css( 'font-size', newval +'px' ); } ); } ); wp.customize( 'mailtpl_opts[body_text_color]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#mailtpl_body' ).css( 'color', newval ); } ); } ); wp.customize( 'mailtpl_opts[body_href_color]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#template_body a' ).css( 'color', newval ); } ); } ); wp.customize( 'mailtpl_opts[footer_aligment]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#credit' ).css( 'text-align', newval ); } ); } ); wp.customize( 'mailtpl_opts[footer_bg]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#template_footer' ).css( 'background-color', newval ); } ); } ); wp.customize( 'mailtpl_opts[footer_text_size]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#credit' ).css( 'font-size', newval +'px' ); } ); } ); wp.customize( 'mailtpl_opts[footer_text_color]', function( value ) { value.bind( function( newval ) { if( newval.length ) $( '#credit' ).css( 'color', newval ); } ); } ); wp.customize( 'mailtpl_opts[footer_text]', function( value ) { value.bind( function( newval ) { $( '#credit' ).html( newval ); } ); } ); wp.customize( 'mailtpl_opts[footer_powered_by]', function( value ) { value.bind( function( newval ) { if( newval == 'off' ) { $( '#powered' ).hide(); } else { $( '#powered' ).show(); } } ); } ); })( jQuery );
[+]
..
[-] mailtpl-admin.js
[edit]
[-] mailtpl-pointer.js
[edit]
[-] mailtpl-public.js
[edit]