Timber\Timber::get_sidebar PHP Метод

get_sidebar() публичный статический Метод

Get sidebar.
public static get_sidebar ( string $sidebar = 'sidebar.php', array $data = [] ) : boolean | string
$sidebar string
$data array
Результат boolean | string
    public static function get_sidebar($sidebar = 'sidebar.php', $data = array())
    {
        if (strstr(strtolower($sidebar), '.php')) {
            return self::get_sidebar_from_php($sidebar, $data);
        }
        return self::compile($sidebar, $data);
    }