LLMS_Twenty_Twenty::get_page_template_class()
Get the twenty twenty theme’s “width” class for use in wrapper elements.
Description Description
If the "Full Width" template is utilized, there’s no class, otherwise the class thin
is used.
Return Return
(string)
Source Source
File: includes/theme-support/class-llms-twenty-twenty.php
protected static function get_page_template_class() { $template_class = 'thin'; $page_id = self::get_archive_page_id(); if ( $page_id ) { $template_class = self::is_page_full_width( $page_id ) ? '' : 'thin'; } else { $template_class = is_page_template( 'templates/template-full-width.php' ) ? '' : 'thin'; } return $template_class; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.0 | Introduced. |