+ + + +
diff --git a/package-lock.json b/package-lock.json index 564a99e..d611dc8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23428,6 +23428,10 @@ "resolved": "themes/wporg-5ftf", "link": true }, + "node_modules/wporg-5ftf-2024": { + "resolved": "themes/wporg-5ftf-2024", + "link": true + }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -23608,6 +23612,13 @@ "sass": "1.49.9" } }, + "themes/wporg-5ftf-2024": { + "version": "1.0.0", + "license": "GPL-2.0-or-later", + "devDependencies": { + "@wordpress/scripts": "28.6.0" + } + }, "themes/wporg-5ftf/node_modules/@wordpress/browserslist-config": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/@wordpress/browserslist-config/-/browserslist-config-2.7.0.tgz", diff --git a/package.json b/package.json index b042480..c1d679d 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,14 @@ "scripts": { "setup:tools": "npm install && composer install && TEXTDOMAIN=wporg-5ftf composer exec update-configs", "setup:wp": "wp-env run cli bash env/setup.sh", - "build:theme": "npm run build --workspace=wporg-5ftf", - "start:theme": "npm run watch --workspace=wporg-5ftf", + "build:old-theme": "npm run build --workspace=wporg-5ftf", + "start:old-theme": "npm run watch --workspace=wporg-5ftf", + "build:theme": "npm run build --workspace=wporg-5ftf-2024", + "start:theme": "npm run watch --workspace=wporg-5ftf-2024", "update:tools": "composer update && TEXTDOMAIN=wporg-5ftf composer exec update-configs", "wp-env": "wp-env", - "lint:php": "composer lint ./themes/wporg-5ftf ./plugins/wporg-5ftf", - "format:php": "composer format ./themes/wporg-5ftf ./plugins/wporg-5ftf", + "lint:php": "composer lint ./themes/wporg-5ftf ./themes/wporg-5ftf-2024 ./plugins/wporg-5ftf", + "format:php": "composer format ./themes/wporg-5ftf ./themes/wporg-5ftf-2024 ./plugins/wporg-5ftf", "test:php": "wp-env run tests-cli ./wp-content/mu-plugins/vendor/bin/phpunit -c ./wp-content/phpunit.xml.dist" }, "workspaces": [ diff --git a/themes/wporg-5ftf-2024/functions.php b/themes/wporg-5ftf-2024/functions.php new file mode 100644 index 0000000..4abef1c --- /dev/null +++ b/themes/wporg-5ftf-2024/functions.php @@ -0,0 +1,32 @@ + __( 'For individuals', 'wporg-5ftf' ), + 'url' => '/for-individuals/', + ); + $menu[] = array( + 'label' => __( 'For organizations', 'wporg-5ftf' ), + 'url' => '/for-organizations/', + ); + $menu[] = array( + 'label' => __( 'Handbook', 'wporg-5ftf' ), + 'url' => '/handbook/', + ); + $menu[] = array( + 'label' => __( 'Pledges', 'wporg-5ftf' ), + 'url' => '/pledges/', + ); + $menu[] = array( + 'label' => __( 'Contact', 'wporg-5ftf' ), + 'url' => '/contact/', + ); + $menu[] = array( + 'label' => __( 'My pledges', 'wporg-5ftf' ), + 'url' => '/my-pledges/', + 'className' => 'has-separator', + ); + + return array( + 'main' => $menu, + ); +} diff --git a/themes/wporg-5ftf-2024/package.json b/themes/wporg-5ftf-2024/package.json new file mode 100644 index 0000000..d0b3350 --- /dev/null +++ b/themes/wporg-5ftf-2024/package.json @@ -0,0 +1,28 @@ +{ + "name": "wporg-5ftf-2024", + "version": "1.0.0", + "description": "", + "author": "WordPress.org", + "license": "GPL-2.0-or-later", + "private": true, + "devDependencies": { + "@wordpress/scripts": "28.6.0" + }, + "eslintConfig": { + "extends": "../../.eslintrc.js" + }, + "stylelint": { + "extends": "../../.stylelintrc", + "ignoreFiles": [ + "**/*.css", + "**/*.css.map" + ] + }, + "scripts": { + "build": "wp-scripts build --experimental-modules", + "start": "wp-scripts start --experimental-modules", + "lint:js": "wp-scripts lint-js src", + "lint:css": "wp-scripts lint-style src/**/*.scss", + "format": "wp-scripts format src -- --config=../../.prettierrc.js" + } +} diff --git a/themes/wporg-5ftf-2024/parts/footer.html b/themes/wporg-5ftf-2024/parts/footer.html new file mode 100644 index 0000000..3e582af --- /dev/null +++ b/themes/wporg-5ftf-2024/parts/footer.html @@ -0,0 +1,2 @@ + + diff --git a/themes/wporg-5ftf-2024/parts/header.html b/themes/wporg-5ftf-2024/parts/header.html new file mode 100644 index 0000000..95b4d0b --- /dev/null +++ b/themes/wporg-5ftf-2024/parts/header.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/wporg-5ftf-2024/patterns/header-front-page.php b/themes/wporg-5ftf-2024/patterns/header-front-page.php new file mode 100644 index 0000000..f0bd520 --- /dev/null +++ b/themes/wporg-5ftf-2024/patterns/header-front-page.php @@ -0,0 +1,39 @@ + + + + + + + + + + + + +
WordPress fuels more than a third of the web. Are you a part of it?
+ + +