Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
354 commits
Select commit Hold shift + click to select a range
69f0f05
Update GPL link to https
bhubbard Aug 10, 2017
3034f6a
fix typo in fallback
pattonwebz Aug 16, 2017
c32a62f
Add note about BS4 beta.
pattonwebz Aug 16, 2017
d3600ed
Update install example to include `get_template_directory()`.
pattonwebz Aug 16, 2017
592c21f
fix typo
pattonwebz Aug 16, 2017
fff383d
Accessibility: Add an id to dropdown parent for labeling
pattonwebz Aug 16, 2017
edd80d4
Merge pull request #286 from pattonwebz/v4
pattonwebz Aug 19, 2017
5632e4a
Items inside dropdown should have .dropdown-item instead of .nav-link
pattonwebz Aug 19, 2017
15ba6b6
Merge pull request #299 from pattonwebz/v4
pattonwebz Aug 19, 2017
d53b3db
Add note about becoming default walker used within a theme.
pattonwebz Aug 31, 2017
58cd4f3
Merge pull request #296 from pattonwebz/update/readme-change
bhubbard Aug 31, 2017
d3cf6f3
"README.md" file fix, slash has been forgotten
Sep 5, 2017
8d35396
Merge pull request #302 from brunolorente/readme-fix
pattonwebz Sep 14, 2017
7b0d165
Add early support for headers and dividers.
pattonwebz Sep 17, 2017
0cd89c7
Update wp-enforcer version to 0.5.0
pattonwebz Sep 29, 2017
f281dd4
Update: composer type changed from `wordpress-plugin` to `library`.
pattonwebz Oct 10, 2017
d84220a
Version bump to 3.0.0
pattonwebz Oct 10, 2017
31319bb
Correct syntax error in code snippet
kentr Nov 13, 2017
53a3981
Fix error require file wp-bootstrap-navwalker
maghffu Nov 16, 2017
8990f93
Merge pull request #323 from maghffu/patch-1
bhubbard Nov 16, 2017
572472d
Merge pull request #313 from pattonwebz/issue/312
bhubbard Nov 16, 2017
00373b7
Missed comma
Nov 18, 2017
cfb49cb
Slight readme tweaks
pattonwebz Nov 20, 2017
2908e93
Merge pull request #325 from pattonwebz/master
bhubbard Nov 20, 2017
09f9b3f
Merge pull request #324 from jonhaddow/patch-1
bhubbard Nov 20, 2017
5cc335f
Untrick users reading the readme
szepeviktor Nov 26, 2017
7b5176d
Merge pull request #327 from szepeviktor/patch-3
pattonwebz Nov 26, 2017
ba02e60
Run tests for 5.2 and 5.3 on precise
szepeviktor Nov 26, 2017
1d30997
Autofix coding style
szepeviktor Nov 26, 2017
09a1a06
Complete travis builds
szepeviktor Nov 26, 2017
da4b74a
Composer requires PHP 5.3.2+
szepeviktor Nov 26, 2017
f16ea9f
Merge pull request #328 from szepeviktor/master
pattonwebz Nov 30, 2017
71f0e70
Use 1 phpcs config
szepeviktor Dec 1, 2017
038b779
Remove second phpcs config file
szepeviktor Dec 1, 2017
8d7f4fa
Merge pull request #329 from szepeviktor/patch-4
pattonwebz Dec 1, 2017
5874eaa
Merge pull request #320 from kentr/patch-1
pattonwebz Dec 1, 2017
cf032b9
Adjust our sanitization to WP core
szepeviktor Dec 1, 2017
96ab92e
Merge pull request #330 from szepeviktor/sanitize-class
pattonwebz Dec 1, 2017
002cc1c
Adds $depth arg for nav_menu_css_class filter
szepeviktor Dec 1, 2017
8de9ddb
Merge pull request #331 from szepeviktor/add-depth
pattonwebz Dec 1, 2017
50aa6f1
Spellcheck
billoosijok Dec 3, 2017
cce05d0
Merge pull request #333 from billoosijok/master
bhubbard Dec 3, 2017
532d1c5
Merge branch 'update/v4-headers-and-dividers' into v4
pattonwebz Jan 20, 2018
b0c7948
Reworked linkmod and icon support
pattonwebz Jan 20, 2018
6c3437c
Version bump to 4.0.0
pattonwebz Jan 20, 2018
c98c669
Version bump to 3.0.0 and changelog update.
pattonwebz Jan 20, 2018
4c2ae91
Merge branch 'master' into update/change-composer-package-type
pattonwebz Jan 20, 2018
8f15302
Merge final BS3 walker version from branch 'update/change-composer-pa…
pattonwebz Jan 21, 2018
fc521ef
Update readme:
pattonwebz Jan 21, 2018
b9c26a3
Updated the dockblocks functions to show that the '@since' is from WP
pattonwebz Jan 21, 2018
1203982
Remove a piece of debug code.
pattonwebz Jan 21, 2018
6a9aabd
Update function docblocks again to match latest WP versions.
pattonwebz Jan 21, 2018
d58e94d
Pull forward the whitespace preservation updates from core to start_lvl
pattonwebz Jan 21, 2018
5776428
Revert a previous change where first array item contained all classnames
pattonwebz Jan 21, 2018
d55fe1a
Fix fallback output
pattonwebz Jan 21, 2018
2b01903
Pull updates to the WP core start_el function downstream.
pattonwebz Jan 21, 2018
25d2408
Allow Font Awesome 5 style classname for icons
pattonwebz Jan 21, 2018
1334673
Lot of comment and inline docs improvements.
pattonwebz Jan 21, 2018
3303df6
Internal comments improvements
pattonwebz Jan 21, 2018
ddb1475
Update changelog and readme
pattonwebz Jan 21, 2018
cb61b45
Update the file exists test to point to new filename
pattonwebz Jan 21, 2018
81b59e7
Update tests to use the test classes instance of the walker.
pattonwebz Jan 21, 2018
b016fef
Merge branch 'master' into v4
pattonwebz Jan 21, 2018
33557a5
Merge pull request #338 from pattonwebz/v4
pattonwebz Jan 21, 2018
77825d7
Fix tests bootstraper requiring old walker file.
pattonwebz Jan 21, 2018
7ef4a1d
Ran phpcbf to fixx some standards issues.
pattonwebz Jan 21, 2018
b420ce9
Merge branch 'v4' of github.com:twittem/wp-bootstrap-navwalker into v4
pattonwebz Jan 21, 2018
6696780
fix typo in tests
pattonwebz Jan 21, 2018
88959a7
Merge pull request #318 from pattonwebz/update/change-composer-packag…
bhubbard Jan 22, 2018
839472e
Fix issue with $classes set to string instead of item pushing to array
pattonwebz Jan 23, 2018
2d73cb0
Add tests for fallback function
pattonwebz Jan 24, 2018
d5aa7fc
resync with master
pattonwebz Jan 25, 2018
98173df
Fix variable not being defined for all paths.
pattonwebz Jan 25, 2018
8f7b86a
Remove unneeded early initialization of variables in start_lvl
pattonwebz Jan 25, 2018
29e1f33
Moves parts of start_lvl to individual functions
pattonwebz Jan 25, 2018
9f77f2b
Adds existence tests for the new functions.
pattonwebz Jan 25, 2018
59e3e79
Add a test for the various opener and closer for linkmod elements
pattonwebz Jan 25, 2018
642fbd7
Add .sr-only, .far, .fal, fab to extra link classes catcher.
pattonwebz Jan 31, 2018
4b5af11
Tag a filter from wp core
pattonwebz Jan 31, 2018
122b865
Add ability to put .sr-only on the <a> making icon-only items possible
pattonwebz Feb 1, 2018
55bccb0
Apply some PHPCS fixes
pattonwebz Feb 1, 2018
2c2abd5
Remove the rule skip on name conventions - we now have `class-` prefix
pattonwebz Feb 1, 2018
9e68ecd
Fix more PHPCS nags
pattonwebz Feb 1, 2018
2d6a8b6
Add a note to the readme about icon only menu items
pattonwebz Feb 1, 2018
cca7006
Add a very quick note about caching navs to the readme
pattonwebz Feb 1, 2018
80f65b6
Added a missing `<?php` tag in a code example opener
pattonwebz Feb 1, 2018
1773f72
Add upgrade note highlighting notable changes for people moving from …
pattonwebz Feb 10, 2018
8ddb536
Merge pull request #339 from wp-bootstrap/v4
pattonwebz Feb 10, 2018
384201b
Make string in fallback method translatable
pattonwebz Feb 11, 2018
c1b0158
Version bumb to 4.0.1
pattonwebz Feb 11, 2018
6620271
Merge branch 'master' of github.com:twittem/wp-bootstrap-navwalker
pattonwebz Feb 11, 2018
f592e27
Fix dropdown opener having empty string for href value.
pattonwebz Feb 20, 2018
bf6dc87
Add unit tests for the function used to seporate classnames
pattonwebz Feb 22, 2018
1ac8e4d
Use more accurate regex for matching icon and linkmod classnames
pattonwebz Feb 22, 2018
8743bf9
Set package type to be library again
pattonwebz Feb 22, 2018
2c7c73b
Version bumber to 4.0.2
pattonwebz Feb 22, 2018
ccd0439
Add php 7.1 & 7.2 to travis tests and drop the 5.3 multisite test
pattonwebz Feb 22, 2018
562dbc0
Fix PHPCS closing comment nags
pattonwebz Feb 22, 2018
5b86a39
Fix a count() error in one of the unit tests
pattonwebz Feb 22, 2018
96a0b43
Allow mixed cases for icon and linkmod class matchers
pattonwebz Feb 22, 2018
76d36c9
Apply PHPCS fixes on the test script.. for reasons...
pattonwebz Feb 23, 2018
815eefe
Convert tabs to spaces
pattonwebz Feb 25, 2018
11e3e90
Merge pull request #347 from pattonwebz/v4-dev
pattonwebz Feb 25, 2018
522cd98
fix variable name typo
bikubi Feb 28, 2018
0e8cc95
Merge pull request #349 from bikubi/master
pattonwebz Mar 1, 2018
ef30e96
Fix get_template_directory function call when importing navwalker class
burjulius Mar 10, 2018
8b0200d
Merge pull request #354 from burjulius/bugfix/class-import
pattonwebz Mar 10, 2018
b0eb992
Temporarily disable composer autoload for package, simplify wp-enforc…
pattonwebz Mar 30, 2018
c399876
Merge branch 'master' of github.com:twittem/wp-bootstrap-navwalker
pattonwebz Mar 30, 2018
2b62c9b
version bump
pattonwebz Mar 30, 2018
0359261
Merge pull request #361 from pattonwebz/drop-composer-autoload
pattonwebz Mar 30, 2018
30274b3
Depth param added filter `nav_menu_link_attributes`
amostajo Apr 7, 2018
0439f20
Update class-wp-bootstrap-navwalker.php
ousid Apr 11, 2018
0014c7e
Revert some of the spacing changes and apply some WP PHPCS fixes.
pattonwebz Apr 14, 2018
5a21221
Merge branch 'senbai-master'
pattonwebz Apr 14, 2018
3bb3d0b
Merge branch 'master' of git://github.com/amostajo/wp-bootstrap-navwa…
pattonwebz Apr 14, 2018
7e30402
Merge branch 'amostajo-master'
pattonwebz Apr 14, 2018
2592650
Update unit tests to catch new 'dropdown-item-text' linkmod.
pattonwebz Apr 14, 2018
87228b0
Add `dropdown-item-text` linkmod support
pattonwebz Apr 14, 2018
efc53a3
Version bump 4.1.0
pattonwebz Apr 14, 2018
e662885
Add note to readme about walker being fully compliant with Theme Revi…
pattonwebz Apr 15, 2018
9064ab9
Docs fix: correct old reference to `depth` handling in inline comeent
pattonwebz Apr 18, 2018
190e257
README.md codeblock cleanups and adding note about `dropdown-item-text`
pattonwebz Apr 18, 2018
6b4880b
Merge pull request #374 from pattonwebz/master
pattonwebz Apr 21, 2018
ab716b2
schema markup addition
jakewhiteley Jun 3, 2018
096c5a2
Manual phpcs edits
jakewhiteley Jun 3, 2018
1411f09
Additional standards fixes
jakewhiteley Jun 3, 2018
e4954ca
Added yoda condition
jakewhiteley Jun 3, 2018
ef38f31
Remove phpdoc rogue 'type'
jakewhiteley Jun 3, 2018
d2ea1e3
Remove short array syntax
jakewhiteley Jun 3, 2018
c3b0cdd
Add require to function (improved installation)
zethzeth Aug 24, 2018
8e62049
Correct typo in function name
pattonwebz Oct 30, 2018
c6236a8
Update unit tests to match new function name
pattonwebz Oct 30, 2018
4290f53
Revert "Correct typo in function name"
pattonwebz Oct 30, 2018
fb53150
Correct typeo in function name 'seporate' -> 'separate'
pattonwebz Oct 30, 2018
26a280a
Merge pull request #400 from wp-bootstrap/fix/issue/395/typo-in-funct…
pattonwebz Oct 30, 2018
7ec0e85
Closing element function call fix
szepeviktor Nov 14, 2018
2bb3e58
Implement correct WP plugin meta
szepeviktor Nov 14, 2018
8cc5286
Align asterix
szepeviktor Nov 14, 2018
493668d
Fix bug in the WordPress Customizer preview related to the CSS classe…
Jan 26, 2019
7f746bc
escaping improvements
tomjn Mar 21, 2019
f9d3130
Update README.md
Zebedeu Mar 25, 2019
2798a0b
Add menu item and link classes
May 9, 2019
535c45a
Add aria-current
IanDelMar Aug 14, 2019
c4109a4
Add require to function (improved installation)
zethzeth Aug 24, 2018
f2dcefb
Update README.md
Jun 3, 2019
4b18b35
Merge branch 'maxwelljordanwhite-maxwelljordanwhite-patch-1'
pattonwebz Oct 2, 2019
b6de02e
Merge branch 'patch-1' of git://github.com/tomjn/wp-bootstrap-navwalk…
pattonwebz Oct 2, 2019
dc4d76e
Merge branch 'tomjn-patch-1'
pattonwebz Oct 2, 2019
def0aa6
Merge branch 'fix-missing-class' of git://github.com/vlasscontreras/w…
pattonwebz Oct 2, 2019
5ab1c4c
Merge branch 'vlasscontreras-fix-missing-class'
pattonwebz Oct 2, 2019
d3d38f3
WPCS: Use strict comparison for array compair for `sr-only` class
pattonwebz Oct 2, 2019
ea9c491
Merge branch 'patch-4' of git://github.com/szepeviktor/wp-bootstrap-n…
pattonwebz Oct 2, 2019
223f70c
Merge branch 'szepeviktor-patch-4'
pattonwebz Oct 2, 2019
36446cf
Use braces on if statements
pattonwebz Oct 2, 2019
f7e030e
Merge branch 'patch-5' of git://github.com/szepeviktor/wp-bootstrap-n…
pattonwebz Oct 2, 2019
92a0bcd
Merge branch 'szepeviktor-patch-5'
pattonwebz Oct 2, 2019
8515a9f
Merge branch 'patch-1' of git://github.com/IanDelMar/wp-bootstrap-nav…
pattonwebz Oct 2, 2019
18c44b3
Merge branch 'IanDelMar-patch-1'
pattonwebz Oct 2, 2019
5d39044
Version bump to 4.3.0
pattonwebz Oct 2, 2019
d856aae
Version bumber v4.3.0
pattonwebz Oct 2, 2019
15b7265
Update README.md
BraydenGray416 Oct 22, 2019
6e65b97
Update README.md
BraydenGray416 Oct 22, 2019
58e7ce1
Merge pull request #443 from BraydenGray416/patch-2
bhubbard Nov 8, 2019
4666db1
Merge pull request #442 from BraydenGray416/patch-1
bhubbard Nov 8, 2019
1566132
Add rel="noopener noreferrer" to target="_blank"
IanDelMar Nov 8, 2019
d755253
Remove esc_html() from $item->title
IanDelMar Nov 9, 2019
fbe7a35
Rewrite fallback()
IanDelMar Nov 9, 2019
932fa35
Add @return tag
IanDelMar Nov 9, 2019
6a3d6de
Fix container class
IanDelMar Nov 10, 2019
5c6823c
Update fallback output test for logged-in users
IanDelMar Nov 10, 2019
960b7ba
Fix PHPCS
IanDelMar Nov 10, 2019
f6aef71
Fix PHPCS
IanDelMar Nov 10, 2019
cd6bb26
Use $has_children
IanDelMar Nov 11, 2019
6869d23
Follow WPs PHP documentation standards
IanDelMar Nov 14, 2019
3d0cf30
Merge pull request #450 from IanDelMar/comments
pattonwebz Nov 18, 2019
bfccfda
Introduce @phpstan
szepeviktor Dec 15, 2019
6c40c7f
Conform WPCS
szepeviktor Dec 15, 2019
a960902
Drop default value for title attribute
IanDelMar Apr 17, 2020
50683bf
Update README.md adding translation function to example code (#477)
pattonwebz Jul 1, 2020
c7b95e8
Merge pull request #453 from szepeviktor/phpstan3
pattonwebz Jul 20, 2020
6d51e4f
Merge pull request #396 from zethzeth/Add_require_to_function_in_read…
pattonwebz Jul 20, 2020
54bfbfd
Merge pull request #381 from jakewhiteley/master
pattonwebz Jul 20, 2020
11ddd85
Merge branch 'master' into patch-1
pattonwebz Jul 20, 2020
2cb4731
Merge pull request #418 from Zebedeu/patch-1
pattonwebz Jul 20, 2020
d14a4cc
Merge branch 'master' into noopener-noreferrer
pattonwebz Jul 20, 2020
08ce767
Merge pull request #444 from IanDelMar/noopener-noreferrer
pattonwebz Jul 20, 2020
386ba24
Merge branch 'master' into has-children
pattonwebz Jul 20, 2020
f4f5fe3
Merge pull request #449 from IanDelMar/has-children
pattonwebz Jul 20, 2020
ec343bc
Fix incorrect spacing added in my merge conflict resolutions
pattonwebz Jul 20, 2020
6593af4
Merge pull request #468 from IanDelMar/patch-1
pattonwebz Jul 20, 2020
deb66cd
Add note to readme that master may not be stable. Use tag 4.3.0 instead
pattonwebz Jul 20, 2020
bff47bd
Merge pull request #478 from wp-bootstrap/william/tweak/add-not-in-re…
pattonwebz Jul 20, 2020
6e44c11
Add required PHP version
IanDelMar Jul 20, 2020
2de6bbf
Merge branch 'master' into fallback
IanDelMar Jul 21, 2020
4990e90
Remove role="menu"
IanDelMar Jul 21, 2020
7790729
Fix Undefined property: stdClass::$has_children
IanDelMar Jul 21, 2020
43a2bd0
Fix missing caret
IanDelMar Jul 21, 2020
2604259
Merge pull request #481 from IanDelMar/undefined-property
pattonwebz Jul 21, 2020
4c64d9f
Merge pull request #479 from IanDelMar/patch-2
pattonwebz Jul 21, 2020
7227c95
Merge pull request #480 from IanDelMar/role-menu
pattonwebz Jul 21, 2020
e3af960
Merge pull request #446 from IanDelMar/fallback
pattonwebz Jul 21, 2020
c7abf4a
Merge pull request #445 from IanDelMar/remove-esc-html
pattonwebz Jul 21, 2020
e63974c
Merge branch 'master' into fix-wp-customizer-preview
pattonwebz Jul 21, 2020
1070ce3
Merge pull request #410 from lucianovdveekens/fix-wp-customizer-preview
pattonwebz Jul 21, 2020
7d21d0f
Move flatted to inside of the class
pattonwebz Jul 21, 2020
4268379
Separate CI jobs
szepeviktor Jul 21, 2020
9b6cd7c
Merge pull request #482 from szepeviktor/fix/ci
pattonwebz Jul 21, 2020
4d93642
Fix include CI jobs
szepeviktor Jul 21, 2020
05e4e36
Leave wp-enforcer alone
szepeviktor Jul 21, 2020
ccb43c7
Remove wp-enforcer's PHPCS sample config
szepeviktor Jul 21, 2020
933c4d2
Fix PHPStan
szepeviktor Jul 21, 2020
e6b4919
Fix CS
szepeviktor Jul 21, 2020
56b9f81
Merge pull request #483 from szepeviktor/fix/ci
pattonwebz Jul 21, 2020
29e1dd0
Check whether $args['items_wrap'] is set
IanDelMar Aug 14, 2020
4178150
Use PHPUnit 5 instead of PHPUnit 4
IanDelMar Aug 14, 2020
335e807
Use 'plugins' instead of 'engines'
IanDelMar Aug 14, 2020
ffd29c2
Add version
IanDelMar Aug 14, 2020
ec07364
Remove CSCLint
IanDelMar Aug 14, 2020
495b642
Remove ESLint
IanDelMar Aug 14, 2020
f8047b3
Remove SCSS Lint
IanDelMar Aug 14, 2020
73a7cdc
Remove JSHint
IanDelMar Aug 14, 2020
1877719
Use 'exclude_patterns' instead of 'exclude_paths'
IanDelMar Aug 14, 2020
2eabf8d
Add 'vendor' to exclusions
IanDelMar Aug 14, 2020
a5bcd05
Remove some exclude patterns
IanDelMar Aug 14, 2020
80d2414
Remove 'ratings'
IanDelMar Aug 14, 2020
5a6ad43
Re-order plugins and exludes alphabetically
IanDelMar Aug 14, 2020
78e3ef3
Remove JS from duplication plugin
IanDelMar Aug 14, 2020
6f84089
Update phpcodesniffer plugin config
IanDelMar Aug 14, 2020
3fe78df
Add shellcheck plugin
IanDelMar Aug 14, 2020
1af3960
Bump squizlabs/php_codesniffer from 3.5.5 to 3.5.6
dependabot-preview[bot] Aug 14, 2020
8db77d0
Merge pull request #490 from IanDelMar/dependencies
pattonwebz Aug 14, 2020
61096b9
Merge pull request #489 from IanDelMar/codeclimate
pattonwebz Aug 14, 2020
0743d59
Merge pull request #488 from IanDelMar/patch-4
pattonwebz Aug 14, 2020
4b8f54c
Create .gitattributes
IanDelMar Jan 25, 2021
153662c
Merge pull request #503 from IanDelMar/gitattributes
pattonwebz Jan 26, 2021
126ea5e
Fix typo
IanDelMar Jan 26, 2021
c856e94
Merge pull request #504 from IanDelMar/patch-2
pattonwebz Jan 26, 2021
c464afb
Add `container_aria_label` argument
IanDelMar Jan 27, 2021
55b979a
Add instructions for usage with Bootstrap 5
IanDelMar Apr 5, 2021
4bdec67
Merge pull request #516 from wp-bootstrap/IanDelMar/BS5-readme
pattonwebz Jul 26, 2021
52350ae
Add info about missing edit shortcut fix to the readme
IanDelMar Sep 3, 2021
d65abec
Merge pull request #521 from wp-bootstrap/IanDelMar/edit-shortcut-fix
pattonwebz Oct 8, 2021
73766a2
Remove aria-haspopup from dropdowns
IanDelMar Oct 29, 2021
044edfc
Merge pull request #526 from wp-bootstrap/IanDelMar/aria-haspopup
pattonwebz Oct 31, 2021
5d33676
Merge pull request #505 from IanDelMar/container-aria_label
pattonwebz Oct 31, 2021
aa71bd9
Merge pull request #487 from IanDelMar/patch-3
pattonwebz Oct 31, 2021
6652d9b
Add Ian to list of walker authors
pattonwebz Oct 31, 2021
cd2d53f
Merge pull request #527 from wp-bootstrap/add-ian-to-authors
pattonwebz Oct 31, 2021
1179194
Fix non static method calls
IanDelMar Nov 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
version: "2"
plugins:
duplication:
enabled: true
config:
languages:
- php
fixme:
enabled: true
markdownlint:
enabled: true
phpcodesniffer:
enabled: true
config:
file_extensions: "php"
standard: "WordPress-Docs,WordPress-Extra"
phpmd:
enabled: true
checks:
Controversial/CamelCaseMethodName:
enabled: false
Controversial/CamelCaseParameterName:
enabled: false
Controversial/CamelCasePropertyName:
enabled: false
Controversial/CamelCaseVariableName:
enabled: false
CleanCode/ElseExpression:
enabled: false
shellcheck:
enabled: true
exclude_patterns:
- "**.dist"
- "**.lock"
- "**.json"
- "**.txt"
- "tests/*"
- "vendor/**"
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[{.jshintrc,*.json,*.yml}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
25 changes: 25 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files that will always be normalized and converted
# to native line endings on checkout.
.editorconfig text
.gitattributes text
.gitignore text
*.json text
*.md text
*.txt text
*.xml text
*.yml text

# Declare files that will always have LF line endings on checkout.
*.php text eol=lf
*.sh text eol=lf

# Exclude from export.
.* export-ignore
bin export-ignore
tests export-ignore
*.dist export-ignore
CODE_OF_CONDUCT.md export-ignore
composer.* export-ignore
23 changes: 23 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Want to contribute?

Did you know that you could be instrumental in making the WP Bootstrap NavWalker more robust? If you use and love it, why not contribute to the project?

## Contributing for Everyone!

Whether you can barely recognize a filter (or don’t know what that means) or you’ve already authored your own plugins, there are ways for you to pitch in.

### Create Bug Reports

If you find a bug, just [file a GitHub issue](https://github.com/wp-bootstrap/wp-bootstrap-navwalker/issues), that’s all. If you want to prefix the title with a “Question:”, “Bug:”, or the general area of the application, that would be helpful, but by no means mandatory. If you have write access, add the appropriate labels.

If you’re filing a bug, specific steps to reproduce are helpful. Please include the URL of the page that has the bug, along with what you expected to see and what happened instead.

### Write and submit a patch

If you'd like to fix a bug, you can submit a Pull Request.

#### Where to get started?

If you'd like to contribute but don't know where to get started, you can take a look at existing issues:

- ["Good First Bug"](https://github.com/wp-bootstrap/wp-bootstrap-navwalker/labels/%5BTYPE%5D%20GOOD%20FIRST%20BUG) issues are a good entry point to get familiar with the codebase.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Thanks for contributing to WP Bootstrap NavWalker! Pick a clear title and proceed. -->

#### Steps to reproduce the issue:

#### What I expected:

#### What happened instead:

<!--
PLEASE NOTE
- These comments won't show up when you submit the issue.
- Everything is optional, but try to add as many details as possible.
- If requesting a new feature, explain why you'd like to see it added.
- This issue tracker is not for support.
-->
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Fixes #

#### Changes proposed in this Pull Request:

*

#### Testing instructions:

*

<!-- Add the following only if this is meant to be in changelog -->
#### Proposed changelog entry for your changes:
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/
/phpcs.xml
75 changes: 75 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
language: php

os:
- linux

dist: bionic

php:
- 7.4
- 7.3
- 7.2
- 7.1
- nightly

env:
- WP_VERSION=latest WP_MULTISITE=0 PHPUNIT_VERSION="^5.7"
- WP_VERSION=latest WP_MULTISITE=1 PHPUNIT_VERSION="^5.7"

services:
- mysql

jobs:
include:
- php: 7.0
dist: xenial
env:
- WP_VERSION=latest WP_MULTISITE=0 PHPUNIT_VERSION="^5.7"
- php: 7.0
dist: xenial
env:
- WP_VERSION=latest WP_MULTISITE=1 PHPUNIT_VERSION="^5.7"
- php: 5.6
dist: xenial
env:
- WP_VERSION=latest WP_MULTISITE=0 PHPUNIT_VERSION="^5.7"
- php: 5.6
dist: xenial
env:
- WP_VERSION=latest WP_MULTISITE=1 PHPUNIT_VERSION="^5.7"
- name: "Coding Standars"
php: 7.4
install:
- composer require --dev wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer
# Counter wp-enforcer
- rm -f ./phpcs.xml
script:
- vendor/bin/phpcs
- name: "Static Analysis"
php: 7.4
install:
- composer require --dev szepeviktor/phpstan-wordpress
script:
- vendor/bin/phpstan analyze
allow_failures:
- php: nightly

branches:
only:
- master

cache:
directories:
- "${HOME}/.composer/cache"

install:
- bin/install-wp-tests.sh wordpress_test root "" localhost "${WP_VERSION}"
- composer global require --dev "phpunit/phpunit=${PHPUNIT_VERSION}"

script:
- "${HOME}/.composer/vendor/bin/phpunit"

notifications:
email:
on_success: never
on_failure: change
90 changes: 90 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#CHANGELOG

## [4.3.0]
- Added an `aria-current` item.
- Added `.nav-item` for the `<li>` and `.nav-link` for the `<a>` in fallback function.
- Some escape improvements.
- Don't pass `$attributes` to element closing function as it's ignored anyway.

## [4.2.0]
- Fix typo in function name 'seporate'->'separate' (private function, no need to add back-compat).

## [4.1.0]
- Prevent error `trying to get property of non-object` when no menu is set to a location using the walker.
- Add `$depth` as 4th parameter passed to `nav_menu_link_attributes`.
- Add support for `dropdown-item-text` linkmod type.
## [4.0.3]
- Drop composer class autoload statement.

## [4.0.2]
- Fix dropdown opener having empty string for href value.
- More accurate regex matching of icon and linkmod classnames.
- Changed composer package type to `library` from `wordpress-plugin` again.
- Tests: Add unit tests for the function that separates classnames for the walker.
- Fix case sensitive matching to now match mixes of upper and lower case.

## [4.0.1]
- Fix untranslated string in fallback (this was lost in transition between v3 and v4, fixed again).

## [4.0.0]
- Added a prefix on @since tags to highlight when they refer to WP core instead of this class.
- Rework of `start_lvl()` and `start_el()` based on latest `Walker_Nav_Menu` Class from WP core.
- Whitespace preservation method improvements.
- Added `nav_menu_item_args` filter and `nav_menu_item_title` brought in at WP 4.4.0
- Use `the_title` filter prior to `nav_menu_item_title`.
- Added a labelled-by attribute to dropdowns for accessibility.
- Links inside dropdown have `.dropdown-item` instead of `.nav-link`.
- Remove `<span class="carat">` after parent dropdown items.
- Support `echo` arg in fallback menu. props: @toddlevy
- Add `.active` to parent when a child is current page. props: @zyberspace
- Fix to correct output of dropdown atts and styles when depth passed to wp_nav_menu is <= 1. props: @chrisgeary92
- Move icon output to a local var instead of modifying and clearing a global object.
- Reassign filtered classes back to $classes array so that updated classes can be accessed later if needed. props: @lf-jeremy
- Update to work with Bootstrap v4.
- Added `.nav-item` and `.nav-link` to `<li>` and `<a>` respectively.
- Dropped support for using title attribute to add link modifiers and icons.
- Added support for link modifiers and icons through WP Menu Builder 'classes' input.
- Icon support is for Font Awesome 4/5 and Glyphicons icons.
- Added unit tests for the `fallback` method.
- Added code to handle icon-only menus.

## [3.0.0]

- Fix untranslated string in fallback.
- Instruct screenreaders to ignore icons when present.
- Added basic unit tests and travis config.
- Swapped to IF statements with curly braces.
- Adds `$depth` arg for nav_menu_css_class filter.
- Fix sanitization function used for class output in fallback.
- Changed composer package type to `library` from `wordpress-plugin`.

## [2.0.5] - 2016-011-15

- Fixed all reported issues by WP Enforcer.
- Fixed several Code Climate issues.

## [2.0.4]

- Updated fallback function to accept args array from `wp_nav_menu`.

## [2.0.3]

- Included a fallback function that adds a link to the WordPress menu manager if no menu has been assigned to the theme location.

## [2.0.2]

- Small tweak to ensure carets are only displayed on top level dropdowns.

## [2.0.1]

- Added missing active class to active menu items.

## [2.0.0]

- Class was completly re-written using the latest Wordpress 3.6 walker class.
- Now full supports Bootstrap 3.0+
- Tested with wp_debug & the Theme Check plugin.


---
<small>All notable changes to this project will be documented in this file. Please read [Keep a Change Log](http://keepachangelog.com) for more information. This project adheres to [Semantic Versioning](http://semver.org).</small>
46 changes: 46 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
Loading