Remove optiongroups table.

git-svn-id: https://develop.svn.wordpress.org/trunk@1596 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-09-04 22:09:21 +00:00
parent af93d0ec1a
commit 1536ef3d40
4 changed files with 2 additions and 110 deletions
+1 -26
View File
@@ -125,32 +125,7 @@ default:
}
?>
<?php
if ($non_was_selected) { // no group pre-selected, display opening page
?>
<div class="wrap">
<dl>
<?php
//iterate through the available option groups. output them as a definition list.
$option_groups = $wpdb->get_results("SELECT group_id, group_name, group_desc, group_longdesc FROM $wpdb->optiongroups ORDER BY group_id");
foreach ($option_groups as $option_group) {
echo(" <dt><a href=\"$this_file?option_group_id={$option_group->group_id}\" title=\"{$option_group->group_desc}\">{$option_group->group_name}</a></dt>\n");
$current_long_desc = $option_group->group_longdesc;
if ($current_long_desc == '') {
$current_long_desc = __('No help for this group of options.');
}
echo(" <dd>{$option_group->group_desc}: $current_long_desc</dd>\n");
} // end for each group
?>
<dt><a href="options-permalink.php"><?php _e('Permalinks') ?></a></dt>
<dd><?php _e('Permanent link configuration') ?></dd>
</dl>
</div>
<?php
} else { //there was a group selected.
include('options-head.php');
?>
<?php include('options-head.php'); ?>
<div class="wrap">
<h2><?php echo $current_desc; ?></h2>