= 2 ) ? '

'. $object->name .'

' : ''; foreach ( $object->icons as $icon ) { echo ''; } } else { echo '

'. __( 'Error! Can not load json file.', 'cs-framework' ) .'

'; } } } do_action( 'cs_add_icons' ); die(); } add_action( 'wp_ajax_cs-get-icons', 'cs_get_icons' ); } /** * * Set icons for wp dialog * * @since 1.0.0 * @version 1.0.0 * */ if( ! function_exists( 'cs_set_icons' ) ) { function cs_set_icons() { echo '
'; echo '
'; echo '
'. __( 'Loading...', 'cs-framework' ) .'
'; echo '
'; } add_action( 'admin_footer', 'cs_set_icons' ); add_action( 'customize_controls_print_footer_scripts', 'cs_set_icons' ); }