public function themeVarFunc($var, $default = null)
    {
        $header = $this->grav['page']->header();
        $header_classes = $header->{$var} ?? null;

        return $header_classes ?: $this->config->get('theme.' . $var, $default);
    }
public function themeVarFunc($var, $default = null)
    {
        $header = $this->grav['page']->header();
        $header_classes = $header->{$var} ?? null;

        return $header_classes ?: $this->config->get('theme.' . $var, $default);
    }
public function themeVarFunc ( $ var , $ default = null ) { $ header = $ this -> grav [ 'page' ] -> header ( ) ; $ header_classes = $ header -> { $ var } ?? null ; return $ header_classes ? : $ this -> config -> get ( 'theme.' . $ var , $ default ) ; }
Get a theme variable

@param string $var
@param bool $default
@return string
Get a theme variable