| 1 |
<?php |
| 2 |
if ( ! is_singular( 'docs' ) ) { |
| 3 |
return; |
| 4 |
} |
| 5 |
?> |
| 6 |
|
| 7 |
<div |
| 8 |
<?php echo $wrapper_attr; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>> |
| 9 |
<?php |
| 10 |
if ( isset( $widget_type ) && $widget_type != 'blocks' ) { |
| 11 |
betterdocs()->views->get( |
| 12 |
'templates/parts/print-icon', |
| 13 |
[ |
| 14 |
'enable' => (bool) $enable |
| 15 |
] |
| 16 |
); |
| 17 |
} |
| 18 |
|
| 19 |
// The Content For A Docs |
| 20 |
$view_object->get( |
| 21 |
'templates/parts/content', |
| 22 |
[ |
| 23 |
'htags' => $htags, |
| 24 |
'enable_toc' => $enable_toc |
| 25 |
] |
| 26 |
); |
| 27 |
?> |
| 28 |
</div> |
| 29 |
|