LLMS_Twenty_Twenty::output_content_wrapper()
Output Twenty Twenty theme wrapper openers
Return Return
(void)
Source Source
File: includes/theme-support/class-llms-twenty-twenty.php
public static function output_content_wrapper() { $show_title = apply_filters( 'lifterlms_show_page_title', true ); $has_desc = has_action( 'lifterlms_archive_description' ); if ( $has_desc ) { add_action( 'lifterlms_archive_description', array( __CLASS__, 'output_archive_description_wrapper' ), -1 ); add_action( 'lifterlms_archive_description', array( __CLASS__, 'output_archive_description_wrapper_end' ), 99999999 ); } if ( $show_title ) { add_filter( 'lifterlms_show_page_title', '__return_false' ); } ?> <main id="site-content" role="main"> <?php if ( $show_title || $has_desc ) : ?> <header class="archive-header has-text-align-center header-footer-group"> <div class="archive-header-inner section-inner medium"> <?php if ( $show_title ) : ?> <h1 class="archive-title"><?php lifterlms_page_title(); ?></h1> <?php endif; ?> <?php endif; ?> <?php // If there's no description, output the end wrapper now. if ( $show_title && ! $has_desc ) { self::output_content_wrapper_part_two(); } else { // Otherwise output the wrapper after the end wrapper for the description wrapper div. add_action( 'lifterlms_archive_description', array( __CLASS__, 'output_content_wrapper_part_two' ), 99999999 ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.0 | Introduced. |