class-wider-admin-menu.php
| 1 | <?php |
| 2 | |
| 3 | namespace ASENHA\Classes; |
| 4 | |
| 5 | /** |
| 6 | * Class for Wider Admin Menu module |
| 7 | * |
| 8 | * @since 6.9.5 |
| 9 | */ |
| 10 | class Wider_Admin_Menu { |
| 11 | |
| 12 | /** |
| 13 | * Set custom admin menu width |
| 14 | * |
| 15 | * @since 5.2.0 |
| 16 | */ |
| 17 | public function set_custom_menu_width() { |
| 18 | |
| 19 | $options = get_option( ASENHA_SLUG_U, array() ); |
| 20 | $custom_width = $options['admin_menu_width']; |
| 21 | |
| 22 | $wp_version = get_bloginfo( 'version' ); |
| 23 | if ( version_compare( $wp_version, '5', '>' ) ) { |
| 24 | require_once ASENHA_PATH . 'includes/admin-menu-width/wp-v5-greater.php'; |
| 25 | } elseif ( version_compare( $wp_version, '4', '>=' ) ) { |
| 26 | require_once ASENHA_PATH . 'includes/admin-menu-width/wp-v4-greater.php'; |
| 27 | } else {} |
| 28 | |
| 29 | } |
| 30 | |
| 31 | } |