ASTRA_Ext_LifterLMS_Markup::body_class( array $classes )
Body Class
Description
Parameters
- $classes
-
(array) (Required) Default argument array.
Return
(array;)
Source
File: addons/lifterlms/classes/class-astra-ext-lifterlms-markup.php
public function body_class( $classes ) { $distraction_free_learning = astra_get_option( 'lifterlms-distraction-free-learning' ); $distraction_free_checkout = astra_get_option( 'lifterlms-distraction-free-checkout' ); $vertical_tab = astra_get_option( 'lifterlms-my-account-vertical' ); $page_restricted = llms_page_restricted( get_the_id() ); $header_profile_link = astra_get_option( 'lifterlms-profile-link-enabled' ); if ( ( ( is_course() || is_lesson() ) && $distraction_free_learning && ! $page_restricted['is_restricted'] ) || ( is_llms_checkout() && $distraction_free_checkout ) ) { $classes[] = 'llms-distraction-free'; } if ( $vertical_tab ) { $classes[] = 'llms-student-dashboard-vertical'; } if ( $header_profile_link ) { $classes[] = 'llms-profile-link-enabled'; } return $classes; }
Expand full source code Collapse full source code View on Trac