json['sidebars'] = $this->value(); } /** * Don't render any content for this control from PHP. * * @see Barter_A13_Customize_Socials_Control::content_template() */ public function render_content() {} /** * Render a JS template for the content of the socials control. * */ public function content_template() { ?> <# var id_prefix = _.uniqueId( 'el' ) + '-'; #> <# if ( data.label ) { #> {{{ data.label }}} <# } #> <# if ( data.description ) { #> {{{ data.description }}} <# } #>
<# _.each( data.sidebars, function( value, index ) { if(_.isNull(value) || _.isUndefined(value) || value.length === 0){ return; } #>
<# } ); #>