PluginProbe
Powerkit – Supercharge your WordPress Site / 2.8.4
Powerkit – Supercharge your WordPress Site v2.8.4
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 / basic-elements / class-powerkit-basic-elements.php

class-powerkit-basic-elements.php in Powerkit – Supercharge your WordPress Site 2.8.4, at modules/basic-elements/class-powerkit-basic-elements.php

61 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 * Basic Elements
4 *
5 * @package Powerkit
6 * @subpackage Modules
7 */
8
9 if ( class_exists( 'Powerkit_Module' ) ) {
10 /**
11 * Init module
12 */
13 class Powerkit_Basic_Elements extends Powerkit_Module {
14
15 /**
16 * Register module
17 */
18 public function register() {
19 $this->name = esc_html__( 'Basic Elements', 'powerkit' );
20 $this->desc = esc_html__( 'Basic shortcodes with a shortcode generator right in the WordPress editor.', 'powerkit' );
21 $this->slug = 'basic_elements';
22 $this->type = 'default';
23 $this->category = 'basic';
24 $this->priority = 80;
25 $this->public = true;
26 $this->enabled = true;
27
28 $this->links = array(
29 array(
30 'name' => esc_html__( 'View documentation', 'powerkit' ),
31 'url' => powerkit_get_setting( 'documentation' ) . '/content-presentation/basic-elements/',
32 'target' => '_blank',
33 ),
34 );
35 }
36
37 /**
38 * Initialize module
39 */
40 public function initialize() {
41
42 /* Load the required dependencies for this module */
43
44 // Helpers Functions for the module.
45 require_once dirname( __FILE__ ) . '/helpers/helper-basic-elements.php';
46
47 // Admin and public area.
48 require_once dirname( __FILE__ ) . '/admin/class-powerkit-basic-elements-admin.php';
49 require_once dirname( __FILE__ ) . '/public/class-powerkit-basic-elements-public.php';
50
51 // Include default templates.
52 powerkit_basic_shortcodes_autoload( dirname( __FILE__ ) . '/templates' );
53
54 new Powerkit_Basic_Elements_Admin( $this->slug );
55 new Powerkit_Basic_Elements_Public( $this->slug );
56 }
57 }
58
59 new Powerkit_Basic_Elements();
60 }
61