json[ 'link' ] = $this->get_link(); $this->json[ 'value' ] = $this->value(); $this->json[ 'id' ] = $this->id; $this->json[ 'default_value' ] = $this->default_value; $this->json[ 'reset_title' ] = esc_attr__( 'Reset','generate-spacing' ); $this->json[ 'unit' ] = $this->unit; $this->json[ 'edit_field' ] = $this->edit_field; } public function content_template() { ?>
<# if ( '' !== data.default_value ) { #>{{ data.reset_title }}<# } #> json[ 'link' ] = $this->get_link(); $this->json[ 'value' ] = absint( $this->value() ); $this->json[ 'description' ] = esc_html( $this->description ); } public function content_template() { ?> type ) { default: case 'text' : ?> label ) ) echo '' . esc_html( $this->label ) . ''; if ( ! empty( $this->description ) ) echo '' . esc_html( $this->description ) . ''; if ( ! empty( $this->areas ) ) : echo '
'; foreach ( $this->areas as $value => $label ) : echo '' . esc_html( $label ) . ''; endforeach; endif; break; case 'line' : echo '
'; break; } } } endif; if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Generate_Backgrounds_Customize_Control' ) ) : /* * @deprecated 1.3 */ class Generate_Backgrounds_Customize_Control extends WP_Customize_Control { public function render() {} } endif; if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Generate_Backgrounds_Customize_Misc_Control' ) ) : /* * No longer used * Kept for back compat purposes * @deprecated 1.2.95 */ class Generate_Backgrounds_Customize_Misc_Control extends WP_Customize_Control { public function render() {} } endif; if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Generate_Blog_Customize_Control' ) ) : /** * Add our number input field for the featured image width * @deprecated 1.3 */ class Generate_Blog_Customize_Control extends WP_Customize_Control { public $type = 'gp-post-image-size'; public $placeholder = ''; public function enqueue() { wp_enqueue_script( 'gp-blog-customizer', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'js/blog-customizer.js', array( 'customize-controls' ), GENERATE_BLOG_VERSION, true ); } public function to_json() { parent::to_json(); $this->json[ 'link' ] = $this->get_link(); $this->json[ 'value' ] = $this->value(); $this->json[ 'placeholder' ] = $this->placeholder; } public function content_template() { ?> json[ 'link' ] = $this->get_link(); $this->json[ 'value' ] = $this->value(); $this->json[ 'placeholder' ] = $this->placeholder; } public function content_template() { ?> json[ 'text' ] = __( 'Apply image sizes','page-header' ); } public function content_template() { ?> {{{ data.text }}} json[ 'link' ] = $this->get_link(); $this->json[ 'value' ] = $this->value(); $this->json[ 'id' ] = $this->id; } public function content_template() { ?>