Calendar added

This commit is contained in:
2017-08-02 23:58:49 +02:00
parent 9201c50812
commit 4f3490367f
6 changed files with 70 additions and 148 deletions

View File

@@ -63,10 +63,6 @@ class NewsItem extends Model {
$this->url = "/nieuws/{$this->id}/" . parent::url_slug($this->title);
}
public function detailsUrl() {
return "/{$this->id}/" . urlencode($this->title);
}
public function excerpt() {
$hasImages = count($this->images) > 0;
$maxLength = $hasImages ? 200 : 500;