| @@ 845-856 (lines=12) @@ | ||
| 842 | * |
|
| 843 | * @return null|SS_HTTPResponse |
|
| 844 | */ |
|
| 845 | public function tag() |
|
| 846 | { |
|
| 847 | $tag = $this->getCurrentTag(); |
|
| 848 | ||
| 849 | if ($tag) { |
|
| 850 | $this->blogPosts = $tag->BlogPosts(); |
|
| 851 | return $this->render(); |
|
| 852 | } |
|
| 853 | ||
| 854 | $this->httpError(404, 'Not Found'); |
|
| 855 | ||
| 856 | return null; |
|
| 857 | } |
|
| 858 | ||
| 859 | /** |
|
| @@ 884-896 (lines=13) @@ | ||
| 881 | * |
|
| 882 | * @return null|SS_HTTPResponse |
|
| 883 | */ |
|
| 884 | public function category() |
|
| 885 | { |
|
| 886 | $category = $this->getCurrentCategory(); |
|
| 887 | ||
| 888 | if ($category) { |
|
| 889 | $this->blogPosts = $category->BlogPosts(); |
|
| 890 | ||
| 891 | return $this->render(); |
|
| 892 | } |
|
| 893 | ||
| 894 | $this->httpError(404, 'Not Found'); |
|
| 895 | ||
| 896 | return null; |
|
| 897 | } |
|
| 898 | ||
| 899 | /** |
|