Un motore di ricerca WordPress per sviluppatori e autori di temi



options_discussion_add_js ›

Da4.2.0
Deprecaton/a
options_discussion_add_js ( Nessun parametro )
Definito a:
Codex:

Output JavaScript to toggle display of additional settings if avatars are disabled.



Sorgenti

function options_discussion_add_js() {
	?>
	<script>
	(function($){
		var parent = $( '#show_avatars' ),
			children = $( '.avatar-settings' );
		parent.change(function(){
			children.toggleClass( 'hide-if-js', ! this.checked );
		});
	})(jQuery);
	</script>
	<?php
}