' . $this->label . ''; // WPCS: XSS OK. } } //Custom control for category multiple select class Adventurous_Customize_Dropdown_Categories_Control extends WP_Customize_Control { public $type = 'dropdown-categories'; public $name; public $descripton; public function render_content() { $dropdown = wp_dropdown_categories( array( 'name' => $this->name, 'echo' => 0, 'hide_empty' => false, 'show_option_none' => false, 'hide_if_empty' => false, 'show_option_all' => __( 'All Categories', 'adventurous' ) ) ); $dropdown = str_replace('get_link(), $dropdown ); echo '

'. $this->description . '

'; printf( '', $this->label, $dropdown ); echo '

'. __( 'Hold down the Ctrl (windows) / Command (Mac) button to select multiple options.', 'adventurous' ) . '

'; } } //Custom control for important link class Adventurous_Important_Links extends WP_Customize_Control { public $type = 'important-links'; public function render_content() { //Add Theme instruction, Support Forum, Changelog, Donate link, Review, Facebook, Twitter, Google+, Pinterest links $important_links = array( 'theme_instructions' => array( 'link' => esc_url( 'https://catchthemes.com/theme-instructions/adventurous/' ), 'text' => __( 'Theme Instructions', 'adventurous' ), ), 'support' => array( 'link' => esc_url( 'https://catchthemes.com/support/' ), 'text' => __( 'Support', 'adventurous' ), ), 'changelog' => array( 'link' => esc_url( 'https://catchthemes.com/changelogs/adventurous-theme/' ), 'text' => __( 'Changelog', 'adventurous' ), ), 'donate' => array( 'link' => esc_url( 'https://catchthemes.com/donate/' ), 'text' => __( 'Donate Now', 'adventurous' ), ), 'review' => array( 'link' => esc_url( 'https://wordpress.org/support/view/theme-reviews/adventurous' ), 'text' => __( 'Review', 'adventurous' ), ), ); foreach ( $important_links as $important_link) { echo '

' . esc_attr( $important_link['text'] ) .'

'; } } } /** * Custom control for checkbox * This class adds a custom-checkbox. The value is stored in the hidden field. This is due to the fact that * our theme previously stored 1 and 0 strings as checkbox values */ class Adventurous_Customize_Checkbox extends WP_Customize_Control { public $type = 'adventurous_custom_checkbox'; public $name; public $descripton; public $settings; public $default; public function render_content() { $this->value(); $this->default; ?> description ) ) : ?> description ); ?>