| @@ 831-842 (lines=12) @@ | ||
| 828 | * |
|
| 829 | * @return null|SS_HTTPResponse |
|
| 830 | */ |
|
| 831 | public function tag() |
|
| 832 | { |
|
| 833 | $tag = $this->getCurrentTag(); |
|
| 834 | ||
| 835 | if ($tag) { |
|
| 836 | $this->blogPosts = $tag->BlogPosts(); |
|
| 837 | return $this->render(); |
|
| 838 | } |
|
| 839 | ||
| 840 | $this->httpError(404, 'Not Found'); |
|
| 841 | ||
| 842 | return null; |
|
| 843 | } |
|
| 844 | ||
| 845 | /** |
|
| @@ 870-882 (lines=13) @@ | ||
| 867 | * |
|
| 868 | * @return null|SS_HTTPResponse |
|
| 869 | */ |
|
| 870 | public function category() |
|
| 871 | { |
|
| 872 | $category = $this->getCurrentCategory(); |
|
| 873 | ||
| 874 | if ($category) { |
|
| 875 | $this->blogPosts = $category->BlogPosts(); |
|
| 876 | ||
| 877 | return $this->render(); |
|
| 878 | } |
|
| 879 | ||
| 880 | $this->httpError(404, 'Not Found'); |
|
| 881 | ||
| 882 | return null; |
|
| 883 | } |
|
| 884 | ||
| 885 | /** |
|