| @@ 831-848 (lines=18) @@ | ||
| 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 | ||
| 838 | if($this->isRSS()) { |
|
| 839 | return $this->rssFeed($this->blogPosts, $tag->getLink()); |
|
| 840 | } else { |
|
| 841 | return $this->render(); |
|
| 842 | } |
|
| 843 | } |
|
| 844 | ||
| 845 | $this->httpError(404, 'Not Found'); |
|
| 846 | ||
| 847 | return null; |
|
| 848 | } |
|
| 849 | ||
| 850 | /** |
|
| 851 | * Tag Getter for use in templates. |
|
| @@ 875-892 (lines=18) @@ | ||
| 872 | * |
|
| 873 | * @return null|SS_HTTPResponse |
|
| 874 | */ |
|
| 875 | public function category() |
|
| 876 | { |
|
| 877 | $category = $this->getCurrentCategory(); |
|
| 878 | ||
| 879 | if ($category) { |
|
| 880 | $this->blogPosts = $category->BlogPosts(); |
|
| 881 | ||
| 882 | if($this->isRSS()) { |
|
| 883 | return $this->rssFeed($this->blogPosts, $category->getLink()); |
|
| 884 | } else { |
|
| 885 | return $this->render(); |
|
| 886 | } |
|
| 887 | } |
|
| 888 | ||
| 889 | $this->httpError(404, 'Not Found'); |
|
| 890 | ||
| 891 | return null; |
|
| 892 | } |
|
| 893 | ||
| 894 | /** |
|
| 895 | * Category Getter for use in templates. |
|