Astra_LearnDash::content_layout( string $layout )
LeanDash Container
Description
Parameters
- $layout
-
(string) (Required) Layout type.
Return
(string) $layout Layout type.
Source
File: inc/compatibility/learndash/class-astra-learndash.php
public function content_layout( $layout ) {
if ( is_singular( 'sfwd-courses' ) || is_singular( 'sfwd-lessons' ) || is_singular( 'sfwd-topic' ) || is_singular( 'sfwd-quiz' ) || is_singular( 'sfwd-certificates' ) || is_singular( 'sfwd-assignment' ) ) {
$learndash_layout = astra_get_option( 'learndash-content-layout' );
if ( 'default' !== $learndash_layout ) {
$layout = $learndash_layout;
}
$learndash_layout = astra_get_option_meta( 'site-content-layout', '', true );
if ( 'default' !== $learndash_layout && ! empty( $learndash_layout ) ) {
$layout = $learndash_layout;
}
}
return $layout;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Introduced. |