l10n() ); } /** * Refresh the parameters passed to the JavaScript via JSON. * * @see WP_Customize_Control::to_json() * @access public * @return void */ public function to_json() { parent::to_json(); $this->json['l10n'] = $this->l10n(); if ( is_array( $this->json['default'] ) ) { foreach ( $this->json['default'] as $key => $value ) { $this->json['choices']['controls'][ $key ] = true; } } if ( is_array( $this->json['default'] ) ) { foreach ( $this->json['default'] as $key => $value ) { if ( isset( $this->json['choices'][ $key ] ) && ! isset( $this->json['value'][ $key ] ) ) { $this->json['value'][ $key ] = $value; } } } } /** * Renders the Underscore template for this control. * * @see WP_Customize_Control::print_template() * @access protected * @return void */ protected function content_template() { ?> esc_attr__( 'Top', 'zakra' ), 'right' => esc_attr__( 'Right', 'zakra' ), 'bottom' => esc_attr__( 'Bottom', 'zakra' ), 'left' => esc_attr__( 'Left', 'zakra' ), ); } /** * Render content is still called, so be sure to override it with an empty function in your subclass as well. */ protected function render_content() { } }