diff --git a/mu-plugins/10up-plugin/package.json b/mu-plugins/10up-plugin/package.json
index 377e59a..420d574 100644
--- a/mu-plugins/10up-plugin/package.json
+++ b/mu-plugins/10up-plugin/package.json
@@ -23,8 +23,8 @@
"admin": "./assets/js/admin/admin.js"
},
"paths": {
- "globalStylesDir": "../../themes/10up-theme/assets/css/globals/",
- "globalMixinsDir": "../../themes/10up-theme/assets/css/globals/mixins/"
+ "globalStylesDir": "../../themes/fueled-movies-complete/assets/css/globals/",
+ "globalMixinsDir": "../../themes/fueled-movies-complete/assets/css/globals/mixins/"
}
}
}
diff --git a/mu-plugins/10up-plugin/src/Assets.php b/mu-plugins/10up-plugin/src/Assets.php
index b8a30a6..b01fb2f 100644
--- a/mu-plugins/10up-plugin/src/Assets.php
+++ b/mu-plugins/10up-plugin/src/Assets.php
@@ -8,6 +8,7 @@
namespace TenUpPlugin;
use TenupFramework\Assets\GetAssetInfo;
+use TenupFramework\Module;
use TenupFramework\ModuleInterface;
/**
@@ -17,6 +18,7 @@
*/
class Assets implements ModuleInterface {
+ use Module;
use GetAssetInfo;
/**
diff --git a/mu-plugins/10up-plugin/src/PostMeta/AbstractPostMeta.php b/mu-plugins/10up-plugin/src/PostMeta/AbstractPostMeta.php
index 577e435..ef58f94 100644
--- a/mu-plugins/10up-plugin/src/PostMeta/AbstractPostMeta.php
+++ b/mu-plugins/10up-plugin/src/PostMeta/AbstractPostMeta.php
@@ -7,6 +7,7 @@
namespace TenUpPlugin\PostMeta;
+use TenupFramework\Module;
use TenupFramework\ModuleInterface;
/**
@@ -14,6 +15,8 @@
*/
class AbstractPostMeta implements ModuleInterface {
+ use Module;
+
/**
* The meta_key name.
*
diff --git a/package-lock.json b/package-lock.json
index 8b2f330..d95f2d5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10800,6 +10800,10 @@
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
+ "node_modules/fueled-movies-complete": {
+ "resolved": "themes/fueled-movies-complete",
+ "link": true
+ },
"node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
@@ -19177,10 +19181,6 @@
"streamx": "^2.15.0"
}
},
- "node_modules/tenup-block-theme": {
- "resolved": "themes/10up-block-theme",
- "link": true
- },
"node_modules/tenup-plugin": {
"resolved": "mu-plugins/10up-plugin",
"link": true
@@ -20707,8 +20707,9 @@
}
},
"themes/10up-block-theme": {
- "name": "tenup-block-theme",
+ "name": "tenup-block-theme-old",
"version": "1.0.0",
+ "extraneous": true,
"dependencies": {
"@10up/block-components": "^1.19.4",
"clsx": "^2.1.1"
@@ -20734,6 +20735,14 @@
"engines": {
"node": ">=18.0.0"
}
+ },
+ "themes/fueled-movies-complete": {
+ "version": "1.0.0",
+ "dependencies": {
+ "@10up/block-components": "^1.19.4",
+ "10up-toolkit": "^6.5.0",
+ "clsx": "^2.1.1"
+ }
}
}
}
diff --git a/package.json b/package.json
index 67e8b17..95e3990 100755
--- a/package.json
+++ b/package.json
@@ -15,7 +15,7 @@
"prepare": "TEN=\"$(pwd)\"; UP=\"$(git rev-parse --show-toplevel)\"; TENUP=\"${TEN#\"$UP\"}\"; cd \"$(git rev-parse --show-toplevel)\"; husky .\"${TENUP}\"/.husky",
"build": "npm run build --workspaces --if-present",
"start": "npm run watch",
- "watch:theme": "npm run watch -w=tenup-block-theme",
+ "watch:theme": "npm run watch -w=fueled-movies-complete",
"watch:plugin": "npm run watch -w=tenup-plugin",
"watch": "run-p watch:theme watch:plugin",
"lint-js": "npm run lint-js --workspaces --if-present",
diff --git a/themes/10up-block-theme/.npmrc b/themes/10up-block-theme/.npmrc
deleted file mode 100644
index b6f27f1..0000000
--- a/themes/10up-block-theme/.npmrc
+++ /dev/null
@@ -1 +0,0 @@
-engine-strict=true
diff --git a/themes/10up-block-theme/.nvmrc b/themes/10up-block-theme/.nvmrc
deleted file mode 100644
index 3c03207..0000000
--- a/themes/10up-block-theme/.nvmrc
+++ /dev/null
@@ -1 +0,0 @@
-18
diff --git a/themes/10up-block-theme/assets/css/base/layout.css b/themes/10up-block-theme/assets/css/base/layout.css
deleted file mode 100644
index 1dd9703..0000000
--- a/themes/10up-block-theme/assets/css/base/layout.css
+++ /dev/null
@@ -1,20 +0,0 @@
-html {
- scroll-behavior: smooth;
-
- @view-transition { /* stylelint-disable-line at-rule-no-unknown */
- navigation: auto; /* stylelint-disable-line property-no-unknown */
- }
-}
-
-.has-global-padding :where(.has-global-padding.is-layout-constrained) {
- padding-inline-end: var(--wp--style--root--padding-right);
- padding-inline-start: var(--wp--style--root--padding-left);
-}
-
-.is-layout-constrained .wp-block-image.alignwide {
- max-inline-size: min(100%, var(--wp--style--global--wide-size)) !important;
-}
-
-.wp-block-post-template.is-layout-flex {
- align-items: stretch;
-}
diff --git a/themes/10up-block-theme/assets/css/editor-style-overrides.css b/themes/10up-block-theme/assets/css/editor-style-overrides.css
deleted file mode 100644
index d96dedd..0000000
--- a/themes/10up-block-theme/assets/css/editor-style-overrides.css
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Override the styling of the post title in the post editor
- * to make it look as though it's part of the editor frame instead
- * of the post content.
- */
-.edit-post-visual-editor__post-title-wrapper {
- background-color: #fff; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
- border-bottom: 1px solid #e0e0e0;
- margin-bottom: 0;
- margin-top: 0 !important;
- max-width: none;
- overflow: hidden;
- width: 100%;
-
- & .wp-block-post-title {
- color: #000; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
- font-size: 16px;
- height: auto;
- line-height: 1;
- padding: 4px 0;
- }
-}
-
-/*
- * Define the various widths of editor interface elements.
- * Sadly these are not exposed as CSS variables, so we have to
- * manually define them here and update them if they ever change.
- */
-:root {
- --wp--interface--sidebar--width: 280px;
- --wp--interface--secondary--sidebar--width: 350px;
-}
-
-/*
- * Subtract Inspector Controls Width from full viewport width if open
- */
-.interface-interface-skeleton.is-sidebar-opened .editor-styles-wrapper {
- --wp--custom--full-viewport-width: calc(100vw - var(--wp--interface--sidebar--width));
-}
-
-/*
- * Subtract List View Width from full viewport width if open
- */
-.interface-interface-skeleton__secondary-sidebar ~ .interface-interface-skeleton__content .editor-styles-wrapper {
- --wp--custom--full-viewport-width: calc(100vw - var(--wp--interface--secondary--sidebar--width));
-}
-
-/*
- * Subtract both List View and Inspector Controls
- * Width from full viewport width if open
- */
-.interface-interface-skeleton.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar ~ .interface-interface-skeleton__content .editor-styles-wrapper {
- --wp--custom--full-viewport-width: calc(100vw - var(--wp--interface--secondary--sidebar--width) - var(--wp--interface--sidebar--width));
-}
-
-.wp-block-image img[src$=".svg"] {
- height: auto;
-}
-
-.is-root-container {
- min-height: 90dvh;
-}
-
-/*
- * Small editor blocks like the footer social nav are hard to click
- * Setting a min-height so that elements can be selected to edit
- * Prior to this scrollbars overlaped small elements
-*/
-.block-editor-iframe__container {
- min-height: 70px;
-}
diff --git a/themes/10up-block-theme/assets/images/wall-e.jpg b/themes/10up-block-theme/assets/images/wall-e.jpg
deleted file mode 100644
index ca11059..0000000
Binary files a/themes/10up-block-theme/assets/images/wall-e.jpg and /dev/null differ
diff --git a/themes/10up-block-theme/composer.json b/themes/10up-block-theme/composer.json
deleted file mode 100644
index 6c14a66..0000000
--- a/themes/10up-block-theme/composer.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "name": "10up/tenup-theme",
- "type": "wordpress-theme",
- "authors": [
- {
- "name": "10up",
- "email": "info@10up.com"
- }
- ],
- "require": {
- "php": ">=8.3",
- "haydenpierce/class-finder": "^0.4.3"
- },
- "require-dev": {
- "10up/phpcs-composer": "dev-trunk"
- },
- "scripts": {
- "lint": "phpcs .",
- "lint-fix": "phpcbf ."
- },
- "autoload": {
- "psr-4": {
- "TenupBlockTheme\\": "includes/classes/"
- }
- },
- "config": {
- "allow-plugins": {
- "dealerdirect/phpcodesniffer-composer-installer": true
- }
- }
-}
diff --git a/themes/10up-block-theme/composer.lock b/themes/10up-block-theme/composer.lock
deleted file mode 100644
index 9a2cb26..0000000
--- a/themes/10up-block-theme/composer.lock
+++ /dev/null
@@ -1,813 +0,0 @@
-{
- "_readme": [
- "This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
- "This file is @generated automatically"
- ],
- "content-hash": "b8e0d1c59a064d11f91fbdc4897bab5b",
- "packages": [
- {
- "name": "haydenpierce/class-finder",
- "version": "0.4.4",
- "source": {
- "type": "git",
- "url": "git@gitlab.com:hpierce1102/ClassFinder.git",
- "reference": "94c602870ddf8d4fa2d67fb9bae637d88f9bd76e"
- },
- "dist": {
- "type": "zip",
- "url": "https://gitlab.com/api/v4/projects/hpierce1102%2FClassFinder/repository/archive.zip?sha=94c602870ddf8d4fa2d67fb9bae637d88f9bd76e",
- "reference": "94c602870ddf8d4fa2d67fb9bae637d88f9bd76e",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "php": ">=5.3"
- },
- "require-dev": {
- "mikey179/vfsstream": "^1.6",
- "phpunit/phpunit": "~9.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "HaydenPierce\\ClassFinder\\": "src/",
- "HaydenPierce\\ClassFinder\\UnitTest\\": "test/unit"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Hayden Pierce",
- "email": "hayden@haydenpierce.com"
- }
- ],
- "description": "A library that can provide of a list of classes in a given namespace",
- "time": "2022-09-26T22:42:59+00:00"
- }
- ],
- "packages-dev": [
- {
- "name": "10up/phpcs-composer",
- "version": "dev-trunk",
- "source": {
- "type": "git",
- "url": "https://github.com/10up/phpcs-composer.git",
- "reference": "75fde1b62cbb551146159154b0d7135d1da0db1c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/10up/phpcs-composer/zipball/75fde1b62cbb551146159154b0d7135d1da0db1c",
- "reference": "75fde1b62cbb551146159154b0d7135d1da0db1c",
- "shasum": ""
- },
- "require": {
- "automattic/vipwpcs": "^3.0",
- "phpcompatibility/phpcompatibility-wp": "^2"
- },
- "require-dev": {
- "dealerdirect/phpcodesniffer-composer-installer": "*",
- "phpcompatibility/php-compatibility": "dev-develop as 9.99.99"
- },
- "default-branch": true,
- "type": "phpcodesniffer-standard",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "10up",
- "homepage": "https://10up.com/"
- }
- ],
- "description": "10up's PHP CodeSniffer Ruleset",
- "support": {
- "issues": "https://github.com/10up/phpcs-composer/issues",
- "source": "https://github.com/10up/phpcs-composer/tree/trunk"
- },
- "time": "2023-12-14T21:42:57+00:00"
- },
- {
- "name": "automattic/vipwpcs",
- "version": "3.0.1",
- "source": {
- "type": "git",
- "url": "https://github.com/Automattic/VIP-Coding-Standards.git",
- "reference": "2b1d206d81b74ed999023cffd924f862ff2753c8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Automattic/VIP-Coding-Standards/zipball/2b1d206d81b74ed999023cffd924f862ff2753c8",
- "reference": "2b1d206d81b74ed999023cffd924f862ff2753c8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4",
- "phpcsstandards/phpcsextra": "^1.2.1",
- "phpcsstandards/phpcsutils": "^1.0.11",
- "sirbrillig/phpcs-variable-analysis": "^2.11.18",
- "squizlabs/php_codesniffer": "^3.9.2",
- "wp-coding-standards/wpcs": "^3.1.0"
- },
- "require-dev": {
- "php-parallel-lint/php-console-highlighter": "^1.0.0",
- "php-parallel-lint/php-parallel-lint": "^1.3.2",
- "phpcompatibility/php-compatibility": "^9",
- "phpcsstandards/phpcsdevtools": "^1.0",
- "phpunit/phpunit": "^4 || ^5 || ^6 || ^7 || ^8 || ^9"
- },
- "type": "phpcodesniffer-standard",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Contributors",
- "homepage": "https://github.com/Automattic/VIP-Coding-Standards/graphs/contributors"
- }
- ],
- "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions",
- "keywords": [
- "phpcs",
- "standards",
- "static analysis",
- "wordpress"
- ],
- "support": {
- "issues": "https://github.com/Automattic/VIP-Coding-Standards/issues",
- "source": "https://github.com/Automattic/VIP-Coding-Standards",
- "wiki": "https://github.com/Automattic/VIP-Coding-Standards/wiki"
- },
- "time": "2024-05-10T20:31:09+00:00"
- },
- {
- "name": "dealerdirect/phpcodesniffer-composer-installer",
- "version": "v1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/PHPCSStandards/composer-installer.git",
- "reference": "4be43904336affa5c2f70744a348312336afd0da"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da",
- "reference": "4be43904336affa5c2f70744a348312336afd0da",
- "shasum": ""
- },
- "require": {
- "composer-plugin-api": "^1.0 || ^2.0",
- "php": ">=5.4",
- "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
- },
- "require-dev": {
- "composer/composer": "*",
- "ext-json": "*",
- "ext-zip": "*",
- "php-parallel-lint/php-parallel-lint": "^1.3.1",
- "phpcompatibility/php-compatibility": "^9.0",
- "yoast/phpunit-polyfills": "^1.0"
- },
- "type": "composer-plugin",
- "extra": {
- "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
- },
- "autoload": {
- "psr-4": {
- "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Franck Nijhof",
- "email": "franck.nijhof@dealerdirect.com",
- "homepage": "http://www.frenck.nl",
- "role": "Developer / IT Manager"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors"
- }
- ],
- "description": "PHP_CodeSniffer Standards Composer Installer Plugin",
- "homepage": "http://www.dealerdirect.com",
- "keywords": [
- "PHPCodeSniffer",
- "PHP_CodeSniffer",
- "code quality",
- "codesniffer",
- "composer",
- "installer",
- "phpcbf",
- "phpcs",
- "plugin",
- "qa",
- "quality",
- "standard",
- "standards",
- "style guide",
- "stylecheck",
- "tests"
- ],
- "support": {
- "issues": "https://github.com/PHPCSStandards/composer-installer/issues",
- "source": "https://github.com/PHPCSStandards/composer-installer"
- },
- "time": "2023-01-05T11:28:13+00:00"
- },
- {
- "name": "phpcompatibility/php-compatibility",
- "version": "9.3.5",
- "source": {
- "type": "git",
- "url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
- "reference": "9fb324479acf6f39452e0655d2429cc0d3914243"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243",
- "reference": "9fb324479acf6f39452e0655d2429cc0d3914243",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3",
- "squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
- },
- "conflict": {
- "squizlabs/php_codesniffer": "2.6.2"
- },
- "require-dev": {
- "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
- },
- "suggest": {
- "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
- "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
- },
- "type": "phpcodesniffer-standard",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "LGPL-3.0-or-later"
- ],
- "authors": [
- {
- "name": "Wim Godden",
- "homepage": "https://github.com/wimg",
- "role": "lead"
- },
- {
- "name": "Juliette Reinders Folmer",
- "homepage": "https://github.com/jrfnl",
- "role": "lead"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors"
- }
- ],
- "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.",
- "homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
- "keywords": [
- "compatibility",
- "phpcs",
- "standards"
- ],
- "support": {
- "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues",
- "source": "https://github.com/PHPCompatibility/PHPCompatibility"
- },
- "time": "2019-12-27T09:44:58+00:00"
- },
- {
- "name": "phpcompatibility/phpcompatibility-paragonie",
- "version": "1.3.3",
- "source": {
- "type": "git",
- "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git",
- "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/293975b465e0e709b571cbf0c957c6c0a7b9a2ac",
- "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac",
- "shasum": ""
- },
- "require": {
- "phpcompatibility/php-compatibility": "^9.0"
- },
- "require-dev": {
- "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
- "paragonie/random_compat": "dev-master",
- "paragonie/sodium_compat": "dev-master"
- },
- "suggest": {
- "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
- "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
- },
- "type": "phpcodesniffer-standard",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "LGPL-3.0-or-later"
- ],
- "authors": [
- {
- "name": "Wim Godden",
- "role": "lead"
- },
- {
- "name": "Juliette Reinders Folmer",
- "role": "lead"
- }
- ],
- "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.",
- "homepage": "http://phpcompatibility.com/",
- "keywords": [
- "compatibility",
- "paragonie",
- "phpcs",
- "polyfill",
- "standards",
- "static analysis"
- ],
- "support": {
- "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues",
- "security": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/security/policy",
- "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie"
- },
- "funding": [
- {
- "url": "https://github.com/PHPCompatibility",
- "type": "github"
- },
- {
- "url": "https://github.com/jrfnl",
- "type": "github"
- },
- {
- "url": "https://opencollective.com/php_codesniffer",
- "type": "open_collective"
- }
- ],
- "time": "2024-04-24T21:30:46+00:00"
- },
- {
- "name": "phpcompatibility/phpcompatibility-wp",
- "version": "2.1.5",
- "source": {
- "type": "git",
- "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git",
- "reference": "01c1ff2704a58e46f0cb1ca9d06aee07b3589082"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/01c1ff2704a58e46f0cb1ca9d06aee07b3589082",
- "reference": "01c1ff2704a58e46f0cb1ca9d06aee07b3589082",
- "shasum": ""
- },
- "require": {
- "phpcompatibility/php-compatibility": "^9.0",
- "phpcompatibility/phpcompatibility-paragonie": "^1.0"
- },
- "require-dev": {
- "dealerdirect/phpcodesniffer-composer-installer": "^1.0"
- },
- "suggest": {
- "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
- "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
- },
- "type": "phpcodesniffer-standard",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "LGPL-3.0-or-later"
- ],
- "authors": [
- {
- "name": "Wim Godden",
- "role": "lead"
- },
- {
- "name": "Juliette Reinders Folmer",
- "role": "lead"
- }
- ],
- "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.",
- "homepage": "http://phpcompatibility.com/",
- "keywords": [
- "compatibility",
- "phpcs",
- "standards",
- "static analysis",
- "wordpress"
- ],
- "support": {
- "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues",
- "security": "https://github.com/PHPCompatibility/PHPCompatibilityWP/security/policy",
- "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP"
- },
- "funding": [
- {
- "url": "https://github.com/PHPCompatibility",
- "type": "github"
- },
- {
- "url": "https://github.com/jrfnl",
- "type": "github"
- },
- {
- "url": "https://opencollective.com/php_codesniffer",
- "type": "open_collective"
- }
- ],
- "time": "2024-04-24T21:37:59+00:00"
- },
- {
- "name": "phpcsstandards/phpcsextra",
- "version": "1.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/PHPCSStandards/PHPCSExtra.git",
- "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/11d387c6642b6e4acaf0bd9bf5203b8cca1ec489",
- "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4",
- "phpcsstandards/phpcsutils": "^1.0.9",
- "squizlabs/php_codesniffer": "^3.8.0"
- },
- "require-dev": {
- "php-parallel-lint/php-console-highlighter": "^1.0",
- "php-parallel-lint/php-parallel-lint": "^1.3.2",
- "phpcsstandards/phpcsdevcs": "^1.1.6",
- "phpcsstandards/phpcsdevtools": "^1.2.1",
- "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
- },
- "type": "phpcodesniffer-standard",
- "extra": {
- "branch-alias": {
- "dev-stable": "1.x-dev",
- "dev-develop": "1.x-dev"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "LGPL-3.0-or-later"
- ],
- "authors": [
- {
- "name": "Juliette Reinders Folmer",
- "homepage": "https://github.com/jrfnl",
- "role": "lead"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors"
- }
- ],
- "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.",
- "keywords": [
- "PHP_CodeSniffer",
- "phpcbf",
- "phpcodesniffer-standard",
- "phpcs",
- "standards",
- "static analysis"
- ],
- "support": {
- "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues",
- "security": "https://github.com/PHPCSStandards/PHPCSExtra/security/policy",
- "source": "https://github.com/PHPCSStandards/PHPCSExtra"
- },
- "funding": [
- {
- "url": "https://github.com/PHPCSStandards",
- "type": "github"
- },
- {
- "url": "https://github.com/jrfnl",
- "type": "github"
- },
- {
- "url": "https://opencollective.com/php_codesniffer",
- "type": "open_collective"
- }
- ],
- "time": "2023-12-08T16:49:07+00:00"
- },
- {
- "name": "phpcsstandards/phpcsutils",
- "version": "1.0.12",
- "source": {
- "type": "git",
- "url": "https://github.com/PHPCSStandards/PHPCSUtils.git",
- "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/87b233b00daf83fb70f40c9a28692be017ea7c6c",
- "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c",
- "shasum": ""
- },
- "require": {
- "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0",
- "php": ">=5.4",
- "squizlabs/php_codesniffer": "^3.10.0 || 4.0.x-dev@dev"
- },
- "require-dev": {
- "ext-filter": "*",
- "php-parallel-lint/php-console-highlighter": "^1.0",
- "php-parallel-lint/php-parallel-lint": "^1.3.2",
- "phpcsstandards/phpcsdevcs": "^1.1.6",
- "yoast/phpunit-polyfills": "^1.1.0 || ^2.0.0"
- },
- "type": "phpcodesniffer-standard",
- "extra": {
- "branch-alias": {
- "dev-stable": "1.x-dev",
- "dev-develop": "1.x-dev"
- }
- },
- "autoload": {
- "classmap": [
- "PHPCSUtils/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "LGPL-3.0-or-later"
- ],
- "authors": [
- {
- "name": "Juliette Reinders Folmer",
- "homepage": "https://github.com/jrfnl",
- "role": "lead"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors"
- }
- ],
- "description": "A suite of utility functions for use with PHP_CodeSniffer",
- "homepage": "https://phpcsutils.com/",
- "keywords": [
- "PHP_CodeSniffer",
- "phpcbf",
- "phpcodesniffer-standard",
- "phpcs",
- "phpcs3",
- "standards",
- "static analysis",
- "tokens",
- "utility"
- ],
- "support": {
- "docs": "https://phpcsutils.com/",
- "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues",
- "security": "https://github.com/PHPCSStandards/PHPCSUtils/security/policy",
- "source": "https://github.com/PHPCSStandards/PHPCSUtils"
- },
- "funding": [
- {
- "url": "https://github.com/PHPCSStandards",
- "type": "github"
- },
- {
- "url": "https://github.com/jrfnl",
- "type": "github"
- },
- {
- "url": "https://opencollective.com/php_codesniffer",
- "type": "open_collective"
- }
- ],
- "time": "2024-05-20T13:34:27+00:00"
- },
- {
- "name": "sirbrillig/phpcs-variable-analysis",
- "version": "v2.11.19",
- "source": {
- "type": "git",
- "url": "https://github.com/sirbrillig/phpcs-variable-analysis.git",
- "reference": "bc8d7e30e2005bce5c59018b7cdb08e9fb45c0d1"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/bc8d7e30e2005bce5c59018b7cdb08e9fb45c0d1",
- "reference": "bc8d7e30e2005bce5c59018b7cdb08e9fb45c0d1",
- "shasum": ""
- },
- "require": {
- "php": ">=5.4.0",
- "squizlabs/php_codesniffer": "^3.5.6"
- },
- "require-dev": {
- "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0",
- "phpcsstandards/phpcsdevcs": "^1.1",
- "phpstan/phpstan": "^1.7",
- "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0",
- "sirbrillig/phpcs-import-detection": "^1.1",
- "vimeo/psalm": "^0.2 || ^0.3 || ^1.1 || ^4.24 || ^5.0@beta"
- },
- "type": "phpcodesniffer-standard",
- "autoload": {
- "psr-4": {
- "VariableAnalysis\\": "VariableAnalysis/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-2-Clause"
- ],
- "authors": [
- {
- "name": "Sam Graham",
- "email": "php-codesniffer-variableanalysis@illusori.co.uk"
- },
- {
- "name": "Payton Swick",
- "email": "payton@foolord.com"
- }
- ],
- "description": "A PHPCS sniff to detect problems with variables.",
- "keywords": [
- "phpcs",
- "static analysis"
- ],
- "support": {
- "issues": "https://github.com/sirbrillig/phpcs-variable-analysis/issues",
- "source": "https://github.com/sirbrillig/phpcs-variable-analysis",
- "wiki": "https://github.com/sirbrillig/phpcs-variable-analysis/wiki"
- },
- "time": "2024-06-26T20:08:34+00:00"
- },
- {
- "name": "squizlabs/php_codesniffer",
- "version": "3.10.1",
- "source": {
- "type": "git",
- "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
- "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/8f90f7a53ce271935282967f53d0894f8f1ff877",
- "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877",
- "shasum": ""
- },
- "require": {
- "ext-simplexml": "*",
- "ext-tokenizer": "*",
- "ext-xmlwriter": "*",
- "php": ">=5.4.0"
- },
- "require-dev": {
- "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
- },
- "bin": [
- "bin/phpcbf",
- "bin/phpcs"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.x-dev"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Greg Sherwood",
- "role": "Former lead"
- },
- {
- "name": "Juliette Reinders Folmer",
- "role": "Current lead"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
- }
- ],
- "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
- "keywords": [
- "phpcs",
- "standards",
- "static analysis"
- ],
- "support": {
- "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues",
- "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy",
- "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
- "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki"
- },
- "funding": [
- {
- "url": "https://github.com/PHPCSStandards",
- "type": "github"
- },
- {
- "url": "https://github.com/jrfnl",
- "type": "github"
- },
- {
- "url": "https://opencollective.com/php_codesniffer",
- "type": "open_collective"
- }
- ],
- "time": "2024-05-22T21:24:41+00:00"
- },
- {
- "name": "wp-coding-standards/wpcs",
- "version": "3.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
- "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/9333efcbff231f10dfd9c56bb7b65818b4733ca7",
- "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7",
- "shasum": ""
- },
- "require": {
- "ext-filter": "*",
- "ext-libxml": "*",
- "ext-tokenizer": "*",
- "ext-xmlreader": "*",
- "php": ">=5.4",
- "phpcsstandards/phpcsextra": "^1.2.1",
- "phpcsstandards/phpcsutils": "^1.0.10",
- "squizlabs/php_codesniffer": "^3.9.0"
- },
- "require-dev": {
- "php-parallel-lint/php-console-highlighter": "^1.0.0",
- "php-parallel-lint/php-parallel-lint": "^1.3.2",
- "phpcompatibility/php-compatibility": "^9.0",
- "phpcsstandards/phpcsdevtools": "^1.2.0",
- "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
- },
- "suggest": {
- "ext-iconv": "For improved results",
- "ext-mbstring": "For improved results"
- },
- "type": "phpcodesniffer-standard",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Contributors",
- "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors"
- }
- ],
- "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
- "keywords": [
- "phpcs",
- "standards",
- "static analysis",
- "wordpress"
- ],
- "support": {
- "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues",
- "source": "https://github.com/WordPress/WordPress-Coding-Standards",
- "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki"
- },
- "funding": [
- {
- "url": "https://opencollective.com/php_codesniffer",
- "type": "custom"
- }
- ],
- "time": "2024-03-25T16:39:00+00:00"
- }
- ],
- "aliases": [],
- "minimum-stability": "stable",
- "stability-flags": {
- "10up/phpcs-composer": 20
- },
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": {
- "php": ">=8.0"
- },
- "platform-dev": [],
- "plugin-api-version": "2.6.0"
-}
diff --git a/themes/10up-block-theme/functions.php b/themes/10up-block-theme/functions.php
deleted file mode 100755
index 14743aa..0000000
--- a/themes/10up-block-theme/functions.php
+++ /dev/null
@@ -1,40 +0,0 @@
-name;
- }
-
- add_filter(
- 'allowed_block_types_all',
- function ( array|bool $allowed_blocks ) use ( $block_names ): array|bool {
- if ( ! is_array( $allowed_blocks ) ) {
- return $allowed_blocks;
- }
- return array_merge( $allowed_blocks, $block_names );
- }
- );
- }
-}
-
-/**
- * Enqueue block specific styles.
- */
-function enqueue_theme_block_styles() {
- $stylesheets = glob( TENUP_BLOCK_THEME_DIST_PATH . '/blocks/autoenqueue/**/*.css' );
- foreach ( $stylesheets as $stylesheet_path ) {
- $block_type = str_replace( TENUP_BLOCK_THEME_DIST_PATH . '/blocks/autoenqueue/', '', $stylesheet_path );
- $block_type = str_replace( '.css', '', $block_type );
-
- wp_register_style(
- "tenup-theme-{$block_type}",
- TENUP_BLOCK_THEME_DIST_URL . 'blocks/autoenqueue/' . $block_type . '.css',
- get_asset_info( 'blocks/autoenqueue/' . $block_type, 'dependencies' ),
- get_asset_info( 'blocks/autoenqueue/' . $block_type, 'version' ),
- );
-
- wp_enqueue_block_style(
- $block_type,
- [
- 'handle' => "tenup-theme-{$block_type}",
- 'path' => $stylesheet_path,
- ]
- );
-
- if ( file_exists( TENUP_BLOCK_THEME_DIST_PATH . 'blocks/autoenqueue/' . $block_type . '.js' ) ) {
- wp_enqueue_script(
- $block_type,
- TENUP_BLOCK_THEME_DIST_URL . 'blocks/autoenqueue/' . $block_type . '.js',
- get_asset_info( 'blocks/autoenqueue/' . $block_type, 'dependencies' ),
- get_asset_info( 'blocks/autoenqueue/' . $block_type, 'version' ),
- true
- );
- }
- }
-}
-
-/**
- * Filter the post-featured-image block to add a view transition class based on the featured image ID.
- *
- * @param string $block_content The block content.
- * @param array $block The block.
- * @param WP_Block $parsed_block The parsed block.
- * @return string
- */
-function filter_featured_image_block( $block_content, $block, $parsed_block ) {
-
- $featured_image_id = get_post_thumbnail_id( $parsed_block->context['postId'] );
-
- $p = new WP_HTML_Tag_Processor( $block_content );
- $p->next_tag();
-
- if ( $p->has_class( 'is-style-single-movie-backdrop' ) ) {
- return $block_content;
- }
-
- $style_attribute = $p->get_attribute( 'style' );
- $view_transition_style = "view-transition-name: post-featured-image-id-{$featured_image_id};";
-
- if ( false === strpos( $style_attribute, $view_transition_style ) ) {
- $style_attribute = $view_transition_style . $style_attribute;
- }
-
- $p->set_attribute( 'style', $style_attribute );
-
- return $p->get_updated_html();
-}
-
-/**
- * Register the block bindings for the theme.
- *
- * @return void
- */
-function register_block_bindings() {
-
- register_block_bindings_source(
- 'tenup/archive-link',
- array(
- 'label' => __( 'Archive Link', 'tenup' ),
- 'get_value_callback' => 'TenupBlockTheme\Blocks\block_binding_archive_link',
- )
- );
-
- register_block_bindings_source(
- 'tenup/movie-viewer-rating-label',
- array(
- 'label' => __( 'Movie Viewer Rating Label', 'tenup' ),
- 'get_value_callback' => 'TenupBlockTheme\Blocks\block_binding_movie_viewer_rating_label',
- )
- );
-}
-
-/**
- * Callback function for the 'tenup/archive-link' block binding.
- * Displays the archive link for the post type.
- *
- * @param array $source_args The args found in the block metadata to create the binding.
- * @return string|null The text or URL based on the key argument set in the block attributes.
- */
-function block_binding_archive_link( $source_args ) {
-
- if ( ! isset( $source_args['key'] ) ) {
- return null;
- }
-
- // Set home as the fallback URL, but check for a referer or archive URL first.
- $url = home_url();
- $referer = wp_get_referer();
- $archive_url = get_post_type_archive_link( get_post_type() );
-
- // Use referer only if it's a paged version of the archive URL
- if ( $referer && $archive_url && strpos( $referer, $archive_url ) === 0 ) {
- $url = $referer;
- } elseif ( $archive_url ) {
- $url = $archive_url;
- }
-
- switch ( $source_args['key'] ) {
- case 'text':
- return __( '← Back', 'tenup' );
- case 'url':
- return $url;
- default:
- return null;
- }
-}
-
-/**
- * Callback function for the 'tenup/movie-viewer-rating-label' block binding.
- * Displays the movie viewer rating label with a star rating and count. e.g. ★7.5/10 (175K)
- *
- * @param array $source_args The args found in the block metadata to create the binding.
- * @return string|null The text or URL based on the key argument set in the block attributes.
- */
-function block_binding_movie_viewer_rating_label( $source_args ) {
-
- if ( ! isset( $source_args['key'] ) ) {
- return null;
- }
-
- // Set default binding values.
- $text = '0/10 (0)';
- $url = '#';
-
- // Get post meta.
- $rating = get_post_meta( get_the_ID(), 'tenup_movie_viewer_rating', true ) ?? false;
- $count = get_post_meta( get_the_ID(), 'tenup_movie_viewer_rating_count', true ) ?? false;
-
- if ( false !== $rating && false !== $count ) {
-
- $count_display = $count;
-
- switch ( true ) {
-
- // 1000 - 9999, round to the nearest hundred and format. e.g. 1156 = 1.2K
- case ( $count >= 1000 && $count < 10000 ):
- $count_display = number_format( round( $count, -2 ) / 1000, 1, '.', '' ) . 'K';
- break;
-
- // 10000+, round to the nearest thousand and format. e.g. 11560 = 12K
- case ( $count >= 10000 ):
- $count_display = number_format( round( $count, -3 ) / 1000, 0, '.', '' ) . 'K';
- break;
-
- default:
- }
-
- $text = $rating . '/10 (' . $count_display . ')';
- }
-
- $star = '★';
- $allowed_tags = [
- 'mark' => [
- 'style' => [],
- 'class' => [],
- ],
- ];
- $text = wp_kses( $star . $text, $allowed_tags );
-
- switch ( $source_args['key'] ) {
- case 'text':
- return $text;
- case 'url':
- return $url;
- default:
- return null;
- }
-}
diff --git a/themes/10up-block-theme/includes/core.php b/themes/10up-block-theme/includes/core.php
deleted file mode 100755
index 24933ca..0000000
--- a/themes/10up-block-theme/includes/core.php
+++ /dev/null
@@ -1,181 +0,0 @@
- 'defer',
- ]
- );
-}
-
-
-/**
- * Enqueue styles for front-end.
- *
- * @return void
- */
-function styles() {
- wp_enqueue_style(
- 'tenup-theme-styles',
- TENUP_BLOCK_THEME_TEMPLATE_URL . '/dist/css/frontend.css',
- [],
- get_asset_info( 'frontend', 'version' )
- );
-}
-
-/**
- * Enqueue styles for editor only.
- *
- * @return void
- */
-function editor_style_overrides() {
- wp_enqueue_style(
- 'tenup-theme-editor-style-overrides',
- TENUP_BLOCK_THEME_TEMPLATE_URL . '/dist/css/editor-style-overrides.css',
- [],
- TENUP_BLOCK_THEME_VERSION
- );
-
- wp_enqueue_script(
- 'tenup-theme-block-extensions',
- TENUP_BLOCK_THEME_TEMPLATE_URL . '/dist/js/block-extensions.js',
- get_asset_info( 'block-extensions', 'dependencies' ),
- get_asset_info( 'block-extensions', 'version' ),
- true
- );
-}
-
-/**
- * register all icons located in the dist/svg folder
- */
-function register_all_icons() {
- if ( ! function_exists( '\UIKitCore\Helpers\register_icons' ) ) {
- return;
- }
-
- $icon_paths = glob( TENUP_BLOCK_THEME_DIST_PATH . 'svg/*.svg' );
- $icons = array_map(
- function ( $icon_path ) {
- $icon_name = preg_replace( '#\..*$#', '', basename( $icon_path ) );
-
- return new \UIKitCore\Icon(
- $icon_name,
- ucwords( str_replace( '-', ' ', $icon_name ) ),
- $icon_path
- );
- },
- $icon_paths
- );
-
- \UIKitCore\Helpers\register_icons(
- [
- 'name' => 'tenup',
- 'label' => 'Theme Icons',
- 'icons' => $icons,
- ]
- );
-}
-
-/**
- * Handles JavaScript detection.
- *
- * Adds a `js` class to the root `` element when JavaScript is detected.
- *
- * @return void
- */
-function js_detection() {
-
- echo "\n";
-}
-
-/**
- * Handles scrollbar width detection.
- *
- * Adds a JavaScript event listener to the DOMContentLoaded event. When the DOM is fully loaded,
- * it calculates the width of the scrollbar and sets a CSS variable `--wp--custom--scrollbar-width` with the width.
- * It also adds an event listener to the window resize event to update the scrollbar width when the window is resized.
- *
- * @return void
- */
-function scrollbar_detection() {
- echo '' . "\n";
-}
-
-/**
- * Add custom template types.
- *
- * @param array $templates The default template types.
- *
- * @return array The modified template types.
- */
-function add_custom_template_types( $templates ) {
- $templates['single-tenup-movie'] = [
- 'title' => __( 'Single Movie', 'tenup' ),
- 'description' => __( 'Displays a single movie', 'tenup' ),
- ];
- $templates['archive-tenup-movie'] = [
- 'title' => __( 'Movie Archives', 'tenup' ),
- 'description' => __( 'Displays a movie archive.', 'tenup' ),
- ];
-
- return $templates;
-}
diff --git a/themes/10up-block-theme/includes/overrides.php b/themes/10up-block-theme/includes/overrides.php
deleted file mode 100644
index 7a70337..0000000
--- a/themes/10up-block-theme/includes/overrides.php
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
- } : $attribute is 'dependencies' ? array : string)
- */
-function get_asset_info( $slug, $attribute = null ) {
- if ( file_exists( TENUP_BLOCK_THEME_PATH . 'dist/js/' . $slug . '.asset.php' ) ) {
- $asset = require TENUP_BLOCK_THEME_PATH . 'dist/js/' . $slug . '.asset.php';
- } elseif ( file_exists( TENUP_BLOCK_THEME_PATH . 'dist/css/' . $slug . '.asset.php' ) ) {
- $asset = require TENUP_BLOCK_THEME_PATH . 'dist/css/' . $slug . '.asset.php';
- } elseif ( file_exists( TENUP_BLOCK_THEME_PATH . 'dist/' . $slug . '.asset.php' ) ) {
- $asset = require TENUP_BLOCK_THEME_PATH . 'dist/' . $slug . '.asset.php';
- } else {
- $asset = [
- 'version' => TENUP_BLOCK_THEME_VERSION,
- 'dependencies' => [],
- ];
- }
-
- if ( ! empty( $attribute ) && isset( $asset[ $attribute ] ) ) {
- return $asset[ $attribute ];
- }
-
- return $asset;
-}
diff --git a/themes/10up-block-theme/style.css b/themes/10up-block-theme/style.css
deleted file mode 100755
index b956fb1..0000000
--- a/themes/10up-block-theme/style.css
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Theme Name: Fueled Movies Theme
- * Theme URI: https://10up.com
- * Description: A theme for the TENUP project.
- * Author: 10up
- * Author URI: https://10up.com
- * Version: 1.0.0
- * Tags:
- * Text Domain: tenup-theme
- */
diff --git a/themes/10up-block-theme/styles/button-secondary.json b/themes/10up-block-theme/styles/button-secondary.json
deleted file mode 100644
index 3ee018e..0000000
--- a/themes/10up-block-theme/styles/button-secondary.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "$schema": "https://schemas.wp.org/wp/6.7/theme.json",
- "version": 3,
- "title": "Secondary",
- "slug": "secondary",
- "blockTypes": [
- "core/button"
- ],
- "styles": {
- "color": {}
- }
-}
diff --git a/themes/10up-block-theme/.eslintrc b/themes/fueled-movies-complete/.eslintrc
similarity index 100%
rename from themes/10up-block-theme/.eslintrc
rename to themes/fueled-movies-complete/.eslintrc
diff --git a/themes/10up-block-theme/.lintstagedrc.json b/themes/fueled-movies-complete/.lintstagedrc.json
similarity index 100%
rename from themes/10up-block-theme/.lintstagedrc.json
rename to themes/fueled-movies-complete/.lintstagedrc.json
diff --git a/themes/10up-block-theme/.stylelintignore b/themes/fueled-movies-complete/.stylelintignore
similarity index 100%
rename from themes/10up-block-theme/.stylelintignore
rename to themes/fueled-movies-complete/.stylelintignore
diff --git a/themes/10up-block-theme/LICENSE.md b/themes/fueled-movies-complete/LICENSE.md
similarity index 100%
rename from themes/10up-block-theme/LICENSE.md
rename to themes/fueled-movies-complete/LICENSE.md
diff --git a/themes/10up-block-theme/assets/css/base/align.css b/themes/fueled-movies-complete/assets/css/base/align.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/base/align.css
rename to themes/fueled-movies-complete/assets/css/base/align.css
diff --git a/themes/10up-block-theme/assets/css/base/index.css b/themes/fueled-movies-complete/assets/css/base/index.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/base/index.css
rename to themes/fueled-movies-complete/assets/css/base/index.css
diff --git a/themes/fueled-movies-complete/assets/css/base/layout.css b/themes/fueled-movies-complete/assets/css/base/layout.css
new file mode 100644
index 0000000..acdee8a
--- /dev/null
+++ b/themes/fueled-movies-complete/assets/css/base/layout.css
@@ -0,0 +1,16 @@
+html {
+ scroll-behavior: smooth;
+}
+
+.has-global-padding :where(.has-global-padding.is-layout-constrained) {
+ padding-left: var(--wp--style--root--padding-left);
+ padding-right: var(--wp--style--root--padding-right);
+}
+
+.is-layout-constrained .wp-block-image.alignwide {
+ max-width: min(100%, var(--wp--style--global--wide-size)) !important;
+}
+
+.wp-block-post-template.is-layout-flex {
+ align-items: stretch;
+}
diff --git a/themes/10up-block-theme/assets/css/base/reset.css b/themes/fueled-movies-complete/assets/css/base/reset.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/base/reset.css
rename to themes/fueled-movies-complete/assets/css/base/reset.css
diff --git a/themes/10up-block-theme/assets/css/blocks/core/.gitkeep b/themes/fueled-movies-complete/assets/css/blocks/core/.gitkeep
similarity index 100%
rename from themes/10up-block-theme/assets/css/blocks/core/.gitkeep
rename to themes/fueled-movies-complete/assets/css/blocks/core/.gitkeep
diff --git a/themes/10up-block-theme/assets/css/blocks/core/group.css b/themes/fueled-movies-complete/assets/css/blocks/core/group.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/blocks/core/group.css
rename to themes/fueled-movies-complete/assets/css/blocks/core/group.css
diff --git a/themes/fueled-movies-complete/assets/css/blocks/core/image.css b/themes/fueled-movies-complete/assets/css/blocks/core/image.css
new file mode 100644
index 0000000..8f951f5
--- /dev/null
+++ b/themes/fueled-movies-complete/assets/css/blocks/core/image.css
@@ -0,0 +1,6 @@
+.wp-block-image {
+
+ & img[src$=".svg"] {
+ height: auto;
+ }
+}
diff --git a/themes/10up-block-theme/assets/css/blocks/core/post-featured-image.css b/themes/fueled-movies-complete/assets/css/blocks/core/post-featured-image.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/blocks/core/post-featured-image.css
rename to themes/fueled-movies-complete/assets/css/blocks/core/post-featured-image.css
diff --git a/themes/10up-block-theme/assets/css/blocks/core/post-terms.css b/themes/fueled-movies-complete/assets/css/blocks/core/post-terms.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/blocks/core/post-terms.css
rename to themes/fueled-movies-complete/assets/css/blocks/core/post-terms.css
diff --git a/themes/10up-block-theme/assets/css/blocks/core/separator.css b/themes/fueled-movies-complete/assets/css/blocks/core/separator.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/blocks/core/separator.css
rename to themes/fueled-movies-complete/assets/css/blocks/core/separator.css
diff --git a/themes/10up-block-theme/assets/css/components/button.css b/themes/fueled-movies-complete/assets/css/components/button.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/components/button.css
rename to themes/fueled-movies-complete/assets/css/components/button.css
diff --git a/themes/10up-block-theme/assets/css/components/card.css b/themes/fueled-movies-complete/assets/css/components/card.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/components/card.css
rename to themes/fueled-movies-complete/assets/css/components/card.css
diff --git a/themes/10up-block-theme/assets/css/components/header.css b/themes/fueled-movies-complete/assets/css/components/header.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/components/header.css
rename to themes/fueled-movies-complete/assets/css/components/header.css
diff --git a/themes/10up-block-theme/assets/css/components/index.css b/themes/fueled-movies-complete/assets/css/components/index.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/components/index.css
rename to themes/fueled-movies-complete/assets/css/components/index.css
diff --git a/themes/fueled-movies-complete/assets/css/editor-canvas-style-overrides.css b/themes/fueled-movies-complete/assets/css/editor-canvas-style-overrides.css
new file mode 100644
index 0000000..3b1784a
--- /dev/null
+++ b/themes/fueled-movies-complete/assets/css/editor-canvas-style-overrides.css
@@ -0,0 +1,33 @@
+/*
+ * This file is used to override the styling of the block editor canvas.
+ * It is enqueued in the editor iframe only.
+ */
+
+/*
+ * Override the styling of the post title in the post editor
+ * to make it look as though it's part of the editor frame instead
+ * of the post content.
+ */
+.edit-post-visual-editor__post-title-wrapper {
+ align-items: center;
+ background-color: #fff; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
+ border-bottom: 1px solid #e0e0e0;
+ display: flex;
+ justify-content: flex-start;
+ margin-bottom: 0;
+ margin-top: 0 !important;
+ max-width: none;
+ min-height: 48px;
+ overflow: hidden;
+ width: 100%;
+
+ & .editor-post-title__input {
+ color: #000; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
+ font-size: 16px;
+ height: auto;
+ line-height: 1.2;
+ padding: 2px 0;
+ width: 100%;
+ }
+}
diff --git a/themes/fueled-movies-complete/assets/css/editor-frame-style-overrides.css b/themes/fueled-movies-complete/assets/css/editor-frame-style-overrides.css
new file mode 100644
index 0000000..99daf2c
--- /dev/null
+++ b/themes/fueled-movies-complete/assets/css/editor-frame-style-overrides.css
@@ -0,0 +1,19 @@
+/*
+ * This file is used to override the styling of the block editor frame.
+ * It is enqueued in the editor outside of the editor canvas iframe.
+ */
+
+
+/*
+ * Small editor blocks like the footer social nav are hard to click
+ * Setting a min-height so that elements can be selected to edit
+ * Prior to this scrollbars overlapped small elements
+*/
+
+.is-root-container {
+ min-height: 90dvh;
+}
+
+.block-editor-iframe__container {
+ min-height: 70px;
+}
diff --git a/themes/10up-block-theme/assets/css/frontend.css b/themes/fueled-movies-complete/assets/css/frontend.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/frontend.css
rename to themes/fueled-movies-complete/assets/css/frontend.css
diff --git a/themes/10up-block-theme/assets/css/globals/.gitkeep b/themes/fueled-movies-complete/assets/css/globals/.gitkeep
similarity index 100%
rename from themes/10up-block-theme/assets/css/globals/.gitkeep
rename to themes/fueled-movies-complete/assets/css/globals/.gitkeep
diff --git a/themes/10up-block-theme/assets/css/globals/media-queries.css b/themes/fueled-movies-complete/assets/css/globals/media-queries.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/globals/media-queries.css
rename to themes/fueled-movies-complete/assets/css/globals/media-queries.css
diff --git a/themes/10up-block-theme/assets/css/globals/readme.md b/themes/fueled-movies-complete/assets/css/globals/readme.md
similarity index 100%
rename from themes/10up-block-theme/assets/css/globals/readme.md
rename to themes/fueled-movies-complete/assets/css/globals/readme.md
diff --git a/themes/10up-block-theme/assets/css/mixins/margin-trim.css b/themes/fueled-movies-complete/assets/css/mixins/margin-trim.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/mixins/margin-trim.css
rename to themes/fueled-movies-complete/assets/css/mixins/margin-trim.css
diff --git a/themes/10up-block-theme/assets/css/mixins/readme.md b/themes/fueled-movies-complete/assets/css/mixins/readme.md
similarity index 100%
rename from themes/10up-block-theme/assets/css/mixins/readme.md
rename to themes/fueled-movies-complete/assets/css/mixins/readme.md
diff --git a/themes/10up-block-theme/assets/css/mixins/visually-hidden.css b/themes/fueled-movies-complete/assets/css/mixins/visually-hidden.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/mixins/visually-hidden.css
rename to themes/fueled-movies-complete/assets/css/mixins/visually-hidden.css
diff --git a/themes/10up-block-theme/assets/css/templates/index.css b/themes/fueled-movies-complete/assets/css/templates/index.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/templates/index.css
rename to themes/fueled-movies-complete/assets/css/templates/index.css
diff --git a/themes/10up-block-theme/assets/css/utilities/index.css b/themes/fueled-movies-complete/assets/css/utilities/index.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/utilities/index.css
rename to themes/fueled-movies-complete/assets/css/utilities/index.css
diff --git a/themes/10up-block-theme/assets/css/utilities/visually-hidden.css b/themes/fueled-movies-complete/assets/css/utilities/visually-hidden.css
similarity index 100%
rename from themes/10up-block-theme/assets/css/utilities/visually-hidden.css
rename to themes/fueled-movies-complete/assets/css/utilities/visually-hidden.css
diff --git a/themes/10up-block-theme/assets/fonts/.gitkeep b/themes/fueled-movies-complete/assets/fonts/.gitkeep
similarity index 100%
rename from themes/10up-block-theme/assets/fonts/.gitkeep
rename to themes/fueled-movies-complete/assets/fonts/.gitkeep
diff --git a/themes/10up-block-theme/assets/images/.gitkeep b/themes/fueled-movies-complete/assets/images/.gitkeep
similarity index 100%
rename from themes/10up-block-theme/assets/images/.gitkeep
rename to themes/fueled-movies-complete/assets/images/.gitkeep
diff --git a/themes/10up-block-theme/assets/js/block-components/DateTimePopover.js b/themes/fueled-movies-complete/assets/js/block-components/DateTimePopover.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/DateTimePopover.js
rename to themes/fueled-movies-complete/assets/js/block-components/DateTimePopover.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/MovieIMDBID.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieIMDBID.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/MovieIMDBID.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieIMDBID.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/MovieMPARating.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieMPARating.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/MovieMPARating.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieMPARating.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/MoviePlot.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/MoviePlot.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/MoviePlot.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/MoviePlot.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/MovieReleaseYear.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieReleaseYear.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/MovieReleaseYear.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieReleaseYear.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/MovieRuntime.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieRuntime.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/MovieRuntime.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieRuntime.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/MovieViewerRating.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieViewerRating.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/MovieViewerRating.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieViewerRating.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/MovieViewerRatingCount.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieViewerRatingCount.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/MovieViewerRatingCount.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieViewerRatingCount.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/MovieYouTubeID.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieYouTubeID.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/MovieYouTubeID.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/MovieYouTubeID.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/PersonBiography.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonBiography.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/PersonBiography.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonBiography.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/PersonBirthplace.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonBirthplace.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/PersonBirthplace.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonBirthplace.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/PersonBorn.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonBorn.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/PersonBorn.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonBorn.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/PersonDeathplace.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonDeathplace.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/PersonDeathplace.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonDeathplace.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/PersonDied.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonDied.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/PersonDied.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonDied.js
diff --git a/themes/10up-block-theme/assets/js/block-components/PostMeta/PersonIMDBID.js b/themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonIMDBID.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-components/PostMeta/PersonIMDBID.js
rename to themes/fueled-movies-complete/assets/js/block-components/PostMeta/PersonIMDBID.js
diff --git a/themes/10up-block-theme/assets/js/block-extensions.js b/themes/fueled-movies-complete/assets/js/block-extensions.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-extensions.js
rename to themes/fueled-movies-complete/assets/js/block-extensions.js
diff --git a/themes/10up-block-theme/assets/js/block-filters/group.js b/themes/fueled-movies-complete/assets/js/block-filters/group.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-filters/group.js
rename to themes/fueled-movies-complete/assets/js/block-filters/group.js
diff --git a/themes/10up-block-theme/assets/js/block-filters/index.js b/themes/fueled-movies-complete/assets/js/block-filters/index.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-filters/index.js
rename to themes/fueled-movies-complete/assets/js/block-filters/index.js
diff --git a/themes/10up-block-theme/assets/js/block-plugins/index.js b/themes/fueled-movies-complete/assets/js/block-plugins/index.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-plugins/index.js
rename to themes/fueled-movies-complete/assets/js/block-plugins/index.js
diff --git a/themes/10up-block-theme/assets/js/block-plugins/movie-meta-fields.js b/themes/fueled-movies-complete/assets/js/block-plugins/movie-meta-fields.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-plugins/movie-meta-fields.js
rename to themes/fueled-movies-complete/assets/js/block-plugins/movie-meta-fields.js
diff --git a/themes/10up-block-theme/assets/js/block-plugins/person-meta-fields.js b/themes/fueled-movies-complete/assets/js/block-plugins/person-meta-fields.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-plugins/person-meta-fields.js
rename to themes/fueled-movies-complete/assets/js/block-plugins/person-meta-fields.js
diff --git a/themes/10up-block-theme/assets/js/block-styles/index.js b/themes/fueled-movies-complete/assets/js/block-styles/index.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/block-styles/index.js
rename to themes/fueled-movies-complete/assets/js/block-styles/index.js
diff --git a/themes/10up-block-theme/assets/js/frontend.js b/themes/fueled-movies-complete/assets/js/frontend.js
similarity index 100%
rename from themes/10up-block-theme/assets/js/frontend.js
rename to themes/fueled-movies-complete/assets/js/frontend.js
diff --git a/themes/10up-block-theme/assets/svg/.gitkeep b/themes/fueled-movies-complete/assets/svg/.gitkeep
similarity index 100%
rename from themes/10up-block-theme/assets/svg/.gitkeep
rename to themes/fueled-movies-complete/assets/svg/.gitkeep
diff --git a/themes/10up-block-theme/includes/blocks/.gitkeep b/themes/fueled-movies-complete/blocks/.gitkeep
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/.gitkeep
rename to themes/fueled-movies-complete/blocks/.gitkeep
diff --git a/themes/10up-block-theme/includes/blocks/metadata/block.json b/themes/fueled-movies-complete/blocks/metadata/block.json
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/metadata/block.json
rename to themes/fueled-movies-complete/blocks/metadata/block.json
diff --git a/themes/10up-block-theme/includes/blocks/metadata/edit.js b/themes/fueled-movies-complete/blocks/metadata/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/metadata/edit.js
rename to themes/fueled-movies-complete/blocks/metadata/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/metadata/index.js b/themes/fueled-movies-complete/blocks/metadata/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/metadata/index.js
rename to themes/fueled-movies-complete/blocks/metadata/index.js
diff --git a/themes/10up-block-theme/includes/blocks/metadata/markup.php b/themes/fueled-movies-complete/blocks/metadata/markup.php
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/metadata/markup.php
rename to themes/fueled-movies-complete/blocks/metadata/markup.php
diff --git a/themes/10up-block-theme/includes/blocks/metadata/style.css b/themes/fueled-movies-complete/blocks/metadata/style.css
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/metadata/style.css
rename to themes/fueled-movies-complete/blocks/metadata/style.css
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-genre/block.json b/themes/fueled-movies-complete/blocks/movie-metadata-genre/block.json
similarity index 91%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-genre/block.json
rename to themes/fueled-movies-complete/blocks/movie-metadata-genre/block.json
index 48f4999..bc0b85f 100644
--- a/themes/10up-block-theme/includes/blocks/movie-metadata-genre/block.json
+++ b/themes/fueled-movies-complete/blocks/movie-metadata-genre/block.json
@@ -7,6 +7,7 @@
"icon": "video-alt",
"description": "A read only block to display the Genre(s) for a Movie.",
"parent": ["tenup/metadata"],
+ "usesContext": ["postId", "postType"],
"attributes": {},
"supports": {
"html": false
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-genre/edit.js b/themes/fueled-movies-complete/blocks/movie-metadata-genre/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-genre/edit.js
rename to themes/fueled-movies-complete/blocks/movie-metadata-genre/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-genre/index.js b/themes/fueled-movies-complete/blocks/movie-metadata-genre/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-genre/index.js
rename to themes/fueled-movies-complete/blocks/movie-metadata-genre/index.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-genre/markup.php b/themes/fueled-movies-complete/blocks/movie-metadata-genre/markup.php
similarity index 78%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-genre/markup.php
rename to themes/fueled-movies-complete/blocks/movie-metadata-genre/markup.php
index cfbedce..6b1e55d 100644
--- a/themes/10up-block-theme/includes/blocks/movie-metadata-genre/markup.php
+++ b/themes/fueled-movies-complete/blocks/movie-metadata-genre/markup.php
@@ -11,7 +11,14 @@
use TenUpPlugin\Taxonomies\Genre;
-$terms = get_the_terms( get_the_ID(), Genre::TAXONOMY_NAME );
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
+
+if ( ! $post_id ) {
+ return;
+}
+
+$terms = get_the_terms( $post_id, Genre::TAXONOMY_NAME );
if ( false === $terms || is_wp_error( $terms ) ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-plot/block.json b/themes/fueled-movies-complete/blocks/movie-metadata-plot/block.json
similarity index 91%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-plot/block.json
rename to themes/fueled-movies-complete/blocks/movie-metadata-plot/block.json
index 1f1956e..e2564d2 100644
--- a/themes/10up-block-theme/includes/blocks/movie-metadata-plot/block.json
+++ b/themes/fueled-movies-complete/blocks/movie-metadata-plot/block.json
@@ -7,6 +7,7 @@
"icon": "video-alt",
"description": "A read only block to display the plot post meta for a Movie.",
"parent": ["tenup/metadata"],
+ "usesContext": ["postId", "postType"],
"attributes": {},
"supports": {
"html": false
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-plot/edit.js b/themes/fueled-movies-complete/blocks/movie-metadata-plot/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-plot/edit.js
rename to themes/fueled-movies-complete/blocks/movie-metadata-plot/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-plot/index.js b/themes/fueled-movies-complete/blocks/movie-metadata-plot/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-plot/index.js
rename to themes/fueled-movies-complete/blocks/movie-metadata-plot/index.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-plot/markup.php b/themes/fueled-movies-complete/blocks/movie-metadata-plot/markup.php
similarity index 69%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-plot/markup.php
rename to themes/fueled-movies-complete/blocks/movie-metadata-plot/markup.php
index d21fe94..e639598 100644
--- a/themes/10up-block-theme/includes/blocks/movie-metadata-plot/markup.php
+++ b/themes/fueled-movies-complete/blocks/movie-metadata-plot/markup.php
@@ -9,7 +9,14 @@
* @var WP_Block $block Block instance.
*/
-$plot = get_post_meta( get_the_ID(), 'tenup_movie_plot', true ) ?? '';
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
+
+if ( ! $post_id ) {
+ return;
+}
+
+$plot = get_post_meta( $post_id, 'tenup_movie_plot', true ) ?? '';
if ( '' === $plot ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-stars/block.json b/themes/fueled-movies-complete/blocks/movie-metadata-stars/block.json
similarity index 91%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-stars/block.json
rename to themes/fueled-movies-complete/blocks/movie-metadata-stars/block.json
index 9b00759..44c2701 100644
--- a/themes/10up-block-theme/includes/blocks/movie-metadata-stars/block.json
+++ b/themes/fueled-movies-complete/blocks/movie-metadata-stars/block.json
@@ -7,6 +7,7 @@
"icon": "video-alt",
"description": "A read only block to display the stars for a Movie.",
"parent": ["tenup/metadata"],
+ "usesContext": ["postId", "postType"],
"attributes": {},
"supports": {
"html": false
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-stars/edit.js b/themes/fueled-movies-complete/blocks/movie-metadata-stars/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-stars/edit.js
rename to themes/fueled-movies-complete/blocks/movie-metadata-stars/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-stars/index.js b/themes/fueled-movies-complete/blocks/movie-metadata-stars/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-stars/index.js
rename to themes/fueled-movies-complete/blocks/movie-metadata-stars/index.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-metadata-stars/markup.php b/themes/fueled-movies-complete/blocks/movie-metadata-stars/markup.php
similarity index 94%
rename from themes/10up-block-theme/includes/blocks/movie-metadata-stars/markup.php
rename to themes/fueled-movies-complete/blocks/movie-metadata-stars/markup.php
index b7c5c23..6b009e1 100644
--- a/themes/10up-block-theme/includes/blocks/movie-metadata-stars/markup.php
+++ b/themes/fueled-movies-complete/blocks/movie-metadata-stars/markup.php
@@ -9,8 +9,8 @@
* @var WP_Block $block Block instance.
*/
-// Get the current post ID (movie post).
-$post_id = get_the_ID();
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
if ( ! $post_id ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/movie-mpa-rating/block.json b/themes/fueled-movies-complete/blocks/movie-mpa-rating/block.json
similarity index 91%
rename from themes/10up-block-theme/includes/blocks/movie-mpa-rating/block.json
rename to themes/fueled-movies-complete/blocks/movie-mpa-rating/block.json
index e304c2e..5d2e6a5 100644
--- a/themes/10up-block-theme/includes/blocks/movie-mpa-rating/block.json
+++ b/themes/fueled-movies-complete/blocks/movie-mpa-rating/block.json
@@ -6,6 +6,7 @@
"category": "text",
"icon": "thumbs-up",
"description": "A read only block to display the MPA rating post meta for a Movie.",
+ "usesContext": ["postId", "postType"],
"attributes": {},
"supports": {
"html": false
diff --git a/themes/10up-block-theme/includes/blocks/movie-mpa-rating/edit.js b/themes/fueled-movies-complete/blocks/movie-mpa-rating/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-mpa-rating/edit.js
rename to themes/fueled-movies-complete/blocks/movie-mpa-rating/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-mpa-rating/index.js b/themes/fueled-movies-complete/blocks/movie-mpa-rating/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-mpa-rating/index.js
rename to themes/fueled-movies-complete/blocks/movie-mpa-rating/index.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-mpa-rating/markup.php b/themes/fueled-movies-complete/blocks/movie-mpa-rating/markup.php
similarity index 71%
rename from themes/10up-block-theme/includes/blocks/movie-mpa-rating/markup.php
rename to themes/fueled-movies-complete/blocks/movie-mpa-rating/markup.php
index f1c71f4..1039ef4 100644
--- a/themes/10up-block-theme/includes/blocks/movie-mpa-rating/markup.php
+++ b/themes/fueled-movies-complete/blocks/movie-mpa-rating/markup.php
@@ -9,7 +9,14 @@
* @var WP_Block $block Block instance.
*/
-$rating = get_post_meta( get_the_ID(), 'tenup_movie_mpa_rating', true ) ?? '';
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
+
+if ( ! $post_id ) {
+ return;
+}
+
+$rating = get_post_meta( $post_id, 'tenup_movie_mpa_rating', true ) ?? '';
if ( '' === $rating ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/movie-release-year/block.json b/themes/fueled-movies-complete/blocks/movie-release-year/block.json
similarity index 91%
rename from themes/10up-block-theme/includes/blocks/movie-release-year/block.json
rename to themes/fueled-movies-complete/blocks/movie-release-year/block.json
index 4a74993..492d756 100644
--- a/themes/10up-block-theme/includes/blocks/movie-release-year/block.json
+++ b/themes/fueled-movies-complete/blocks/movie-release-year/block.json
@@ -6,6 +6,7 @@
"category": "text",
"icon": "calendar",
"description": "A read only block to display the release year post meta for a Movie.",
+ "usesContext": ["postId", "postType"],
"attributes": {},
"supports": {
"html": false
diff --git a/themes/10up-block-theme/includes/blocks/movie-release-year/edit.js b/themes/fueled-movies-complete/blocks/movie-release-year/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-release-year/edit.js
rename to themes/fueled-movies-complete/blocks/movie-release-year/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-release-year/index.js b/themes/fueled-movies-complete/blocks/movie-release-year/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-release-year/index.js
rename to themes/fueled-movies-complete/blocks/movie-release-year/index.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-release-year/markup.php b/themes/fueled-movies-complete/blocks/movie-release-year/markup.php
similarity index 71%
rename from themes/10up-block-theme/includes/blocks/movie-release-year/markup.php
rename to themes/fueled-movies-complete/blocks/movie-release-year/markup.php
index 44fe0a2..023021d 100644
--- a/themes/10up-block-theme/includes/blocks/movie-release-year/markup.php
+++ b/themes/fueled-movies-complete/blocks/movie-release-year/markup.php
@@ -9,7 +9,14 @@
* @var WP_Block $block Block instance.
*/
-$year = get_post_meta( get_the_ID(), 'tenup_movie_release_year', true ) ?? '';
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
+
+if ( ! $post_id ) {
+ return;
+}
+
+$year = get_post_meta( $post_id, 'tenup_movie_release_year', true ) ?? '';
if ( '' === $year ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/movie-runtime/block.json b/themes/fueled-movies-complete/blocks/movie-runtime/block.json
similarity index 90%
rename from themes/10up-block-theme/includes/blocks/movie-runtime/block.json
rename to themes/fueled-movies-complete/blocks/movie-runtime/block.json
index 12babf4..e458f82 100644
--- a/themes/10up-block-theme/includes/blocks/movie-runtime/block.json
+++ b/themes/fueled-movies-complete/blocks/movie-runtime/block.json
@@ -6,6 +6,7 @@
"category": "text",
"icon": "backup",
"description": "A read only block to display the runtime post meta for a Movie.",
+ "usesContext": ["postId", "postType"],
"attributes": {},
"supports": {
"html": false
diff --git a/themes/10up-block-theme/includes/blocks/movie-runtime/edit.js b/themes/fueled-movies-complete/blocks/movie-runtime/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-runtime/edit.js
rename to themes/fueled-movies-complete/blocks/movie-runtime/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-runtime/index.js b/themes/fueled-movies-complete/blocks/movie-runtime/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/movie-runtime/index.js
rename to themes/fueled-movies-complete/blocks/movie-runtime/index.js
diff --git a/themes/10up-block-theme/includes/blocks/movie-runtime/markup.php b/themes/fueled-movies-complete/blocks/movie-runtime/markup.php
similarity index 85%
rename from themes/10up-block-theme/includes/blocks/movie-runtime/markup.php
rename to themes/fueled-movies-complete/blocks/movie-runtime/markup.php
index bba9479..de83bc5 100644
--- a/themes/10up-block-theme/includes/blocks/movie-runtime/markup.php
+++ b/themes/fueled-movies-complete/blocks/movie-runtime/markup.php
@@ -9,7 +9,14 @@
* @var WP_Block $block Block instance.
*/
-$runtime = get_post_meta( get_the_ID(), 'tenup_movie_runtime', true ) ?? '';
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
+
+if ( ! $post_id ) {
+ return;
+}
+
+$runtime = get_post_meta( $post_id, 'tenup_movie_runtime', true ) ?? '';
if ( '' === $runtime ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-biography/block.json b/themes/fueled-movies-complete/blocks/person-metadata-biography/block.json
similarity index 92%
rename from themes/10up-block-theme/includes/blocks/person-metadata-biography/block.json
rename to themes/fueled-movies-complete/blocks/person-metadata-biography/block.json
index a543d35..8e1fa56 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-biography/block.json
+++ b/themes/fueled-movies-complete/blocks/person-metadata-biography/block.json
@@ -6,6 +6,7 @@
"category": "text",
"icon": "admin-users",
"description": "A read only block to display the biography post meta for a Person.",
+ "usesContext": ["postId", "postType"],
"parent": ["tenup/metadata"],
"attributes": {},
"supports": {
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-biography/edit.js b/themes/fueled-movies-complete/blocks/person-metadata-biography/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-biography/edit.js
rename to themes/fueled-movies-complete/blocks/person-metadata-biography/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-biography/index.js b/themes/fueled-movies-complete/blocks/person-metadata-biography/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-biography/index.js
rename to themes/fueled-movies-complete/blocks/person-metadata-biography/index.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-biography/markup.php b/themes/fueled-movies-complete/blocks/person-metadata-biography/markup.php
similarity index 69%
rename from themes/10up-block-theme/includes/blocks/person-metadata-biography/markup.php
rename to themes/fueled-movies-complete/blocks/person-metadata-biography/markup.php
index 423e11b..0f84dc0 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-biography/markup.php
+++ b/themes/fueled-movies-complete/blocks/person-metadata-biography/markup.php
@@ -9,7 +9,14 @@
* @var WP_Block $block Block instance.
*/
-$biography = get_post_meta( get_the_ID(), 'tenup_person_biography', true ) ?? '';
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
+
+if ( ! $post_id ) {
+ return;
+}
+
+$biography = get_post_meta( $post_id, 'tenup_person_biography', true ) ?? '';
if ( '' === $biography ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-birthplace/block.json b/themes/fueled-movies-complete/blocks/person-metadata-birthplace/block.json
similarity index 92%
rename from themes/10up-block-theme/includes/blocks/person-metadata-birthplace/block.json
rename to themes/fueled-movies-complete/blocks/person-metadata-birthplace/block.json
index 187a42a..7537dbe 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-birthplace/block.json
+++ b/themes/fueled-movies-complete/blocks/person-metadata-birthplace/block.json
@@ -6,6 +6,7 @@
"category": "text",
"icon": "admin-users",
"description": "A read only block to display the birthplace post meta for a Person.",
+ "usesContext": ["postId", "postType"],
"parent": ["tenup/metadata"],
"attributes": {},
"supports": {
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-birthplace/edit.js b/themes/fueled-movies-complete/blocks/person-metadata-birthplace/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-birthplace/edit.js
rename to themes/fueled-movies-complete/blocks/person-metadata-birthplace/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-birthplace/index.js b/themes/fueled-movies-complete/blocks/person-metadata-birthplace/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-birthplace/index.js
rename to themes/fueled-movies-complete/blocks/person-metadata-birthplace/index.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-birthplace/markup.php b/themes/fueled-movies-complete/blocks/person-metadata-birthplace/markup.php
similarity index 69%
rename from themes/10up-block-theme/includes/blocks/person-metadata-birthplace/markup.php
rename to themes/fueled-movies-complete/blocks/person-metadata-birthplace/markup.php
index 55e18f7..4fefc35 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-birthplace/markup.php
+++ b/themes/fueled-movies-complete/blocks/person-metadata-birthplace/markup.php
@@ -9,7 +9,14 @@
* @var WP_Block $block Block instance.
*/
-$birthplace = get_post_meta( get_the_ID(), 'tenup_person_birthplace', true ) ?? '';
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
+
+if ( ! $post_id ) {
+ return;
+}
+
+$birthplace = get_post_meta( $post_id, 'tenup_person_birthplace', true ) ?? '';
if ( '' === $birthplace ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-born/block.json b/themes/fueled-movies-complete/blocks/person-metadata-born/block.json
similarity index 91%
rename from themes/10up-block-theme/includes/blocks/person-metadata-born/block.json
rename to themes/fueled-movies-complete/blocks/person-metadata-born/block.json
index 3f00b58..e91edd7 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-born/block.json
+++ b/themes/fueled-movies-complete/blocks/person-metadata-born/block.json
@@ -7,6 +7,7 @@
"icon": "admin-users",
"description": "A read only block to display the born post meta for a Person.",
"parent": ["tenup/metadata"],
+ "usesContext": ["postId", "postType"],
"attributes": {},
"supports": {
"html": false
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-born/edit.js b/themes/fueled-movies-complete/blocks/person-metadata-born/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-born/edit.js
rename to themes/fueled-movies-complete/blocks/person-metadata-born/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-born/index.js b/themes/fueled-movies-complete/blocks/person-metadata-born/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-born/index.js
rename to themes/fueled-movies-complete/blocks/person-metadata-born/index.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-born/markup.php b/themes/fueled-movies-complete/blocks/person-metadata-born/markup.php
similarity index 72%
rename from themes/10up-block-theme/includes/blocks/person-metadata-born/markup.php
rename to themes/fueled-movies-complete/blocks/person-metadata-born/markup.php
index ed25fc3..bd94e53 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-born/markup.php
+++ b/themes/fueled-movies-complete/blocks/person-metadata-born/markup.php
@@ -9,7 +9,14 @@
* @var WP_Block $block Block instance.
*/
-$born = get_post_meta( get_the_ID(), 'tenup_person_born', true ) ?? '';
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
+
+if ( ! $post_id ) {
+ return;
+}
+
+$born = get_post_meta( $post_id, 'tenup_person_born', true ) ?? '';
if ( '' === $born ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-deathplace/block.json b/themes/fueled-movies-complete/blocks/person-metadata-deathplace/block.json
similarity index 92%
rename from themes/10up-block-theme/includes/blocks/person-metadata-deathplace/block.json
rename to themes/fueled-movies-complete/blocks/person-metadata-deathplace/block.json
index 7271b9a..1f47d00 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-deathplace/block.json
+++ b/themes/fueled-movies-complete/blocks/person-metadata-deathplace/block.json
@@ -7,6 +7,7 @@
"icon": "admin-users",
"description": "A read only block to display the deathplace post meta for a Person.",
"parent": ["tenup/metadata"],
+ "usesContext": ["postId", "postType"],
"attributes": {},
"supports": {
"html": false
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-deathplace/edit.js b/themes/fueled-movies-complete/blocks/person-metadata-deathplace/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-deathplace/edit.js
rename to themes/fueled-movies-complete/blocks/person-metadata-deathplace/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-deathplace/index.js b/themes/fueled-movies-complete/blocks/person-metadata-deathplace/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-deathplace/index.js
rename to themes/fueled-movies-complete/blocks/person-metadata-deathplace/index.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-deathplace/markup.php b/themes/fueled-movies-complete/blocks/person-metadata-deathplace/markup.php
similarity index 69%
rename from themes/10up-block-theme/includes/blocks/person-metadata-deathplace/markup.php
rename to themes/fueled-movies-complete/blocks/person-metadata-deathplace/markup.php
index 9ac6d70..96242e3 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-deathplace/markup.php
+++ b/themes/fueled-movies-complete/blocks/person-metadata-deathplace/markup.php
@@ -9,7 +9,14 @@
* @var WP_Block $block Block instance.
*/
-$deathplace = get_post_meta( get_the_ID(), 'tenup_person_deathplace', true ) ?? '';
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
+
+if ( ! $post_id ) {
+ return;
+}
+
+$deathplace = get_post_meta( $post_id, 'tenup_person_deathplace', true ) ?? '';
if ( '' === $deathplace ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-died/block.json b/themes/fueled-movies-complete/blocks/person-metadata-died/block.json
similarity index 91%
rename from themes/10up-block-theme/includes/blocks/person-metadata-died/block.json
rename to themes/fueled-movies-complete/blocks/person-metadata-died/block.json
index 320a125..1a97872 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-died/block.json
+++ b/themes/fueled-movies-complete/blocks/person-metadata-died/block.json
@@ -6,6 +6,7 @@
"category": "text",
"icon": "admin-users",
"description": "A read only block to display the died post meta for a Person.",
+ "usesContext": ["postId", "postType"],
"parent": ["tenup/metadata"],
"attributes": {},
"supports": {
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-died/edit.js b/themes/fueled-movies-complete/blocks/person-metadata-died/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-died/edit.js
rename to themes/fueled-movies-complete/blocks/person-metadata-died/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-died/index.js b/themes/fueled-movies-complete/blocks/person-metadata-died/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-died/index.js
rename to themes/fueled-movies-complete/blocks/person-metadata-died/index.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-died/markup.php b/themes/fueled-movies-complete/blocks/person-metadata-died/markup.php
similarity index 72%
rename from themes/10up-block-theme/includes/blocks/person-metadata-died/markup.php
rename to themes/fueled-movies-complete/blocks/person-metadata-died/markup.php
index 8e1704b..68d20de 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-died/markup.php
+++ b/themes/fueled-movies-complete/blocks/person-metadata-died/markup.php
@@ -9,7 +9,14 @@
* @var WP_Block $block Block instance.
*/
-$died = get_post_meta( get_the_ID(), 'tenup_person_died', true ) ?? '';
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
+
+if ( ! $post_id ) {
+ return;
+}
+
+$died = get_post_meta( $post_id, 'tenup_person_died', true ) ?? '';
if ( '' === $died ) {
return;
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-movies/block.json b/themes/fueled-movies-complete/blocks/person-metadata-movies/block.json
similarity index 91%
rename from themes/10up-block-theme/includes/blocks/person-metadata-movies/block.json
rename to themes/fueled-movies-complete/blocks/person-metadata-movies/block.json
index 8ebf840..7f6f194 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-movies/block.json
+++ b/themes/fueled-movies-complete/blocks/person-metadata-movies/block.json
@@ -7,6 +7,7 @@
"icon": "admin-users",
"description": "A read only block to display the movies for a Person.",
"parent": ["tenup/metadata"],
+ "usesContext": ["postId", "postType"],
"attributes": {},
"supports": {
"html": false
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-movies/edit.js b/themes/fueled-movies-complete/blocks/person-metadata-movies/edit.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-movies/edit.js
rename to themes/fueled-movies-complete/blocks/person-metadata-movies/edit.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-movies/index.js b/themes/fueled-movies-complete/blocks/person-metadata-movies/index.js
similarity index 100%
rename from themes/10up-block-theme/includes/blocks/person-metadata-movies/index.js
rename to themes/fueled-movies-complete/blocks/person-metadata-movies/index.js
diff --git a/themes/10up-block-theme/includes/blocks/person-metadata-movies/markup.php b/themes/fueled-movies-complete/blocks/person-metadata-movies/markup.php
similarity index 95%
rename from themes/10up-block-theme/includes/blocks/person-metadata-movies/markup.php
rename to themes/fueled-movies-complete/blocks/person-metadata-movies/markup.php
index be56072..360fcf5 100644
--- a/themes/10up-block-theme/includes/blocks/person-metadata-movies/markup.php
+++ b/themes/fueled-movies-complete/blocks/person-metadata-movies/markup.php
@@ -9,8 +9,8 @@
* @var WP_Block $block Block instance.
*/
-// Get the current post ID (person post).
-$post_id = get_the_ID();
+$context = $block->context;
+$post_id = $context['postId'] ?? null;
if ( ! $post_id ) {
return;
diff --git a/themes/fueled-movies-complete/composer.json b/themes/fueled-movies-complete/composer.json
new file mode 100644
index 0000000..833ea38
--- /dev/null
+++ b/themes/fueled-movies-complete/composer.json
@@ -0,0 +1,31 @@
+{
+ "name": "10up/tenup-theme",
+ "type": "wordpress-theme",
+ "authors": [
+ {
+ "name": "10up",
+ "email": "info@10up.com"
+ }
+ ],
+ "require": {
+ "php": ">=8.2",
+ "10up/wp-framework": "~1.2.0"
+ },
+ "require-dev": {
+ "10up/phpcs-composer": "dev-trunk"
+ },
+ "scripts": {
+ "lint": "phpcs .",
+ "lint-fix": "phpcbf ."
+ },
+ "autoload": {
+ "psr-4": {
+ "FueledMoviesTheme\\": "src/"
+ }
+ },
+ "config": {
+ "allow-plugins": {
+ "dealerdirect/phpcodesniffer-composer-installer": true
+ }
+ }
+}
diff --git a/themes/fueled-movies-complete/composer.lock b/themes/fueled-movies-complete/composer.lock
new file mode 100644
index 0000000..447b5ee
--- /dev/null
+++ b/themes/fueled-movies-complete/composer.lock
@@ -0,0 +1,2588 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+ "This file is @generated automatically"
+ ],
+ "content-hash": "5d378d005cc95defaf80742fad3997cc",
+ "packages": [
+ {
+ "name": "10up/wp-framework",
+ "version": "1.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/10up/wp-framework.git",
+ "reference": "6968fb1acb5e46048fe929ee3d0393d7151968c8"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/10up/wp-framework/zipball/6968fb1acb5e46048fe929ee3d0393d7151968c8",
+ "reference": "6968fb1acb5e46048fe929ee3d0393d7151968c8",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=8.2",
+ "spatie/php-structure-discoverer": "^2.2"
+ },
+ "require-dev": {
+ "10up/phpcs-composer": "^3.0",
+ "brain/monkey": "^2.6",
+ "php-stubs/wp-cli-stubs": "^2.11",
+ "phpcompatibility/php-compatibility": "dev-develop as 9.99.99",
+ "phpstan/phpstan-deprecation-rules": "^2.0",
+ "phpunit/php-code-coverage": "^9.2",
+ "phpunit/phpunit": "^9.5",
+ "slevomat/coding-standard": "^8.15",
+ "szepeviktor/phpstan-wordpress": "^2.0",
+ "yoast/phpunit-polyfills": "^2.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "TenupFramework\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "GPL-2.0-or-later"
+ ],
+ "description": "A framework for building WordPress themes and plugins.",
+ "support": {
+ "issues": "https://github.com/10up/wp-framework/issues",
+ "source": "https://github.com/10up/wp-framework/tree/1.2.0"
+ },
+ "time": "2025-03-20T12:05:08+00:00"
+ },
+ {
+ "name": "amphp/amp",
+ "version": "v3.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/amp.git",
+ "reference": "7cf7fef3d667bfe4b2560bc87e67d5387a7bcde9"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/amp/zipball/7cf7fef3d667bfe4b2560bc87e67d5387a7bcde9",
+ "reference": "7cf7fef3d667bfe4b2560bc87e67d5387a7bcde9",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=8.1",
+ "revolt/event-loop": "^1 || ^0.2"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "5.23.1"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/functions.php",
+ "src/Future/functions.php",
+ "src/Internal/functions.php"
+ ],
+ "psr-4": {
+ "Amp\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Bob Weinand",
+ "email": "bobwei9@hotmail.com"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ },
+ {
+ "name": "Daniel Lowrey",
+ "email": "rdlowrey@php.net"
+ }
+ ],
+ "description": "A non-blocking concurrency framework for PHP applications.",
+ "homepage": "https://amphp.org/amp",
+ "keywords": [
+ "async",
+ "asynchronous",
+ "awaitable",
+ "concurrency",
+ "event",
+ "event-loop",
+ "future",
+ "non-blocking",
+ "promise"
+ ],
+ "support": {
+ "issues": "https://github.com/amphp/amp/issues",
+ "source": "https://github.com/amphp/amp/tree/v3.1.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
+ "time": "2025-01-26T16:07:39+00:00"
+ },
+ {
+ "name": "amphp/byte-stream",
+ "version": "v2.1.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/byte-stream.git",
+ "reference": "55a6bd071aec26fa2a3e002618c20c35e3df1b46"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/byte-stream/zipball/55a6bd071aec26fa2a3e002618c20c35e3df1b46",
+ "reference": "55a6bd071aec26fa2a3e002618c20c35e3df1b46",
+ "shasum": ""
+ },
+ "require": {
+ "amphp/amp": "^3",
+ "amphp/parser": "^1.1",
+ "amphp/pipeline": "^1",
+ "amphp/serialization": "^1",
+ "amphp/sync": "^2",
+ "php": ">=8.1",
+ "revolt/event-loop": "^1 || ^0.2.3"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "amphp/phpunit-util": "^3",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "5.22.1"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/functions.php",
+ "src/Internal/functions.php"
+ ],
+ "psr-4": {
+ "Amp\\ByteStream\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ }
+ ],
+ "description": "A stream abstraction to make working with non-blocking I/O simple.",
+ "homepage": "https://amphp.org/byte-stream",
+ "keywords": [
+ "amp",
+ "amphp",
+ "async",
+ "io",
+ "non-blocking",
+ "stream"
+ ],
+ "support": {
+ "issues": "https://github.com/amphp/byte-stream/issues",
+ "source": "https://github.com/amphp/byte-stream/tree/v2.1.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
+ "time": "2025-03-16T17:10:27+00:00"
+ },
+ {
+ "name": "amphp/cache",
+ "version": "v2.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/cache.git",
+ "reference": "46912e387e6aa94933b61ea1ead9cf7540b7797c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/cache/zipball/46912e387e6aa94933b61ea1ead9cf7540b7797c",
+ "reference": "46912e387e6aa94933b61ea1ead9cf7540b7797c",
+ "shasum": ""
+ },
+ "require": {
+ "amphp/amp": "^3",
+ "amphp/serialization": "^1",
+ "amphp/sync": "^2",
+ "php": ">=8.1",
+ "revolt/event-loop": "^1 || ^0.2"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "amphp/phpunit-util": "^3",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "^5.4"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Amp\\Cache\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ },
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Daniel Lowrey",
+ "email": "rdlowrey@php.net"
+ }
+ ],
+ "description": "A fiber-aware cache API based on Amp and Revolt.",
+ "homepage": "https://amphp.org/cache",
+ "support": {
+ "issues": "https://github.com/amphp/cache/issues",
+ "source": "https://github.com/amphp/cache/tree/v2.0.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
+ "time": "2024-04-19T03:38:06+00:00"
+ },
+ {
+ "name": "amphp/dns",
+ "version": "v2.4.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/dns.git",
+ "reference": "78eb3db5fc69bf2fc0cb503c4fcba667bc223c71"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/dns/zipball/78eb3db5fc69bf2fc0cb503c4fcba667bc223c71",
+ "reference": "78eb3db5fc69bf2fc0cb503c4fcba667bc223c71",
+ "shasum": ""
+ },
+ "require": {
+ "amphp/amp": "^3",
+ "amphp/byte-stream": "^2",
+ "amphp/cache": "^2",
+ "amphp/parser": "^1",
+ "amphp/process": "^2",
+ "daverandom/libdns": "^2.0.2",
+ "ext-filter": "*",
+ "ext-json": "*",
+ "php": ">=8.1",
+ "revolt/event-loop": "^1 || ^0.2"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "amphp/phpunit-util": "^3",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "5.20"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/functions.php"
+ ],
+ "psr-4": {
+ "Amp\\Dns\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Chris Wright",
+ "email": "addr@daverandom.com"
+ },
+ {
+ "name": "Daniel Lowrey",
+ "email": "rdlowrey@php.net"
+ },
+ {
+ "name": "Bob Weinand",
+ "email": "bobwei9@hotmail.com"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ },
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ }
+ ],
+ "description": "Async DNS resolution for Amp.",
+ "homepage": "https://github.com/amphp/dns",
+ "keywords": [
+ "amp",
+ "amphp",
+ "async",
+ "client",
+ "dns",
+ "resolve"
+ ],
+ "support": {
+ "issues": "https://github.com/amphp/dns/issues",
+ "source": "https://github.com/amphp/dns/tree/v2.4.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
+ "time": "2025-01-19T15:43:40+00:00"
+ },
+ {
+ "name": "amphp/parallel",
+ "version": "v2.3.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/parallel.git",
+ "reference": "5113111de02796a782f5d90767455e7391cca190"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/parallel/zipball/5113111de02796a782f5d90767455e7391cca190",
+ "reference": "5113111de02796a782f5d90767455e7391cca190",
+ "shasum": ""
+ },
+ "require": {
+ "amphp/amp": "^3",
+ "amphp/byte-stream": "^2",
+ "amphp/cache": "^2",
+ "amphp/parser": "^1",
+ "amphp/pipeline": "^1",
+ "amphp/process": "^2",
+ "amphp/serialization": "^1",
+ "amphp/socket": "^2",
+ "amphp/sync": "^2",
+ "php": ">=8.1",
+ "revolt/event-loop": "^1"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "amphp/phpunit-util": "^3",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "^5.18"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/Context/functions.php",
+ "src/Context/Internal/functions.php",
+ "src/Ipc/functions.php",
+ "src/Worker/functions.php"
+ ],
+ "psr-4": {
+ "Amp\\Parallel\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ },
+ {
+ "name": "Stephen Coakley",
+ "email": "me@stephencoakley.com"
+ }
+ ],
+ "description": "Parallel processing component for Amp.",
+ "homepage": "https://github.com/amphp/parallel",
+ "keywords": [
+ "async",
+ "asynchronous",
+ "concurrent",
+ "multi-processing",
+ "multi-threading"
+ ],
+ "support": {
+ "issues": "https://github.com/amphp/parallel/issues",
+ "source": "https://github.com/amphp/parallel/tree/v2.3.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
+ "time": "2024-12-21T01:56:09+00:00"
+ },
+ {
+ "name": "amphp/parser",
+ "version": "v1.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/parser.git",
+ "reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/parser/zipball/3cf1f8b32a0171d4b1bed93d25617637a77cded7",
+ "reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.4"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "^5.4"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Amp\\Parser\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ }
+ ],
+ "description": "A generator parser to make streaming parsers simple.",
+ "homepage": "https://github.com/amphp/parser",
+ "keywords": [
+ "async",
+ "non-blocking",
+ "parser",
+ "stream"
+ ],
+ "support": {
+ "issues": "https://github.com/amphp/parser/issues",
+ "source": "https://github.com/amphp/parser/tree/v1.1.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
+ "time": "2024-03-21T19:16:53+00:00"
+ },
+ {
+ "name": "amphp/pipeline",
+ "version": "v1.2.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/pipeline.git",
+ "reference": "7b52598c2e9105ebcddf247fc523161581930367"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/pipeline/zipball/7b52598c2e9105ebcddf247fc523161581930367",
+ "reference": "7b52598c2e9105ebcddf247fc523161581930367",
+ "shasum": ""
+ },
+ "require": {
+ "amphp/amp": "^3",
+ "php": ">=8.1",
+ "revolt/event-loop": "^1"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "amphp/phpunit-util": "^3",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "^5.18"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Amp\\Pipeline\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ }
+ ],
+ "description": "Asynchronous iterators and operators.",
+ "homepage": "https://amphp.org/pipeline",
+ "keywords": [
+ "amp",
+ "amphp",
+ "async",
+ "io",
+ "iterator",
+ "non-blocking"
+ ],
+ "support": {
+ "issues": "https://github.com/amphp/pipeline/issues",
+ "source": "https://github.com/amphp/pipeline/tree/v1.2.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
+ "time": "2025-03-16T16:33:53+00:00"
+ },
+ {
+ "name": "amphp/process",
+ "version": "v2.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/process.git",
+ "reference": "52e08c09dec7511d5fbc1fb00d3e4e79fc77d58d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/process/zipball/52e08c09dec7511d5fbc1fb00d3e4e79fc77d58d",
+ "reference": "52e08c09dec7511d5fbc1fb00d3e4e79fc77d58d",
+ "shasum": ""
+ },
+ "require": {
+ "amphp/amp": "^3",
+ "amphp/byte-stream": "^2",
+ "amphp/sync": "^2",
+ "php": ">=8.1",
+ "revolt/event-loop": "^1 || ^0.2"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "amphp/phpunit-util": "^3",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "^5.4"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/functions.php"
+ ],
+ "psr-4": {
+ "Amp\\Process\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Bob Weinand",
+ "email": "bobwei9@hotmail.com"
+ },
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ }
+ ],
+ "description": "A fiber-aware process manager based on Amp and Revolt.",
+ "homepage": "https://amphp.org/process",
+ "support": {
+ "issues": "https://github.com/amphp/process/issues",
+ "source": "https://github.com/amphp/process/tree/v2.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
+ "time": "2024-04-19T03:13:44+00:00"
+ },
+ {
+ "name": "amphp/serialization",
+ "version": "v1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/serialization.git",
+ "reference": "693e77b2fb0b266c3c7d622317f881de44ae94a1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/serialization/zipball/693e77b2fb0b266c3c7d622317f881de44ae94a1",
+ "reference": "693e77b2fb0b266c3c7d622317f881de44ae94a1",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "dev-master",
+ "phpunit/phpunit": "^9 || ^8 || ^7"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/functions.php"
+ ],
+ "psr-4": {
+ "Amp\\Serialization\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ }
+ ],
+ "description": "Serialization tools for IPC and data storage in PHP.",
+ "homepage": "https://github.com/amphp/serialization",
+ "keywords": [
+ "async",
+ "asynchronous",
+ "serialization",
+ "serialize"
+ ],
+ "support": {
+ "issues": "https://github.com/amphp/serialization/issues",
+ "source": "https://github.com/amphp/serialization/tree/master"
+ },
+ "time": "2020-03-25T21:39:07+00:00"
+ },
+ {
+ "name": "amphp/socket",
+ "version": "v2.3.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/socket.git",
+ "reference": "58e0422221825b79681b72c50c47a930be7bf1e1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/socket/zipball/58e0422221825b79681b72c50c47a930be7bf1e1",
+ "reference": "58e0422221825b79681b72c50c47a930be7bf1e1",
+ "shasum": ""
+ },
+ "require": {
+ "amphp/amp": "^3",
+ "amphp/byte-stream": "^2",
+ "amphp/dns": "^2",
+ "ext-openssl": "*",
+ "kelunik/certificate": "^1.1",
+ "league/uri": "^6.5 | ^7",
+ "league/uri-interfaces": "^2.3 | ^7",
+ "php": ">=8.1",
+ "revolt/event-loop": "^1 || ^0.2"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "amphp/phpunit-util": "^3",
+ "amphp/process": "^2",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "5.20"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/functions.php",
+ "src/Internal/functions.php",
+ "src/SocketAddress/functions.php"
+ ],
+ "psr-4": {
+ "Amp\\Socket\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Daniel Lowrey",
+ "email": "rdlowrey@gmail.com"
+ },
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ }
+ ],
+ "description": "Non-blocking socket connection / server implementations based on Amp and Revolt.",
+ "homepage": "https://github.com/amphp/socket",
+ "keywords": [
+ "amp",
+ "async",
+ "encryption",
+ "non-blocking",
+ "sockets",
+ "tcp",
+ "tls"
+ ],
+ "support": {
+ "issues": "https://github.com/amphp/socket/issues",
+ "source": "https://github.com/amphp/socket/tree/v2.3.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
+ "time": "2024-04-21T14:33:03+00:00"
+ },
+ {
+ "name": "amphp/sync",
+ "version": "v2.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/amphp/sync.git",
+ "reference": "217097b785130d77cfcc58ff583cf26cd1770bf1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/amphp/sync/zipball/217097b785130d77cfcc58ff583cf26cd1770bf1",
+ "reference": "217097b785130d77cfcc58ff583cf26cd1770bf1",
+ "shasum": ""
+ },
+ "require": {
+ "amphp/amp": "^3",
+ "amphp/pipeline": "^1",
+ "amphp/serialization": "^1",
+ "php": ">=8.1",
+ "revolt/event-loop": "^1 || ^0.2"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "amphp/phpunit-util": "^3",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "5.23"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/functions.php"
+ ],
+ "psr-4": {
+ "Amp\\Sync\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ },
+ {
+ "name": "Stephen Coakley",
+ "email": "me@stephencoakley.com"
+ }
+ ],
+ "description": "Non-blocking synchronization primitives for PHP based on Amp and Revolt.",
+ "homepage": "https://github.com/amphp/sync",
+ "keywords": [
+ "async",
+ "asynchronous",
+ "mutex",
+ "semaphore",
+ "synchronization"
+ ],
+ "support": {
+ "issues": "https://github.com/amphp/sync/issues",
+ "source": "https://github.com/amphp/sync/tree/v2.3.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/amphp",
+ "type": "github"
+ }
+ ],
+ "time": "2024-08-03T19:31:26+00:00"
+ },
+ {
+ "name": "daverandom/libdns",
+ "version": "v2.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/DaveRandom/LibDNS.git",
+ "reference": "b84c94e8fe6b7ee4aecfe121bfe3b6177d303c8a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/DaveRandom/LibDNS/zipball/b84c94e8fe6b7ee4aecfe121bfe3b6177d303c8a",
+ "reference": "b84c94e8fe6b7ee4aecfe121bfe3b6177d303c8a",
+ "shasum": ""
+ },
+ "require": {
+ "ext-ctype": "*",
+ "php": ">=7.1"
+ },
+ "suggest": {
+ "ext-intl": "Required for IDN support"
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "src/functions.php"
+ ],
+ "psr-4": {
+ "LibDNS\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "DNS protocol implementation written in pure PHP",
+ "keywords": [
+ "dns"
+ ],
+ "support": {
+ "issues": "https://github.com/DaveRandom/LibDNS/issues",
+ "source": "https://github.com/DaveRandom/LibDNS/tree/v2.1.0"
+ },
+ "time": "2024-04-12T12:12:48+00:00"
+ },
+ {
+ "name": "illuminate/collections",
+ "version": "v12.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/illuminate/collections.git",
+ "reference": "0094b162fa505126c1391222f27fd98734d24525"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/illuminate/collections/zipball/0094b162fa505126c1391222f27fd98734d24525",
+ "reference": "0094b162fa505126c1391222f27fd98734d24525",
+ "shasum": ""
+ },
+ "require": {
+ "illuminate/conditionable": "^12.0",
+ "illuminate/contracts": "^12.0",
+ "illuminate/macroable": "^12.0",
+ "php": "^8.2"
+ },
+ "suggest": {
+ "symfony/var-dumper": "Required to use the dump method (^7.2)."
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "12.x-dev"
+ }
+ },
+ "autoload": {
+ "files": [
+ "functions.php",
+ "helpers.php"
+ ],
+ "psr-4": {
+ "Illuminate\\Support\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Taylor Otwell",
+ "email": "taylor@laravel.com"
+ }
+ ],
+ "description": "The Illuminate Collections package.",
+ "homepage": "https://laravel.com",
+ "support": {
+ "issues": "https://github.com/laravel/framework/issues",
+ "source": "https://github.com/laravel/framework"
+ },
+ "time": "2025-03-16T23:50:18+00:00"
+ },
+ {
+ "name": "illuminate/conditionable",
+ "version": "v12.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/illuminate/conditionable.git",
+ "reference": "a2b3c66f3ca532e12e694bd5c9254adc303b922d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/illuminate/conditionable/zipball/a2b3c66f3ca532e12e694bd5c9254adc303b922d",
+ "reference": "a2b3c66f3ca532e12e694bd5c9254adc303b922d",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^8.2"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "12.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Illuminate\\Support\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Taylor Otwell",
+ "email": "taylor@laravel.com"
+ }
+ ],
+ "description": "The Illuminate Conditionable package.",
+ "homepage": "https://laravel.com",
+ "support": {
+ "issues": "https://github.com/laravel/framework/issues",
+ "source": "https://github.com/laravel/framework"
+ },
+ "time": "2025-02-19T19:08:33+00:00"
+ },
+ {
+ "name": "illuminate/contracts",
+ "version": "v12.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/illuminate/contracts.git",
+ "reference": "88962e0a73fb837e048ebdbbc67afd2f6b30e8e6"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/illuminate/contracts/zipball/88962e0a73fb837e048ebdbbc67afd2f6b30e8e6",
+ "reference": "88962e0a73fb837e048ebdbbc67afd2f6b30e8e6",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^8.2",
+ "psr/container": "^1.1.1|^2.0.1",
+ "psr/simple-cache": "^1.0|^2.0|^3.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "12.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Illuminate\\Contracts\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Taylor Otwell",
+ "email": "taylor@laravel.com"
+ }
+ ],
+ "description": "The Illuminate Contracts package.",
+ "homepage": "https://laravel.com",
+ "support": {
+ "issues": "https://github.com/laravel/framework/issues",
+ "source": "https://github.com/laravel/framework"
+ },
+ "time": "2025-03-16T23:56:53+00:00"
+ },
+ {
+ "name": "illuminate/macroable",
+ "version": "v12.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/illuminate/macroable.git",
+ "reference": "e862e5648ee34004fa56046b746f490dfa86c613"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/illuminate/macroable/zipball/e862e5648ee34004fa56046b746f490dfa86c613",
+ "reference": "e862e5648ee34004fa56046b746f490dfa86c613",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^8.2"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "12.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Illuminate\\Support\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Taylor Otwell",
+ "email": "taylor@laravel.com"
+ }
+ ],
+ "description": "The Illuminate Macroable package.",
+ "homepage": "https://laravel.com",
+ "support": {
+ "issues": "https://github.com/laravel/framework/issues",
+ "source": "https://github.com/laravel/framework"
+ },
+ "time": "2024-07-23T16:31:01+00:00"
+ },
+ {
+ "name": "kelunik/certificate",
+ "version": "v1.1.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/kelunik/certificate.git",
+ "reference": "7e00d498c264d5eb4f78c69f41c8bd6719c0199e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/kelunik/certificate/zipball/7e00d498c264d5eb4f78c69f41c8bd6719c0199e",
+ "reference": "7e00d498c264d5eb4f78c69f41c8bd6719c0199e",
+ "shasum": ""
+ },
+ "require": {
+ "ext-openssl": "*",
+ "php": ">=7.0"
+ },
+ "require-dev": {
+ "amphp/php-cs-fixer-config": "^2",
+ "phpunit/phpunit": "^6 | 7 | ^8 | ^9"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Kelunik\\Certificate\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ }
+ ],
+ "description": "Access certificate details and transform between different formats.",
+ "keywords": [
+ "DER",
+ "certificate",
+ "certificates",
+ "openssl",
+ "pem",
+ "x509"
+ ],
+ "support": {
+ "issues": "https://github.com/kelunik/certificate/issues",
+ "source": "https://github.com/kelunik/certificate/tree/v1.1.3"
+ },
+ "time": "2023-02-03T21:26:53+00:00"
+ },
+ {
+ "name": "league/uri",
+ "version": "7.5.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/uri.git",
+ "reference": "81fb5145d2644324614cc532b28efd0215bda430"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/uri/zipball/81fb5145d2644324614cc532b28efd0215bda430",
+ "reference": "81fb5145d2644324614cc532b28efd0215bda430",
+ "shasum": ""
+ },
+ "require": {
+ "league/uri-interfaces": "^7.5",
+ "php": "^8.1"
+ },
+ "conflict": {
+ "league/uri-schemes": "^1.0"
+ },
+ "suggest": {
+ "ext-bcmath": "to improve IPV4 host parsing",
+ "ext-fileinfo": "to create Data URI from file contennts",
+ "ext-gmp": "to improve IPV4 host parsing",
+ "ext-intl": "to handle IDN host with the best performance",
+ "jeremykendall/php-domain-parser": "to resolve Public Suffix and Top Level Domain",
+ "league/uri-components": "Needed to easily manipulate URI objects components",
+ "php-64bit": "to improve IPV4 host parsing",
+ "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "7.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "League\\Uri\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Ignace Nyamagana Butera",
+ "email": "nyamsprod@gmail.com",
+ "homepage": "https://nyamsprod.com"
+ }
+ ],
+ "description": "URI manipulation library",
+ "homepage": "https://uri.thephpleague.com",
+ "keywords": [
+ "data-uri",
+ "file-uri",
+ "ftp",
+ "hostname",
+ "http",
+ "https",
+ "middleware",
+ "parse_str",
+ "parse_url",
+ "psr-7",
+ "query-string",
+ "querystring",
+ "rfc3986",
+ "rfc3987",
+ "rfc6570",
+ "uri",
+ "uri-template",
+ "url",
+ "ws"
+ ],
+ "support": {
+ "docs": "https://uri.thephpleague.com",
+ "forum": "https://thephpleague.slack.com",
+ "issues": "https://github.com/thephpleague/uri-src/issues",
+ "source": "https://github.com/thephpleague/uri/tree/7.5.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sponsors/nyamsprod",
+ "type": "github"
+ }
+ ],
+ "time": "2024-12-08T08:40:02+00:00"
+ },
+ {
+ "name": "league/uri-interfaces",
+ "version": "7.5.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/uri-interfaces.git",
+ "reference": "08cfc6c4f3d811584fb09c37e2849e6a7f9b0742"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/08cfc6c4f3d811584fb09c37e2849e6a7f9b0742",
+ "reference": "08cfc6c4f3d811584fb09c37e2849e6a7f9b0742",
+ "shasum": ""
+ },
+ "require": {
+ "ext-filter": "*",
+ "php": "^8.1",
+ "psr/http-factory": "^1",
+ "psr/http-message": "^1.1 || ^2.0"
+ },
+ "suggest": {
+ "ext-bcmath": "to improve IPV4 host parsing",
+ "ext-gmp": "to improve IPV4 host parsing",
+ "ext-intl": "to handle IDN host with the best performance",
+ "php-64bit": "to improve IPV4 host parsing",
+ "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "7.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "League\\Uri\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Ignace Nyamagana Butera",
+ "email": "nyamsprod@gmail.com",
+ "homepage": "https://nyamsprod.com"
+ }
+ ],
+ "description": "Common interfaces and classes for URI representation and interaction",
+ "homepage": "https://uri.thephpleague.com",
+ "keywords": [
+ "data-uri",
+ "file-uri",
+ "ftp",
+ "hostname",
+ "http",
+ "https",
+ "parse_str",
+ "parse_url",
+ "psr-7",
+ "query-string",
+ "querystring",
+ "rfc3986",
+ "rfc3987",
+ "rfc6570",
+ "uri",
+ "url",
+ "ws"
+ ],
+ "support": {
+ "docs": "https://uri.thephpleague.com",
+ "forum": "https://thephpleague.slack.com",
+ "issues": "https://github.com/thephpleague/uri-src/issues",
+ "source": "https://github.com/thephpleague/uri-interfaces/tree/7.5.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sponsors/nyamsprod",
+ "type": "github"
+ }
+ ],
+ "time": "2024-12-08T08:18:47+00:00"
+ },
+ {
+ "name": "psr/container",
+ "version": "2.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/container.git",
+ "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963",
+ "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.4.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Container\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "https://www.php-fig.org/"
+ }
+ ],
+ "description": "Common Container Interface (PHP FIG PSR-11)",
+ "homepage": "https://github.com/php-fig/container",
+ "keywords": [
+ "PSR-11",
+ "container",
+ "container-interface",
+ "container-interop",
+ "psr"
+ ],
+ "support": {
+ "issues": "https://github.com/php-fig/container/issues",
+ "source": "https://github.com/php-fig/container/tree/2.0.2"
+ },
+ "time": "2021-11-05T16:47:00+00:00"
+ },
+ {
+ "name": "psr/http-factory",
+ "version": "1.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/http-factory.git",
+ "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a",
+ "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1",
+ "psr/http-message": "^1.0 || ^2.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Http\\Message\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "https://www.php-fig.org/"
+ }
+ ],
+ "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories",
+ "keywords": [
+ "factory",
+ "http",
+ "message",
+ "psr",
+ "psr-17",
+ "psr-7",
+ "request",
+ "response"
+ ],
+ "support": {
+ "source": "https://github.com/php-fig/http-factory"
+ },
+ "time": "2024-04-15T12:06:14+00:00"
+ },
+ {
+ "name": "psr/http-message",
+ "version": "2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/http-message.git",
+ "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71",
+ "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2 || ^8.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\Http\\Message\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "https://www.php-fig.org/"
+ }
+ ],
+ "description": "Common interface for HTTP messages",
+ "homepage": "https://github.com/php-fig/http-message",
+ "keywords": [
+ "http",
+ "http-message",
+ "psr",
+ "psr-7",
+ "request",
+ "response"
+ ],
+ "support": {
+ "source": "https://github.com/php-fig/http-message/tree/2.0"
+ },
+ "time": "2023-04-04T09:54:51+00:00"
+ },
+ {
+ "name": "psr/simple-cache",
+ "version": "3.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/php-fig/simple-cache.git",
+ "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865",
+ "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=8.0.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Psr\\SimpleCache\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "PHP-FIG",
+ "homepage": "https://www.php-fig.org/"
+ }
+ ],
+ "description": "Common interfaces for simple caching",
+ "keywords": [
+ "cache",
+ "caching",
+ "psr",
+ "psr-16",
+ "simple-cache"
+ ],
+ "support": {
+ "source": "https://github.com/php-fig/simple-cache/tree/3.0.0"
+ },
+ "time": "2021-10-29T13:26:27+00:00"
+ },
+ {
+ "name": "revolt/event-loop",
+ "version": "v1.0.7",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/revoltphp/event-loop.git",
+ "reference": "09bf1bf7f7f574453efe43044b06fafe12216eb3"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/revoltphp/event-loop/zipball/09bf1bf7f7f574453efe43044b06fafe12216eb3",
+ "reference": "09bf1bf7f7f574453efe43044b06fafe12216eb3",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=8.1"
+ },
+ "require-dev": {
+ "ext-json": "*",
+ "jetbrains/phpstorm-stubs": "^2019.3",
+ "phpunit/phpunit": "^9",
+ "psalm/phar": "^5.15"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Revolt\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Aaron Piotrowski",
+ "email": "aaron@trowski.com"
+ },
+ {
+ "name": "Cees-Jan Kiewiet",
+ "email": "ceesjank@gmail.com"
+ },
+ {
+ "name": "Christian Lück",
+ "email": "christian@clue.engineering"
+ },
+ {
+ "name": "Niklas Keller",
+ "email": "me@kelunik.com"
+ }
+ ],
+ "description": "Rock-solid event loop for concurrent PHP applications.",
+ "keywords": [
+ "async",
+ "asynchronous",
+ "concurrency",
+ "event",
+ "event-loop",
+ "non-blocking",
+ "scheduler"
+ ],
+ "support": {
+ "issues": "https://github.com/revoltphp/event-loop/issues",
+ "source": "https://github.com/revoltphp/event-loop/tree/v1.0.7"
+ },
+ "time": "2025-01-25T19:27:39+00:00"
+ },
+ {
+ "name": "spatie/laravel-package-tools",
+ "version": "1.19.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/spatie/laravel-package-tools.git",
+ "reference": "1c9c30ac6a6576b8d15c6c37b6cf23d748df2faa"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/1c9c30ac6a6576b8d15c6c37b6cf23d748df2faa",
+ "reference": "1c9c30ac6a6576b8d15c6c37b6cf23d748df2faa",
+ "shasum": ""
+ },
+ "require": {
+ "illuminate/contracts": "^9.28|^10.0|^11.0|^12.0",
+ "php": "^8.0"
+ },
+ "require-dev": {
+ "mockery/mockery": "^1.5",
+ "orchestra/testbench": "^7.7|^8.0|^9.0|^10.0",
+ "pestphp/pest": "^1.23|^2.1|^3.1",
+ "phpunit/phpunit": "^9.5.24|^10.5|^11.5",
+ "spatie/pest-plugin-test-time": "^1.1|^2.2"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Spatie\\LaravelPackageTools\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Freek Van der Herten",
+ "email": "freek@spatie.be",
+ "role": "Developer"
+ }
+ ],
+ "description": "Tools for creating Laravel packages",
+ "homepage": "https://github.com/spatie/laravel-package-tools",
+ "keywords": [
+ "laravel-package-tools",
+ "spatie"
+ ],
+ "support": {
+ "issues": "https://github.com/spatie/laravel-package-tools/issues",
+ "source": "https://github.com/spatie/laravel-package-tools/tree/1.19.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/spatie",
+ "type": "github"
+ }
+ ],
+ "time": "2025-02-06T14:58:20+00:00"
+ },
+ {
+ "name": "spatie/php-structure-discoverer",
+ "version": "2.3.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/spatie/php-structure-discoverer.git",
+ "reference": "42f4d731d3dd4b3b85732e05a8c1928fcfa2f4bc"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/spatie/php-structure-discoverer/zipball/42f4d731d3dd4b3b85732e05a8c1928fcfa2f4bc",
+ "reference": "42f4d731d3dd4b3b85732e05a8c1928fcfa2f4bc",
+ "shasum": ""
+ },
+ "require": {
+ "amphp/amp": "^v3.0",
+ "amphp/parallel": "^2.2",
+ "illuminate/collections": "^10.0|^11.0|^12.0",
+ "php": "^8.1",
+ "spatie/laravel-package-tools": "^1.4.3",
+ "symfony/finder": "^6.0|^7.0"
+ },
+ "require-dev": {
+ "illuminate/console": "^10.0|^11.0|^12.0",
+ "laravel/pint": "^1.0",
+ "nunomaduro/collision": "^7.0|^8.0",
+ "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
+ "pestphp/pest": "^2.0|^3.0",
+ "pestphp/pest-plugin-laravel": "^2.0|^3.0",
+ "phpstan/extension-installer": "^1.1",
+ "phpstan/phpstan-deprecation-rules": "^1.0",
+ "phpstan/phpstan-phpunit": "^1.0",
+ "phpunit/phpunit": "^9.5|^10.0|^11.5.3",
+ "spatie/laravel-ray": "^1.26"
+ },
+ "type": "library",
+ "extra": {
+ "laravel": {
+ "providers": [
+ "Spatie\\StructureDiscoverer\\StructureDiscovererServiceProvider"
+ ]
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Spatie\\StructureDiscoverer\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Ruben Van Assche",
+ "email": "ruben@spatie.be",
+ "role": "Developer"
+ }
+ ],
+ "description": "Automatically discover structures within your PHP application",
+ "homepage": "https://github.com/spatie/php-structure-discoverer",
+ "keywords": [
+ "discover",
+ "laravel",
+ "php",
+ "php-structure-discoverer"
+ ],
+ "support": {
+ "issues": "https://github.com/spatie/php-structure-discoverer/issues",
+ "source": "https://github.com/spatie/php-structure-discoverer/tree/2.3.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/LaravelAutoDiscoverer",
+ "type": "github"
+ }
+ ],
+ "time": "2025-02-14T10:18:38+00:00"
+ },
+ {
+ "name": "symfony/finder",
+ "version": "v7.2.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/finder.git",
+ "reference": "87a71856f2f56e4100373e92529eed3171695cfb"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/87a71856f2f56e4100373e92529eed3171695cfb",
+ "reference": "87a71856f2f56e4100373e92529eed3171695cfb",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=8.2"
+ },
+ "require-dev": {
+ "symfony/filesystem": "^6.4|^7.0"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Finder\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Finds files and directories via an intuitive fluent interface",
+ "homepage": "https://symfony.com",
+ "support": {
+ "source": "https://github.com/symfony/finder/tree/v7.2.2"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2024-12-30T19:00:17+00:00"
+ }
+ ],
+ "packages-dev": [
+ {
+ "name": "10up/phpcs-composer",
+ "version": "dev-trunk",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/10up/phpcs-composer.git",
+ "reference": "75fde1b62cbb551146159154b0d7135d1da0db1c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/10up/phpcs-composer/zipball/75fde1b62cbb551146159154b0d7135d1da0db1c",
+ "reference": "75fde1b62cbb551146159154b0d7135d1da0db1c",
+ "shasum": ""
+ },
+ "require": {
+ "automattic/vipwpcs": "^3.0",
+ "phpcompatibility/phpcompatibility-wp": "^2"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "*",
+ "phpcompatibility/php-compatibility": "dev-develop as 9.99.99"
+ },
+ "default-branch": true,
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "10up",
+ "homepage": "https://10up.com/"
+ }
+ ],
+ "description": "10up's PHP CodeSniffer Ruleset",
+ "support": {
+ "issues": "https://github.com/10up/phpcs-composer/issues",
+ "source": "https://github.com/10up/phpcs-composer/tree/trunk"
+ },
+ "time": "2023-12-14T21:42:57+00:00"
+ },
+ {
+ "name": "automattic/vipwpcs",
+ "version": "3.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/Automattic/VIP-Coding-Standards.git",
+ "reference": "2b1d206d81b74ed999023cffd924f862ff2753c8"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/Automattic/VIP-Coding-Standards/zipball/2b1d206d81b74ed999023cffd924f862ff2753c8",
+ "reference": "2b1d206d81b74ed999023cffd924f862ff2753c8",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.4",
+ "phpcsstandards/phpcsextra": "^1.2.1",
+ "phpcsstandards/phpcsutils": "^1.0.11",
+ "sirbrillig/phpcs-variable-analysis": "^2.11.18",
+ "squizlabs/php_codesniffer": "^3.9.2",
+ "wp-coding-standards/wpcs": "^3.1.0"
+ },
+ "require-dev": {
+ "php-parallel-lint/php-console-highlighter": "^1.0.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
+ "phpcompatibility/php-compatibility": "^9",
+ "phpcsstandards/phpcsdevtools": "^1.0",
+ "phpunit/phpunit": "^4 || ^5 || ^6 || ^7 || ^8 || ^9"
+ },
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/Automattic/VIP-Coding-Standards/graphs/contributors"
+ }
+ ],
+ "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions",
+ "keywords": [
+ "phpcs",
+ "standards",
+ "static analysis",
+ "wordpress"
+ ],
+ "support": {
+ "issues": "https://github.com/Automattic/VIP-Coding-Standards/issues",
+ "source": "https://github.com/Automattic/VIP-Coding-Standards",
+ "wiki": "https://github.com/Automattic/VIP-Coding-Standards/wiki"
+ },
+ "time": "2024-05-10T20:31:09+00:00"
+ },
+ {
+ "name": "dealerdirect/phpcodesniffer-composer-installer",
+ "version": "v1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/composer-installer.git",
+ "reference": "4be43904336affa5c2f70744a348312336afd0da"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/4be43904336affa5c2f70744a348312336afd0da",
+ "reference": "4be43904336affa5c2f70744a348312336afd0da",
+ "shasum": ""
+ },
+ "require": {
+ "composer-plugin-api": "^1.0 || ^2.0",
+ "php": ">=5.4",
+ "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
+ },
+ "require-dev": {
+ "composer/composer": "*",
+ "ext-json": "*",
+ "ext-zip": "*",
+ "php-parallel-lint/php-parallel-lint": "^1.3.1",
+ "phpcompatibility/php-compatibility": "^9.0",
+ "yoast/phpunit-polyfills": "^1.0"
+ },
+ "type": "composer-plugin",
+ "extra": {
+ "class": "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
+ },
+ "autoload": {
+ "psr-4": {
+ "PHPCSStandards\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Franck Nijhof",
+ "email": "franck.nijhof@dealerdirect.com",
+ "homepage": "http://www.frenck.nl",
+ "role": "Developer / IT Manager"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/composer-installer/graphs/contributors"
+ }
+ ],
+ "description": "PHP_CodeSniffer Standards Composer Installer Plugin",
+ "homepage": "http://www.dealerdirect.com",
+ "keywords": [
+ "PHPCodeSniffer",
+ "PHP_CodeSniffer",
+ "code quality",
+ "codesniffer",
+ "composer",
+ "installer",
+ "phpcbf",
+ "phpcs",
+ "plugin",
+ "qa",
+ "quality",
+ "standard",
+ "standards",
+ "style guide",
+ "stylecheck",
+ "tests"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCSStandards/composer-installer/issues",
+ "source": "https://github.com/PHPCSStandards/composer-installer"
+ },
+ "time": "2023-01-05T11:28:13+00:00"
+ },
+ {
+ "name": "phpcompatibility/php-compatibility",
+ "version": "9.3.5",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
+ "reference": "9fb324479acf6f39452e0655d2429cc0d3914243"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243",
+ "reference": "9fb324479acf6f39452e0655d2429cc0d3914243",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3",
+ "squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
+ },
+ "conflict": {
+ "squizlabs/php_codesniffer": "2.6.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "suggest": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
+ "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
+ },
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Wim Godden",
+ "homepage": "https://github.com/wimg",
+ "role": "lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "homepage": "https://github.com/jrfnl",
+ "role": "lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors"
+ }
+ ],
+ "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.",
+ "homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
+ "keywords": [
+ "compatibility",
+ "phpcs",
+ "standards"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues",
+ "source": "https://github.com/PHPCompatibility/PHPCompatibility"
+ },
+ "time": "2019-12-27T09:44:58+00:00"
+ },
+ {
+ "name": "phpcompatibility/phpcompatibility-paragonie",
+ "version": "1.3.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git",
+ "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/293975b465e0e709b571cbf0c957c6c0a7b9a2ac",
+ "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac",
+ "shasum": ""
+ },
+ "require": {
+ "phpcompatibility/php-compatibility": "^9.0"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
+ "paragonie/random_compat": "dev-master",
+ "paragonie/sodium_compat": "dev-master"
+ },
+ "suggest": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
+ "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
+ },
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Wim Godden",
+ "role": "lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "role": "lead"
+ }
+ ],
+ "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.",
+ "homepage": "http://phpcompatibility.com/",
+ "keywords": [
+ "compatibility",
+ "paragonie",
+ "phpcs",
+ "polyfill",
+ "standards",
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues",
+ "security": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/security/policy",
+ "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCompatibility",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2024-04-24T21:30:46+00:00"
+ },
+ {
+ "name": "phpcompatibility/phpcompatibility-wp",
+ "version": "2.1.6",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git",
+ "reference": "80ccb1a7640995edf1b87a4409fa584cd5869469"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/80ccb1a7640995edf1b87a4409fa584cd5869469",
+ "reference": "80ccb1a7640995edf1b87a4409fa584cd5869469",
+ "shasum": ""
+ },
+ "require": {
+ "phpcompatibility/php-compatibility": "^9.0",
+ "phpcompatibility/phpcompatibility-paragonie": "^1.0"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^1.0"
+ },
+ "suggest": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
+ "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
+ },
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Wim Godden",
+ "role": "lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "role": "lead"
+ }
+ ],
+ "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.",
+ "homepage": "http://phpcompatibility.com/",
+ "keywords": [
+ "compatibility",
+ "phpcs",
+ "standards",
+ "static analysis",
+ "wordpress"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues",
+ "security": "https://github.com/PHPCompatibility/PHPCompatibilityWP/security/policy",
+ "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCompatibility",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2025-01-16T22:34:19+00:00"
+ },
+ {
+ "name": "phpcsstandards/phpcsextra",
+ "version": "1.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/PHPCSExtra.git",
+ "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/11d387c6642b6e4acaf0bd9bf5203b8cca1ec489",
+ "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.4",
+ "phpcsstandards/phpcsutils": "^1.0.9",
+ "squizlabs/php_codesniffer": "^3.8.0"
+ },
+ "require-dev": {
+ "php-parallel-lint/php-console-highlighter": "^1.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
+ "phpcsstandards/phpcsdevcs": "^1.1.6",
+ "phpcsstandards/phpcsdevtools": "^1.2.1",
+ "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
+ },
+ "type": "phpcodesniffer-standard",
+ "extra": {
+ "branch-alias": {
+ "dev-stable": "1.x-dev",
+ "dev-develop": "1.x-dev"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Juliette Reinders Folmer",
+ "homepage": "https://github.com/jrfnl",
+ "role": "lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors"
+ }
+ ],
+ "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.",
+ "keywords": [
+ "PHP_CodeSniffer",
+ "phpcbf",
+ "phpcodesniffer-standard",
+ "phpcs",
+ "standards",
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues",
+ "security": "https://github.com/PHPCSStandards/PHPCSExtra/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHPCSExtra"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2023-12-08T16:49:07+00:00"
+ },
+ {
+ "name": "phpcsstandards/phpcsutils",
+ "version": "1.0.12",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/PHPCSUtils.git",
+ "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/87b233b00daf83fb70f40c9a28692be017ea7c6c",
+ "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c",
+ "shasum": ""
+ },
+ "require": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0",
+ "php": ">=5.4",
+ "squizlabs/php_codesniffer": "^3.10.0 || 4.0.x-dev@dev"
+ },
+ "require-dev": {
+ "ext-filter": "*",
+ "php-parallel-lint/php-console-highlighter": "^1.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
+ "phpcsstandards/phpcsdevcs": "^1.1.6",
+ "yoast/phpunit-polyfills": "^1.1.0 || ^2.0.0"
+ },
+ "type": "phpcodesniffer-standard",
+ "extra": {
+ "branch-alias": {
+ "dev-stable": "1.x-dev",
+ "dev-develop": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "PHPCSUtils/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "LGPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Juliette Reinders Folmer",
+ "homepage": "https://github.com/jrfnl",
+ "role": "lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors"
+ }
+ ],
+ "description": "A suite of utility functions for use with PHP_CodeSniffer",
+ "homepage": "https://phpcsutils.com/",
+ "keywords": [
+ "PHP_CodeSniffer",
+ "phpcbf",
+ "phpcodesniffer-standard",
+ "phpcs",
+ "phpcs3",
+ "standards",
+ "static analysis",
+ "tokens",
+ "utility"
+ ],
+ "support": {
+ "docs": "https://phpcsutils.com/",
+ "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues",
+ "security": "https://github.com/PHPCSStandards/PHPCSUtils/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHPCSUtils"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2024-05-20T13:34:27+00:00"
+ },
+ {
+ "name": "sirbrillig/phpcs-variable-analysis",
+ "version": "v2.12.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sirbrillig/phpcs-variable-analysis.git",
+ "reference": "4debf5383d9ade705e0a25121f16c3fecaf433a7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/4debf5383d9ade705e0a25121f16c3fecaf433a7",
+ "reference": "4debf5383d9ade705e0a25121f16c3fecaf433a7",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.4.0",
+ "squizlabs/php_codesniffer": "^3.5.6"
+ },
+ "require-dev": {
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || ^1.0",
+ "phpcsstandards/phpcsdevcs": "^1.1",
+ "phpstan/phpstan": "^1.7",
+ "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0 || ^10.5.32 || ^11.3.3",
+ "vimeo/psalm": "^0.2 || ^0.3 || ^1.1 || ^4.24 || ^5.0"
+ },
+ "type": "phpcodesniffer-standard",
+ "autoload": {
+ "psr-4": {
+ "VariableAnalysis\\": "VariableAnalysis/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-2-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sam Graham",
+ "email": "php-codesniffer-variableanalysis@illusori.co.uk"
+ },
+ {
+ "name": "Payton Swick",
+ "email": "payton@foolord.com"
+ }
+ ],
+ "description": "A PHPCS sniff to detect problems with variables.",
+ "keywords": [
+ "phpcs",
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/sirbrillig/phpcs-variable-analysis/issues",
+ "source": "https://github.com/sirbrillig/phpcs-variable-analysis",
+ "wiki": "https://github.com/sirbrillig/phpcs-variable-analysis/wiki"
+ },
+ "time": "2025-03-17T16:17:38+00:00"
+ },
+ {
+ "name": "squizlabs/php_codesniffer",
+ "version": "3.12.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
+ "reference": "2d1b63db139c3c6ea0c927698e5160f8b3b8d630"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/2d1b63db139c3c6ea0c927698e5160f8b3b8d630",
+ "reference": "2d1b63db139c3c6ea0c927698e5160f8b3b8d630",
+ "shasum": ""
+ },
+ "require": {
+ "ext-simplexml": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlwriter": "*",
+ "php": ">=5.4.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
+ },
+ "bin": [
+ "bin/phpcbf",
+ "bin/phpcs"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.x-dev"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Greg Sherwood",
+ "role": "Former lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "role": "Current lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
+ }
+ ],
+ "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
+ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
+ "keywords": [
+ "phpcs",
+ "standards",
+ "static analysis"
+ ],
+ "support": {
+ "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues",
+ "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
+ "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ },
+ {
+ "url": "https://thanks.dev/u/gh/phpcsstandards",
+ "type": "thanks_dev"
+ }
+ ],
+ "time": "2025-03-18T05:04:51+00:00"
+ },
+ {
+ "name": "wp-coding-standards/wpcs",
+ "version": "3.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
+ "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/9333efcbff231f10dfd9c56bb7b65818b4733ca7",
+ "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7",
+ "shasum": ""
+ },
+ "require": {
+ "ext-filter": "*",
+ "ext-libxml": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlreader": "*",
+ "php": ">=5.4",
+ "phpcsstandards/phpcsextra": "^1.2.1",
+ "phpcsstandards/phpcsutils": "^1.0.10",
+ "squizlabs/php_codesniffer": "^3.9.0"
+ },
+ "require-dev": {
+ "php-parallel-lint/php-console-highlighter": "^1.0.0",
+ "php-parallel-lint/php-parallel-lint": "^1.3.2",
+ "phpcompatibility/php-compatibility": "^9.0",
+ "phpcsstandards/phpcsdevtools": "^1.2.0",
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
+ },
+ "suggest": {
+ "ext-iconv": "For improved results",
+ "ext-mbstring": "For improved results"
+ },
+ "type": "phpcodesniffer-standard",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors"
+ }
+ ],
+ "description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
+ "keywords": [
+ "phpcs",
+ "standards",
+ "static analysis",
+ "wordpress"
+ ],
+ "support": {
+ "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues",
+ "source": "https://github.com/WordPress/WordPress-Coding-Standards",
+ "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki"
+ },
+ "funding": [
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "custom"
+ }
+ ],
+ "time": "2024-03-25T16:39:00+00:00"
+ }
+ ],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": {
+ "10up/phpcs-composer": 20
+ },
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": {
+ "php": ">=8.2"
+ },
+ "platform-dev": [],
+ "plugin-api-version": "2.6.0"
+}
diff --git a/themes/fueled-movies-complete/functions.php b/themes/fueled-movies-complete/functions.php
new file mode 100755
index 0000000..3145b54
--- /dev/null
+++ b/themes/fueled-movies-complete/functions.php
@@ -0,0 +1,39 @@
+setup();
diff --git a/themes/10up-block-theme/package.json b/themes/fueled-movies-complete/package.json
similarity index 64%
rename from themes/10up-block-theme/package.json
rename to themes/fueled-movies-complete/package.json
index 0b32952..a435907 100644
--- a/themes/10up-block-theme/package.json
+++ b/themes/fueled-movies-complete/package.json
@@ -1,5 +1,5 @@
{
- "name": "tenup-block-theme",
+ "name": "fueled-movies-complete",
"version": "1.0.0",
"scripts": {
"start": "npm run watch",
@@ -11,16 +11,11 @@
"lint-style": "10up-toolkit lint-style",
"test": "10up-toolkit test-unit-jest --passWithNoTests",
"clean-dist": "rm -rf ./dist",
- "scaffold:block": "cd includes/blocks/ && wp-create-block --no-plugin --template ../../../../bin/create-block-template"
- },
- "engines": {
- "node": ">=18.0.0"
- },
- "devDependencies": {
- "10up-toolkit": "^6.3.0"
+ "scaffold:block": "cd blocks/ && wp-create-block --no-plugin --template ../../../../bin/create-block-template"
},
"dependencies": {
"@10up/block-components": "^1.19.4",
+ "10up-toolkit": "^6.5.0",
"clsx": "^2.1.1"
},
"10up-toolkit": {
@@ -28,9 +23,13 @@
"useScriptModules": true,
"loadBlockSpecificStyles": true,
"entry": {
- "editor-style-overrides": "./assets/css/editor-style-overrides.css",
+ "editor-frame-style-overrides": "./assets/css/editor-frame-style-overrides.css",
+ "editor-canvas-style-overrides": "./assets/css/editor-canvas-style-overrides.css",
"frontend": "./assets/js/frontend.js",
"block-extensions": "./assets/js/block-extensions.js"
+ },
+ "paths": {
+ "blocksDir": "./blocks"
}
}
}
diff --git a/themes/10up-block-theme/parts/footer.html b/themes/fueled-movies-complete/parts/footer.html
similarity index 100%
rename from themes/10up-block-theme/parts/footer.html
rename to themes/fueled-movies-complete/parts/footer.html
diff --git a/themes/10up-block-theme/parts/header.html b/themes/fueled-movies-complete/parts/header.html
similarity index 100%
rename from themes/10up-block-theme/parts/header.html
rename to themes/fueled-movies-complete/parts/header.html
diff --git a/themes/10up-block-theme/parts/site-footer-legal-navigation-area.html b/themes/fueled-movies-complete/parts/site-footer-legal-navigation-area.html
similarity index 100%
rename from themes/10up-block-theme/parts/site-footer-legal-navigation-area.html
rename to themes/fueled-movies-complete/parts/site-footer-legal-navigation-area.html
diff --git a/themes/10up-block-theme/parts/site-header-navigation-area.html b/themes/fueled-movies-complete/parts/site-header-navigation-area.html
similarity index 100%
rename from themes/10up-block-theme/parts/site-header-navigation-area.html
rename to themes/fueled-movies-complete/parts/site-header-navigation-area.html
diff --git a/themes/10up-block-theme/patterns/card.php b/themes/fueled-movies-complete/patterns/card.php
similarity index 98%
rename from themes/10up-block-theme/patterns/card.php
rename to themes/fueled-movies-complete/patterns/card.php
index 155c72b..e8d35e5 100644
--- a/themes/10up-block-theme/patterns/card.php
+++ b/themes/fueled-movies-complete/patterns/card.php
@@ -5,7 +5,7 @@
* Description: A card pattern with a featured image, title, date, and category.
* Inserter: false
*
- * @package TenupBlockTheme
+ * @package FueledMoviesTheme
*/
?>
diff --git a/themes/10up-block-theme/patterns/single-movie-video-embed.php b/themes/fueled-movies-complete/patterns/single-movie-video-embed.php
similarity index 97%
rename from themes/10up-block-theme/patterns/single-movie-video-embed.php
rename to themes/fueled-movies-complete/patterns/single-movie-video-embed.php
index e804580..9181bdc 100644
--- a/themes/10up-block-theme/patterns/single-movie-video-embed.php
+++ b/themes/fueled-movies-complete/patterns/single-movie-video-embed.php
@@ -5,7 +5,7 @@
* Description: A video embed with a fallback image.
* Inserter: false
*
- * @package TenupBlockTheme
+ * @package FueledMoviesTheme
*/
$youtube_id = get_post_meta( get_the_ID(), 'tenup_movie_youtube_id', true );
diff --git a/themes/10up-block-theme/phpcs.xml b/themes/fueled-movies-complete/phpcs.xml
similarity index 100%
rename from themes/10up-block-theme/phpcs.xml
rename to themes/fueled-movies-complete/phpcs.xml
diff --git a/themes/10up-block-theme/screenshot.png b/themes/fueled-movies-complete/screenshot.png
similarity index 100%
rename from themes/10up-block-theme/screenshot.png
rename to themes/fueled-movies-complete/screenshot.png
diff --git a/themes/fueled-movies-complete/src/Assets.php b/themes/fueled-movies-complete/src/Assets.php
new file mode 100644
index 0000000..4873dde
--- /dev/null
+++ b/themes/fueled-movies-complete/src/Assets.php
@@ -0,0 +1,159 @@
+setup_asset_vars(
+ dist_path: FUELED_MOVIES_THEME_DIST_PATH,
+ fallback_version: FUELED_MOVIES_THEME_VERSION
+ );
+ add_action( 'init', [ $this, 'register_all_icons' ], 10 );
+ add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_frontend_assets' ] );
+ add_action( 'enqueue_block_editor_assets', [ $this, 'enqueue_block_editor_assets' ] );
+ add_action( 'enqueue_block_assets', [ $this, 'enqueue_block_editor_iframe_assets' ] );
+ }
+
+ /**
+ * Enqueue assets for the front-end.
+ *
+ * @return void
+ */
+ public function enqueue_frontend_assets() {
+ wp_enqueue_style(
+ 'tenup-theme-styles',
+ FUELED_MOVIES_THEME_TEMPLATE_URL . '/dist/css/frontend.css',
+ [],
+ $this->get_asset_info( 'frontend', 'version' )
+ );
+
+ wp_enqueue_script(
+ 'tenup-theme-frontend',
+ FUELED_MOVIES_THEME_TEMPLATE_URL . '/dist/js/frontend.js',
+ $this->get_asset_info( 'frontend', 'dependencies' ),
+ $this->get_asset_info( 'frontend', 'version' ),
+ [
+ 'strategy' => 'defer',
+ ]
+ );
+ }
+
+ /**
+ * Enqueue assets for the block editor.
+ *
+ * These assets are enqueued in the editor outside of the editor canvas iframe.
+ *
+ * @return void
+ */
+ public function enqueue_block_editor_assets() {
+ wp_enqueue_style(
+ 'tenup-theme-editor-frame-style-overrides',
+ FUELED_MOVIES_THEME_TEMPLATE_URL . '/dist/css/editor-frame-style-overrides.css',
+ [],
+ FUELED_MOVIES_THEME_VERSION
+ );
+
+ wp_enqueue_script(
+ 'tenup-theme-block-extensions',
+ FUELED_MOVIES_THEME_TEMPLATE_URL . '/dist/js/block-extensions.js',
+ $this->get_asset_info( 'block-extensions', 'dependencies' ),
+ $this->get_asset_info( 'block-extensions', 'version' ),
+ true
+ );
+ }
+
+ /**
+ * Enqueue styles inside the editor canvas iFrame only.
+ *
+ * @return void
+ */
+ public function enqueue_block_editor_iframe_assets() {
+
+ // The `enqueue_block_assets` action is triggered both on the front-end and in the editor iframe.
+ // We only want to enqueue these styles inside the editor iframe.
+ if ( ! is_admin() ) {
+ return;
+ }
+
+ wp_enqueue_style(
+ 'tenup-theme-editor-canvas-style-overrides',
+ FUELED_MOVIES_THEME_TEMPLATE_URL . '/dist/css/editor-canvas-style-overrides.css',
+ [],
+ FUELED_MOVIES_THEME_VERSION
+ );
+ }
+
+ /**
+ * register all icons located in the dist/svg folder
+ *
+ * @return void
+ */
+ public function register_all_icons() {
+ if ( ! function_exists( '\UIKitCore\Helpers\register_icons' ) ) {
+ return;
+ }
+
+ $icon_paths = glob( FUELED_MOVIES_THEME_DIST_PATH . 'svg/*.svg' );
+
+ if ( ! $icon_paths ) {
+ return;
+ }
+
+ $icons = array_map(
+ function ( $icon_path ) {
+ $icon_name = preg_replace( '#\..*$#', '', basename( $icon_path ) );
+
+ if ( ! $icon_name || ! class_exists( '\UIKitCore\Icon' ) ) {
+ return false;
+ }
+
+ return new \UIKitCore\Icon(
+ $icon_name,
+ ucwords( str_replace( '-', ' ', $icon_name ) ),
+ $icon_path
+ );
+ },
+ $icon_paths
+ );
+
+ \UIKitCore\Helpers\register_icons(
+ [
+ 'name' => 'tenup',
+ 'label' => 'Theme Icons',
+ 'icons' => $icons,
+ ]
+ );
+ }
+}
diff --git a/themes/fueled-movies-complete/src/Blocks.php b/themes/fueled-movies-complete/src/Blocks.php
new file mode 100644
index 0000000..871201a
--- /dev/null
+++ b/themes/fueled-movies-complete/src/Blocks.php
@@ -0,0 +1,286 @@
+setup_asset_vars(
+ dist_path: FUELED_MOVIES_THEME_DIST_PATH,
+ fallback_version: FUELED_MOVIES_THEME_VERSION
+ );
+ add_action( 'init', [ $this, 'register_theme_blocks' ], 10, 0 );
+ add_action( 'init', [ $this, 'enqueue_theme_block_styles' ], 10, 0 );
+ add_action( 'init', [ $this, 'register_block_bindings' ], 11, 0 );
+ add_filter( 'render_block_core/post-featured-image', [ $this, 'filter_featured_image_block' ], 10, 3 );
+
+ // Prevents third-party blocks from being suggested in the block inserter.
+ remove_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_block_directory_assets' );
+ }
+
+
+ /**
+ * Automatically registers all blocks that are located within the includes/blocks directory
+ *
+ * @return void
+ */
+ public function register_theme_blocks() {
+ // Register all the blocks in the theme.
+ if ( file_exists( FUELED_MOVIES_THEME_BLOCK_DIST_DIR ) ) {
+ $block_json_files = glob( FUELED_MOVIES_THEME_BLOCK_DIST_DIR . '*/block.json' );
+ $block_names = [];
+
+ if ( empty( $block_json_files ) ) {
+ return;
+ }
+
+ foreach ( $block_json_files as $filename ) {
+ $block_folder = dirname( $filename );
+ $block = register_block_type_from_metadata( $block_folder );
+
+ if ( ! $block ) {
+ continue;
+ }
+
+ $block_names[] = $block->name;
+ }
+
+ add_filter(
+ 'allowed_block_types_all',
+ function ( array|bool $allowed_blocks ) use ( $block_names ): array|bool {
+ if ( ! is_array( $allowed_blocks ) ) {
+ return $allowed_blocks;
+ }
+ return array_merge( $allowed_blocks, $block_names );
+ }
+ );
+ }
+ }
+
+ /**
+ * Enqueue block specific styles.
+ *
+ * @return void
+ */
+ public function enqueue_theme_block_styles() {
+ $stylesheets = glob( FUELED_MOVIES_THEME_DIST_PATH . '/blocks/autoenqueue/**/*.css' );
+
+ if ( empty( $stylesheets ) ) {
+ return;
+ }
+
+ foreach ( $stylesheets as $stylesheet_path ) {
+ $block_type = str_replace( FUELED_MOVIES_THEME_DIST_PATH . '/blocks/autoenqueue/', '', $stylesheet_path );
+ $block_type = str_replace( '.css', '', $block_type );
+
+ wp_register_style(
+ "tenup-theme-{$block_type}",
+ FUELED_MOVIES_THEME_DIST_URL . 'blocks/autoenqueue/' . $block_type . '.css',
+ $this->get_asset_info( 'blocks/autoenqueue/' . $block_type, 'dependencies' ),
+ $this->get_asset_info( 'blocks/autoenqueue/' . $block_type, 'version' ),
+ );
+
+ wp_enqueue_block_style(
+ $block_type,
+ [
+ 'handle' => "tenup-theme-{$block_type}",
+ 'path' => $stylesheet_path,
+ ]
+ );
+
+ if ( file_exists( FUELED_MOVIES_THEME_DIST_PATH . 'blocks/autoenqueue/' . $block_type . '.js' ) ) {
+ wp_enqueue_script(
+ $block_type,
+ FUELED_MOVIES_THEME_DIST_URL . 'blocks/autoenqueue/' . $block_type . '.js',
+ $this->get_asset_info( 'blocks/autoenqueue/' . $block_type, 'dependencies' ),
+ $this->get_asset_info( 'blocks/autoenqueue/' . $block_type, 'version' ),
+ true
+ );
+ }
+ }
+ }
+
+ /**
+ * Register the block bindings for the theme.
+ *
+ * @return void
+ */
+ public function register_block_bindings() {
+
+ register_block_bindings_source(
+ 'tenup/archive-link',
+ array(
+ 'label' => __( 'Archive Link', 'tenup' ),
+ 'get_value_callback' => [ $this, 'block_binding_archive_link' ],
+ )
+ );
+
+ register_block_bindings_source(
+ 'tenup/movie-viewer-rating-label',
+ array(
+ 'label' => __( 'Movie Viewer Rating Label', 'tenup' ),
+ 'get_value_callback' => [ $this, 'block_binding_movie_viewer_rating_label' ],
+ )
+ );
+ }
+
+ /**
+ * Callback function for the 'tenup/archive-link' block binding.
+ * Displays the archive link for the post type.
+ *
+ * @param array $source_args The args found in the block metadata to create the binding.
+ * @return string|null The text or URL based on the key argument set in the block attributes.
+ */
+ public function block_binding_archive_link( $source_args ) {
+
+ if ( ! isset( $source_args['key'] ) ) {
+ return null;
+ }
+
+ // Set home as the fallback URL, but check for a referer or archive URL first.
+ $url = home_url();
+ $referer = wp_get_referer();
+ $archive_url = get_post_type_archive_link( get_post_type() );
+
+ // Use referer only if it's a paged version of the archive URL
+ if ( $referer && $archive_url && strpos( $referer, $archive_url ) === 0 ) {
+ $url = $referer;
+ } elseif ( $archive_url ) {
+ $url = $archive_url;
+ }
+
+ switch ( $source_args['key'] ) {
+ case 'text':
+ return __( '← Back', 'tenup' );
+ case 'url':
+ return $url;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Callback function for the 'tenup/movie-viewer-rating-label' block binding.
+ * Displays the movie viewer rating label with a star rating and count. e.g. ★7.5/10 (175K)
+ *
+ * @param array $source_args The args found in the block metadata to create the binding.
+ * @return string|null The text or URL based on the key argument set in the block attributes.
+ */
+ public function block_binding_movie_viewer_rating_label( $source_args ) {
+
+ if ( ! isset( $source_args['key'] ) ) {
+ return null;
+ }
+
+ // Set default binding values.
+ $text = '0/10 (0)';
+ $url = '#';
+
+ // Get post meta.
+ $rating = get_post_meta( get_the_ID(), 'tenup_movie_viewer_rating', true ) ?? false;
+ $count = get_post_meta( get_the_ID(), 'tenup_movie_viewer_rating_count', true ) ?? false;
+
+ if ( false !== $rating && false !== $count ) {
+
+ $count_display = $count;
+
+ switch ( true ) {
+
+ // 1000 - 9999, round to the nearest hundred and format. e.g. 1156 = 1.2K
+ case ( $count >= 1000 && $count < 10000 ):
+ $count_display = number_format( round( $count, -2 ) / 1000, 1, '.', '' ) . 'K';
+ break;
+
+ // 10000+, round to the nearest thousand and format. e.g. 11560 = 12K
+ case ( $count >= 10000 ):
+ $count_display = number_format( round( $count, -3 ) / 1000, 0, '.', '' ) . 'K';
+ break;
+
+ default:
+ }
+
+ $text = $rating . '/10 (' . $count_display . ')';
+ }
+
+ $star = '★';
+ $allowed_tags = [
+ 'mark' => [
+ 'style' => [],
+ 'class' => [],
+ ],
+ ];
+ $text = wp_kses( $star . $text, $allowed_tags );
+
+ switch ( $source_args['key'] ) {
+ case 'text':
+ return $text;
+ case 'url':
+ return $url;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Filter the post-featured-image block to add a view transition class based on the featured image ID.
+ *
+ * @param string $block_content The block content.
+ * @param array $block The block.
+ * @param WP_Block $parsed_block The parsed block.
+ * @return string
+ */
+ public function filter_featured_image_block( $block_content, $block, $parsed_block ) {
+
+ $featured_image_id = get_post_thumbnail_id( $parsed_block->context['postId'] );
+
+ $p = new WP_HTML_Tag_Processor( $block_content );
+ $p->next_tag();
+
+ if ( $p->has_class( 'is-style-single-movie-backdrop' ) ) {
+ return $block_content;
+ }
+
+ $style_attribute = $p->get_attribute( 'style' );
+ $view_transition_style = "view-transition-name: post-featured-image-id-{$featured_image_id};";
+
+ if ( false === strpos( $style_attribute, $view_transition_style ) ) {
+ $style_attribute = $view_transition_style . $style_attribute;
+ }
+
+ $p->set_attribute( 'style', $style_attribute );
+
+ return $p->get_updated_html();
+ }
+}
diff --git a/themes/fueled-movies-complete/src/TemplateTags.php b/themes/fueled-movies-complete/src/TemplateTags.php
new file mode 100644
index 0000000..71f0af4
--- /dev/null
+++ b/themes/fueled-movies-complete/src/TemplateTags.php
@@ -0,0 +1,50 @@
+
+
+ %2$s
',
+ esc_attr( $class ),
+ wp_kses_post(
+ __(
+ 'Please ensure the 10up/wp-framework composer package is installed.',
+ 'tenup-plugin'
+ )
+ )
+ );
+ }
+ );
+
+ return;
+ }
+
+ ModuleInitialization::instance()->init_classes( FUELED_MOVIES_THEME_INC );
+ do_action( 'fueled_movies_theme_init' );
+ }
+
+ /**
+ * Handles JavaScript detection.
+ *
+ * Adds a `js` class to the root `` element when JavaScript is detected.
+ *
+ * @return void
+ */
+ public function js_detection() {
+
+ echo "\n";
+ }
+
+ /**
+ * Handles scrollbar width detection.
+ *
+ * Adds a JavaScript event listener to the DOMContentLoaded event. When the DOM is fully loaded,
+ * it calculates the width of the scrollbar and sets a CSS variable `--wp--custom--scrollbar-width` with the width.
+ * It also adds an event listener to the window resize event to update the scrollbar width when the window is
+ * resized.
+ *
+ * @return void
+ */
+ public function scrollbar_detection() {
+ echo '' . "\n";
+ }
+
+ /**
+ * Get an initialized class by its full class name, including namespace.
+ *
+ * @param string $class_name The class name including the namespace.
+ *
+ * @return false|\TenupFramework\ModuleInterface
+ */
+ public static function get_module( $class_name ) {
+ return \TenupFramework\ModuleInitialization::get_module( $class_name );
+ }
+}
diff --git a/themes/fueled-movies-complete/style.css b/themes/fueled-movies-complete/style.css
new file mode 100755
index 0000000..d0b801d
--- /dev/null
+++ b/themes/fueled-movies-complete/style.css
@@ -0,0 +1,10 @@
+/**
+ * Theme Name: Fueled Movies Theme - Completed
+ * Theme URI: https://fueled.com
+ * Description: A theme for block based theme training.
+ * Author: Fueled
+ * Author URI: https://fueled.com
+ * Version: 1.0.0
+ * Tags:
+ * Text Domain: fueled-movies
+ */
diff --git a/themes/10up-block-theme/stylelint.config.js b/themes/fueled-movies-complete/stylelint.config.js
similarity index 100%
rename from themes/10up-block-theme/stylelint.config.js
rename to themes/fueled-movies-complete/stylelint.config.js
diff --git a/themes/10up-block-theme/styles/surface-primary.json b/themes/fueled-movies-complete/styles/surface-primary.json
similarity index 100%
rename from themes/10up-block-theme/styles/surface-primary.json
rename to themes/fueled-movies-complete/styles/surface-primary.json
diff --git a/themes/10up-block-theme/styles/surface-secondary.json b/themes/fueled-movies-complete/styles/surface-secondary.json
similarity index 100%
rename from themes/10up-block-theme/styles/surface-secondary.json
rename to themes/fueled-movies-complete/styles/surface-secondary.json
diff --git a/themes/10up-block-theme/styles/surface-tertiary.json b/themes/fueled-movies-complete/styles/surface-tertiary.json
similarity index 100%
rename from themes/10up-block-theme/styles/surface-tertiary.json
rename to themes/fueled-movies-complete/styles/surface-tertiary.json
diff --git a/themes/fueled-movies-complete/template-tags.php b/themes/fueled-movies-complete/template-tags.php
new file mode 100644
index 0000000..ae4b724
--- /dev/null
+++ b/themes/fueled-movies-complete/template-tags.php
@@ -0,0 +1,38 @@
+
-
+
diff --git a/themes/10up-block-theme/templates/single-tenup-movie.html b/themes/fueled-movies-complete/templates/single-tenup-movie.html
similarity index 96%
rename from themes/10up-block-theme/templates/single-tenup-movie.html
rename to themes/fueled-movies-complete/templates/single-tenup-movie.html
index 6a5ed34..ac5a19e 100644
--- a/themes/10up-block-theme/templates/single-tenup-movie.html
+++ b/themes/fueled-movies-complete/templates/single-tenup-movie.html
@@ -1,4 +1,4 @@
-
+
@@ -76,4 +76,4 @@
-
+
diff --git a/themes/10up-block-theme/templates/single-tenup-person.html b/themes/fueled-movies-complete/templates/single-tenup-person.html
similarity index 100%
rename from themes/10up-block-theme/templates/single-tenup-person.html
rename to themes/fueled-movies-complete/templates/single-tenup-person.html
diff --git a/themes/10up-block-theme/templates/single.html b/themes/fueled-movies-complete/templates/single.html
similarity index 100%
rename from themes/10up-block-theme/templates/single.html
rename to themes/fueled-movies-complete/templates/single.html
diff --git a/themes/10up-block-theme/templates/singular.html b/themes/fueled-movies-complete/templates/singular.html
similarity index 100%
rename from themes/10up-block-theme/templates/singular.html
rename to themes/fueled-movies-complete/templates/singular.html
diff --git a/themes/10up-block-theme/theme.json b/themes/fueled-movies-complete/theme.json
similarity index 99%
rename from themes/10up-block-theme/theme.json
rename to themes/fueled-movies-complete/theme.json
index 0b3355a..166196e 100644
--- a/themes/10up-block-theme/theme.json
+++ b/themes/fueled-movies-complete/theme.json
@@ -274,5 +274,5 @@
}
],
"version": 3,
- "$schema": "https://schemas.wp.org/wp/6.7/theme.json"
+ "$schema": "https://schemas.wp.org/wp/6.8/theme.json"
}