Skip to:
Content

BuddyPress.org

Opened 9 months ago

Closed 9 months ago

#9118 closed defect (bug) (fixed)

Set BP Block Themes minimal template hierarchy

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 14.0.0 Priority: normal
Severity: normal Version: 1.0
Component: Templates Keywords: has-patch
Cc:

Description (last modified by imath)

Working on BuddyVibes, I've noticed the BP Default theme was weirdly using full (header, sidebar, footer) templates in the members/single/settings/ folder while it wasn't the case for the other folders.

In order to have more consistency comparing Template Pack way of loading single member's settings screens and BP Block Theme way, we need to edit almost all bp_core_load_template occurrences so that it passes an array containing the BP Default templates and the next BP Block Theme ones.

As I was into it, I've replaced for these BP Block themes the single item's root template from home to index.

Change History (12)

#1 @imath
9 months ago

  • Description modified (diff)

#2 @imath
9 months ago

  • Description modified (diff)

This ticket was mentioned in PR #249 on buddypress/buddypress by imath.


9 months ago
#3

  • Keywords has-patch added

Make the BP Block themes template hierarchy more inline with BP Template packs one as well as with WP Block Themes (using index.html instead of home.html. See https://github.com/buddypress/buddyvibes/pull/7.

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9118

#4 @imath
9 months ago

In 13759:

BP Standalone Block Themes: adapt Activity template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.
  • Adds an activity/single template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

#5 @imath
9 months ago

In 13760:

BP Standalone Block Themes: adapt Blogs template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

#6 @imath
9 months ago

In 13761:

BP Standalone Block Themes: adapt Friends template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

#7 @imath
9 months ago

In 13762:

BP Standalone Block Themes: adapt Groups template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.
  • Adds a groups/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

#8 @imath
9 months ago

In 13763:

BP Standalone Block Themes: adapt Members template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.
  • Adds a members/register root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.
  • Adds a members/activate root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

#9 @imath
9 months ago

In 13764:

BP Standalone Block Themes: adapt Messages template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

#10 @imath
9 months ago

In 13765:

BP Standalone Block Themes: adapt Notifications template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

#11 @imath
9 months ago

In 13766:

BP Standalone Block Themes: adapt Settings template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

#12 @imath
9 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 13767:

BP Standalone Block Themes: adapt xProfiles template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

Fixes #9118
Closes https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

Note: See TracTickets for help on using tickets.