From 62b1eb65dc1fe822f1e73d6c7469ac0213d117c4 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 15 Jan 2013 01:32:11 -0800 Subject: pages sorta working --- include/conversation.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/conversation.php b/include/conversation.php index e5c035335..29c5938b0 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1090,3 +1090,16 @@ function render_location_google($item) { } return $location; } + + + +function prepare_page($item) { + return replace_macros(get_markup_template('page_display.tpl'),array( + '$author' => $item['author']['xchan_name'], + '$auth_url' => $item['author']['xchan_url'], + '$date' => datetime_convert('UTC',date_default_timezone_get(),$item['created'],'Y-m-d H:i'), + '$title' => smilies(bbcode($item['title'])), + '$body' => smilies(bbcode($item['body'])) + )); +} + -- cgit v1.2.3