[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-activity/classes/ -> class-bp-activity-theme-compat.php (summary)

BuddyPress Activity Theme Compatibility.

File Size: 180 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BP_Activity_Theme_Compat:: (8 methods):
  __construct()
  is_activity()
  directory_template_hierarchy()
  directory_dummy_post()
  directory_content()
  single_template_hierarchy()
  single_dummy_post()
  single_dummy_content()


Class: BP_Activity_Theme_Compat  - X-Ref

The main theme compat class for BuddyPress Activity.

This class sets up the necessary theme compatibility actions to safely output
activity template parts to the_title and the_content areas of a theme.

__construct()   X-Ref
Set up the activity component theme compatibility.

since: 1.7.0

is_activity()   X-Ref
Set up the theme compatibility hooks, if we're looking at an activity page.

since: 1.7.0

directory_template_hierarchy( $templates )   X-Ref
Add template hierarchy to theme compat for the activity directory page.

This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}.

return: array $templates Array of custom templates to look for.
param: string $templates The templates from bp_get_theme_compat_templates().
since: 1.8.0

directory_dummy_post()   X-Ref
Update the global $post with directory data.

since: 1.7.0

directory_content()   X-Ref
Filter the_content with the groups index template part.

since: 1.7.0

single_template_hierarchy( $templates )   X-Ref
Add custom template hierarchy to theme compat for activity permalink pages.

This is to mirror how WordPress has {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}.

return: array $templates Array of custom templates to look for.
param: string $templates The templates from bp_get_theme_compat_templates().
since: 1.8.0

single_dummy_post()   X-Ref
Update the global $post with the displayed user's data.

since: 1.7.0

single_dummy_content()   X-Ref
Filter the_content with the members' activity permalink template part.

since: 1.7.0



Generated: Thu Nov 21 01:00:57 2024 Cross-referenced by PHPXref 0.7.1