Commit graph

116 commits

Author SHA1 Message Date
James Koster
6da59b8b59 revert static var 2016-03-17 10:53:28 +00:00
Ernesto Méndez
767a1467fe Optimize calls for Storefront_Customizer::get_storefront_theme_mods()
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.
2016-03-16 12:10:58 -04:00
James Koster
9dd25a244c Assign Storefront theme mods to a single option. #348
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.
2016-03-16 14:15:39 +00:00
James Koster
25bd98c449 improve cart on handheld devices. 2016-03-16 10:24:48 +00:00
James Koster
1d6eec5cac animate the menu toggle button icon 2016-03-15 16:06:04 +00:00
James Koster
f66f11ce9d automate the styling of the menu toggle button. closes #342 2016-03-15 15:57:26 +00:00
James Koster
34aad619e5 revert the default settings 2016-03-03 13:38:40 +00:00
James Koster
335c59035b spacing 2016-03-03 13:27:26 +00:00
James Koster
7b52f2e393 use get_storefront_default_setting_values to set defaults 2016-03-03 11:45:09 +00:00
James Koster
a3ec0358fa ensure php adheres to coding standards according to PHP CodeSniffer / wpcs. closes #326 2016-02-25 14:46:06 +00:00
James Koster
1409ee5c66 lots of coding standards tweaks. #326 2016-02-19 16:57:56 +00:00
James Koster
c4920aad86 add priorities for clarity 2016-02-17 17:50:07 +00:00
James Koster
d9d593a2f9 Ensure our defaults are set if no setting is found. 2016-02-15 16:27:06 +00:00
James Koster
5873a44aeb search icon color 2016-02-09 14:35:41 +00:00
James Koster
fd4c2b4972 adds a menu bar on handheld devices. #315 2016-02-08 17:13:41 +00:00
James Koster
27991ac746 active menu color 2016-02-08 11:02:56 +00:00
James Koster
9fb4fc3405 breadcrumb background color now calculated based on body background color 2016-02-05 10:04:10 +00:00
James Koster
cb910f4256 more color tweaks 2016-02-04 16:15:42 +00:00
James Koster
97eebe0924 A large code cleanup and sets $storefront_version as a global var
* Strip spaces
* more efficient syntax
* Coding standards compliance
2016-02-04 13:16:31 +00:00
James Koster
918a97ad49 remove unnecessary $default declarations in instances of get_theme_mod()
We don’t need to declare the default because it’s already set in
add_setting()
2016-02-04 10:17:04 +00:00
James Koster
edcc8fc068 tweak header link colors 2016-02-04 09:56:17 +00:00
James Koster
8f3ae14baf reset accent colors to grey 2016-02-03 14:45:30 +00:00
James Koster
0d924bf319 set the default accent color to 'storefront orange' and adjust dropdown background colors 2016-02-03 13:58:55 +00:00
James Koster
ea98d8019b Some styling tweaks 2016-01-28 11:34:37 +00:00
James Koster
7bb9c30d8f file restructuring 2016-01-21 13:50:52 +00:00
James Koster
5dd0d0d5b5 Refactor step 1!
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.
2016-01-20 16:02:53 +00:00
James Koster
81b06e83f5 Updates storefront_get_content_background_color();
Get the default bg color first.
2015-12-08 15:57:15 +00:00
James Koster
b8dd64bdd3 adds the storefront_get_content_background_color() function. 2015-12-02 15:33:41 +00:00
James Koster
de46ab9923 Applies the new hover color styles to the header cart as well. 2015-12-02 10:24:22 +00:00
James Koster
cf0b5dc8ed Makes the order review on the checkout stick to the top of the browser window as your scroll. closes #285 2015-11-30 15:59:51 +00:00
James Koster
33f5bc9878 Makes the contrast on hovered links in the primary nav a little more apparent. closes #277 2015-11-30 10:45:53 +00:00
James Koster
7044ecfd34 Ensure the header text color is applied to the whole header. #267 2015-11-04 16:38:26 +00:00
James Koster
4a033404bf Fix some invalid css syntax. closes #265 2015-11-03 09:41:25 +00:00
James Koster
a1f12e926b Remove product names in the 'more' section of the Customizer. #242 2015-10-02 10:20:43 +01:00
James Koster
5c68f113d1 product list widget tweaks. closes #229
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.
2015-09-22 11:39:08 +01:00
James Koster
6f67da5137 make the default layout filterable via storefront_default_layout. 2015-09-08 16:22:03 +01:00
James Koster
1e60fcbd22 remove minified js
No need to track files that are automatically generated.
2015-08-04 11:30:40 +01:00
James Koster
72b3ea9314 Ensure all controls added to the Customizer have a priority
So that extensions / child themes have control over where custom
controls they add appear in the display order of settings.
2015-07-22 15:29:50 +01:00
James Koster
ee3b2c0e5a Creates consistency of color setting naming order. closes #206
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
2015-07-22 15:26:34 +01:00
James Koster
d8b4da7b94 Adds a title to the header image control. closes #207
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.
2015-07-22 15:15:04 +01:00
Fränk Klein
0b0710227a Fixes for custom sanitization functions.
- Removes extra wrapper functions around Core sanitization functions.
- Simplifies the code of the `storefront_sanitize_checkbox()` function.
- Updates the changelog.
2015-07-21 15:54:09 +02:00
James Koster
c0c17c0185 spacing 2015-07-07 16:57:59 +01:00
Yoav Farhi
ac1ce8dd30 default layout in rtl to left sidebar 2015-07-07 14:13:14 +03:00
James Koster
29f9deac68 tidy up 2015-06-25 12:36:26 +01:00
James Koster
d740d473c9 hello Storefront_Custom_Radio_Image_Control 2015-06-25 11:54:20 +01:00
James Koster
9dccf829b2 new sanitisation functions 2015-06-25 11:29:09 +01:00
James Koster
ef07ea0296 welcome screen visibility. closes #189 2015-06-23 11:14:24 +01:00
James Koster
979fcb3c40 featured products. closes #177 2015-05-12 15:46:37 +01:00
Nirav Mehta
93237d2ac6 Check to see if "Layout_Picker_Storefront_Control" class exists
This will allow child themes to override Layout options. (we created a child theme that offers a 1 column layout, so had to override this class)
2015-05-08 17:24:34 +05:30
James Koster
29fc6e3038 description paragraph output 2015-04-30 14:24:54 +01:00