<form method="post" action=""> <h3><?php _e(gffd_glossary('plugin_name')); ?> </h3> <table class="form-table"> <?php // Get the settings to interate through. ?> <?php $gffd_admin_settings = gffd_admin_settings(); ?> <?php // There should at lesat be 2 settings. ?> <?php foreach ($gffd_admin_settings as $setting_key => $setting) { ?> <tr valign="top"> <th scope="row"> <?php if (!isset($setting['checkbox_label']) || $setting['checkbox_label'] != true) { ?> <label for="<?php echo $setting_key; ?> "> <?php _e($setting['label']); ?> </label>
function gffd_get_gf_admin_setting($setting_id) { $settings = gffd_admin_settings(); return $settings[$setting_id]; }