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