field['options'] ) ) ? $this->field['options'] : array();
echo $this->field_before();
if ( ! empty( $palette ) ) {
echo '
';
foreach ( $palette as $key => $colors ) {
$active = ( $key === $this->value ) ? ' csf--active' : '';
$checked = ( $key === $this->value ) ? ' checked' : '';
echo '
';
if ( ! empty( $colors ) ) {
foreach ( $colors as $color ) {
echo '';
}
}
echo 'field_attributes() . esc_attr( $checked ) .'/>';
echo '
';
}
echo '
';
}
echo $this->field_after();
}
}
}