Functions
Functions and Hooks
Function Name | Argument(s) | Utility |
---|---|---|
bcb_main_nav() |
Parameter 1: [string] (optional) adds class to the navbar ul element (default = ms-auto) |
Outputs WordPress ‘Main Menu’ if checked |
bcb_aux_nav() |
Parameter 1: [string] (optional) adds class to the navbar ul element (default = ms-auto) |
Outputs WordPress ‘Auxiliary Menu’ if checked |
bcb_image_id() |
None |
Outputs WordPress post featured image id |
bcb_image_url() |
Parameter 1: [integer] (required) image id Parameter 2: [string] (optional) accepts WordPress core sizes (thumbnail, medium, medium_large, large, full) |
Outputs image url |
bcb_image_alt() |
Parameter 1: [integer] (required) image id |
Outputs image alternate text |
bcb_icon() |
Parameter 1: [string] (required) icon name or class Parameter 2: [integer] (optional) adjust size in pixel value |
Renders Bootstrap Icon in SVG format |
bcb_check_template_name() |
Parameter 1: [string] (required) name of the template file |
Checks name of template file |
bcb_get_the_content() |
Parameter 1: [string] (required) post id |
Renders out content of a post |
bcb_taxonomy_terms() |
Parameter 1: [string] (required) Taxonomy Name Parameter 2: [string] (optional) Taxonomy field type (default = 'names') Parameter 3: [string] (optional) Accepts any separator character (default = ', ') |
Renders selected taxonomy or taxonomies |
bcb_search_form() |
Parameter 1: [string] (optional) adds class to the seach form container |
Outputs search form |
bcb_pagination() |
None |
Outputs post pagination |
bcb_before_footer() |
Hook: |
Outputs before footer tag |
bcb_before_navbar() |
Hook: |
Outputs before main navbar |
bcb_after_navbar() |
Hook: |
Outputs after main navbar |
onclick="bcbModeToggle()" |
None |
Adds class of ‘bcb-dark-mode’ to body and saves theme mode to local storage |
id="bcb-popup" |
None |
Will trigger modal and set a cookie to expire in 1 day when closing |
[bcb-year] |
None |
Renders current year |