From 78c50a01f515dcdea7f92df50a37dcc212db8d14 Mon Sep 17 00:00:00 2001 From: Jacob Mansfield Date: Sun, 1 Dec 2019 10:30:16 +0000 Subject: [PATCH] [TheWhiteboard] Create new bridge for The Whiteboard (#1327) --- bridges/TheWhiteboardBridge.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 bridges/TheWhiteboardBridge.php diff --git a/bridges/TheWhiteboardBridge.php b/bridges/TheWhiteboardBridge.php new file mode 100644 index 00000000000..051d15e4a06 --- /dev/null +++ b/bridges/TheWhiteboardBridge.php @@ -0,0 +1,22 @@ +find('center', 1)->find('img', 0); + $image->src = self::URI . '/' . $image->src; + + $item['title'] = explode("\r\n", $html->find('center', 1)->plaintext)[0]; + $item['content'] = $image; + $item['timestamp'] = explode("\r\n", $html->find('center', 1)->plaintext)[0]; + + $this->items[] = $item; + } +}