Commit Graph

48 Commits

Author SHA1 Message Date
Mike Jolley 8fa6116ef6 Hide cat-parent class when category will show no children due to depth setting
Closes #17184
2017-10-13 12:50:49 +01:00
Claudio Sanches c9dc585a7f Fixed coding standards 2017-08-28 16:36:32 -03:00
Mike Jolley 55d75cdcb7 Add max depth option to widget
Closes #16132
2017-08-25 12:49:40 +01:00
Mike Jolley ff5228e944 Standardise widget titles and descriptions
Follow the same pattern as core WP widgets, including title case.
Avoids terms like ‘layered nav’ which has no real meaning to new users.
2017-08-25 12:07:17 +01:00
Claudio Sanches 657c312cae Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings

* Fixed case for all _n_noop strings

* Fixed case for all _x strings

* Fixed case for all __, esc_html__ and esc_attr__ strings

* Fixed a few more strings

* Fixed strings in unit tests

* Fix PayPal Standard case.

* Save Order text
2016-10-12 11:16:30 +01:00
Aristeides Stathopoulos 9668247b95 WordPress.PHP.YodaConditions.NotYoda 2016-09-09 03:14:28 +03:00
Aristeides Stathopoulos d4e3faf014 PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket 2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos f2730eea02 WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd 2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Mike Jolley 730019ef18 scrutinizer best practice 2016-06-06 19:39:23 +01:00
Claudio Sanches e39274e753 HTTPS for everybody 2016-05-26 22:48:49 -03:00
Mike Jolley df75080858 woocommerce_product_categories_widget_product_terms_args filter
Closes #10555
2016-03-14 15:52:04 +00:00
Fredrik Forsmo bc9019458c Improve docblock comments WC_Widget classes
* Added better comment to `widget`, `form` and `update` methods.
2016-01-06 19:58:38 +01:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Claudio Sanches d6dbb4aec2 Added "Hide empty categories" option on Product Category Widget
Closes #9441
2015-10-27 14:10:32 -02:00
Mike Jolley a3f3148cd0 Merge pull request #9277 from jackgregory/product-categories-show-count
Fix Product Categories Widget dropdown show count arg
2015-10-05 09:11:18 +01:00
Jack Gregory 0e3c46dd3b Fix Product Categories Widget dropdown show count arg 2015-10-03 13:46:14 +01:00
Mike Jolley c4ca7abd4c Check home URL not this page
Fixes #8963
2015-09-02 12:23:53 +01:00
Claudio Sanches 9e41552342 Removed all "@return void" 2015-07-16 16:55:48 -03:00
Mike Jolley 5937a08696 Fix cat dropdown URL
Because a filter is not a fix :)

Closes #8412
2015-06-22 10:22:15 +01:00
Claudio Sanches 157dde6695 Improved the description of count option of product categories widget 2015-01-02 11:08:38 -02:00
Mike Jolley dd53f8e730 Move widget registration to own function/file - avoid register_widget in class files 2014-11-20 20:56:24 +00:00
Mike Jolley d3dc8be3ec Undo commit which autoloaded widgets
Since they are loaded every time with core, it doesn’t make sense to
autoload them.
2014-11-19 18:08:38 +00:00
claudiosmweb 24e17e36d3 Preventing errors when adding a widget using the WP Customize
Fixed coding standards and used methods from WC_Widget for start and end the widget
2014-11-14 23:12:59 -02:00
shivapoudel fedb4dae7c Absolute path and Indentation fix for includes/widgets/*.php :) 2014-09-21 01:22:45 +05:45
Florian Ludwig 83ed3aa534 Fixed jQuery call 2014-08-22 23:01:25 +02:00
Florian Ludwig f6294d24be Rewrote old JS to jQuery and allow usage of multiple product categories widgets on one page 2014-08-22 21:39:10 +02:00
Mike Jolley 89d7d2869f Revert "Merge pull request #6023 from krautnerds/master"
This reverts commit 9deee73b72, reversing
changes made to 1965c2b786.
2014-08-15 13:47:37 +01:00
Florian Ludwig 26d40f2336 Class instead of id for product categories widget
Also rewrote plain old JS to jQuery
2014-08-13 22:16:18 +02:00
Florian Ludwig ec41270587 Re-add all filters of widget on change of category
At the moment all filters that were applied via the layered nav filter
widget are gone on changing the category with the product category
filter
2014-08-13 17:13:58 +02:00
Alexandru Furculita 981bd515ed Update class-wc-widget-product-categories.php 2014-08-01 13:44:43 +03:00
Coen Jacobs 3ad8935b20 Removed ununsed global variables in local scopes 2014-06-08 22:33:11 +02:00
Mike Jolley ce18293c9f 2 filters for drop down functions Closes #5161 2014-05-28 11:28:20 +01:00
Mike Jolley ecbc6aac9c When hierarchy is off, only show children in the cat widget. Closes
#5245
2014-04-07 12:59:38 +01:00
Mike Jolley 95f4be04f9 Don't hide empty - do it at walker level to maintain correct counts and hierarchy Closes #5028 2014-03-17 16:52:24 +00:00
Mike Jolley e0b11c8c2e Corrected the "Show Siblings and Children Only" queries Closes #5028 2014-03-04 11:47:17 +00:00
Scott Basgaard 39b83a3039 Code clean up. Various undefined variables / notices. 2014-02-17 22:09:58 +01:00
Scott Basgaard 563adcaa86 Use 'include' parameter to show siblings/children of current category. Fixes #891 2014-02-17 22:00:25 +01:00
Mike Jolley 51ba9c393f WC globals 2013-11-25 14:01:38 +00:00
Mike Jolley 3973beae5d woocommerce_ functions to wc_ - replaced attribute functions 2013-11-25 14:01:37 +00:00
Scott Basgaard 97fe6adaeb It's possible there are no attributes. Let's check first to avoid undefined notices. 2013-11-13 21:15:30 -05:00
Scott Basgaard 5b5704d196 More undefined checks to avoid PHP notices in widgets. 2013-11-13 21:11:00 -05:00
Emyr Thomas ba3282c737 Changed label of orderby setting in product category widget. 2013-10-31 21:42:31 +00:00
Mike Jolley 7cf3c67c76 Wrapper for wp_get_post_terms to handle parent sorting. Closes #3762. Closes #3758
@coenjacobs for .15
2013-09-13 12:07:58 +01:00
Mike Jolley aa470ad390 refactor args for woocommerce_product_dropdown_categories
Closes #3218
2013-08-20 13:32:38 +01:00
Mike Jolley 9f5f81c1aa cat-parent without extra query. Closes #3355. 2013-06-28 10:07:18 +01:00
Mike Jolley 4397b00c4a classes -> includes (for includes) 2013-06-11 14:28:45 +01:00
Mike Jolley c75ea04c1c classes -> includes 2013-06-11 14:25:30 +01:00