[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

BuddyPress Blogs Theme Compatibility.

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

Defines 1 class

BP_Blogs_Theme_Compat:: (8 methods):
  __construct()
  is_blogs()
  directory_template_hierarchy()
  directory_dummy_post()
  directory_content()
  create_template_hierarchy()
  create_dummy_post()
  create_content()


Class: BP_Blogs_Theme_Compat  - X-Ref

The main theme compat class for BuddyPress Blogs.

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

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

since: 1.7.0

is_blogs()   X-Ref
Are we looking at something that needs Blogs theme compatibility?

since: 1.7.0

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

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

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

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

create_template_hierarchy( $templates )   X-Ref
Add custom template hierarchy to theme compat for the blog create page.

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

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

create_dummy_post()   X-Ref
Update the global $post with create screen data.

since: 1.7.0

create_content()   X-Ref
Filter the_content with the create screen template part.

since: 1.7.0



Generated: Fri Dec 6 01:00:58 2024 Cross-referenced by PHPXref 0.7.1