Commit Graph

359 Commits

Author SHA1 Message Date
IanDelMar 76ee06b67a
Merge branch 'master' into patch-5 2020-04-28 14:03:01 +02:00
IanDelMar 860d8c123a Fix WPCS errors and warnings + escaping
Fixes many WPCS errors and warnings

Also:
* Partly removes excessive php opening/closing tags.
* Uses printf for better readability in loop-templates/content-none.php.
* Adds understrap_kses_title() to escape post titles.
* Adds understrap_escape_the_archive_description() to escape the archive description.
* Fixes missing '__' after esc_html in author.php.
* Updates the phpcs.xml to reflect all the changes.
* Updates composer dependencies and scripts.
2020-04-19 12:08:39 +02:00
IanDelMar e84fca387a
Add script and style to theme support for html5
In HTML5, the type attribute is not required for the <script> and <style> tags. Including the attribute on these tags (type="text/javascript", for example) will trigger a validation warning in HTML validation tools.

From WordPress 5.3, two new arguments are supported for the html5 theme feature, script and style. When these arguments are passed, the type attribute will not be output for those tags.

See https://make.wordpress.org/core/2019/10/15/miscellaneous-developer-focused-changes-in-5-3/
2020-04-13 12:09:59 +02:00
IanDelMar 7630599003
Fix DocBlocks 2020-03-19 17:12:32 +01:00
UnderstrapFramework 1f7327c7e4
Merge pull request #1101 from IanDelMar/patch-1
Move action hook outside if
2020-03-15 09:16:27 +00:00
IanDelMar cde4e1bc98 Delete .DS_Store 2019-12-25 19:34:13 +01:00
IanDelMar b786f04859
Move action hook outside if 2019-12-19 23:05:22 +01:00
UnderstrapFramework 85d0a38b36
Delete wp-admin.php 2019-12-17 10:41:28 +00:00
UnderstrapFramework 1ab5187ff7
Update wp-admin.php 2019-12-17 10:11:42 +00:00
UnderstrapFramework bc6358683b
Merge pull request #1085 from IanDelMar/post-navigation-non-archive
Add support for pagination on non-archive pages
2019-12-16 08:10:44 +00:00
IanDelMar ecda11ac10 Add support for non-archive pages
By relaxing the exit condition understrap_pagination() may be used in custom loops. See #1054 for an how to example.
2019-12-14 12:00:39 +01:00
IanDelMar e4cc30f990 Add DocBlock
plus switch keys order
of the defaults array to keep the arguments for paginate_links() together.
2019-12-14 09:19:36 +01:00
IanDelMar ae43f9b620 Use aria-labelledby
Use aria-labelledby + heading instead of aria-label. (For a discussion see #1063.)
2019-12-14 08:29:21 +01:00
IanDelMar bf792512ce Fix space usage
See https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#space-usage
2019-12-14 08:26:31 +01:00
UnderstrapFramework 2f752095a6
Merge pull request #1009 from ylkyrg/yoda-conditions
Yoda conditions
2019-12-13 11:57:53 +00:00
UnderstrapFramework 9af15d7b11
Update wp-admin.php 2019-12-13 11:57:02 +00:00
UnderstrapFramework b7e3d19ab5
Merge pull request #1015 from IanDelMar/editor
Add DocBlocks
2019-12-13 11:34:06 +00:00
UnderstrapFramework c15a0de31d
Merge pull request #1010 from ylkyrg/capital-s
Capital S
2019-12-13 11:33:28 +00:00
UnderstrapFramework e926ed9021
Merge pull request #1012 from IanDelMar/patch-6
Use bootstrap class
2019-12-13 11:28:27 +00:00
UnderstrapFramework 124b606a31
Merge pull request #1030 from lu4sh1i/patch-1
Update template-tags.php
2019-12-13 11:27:08 +00:00
UnderstrapFramework cf100502d7
Merge pull request #1043 from IanDelMar/patch-7
Fix typo
2019-12-13 11:16:42 +00:00
UnderstrapFramework 00cf4043d3
Merge pull request #1057 from IanDelMar/theme-settings
Add filter hooks
2019-12-13 11:14:15 +00:00
UnderstrapFramework 311d330c72
Merge pull request #1058 from IanDelMar/patch-8
Fix static hero CSS class
2019-12-13 11:13:44 +00:00
UnderstrapFramework 87360068c1
Merge pull request #1060 from IanDelMar/aria-current
Add aria-current
2019-12-13 11:12:51 +00:00
UnderstrapFramework cd6b58df53
Merge pull request #1061 from IanDelMar/strict-comparison
Use strict comparison
2019-12-13 11:12:11 +00:00
UnderstrapFramework d7a7be8a3b
Merge pull request #1072 from IanDelMar/body-attributes
Body attributes
2019-12-13 11:04:04 +00:00
Andrew Schultz 522bb8fdf2
Add ability to modify ul classes
The second parameter to the function was not being utilized.  I have made it output any classes passed to the class tag of the list.
2019-12-13 17:28:06 +07:00
IanDelMar 7a63872671 Move schema markup to body element
Removes schema markup from the div#wrapper-navbar element.
Re-adds the schema markup on the body element via filter.
2019-12-03 08:19:45 +01:00
IanDelMar a2bbdb0eb7 Add understrap_body_attributes()
Function to display attributes for the body element. Attributes may be added via the filter `understrap_body_attributes`
2019-12-03 08:15:46 +01:00
IanDelMar 628601415b No period for summary in file headers
According to WP's PHP documentation standards on file headers. See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#6-file-headers.
2019-11-14 18:16:31 +01:00
IanDelMar a4f7316e08
Use strict comparison 2019-11-09 12:12:25 +01:00
IanDelMar c985f696ac
Add aria-current
See https://core.trac.wordpress.org/changeset/42808
2019-11-09 11:20:38 +01:00
IanDelMar 0efdd8c821
Fix static hero CSS class
Wrong CSS class mistakenly introduced in PR #802
2019-11-07 22:47:45 +01:00
IanDelMar 10c2597b64
Make priority filterable 2019-11-07 22:11:14 +01:00
IanDelMar 95415cd098
Fix identation 2019-11-07 22:05:37 +01:00
IanDelMar 527118bd2f
Add filter to theme default settings 2019-11-07 11:16:16 +01:00
IanDelMar aaf2da70f0
Add missing parameter type 2019-11-03 10:45:09 +01:00
UnderstrapFramework ccd1075c89
Create wp-admin.php 2019-10-29 16:18:14 +00:00
IanDelMar 4ba652edfe
Fix typo 2019-10-06 09:59:56 +02:00
Pavlic 681898a422
Update template-tags.php
Removes unnecessary space inside the author <a> tag and adds it just before opening it
2019-08-28 03:11:43 +03:00
IanDelMar 669b75104b Add DocBlocks
* Add DocBlocks for functions
* Rename argument for `understrap_tiny_mce_style_formats`
* Use wp_json_encode instead of json_encode
2019-07-23 10:31:23 +02:00
IanDelMar 7808d0c4fd
Use bootstrap class 2019-07-22 04:47:29 +02:00
Gary Kealy 2dac14e6c1 Capital S 2019-07-18 17:21:25 +01:00
Gary Kealy bc3c4cb375 Yoda conditions 2019-07-18 16:48:04 +01:00
Gary Kealy afca2ffb56 Remove closing php tags at end of files 2019-07-04 15:58:08 +01:00
Gary Kealy 327e0ddb59 Fix some minor phpcs errors 2019-07-04 15:53:03 +01:00
Gary Kealy 600eb39883 Use shorter ABSPATH check 2019-06-20 09:57:12 +01:00
Thomas A. Reinert 369a06d182
Merge pull request #977 from IanDelMar/patch-7
Fix for #976
2019-06-07 01:06:49 +02:00
Thomas A. Reinert ab9c9a3c78 Fixes #973 2019-06-04 12:55:00 +02:00
IanDelMar 2334f6a9c4
Fix for #976
Declare `wc_reviews_enabled()` and `wc_reviews_enabled()` on frontend only.
2019-05-18 10:36:25 +02:00