| 1 |
<?php |
| 2 |
namespace WPDeveloper\BetterDocs\Editors\BlockEditor\Patterns; |
| 3 |
|
| 4 |
|
| 5 |
class DocsPage extends BasePattern { |
| 6 |
|
| 7 |
public function register() { |
| 8 |
register_block_pattern( |
| 9 |
'betterdocs/doc-category-archive', |
| 10 |
array( |
| 11 |
'title' => __( 'Docs Page', 'betterdocs' ), |
| 12 |
'description' => _x( 'Docs Category Archive Layout', 'Block pattern description', 'betterdocs' ), |
| 13 |
'content' => '<!-- wp:group {"layout":{"inherit":true,"contentSize":"1400px","type":"constrained"}} --> |
| 14 |
<div class="wp-block-group"> |
| 15 |
<!-- wp:betterdocs/searchbox {"template":"archive-docs"} /--> |
| 16 |
<!-- wp:betterdocs/categorygrid {"template":"archive-docs"} /--> |
| 17 |
</div> |
| 18 |
<!-- /wp:group -->', |
| 19 |
'categories' => array( 'betterdocs-docs-page' ), |
| 20 |
'keywords' => array( 'betterdocs', 'docs page', 'category grid layout' ), |
| 21 |
'viewportWidth' => 800, |
| 22 |
) |
| 23 |
); |
| 24 |
} |
| 25 |
} |
| 26 |
|