| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | + | |
| 2 | 3 | /** |
| 3 | 4 | * |
| 4 | 5 | * |
| 5 | 6 | * @link https://catchplugins.com/plugins |
| @@ -17,29 +18,29 @@ | ||
| 17 | 18 | * @author Catch Plugins <info@catchplugins.com |
| 18 | 19 | */ |
| 19 | 20 | |
| 20 | 21 | |
| 21 | -class Catch_Breadcrumb_Shortcode { | |
| 22 | +class Catch_Breadcrumb_Shortcode | |
| 23 | +{ | |
| 22 | 24 | |
| 23 | - public function __construct() { | |
| 25 | + public function __construct() | |
| 26 | + { | |
| 24 | 27 | |
| 25 | - add_shortcode( 'catch-breadcrumb', array( $this, 'catch_breadcrumb_shortcode' ) ); | |
| 26 | - | |
| 28 | + add_shortcode('catch-breadcrumb', array($this, 'catch_breadcrumb_shortcode')); | |
| 27 | 29 | } |
| 28 | 30 | |
| 29 | - public function catch_display_breadcrumb() { | |
| 31 | + public function catch_display_breadcrumb() | |
| 32 | + { | |
| 30 | 33 | |
| 31 | - do_shortcode( '[catch-breadcrumb]' ); | |
| 32 | - | |
| 34 | + do_shortcode('[catch-breadcrumb]'); | |
| 33 | 35 | } |
| 34 | 36 | |
| 35 | - public function catch_breadcrumb_shortcode( $atts, $content ) { | |
| 37 | + public function catch_breadcrumb_shortcode($atts, $content) | |
| 38 | + { | |
| 36 | 39 | |
| 37 | - $catch_breadcrumb_public = new Catch_Breadcrumb_Public( CATCH_BREADCRUMB_BASENAME, CATCH_BREADCRUMB_VERSION ); | |
| 40 | + $catch_breadcrumb_public = new Catch_Breadcrumb_Public(CATCH_BREADCRUMB_BASENAME, CATCH_BREADCRUMB_VERSION); | |
| 38 | 41 | $breadcrumb = $catch_breadcrumb_public->build_breadcrumb(); |
| 39 | - echo wp_kses_post( $breadcrumb ); | |
| 40 | - | |
| 42 | + echo wp_kses_post($breadcrumb); | |
| 41 | 43 | } |
| 42 | - | |
| 43 | 44 | } |
| 44 | 45 | |
| 45 | 46 | new Catch_Breadcrumb_Shortcode(); |