| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly. |
| 4 |
} |
| 5 |
|
| 6 |
/** |
| 7 |
* Class Module. |
| 8 |
*/ |
| 9 |
class Easyel_Elements_Module extends Module_Base { |
| 10 |
|
| 11 |
/** |
| 12 |
* Module should load or not. |
| 13 |
* |
| 14 |
* @since 1.15.0 |
| 15 |
* @access public |
| 16 |
* |
| 17 |
* @return bool true|false. |
| 18 |
*/ |
| 19 |
public static function is_enable() { |
| 20 |
return true; |
| 21 |
} |
| 22 |
|
| 23 |
/** |
| 24 |
* Get Module Name. |
| 25 |
* |
| 26 |
* @since 1.15.0 |
| 27 |
* @access public |
| 28 |
* |
| 29 |
* @return string Module name. |
| 30 |
*/ |
| 31 |
public function get_name() { |
| 32 |
return 'navigation-menu'; |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* Get Widgets. |
| 37 |
* |
| 38 |
* @since 1.15.0 |
| 39 |
* @access public |
| 40 |
* |
| 41 |
* @return array Widgets. |
| 42 |
*/ |
| 43 |
public function get_widgets() { |
| 44 |
return [ |
| 45 |
'Navigation_Menu', |
| 46 |
]; |
| 47 |
} |
| 48 |
} |
| 49 |
|