function circleflip_optionsframework_fields() { $optionsframework_settings = get_option('optionsframework'); // Gets the unique option id if (isset($optionsframework_settings['id'])) { $option_name = $optionsframework_settings['id']; } else { $option_name = 'options_framework_theme'; } $options = circleflip_optionsframework_options(); $menu = ''; foreach ($options as $value) { $val = ''; $output = circleflip_optionsframework_options_interface($value, $option_name); echo $output; } echo '</div>'; }
/** * Format Configuration Array. * * Get an array of all default values as set in * options.php. The 'id','std' and 'type' keys need * to be defined in the configuration array. In the * event that these keys are not present the option * will not be included in this function's output. * * @return array Rey-keyed options configuration array. * * @access private */ function circleflip_of_get_default_values() { $output = array(); $config = circleflip_optionsframework_options(); foreach ((array) $config as $option) { if (!isset($option['id'])) { continue; } if (!isset($option['std'])) { continue; } if (!isset($option['type'])) { continue; } if (has_filter('circleflip_of_sanitize_' . $option['type'])) { $output[$option['id']] = apply_filters('circleflip_of_sanitize_' . $option['type'], $option['std'], $option); } } return $output; }