Hi Stephan, a warm welcome to the WonderCMS community - glad you've dropped a visit.
WonderCMS supports listeners and hooks and you could include certain functions of your own and apply them to the settings panel or the menu.
For example:
Here's a theme called "Paper-L" and it uses adding a listener to the menu function:
https://github.com/prakai/wcms-paper-l/ ... /theme.php and adds those colorSelectors so the visitor of a website can change the color.
For example, the modern settings plugin you've linked to is partially deprecated for the latest version of WonderCMS, but the logic and solution that this plugin is using is the same as in the example theme above - simply add a listener and insert your function in any of the available ones for WCMS:
- adding a listener to the main css or js (in your theme:
Code: Select all
wCMS::addListener('css', 'yourFunctionName');
or for js
Code: Select all
CMS::addListener('js', 'yourFunctionName');
- footer
Code: Select all
wCMS::addListener('footer', 'yourFunctionName');
- settings panel
Code: Select all
wCMS::addListener('settings', 'yourFunctionName');
- menu
Code: Select all
wCMS::addListener('menu', 'yourFunctionName');
We're still adding themes and plugins to the official repository, we just slowed down because of the upcoming WCMS 3.0.0 release, which will break backwards compatibility. All of the themes and plugins are already migrated and prepared to be released when WCMS 3.0.0 is done.
For now, every plugin and theme that is submitted ends up on the official website. For the future, I guess there could be a dedicated repository where contributors could share their code/plugins/themes that won't be included as an official theme/plugin.
Hope this clears any questions you had. In regards to your theme, you can explain more details of what you're trying to achieve, I could try to help out.
Possibly share any snippets or steps where you're stuck, it would definitely make it easier.
P.S. Glad you're enjoying WonderCMS:
- you can also check out the upcoming 3.0.0 version, which will be released in the upcoming months: https://github.com/robiso/wondercms/tre ... ental3.0.0
- also, all of the already approved themes and plugins will be merged into one repository with the upcoming 3.0.0 WonderCMS version (so the approved themes/plugins won't be all over the place anymore