' . $title . ''; $output .= '
| '; $output .= ' | ';
// Print metaboxes here. Develop different cases for each type of field.
if ( 'text' == $field_type ) {
$output .= cpotheme_form_text( $field_name, $field_value, $current_meta );
} elseif ( 'select' == $field_type ) {
$output .= cpotheme_form_select( $field_name, $field_value, $current_meta['option'], $current_meta );
} elseif ( 'yesno' == $field_type ) {
$output .= cpotheme_form_yesno( $field_name, $field_value, $current_meta );
} elseif ( 'imagelist' == $field_type ) {
$output .= cpotheme_form_imagelist( $field_name, $field_value, $current_meta['option'], $current_meta );
} elseif ( 'iconlist' == $field_type ) {
$output .= cpotheme_form_iconlist( $field_name, $field_value, $current_meta );
}
//Separators
if ( 'separator' != $field_type && 'divider' != $field_type ) {
$output .= ' ' . $field_desc . ''; $output .= ' | ';
$output .= '
|---|