# betterdocs/3.5.1/views/widgets/content.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 3.5.1. 23 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/3.5.1/code/views/widgets/content.php
- Raw: https://pluginprobe.com/plugins/betterdocs/3.5.1/raw/views/widgets/content.php
- Modified: 2023-11-05T10:16:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/3.5.1/code/views/widgets/content.php#L10-L20`.

```php
<?php
    if( ! is_singular( 'docs' ) ) {
        return;
    }
?>

<div
    <?php echo $wrapper_attr; ?>>
    <?php
        if( $widget_type != 'blocks' ) {
            betterdocs()->views->get( 'templates/parts/print-icon', [
                'enable' => (bool) $enable
            ] );
        }

        // The Content For A Docs
        $view_object->get( 'templates/parts/content', [
            'htags'      => $htags,
            'enable_toc' => $enable_toc
        ] );
    ?>
</div>

```
