From f8580e55df650cd71613fa0ea58a9a3e22740025 Mon Sep 17 00:00:00 2001 From: Matt Marcha Date: Sat, 25 Nov 2023 15:33:01 +1300 Subject: [PATCH] Initial commit --- functions.php | 14 +++++ inc/cleanup.php | 43 ++++++++++++++ parts/footer.html | 7 +++ parts/header.html | 10 ++++ style.css | 10 ++++ templates/404.html | 9 +++ templates/archive.html | 26 +++++++++ templates/index.html | 32 +++++++++++ templates/page.html | 17 ++++++ templates/single.html | 21 +++++++ theme.json | 128 +++++++++++++++++++++++++++++++++++++++++ 11 files changed, 317 insertions(+) create mode 100644 functions.php create mode 100644 inc/cleanup.php create mode 100644 parts/footer.html create mode 100644 parts/header.html create mode 100644 style.css create mode 100644 templates/404.html create mode 100644 templates/archive.html create mode 100644 templates/index.html create mode 100644 templates/page.html create mode 100644 templates/single.html create mode 100644 theme.json diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..d5fcee2 --- /dev/null +++ b/functions.php @@ -0,0 +1,14 @@ +is_search = false; + $query->query_vars['s'] = false; + $query->query['s'] = false; + if ( $error ) + $query->is_404 = true; + } +} +add_action( 'parse_query', 'matt_filter_query' ); +add_filter( 'get_search_form', function () { return null; } ); \ No newline at end of file diff --git a/parts/footer.html b/parts/footer.html new file mode 100644 index 0000000..a02ecad --- /dev/null +++ b/parts/footer.html @@ -0,0 +1,7 @@ + +
+ + +

© 2023 Owner. All rights reserved.

+
+ \ No newline at end of file diff --git a/parts/header.html b/parts/header.html new file mode 100644 index 0000000..f92a112 --- /dev/null +++ b/parts/header.html @@ -0,0 +1,10 @@ + +
+ +
+ +
+ + +
+ \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..354aac0 --- /dev/null +++ b/style.css @@ -0,0 +1,10 @@ +/* +Theme Name: Eco FSE +Author: Matt Marcha +Description: A FSE version of the ecoWP theme +Version: 0.1 +Requires at least: 6.0 +Tested up to: 6.2 +Requires PHP: 8.1 +Text Domain: ecofse +*/ diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..a51af9a --- /dev/null +++ b/templates/404.html @@ -0,0 +1,9 @@ + + + +
+ +
+ + + \ No newline at end of file diff --git a/templates/archive.html b/templates/archive.html new file mode 100644 index 0000000..eab22eb --- /dev/null +++ b/templates/archive.html @@ -0,0 +1,26 @@ + + + +
+ +
+ + + + + + + + + +
+ + +
+ +
+ +
+ + + \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..d25d0dd --- /dev/null +++ b/templates/index.html @@ -0,0 +1,32 @@ + + + +
+ +
+ + + + +
+ +

+ +
+ + + + + + +
+ + +
+ +
+ +
+ + + \ No newline at end of file diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..eb124fe --- /dev/null +++ b/templates/page.html @@ -0,0 +1,17 @@ + + + +
+ +
+ + + + + +
+ +
+ + + \ No newline at end of file diff --git a/templates/single.html b/templates/single.html new file mode 100644 index 0000000..f5482c5 --- /dev/null +++ b/templates/single.html @@ -0,0 +1,21 @@ + + + +
+ +
+ + + + + + + + + +
+ +
+ + + \ No newline at end of file diff --git a/theme.json b/theme.json new file mode 100644 index 0000000..fde5b1b --- /dev/null +++ b/theme.json @@ -0,0 +1,128 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "settings": { + "layout": { + "contentSize": "720px", + "wideSize": "900px" + }, + "color": { + "custom": false, + "customGradient": false, + "customDuotone": false, + "background": true, + "text": true, + "link": true, + "defaultPalette": false, + "defaultDuotone": false, + "defaultGradients": false, + "palette": [ + { + "slug": "primary", + "color": "#ff9d00", + "name": "Primary" + }, + { + "slug": "secondary", + "color": "#de5357", + "name": "Secondary" + }, + { + "slug": "tertiary", + "color": "#0087b0", + "name": "Tertiary" + }, + { + "slug": "quaternary", + "color": "#28185d", + "name": "Quaternary" + } + ], + "gradients": [ + { + "slug": "primary-to-secondary", + "gradient": "linear-gradient(160deg, var(--wp--preset--color--primary), var(--wp--preset--color--secondary))", + "name": "Primary to Secondary" + } + ], + "duotone": [ + { + "colors": [ "var(--wp--preset--color--primary)", "var(--wp--preset--color--secondary)" ], + "slug": "primary-and-secondary", + "name": "Primary and secondary" + } + ] + }, + "typography": { + "fontFamilies": [ + { + "fontFamily": "Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif", + "slug": "neo-grotesque", + "name": "Neo-Grotesque" + }, + { + "fontFamily": "Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif", + "slug": "geometric-humanist", + "name": "Geometric Humanist" + }, + { + "fontFamily": "Didot, 'Bodoni MT', 'Noto Serif Display', 'URW Palladio L', P052, Sylfaen, serif", + "slug": "didone", + "name": "Didone" + } + ], + "fontSizes": [ + { + "slug": "medium", + "size": "1rem", + "name": "Medium" + }, + { + "slug": "small", + "size": "0.8rem", + "name": "Small" + }, + { + "slug": "large", + "size": "1.5rem", + "name": "Large" + }, + { + "slug": "extra-large", + "size": "2rem", + "name": "Extra large" + } + ] + } + }, + "styles": { + "color": { + "background": "FFF", + "text": "#222" + }, + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "fontFamily": "var(--wp--preset--font-family--neo-grotesque)", + "lineHeight": "1.3" + } + }, + "templateParts": [ + { + "name": "header", + "area": "header", + "title": "Header" + }, + { + "name": "footer", + "area": "footer", + "title": "Footer" + } + ] +} \ No newline at end of file