WP init
This commit is contained in:
+1323
File diff suppressed because it is too large
Load Diff
+65
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* HFE Infocard Module.
|
||||
*
|
||||
* @package header-footer-elementor
|
||||
*/
|
||||
|
||||
namespace HFE\WidgetsManager\Widgets\Infocard;
|
||||
|
||||
use HFE\WidgetsManager\Base\Module_Base;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
/**
|
||||
* Class Module.
|
||||
*/
|
||||
class Module extends Module_Base {
|
||||
|
||||
/**
|
||||
* Module should load or not.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @access public
|
||||
*
|
||||
* @return bool true|false.
|
||||
*/
|
||||
public static function is_enable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Module Name.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @access public
|
||||
*
|
||||
* @return string Module name.
|
||||
*/
|
||||
public function get_name() {
|
||||
return 'infocard';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Widgets.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @access public
|
||||
*
|
||||
* @return array Widgets.
|
||||
*/
|
||||
public function get_widgets() {
|
||||
return array(
|
||||
'Infocard',
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function __construct() { // phpcs:ignore Generic.CodeAnalysis.UselessOverridingMethod.Found
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user