PluginProbe
Powerkit – Supercharge your WordPress Site / 2.9.0
Powerkit – Supercharge your WordPress Site v2.9.0
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 / content-formatting / class-powerkit-content-formatting.php

class-powerkit-content-formatting.php in Powerkit – Supercharge your WordPress Site 2.9.0, at modules/content-formatting/class-powerkit-content-formatting.php

54 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Content Formatting
4 *
5 * @package Powerkit
6 * @subpackage Modules
7 */
8
9 if ( class_exists( 'Powerkit_Module' ) ) {
10 /**
11 * Init module
12 */
13 class Powerkit_Content_Formatting extends Powerkit_Module {
14
15 /**
16 * Register module
17 */
18 public function register() {
19 $this->name = esc_html__( 'Content Formatting', 'powerkit' );
20 $this->desc = esc_html__( 'A few nice extra content formatting features: numbered headings, styled lists, badges, drop-caps, and content blocks.', 'powerkit' );
21 $this->slug = 'content_formatting';
22 $this->type = 'default';
23 $this->category = 'content';
24 $this->priority = 140;
25 $this->public = true;
26 $this->enabled = true;
27 $this->links = array(
28 array(
29 'name' => esc_html__( 'View documentation', 'powerkit' ),
30 'url' => powerkit_get_setting( 'documentation' ) . '/content-presentation/content-formatting/',
31 'target' => '_blank',
32 ),
33 );
34 }
35
36 /**
37 * Initialize module
38 */
39 public function initialize() {
40
41 /* Load the required dependencies for this module */
42
43 // Admin and public area.
44 require_once dirname( __FILE__ ) . '/admin/class-powerkit-content-formatting-admin.php';
45 require_once dirname( __FILE__ ) . '/public/class-powerkit-content-formatting-public.php';
46
47 new Powerkit_Content_Formatting_Admin( $this->slug );
48 new Powerkit_Content_Formatting_Public( $this->slug );
49 }
50 }
51
52 new Powerkit_Content_Formatting();
53 }
54