@@ 220-225 (lines=6) @@ | ||
217 | } |
|
218 | ||
219 | $description = $this->get('meta[name="description"]'); |
|
220 | if (count($description) > 0) { |
|
221 | $description = trim($description[0]->getAttribute("content")); |
|
222 | if (strlen($description) > 0) { |
|
223 | array_unshift($sentences, $description); |
|
224 | } |
|
225 | } |
|
226 | ||
227 | $title = $this->get('title'); |
|
228 | if (count($title) > 0) { |
|
@@ 228-233 (lines=6) @@ | ||
225 | } |
|
226 | ||
227 | $title = $this->get('title'); |
|
228 | if (count($title) > 0) { |
|
229 | $title = trim($title[0]->getText()); |
|
230 | if (strlen($title) > 0) { |
|
231 | array_unshift($sentences, $title); |
|
232 | } |
|
233 | } |
|
234 | ||
235 | return $sentences; |
|
236 | } |