diff --git a/bridges/HytaleBridge.php b/bridges/HytaleBridge.php new file mode 100644 index 00000000..de58ab76 --- /dev/null +++ b/bridges/HytaleBridge.php @@ -0,0 +1,35 @@ +publishedAt); + $year = $splitted_timestamp[0]; + $month = $splitted_timestamp[1]; + $slug = $blog_post->slug; + + $uri = 'https://hytale.com/news/' . $year . '/' . $month . '/' . $slug; + + $item['uri'] = $uri; + $item['title'] = $blog_post->title; + $item['author'] = $blog_post->author; + $item['timestamp'] = $blog_post->publishedAt; + $item['content'] = $blog_post->bodyExcerpt; + + $this->items[] = $item; + } + } +}