PluginProbe
Powerkit – Supercharge your WordPress Site / 2.8.3
Powerkit – Supercharge your WordPress Site v2.8.3
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
← All changes | modules/inline-posts/class-powerkit-inline-posts.php +39 -37 2.3.12.8.3 View file →
@@ -5,51 +5,53 @@
5 5 * @package Powerkit
6 6 * @subpackage Modules
7 7 */
8 8
9 -/**
10 - * Init module
11 - */
12 -class Powerkit_Inline_Posts extends Powerkit_Module {
13 -
9 +if ( class_exists( 'Powerkit_Module' ) ) {
14 10 /**
15 - * Register module
11 + * Init module
16 12 */
17 - public function register() {
18 - $this->name = esc_html__( 'Inline Posts', 'powerkit' );
19 - $this->desc = esc_html__( 'Display related posts inline with other post content for ultra-high conversion rate and user engagement in multiple different layouts.', 'powerkit' );
20 - $this->slug = 'inline_posts';
21 - $this->type = 'default';
22 - $this->category = 'content';
23 - $this->priority = 120;
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' ) . '/content-presentation/inline-posts/',
30 - 'target' => '_blank',
31 - ),
32 - );
33 - }
13 + class Powerkit_Inline_Posts extends Powerkit_Module {
34 14
35 - /**
36 - * Initialize module
37 - */
38 - public function initialize() {
15 + /**
16 + * Register module
17 + */
18 + public function register() {
19 + $this->name = esc_html__( 'Inline Posts', 'powerkit' );
20 + $this->desc = esc_html__( 'Display related posts inline with other post content for ultra-high conversion rate and user engagement in multiple different layouts.', 'powerkit' );
21 + $this->slug = 'inline_posts';
22 + $this->type = 'default';
23 + $this->category = 'content';
24 + $this->priority = 120;
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/inline-posts/',
31 + 'target' => '_blank',
32 + ),
33 + );
34 + }
39 35
40 - /* Load the required dependencies for this module */
36 + /**
37 + * Initialize module
38 + */
39 + public function initialize() {
41 40
42 - // Helpers Functions for the module.
43 - require_once dirname( __FILE__ ) . '/helpers/class-powerkit-inline-posts-snippet.php';
41 + /* Load the required dependencies for this module */
44 42
45 - // The classes responsible for defining all actions.
46 - require_once dirname( __FILE__ ) . '/public/class-powerkit-inline-posts-shortcode.php';
43 + // Helpers Functions for the module.
44 + require_once dirname( __FILE__ ) . '/helpers/class-powerkit-inline-posts-snippet.php';
47 45
48 - // Admin and public area.
49 - require_once dirname( __FILE__ ) . '/public/class-powerkit-inline-posts-public.php';
46 + // The classes responsible for defining all actions.
47 + require_once dirname( __FILE__ ) . '/public/class-powerkit-inline-posts-shortcode.php';
50 48
51 - new Powerkit_Inline_Posts_Public( $this->slug );
49 + // Admin and public area.
50 + require_once dirname( __FILE__ ) . '/public/class-powerkit-inline-posts-public.php';
51 +
52 + new Powerkit_Inline_Posts_Public( $this->slug );
53 + }
52 54 }
55 +
56 + new Powerkit_Inline_Posts();
53 57 }
54 -
55 -new Powerkit_Inline_Posts();