Templates
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_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.
- cb_core_admin_menu() : mixed
- Adds a menu item for our settings.
- cb_core_admin_settings_sanitize() : string
- Will eventually be used to sanitize user input in the admin menu.
- cb_core_admin_settings_section_callback() : string
- Returns the content for our main settings section.
- cb_core_admin_reset_date_setting() : mixed
- Outputs the setting field for the reset date.
- cb_core_admin_volunteer_setting() : mixed
- Outputs the setting field for the volunteer amount per hour.
- cb_core_admin_spot_bonus_setting() : mixed
- Outputs the setting field for the volunteer amount per hour.
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_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
Tags
cb_core_admin_menu()
Adds a menu item for our settings.
cb_core_admin_menu() : mixed
Tags
cb_core_admin_settings_sanitize()
Will eventually be used to sanitize user input in the admin menu.
cb_core_admin_settings_sanitize(mixed $input) : string
Parameters
- $input : mixed
-
The input passed via post.
Tags
Return values
string —$input The "sanitized" input.
cb_core_admin_settings_section_callback()
Returns the content for our main settings section.
cb_core_admin_settings_section_callback() : string
Tags
Return values
string —Content.
cb_core_admin_reset_date_setting()
Outputs the setting field for the reset date.
cb_core_admin_reset_date_setting() : mixed
Tags
cb_core_admin_volunteer_setting()
Outputs the setting field for the volunteer amount per hour.
cb_core_admin_volunteer_setting() : mixed
Tags
cb_core_admin_spot_bonus_setting()
Outputs the setting field for the volunteer amount per hour.
cb_core_admin_spot_bonus_setting() : mixed