| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/TyphoonInventorySearch/wp-content/plugins/angie/modules/navigation/ |
Upload File : |
<?php
namespace Angie\Modules\Navigation;
use Angie\Classes\Module_Base;
use Angie\Modules\Navigation\Components\Menu_Provider;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Module extends Module_Base {
/**
* Menu Provider controller
*
* @var \Angie\Modules\Navigation\Components\Menu_Provider
*/
public $menu_provider;
/**
* Get module name.
*
* @return string Module name.
*/
public function get_name(): string {
return 'navigation';
}
/**
* Constructor
*/
public function __construct() {
$this->init_rest_controllers();
}
/**
* Initialize controllers
*/
private function init_rest_controllers() {
$this->menu_provider = new Menu_Provider();
}
/**
* Check if module is active
*
* @return bool
*/
public static function is_active(): bool {
return current_user_can( 'use_angie' );
}
}