function theme_page_title($theme) { $component = array(); if (isset($this->request)) { if ($this->request->display_post && isset($theme->post)) { $component['post'] = $theme->post->title_title; } if ($this->request->display_entries_by_tag && isset($theme->post)) { $component['tag'] = _t('Posts tagged with "%s"', array(implode(',', $theme->include_tag))); } } $component['site'] = Options::get('title'); $component = Plugins::filter('page_titles', $component, $theme); return implode(' - ', $component); }