'_customize-dropdown-categories-' . $this->id, 'echo' => 0, 'show_option_none' => esc_html__( '— Select Category —', 'capacious' ), 'option_none_value' => '0', 'selected' => $this->value(), ) ); // Hackily add in the data link parameter. $dropdown = str_replace( 'get_link(), $dropdown ); printf( '', $this->label, $this->description, $dropdown ); } } /** * Class to create a custom editor field in customizer section * * @capacious public * @since 1.0.0 */ class Capacious_Text_Editor_Custom_Control extends WP_Customize_Control { /** * The type of customize control being rendered. * * @since 1.0.0 * @capacious public * @var string */ public $type = 'capacious-editor'; /** * Displays the control content. * * @since 1.0.0 * @capacious public * @return void */ public function render_content() { ?> $this->id, 'teeny' => true, ); wp_editor( esc_textarea( $this->value() ), $this->id, $settings ); do_action('admin_print_footer_scripts'); } } /** * A class to create a list of icons in customizer field * * @since 1.0.0 * @capacious */ class Capacious_Customize_Icons_Control extends WP_Customize_Control { /** * The type of customize control being rendered. * * @since 1.0.0 * @access public * @var string */ public $type = 'capacious_icons'; /** * Displays the control content. * * @since 1.0.0 * @access public * @return void */ public function render_content() { $saved_icon_value = $this->value(); ?>