applications[$appName]['option_sections']) > 0) { foreach ($oThis->applications[$appName]['option_sections'] as $option_section) { echo '
'; $sectcount++; $act = ''; echo "
" . $option_section['section_label'] . "
"; echo "

" . $option_section['section_description'] . "

"; echo "
    "; $default_value = ''; foreach ($option_section['fields'] as $key => $option_field) { if (is_array($option_field)) { $label = $option_field[0]; $field_type = $option_field[1]; if ($field_type == '') { $field_type = 'text'; } if (count($option_field) > 2) { $default_value = $option_field[2]; } } else { $label = $option_field; $field_type = 'text'; } echo "
  • "; switch ($field_type) { case "html": //$val = stripslashes(esc_attr(get_option($key))); // if ($val == '') { $val = $default_value; // } echo $val; break; case "text": $val = stripslashes(esc_attr(get_option($key))); if ($val == '') { $val = $default_value; } echo " "; break; case "textarea": $val = stripslashes(esc_attr(get_option($key))); if ($val == '') { $val = $default_value; } echo " "; break; case "select": $val = stripslashes(esc_attr(get_option($key))); if ($val == '') { $val = $default_value; } echo ""; break; case "checkbox": $op = get_option($key); $checked = ''; if ($op == 'on') { $checked = ' checked="checked" '; } else if ($op !== 'off') { if ($op == false or $op == '' or !empty($op)) { if ($default_value == true) { $checked = ' checked="checked" '; } } } echo ''; break; } if (isset($option_field[4]) and $option_field[4] !== '') { echo "
    NOTE: " . $option_field[4] . "
    "; } echo "
  • "; } echo "
"; } } ?>
Update Settings