/** * Gets options * * Return all paf options array * If $option_id is set, the function will that option current value * If not find it will return it's default value if it's defined * * @param string $option_id * @return mixed The paf option value */ function paf($option_id = '') { $paf = get_option('paf', array()); if (strlen($option_id)) { if (isset($paf[$option_id])) { return $paf[$option_id]; } else { $def = paf_d($option_id); return K::get_var('default', $def); } } else { return $paf; } }
function paf($option_id = '') { global $skelet_path; $paf = get_option($skelet_path["option"], array()); if (strlen($option_id)) { if (isset($paf[$option_id])) { return $paf[$option_id]; } else { $def = paf_d($option_id); return K::get_var('default', $def); } } else { return $paf; } }