Last active
June 11, 2016 05:42
Revisions
-
pupi1985 revised this gist
Aug 18, 2014 . 1 changed file with 14 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,12 +5,23 @@ function page_title_error() if (isset($favorite)) $this->output('<form '.$favorite['form_tags'].'>'); echo 'Template: ' . $this->template . ' '; switch ($this->template) { case 'qa': $class = ' class="recent-questions"'; break; case 'some-other-template-you-want': $class = ' class="another-class-to-apply-css"'; break; default: $class = ''; } $tag = 'h1'; $this->output('<' . $tag . $class . '>'); $this->favorite(); $this->title(); $this->output('</' . $tag . '>'); if (isset($this->content['error'])) $this->error(@$this->content['error']); -
pupi1985 revised this gist
Aug 18, 2014 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,9 @@ function page_title_error() if (isset($favorite)) $this->output('<form '.$favorite['form_tags'].'>'); $class = $this->template === 'qa' ? ' class="recent-questions"' : ''; $this->output('<h1' . $class . '>'); $this->favorite(); $this->title(); $this->output('</h1>'); -
pupi1985 created this gist
Aug 18, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ function page_title_error() { $favorite=@$this->content['favorite']; if (isset($favorite)) $this->output('<form '.$favorite['form_tags'].'>'); $this->output('<h1>'); $this->favorite(); $this->title(); $this->output('</h1>'); if (isset($this->content['error'])) $this->error(@$this->content['error']); if (isset($favorite)) { $this->form_hidden_elements(@$favorite['form_hidden']); $this->output('</form>'); } }