original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Get a theme variable
  
  @param string $var
  @param bool $default
  @return string
docstring_tokens: Get a theme variable