PluginProbe
ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce / 1.3.13
ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce v1.3.13
1.17.9 1.17.8 1.17.7 1.17.6 1.17.5 1.17.4 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.3.0 1.3.1 1.3.11 1.3.12 1.3.13 1.3.14 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 All 143 releases
erp / includes / admin / views / tools / general.php

general.php in ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce 1.3.13, at includes/admin/views/tools/general.php

42 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1
2 <div class="postbox">
3 <h3><?php _e( 'Admin Menu', 'erp' ); ?></h3>
4
5 <div class="inside">
6 <p><?php _e( 'Remove default admin sidebar menus', 'erp' ); ?></p>
7
8 <form method="post" action="<?php echo admin_url( 'admin.php?page=erp-tools' ); ?>">
9 <?php
10 $menus = get_option( '_erp_admin_menu', array() );
11 $adminbar_menus = get_option( '_erp_adminbar_menu', array() );
12 ?>
13 <ul class="erp-list list-inline">
14 <li><label><input type="checkbox" name="menu[]" value="index.php" <?php checked( in_array( 'index.php', $menus), true ); ?>><?php _e( 'Dashboard', 'erp' ); ?></label></li>
15 <li><label><input type="checkbox" name="menu[]" value="edit.php" <?php checked( in_array( 'edit.php', $menus), true ); ?>><?php _e( 'Posts', 'erp' ); ?></label></li>
16 <li><label><input type="checkbox" name="menu[]" value="upload.php" <?php checked( in_array( 'upload.php', $menus), true ); ?>><?php _e( 'Media', 'erp' ); ?></label></li>
17 <li><label><input type="checkbox" name="menu[]" value="edit.php?post_type=page" <?php checked( in_array( 'edit.php?post_type=page', $menus), true ); ?>><?php _e( 'Pages', 'erp' ); ?></label></li>
18 <li><label><input type="checkbox" name="menu[]" value="edit-comments.php" <?php checked( in_array( 'edit-comments.php', $menus), true ); ?>><?php _e( 'Comments', 'erp' ); ?></label></li>
19 <li><label><input type="checkbox" name="menu[]" value="themes.php" <?php checked( in_array( 'themes.php', $menus), true ); ?>><?php _e( 'Themes', 'erp' ); ?></label></li>
20 <li><label><input type="checkbox" name="menu[]" value="plugins.php" <?php checked( in_array( 'plugins.php', $menus), true ); ?>><?php _e( 'Plugins', 'erp' ); ?></label></li>
21 <li><label><input type="checkbox" name="menu[]" value="users.php" <?php checked( in_array( 'users.php', $menus), true ); ?>><?php _e( 'Users', 'erp' ); ?></label></li>
22 <li><label><input type="checkbox" name="menu[]" value="tools.php" <?php checked( in_array( 'tools.php', $menus), true ); ?>><?php _e( 'Tools', 'erp' ); ?></label></li>
23 <li><label><input type="checkbox" name="menu[]" value="options-general.php" <?php checked( in_array( 'options-general.php', $menus), true ); ?>><?php _e( 'Settings', 'erp' ); ?></label></li>
24 </ul>
25
26 <h4><?php _e( 'Admin Bar Menu', 'erp' ); ?></h4>
27 <ul class="erp-list list-inline">
28 <li><label><input type="checkbox" name="admin_menu[]" value="wp-logo" <?php checked( in_array( 'wp-logo', $adminbar_menus), true ); ?>><?php _e( 'WordPress Logo', 'erp' ); ?></label></li>
29 <li><label><input type="checkbox" name="admin_menu[]" value="site-name" <?php checked( in_array( 'site-name', $adminbar_menus), true ); ?>><?php _e( 'Site Name', 'erp' ); ?></label></li>
30 <li><label><input type="checkbox" name="admin_menu[]" value="updates" <?php checked( in_array( 'updates', $adminbar_menus), true ); ?>><?php _e( 'Updates', 'erp' ); ?></label></li>
31 <li><label><input type="checkbox" name="admin_menu[]" value="comments" <?php checked( in_array( 'comments', $adminbar_menus), true ); ?>><?php _e( 'Comments', 'erp' ); ?></label></li>
32 <li><label><input type="checkbox" name="admin_menu[]" value="new-content" <?php checked( in_array( 'new-content', $adminbar_menus), true ); ?>><?php _e( 'New Posts', 'erp' ); ?></label></li>
33 </ul>
34
35 <?php wp_nonce_field( 'erp-remove-menu-nonce' ); ?>
36 <?php submit_button( __( 'Save Changes', 'erp' ), 'primary', 'erp_admin_menu' ); ?>
37 </form>
38 </div><!-- .inside -->
39 </div><!-- .postbox -->
40
41 <?php do_action( 'erp_tools_page' ); ?>
42