This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery( document ).ready( function($) { | |
| $( '.customize-control-checkbox-multiple > ul' ).sortable({ | |
| handle: '.dashicons-menu', | |
| axis: 'y', | |
| stop: function( event, ui ) { | |
| checkbox_values = $( this ).parents( '.customize-control' ).find( 'input[type="checkbox"]:checked' ).map( | |
| function() { | |
| return this.value; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Multiple checkbox customize control class. | |
| * | |
| * @since 1.0.0 | |
| * @access public | |
| */ | |
| class JT_Customize_Control_Checkbox_Multiple extends WP_Customize_Control { | |
| /** |
NewerOlder