Skip to content

Commit

Permalink
Merge pull request #33 from eighteen73/feature/wordpress-6.6
Browse files Browse the repository at this point in the history
Feature/wordpress 6.6
  • Loading branch information
brettsmason authored Aug 12, 2024
2 parents 8b65100 + bf9a3d5 commit eded8bd
Show file tree
Hide file tree
Showing 118 changed files with 3,482 additions and 1,771 deletions.
38 changes: 38 additions & 0 deletions .playground/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"features": {
"networking": true
},
"steps": [
{
"step": "installTheme",
"themeZipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=eighteen73/pulsar&branch=main"
},
"options": {
"activate": true
}
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=eighteen73/pulsar-blocks&branch=main"
}
},
{
"step": "runPHP",
"code": "<?php require '/wordpress/wp-load.php'; $wpdb->query('delete from wp_posts');"
},
{
"step": "login",
"username": "admin",
"password": "password"
}
]
}
57 changes: 8 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,23 @@
# Pulsar

<p>
<strong>WordPress starter theme for a modern development workflow</strong>
<strong>WordPress starter block theme for a modern development workflow</strong>
</p>

## Demo

The theme demo is hosted on WordPress Playground, which is a system that runs WordPress directly in your browser. You can fully test the theme as if you were running it on your own site.

[Playground Demo](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/eighteen73/pulsar/.playground/blueprint.json)

## Requirements

Make sure all dependencies have been installed before moving on:

- [WordPress](https://wordpress.org/) >= 5.9
- [WordPress](https://wordpress.org/) >= 6.6
- [PHP](https://secure.php.net/manual/en/install.php) >= 7.4.0
- [Node.js](http://nodejs.org/) >= 16

## Theme structure

```sh
themes/your-theme-name/ # → Root of your theme
├── blocks/ # → Custom blocks
├── config/ # → Theme configuration files
│ ├── bindings.php # → Theme container bindings
│ ├── block-patterns.php # → Custom block patterns
│ ├── block-styles.php # → Custom block styles
│ ├── blocks.php # → All enabled blocks
│ └── browsersync.json # → Developer-specific configuration for BrowserSync (if wanted)
├── includes/ # → Theme functions and classes
│ └── classes/ # → Theme classes (autoloaded)
│ ├── Contracts/ # → Interfaces and Traits
│ ├── Editor/ # → Editor specific classes
│ ├── Blocks.php # → Registration of custom blocks
│ ├── Patterns.php # → Block pattern management
│ ├── Styles.php # → Block styles management
│ └── Tools/ # → Various tools used throughout the theme
│ └── Svg.php # → Allows manipulating SVGs and inlining them
│ ├── Enqueue.php # → Theme assets
│ └── Setup.php # → Theme setup
│ └── template-tags/ # → Theme template tags
│ ├── autoload.php # → Theme autoloader
│ ├── compat.php # → Theme compatibility
│ └── theme.php # → Theme mini container
├── dist/ # → Built theme assets (never edit)
├── parts/ # → Theme partial template files
├── patterns/ # → Theme block pattern template files
├── node_modules/ # → Node.js packages (never edit)
├── src/ # → Theme assets and templates
│ ├── css/ # → Theme stylesheets
│ ├── fonts/ # → Theme fonts
│ ├── img/ # → Theme images
│ ├── js/ # → Theme javascript
│ ├── svg/ # → Theme SVGs
├── templates/ # → Theme custom template files
├── functions.php # → Theme bootloader
├── package.json # → Node.js dependencies and scripts
├── screenshot.png # → Theme screenshot for WP admin
├── style.css # → Theme meta information
```

## Theme setup

Edit `app/Setup.php` to enable or disable theme features, setup navigation menus, post thumbnail sizes, and sidebars.

## Theme development

- Run `npm install` from the theme directory to install dependencies
Expand Down
Binary file added assets/fonts/inter/InterVariable-Italic.woff2
Binary file not shown.
Binary file added assets/fonts/inter/InterVariable.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions assets/svg/navigation-submenu-all.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
1 change: 1 addition & 0 deletions assets/svg/navigation-submenu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions config/bindings.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
Pulsar\Editor\Patterns::class,
Pulsar\Editor\TemplateParts::class,
Pulsar\Editor\Render\Navigation::class,
Pulsar\ThirdParty\GravityForms::class,
];
2 changes: 1 addition & 1 deletion config/theme-json/base.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2
"version": 3
}
2 changes: 1 addition & 1 deletion config/theme-json/customTemplates.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"version": 3,
"customTemplates": []
}
10 changes: 10 additions & 0 deletions config/theme-json/settings.background.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"background": {
"backgroundImage": false,
"backgroundSize": false
}
}
}
23 changes: 3 additions & 20 deletions config/theme-json/settings.blocks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"version": 3,
"settings": {
"blocks": {
"core/button": {
Expand All @@ -10,7 +10,7 @@
},
"core/column": {
"spacing": {
"units": ["%"]
"units": ["%", "px", "vw"]
}
},
"core/group": {
Expand All @@ -20,24 +20,7 @@
},
"core/heading": {
"color": {
"text": true,
"palette": [
{
"name": "Primary",
"slug": "primary",
"color": "var(--wp--custom--color--primary)"
},
{
"name": "Secondary",
"slug": "secondary",
"color": "var(--wp--custom--color--secondary)"
},
{
"name": "Tertiary",
"slug": "tertiary",
"color": "var(--wp--custom--color--tertiary)"
}
]
"text": true
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions config/theme-json/settings.border.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"border": {
"color": false,
"radius": false,
"style": false,
"width": false
}
}
}
19 changes: 12 additions & 7 deletions config/theme-json/settings.color.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"version": 3,
"settings": {
"color": {
"background": false,
Expand All @@ -17,17 +17,22 @@
{
"name": "Primary",
"slug": "primary",
"color": "var(--wp--custom--color--primary)"
"color": "var:custom|color|primary|500"
},
{
"name": "Secondary",
"slug": "secondary",
"color": "var(--wp--custom--color--secondary)"
"color": "var:custom|color|secondary|500"
},
{
"name": "Tertiary",
"slug": "tertiary",
"color": "var(--wp--custom--color--tertiary)"
{
"name": "Neutral: 0",
"slug": "neutral-0",
"color": "var:custom|color|neutral|0"
},
{
"name": "Neutral: 1000",
"slug": "neutral-1000",
"color": "var:custom|color|neutral|1000"
}
],
"text": false
Expand Down
Loading

0 comments on commit eded8bd

Please sign in to comment.