Initial theme scaffolding (v0.0.1)
- Bootstrap 5 CSS/JS integration via Yarn (served locally)
- Dart Sass build pipeline with PostCSS, Autoprefixer, cssnano
- Twig 3.0 via Composer with PSR-4 autoloading
- FSE block theme templates (index, home, single, page, archive, search, 404)
- Template parts (header, footer) and block patterns
- theme.json with Bootstrap 5-aligned design tokens
- Gitea CI/CD workflow for automated release packages
- WordPress i18n support (en_US base, de_CH translation)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-08 02:25:33 +01:00
|
|
|
# WP Bootstrap
|
|
|
|
|
|
|
|
|
|
A modern WordPress Block Theme built from scratch with Bootstrap 5.
|
|
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
|
|
- Full Site Editing (FSE) support
|
|
|
|
|
- Bootstrap 5 CSS and JavaScript
|
|
|
|
|
- Responsive design
|
|
|
|
|
- Dark mode ready (Bootstrap 5.3 dark mode variables)
|
|
|
|
|
- Twig 3.0 template engine
|
|
|
|
|
- WordPress i18n support
|
|
|
|
|
- Gitea CI/CD automated releases
|
|
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
|
|
- WordPress 6.7 or higher
|
|
|
|
|
- PHP 8.3 or higher
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
### From Release Package
|
|
|
|
|
|
|
|
|
|
1. Download the latest `.zip` from [Releases](https://src.bundespruefstelle.ch/magdev/wp-bootstrap/releases)
|
|
|
|
|
2. Go to WordPress Admin > Appearance > Themes > Add New > Upload Theme
|
|
|
|
|
3. Upload the ZIP file and activate
|
|
|
|
|
|
|
|
|
|
### From Source
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
git clone ssh://git@src.bundespruefstelle.ch:2022/magdev/wp-bootstrap.git
|
|
|
|
|
cd wp-bootstrap
|
|
|
|
|
composer install
|
2026-02-08 03:20:25 +01:00
|
|
|
npm install
|
|
|
|
|
npm run build
|
Initial theme scaffolding (v0.0.1)
- Bootstrap 5 CSS/JS integration via Yarn (served locally)
- Dart Sass build pipeline with PostCSS, Autoprefixer, cssnano
- Twig 3.0 via Composer with PSR-4 autoloading
- FSE block theme templates (index, home, single, page, archive, search, 404)
- Template parts (header, footer) and block patterns
- theme.json with Bootstrap 5-aligned design tokens
- Gitea CI/CD workflow for automated release packages
- WordPress i18n support (en_US base, de_CH translation)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-08 02:25:33 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
|
|
|
|
|
- Node.js 20+
|
2026-02-08 03:20:25 +01:00
|
|
|
- npm
|
Initial theme scaffolding (v0.0.1)
- Bootstrap 5 CSS/JS integration via Yarn (served locally)
- Dart Sass build pipeline with PostCSS, Autoprefixer, cssnano
- Twig 3.0 via Composer with PSR-4 autoloading
- FSE block theme templates (index, home, single, page, archive, search, 404)
- Template parts (header, footer) and block patterns
- theme.json with Bootstrap 5-aligned design tokens
- Gitea CI/CD workflow for automated release packages
- WordPress i18n support (en_US base, de_CH translation)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-08 02:25:33 +01:00
|
|
|
- Composer
|
|
|
|
|
- PHP 8.3+
|
|
|
|
|
|
|
|
|
|
### Build Commands
|
|
|
|
|
|
|
|
|
|
| Command | Description |
|
|
|
|
|
| --- | --- |
|
2026-02-08 03:20:25 +01:00
|
|
|
| `npm run build` | Compile SCSS, minify CSS, copy Bootstrap JS |
|
|
|
|
|
| `npm run dev` | Watch SCSS files and recompile on changes |
|
|
|
|
|
| `npm run scss` | Compile SCSS only |
|
|
|
|
|
| `npm run postcss` | Minify CSS with Autoprefixer |
|
Initial theme scaffolding (v0.0.1)
- Bootstrap 5 CSS/JS integration via Yarn (served locally)
- Dart Sass build pipeline with PostCSS, Autoprefixer, cssnano
- Twig 3.0 via Composer with PSR-4 autoloading
- FSE block theme templates (index, home, single, page, archive, search, 404)
- Template parts (header, footer) and block patterns
- theme.json with Bootstrap 5-aligned design tokens
- Gitea CI/CD workflow for automated release packages
- WordPress i18n support (en_US base, de_CH translation)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-08 02:25:33 +01:00
|
|
|
| `composer install` | Install PHP dependencies |
|
|
|
|
|
|
|
|
|
|
### Project Structure
|
|
|
|
|
|
|
|
|
|
```txt
|
|
|
|
|
wp-bootstrap/
|
|
|
|
|
├── assets/ Compiled CSS, JS, and images
|
|
|
|
|
├── inc/ PHP classes (PSR-4 autoloaded)
|
|
|
|
|
├── languages/ Translation files (.pot, .po)
|
|
|
|
|
├── parts/ FSE template parts (header, footer)
|
|
|
|
|
├── patterns/ Block patterns
|
|
|
|
|
├── src/scss/ SCSS source files
|
|
|
|
|
├── templates/ FSE page templates
|
|
|
|
|
├── views/ Twig templates
|
|
|
|
|
├── functions.php Theme bootstrap
|
|
|
|
|
├── style.css Theme metadata
|
|
|
|
|
└── theme.json Design tokens and settings
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
|
|
GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
## Author
|
|
|
|
|
|
|
|
|
|
Marco Graetsch - [src.bundespruefstelle.ch/magdev](https://src.bundespruefstelle.ch/magdev)
|