Bright Shortcodes
In most implementations, Bright integrates with page rendering in WordPress through the use of WordPress shortcodes. Bright Shortcodes tightly integrate with Bright templates. A Bright Shortcode renders a specified template to the page. The shortcode is also used to parameterize and configure the rendering of the template.
Sub-Topics
-
Builtin Templates
Builtin templates are shipped with Bright. You can use them as-is, or as a base for custom development.
-
Builtin Reports
The bright_generic_report template can display any report available in Bright. More information is available on the individual reports available here.
Documents
-
Bright Template Reference
The [bright] shortcode, aside from the shortcode attributes, can include template text, either inline or defined by a plugin. This … Read more →
-
Debugging Bright Embedder Templates
Viewing the Data In Embedder Variables The dump2 function is highly useful to "spy" inside embedder variables: Dump2 Function Use … Read more →
-
Setting the Course ID for a Template
There are three way to set the course ID for a course template Via Shortcode For example: [bright template='template-name' course='course-id'/] … Read more →
-
Bright Shortcode Reference
api_template New in Bright plugin version 6.8.2+ [bright type="courselist" api_template="public"/] By default, the Bright API will return the 'public_minimum' data … Read more →
-
Bright WordPress Hooks and Filters Reference
How to use See https://developer.wordpress.org/reference/functions/add_filter/ for more information. Filters are usually defined in a plugin [like your bright customizations plugin] … Read more →
-
Restricting Content To An Administrator
Restricting Content To An Administrator It is quite simple to do this in a Bright template: {{#if user.site_roles.administrator}} some content.... … Read more →
-
Styling A Generated Template
Generally speaking, Bright templates are designed to primarily function with very little CSS, so that they will adapt to your … Read more →
-
Customizing Certificate Images
Online Tool A convenient online tool to modify our built-in certificate image and just overlay your logo is here. Once … Read more →