';
foreach ( $options as $text_val => $val ) {
if ( is_numeric( $text_val ) && ( is_string( $val ) || is_numeric( $val ) ) ) {
$text_val = $val;
}
$text_val = __( $text_val, "smile" );
$checked = '';
if ( $value !== '' && in_array( $val, $values ) ) {
$checked = ' checked="checked"';
}
$output .= '';
$n++;
}
$output .= cpGetCheckboxJS($input_name);
return $output;
}
if( !function_exists( "cpGetCheckboxJS" ) ){
function cpGetCheckboxJS($input_name){
ob_start();
?>