PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.5.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.5.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 3.5.1 All 200 releases
← All changes | views/widgets/content.php +16 -26 4.9.23.5.3 View file →
@@ -1,32 +1,22 @@
1 1 <?php
2 -
3 -if ( ! defined( 'ABSPATH' ) ) {
4 - exit;
5 -}
6 -if ( ! is_singular( 'docs' ) ) {
7 - return;
8 -}
2 + if( ! is_singular( 'docs' ) ) {
3 + return;
4 + }
9 5 ?>
10 6
11 7 <div
12 - <?php echo $wrapper_attr; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
13 - <?php
14 - if ( isset( $widget_type ) && $widget_type != 'blocks' ) {
15 - betterdocs()->views->get(
16 - 'templates/parts/print-icon',
17 - [
18 - 'enable' => (bool) $enable
19 - ]
20 - );
21 - }
8 + <?php echo $wrapper_attr; ?>>
9 + <?php
10 + if( $widget_type != 'blocks' ) {
11 + betterdocs()->views->get( 'templates/parts/print-icon', [
12 + 'enable' => (bool) $enable
13 + ] );
14 + }
22 15
23 - // The Content For A Docs
24 - $view_object->get(
25 - 'templates/parts/content',
26 - [
27 - 'htags' => $htags,
28 - 'enable_toc' => $enable_toc
29 - ]
30 - );
31 - ?>
16 + // The Content For A Docs
17 + $view_object->get( 'templates/parts/content', [
18 + 'htags' => $htags,
19 + 'enable_toc' => $enable_toc
20 + ] );
21 + ?>
32 22 </div>