Commit 86d7c84f by Scott

Merge pull request #113 from pupi1985/patch-35

Base theme now doesn't output h1 tags filled with blanks for unset titles
parents afc4a076 ac820631
...@@ -681,31 +681,33 @@ ...@@ -681,31 +681,33 @@
public function page_title_error() public function page_title_error()
{ {
$favorite = @$this->content['favorite']; if (isset($this->content['title'])) {
$favorite = isset($this->content['favorite']) ? $this->content['favorite'] : null;
if (isset($favorite))
$this->output('<form '.$favorite['form_tags'].'>');
$this->output('<h1>'); if (isset($favorite))
$this->favorite(); $this->output('<form ' . $favorite['form_tags'] . '>');
$this->title();
$this->output('</h1>');
if (isset($this->content['error'])) $this->output('<h1>');
$this->error(@$this->content['error']); $this->favorite();
$this->title();
$this->output('</h1>');
if (isset($favorite)) { if (isset($favorite)) {
$this->form_hidden_elements(@$favorite['form_hidden']); $formhidden = isset($favorite['form_hidden']) ? $favorite['form_hidden'] : null;
$this->output('</form>'); $this->form_hidden_elements($formhidden);
$this->output('</form>');
}
} }
if (isset($this->content['error']))
$this->error($this->content['error']);
} }
public function favorite() public function favorite()
{ {
$favorite = @$this->content['favorite']; $favorite = isset($this->content['favorite']) ? $this->content['favorite'] : null;
if (isset($favorite)) { if (isset($favorite)) {
$this->output('<span class="qa-favoriting" '.@$favorite['favorite_tags'].'>'); $favoritetags = isset($favorite['favorite_tags']) ? $favorite['favorite_tags'] : '';
$this->output('<span class="qa-favoriting" ' . $favoritetags . '>');
$this->favorite_inner_html($favorite); $this->favorite_inner_html($favorite);
$this->output('</span>'); $this->output('</span>');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment