public function title($Title = '', $NoSubtitle = false)
{
if ($Title != '') {
// Apply $Title to $this->_Title and to $this->_Sender.
$this->_Title = $Title;
$this->_Sender->title($Title);
} elseif ($this->_Title == '') {
// Get Title from $this->_Sender if not supplied.
$this->_Title = valr('Data.Title', $this->_Sender, '');
}
if ($NoSubtitle) {
return $this->_Title;
} else {
if ($this->_Subtitle == '') {
// Get Subtitle from controller.
$this->_Subtitle = valr('Data._Subtitle', $this->_Sender, c('Garden.Title'));
}
// Default Return title from controller's Data.Title + banner title;
return concatSep($this->_TitleDivider, $this->_Title, $this->_Subtitle);
}
}