| @@ 790-801 (lines=12) @@ | ||
| 787 | * |
|
| 788 | * @return null|SS_HTTPResponse |
|
| 789 | */ |
|
| 790 | public function tag() {
|
|
| 791 | $tag = $this->getCurrentTag(); |
|
| 792 | ||
| 793 | if($tag) {
|
|
| 794 | $this->blogPosts = $tag->BlogPosts(); |
|
| 795 | return $this->render(); |
|
| 796 | } |
|
| 797 | ||
| 798 | $this->httpError(404, 'Not Found'); |
|
| 799 | ||
| 800 | return null; |
|
| 801 | } |
|
| 802 | ||
| 803 | /** |
|
| 804 | * Tag Getter for use in templates. |
|
| @@ 827-839 (lines=13) @@ | ||
| 824 | * |
|
| 825 | * @return null|SS_HTTPResponse |
|
| 826 | */ |
|
| 827 | public function category() {
|
|
| 828 | $category = $this->getCurrentCategory(); |
|
| 829 | ||
| 830 | if($category) {
|
|
| 831 | $this->blogPosts = $category->BlogPosts(); |
|
| 832 | ||
| 833 | return $this->render(); |
|
| 834 | } |
|
| 835 | ||
| 836 | $this->httpError(404, 'Not Found'); |
|
| 837 | ||
| 838 | return null; |
|
| 839 | } |
|
| 840 | ||
| 841 | /** |
|
| 842 | * Category Getter for use in templates. |
|