Skip to content

Commit

Permalink
[#495] Setting up default Navigation (#556)
Browse files Browse the repository at this point in the history
* [#495] Setting up basic test with nav links

* [#495] testing out pattern for custom menu

* [#495] pulling in the created pages into the new nav

* [#495] adding notes for TODO

* [#495] getting active nav post id

* [#495] A couple of tweaks, potential bug fixes

* [#495] Some fixes/adjustments

* [#495] Used Verified hook for Navigation Changes

* [#495] Misc Fixes (#591)

* [#495] Setting up basic test with nav links

* [#495] testing out pattern for custom menu

* [#495] pulling in the created pages into the new nav

* [#495] adding notes for TODO

* [#495] getting active nav post id

* [#495] A couple of tweaks, potential bug fixes

* [#495] Some fixes/adjustments

* [#495] Used Verified hook for Navigation Changes

* [#495] Fix nav + other bug fixes

---------

Co-authored-by: Nathan Schmidt <[email protected]>

---------

Co-authored-by: Brian DiChiara <[email protected]>
Co-authored-by: Brian DiChiara <[email protected]>
  • Loading branch information
3 people authored Mar 6, 2024
1 parent f1e1756 commit 6a0f00f
Show file tree
Hide file tree
Showing 8 changed files with 402 additions and 4,419 deletions.
5 changes: 2 additions & 3 deletions client-mu-plugins/goodbids/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,13 @@
"wpackagist-plugin/svg-support": "^2.5",
"wpackagist-plugin/user-switching": "^1.7",
"wpackagist-plugin/woocommerce": "^8.6",
"wpackagist-plugin/woocommerce-gateway-stripe": "^7.9",
"wpackagist-plugin/woocommerce-services": "^2.4",
"wpackagist-plugin/woocommerce-gateway-stripe": "^8.0",
"wpackagist-plugin/woocommerce-services": "^2.5",
"wpengine/advanced-custom-fields-pro": "^6.2"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"squizlabs/php_codesniffer": "^3.7",
"wp-cli/wp-cli-bundle": "^2.10",
"wp-coding-standards/wpcs": "^3.0"
},
"extra": {
Expand Down
4,546 changes: 184 additions & 4,362 deletions client-mu-plugins/goodbids/composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client-mu-plugins/goodbids/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"prepare": "cd ../../ && husky install",
"start": "wp-scripts start",
"staged": "lint-staged",
"translate": "vendor/bin/wp i18n make-pot ./ ./languages/goodbids.pot",
"translate": "wp i18n make-pot ./ ./languages/goodbids.pot",
"test:e2e": "wp-scripts test-e2e",
"test:unit": "wp-scripts test-unit-js"
},
Expand Down
16 changes: 16 additions & 0 deletions client-mu-plugins/goodbids/src/classes/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,22 @@ public function load_view( string $_name, array $_data = [] ): void {
require $_path;
}

/**
* Get the contents of a view file.
*
* @since 1.0.0
*
* @param string $_name
* @param array $_data
*
* @return string
*/
public function get_view( string $_name, array $_data = [] ): string {
ob_start();
$this->load_view( $_name, $_data );
return ob_get_clean();
}

/**
* Load Text Domain
*
Expand Down
Loading

0 comments on commit 6a0f00f

Please sign in to comment.