| @@ 70-79 (lines=10) @@ | ||
| 67 | ]; |
|
| 68 | } |
|
| 69 | ||
| 70 | public function resolveTemplate() |
|
| 71 | { |
|
| 72 | if ($this->template !== 'inherit') { |
|
| 73 | return $this->template; |
|
| 74 | } elseif ($this->template == 'inherit' && $this->category) { |
|
| 75 | return $this->category->resolveTemplate(true); |
|
| 76 | } else { |
|
| 77 | return 'current'; |
|
| 78 | } |
|
| 79 | } |
|
| 80 | ||
| 81 | public function resolveViewer() |
|
| 82 | { |
|
| @@ 144-153 (lines=10) @@ | ||
| 141 | return $href . "/" . ($this->alias ? $this->alias : $this->pk()); |
|
| 142 | } |
|
| 143 | ||
| 144 | public function resolveTemplate() |
|
| 145 | { |
|
| 146 | if ($this->template !== 'inherit') { |
|
| 147 | return $this->template; |
|
| 148 | } elseif ($this->template == 'inherit' && $this->category) { |
|
| 149 | return $this->category->resolveTemplate(true); |
|
| 150 | } else { |
|
| 151 | return 'current'; |
|
| 152 | } |
|
| 153 | } |
|
| 154 | ||
| 155 | public function resolveViewer() |
|
| 156 | { |
|
| @@ 125-134 (lines=10) @@ | ||
| 122 | } |
|
| 123 | } |
|
| 124 | ||
| 125 | public function resolveTemplate() |
|
| 126 | { |
|
| 127 | if ($this->template !== 'inherit') { |
|
| 128 | return $this->template; |
|
| 129 | } elseif ($this->template == 'inherit' && $this->category) { |
|
| 130 | return $this->category->resolveTemplate(true); |
|
| 131 | } else { |
|
| 132 | return 'current'; |
|
| 133 | } |
|
| 134 | } |
|
| 135 | ||
| 136 | public function resolveViewer() |
|
| 137 | { |
|