Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Sidebars::get_theme_default_sidebar()

Get the theme default sidebar that will be replaced by course and lesson sidebars


Return Return

(string)


Top ↑

Source Source

File: includes/class.llms.sidebars.php

	private static function get_theme_default_sidebar() {

		$theme = get_option( 'template' );

		switch ( $theme ) {

			case 'canvas':
				$id = 'primary';
				break;

			case 'Divi':
			case 'twentyeleven':
			case 'twentyfifteen':
			case 'twentyfourteen':
			case 'twentyseventeen':
			case 'twentysixteen':
			case 'twentytwelve':
				$id = 'sidebar-1';
				break;

			case 'twentythirteen':
				$id = 'sidebar-2';
				break;

			case 'twentyten':
				$id = 'primary-widget-area';
				break;

			default:
				$id = '';

		}

		return apply_filters( 'llms_get_theme_default_sidebar', $id, $theme );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.1 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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