From dcb38250f81d93973cdde39ee34ee0c5462a4507 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Mon, 25 May 2026 16:48:48 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=B5=20other:=20Initial=20WP=20conversi?= =?UTF-8?q?on=20from=20Eleventy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acf/group_67a1b2c3d4e5f.json | 86 ++++++++++++ footer.php | 129 ++++++----------- front-page.php | 130 ++++++++++++++++-- header.php | 125 ++++++++++++----- lib/class-enqueue.php | 7 +- lib/helpers.php | 4 +- lib/show-template.php | 18 +-- page-cedar-bath.php | 69 ++++++++++ page-contact-us.php | 50 +++++++ page-q-and-a.php | 62 +++++++++ page-resources.php | 60 ++++++++ page-wwor.php | 93 +++++++++++++ page.php | 34 +++-- search.php | 2 +- static/img/bg-condom.png | Bin 0 -> 406203 bytes static/img/bg-hero.png | Bin 0 -> 267169 bytes static/img/bg-map.png | Bin 0 -> 1907485 bytes static/img/bg-pattern.png | Bin 0 -> 5966004 bytes static/img/bg-wwor-body.png | Bin 0 -> 271862 bytes static/img/bg-wwor.png | Bin 0 -> 724776 bytes static/img/bison.png | Bin 0 -> 27633 bytes static/img/frog.png | Bin 0 -> 84832 bytes static/img/hands.png | Bin 0 -> 36170 bytes static/img/home-left.png | Bin 0 -> 82191 bytes static/img/home-right.png | Bin 0 -> 85513 bytes static/img/knk-logo.png | Bin 0 -> 146884 bytes static/img/logo.png | Bin 0 -> 77090 bytes static/img/map.png | Bin 0 -> 138458 bytes static/img/patterns_auntie.png | Bin 0 -> 5966004 bytes static/img/q-and-a.png | Bin 0 -> 13423 bytes static/img/resources.png | Bin 0 -> 78249 bytes static/img/sperm.png | Bin 0 -> 24540 bytes static/img/test.png | Bin 0 -> 187781 bytes static/img/wwor-hero.png | Bin 0 -> 51576 bytes style.css | 10 +- styles/base/colors.css | 66 +++++++-- styles/base/forms.css | 35 +++-- styles/base/global.css | 6 +- styles/base/typography.css | 69 ++-------- styles/theme.css | 101 ++++++++++++++ theme.json | 49 ++++--- views/blocks/boilerplate/block.json | 2 +- views/blocks/button/block.json | 2 +- views/blocks/buttons/block.json | 2 +- views/blocks/contact-info/block.json | 2 +- views/blocks/grid-cell/block.json | 2 +- views/blocks/grid/block.json | 2 +- views/blocks/grid/grid.php | 2 +- views/blocks/homepage-hero/block.json | 2 +- .../blocks/media-text-innerblocks/block.json | 2 +- .../media-text-innerblocks.php | 4 +- views/blocks/media-text/block.json | 2 +- views/blocks/media-text/media-text.php | 6 +- views/blocks/page-children/block.json | 2 +- views/blocks/section/block.json | 4 +- views/partials/social-media.php | 42 ++---- 56 files changed, 965 insertions(+), 318 deletions(-) create mode 100644 acf/group_67a1b2c3d4e5f.json create mode 100644 page-cedar-bath.php create mode 100644 page-contact-us.php create mode 100644 page-q-and-a.php create mode 100644 page-resources.php create mode 100644 page-wwor.php create mode 100644 static/img/bg-condom.png create mode 100644 static/img/bg-hero.png create mode 100644 static/img/bg-map.png create mode 100644 static/img/bg-pattern.png create mode 100644 static/img/bg-wwor-body.png create mode 100644 static/img/bg-wwor.png create mode 100644 static/img/bison.png create mode 100644 static/img/frog.png create mode 100644 static/img/hands.png create mode 100644 static/img/home-left.png create mode 100644 static/img/home-right.png create mode 100644 static/img/knk-logo.png create mode 100644 static/img/logo.png create mode 100644 static/img/map.png create mode 100644 static/img/patterns_auntie.png create mode 100644 static/img/q-and-a.png create mode 100644 static/img/resources.png create mode 100644 static/img/sperm.png create mode 100644 static/img/test.png create mode 100644 static/img/wwor-hero.png diff --git a/acf/group_67a1b2c3d4e5f.json b/acf/group_67a1b2c3d4e5f.json new file mode 100644 index 0000000..c30a777 --- /dev/null +++ b/acf/group_67a1b2c3d4e5f.json @@ -0,0 +1,86 @@ +{ + "key": "group_67a1b2c3d4e5f", + "title": "Q&A Questions", + "fields": [ + { + "key": "field_67a1b2c3d4e60", + "label": "Questions", + "name": "questions", + "aria-label": "", + "type": "repeater", + "instructions": "Add question and answer pairs for the Q+A section.", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "layout": "table", + "pagination": 0, + "min": 0, + "max": 0, + "collapsed": "", + "button_label": "Add Question", + "rows_per_page": 20, + "sub_fields": [ + { + "key": "field_67a1b2c3d4e61", + "label": "Question", + "name": "question", + "aria-label": "", + "type": "text", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "maxlength": "", + "placeholder": "", + "prepend": "", + "append": "" + }, + { + "key": "field_67a1b2c3d4e62", + "label": "Answer", + "name": "answer", + "aria-label": "", + "type": "textarea", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "maxlength": "", + "rows": "", + "placeholder": "", + "new_lines": "br" + } + ] + } + ], + "location": [ + [ + { + "param": "options_page", + "operator": "==", + "value": "global-fields" + } + ] + ], + "menu_order": 0, + "position": "normal", + "style": "default", + "label_placement": "top", + "instruction_placement": "label", + "active": true, + "description": "Q&A question and answer pairs displayed on the homepage and Q+A page." +} \ No newline at end of file diff --git a/footer.php b/footer.php index 4ce59d1..4227385 100644 --- a/footer.php +++ b/footer.php @@ -2,110 +2,63 @@ /** * Theme footer template * - * @package BasicWP + * @package GoAskAuntie * @since 1.0.0 */ namespace BasicWP; -$footerLogo = getFieldValue( 'footer.footer_logo.url' ) ? getFieldValue( 'footer.footer_logo.url' ) : ''; -$footerDesc = getFieldValue( 'footer.footer_description' ) ? getFieldValue( 'footer.footer_description' ) : ''; - -$copyright_text = getFieldValue( 'footer.copyright_text' ) ? getFieldValue( 'footer.copyright_text' ) : 'Copyright © %Y ' . get_bloginfo( 'name' ); - -$copyright = str_replace( '%Y', gmdate( 'Y' ), $copyright_text ); - -$locations = get_nav_menu_locations(); -$footerNav = ! empty( $locations['footer_navigation'] ) - ? ( wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) ? wp_get_nav_menu_items( (int) $locations['footer_navigation'] ) : array() ) - : array(); +$logo_url = get_theme_file_uri( '/static/img/logo.png' ); ?> - + + + - + \ No newline at end of file diff --git a/front-page.php b/front-page.php index 10b0719..8b2e2b5 100644 --- a/front-page.php +++ b/front-page.php @@ -1,27 +1,127 @@ -
-
- + +
+
+
+

Ka Ni Kanichihk Mino Pimatisiwin

+

Sexual Wellness Lodge

+

We're ready to welcome you.

+

QUESTIONS?

+
+
+ + Go Ask Auntie logo + +
-
+ - + +
+
+
+
+

Free

+

stbbi testing

+

Where to find us
Our clinic is part of Ka Ni Kanichihk, a trusted heart of Winnipeg's Indigenous community. You'll find us on the 1st Floor at 765 Main Street in the big red brick Social Enterprise Centre, right near the train tracks. The entrance is located on Austin Street. Ring the doorbell and our staff will greet you at the door! If you find your way here from the main building entrance, that's okay too!

+
+
+

You can lock your bike in the parking lot of the Social Enterprise Building from 7 a.m. to 4:30 p.m.

+

Ka Ni Kanichihk Reserved parking spots available. Parking is also available on Sutherland Avenue and Austin Street.

+

Bus Routes:
+ D17 Talbot and Selkirk
+ 31 Waterfront and North Main
+ FX2 St. Vital Centre, Garden City Centre
+ FX3 Redonda and Pandora NB, Sturgeon and Murray Park SB
+ 43 Gateway, RRC Polytech

+
+
+
+

Ka Ni Kanichihk Mino Pimatisiwin Sexual Wellness Lodge

+

+ #102–765 Main Street
+ Winnipeg, MB
+ R2W 3N5

+ Hours of Operation:
+ Tuesday 11 a.m. - 3 p.m.
+ Thursday 11 a.m. - 3 p.m.

+ Contact Us:
+ Phone: 204-594-6500
+ (Phone not monitored 24/7)
+ Email: info@kanikanichihk.ca

+ We're Hiring:
+ Find out more here.
+

+
+
+
+ + +
+
+
+

Get social with Go Ask Auntie

+ +
+
+
+ + +
+
+
+ + Do you have a question?
Find Auntie's answers here.
+
+ +
+
+ '; + if ( $question ) { + echo '

Q: ' . esc_html( $question ) . '

'; + } + if ( $answer ) { + echo '

AUNTIE:

'; + echo '

' . esc_html( $answer ) . '

'; + } + echo '
'; + } + } + ?> +
+
+
+ + + \ No newline at end of file diff --git a/header.php b/header.php index c5c079f..effa213 100644 --- a/header.php +++ b/header.php @@ -2,30 +2,16 @@ /** * Theme header template * - * @package BasicWP + * @package GoAskAuntie * @since 1.0.0 */ namespace BasicWP; -global $views; - -$headerLogo = getFieldValue( 'header.header_logo.url' ) ? getFieldValue( 'header.header_logo.url' ) : get_theme_file_uri( '/static/img/logo.svg' ); - -// Check conditions for displaying the hero section -$showHero = in_array( - true, - array( - get_field( 'hero_style' ) === 'default', - is_home(), - is_archive(), - is_single(), - is_search(), - is_404(), - ), - true -); - +$logo_url = get_theme_file_uri( '/static/img/logo.png' ); +$social_twitter = getFieldValue( 'social_media.twitter' ) ?: 'https://twitter.com/goaskauntieca'; +$social_facebook = getFieldValue( 'social_media.facebook' ) ?: 'https://www.facebook.com/Goaskauntieca'; +$social_instagram = getFieldValue( 'social_media.instagram' ) ?: 'https://www.instagram.com/goaskauntieca/'; ?> @@ -39,24 +25,99 @@ $showHero = in_array( -> + class="bg-pattern bg-teal-light bg-contain bg-repeat-y bg-top"> -