array( 'link' => esc_url( 'https://catchthemes.com/theme-instructions/cleanportfolio/' ), 'text' => esc_html__( 'Theme Instructions', 'cleanportfolio' ), ), 'support' => array( 'link' => esc_url( 'https://catchthemes.com/support/' ), 'text' => esc_html__( 'Support', 'cleanportfolio' ), ), 'changelog' => array( 'link' => esc_url( 'https://catchthemes.com/changelogs/cleanportfolio-theme/' ), 'text' => esc_html__( 'Changelog', 'cleanportfolio' ), ), 'facebook' => array( 'link' => esc_url( 'https://www.facebook.com/catchthemes/' ), 'text' => esc_html__( 'Facebook', 'cleanportfolio' ), ), 'twitter' => array( 'link' => esc_url( 'https://twitter.com/catchthemes/' ), 'text' => esc_html__( 'Twitter', 'cleanportfolio' ), ), 'gplus' => array( 'link' => esc_url( 'https://plus.google.com/+Catchthemes/' ), 'text' => esc_html__( 'Google+', 'cleanportfolio' ), ), 'pinterest' => array( 'link' => esc_url( 'http://www.pinterest.com/catchthemes/' ), 'text' => esc_html__( 'Pinterest', 'cleanportfolio' ), ), ); foreach ( $important_links as $important_link) { echo '

' . $important_link['text'] .'

'; // WPCS: XSS OK. } } } //Custom control for dropdown category multiple select class CleanportfolioMultiCategoriesControl extends WP_Customize_Control { public $type = 'dropdown-categories'; public $name; 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' => esc_html__( 'All Categories', 'cleanportfolio' ) ) ); $dropdown = str_replace('get_link(), $dropdown ); printf( '', $this->label, $dropdown ); echo '

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

'; } } //Custom control for any note, use label as output description class CleanportfolioNoteControl extends WP_Customize_Control { public $type = 'description'; public function render_content() { echo '

' . $this->label . '

'; // WPCS: XSS OK. } } } add_action( 'customize_register', 'cleanportfolio_custom_controls', 1 );