@@ -26,12 +26,12 @@ |
||
| 26 | 26 | public function getFeed() { |
| 27 | 27 | $html = '<article>'; |
| 28 | 28 | $html .= "<h1>Senaste nytt från IDG</h1>"; |
| 29 | - foreach($this->object->get_items() as $content) { |
|
| 29 | + foreach ($this->object->get_items() as $content) { |
|
| 30 | 30 | $html .= '<div class="feed-content">'; |
| 31 | - $html .= "<h2>" . $content->get_title() . "</h2>" ; |
|
| 32 | - $html .= "<small>Postad ". $content->get_date('Y-m-d | H:i:s')."</small>"; |
|
| 31 | + $html .= "<h2>".$content->get_title()."</h2>"; |
|
| 32 | + $html .= "<small>Postad ".$content->get_date('Y-m-d | H:i:s')."</small>"; |
|
| 33 | 33 | $html .= "<p>{$content->get_content()}</p>"; |
| 34 | - $html .= "<p><a href='" . $content->get_permalink() . "'>Läs mer</a>"; |
|
| 34 | + $html .= "<p><a href='".$content->get_permalink()."'>Läs mer</a>"; |
|
| 35 | 35 | $html .= '</div>'; |
| 36 | 36 | } |
| 37 | 37 | $html .= "</article>"; |