dozent_body_class( array $classes )
Add body classes for Dozent pages.
Parameters
- $classes
-
(array) (Required) Body Classes.
Return
(array)
Source
File: includes/template-functions.php
function dozent_body_class( $classes ) { $classes = (array) $classes; if ( is_dozent() ) { $classes[] = 'dozent'; $classes[] = 'dozent-page'; $classes[] = 'has-dozent-content'; } if ( is_dozent_course_archive() ) { $classes[] = 'dozent-course-archive'; } if ( is_dozent_dashboard() ) { $classes[] = 'dozent-dashboard'; } if ( is_dozent_profile_page() ) { $classes[] = 'dozent-profile'; } $dashboard_sidebar_status = dozent_user_data()->get( 'dashboard_sidebar_status' ); if ( $dashboard_sidebar_status !== 'closed' ) { $classes[] = 'dozent-dashboard-sidebar-open'; } $theme_name = wp_get_theme()->get( 'Name' ); $theme_ID = "dozent-active-theme-" . sanitize_title( $theme_name ); $classes[] = $theme_ID; /** * Filter Dozent body Classes * * @since DozentLMS 1.0.0 * * @param array $classes Body Classes */ $classes = apply_filters( 'dozent_body_class', $classes ); return array_unique( $classes ); }