cb-core-template.php
CB Core Template Functions
This file is going to store all of our core template functionality. This includes locating and loading templates at specified locations, typically on the confetti-bits dashboard page.
Tags
Table of Contents
Functions
- cb_member_locate_template_part() : string
- CB Member Locate Template Part
- cb_member_get_template_part() : An
- CB Member Get Template Part
- cb_get_active_templates() : An
- Confetti Bits Get Active Templates
- cb_member_template_part() : mixed
- Renders the member template part appropriate for the current page.
- cb_core_add_confetti_captain_badges() : mixed
- Adds Confetti Captain badges to the user's member profile page as well as to the activity feed, if they are a Confetti Captain.
- cb_core_confetti_captain_class() : mixed
- Adds our custom 'confetti-captain' class to the BuddyBoss user avatar so that we can add a cute little sparkler icon using JS.
- cb_core_confetti_captain_profile_badge() : mixed
- Adds a cute litte sparkler badge on the profile page of users who are designated as "Confetti Captains", which meand they are part of the Confetti Captains group.
Functions
cb_member_locate_template_part()
CB Member Locate Template Part
cb_member_locate_template_part([string $template = '' ]) : string
Attempts to locate the specified template in the TeamCTG Child Theme, located at '/cb-template-parts/cb-{$template}.php'.
Parameters
- $template : string = ''
-
The template to look for.
Tags
Return values
string —The template, if found.
cb_member_get_template_part()
CB Member Get Template Part
cb_member_get_template_part([mixed $template = '' ]) : An
Loads a template part based on the template that gets passed in.
Parameters
- $template : mixed = ''
Tags
Return values
An —array of the active templates.
cb_get_active_templates()
Confetti Bits Get Active Templates
cb_get_active_templates() : An
Sets up the templates to show users based on permissions.
Tags
Return values
An —array of the active templates.
cb_member_template_part()
Renders the member template part appropriate for the current page.
cb_member_template_part() : mixed
Right now? We only have the one page. Oof.
Tags
cb_core_add_confetti_captain_badges()
Adds Confetti Captain badges to the user's member profile page as well as to the activity feed, if they are a Confetti Captain.
cb_core_add_confetti_captain_badges() : mixed
Tags
cb_core_confetti_captain_class()
Adds our custom 'confetti-captain' class to the BuddyBoss user avatar so that we can add a cute little sparkler icon using JS.
cb_core_confetti_captain_class(mixed $class, mixed $item_id) : mixed
Parameters
- $class : mixed
- $item_id : mixed
Tags
cb_core_confetti_captain_profile_badge()
Adds a cute litte sparkler badge on the profile page of users who are designated as "Confetti Captains", which meand they are part of the Confetti Captains group.
cb_core_confetti_captain_profile_badge() : mixed