' . $title . ''; $output .= '
| '; $output .= ' | ';
// Print metaboxes here. Develop different cases for each type of field.
if ( $field_type == 'text' ) {
$output .= antreas_form_text( $field_name, $field_value, $current_meta );
} elseif ( $field_type == 'textarea' ) {
$output .= antreas_form_textarea( $field_name, $field_value, $current_meta );
} elseif ( $field_type == 'select' ) {
$output .= antreas_form_select( $field_name, $field_value, $current_meta['option'], $current_meta );
} elseif ( $field_type == 'checkbox' ) {
$output .= antreas_form_checkbox( $field_name, $field_value, $current_meta );
} elseif ( $field_type == 'yesno' ) {
$output .= antreas_form_yesno( $field_name, $field_value, $current_meta );
} elseif ( $field_type == 'color' ) {
$output .= antreas_form_color( $field_name, $field_value );
} elseif ( $field_type == 'imagelist' ) {
$output .= antreas_form_imagelist( $field_name, $field_value, $current_meta['option'], $current_meta );
} elseif ( $field_type == 'upload' ) {
$output .= antreas_form_upload( $field_name, $field_value, null, $post );
} elseif ( $field_type == 'date' ) {
$output .= antreas_form_date( $field_name, $field_value, null );
}
//Separators
if ( $field_type != 'separator' && $field_type != 'divider' ) {
$output .= ' ' . $field_desc . ''; $output .= ' | ';
$output .= '
|---|