LLMS_Twenty_Twenty_One::handle_page_header_wrappers()
Handle wrapping the catalog page header in 2021 theme elements.
Description Description
This method determines if the catalog title are to be displayed and adds additional actions which will wrap the elements in 2021 theme elements depending on what is meant to be displayed.
Return Return
(void)
Source Source
File: includes/theme-support/class-llms-twenty-twenty-one.php
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | public static function handle_page_header_wrappers() { /** This filter is documented in templates/loop.php */ $show_title = apply_filters( 'lifterlms_show_page_title' , true ); if ( $show_title ) { add_action( 'lifterlms_before_main_content' , array ( __CLASS__ , 'page_header_wrap' ), 11 ); add_action( 'lifterlms_archive_description' , array ( __CLASS__ , 'page_header_wrap_end' ), 99999999 ); } if ( $show_title && ! empty ( lifterlms_get_archive_description() ) ) { add_action( 'lifterlms_archive_description' , array ( __CLASS__ , 'output_archive_description_wrapper' ), -1 ); add_action( 'lifterlms_archive_description' , array ( __CLASS__ , 'output_archive_description_wrapper_end' ), 99999998 ); } } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.10.0 | Introduced. |