layouts = $args['layouts']; parent::__construct( $manager, $id, $args ); } /** * Enqueue control related scripts/styles. * * @since 1.0 */ public function enqueue() { wp_enqueue_style( 'customize-control-layout' ); wp_enqueue_script( 'customize-control-layout' ); } /** * Refresh the parameters passed to the JavaScript via JSON. * * @since 1.0 * @uses WP_Customize_Control::to_json() */ public function to_json() { parent::to_json(); $this->json['layouts'] = $this->layouts; } /** * Render the control's content. * * @since 1.0 */ public function render_content() { if ( empty( $this->layouts ) ) { return; } $name = '_customize-layout-' . $this->id; ?> label ); ?>
layouts as $value => $layout ) : ?>
schemes = $args['schemes']; parent::__construct( $manager, $id, $args ); } /** * Enqueue control related scripts/styles. * * @since 1.0 */ public function enqueue() { wp_enqueue_style( 'customize-control-color-scheme' ); wp_enqueue_script( 'customize-control-color-scheme' ); } /** * Refresh the parameters passed to the JavaScript via JSON. * * @since 1.0 * @uses WP_Customize_Control::to_json() */ public function to_json() { parent::to_json(); $this->json['schemes'] = $this->schemes; } /** * Render the control's content. * * @since 1.0 */ public function render_content() { if ( empty( $this->schemes ) ) { return; } $name = '_customize-schemes-' . $this->id; ?> label ); ?>
schemes as $value => $scheme ) : ?>
socials = $args['socials']; parent::__construct( $manager, $id, $args ); } /** * Enqueue control related scripts/styles. * * @since 1.0 */ public function enqueue() { wp_enqueue_style( 'customize-control-social-buttons' ); wp_enqueue_script( 'customize-control-social-buttons' ); } /** * Refresh the parameters passed to the JavaScript via JSON. * * @since 1.0 * @uses WP_Customize_Control::to_json() */ public function to_json() { parent::to_json(); $this->json['socials'] = $this->socials; } /** * Render the control's content. * * @since 1.0 */ public function render_content() { if ( empty( $this->socials ) ) { return; } $name = '_customize-social-buttons-' . $this->id; ?> label ); ?>