PluginProbe
Powerkit – Supercharge your WordPress Site / 2.2.9
Powerkit – Supercharge your WordPress Site v2.2.9
3.1.1 3.1.0 3.0.9 3.0.8 trunk 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 All 87 releases
powerkit / modules / featured-categories / class-powerkit-featured-categories.php

class-powerkit-featured-categories.php in Powerkit – Supercharge your WordPress Site 2.2.9, at modules/featured-categories/class-powerkit-featured-categories.php

59 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Featured Categories
4 *
5 * @package Powerkit
6 * @subpackage Modules
7 */
8
9 /**
10 * Init module
11 */
12 class Powerkit_Featured_Categories extends Powerkit_Module {
13
14 /**
15 * Register module
16 */
17 public function register() {
18 $this->name = esc_html__( 'Featured Categories', 'powerkit' );
19 $this->desc = esc_html__( 'Display Featured Categories.', 'powerkit' );
20 $this->slug = 'featured_categories';
21 $this->type = 'default';
22 $this->category = 'content';
23 $this->priority = 150;
24 $this->public = true;
25 $this->enabled = true;
26 $this->links = array(
27 array(
28 'name' => esc_html__( 'View documentation', 'powerkit' ),
29 'url' => powerkit_get_setting( 'documentation' ) . '/featured-categories/',
30 'target' => '_blank',
31 ),
32 );
33 }
34
35 /**
36 * Initialize module
37 */
38 public function initialize() {
39 // Helpers Functions for the module.
40 require_once dirname( __FILE__ ) . '/helpers/helper-powerkit-featured-categories.php';
41
42 // The classes responsible for defining all actions.
43 require_once dirname( __FILE__ ) . '/public/class-powerkit-featured-categories-widget.php';
44
45 if ( function_exists( 'register_block_type' ) ) {
46 require_once dirname( __FILE__ ) . '/public/class-powerkit-featured-categories-block.php';
47 }
48
49 // Admin and public area.
50 require_once dirname( __FILE__ ) . '/admin/class-powerkit-featured-categories-admin.php';
51 require_once dirname( __FILE__ ) . '/public/class-powerkit-featured-categories-public.php';
52
53 new Powerkit_Featured_Categories_Admin( $this->slug );
54 new Powerkit_Featured_Categories_Public( $this->slug );
55 }
56 }
57
58 new Powerkit_Featured_Categories();
59