PluginProbe ʕ •ᴥ•ʔ
Nested Pages / 3.0.8
Nested Pages v3.0.8
3.3.1 3.2.15 3.2.14 3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.11 3.2.12 3.2.13 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.3.0 1.3.1 1.3.10 1.3.11 1.3.12 1.3.13 1.3.14 1.3.15 1.3.2 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.3.1 1.6.3.2 1.6.4 1.6.5 1.6.5.1 1.6.5.2 1.6.6 1.6.7 1.6.8 1.7.0 1.7.1 2.0.1 2.0.2 2.0.3 2.0.4 3.0.1 3.0.10 3.0.11 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 3.1.19 3.1.2 3.1.20 3.1.21 3.1.22 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7
wp-nested-pages / app / Views / settings / settings-general.php
wp-nested-pages / app / Views / settings Last commit date
settings-general.php 8 years ago settings-posttypes.php 8 years ago settings.php 9 years ago
settings-general.php
91 lines
1 <?php
2 $allowsorting = get_option('nestedpages_allowsorting', array());
3 if ( $allowsorting == "" ) $allowsorting = array();
4 $sync_status = ( $this->settings->menuSyncEnabled() ) ? __('Currently Enabled', 'wp-nested-pages') : __('Currently Disabled', 'wp-nested-pages');
5 settings_fields( 'nestedpages-general' );
6 ?>
7 <table class="form-table">
8 <tr valign="top">
9 <th scope="row"><?php _e('Nested Pages Version', 'wp-nested-pages'); ?></th>
10 <td><strong><?php echo get_option('nestedpages_version'); ?></strong></td>
11 </tr>
12 <?php if ( !$this->settings->menusDisabled() ) : ?>
13 <tr valign="top">
14 <th scope="row"><?php _e('Menu Name', 'wp-nested-pages'); ?></th>
15 <td>
16 <input type="text" name="nestedpages_menu" id="nestedpages_menu" value="<?php echo $this->menu->name; ?>">
17 <p><em><?php _e('Important: Once the menu name has changed, theme files should be updated to reference the new name.', 'wp-nested-pages'); ?></em></p>
18 </td>
19 </tr>
20 <?php endif; ?>
21 <tr valign="top">
22 <th scope="row"><?php _e('Display Options', 'wp-nested-pages'); ?></th>
23 <td>
24 <label>
25 <input type="checkbox" name="nestedpages_ui[datepicker]" value="true" <?php if ( $this->settings->datepickerEnabled() ) echo 'checked'; ?> />
26 <?php _e('Enable Date Picker in Quick Edit', 'wp-nested-pages'); ?>
27 </label>
28 </td>
29 </tr>
30 <tr valign="top">
31 <th scope="row"><?php _e('Menu Sync', 'wp-nested-pages'); ?></th>
32 <td>
33 <?php if ( !$this->settings->menusDisabled() ) : ?>
34 <p data-menu-enabled-option data-menu-hide-checkbox>
35 <label>
36 <input type="checkbox" name="nestedpages_ui[hide_menu_sync]" value="true" <?php if ( $this->settings->hideMenuSync() ) echo 'checked'; ?> />
37 <?php _e('Hide Menu Sync Checkbox', 'wp-nested-pages'); ?> (<?php echo esc_html($sync_status); ?>)
38 </label>
39 </p>
40 <?php endif; ?>
41 <p data-menu-enabled-option data-menu-disable-auto>
42 <label>
43 <input type="checkbox" name="nestedpages_ui[manual_menu_sync]" value="true" <?php if ( $this->settings->autoMenuDisabled() ) echo 'checked'; ?> data-menu-disable-auto-checkbox />
44 <?php _e('Manually sync menu.', 'wp-nested-pages'); ?>
45 </label>
46 </p>
47 <p>
48 <label>
49 <input type="checkbox" name="nestedpages_ui[manual_page_order_sync]" value="true" <?php if ( $this->settings->autoPageOrderDisabled() ) echo 'checked'; ?> />
50 <?php _e('Manually sync page order.', 'wp-nested-pages'); ?>
51 </label>
52 </p>
53 <p>
54 <label>
55 <input type="checkbox" name="nestedpages_disable_menu" value="true" <?php if ( $this->settings->menusDisabled() ) echo 'checked'; ?> data-disable-menu-checkbox />
56 <?php _e('Disable menu sync completely', 'wp-nested-pages'); ?>
57 </label>
58 </p>
59 </td>
60 </tr>
61 <tr valign="top">
62 <th scope="row"><?php _e('Allow Page Sorting', 'wp-nested-pages'); ?></th>
63 <td>
64 <?php foreach ( $this->user_repo->allRoles() as $role ) : ?>
65 <label>
66 <input type="checkbox" name="nestedpages_allowsorting[]" value="<?php echo $role['name']; ?>" <?php if ( in_array($role['name'], $allowsorting) ) echo 'checked'; ?> >
67 <?php echo esc_html($role['label']); ?>
68 </label>
69 <br />
70 <?php endforeach; ?>
71 <input type="hidden" name="nestedpages_menusync" value="<?php echo get_option('nestedpages_menusync'); ?>">
72 <p><em><?php _e('Admins always have sorting ability.', 'wp-nested-pages'); ?></em></p>
73 </td>
74 </tr>
75 <tr valign="top">
76 <th scope="row"><?php _e('Reset Plugin Settings', 'wp-nested-pages'); ?></th>
77 <td>
78 <div class="nestedpages-reset-settings">
79 <p>
80 <?php _e('Warning: Resetting plugin settings will remove all menu settings, post type customizations, role customizations and any other Nested Pages settings. These will be replaced with the default settings. This action cannot be undone.', 'wp-nested-pages'); ?>
81 </p>
82 <p>
83 <button class="np-btn np-btn-trash" data-nestedpages-reset-settings><?php _e('Reset Nested Pages Settings', 'wp-nested-pages'); ?></button>
84 </p>
85 </div>
86 <div class="nestedpages-reset-settings-complete" style="display:none;">
87 <p><?php _e('Settings have been successfully reset.', 'wp-nested-pages'); ?></p>
88 </div>
89 </td>
90 </tr>
91 </table>