Skip to:

Opened 3 years ago

Closed 3 years ago

#8521 closed task (fixed)

Migrate the `BP_Core_Friends_Widget` Legacy Widget as a Widget Block

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 9.0.0 Priority: normal
Severity: normal Version:
Component: Friends Keywords: has-patch


Merge the BP Blocks plugin's 'bp/friends' Block into Core.

Attachments (1)

8521.patch (71.9 KB) - added by imath 3 years ago.

Download all attachments as: .zip

Change History (2)

3 years ago

#1 @imath
3 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 13002:

Merge the BP Blocks plugin's 'bp/friends' Block

  • introduce the bp_get_dynamic_template_part() function which let you use a JavaScript template inside PHP thanks to the bp_core_replace_tokens_in_text() function.
  • Adds a new assets/widgets/friends.php JavaScript template to our two template packs.
  • Adds a new Core JavaScript file which acts like a parent class to all dynamic widgets front-end scripts (friends, groups, members).
  • Add this front-end script to the Friends component.
  • Adapt Grunt sass tasks.
  • Add the Block JavaScript source files into src/js/bp-friends/js/blocks.
  • Add the Block Scss source file into src/bp-friends/sass.
  • Generate the development files to ease testing.

Fixes #8521

Note: See TracTickets for help on using tickets.