| @@ -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> |