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
catch-breadcrumb / includes / shortcodes.php

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

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