From e974bae4e83714338e1899f23ab5e27bc0b2bf3a Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Thu, 7 Dec 2023 13:50:24 -0500 Subject: [PATCH 1/4] Add edits --- assembler/functions.php | 10 +-- assembler/parts/byline-date.html | 1 - assembler/parts/comments.html | 40 ++++++++++ assembler/parts/post-meta.html | 1 - assembler/patterns/byline-date.php | 22 ------ assembler/patterns/footer.php | 86 ++++++++++++++++++--- assembler/patterns/header.php | 39 +++++++--- assembler/patterns/post-meta.php | 19 ----- assembler/readme.txt | 4 + assembler/style.css | 25 +++++- assembler/templates/archive.html | 40 ++++++++++ assembler/templates/home.html | 7 ++ assembler/templates/index.html | 73 +++++++++--------- assembler/templates/page.html | 15 ++-- assembler/templates/single.html | 80 +++++++------------ assembler/theme.json | 120 +++++++++++++++++++++-------- 16 files changed, 380 insertions(+), 202 deletions(-) delete mode 100644 assembler/parts/byline-date.html create mode 100644 assembler/parts/comments.html delete mode 100644 assembler/parts/post-meta.html delete mode 100644 assembler/patterns/byline-date.php delete mode 100644 assembler/patterns/post-meta.php create mode 100644 assembler/templates/archive.html create mode 100644 assembler/templates/home.html diff --git a/assembler/functions.php b/assembler/functions.php index 2d3c072a07..2277a4e088 100644 --- a/assembler/functions.php +++ b/assembler/functions.php @@ -10,8 +10,7 @@ declare( strict_types = 1 ); -if ( ! function_exists( 'assembler_support' ) ) : - +if ( ! function_exists( 'assembler_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * @@ -19,21 +18,18 @@ * * @return void */ - function assembler_support() { + function assembler_setup() { // Enqueue editor styles. add_editor_style( 'style.css' ); - // Make theme available for translation. - load_theme_textdomain( 'assembler' ); } endif; -add_action( 'after_setup_theme', 'assembler_support' ); +add_action( 'after_setup_theme', 'assembler_setup' ); if ( ! function_exists( 'assembler_styles' ) ) : - /** * Enqueue styles. * diff --git a/assembler/parts/byline-date.html b/assembler/parts/byline-date.html deleted file mode 100644 index 0a1d59073e..0000000000 --- a/assembler/parts/byline-date.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/assembler/parts/comments.html b/assembler/parts/comments.html new file mode 100644 index 0000000000..521c29cbbb --- /dev/null +++ b/assembler/parts/comments.html @@ -0,0 +1,40 @@ + +
+ + +
+ + + + + +
+
+ + + +
+
+ + + +
+ + + + +
+
+ + + + + + + + + +
+ +
+ \ No newline at end of file diff --git a/assembler/parts/post-meta.html b/assembler/parts/post-meta.html deleted file mode 100644 index 484fbea5b1..0000000000 --- a/assembler/parts/post-meta.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/assembler/patterns/byline-date.php b/assembler/patterns/byline-date.php deleted file mode 100644 index a1093da330..0000000000 --- a/assembler/patterns/byline-date.php +++ /dev/null @@ -1,22 +0,0 @@ - - -
-

- - - - - -

- - -
- diff --git a/assembler/patterns/footer.php b/assembler/patterns/footer.php index 3e26ba33be..6f3a3ad4e6 100644 --- a/assembler/patterns/footer.php +++ b/assembler/patterns/footer.php @@ -1,23 +1,84 @@ + +
- -
-
-
- + + + - -

+ +

+
+

Location

+ + + + + + + +

123 Example Street

+ + + +

San Francisco, CA 12345

+
+ + + +
+

Hours

+ + + + + + + +

Monday—Friday

+ + + +

8am — 6pm

+
+ + + +
+

Contact

+ + + + + + + +

hi@example.com

+ + + +

(123) 456-7890

+
+
+ + + + + + + +

WordPress'; @@ -27,6 +88,9 @@ ); ?>

-
-
- + + + + +
+ \ No newline at end of file diff --git a/assembler/patterns/header.php b/assembler/patterns/header.php index 82c2c55cd3..8d49758c90 100644 --- a/assembler/patterns/header.php +++ b/assembler/patterns/header.php @@ -1,25 +1,44 @@ + +
- -
-
-
+ + + + + +
+
- -
-
-
+ +
+ + + + + +
+ + + + + + + \ No newline at end of file diff --git a/assembler/patterns/post-meta.php b/assembler/patterns/post-meta.php deleted file mode 100644 index 9ec91586c0..0000000000 --- a/assembler/patterns/post-meta.php +++ /dev/null @@ -1,19 +0,0 @@ - - - - -
-
-
-
-
- diff --git a/assembler/readme.txt b/assembler/readme.txt index b535ed23e2..1f1637b162 100644 --- a/assembler/readme.txt +++ b/assembler/readme.txt @@ -6,6 +6,10 @@ Requires PHP: 7.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html +== Description == + +Assemble something beautiful. + == Changelog == = 0.0.1 = diff --git a/assembler/style.css b/assembler/style.css index ee2208d52b..2a318cc52a 100644 --- a/assembler/style.css +++ b/assembler/style.css @@ -3,7 +3,7 @@ Theme Name: Assembler Theme URI: https://wordpress.com/theme/assembler Author: Automattic Author URI: https://automattic.com/ -Description: Assembler is a simple, minimal theme that supports full-site editing and global styles. Use it to create something beautiful. +Description: Assemble something beautiful. Requires at least: 6.4 Tested up to: 6.4 Requires PHP: 7.0 @@ -13,3 +13,26 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: assembler Tags: blog, one-column, three-columns, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, style-variations, template-editing, theme-options, threaded-comments, translation-ready */ + +footer { + margin-top: 0 !important; +} + +/* Moves core/navigation to the right on mobile. */ +.order-0 { + order: 0; +} + +.order-1 { + order: 1; +} + +@media (min-width: 600px) { + .md\:order-0 { + order: 0; + } + + .md\:order-1 { + order: 1; + } + } \ No newline at end of file diff --git a/assembler/templates/archive.html b/assembler/templates/archive.html new file mode 100644 index 0000000000..f92d0d0b03 --- /dev/null +++ b/assembler/templates/archive.html @@ -0,0 +1,40 @@ + + + + +
+
+ + + +
+
+
+
+ + + + + + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + \ No newline at end of file diff --git a/assembler/templates/home.html b/assembler/templates/home.html new file mode 100644 index 0000000000..069a24a7fe --- /dev/null +++ b/assembler/templates/home.html @@ -0,0 +1,7 @@ + + + +
+ + + \ No newline at end of file diff --git a/assembler/templates/index.html b/assembler/templates/index.html index 9fc9c1e13a..f92d0d0b03 100644 --- a/assembler/templates/index.html +++ b/assembler/templates/index.html @@ -1,37 +1,40 @@ - -
-
- -
-
-
-
- - - - - - - - - - - - -
- - - - -
- - - -
-
-
- - - + + +
+
+ + + +
+
+
+
+ + + + + + + + + + + + +
+ + + + +
+ + + +
+
+
+ + + \ No newline at end of file diff --git a/assembler/templates/page.html b/assembler/templates/page.html index f95f8d207e..9867e56a3a 100644 --- a/assembler/templates/page.html +++ b/assembler/templates/page.html @@ -1,14 +1,9 @@ - -
- -
+ +
+ +
- -
-
- - - + \ No newline at end of file diff --git a/assembler/templates/single.html b/assembler/templates/single.html index 2104f13028..34e6060edd 100644 --- a/assembler/templates/single.html +++ b/assembler/templates/single.html @@ -1,61 +1,35 @@ - -
-
- - - -
- - - -
- + +
+ + + + + + + + + + -
-
- - - -
-
- - - -
-
- - - -
+
- + + + -
-
- - + - - - - - - -
-
- - - -
-
- -
-
-
- - - + + + + + + +
+ + + diff --git a/assembler/theme.json b/assembler/theme.json index 404499633f..5a3188abc0 100644 --- a/assembler/theme.json +++ b/assembler/theme.json @@ -1,6 +1,4 @@ { - "version": 2, - "$schema": "https://schemas.wp.org/trunk/theme.json", "settings": { "appearanceTools": true, "color": { @@ -29,7 +27,7 @@ "slug": "theme-4" }, { - "color": "#000000", + "color": "#1E1E1E", "name": "Color 5", "slug": "theme-5" } @@ -95,14 +93,18 @@ "fontStretch": "normal", "fontStyle": "normal", "fontWeight": "100 800", - "src": ["file:./assets/fonts/inter/InterVariable.ttf"] + "src": [ + "file:./assets/fonts/inter/InterVariable.ttf" + ] }, { "fontFamily": "Inter", "fontStretch": "normal", "fontStyle": "italic", "fontWeight": "100 800", - "src": ["file:./assets/fonts/inter/InterVariable-Italic.ttf"] + "src": [ + "file:./assets/fonts/inter/InterVariable-Italic.ttf" + ] } ], "fontFamily": "\"Inter\", sans-serif", @@ -148,7 +150,9 @@ "fontStretch": "normal", "fontStyle": "normal", "fontWeight": "100 800", - "src": ["file:./assets/fonts/vina-sans/VinaSans-Regular.ttf"] + "src": [ + "file:./assets/fonts/vina-sans/VinaSans-Regular.ttf" + ] } ], "fontFamily": "\"Vina Sans\", sans-serif", @@ -194,7 +198,9 @@ "fontStretch": "normal", "fontStyle": "normal", "fontWeight": "100 800", - "src": ["file:./assets/fonts/rubik/Rubik-VariableFont_wght.ttf"] + "src": [ + "file:./assets/fonts/rubik/Rubik-VariableFont_wght.ttf" + ] } ], "fontFamily": "\"Rubik\", sans-serif", @@ -205,27 +211,27 @@ "fontSizes": [ { "name": "Small", - "size": "12px", + "size": "15px", "slug": "small" }, { "name": "Medium", - "size": "16px", + "size": "26px", "slug": "medium" }, { "name": "Large", - "size": "30px", + "size": "40.5px", "slug": "large" }, { "name": "Extra Large", - "size": "60px", + "size": "60.75px", "slug": "x-large" }, { "name": "2X Large", - "size": "96px", + "size": "95.95px", "slug": "xx-large" } ], @@ -235,10 +241,49 @@ }, "styles": { "blocks": { + "core/buttons": { + "spacing": { + "blockGap": "8px" + } + }, + "core/button": { + "variations": { + "outline": { + "border": { + "width": "1px" + }, + "spacing": { + "padding": { + "bottom": "9px", + "left": "19px", + "right": "19px", + "top": "9px" + } + } + } + } + }, + "core/navigation": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-title": { + "css": ":not([class*=\"text-align-\"]){text-align:center;}", + "typography": { + "fontSize": "var(--wp--preset--font-size--x-large)" + } + }, "core/site-title": { + "elements": { + "link": { + "typography": { + "textDecoration": "none" + } + } + }, "typography": { - "fontSize": "var(--wp--preset--font-size--medium)", - "fontWeight": "600" + "fontSize": "var(--wp--preset--font-size--medium)" } } }, @@ -250,7 +295,7 @@ "elements": { "button": { "border": { - "radius": "0" + "radius": "6px" }, "color": { "background": { @@ -262,22 +307,17 @@ }, "spacing": { "padding": { - "bottom": "16px", - "top": "16px", - "left": "24px", - "right": "24px" + "bottom": "10px", + "left": "20px", + "right": "20px", + "top": "10px" } }, "typography": { "fontFamily": { "ref": "styles.elements.heading.typography.fontFamily" }, - "fontWeight": { - "ref": "styles.elements.heading.typography.fontWeight" - }, - "textTransform": { - "ref": "styles.elements.heading.typography.textTransform" - } + "fontSize": "var(--wp--preset--font-size--small)" } }, "h1": { @@ -317,15 +357,17 @@ "fontSize": "var(--wp--preset--font-size--small)" } }, - "link": { - "color": { - "text": { "ref": "styles.color.text" } - } - }, "heading": { "typography": { "fontWeight": "500" } + }, + "link": { + "color": { + "text": { + "ref": "styles.color.text" + } + } } }, "spacing": { @@ -340,5 +382,19 @@ "fontSize": "16px", "lineHeight": "1.65" } - } -} + }, + "templateParts": [ + { + "area": "header", + "name": "header", + "title": "Header" + }, + { + "area": "footer", + "name": "footer", + "title": "Footer" + } + ], + "version": 2, + "$schema": "https://schemas.wp.org/trunk/theme.json" +} \ No newline at end of file From c4b04a362ed00f87620b71d304a0e1d636c7794c Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Thu, 7 Dec 2023 16:05:49 -0500 Subject: [PATCH 2/4] Add page w title template --- assembler/patterns/template-page-w-title.php | 35 ++++++++++++ assembler/templates/page.html | 2 + assembler/templates/single.html | 56 +++++++++---------- .../templates/template-page-w-title.html | 1 + assembler/theme.json | 36 +++++++----- 5 files changed, 85 insertions(+), 45 deletions(-) create mode 100644 assembler/patterns/template-page-w-title.php create mode 100644 assembler/templates/template-page-w-title.html diff --git a/assembler/patterns/template-page-w-title.php b/assembler/patterns/template-page-w-title.php new file mode 100644 index 0000000000..714b42d6d5 --- /dev/null +++ b/assembler/patterns/template-page-w-title.php @@ -0,0 +1,35 @@ + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/assembler/templates/page.html b/assembler/templates/page.html index 9867e56a3a..bfe35188b5 100644 --- a/assembler/templates/page.html +++ b/assembler/templates/page.html @@ -2,7 +2,9 @@
+ +
diff --git a/assembler/templates/single.html b/assembler/templates/single.html index 34e6060edd..07411088c7 100644 --- a/assembler/templates/single.html +++ b/assembler/templates/single.html @@ -1,35 +1,31 @@ -
- - - - - - - - - - - - -
- - - - - - - - - - - - - - -
+
+ + + + + + + + + + +
+ + + + + + + + + + + + +
- + \ No newline at end of file diff --git a/assembler/templates/template-page-w-title.html b/assembler/templates/template-page-w-title.html new file mode 100644 index 0000000000..2540efd21b --- /dev/null +++ b/assembler/templates/template-page-w-title.html @@ -0,0 +1 @@ + diff --git a/assembler/theme.json b/assembler/theme.json index 5a3188abc0..4ef7d5cd3e 100644 --- a/assembler/theme.json +++ b/assembler/theme.json @@ -1,4 +1,10 @@ { + "customTemplates": [ + { + "name": "template-page-w-title", + "title": "Pages with Title" + } + ], "settings": { "appearanceTools": true, "color": { @@ -241,28 +247,28 @@ }, "styles": { "blocks": { - "core/buttons": { - "spacing": { - "blockGap": "8px" - } - }, - "core/button": { - "variations": { + "core/button": { + "variations": { "outline": { "border": { - "width": "1px" + "width": "1px" }, "spacing": { "padding": { - "bottom": "9px", - "left": "19px", - "right": "19px", - "top": "9px" - } + "bottom": "9px", + "left": "19px", + "right": "19px", + "top": "9px" + } } } - } - }, + } + }, + "core/buttons": { + "spacing": { + "blockGap": "8px" + } + }, "core/navigation": { "typography": { "fontSize": "var(--wp--preset--font-size--small)" From 6b26cf9c870d41a787e2c953fcd4fa4d089efac9 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Thu, 7 Dec 2023 16:32:17 -0500 Subject: [PATCH 3/4] CBT export --- assembler/parts/footer.html | 79 +++++++++++++++++++++++++++- assembler/parts/header.html | 28 +++++++++- assembler/patterns/footer.php | 96 ----------------------------------- assembler/patterns/header.php | 44 ---------------- 4 files changed, 105 insertions(+), 142 deletions(-) delete mode 100644 assembler/patterns/footer.php delete mode 100644 assembler/patterns/header.php diff --git a/assembler/parts/footer.html b/assembler/parts/footer.html index 00d94daee5..ac13973686 100644 --- a/assembler/parts/footer.html +++ b/assembler/parts/footer.html @@ -1 +1,78 @@ - + + + + + +
+ + + + +
+
+

Location

+ + + + + + + +

123 Example Street

+ + + +

San Francisco, CA 12345

+
+ + + +
+

Hours

+ + + + + + + +

Monday—Friday

+ + + +

8am — 6pm

+
+ + + +
+

Contact

+ + + + + + + +

hi@example.com

+ + + +

(123) 456-7890

+
+
+ + + + + + + +

+ Designed with WordPress

+ + + + +
+ \ No newline at end of file diff --git a/assembler/parts/header.html b/assembler/parts/header.html index 5122b6bba5..b5efd92840 100644 --- a/assembler/parts/header.html +++ b/assembler/parts/header.html @@ -1 +1,27 @@ - + +
+ + + + +
+
+
+
+ + + +
+ + + +
+
+ + + + +
+ \ No newline at end of file diff --git a/assembler/patterns/footer.php b/assembler/patterns/footer.php deleted file mode 100644 index 6f3a3ad4e6..0000000000 --- a/assembler/patterns/footer.php +++ /dev/null @@ -1,96 +0,0 @@ - - - -
- - - - - - -
-
-

Location

- - - - - - - -

123 Example Street

- - - -

San Francisco, CA 12345

-
- - - -
-

Hours

- - - - - - - -

Monday—Friday

- - - -

8am — 6pm

-
- - - -
-

Contact

- - - - - - - -

hi@example.com

- - - -

(123) 456-7890

-
-
- - - - - - - -

- WordPress'; - echo sprintf( - esc_html__( 'Designed with %1$s', 'assembler' ), - $wordpress_link - ); - ?> -

- - - - -
- \ No newline at end of file diff --git a/assembler/patterns/header.php b/assembler/patterns/header.php deleted file mode 100644 index 8d49758c90..0000000000 --- a/assembler/patterns/header.php +++ /dev/null @@ -1,44 +0,0 @@ - - - -
- - - - - - -
-
-
-
- - - -
- - - - - -
-
- - - - - - - \ No newline at end of file From b552006aed2a00da1a2a1f919a55e4e2d6c8d8a1 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Thu, 7 Dec 2023 17:08:52 -0500 Subject: [PATCH 4/4] Create search.html --- assembler/templates/search.html | 57 +++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 assembler/templates/search.html diff --git a/assembler/templates/search.html b/assembler/templates/search.html new file mode 100644 index 0000000000..6eb32f5160 --- /dev/null +++ b/assembler/templates/search.html @@ -0,0 +1,57 @@ + + + +
+ + + + +
+ + + + +
+ +
+
+
+
+ + + + + + + + + + + + +
+ +
+ + + +
+ + + + + +
+ + + + +
+ + + + +
+ + + \ No newline at end of file