getolympus / olympus-dionysos-field-title
Title field, this component is a part of the Olympus Dionysos fields.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:olympus-field
Requires (Dev)
- phpunit/phpunit: ~5.3
This package is auto-updated.
Last update: 2024-11-18 23:13:39 UTC
README
Dionysos Title Field
This component is a part of the Olympus Dionysos fields for WordPress.
composer require getolympus/olympus-dionysos-field-title
Table of contents
Field initialization • Variables definition • Title display • Release history • Contributing
Field initialization
Use the following lines to add a title field
in your WordPress admin pages or custom post type's meta fields:
Note the $identifier
(first ::build()
parameter) is set to false
because no value is stored in database.
return \GetOlympus\Dionysos\Field\Title::build(false, [ 'title' => 'The Dark Knight', 'class' => 'robin', 'level' => 2, ]);
Variables definition
Title display
The component will display:
<h{{ level }} class="zeus-title {{ class }}">{{ title|raw }}</h{{ level }}>
Release History
Contributing
- Fork it (https://github.com/GetOlympus/olympus-dionysos-field-title/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Built with ♥ by Achraf Chouk ~ (c) since a long time.