From 55d631cd81f10c6af38e76f3145bd6a51e561306 Mon Sep 17 00:00:00 2001 From: Sarah Norris <1645628+mikachan@users.noreply.github.com> Date: Wed, 12 Jul 2023 21:16:35 +0100 Subject: [PATCH] Mpho: add theme (#7180) * Initial commit * Use 404 and search patterns in 404 template * Use footer pattern in footer * Move no results text to pattern * Move post meta to pattern * Remove unused assets * Remove nav ref * Remove duplicate layout definitions from theme.json * Version bump theme * Add image licenses --- mpho/functions.php | 60 ++ mpho/parts/footer.html | 1 + mpho/parts/header.html | 29 + mpho/parts/post-meta.html | 1 + mpho/patterns/404.php | 16 + mpho/patterns/comments.php | 52 ++ mpho/patterns/footer.php | 35 ++ mpho/patterns/hidden-no-results-content.php | 10 + mpho/patterns/no-results.php | 11 + mpho/patterns/post-meta.php | 16 + mpho/patterns/search.php | 9 + mpho/readme.txt | 42 ++ mpho/screenshot.png | Bin 0 -> 844575 bytes mpho/style.css | 35 ++ mpho/templates/404.html | 14 + mpho/templates/archive.html | 49 ++ mpho/templates/index.html | 37 ++ mpho/templates/page.html | 29 + mpho/templates/single.html | 79 +++ mpho/theme.json | 603 ++++++++++++++++++++ 20 files changed, 1128 insertions(+) create mode 100644 mpho/functions.php create mode 100644 mpho/parts/footer.html create mode 100644 mpho/parts/header.html create mode 100644 mpho/parts/post-meta.html create mode 100644 mpho/patterns/404.php create mode 100644 mpho/patterns/comments.php create mode 100644 mpho/patterns/footer.php create mode 100644 mpho/patterns/hidden-no-results-content.php create mode 100644 mpho/patterns/no-results.php create mode 100644 mpho/patterns/post-meta.php create mode 100644 mpho/patterns/search.php create mode 100644 mpho/readme.txt create mode 100644 mpho/screenshot.png create mode 100644 mpho/style.css create mode 100644 mpho/templates/404.html create mode 100644 mpho/templates/archive.html create mode 100644 mpho/templates/index.html create mode 100644 mpho/templates/page.html create mode 100644 mpho/templates/single.html create mode 100644 mpho/theme.json diff --git a/mpho/functions.php b/mpho/functions.php new file mode 100644 index 0000000000..33099339d1 --- /dev/null +++ b/mpho/functions.php @@ -0,0 +1,60 @@ +get( 'Version' ) + ); + + // Enqueue theme stylesheet. + wp_enqueue_style( 'mpho-style' ); + + } + +endif; + +add_action( 'wp_enqueue_scripts', 'mpho_styles' ); diff --git a/mpho/parts/footer.html b/mpho/parts/footer.html new file mode 100644 index 0000000000..8fd234e2ef --- /dev/null +++ b/mpho/parts/footer.html @@ -0,0 +1 @@ + diff --git a/mpho/parts/header.html b/mpho/parts/header.html new file mode 100644 index 0000000000..4b8d7b084b --- /dev/null +++ b/mpho/parts/header.html @@ -0,0 +1,29 @@ + +
+ WordPress'; + echo sprintf( + /* Translators: WordPress link. */ + esc_html__( 'Designed with %1$s', 'mpho' ), + $wordpress_link + ); + ?> +
+