@@ 279-287 (lines=9) @@ | ||
276 | * |
|
277 | * @return string |
|
278 | */ |
|
279 | public function slug($type = '') |
|
280 | { |
|
281 | $slug = $this->album['slug']; |
|
282 | if ('raw' === $type) { |
|
283 | return $slug; |
|
284 | } |
|
285 | ||
286 | return Text::escape($slug); |
|
287 | } |
|
288 | ||
289 | /** |
|
290 | * Returns album url. |
|
@@ 312-320 (lines=9) @@ | ||
309 | * |
|
310 | * @return string |
|
311 | */ |
|
312 | public function album($type = '') |
|
313 | { |
|
314 | $album = $this->album['album']; |
|
315 | if ('raw' === $type) { |
|
316 | return $album; |
|
317 | } |
|
318 | ||
319 | return Text::escape($album); |
|
320 | } |
|
321 | ||
322 | /** |
|
323 | * 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. |
@@ 167-175 (lines=9) @@ | ||
164 | * |
|
165 | * @return string |
|
166 | */ |
|
167 | public function slug($type = '') |
|
168 | { |
|
169 | $slug = $this->gallery['slug']; |
|
170 | if ('raw' === $type) { |
|
171 | return $slug; |
|
172 | } |
|
173 | ||
174 | return Text::escape($slug); |
|
175 | } |
|
176 | ||
177 | public function thumbsWidth() |
|
178 | { |
@@ 69-77 (lines=9) @@ | ||
66 | * |
|
67 | * @return string |
|
68 | */ |
|
69 | public function title($type = '') |
|
70 | { |
|
71 | $title = $this->page['title']; |
|
72 | if ('raw' === $type) { |
|
73 | return $title; |
|
74 | } |
|
75 | ||
76 | return Text::escape($title); |
|
77 | } |
|
78 | ||
79 | public function content($truncate = false, $stripTags = false, $escape = false, $raw = false) |
|
80 | { |
|
@@ 111-119 (lines=9) @@ | ||
108 | * |
|
109 | * @return string |
|
110 | */ |
|
111 | public function keywords($type = '') |
|
112 | { |
|
113 | $keywords = $this->page['keywords']; |
|
114 | if ('raw' === $type) { |
|
115 | return $keywords; |
|
116 | } |
|
117 | ||
118 | return Text::escape($keywords); |
|
119 | } |
|
120 | ||
121 | /** |
|
122 | * Returns the description. |
|
@@ 128-136 (lines=9) @@ | ||
125 | * |
|
126 | * @return string |
|
127 | */ |
|
128 | public function description($type = '') |
|
129 | { |
|
130 | $description = $this->page['description']; |
|
131 | if ('raw' === $type) { |
|
132 | return $description; |
|
133 | } |
|
134 | ||
135 | return Text::escape($description); |
|
136 | } |
|
137 | ||
138 | public function views() |
|
139 | { |
@@ 60-68 (lines=9) @@ | ||
57 | * |
|
58 | * @return string |
|
59 | */ |
|
60 | public function nick($type = '') |
|
61 | { |
|
62 | $nick = $this->user['nick']; |
|
63 | if ('raw' === $type) { |
|
64 | return $nick; |
|
65 | } |
|
66 | ||
67 | return Text::escape($nick); |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * Returns user first name. |
|
@@ 94-102 (lines=9) @@ | ||
91 | * |
|
92 | * @return string |
|
93 | */ |
|
94 | public function surname($type = '') |
|
95 | { |
|
96 | $surname = $this->user['surname']; |
|
97 | if ('raw' === $type) { |
|
98 | return $surname; |
|
99 | } |
|
100 | ||
101 | return Text::escape($surname); |
|
102 | } |
|
103 | ||
104 | /** |
|
105 | * Returns user email. |
|
@@ 111-119 (lines=9) @@ | ||
108 | * |
|
109 | * @return string |
|
110 | */ |
|
111 | public function email($type = '') |
|
112 | { |
|
113 | $email = $this->user['email']; |
|
114 | if ('raw' === $type) { |
|
115 | return $email; |
|
116 | } |
|
117 | ||
118 | return Text::escape($email); |
|
119 | } |
|
120 | } |
|
121 |
@@ 130-138 (lines=9) @@ | ||
127 | * |
|
128 | * @return string |
|
129 | */ |
|
130 | public function description($type = '') |
|
131 | { |
|
132 | $description = $this->article['description']; |
|
133 | if ('raw' === $type) { |
|
134 | return $description; |
|
135 | } |
|
136 | ||
137 | return Text::escape($description); |
|
138 | } |
|
139 | ||
140 | /** |
|
141 | * Returns article content. |
|
@@ 352-360 (lines=9) @@ | ||
349 | * |
|
350 | * @return string |
|
351 | */ |
|
352 | public function slug($type = '') |
|
353 | { |
|
354 | $slug = $this->article['slug']; |
|
355 | if ('raw' === $type) { |
|
356 | return $slug; |
|
357 | } |
|
358 | ||
359 | return Text::escape($slug); |
|
360 | } |
|
361 | ||
362 | /** |
|
363 | * Returns article url. |