PluginProbe
Powerkit – Supercharge your WordPress Site / 2.4.6
Powerkit – Supercharge your WordPress Site v2.4.6
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/basic-elements/public/class-powerkit-basic-elements-public.php +4 -8 3.1.12.4.6 View file →
@@ -8,13 +8,8 @@
8 8 * @package Powerkit
9 9 * @subpackage Modules/public
10 10 */
11 11
12 -// Exit if accessed directly.
13 -if ( ! defined( 'ABSPATH' ) ) {
14 - exit;
15 -}
16 -
17 12 /**
18 13 * The public-facing functionality of the module.
19 14 */
20 15 class Powerkit_Basic_Elements_Public extends Powerkit_Module_Public {
@@ -22,10 +17,11 @@
22 17 /**
23 18 * Initialize
24 19 */
25 20 public function initialize() {
26 - add_action( 'init', array( $this, 'register_shortcodes' ) );
27 21 add_action( 'init', array( $this, 'register_custom_shortcodes' ) );
22 +
23 + $this->register_shortcodes();
28 24 }
29 25
30 26 /**
31 27 * Shortcodes custom.
@@ -49,9 +45,9 @@
49 45 *
50 46 * @since 1.0.0
51 47 * @access private
52 48 */
53 - public function register_shortcodes() {
49 + private function register_shortcodes() {
54 50
55 51 // Get all shortcodes.
56 52 $sections = apply_filters( 'powerkit_basic_shortcodes_ui_args', array() );
57 53
@@ -79,9 +75,9 @@
79 75 * @param string $content Shorcode Content.
80 76 * @param string $shortcode The name of the shortcode.
81 77 * @return string Shortcode result HTML.
82 78 */
83 - public function shortcode_display( $atts, $content = false, $shortcode = '' ) {
79 + public function shortcode_display( $atts, $content = false, $shortcode ) {
84 80 // Get all shortcodes.
85 81 $sections = apply_filters( 'powerkit_basic_shortcodes_ui_args', array() );
86 82
87 83 // Get Default Attrs.