Example #1
0
function ale_get_option($name, $default = false)
{
    $name = 'ale_' . $name;
    if (false === $default) {
        $options = aletheme_get_options();
        foreach ($options as $option) {
            if (isset($option['id']) && $option['id'] == $name) {
                $default = isset($option['std']) ? $option['std'] : false;
                break;
            }
        }
    }
    return of_get_option($name, $default);
}
Example #2
0
/**
 * Defines an array of options that will be used to generate the settings page and be saved in the database.
 * When creating the "id" fields, make sure to use all lowercase and no spaces.
 *  
 */
function optionsframework_options()
{
    return aletheme_get_options();
}