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"> -