matchboxdesigngroup / kindling

A WordPress theme that supports the Full Site Editing features.
MIT License
3 stars 0 forks source link

Add options page and setting to enable a feature #50

Closed sstruemph closed 2 months ago

sstruemph commented 2 months ago

This PR adds an options page.

The options page has a setting to disable or enable the mobile site logo feature.

The mobile site logo feature also has a new settings panel that, if the setting is enabled, will appear in the core Site Logo block. This settings panel has an image upload button and a width slider to set the mobile logo width.

While adding the options page, it was found that some JS files need to be enqueued versus importing to the editor.js file and enqueuing it. The reasoning for this is documented here.

To have the mobile logo extension for the Site Logo block interact with the options page, it needs to be enqueued on its own. This gives it a handle which can be used for options.

The build paths are slightly updated to organize scripts into folder in build.