| @@ 821-832 (lines=12) @@ | ||
| 818 | * |
|
| 819 | * @return null|SS_HTTPResponse |
|
| 820 | */ |
|
| 821 | public function tag() |
|
| 822 | { |
|
| 823 | $tag = $this->getCurrentTag(); |
|
| 824 | ||
| 825 | if ($tag) { |
|
| 826 | $this->blogPosts = $tag->BlogPosts(); |
|
| 827 | return $this->render(); |
|
| 828 | } |
|
| 829 | ||
| 830 | $this->httpError(404, 'Not Found'); |
|
| 831 | ||
| 832 | return null; |
|
| 833 | } |
|
| 834 | ||
| 835 | /** |
|
| @@ 860-872 (lines=13) @@ | ||
| 857 | * |
|
| 858 | * @return null|SS_HTTPResponse |
|
| 859 | */ |
|
| 860 | public function category() |
|
| 861 | { |
|
| 862 | $category = $this->getCurrentCategory(); |
|
| 863 | ||
| 864 | if ($category) { |
|
| 865 | $this->blogPosts = $category->BlogPosts(); |
|
| 866 | ||
| 867 | return $this->render(); |
|
| 868 | } |
|
| 869 | ||
| 870 | $this->httpError(404, 'Not Found'); |
|
| 871 | ||
| 872 | return null; |
|
| 873 | } |
|
| 874 | ||
| 875 | /** |
|