' . "\n";
$output .= '
' . "\n";
$output .= '
' . "\n" . '
' . "\n";
}
//End Heading
$select_value = '';
switch ($value['type']) {
case 'text':
$val = $value['std'];
$std = blackwell_get_option($value['id']);
if ($std != "") {
$val = $std;
}
$output .= '';
break;
case 'textarea':
$cols = '8';
$ta_value = '';
if (isset($value['std'])) {
$ta_value = $value['std'];
if (isset($value['options'])) {
$ta_options = $value['options'];
if (isset($ta_options['cols'])) {
$cols = $ta_options['cols'];
} else {
$cols = '8';
}
}
}
$std = blackwell_get_option($value['id']);
if ($std != "") {
$ta_value = stripslashes($std);
}
$output .= '';
break;
case "upload":
$value['std'] = '';
if (isset($value['std'])) {
$output .= blackwell_optionsframework_uploader_function($value['id'], $value['std'], null);
}
break;
case "upload_min":
$output .= blackwell_optionsframework_uploader_function($value['id'], $value['std'], 'min');
break;
case "heading":
if ($counter >= 2) {
$output .= '
' . "\n";
}
$jquery_click_hook = preg_replace("/[^A-Za-z0-9]/", "", strtolower($value['name']));
$jquery_click_hook = "of-option-" . $jquery_click_hook;
$menu .= '
' . $value['name'] . '';
$output .= '
' . $value['name'] . '
' . "\n";
break;
}
// if TYPE is an array, formatted into smaller inputs... ie smaller values
if (is_array($value['type'])) {
foreach ($value['type'] as $array) {
$id = $array['id'];
$std = $array['std'];
$saved_std = blackwell_get_option($id);
if ($saved_std != $std) {
$std = $saved_std;
}
$meta = $array['meta'];
if ($array['type'] == 'text') { // Only text at this point
$output .= '';
$output .= '' . $meta . '';
}
}
}
if ($value['type'] != "heading") {
if ($value['type'] != "checkbox") {
$output .= '
';
}
if (!isset($value['desc'])) {
$explain_value = '';
} else {
$explain_value = $value['desc'];
}
$output .= '' . $explain_value . '
' . "\n";
$output .= '