| @@ 285-293 (lines=9) @@ | ||
| 282 | * |
|
| 283 | * @return string |
|
| 284 | */ |
|
| 285 | public function slug($type = '') |
|
| 286 | { |
|
| 287 | $slug = $this->album['slug']; |
|
| 288 | if ('raw' === $type) { |
|
| 289 | return $slug; |
|
| 290 | } |
|
| 291 | ||
| 292 | return Text::escape($slug); |
|
| 293 | } |
|
| 294 | ||
| 295 | /** |
|
| 296 | * Returns album url. |
|
| @@ 319-327 (lines=9) @@ | ||
| 316 | * |
|
| 317 | * @return string |
|
| 318 | */ |
|
| 319 | public function album($type = '') |
|
| 320 | { |
|
| 321 | $album = $this->album['album']; |
|
| 322 | if ('raw' === $type) { |
|
| 323 | return $album; |
|
| 324 | } |
|
| 325 | ||
| 326 | return Text::escape($album); |
|
| 327 | } |
|
| 328 | ||
| 329 | /** |
|
| 330 | * Returns thumb path. |
|
| @@ 99-107 (lines=9) @@ | ||
| 96 | * |
|
| 97 | * @return string |
|
| 98 | */ |
|
| 99 | public function description($type = '') |
|
| 100 | { |
|
| 101 | $description = $this->category['description']; |
|
| 102 | if ('raw' === $type) { |
|
| 103 | return $description; |
|
| 104 | } |
|
| 105 | ||
| 106 | return Text::escape($description); |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * Returns content. |
|
| @@ 174-182 (lines=9) @@ | ||
| 171 | * |
|
| 172 | * @return string |
|
| 173 | */ |
|
| 174 | public function slug($type = '') |
|
| 175 | { |
|
| 176 | $slug = $this->gallery['slug']; |
|
| 177 | if ('raw' === $type) { |
|
| 178 | return $slug; |
|
| 179 | } |
|
| 180 | ||
| 181 | return Text::escape($slug); |
|
| 182 | } |
|
| 183 | ||
| 184 | public function thumbsWidth() |
|
| 185 | { |
|
| @@ 70-78 (lines=9) @@ | ||
| 67 | * |
|
| 68 | * @return string |
|
| 69 | */ |
|
| 70 | public function title($type = '') |
|
| 71 | { |
|
| 72 | $title = $this->page['title']; |
|
| 73 | if ('raw' === $type) { |
|
| 74 | return $title; |
|
| 75 | } |
|
| 76 | ||
| 77 | return Text::escape($title); |
|
| 78 | } |
|
| 79 | ||
| 80 | /** |
|
| 81 | * @param bool $truncate |
|
| @@ 121-129 (lines=9) @@ | ||
| 118 | * |
|
| 119 | * @return string |
|
| 120 | */ |
|
| 121 | public function keywords($type = '') |
|
| 122 | { |
|
| 123 | $keywords = $this->page['keywords']; |
|
| 124 | if ('raw' === $type) { |
|
| 125 | return $keywords; |
|
| 126 | } |
|
| 127 | ||
| 128 | return Text::escape($keywords); |
|
| 129 | } |
|
| 130 | ||
| 131 | /** |
|
| 132 | * Returns the description. |
|
| @@ 138-146 (lines=9) @@ | ||
| 135 | * |
|
| 136 | * @return string |
|
| 137 | */ |
|
| 138 | public function description($type = '') |
|
| 139 | { |
|
| 140 | $description = $this->page['description']; |
|
| 141 | if ('raw' === $type) { |
|
| 142 | return $description; |
|
| 143 | } |
|
| 144 | ||
| 145 | return Text::escape($description); |
|
| 146 | } |
|
| 147 | ||
| 148 | public function views() |
|
| 149 | { |
|
| @@ 138-146 (lines=9) @@ | ||
| 135 | * |
|
| 136 | * @return string |
|
| 137 | */ |
|
| 138 | public function description($type = '') |
|
| 139 | { |
|
| 140 | $description = $this->article['description']; |
|
| 141 | if ('raw' === $type) { |
|
| 142 | return $description; |
|
| 143 | } |
|
| 144 | ||
| 145 | return Text::escape($description); |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| 149 | * Returns article content. |
|
| @@ 369-377 (lines=9) @@ | ||
| 366 | * |
|
| 367 | * @return string |
|
| 368 | */ |
|
| 369 | public function slug($type = '') |
|
| 370 | { |
|
| 371 | $slug = $this->article['slug']; |
|
| 372 | if ('raw' === $type) { |
|
| 373 | return $slug; |
|
| 374 | } |
|
| 375 | ||
| 376 | return Text::escape($slug); |
|
| 377 | } |
|
| 378 | ||
| 379 | /** |
|
| 380 | * Returns article url. |
|
| @@ 62-70 (lines=9) @@ | ||
| 59 | * |
|
| 60 | * @return string |
|
| 61 | */ |
|
| 62 | public function nick($type = '') |
|
| 63 | { |
|
| 64 | $nick = $this->user['nick']; |
|
| 65 | if ('raw' === $type) { |
|
| 66 | return $nick; |
|
| 67 | } |
|
| 68 | ||
| 69 | return Text::escape($nick); |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| 73 | * Returns user first name. |
|
| @@ 96-104 (lines=9) @@ | ||
| 93 | * |
|
| 94 | * @return string |
|
| 95 | */ |
|
| 96 | public function surname($type = '') |
|
| 97 | { |
|
| 98 | $surname = $this->user['surname']; |
|
| 99 | if ('raw' === $type) { |
|
| 100 | return $surname; |
|
| 101 | } |
|
| 102 | ||
| 103 | return Text::escape($surname); |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * Returns user email. |
|
| @@ 113-121 (lines=9) @@ | ||
| 110 | * |
|
| 111 | * @return string |
|
| 112 | */ |
|
| 113 | public function email($type = '') |
|
| 114 | { |
|
| 115 | $email = $this->user['email']; |
|
| 116 | if ('raw' === $type) { |
|
| 117 | return $email; |
|
| 118 | } |
|
| 119 | ||
| 120 | return Text::escape($email); |
|
| 121 | } |
|
| 122 | ||
| 123 | public function getRegisterDate() |
|
| 124 | { |
|