You've already forked wp-bootstrap
v0.1.0 - Core Theme: patterns, dark mode, block styles, style variations
- Add 16 block patterns across 7 new categories (hero, features, CTA, testimonials, pricing, contact, text) - Add dark mode toggle with localStorage persistence and system preference detection (Bootstrap 5.3 data-bs-theme) - Register 17 custom block styles mapping Bootstrap components to WordPress blocks (cards, alerts, tables, buttons, etc.) - Add 4 style variations: Ocean, Forest, Sunset, Midnight - Add sidebar template part and "Blog with Sidebar" custom template - Add Inter and Lora variable fonts with fontFace declarations - Add Display font size (fluid 2.5rem-3.5rem) - Update translations (en_US .pot, de_CH .po) with all new strings - Bump version to 0.1.0 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
46
patterns/hidden-sidebar.php
Normal file
46
patterns/hidden-sidebar.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* Title: Sidebar
|
||||
* Slug: wp-bootstrap/hidden-sidebar
|
||||
* Inserter: no
|
||||
* Description: Sidebar content with recent posts, search, and tag cloud.
|
||||
*
|
||||
* @package WPBootstrap
|
||||
* @since 0.1.0
|
||||
*/
|
||||
?>
|
||||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group"><!-- wp:heading {"level":3,"fontSize":"small","style":{"typography":{"textTransform":"uppercase","fontWeight":"600","letterSpacing":"1.6px"}}} -->
|
||||
<h3 class="wp-block-heading has-small-font-size" style="font-weight:600;letter-spacing:1.6px;text-transform:uppercase"><?php esc_html_e( 'Recent Posts', 'wp-bootstrap' ); ?></h3>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:query {"queryId":99,"query":{"perPage":4,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","inherit":false}} -->
|
||||
<!-- wp:post-template -->
|
||||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"constrained"}} -->
|
||||
<div class="wp-block-group"><!-- wp:post-title {"level":4,"isLink":true,"fontSize":"medium"} /-->
|
||||
<!-- wp:post-date {"fontSize":"small"} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:post-template -->
|
||||
<!-- /wp:query -->
|
||||
|
||||
<!-- wp:separator -->
|
||||
<hr class="wp-block-separator has-alpha-channel-opacity"/>
|
||||
<!-- /wp:separator -->
|
||||
|
||||
<!-- wp:heading {"level":3,"fontSize":"small","style":{"typography":{"textTransform":"uppercase","fontWeight":"600","letterSpacing":"1.6px"}}} -->
|
||||
<h3 class="wp-block-heading has-small-font-size" style="font-weight:600;letter-spacing:1.6px;text-transform:uppercase"><?php esc_html_e( 'Search', 'wp-bootstrap' ); ?></h3>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:search {"label":"<?php esc_attr_e( 'Search', 'wp-bootstrap' ); ?>","showLabel":false,"placeholder":"<?php esc_attr_e( 'Search...', 'wp-bootstrap' ); ?>","buttonText":"<?php esc_attr_e( 'Search', 'wp-bootstrap' ); ?>","buttonPosition":"button-inside","buttonUseIcon":true} /-->
|
||||
|
||||
<!-- wp:separator -->
|
||||
<hr class="wp-block-separator has-alpha-channel-opacity"/>
|
||||
<!-- /wp:separator -->
|
||||
|
||||
<!-- wp:heading {"level":3,"fontSize":"small","style":{"typography":{"textTransform":"uppercase","fontWeight":"600","letterSpacing":"1.6px"}}} -->
|
||||
<h3 class="wp-block-heading has-small-font-size" style="font-weight:600;letter-spacing:1.6px;text-transform:uppercase"><?php esc_html_e( 'Tags', 'wp-bootstrap' ); ?></h3>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:tag-cloud {"numberOfTags":15,"taxonomy":"post_tag","showTagCounts":false} /--></div>
|
||||
<!-- /wp:group -->
|
||||
Reference in New Issue
Block a user