PHPackages                             getolympus/olympus-dionysos-field-header - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. getolympus/olympus-dionysos-field-header

ActiveOlympus-field[Framework](/categories/framework)

getolympus/olympus-dionysos-field-header
========================================

Header field, this component is a part of the Olympus Dionysos fields.

v0.0.2(6y ago)02MITHTML

Since May 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/GetOlympus/olympus-dionysos-field-header)[ Packagist](https://packagist.org/packages/getolympus/olympus-dionysos-field-header)[ Docs](https://github.com/GetOlympus/olympus-dionysos-field-header)[ RSS](/packages/getolympus-olympus-dionysos-field-header/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

[![](https://github.com/GetOlympus/olympus-dionysos-field-header/raw/master/assets/field-header.png)](https://github.com/GetOlympus/olympus-dionysos-field-header/blob/master/assets/field-header.png)

Dionysos Header Field
=====================

[](#dionysos-header-field)

[![Olympus Component](https://camo.githubusercontent.com/f483886a465a9e44005a352c6c1ba6556689a579ecf0d8b984cf60becaaa878c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f666f722d4f6c796d7075732d3434636331312e7376673f7374796c653d666c61742d737175617265)](https://github.com/GetOlympus)[![CodeFactor Grade](https://camo.githubusercontent.com/c077b34fda6b6bfae2f2e23165d2985a65b556c375b0c26d533de53482ff4234/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f4765744f6c796d7075732f6f6c796d7075732d64696f6e79736f732d6669656c642d6865616465722f62616467653f7374796c653d666c61742d737175617265)](https://www.codefactor.io/repository/github/getolympus/olympus-dionysos-field-header)[![Packagist Version](https://camo.githubusercontent.com/a304987d670d1c4dc6c29ee2257d8521492b10cf67902d2bda595d4298594eb2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765746f6c796d7075732f6f6c796d7075732d64696f6e79736f732d6669656c642d6865616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/getolympus/olympus-dionysos-field-header)[![MIT](https://camo.githubusercontent.com/68035de4b7f69ada20e98e34172f47d361b83a017c8045200fc338660c467897/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49545f4c6963656e73652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/GetOlympus/olympus-dionysos-field-header/blob/master/LICENSE)

> This component is a part of the **Olympus Dionysos fields** for **WordPress**.

```
composer require getolympus/olympus-dionysos-field-header
```

---

Table of contents
-----------------

[](#table-of-contents)

[Field initialization](#field-initialization) • [Variables definitions](#variables-definitions) • [Texts definition](#texts-definition) • [Accepted modes](#accepted-modes) • [Retrive data](#retrive-data) • [Release history](#release-history) • [Contributing](#contributing)

---

Field initialization
--------------------

[](#field-initialization)

Use the following lines to add a `header field` in your **WordPress** admin pages or custom post type meta fields:

```
return \GetOlympus\Dionysos\Field\Header::build('my_header_field_id', [
    'title'       => 'You\'re about to find out what it\'s like to fight a real Super Saiyan...',
    'default'     => [],
    'description' => 'and I\'m not talking about Goku!',
    'mode'        => 'top',

    /**
     * Texts definition
     * @see the `Texts definition` section below
     */
    't_align_left'        => 'Left',
    't_align_center'      => 'Center',
    't_align_right'       => 'Right',
    't_align_expand'      => 'Expand',

    't_header_overall'    => 'Overall header',
    't_header_main'       => 'Main header',
    't_header_secondary'  => 'Secondary header',

    't_logo_no_display'   => 'Hide website\'s baseline',
    't_logo_display'      => 'Display website\'s baseline',

    't_navs_label'        => 'Navigation menus',

    't_search_label'      => 'Search displays',
    't_search_default'    => 'Default',
    't_search_drop'       => 'Drop',
    't_search_dropdown'   => 'Dropdown',
    't_search_modal'      => 'Modal',
    't_search_overlay'    => 'Overlay',

    't_text_default'      => 'Call us today! 1.555.555.555',

    't_type_label'        => 'Choose a content type',
    't_type_logo'         => 'Website\'s logo',
    't_type_nav'          => 'Navigation menu',
    't_type_search'       => 'Search form',
    't_type_text'         => 'Custom text field',

    't_addblock_label'    => 'Click on the button to add content',
    't_editblock_label'   => 'Click on the button to edit content',
    't_removeblock_label' => 'Remove',
    't_updateblock_label' => 'Update',
]);
```

Variables definitions
---------------------

[](#variables-definitions)

VariableTypeDefault value if not setAccepted values`title`String`'Header'`*empty*`default`Array*empty**empty*`description`String*empty**empty*`mode`String`top`see [Accepted modes](#accepted-modes)Texts definition
----------------

[](#texts-definition)

CodeDefault valueDefinition`t_align_left`LeftLeft align option`t_align_center`CenterCenter align option`t_align_right`RightRight align option`t_align_expand`ExpandExpand align option`t_header_overall`Overall headerOverall header's title`t_header_main`Main headerMain header's title`t_header_secondary`Secondary headerSecondary header's title`t_logo_no_display`Hide website's baselineHide slogan option`t_logo_display`Display website's baselineDisplay slogan option`t_navs_label`Navigation menusNavs' selectbox title`t_search_label`Search displaysSearchs' selectbox title`t_search_default`DefaultDefault search option`t_search_drop`DropDrop search option`t_search_dropdown`DropdownDropdown search option`t_search_modal`ModalModal search option`t_search_overlay`OverlayOverlay search option`t_text_default`Call us today! 1.555.555.555Default custom text field value`t_type_label`Choose a content typeTypes' selectbox title`t_type_logo`Website's logoLogo type option`t_type_nav`Navigation menuNav type option`t_type_search`Search formSearch type option`t_type_text`Custom text fieldText type option`t_addblock_label`Click on the button to add contentAdd button label`t_editblock_label`Click on the button to edit contentEdit button label`t_removeblock_label`RemoveRemove button label`t_updateblock_label`UpdateUpdate button labelAccepted modes
--------------

[](#accepted-modes)

- `top` to display headers as default display
- `left` to display headers as left side nav
- `right` to display headers as right side nav

Retrive data
------------

[](#retrive-data)

Retrieve your value from Database with a simple `get_option('my_header_field_id', [])` (see [WordPress reference](https://developer.wordpress.org/reference/functions/get_option/)):

```
// Get headers from Database
$headers = get_option('my_header_field_id', []);

if (!empty($headers)) {
    echo '';

    foreach ($headers as $name => $options) {
        echo '';
        echo '';

        foreach ($options['contents'] as $content) {
            # code...
            echo ''.$content[0].': '.$content[1].'';
        }

        echo '';
        echo '';
    }

    echo '';
}
```

Release history
---------------

[](#release-history)

VersionNote0.0.2Update CSS and languages0.0.1Initial commitContributing
------------

[](#contributing)

1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

---

**Built with ♥ by [Achraf Chouk](https://github.com/crewstyle "Achraf Chouk") ~ (c) since a long time.**

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2201d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c255b14ebf8b792ba8b0c9940bd13e899281fc1431f1088af9074acdaa191cef?d=identicon)[crewstyle](/maintainers/crewstyle)

---

Top Contributors

[![crewstyle](https://avatars.githubusercontent.com/u/1572149?v=4)](https://github.com/crewstyle "crewstyle (4 commits)")

---

Tags

phpframeworkwordpressheaderfieldcustomolympusdionysos

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/getolympus-olympus-dionysos-field-header/health.svg)

```
[![Health](https://phpackages.com/badges/getolympus-olympus-dionysos-field-header/health.svg)](https://phpackages.com/packages/getolympus-olympus-dionysos-field-header)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
