>', 'blackwell'); ?>
'; //AJAX Upload ?> '."\n".'
'."\n"; $output .= '
' . "\n"; $output .= '

' . $value['name'] . '

' . "\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 .= '
    ' . "\n"; } } $output .= '
    '; return array($output, $menu); } /** * OptionsFramework Uploader - blackwell_optionsframework_uploader_function */ function blackwell_optionsframework_uploader_function($id, $std, $mod) { //$uploader .= ''; //$uploader .= ''; $uploader = ''; $upload = blackwell_get_option($id); if ($mod != 'min') { $val = $std; if (blackwell_get_option($id) != "") { $val = blackwell_get_option($id); } $uploader .= ''; } $uploader .= '
    Upload Image'; if (!empty($upload)) { $hide = ''; } else { $hide = 'hide'; } $uploader .= 'Remove'; $uploader .='
    ' . "\n"; $uploader .= '
    ' . "\n"; $findme = 'wp-content/uploads'; $imgvideocheck = strpos($upload, $findme); if ((!empty($upload)) && ($imgvideocheck === true)) { $uploader .= ''; $uploader .= ''; $uploader .= ''; } $uploader .= '
    ' . "\n"; return $uploader; } ?>