Skip to content

Configuration Options

Joey Smith edited this page May 31, 2023 · 1 revision

If you need to create a new theme a configuration example is included.

/vendor/webinertia/webinertia-thememanager/config/theme.config.php

To change the active theme simply switch the active key to true and the other to false. The dark theme here is provided as an example. It will also at some point be made available for install as a dark variant on the default Laminas templates but in dark mode.

return [
    'default' => [
        'id' => 1,
        'active' => true,
        'name' => 'default',
        'fallback' => 'default',
    ],
    'dark' => [
        'id' => 2,
        'active' => false,
        'name' => 'dark',
        'fallback' => 'default',
    ],
];

To actually build the theme simply create your dark directory as a sibling of default and then follow the same pattern as the default. Remember, you only have to include files for which you are going to make changes. If the style is based on bootstrap (will be v5.3 for the default in theme manager) then you can leave let the default file load. I will be enabling discussions for this project so if you have questions please feel free to open a topic.

Clone this wiki locally