button_labels = wp_parse_args( $this->button_labels, array( 'select' => __( 'Select Images', 'bloghash' ), 'change' => __( 'Modify Gallery', 'bloghash' ), 'default' => __( 'Default', 'bloghash' ), 'remove' => __( 'Remove', 'bloghash' ), 'placeholder' => __( 'No images selected', 'bloghash' ), 'frame_title' => __( 'Select Gallery Images', 'bloghash' ), 'frame_button' => __( 'Choose Images', 'bloghash' ), ) ); } /** * An Underscore (JS) template for this control's content (but not its container). * * Class variables for this control class are available in the `data` JS object; * export custom variables by overriding {@see WP_Customize_Control::to_json()}. * * @see WP_Customize_Control::print_template() */ protected function content_template() { $data = $this->json(); ?> <# _.defaults( data, ); data.input_id = 'input-' + String( Math.random() ); #> <# if ( data.attachments ) { #> <# } #>
json['label'] = html_entity_decode( $this->label, ENT_QUOTES, get_bloginfo( 'charset' ) ); $this->json['file_type'] = $this->file_type; $this->json['button_labels'] = $this->button_labels; } }