PluginProbe
Catch Breadcrumb / 2.2
Catch Breadcrumb v2.2
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
catch-breadcrumb / includes / shortcodes.php

shortcodes.php in Catch Breadcrumb 2.2, at includes/shortcodes.php

46 lines 868 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 *
4 *
5 * @link https://catchplugins.com/plugins
6 * @since 1.0.0
7 *
8 * @package breadcrumb
9 * @subpackage Breadcrumb/includes
10 */
11
12 /**
13 *
14 *
15 * @package Breadcrumb
16 * @subpackage Breadcrumb/includes
17 * @author Catch Plugins <info@catchplugins.com
18 */
19
20
21 class Catch_Breadcrumb_Shortcode {
22
23 public function __construct() {
24
25 add_shortcode( 'catch-breadcrumb', array( $this, 'catch_breadcrumb_shortcode' ) );
26
27 }
28
29 public function catch_display_breadcrumb() {
30
31 do_shortcode( '[catch-breadcrumb]' );
32
33 }
34
35 public function catch_breadcrumb_shortcode( $atts, $content ) {
36
37 $catch_breadcrumb_public = new Catch_Breadcrumb_Public( CATCH_BREADCRUMB_BASENAME, CATCH_BREADCRUMB_VERSION );
38 $breadcrumb = $catch_breadcrumb_public->build_breadcrumb();
39 echo wp_kses_post( $breadcrumb );
40
41 }
42
43 }
44
45 new Catch_Breadcrumb_Shortcode();
46