PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.3
4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 All 201 releases
← All changes | includes/Editors/BlockEditor/Blocks/Breadcrumbs.php +21 -13 3.4.2 → 4.9.3 View file →
@@ -4,22 +4,30 @@
4 4
5 5 use WPDeveloper\BetterDocs\Editors\BlockEditor\Block;
6 6
7 7 class Breadcrumbs extends Block {
8 - public function get_name() {
9 - return 'breadcrumb';
10 - }
11 8
12 - public function get_default_attributes() {
13 - return [
14 - 'blockId' => ''
15 - ];
16 - }
9 + public $editor_styles = [ 'betterdocs-breadcrumb' ];
10 + public $frontend_styles = [ 'betterdocs-breadcrumb' ];
17 11
18 - public function render( $attributes, $content ) {
19 - $this->views( 'widgets/breadcrumbs' );
20 - }
12 + public function get_name() {
13 + return 'breadcrumb';
14 + }
21 15
22 - public function view_params() {
16 + public function get_default_attributes() {
17 + return [
18 + 'blockId' => '',
19 + 'layout' => 'layout-1'
20 + ];
21 + }
23 22
24 - }
23 + public function render( $attributes, $content ) {
24 + $this->views( 'widgets/breadcrumbs' );
25 + }
26 +
27 + public function view_params() {
28 + return [
29 + 'breadcrumbs_layout' => $this->attributes['layout'],
30 + 'blockId' => $this->attributes['blockId']
31 + ];
32 + }
25 33 }