tombroucke / otomaties-sage-helper
This package provides an easy way to reuse files across projects
Installs: 1 915
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8
- log1x/acf-composer: *
- roots/acorn: *
- tombroucke/acf-objects: ^3.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.6.2
Suggests
- log1x/navi: Navi is a developer-friendly alternative to the NavWalker. Easily build your WordPress menus using an iterable object inside of a template/view.
- spatie/laravel-google-fonts: Cache & serve Google Fonts from your application
This package is auto-updated.
Last update: 2024-12-27 16:42:05 UTC
README
Easily publish blocks to your Sage 10 theme.
Installation
composer require tombroucke/otomaties-sage-helper --dev
Usage
wp acorn vendor:publish --tag="Otomaties block {Block Name}"
Blocks
Accordion
wp acorn vendor:publish --tag="Otomaties block Accordion"
Needs some javascript, see https://github.com/tombroucke/sage-bootstrap-components#accordion
Banner
wp acorn vendor:publish --tag="Otomaties block Banner"
- Show H1 with background image
Buttons
wp acorn vendor:publish --tag="Otomaties block Buttons"
- Display one or more buttons
- Group buttons
Cards
wp acorn vendor:publish --tag="Otomaties block Cards"
Carousel
wp acorn vendor:publish --tag="Otomaties block Carousel"
Container
wp acorn vendor:publish --tag="Otomaties block Container"
- Container with background
- Full width, wide or regular
Gallery
wp acorn vendor:publish --tag="Otomaties block Gallery"
Hero
wp acorn vendor:publish --tag="Otomaties block Hero"
Hero Slider
wp acorn vendor:publish --tag="Otomaties block HeroSlider"
Image + Content
wp acorn vendor:publish --tag="Otomaties block ImageContent"
- Image & content (Innerblocks)
- Choose image position
- Background color
Latest Posts
wp acorn vendor:publish --tag="Otomaties block LatestPosts"
- Display latest posts
- Choose number of posts to display
- Modify to change post type
Location
wp acorn vendor:publish --tag="Otomaties block Location"
Logos
wp acorn vendor:publish --tag="Otomaties block Logos"
- Choose grid or carousel view
Post Type Archive
When using the same slug as the post type, pagination will not work. E.g. post type job, rewrite jobs, example.com/jobs/page/2 will throw a 404.
wp acorn vendor:publish --tag="Otomaties block PostTypeArchive"
- Display post type archive