Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#495] Setting up a default Navigation #556

Merged
merged 9 commits into from
Mar 6, 2024
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