inc2734 / mimizuku
Installs: 222
Dependents: 0
Suggesters: 0
Security: 0
Stars: 38
Watchers: 5
Forks: 2
Open Issues: 0
Type:wordpress-theme
Requires
- php: >=5.6
- inc2734/mimizuku-core: >=0.6.0
Requires (Dev)
- doctrine/instantiator: 1.0.4
- phpdocumentor/reflection-docblock: 3.2.2
- phpmd/phpmd: 2.*
- phpunit/php-token-stream: 1.4.11
- phpunit/phpunit: ^5.7
- squizlabs/php_codesniffer: *
- wp-coding-standards/wpcs: *
This package is auto-updated.
Last update: 2022-02-01 13:02:27 UTC
README
Mimizuku is a WordPress starter theme or theme framework for child themes development.
- GitHub: https://github.com/inc2734/mimizuku/
- Packagist: https://packagist.org/packages/inc2734/mimizuku
Requirements
- WordPress 4.7
- PHP 5.6+
- WP-CLI
- Composer
- Node.js
Browser support
- IE10 + Modern browser
Get Started
Using as starter theme
$ cd /PATH/TO/wp-content/themes
$ git clone https://github.com/inc2734/mimizuku.git your-theme-name
$ cd your-theme-name
$ npm install
$ composer install
$ npm run build
$ wp theme activate your-theme-name
- Replace
/resources/languages/mimizuku.pot
to/resources/languages/your-theme-name.pot
- Replace
Text Domain: mimizuku
toText Domain: your-theme-name
in/style.css
- Replace
apply_filters( 'mimizuku
toapply_filters( 'your_theme_name
in **.php - Replace
do_action( 'mimizuku
todo_action( 'your_theme_name
in **.php - Replace
add_filter( 'mimizuku
toadd_filter( 'your_theme_name
in **.php - Replace
add_action( 'mimizuku
toadd_action( 'your_theme_name
in **.php - Replace
mimizuku
toyour-theme-name
in **.php and **.js - Replace
Mimizuku
toYour_Theme_Name
in **.php and **.js
Using as parent theme
See https://github.com/inc2734/mimizuku-child
Theme features
- Having layout and view templates
- and having filter hooks filtered these templates
- Using view controller
- The function which to pass the variables to WordPress's
get_template_part()
. - Usuful scripts
- CI
- See more https://github.com/inc2734/mimizuku-child
Directory structure
themes/mimizuku
├─ resources # The theme root
│ ├─ app # Setup theme
│ ├─ page-template # Custom page templates
│ ├─ templates
│ │ ├─ layout # Layout templates
│ │ ├─ view # View templates
│ │ ├─ static # Static view templates
│ │ └─ widget # Templates for WP Awesome Widgets
│ ├─ vendor # Composer packages
│ ├─ style.css # Theme meta information
│ ├─ index.php
│ ├─ functions.php
│ ├─ ...
├─ .gitignore
Template hierarchical
Layout templates
- /resources/vendor/inc2734/mimizuku-core/src/view/templates/**/*.php
- /resources/templates/**/*.php
Custo page templates
- /resources/page-templates/*.php
- /page-templats/*.php
Base templates
- /resources/vendor/inc2734/mimizuku-core/src/view/*.php
- /resources/*.php
- /*.php
Third-party resources
Font Awesome (Web fonts)
- Font License: SIL OFL 1.1
- Code License: MIT License
- Source: https://fortawesome.github.io/Font-Awesome/
Basis (Sass/CSS framework)
- License: MIT License
- Source: https://sass-basis.github.io/
FLOCSS
- Source: https://github.com/hiloki/flocss