| 1 |
<?php |
| 2 |
/** |
| 3 |
* About Widget |
| 4 |
* |
| 5 |
* @package Powerkit |
| 6 |
* @subpackage Modules |
| 7 |
*/ |
| 8 |
|
| 9 |
/** |
| 10 |
* Init module |
| 11 |
*/ |
| 12 |
class Powerkit_Widget_About extends Powerkit_Module { |
| 13 |
|
| 14 |
/** |
| 15 |
* Register module |
| 16 |
*/ |
| 17 |
public function register() { |
| 18 |
$this->name = esc_html__( 'About Widget', 'powerkit' ); |
| 19 |
$this->desc = esc_html__( 'Display Image, Text and Social Accounts.', 'powerkit' ); |
| 20 |
$this->slug = 'widget_about'; |
| 21 |
$this->type = 'default'; |
| 22 |
$this->category = 'widget'; |
| 23 |
$this->priority = 155; |
| 24 |
$this->public = true; |
| 25 |
$this->enabled = true; |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* Initialize module |
| 30 |
*/ |
| 31 |
public function initialize() { |
| 32 |
// Helpers Functions for the module. |
| 33 |
require_once dirname( __FILE__ ) . '/helpers/helper-powerkit-about.php'; |
| 34 |
|
| 35 |
// The classes responsible for defining all actions. |
| 36 |
require_once dirname( __FILE__ ) . '/public/class-powerkit-widget-about-init.php'; |
| 37 |
|
| 38 |
// Admin and public area. |
| 39 |
require_once dirname( __FILE__ ) . '/public/class-powerkit-widget-about-public.php'; |
| 40 |
|
| 41 |
new Powerkit_Widget_About_Public( $this->slug ); |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
new Powerkit_Widget_About(); |
| 46 |
|