Commit Graph

97 Commits

Author SHA1 Message Date
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
UnderstrapFramework 7f9412557d
Merge pull request #1063 from IanDelMar/header-aria-label
Add aria-label to <nav>
2019-12-13 11:11:48 +00:00
UnderstrapFramework 063e91e2b5
Merge pull request #1064 from IanDelMar/header-strict-comparision
Use strict comparison
2019-12-13 11:05:15 +00:00
UnderstrapFramework d7a7be8a3b
Merge pull request #1072 from IanDelMar/body-attributes
Body attributes
2019-12-13 11:04:04 +00:00
IanDelMar e980abf7ca
Merge branch 'master' into header-aria-label 2019-12-13 08:30:59 +01:00
IanDelMar a5c9784349
Add aria-labelledby 2019-12-13 08:26:10 +01:00
UnderstrapFramework fe9d3fbc37
Merge pull request #1062 from IanDelMar/header-blank-line
Remove blank line
2019-12-04 22:26:58 +00:00
UnderstrapFramework a2311c8f67
Merge pull request #1069 from IanDelMar/file-headers-period
No period for summary in file headers
2019-12-04 22:26:35 +00:00
IanDelMar c636a000ec
Add id to nav 2019-12-03 09:38:02 +01:00
IanDelMar 5877e21228 Use heading instead of aria-label
See #1063 for a discussion
2019-12-03 08:50:22 +01: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 b64ba79f79 Use strict comparison 2019-11-12 08:56:12 +01:00
IanDelMar 27824b3c9c Add aria-label to <nav> 2019-11-12 08:51:05 +01:00
IanDelMar c159b33564 Remove blank line 2019-11-12 08:47:45 +01:00
Gary Kealy 600eb39883 Use shorter ABSPATH check 2019-06-20 09:57:12 +01:00
Holger 1e90d3c65f
Merge pull request #967 from IanDelMar/wp_body_open
Add support for wp_body_open - thx @IanDelMar !
2019-05-08 14:17:09 +02:00
IanDelMar 6076c91553
Improve code simplicity
It is sufficient to call the `do_action( 'wp_body_open' )` directly instead of the wrapper. See https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook/#comment-43714
2019-05-03 08:33:40 +02:00
IanDelMar 0e76b4008d
Add support for wp_body_open
5.2 will introduce a new `wp_body_open()` function that is used to trigger a `wp_body_open` action. This action is intended to allow developers to inject code immediately following the opening `<body>` tag. Themes are encouraged to begin using this hook as soon as 5.2 is released.

See https://make.wordpress.org/core/2019/04/24/miscellaneous-developer-updates-in-5-2/
2019-05-01 19:03:52 +02:00
IanDelMar 88cf1467d2
Remove superfluous space 2019-01-04 10:50:50 +01:00
IanDelMar 4b3a789172 Add mobile-web-app meta as action
Allows a child theme to remove the meta tags without changing the header.php.
2018-11-18 16:28:39 +01:00
IanDelMar 95767decb0 Conditionally add pingback
and allow child theme to remove it without changing the header.php.
2018-11-18 16:26:49 +01:00
IanDelMar ceb5554fd0
Remove default class hfeed
The class `hfeed` is correctly added to non-singular pages only via the `understrap_body_classes` filter and should not be present on each page regardless of whether it is a feed or not.
2018-10-12 16:32:32 +02:00
IanDelMar 45c9d1adb7 Prevent direct access 2018-09-10 23:59:04 +02:00
IanDelMar 43127350b5
Focusable 'Skip to content'
* make 'Skip to content' focusable for sighted keyboard users
* .sr-only makes .screen-reader-text obsolete
2018-09-02 19:30:14 +02:00
IanDelMar afeaa14b82
Make aria-label translatable
Content of aria-label may get read out loud and thus should be translatable.
2018-08-20 18:56:15 +02:00
Benjamin PONGY 2593581e53
Remove the X-UA-Compatible meta tag
https://stackoverflow.com/questions/6771258/what-does-meta-http-equiv-x-ua-compatible-content-ie-edge-do/6771584#6771584
2018-08-06 10:29:49 +02:00
KoenemannH a568171e80 Moving nabber to the right by default 2018-07-03 08:44:04 +02:00
William Patton 4f0295ebea Modify walker with 'understarp' prefixed on class name and as textdomain 2018-04-17 17:18:34 +01:00
William Patton cea18747d9 Swap customized walker to latest upstream wp-bootstrap-navwalker class 2018-04-17 17:08:26 +01:00
Holger Könemann 2743321cd1 define a nicer navbar bg type 2018-04-11 21:05:08 +02:00
Alex Wright 2620580373 Remove unnecessary wrapper classes from #wrapper-navbar 2018-03-20 23:24:05 -05:00
Thomas A. Reinert d32af2864e Fixes invalid code due to WP´s itemprop insertion
See https://github.com/holger1411/understrap/issues/578 for explanation.
2018-03-02 17:27:12 +01:00
koenemann 4c5c07baa1 Basic guideline adjustments 2017-11-27 09:02:16 +01:00
koenemann 4ca76066af Moving hamburger toggle to the right 2017-08-18 09:52:07 +02:00
koenemann e7a2e203e2 Rebuild navber with new BS4 Beta functions 2017-08-17 11:27:11 +02:00
Chuck Reynolds ee1a92710c update Responsive meta tag for BS4 recc
[BS4 Reference](https://getbootstrap.com/docs/4.0/getting-started/introduction/#responsive-meta-tag)
2017-08-13 20:49:16 -07:00
Holger Könemann 828654fb6f moving toggle to the right (?) 2017-08-11 20:47:30 +02:00
Holger Könemann 333f1c90a8 readjust h1 brand name styling with link 2017-02-04 11:15:22 +01:00
koenemann c94d17603a just starting a new line, removing tab 2017-02-02 09:18:13 +01:00
koenemann b0fcba1829 fixing some PHPCBF issues 2017-01-27 08:15:34 +01:00
koenemann 7148f4f7b7 Adding h1 markup to navbar-brand on front/homepage 2017-01-24 08:47:53 +01:00
Holger Könemann fda8575b1a fixing .container-fluid in navbar bug 2017-01-19 11:29:09 +01:00
Holger Könemann 9fc94678a2 refactoring the navbar bg color back to the dark one 2017-01-07 11:39:25 +01:00
Holger Könemann 50404dba3b light navbar 2017-01-06 20:44:05 +01:00
Holger Könemann 80004d7755 adding bg-inverse navbar 2017-01-06 20:41:04 +01:00
Holger Könemann e543a0295e adding a container around the navbar 2017-01-06 20:30:34 +01:00
Holger Könemann 1abde3bdf7 tryout the light navbar 2017-01-06 20:25:17 +01:00
Holger Könemann 673daac08f adding the darker navbar again 2017-01-06 20:15:59 +01:00