| @@ -12,14 +12,14 @@ | ||
| 12 | 12 | * @version SVN: $id$ |
| 13 | 13 | * @link http://wordpress.org/extend/plugins/user-access-manager/ |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -use UserAccessManager\Controller\Backend\Administration\SettingsController; | |
| 16 | +use UserAccessManager\Controller\Backend\SettingsController; | |
| 17 | 17 | use UserAccessManager\Form\Form; |
| 18 | -use UserAccessManager\Form\Element\Input; | |
| 19 | -use UserAccessManager\Form\Element\Radio; | |
| 20 | -use UserAccessManager\Form\Element\Select; | |
| 21 | -use UserAccessManager\Form\Element\Textarea; | |
| 18 | +use UserAccessManager\Form\Input; | |
| 19 | +use UserAccessManager\Form\Radio; | |
| 20 | +use UserAccessManager\Form\Select; | |
| 21 | +use UserAccessManager\Form\Textarea; | |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @var SettingsController $controller |
| 25 | 25 | * @var string $currentGroupKey |
| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | if ($controller->hasUpdateMessage()) { |
| 29 | 29 | ?> |
| 30 | - <div class="notice notice-success"> | |
| 30 | + <div class="updated"> | |
| 31 | 31 | <p><strong><?php echo $controller->getUpdateMessage(); ?></strong></p> |
| 32 | 32 | </div> |
| 33 | 33 | <?php |
| 34 | 34 | } |
| @@ -33,9 +33,9 @@ | ||
| 33 | 33 | <?php |
| 34 | 34 | } |
| 35 | 35 | ?> |
| 36 | 36 | <div class="wrap"> |
| 37 | - <h1 class="wp-heading-inline"><?php echo TXT_UAM_SETTINGS; ?></h1> | |
| 37 | + <h2><?php echo TXT_UAM_SETTINGS; ?></h2> | |
| 38 | 38 | <div class="uam_sidebar"> |
| 39 | 39 | <?php include 'InfoBox.php'; ?> |
| 40 | 40 | </div> |
| 41 | 41 | <div class="uam_main"> |
| @@ -45,16 +45,16 @@ | ||
| 45 | 45 | <input type="hidden" name="uam_action" value="update_settings"/> |
| 46 | 46 | <?php |
| 47 | 47 | $currentSectionKey = $controller->getCurrentTabGroupSection(); |
| 48 | 48 | $groupForms = $controller->getCurrentGroupForms(); |
| 49 | - $form = $groupForms[$currentSectionKey] ?? reset($groupForms); | |
| 49 | + $form = isset($groupForms[$currentSectionKey]) ? $groupForms[$currentSectionKey] : reset($groupForms); | |
| 50 | 50 | $cssClass = ($currentGroupKey === 'post_types') ? " uam_settings_group_post_type $currentSectionKey" : ''; |
| 51 | 51 | $cssClass .= ($currentGroupKey === 'taxonomies') ? " uam_settings_group_taxonomies $currentSectionKey" : ''; |
| 52 | 52 | ?> |
| 53 | 53 | <h3><?php echo $controller->getText($currentSectionKey); ?></h3> |
| 54 | 54 | <p><?php echo $controller->getText($currentSectionKey, true); ?></p> |
| 55 | - <table id="uam_settings_group_<?php echo htmlspecialchars($currentSectionKey, ENT_QUOTES); ?>" | |
| 56 | - class="form-table<?php echo htmlspecialchars($cssClass, ENT_QUOTES); ?>"> | |
| 55 | + <table id="uam_settings_group_<?php echo $currentSectionKey; ?>" | |
| 56 | + class="form-table<?php echo $cssClass; ?>"> | |
| 57 | 57 | <tbody> |
| 58 | 58 | <?php |
| 59 | 59 | if ($form instanceof Form) { |
| 60 | 60 | $formElements = $form->getElements(); |
| @@ -86,9 +86,9 @@ | ||
| 86 | 86 | ?> |
| 87 | 87 | </tbody> |
| 88 | 88 | </table> |
| 89 | 89 | <div class="submit"> |
| 90 | - <input type="submit" class="button-primary" value="<?php echo TXT_UAM_UPDATE_SETTING; ?>"/> | |
| 90 | + <input type="submit" value="<?php echo TXT_UAM_UPDATE_SETTING; ?>"/> | |
| 91 | 91 | </div> |
| 92 | 92 | </form> |
| 93 | 93 | </div> |
| 94 | 94 | </div> |