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.


Top ↑

Return Return

(string)


Top ↑

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;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.37.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.