if (!$this->content_type()) $this->content_type($this->client_content_type());
// Nav
- $links = [];
+ list($title,$html) = [[],[]];
if (isset($opt['nav'])) {
list($title,$html) = self::nav_parse($opt['nav']);
unset($opt['nav']);
parent::__construct($opt);
// Defaults
- if ( !empty($title) and empty($this->title) ) $this->title = join($this->sep,$title);
- if ( empty($this->title) ) $this->title = $this->filename2title();
+ if ( empty($this->title) and !empty($title) ) $this->title = join($this->sep,$title);
+ if ( empty($this->h1) and !empty($html) ) $this->h1 = join($this->sep,$html);
+ #if ( !empty($title) and empty($this->title) ) $this->title = join($this->sep,$title);
+ #if ( empty($this->title) ) $this->title = $this->filename2title();
if ( empty($this->h1) and ! empty($this->title) ) $this->h1 = $this->title;
// Call / Print
'css' => $this->css,
'title' => join(', ',$title),
'nav' => $nav,
+ 'sep' => ', ',
]);
if ($this->run) $this->run();