Currently, each call to `Storefront_Customizer::get_storefront_theme_mods()` incurs several calls to `get_theme_mod()`. Since the method is used in other places, it is a good idea to cache the results during runtime to improve performance. Subsequent calls to the method will use the cached data instead.
That option is update on theme switch and customizer save.
The inline styles add that option, or the raw settings/styles if the
Customiser is open.
Also adds various new methods to the Storefront_Customizer class to get
styles/theme mods.
Replaces the old convoluted / confusing file structure with a neater
class based system. It should now be easier to understand the purpose
of each file.
Performance should see a small bump and it will be easier to extend
core features like the Customizer integration.
File names are more akin to WooCommerce core which improves consistency
/ recognisability.
Assets are all arranged into a single dir rather than being spread out
all over the place.
Deprecated `storefront_sanitize_hex_color()`.
Updated Gruntfile.js to reflect new structure.
Adds `display: block;` to the `.amount` class so that it displays on
it’s own line. Only when it’s a direct descendent of the parent `li`
though, so as to not effect the cart widget.
Previously Header, Footer and Typography settings had random ordering
of controls. Now they all follow the same pattern: Background color >
Heading color > Text color > Link color
Because Storefront changes the ‘Header image’ section title to just
‘Header’ and adds other controls, we need to add a title to the header
image control to create separation between the header settings.
- Removes extra wrapper functions around Core sanitization functions.
- Simplifies the code of the `storefront_sanitize_checkbox()` function.
- Updates the changelog.