PluginProbe
Catch Breadcrumb / trunk
Catch Breadcrumb vtrunk
trunk 1.0.0 1.0.1 1.0.2 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6 1.7 1.8 1.9 2.0 2.1 2.2 All 29 releases
← All changes | includes/shortcodes.php +13 -12 2.0trunk View file →
@@ -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();