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'])) + )); +} + diff --git a/mod/page.php b/mod/page.php index e4e22c9e1..a10b354f2 100644 --- a/mod/page.php +++ b/mod/page.php @@ -38,7 +38,7 @@ function page_content(&$a) { xchan_query($r); $r = fetch_post_tags($r); $a->profile = array('profile_uid' => $u[0]['channel_id']); - $o .= conversation($a,$r,'page',0); + $o .= prepare_page($r[0]); return $o; } \ No newline at end of file diff --git a/view/tpl/smarty3/404.tpl b/view/tpl/smarty3/404.tpl index 2d581ab8d..518ad1d29 100644 --- a/view/tpl/smarty3/404.tpl +++ b/view/tpl/smarty3/404.tpl @@ -1,6 +1 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}}

{{$message}}

diff --git a/view/tpl/smarty3/abook_edit.tpl b/view/tpl/smarty3/abook_edit.tpl index 1289f90fc..623f13dd4 100644 --- a/view/tpl/smarty3/abook_edit.tpl +++ b/view/tpl/smarty3/abook_edit.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}}

{{$header}}

diff --git a/view/tpl/smarty3/acl_selector.tpl b/view/tpl/smarty3/acl_selector.tpl index aebef71ee..d21073b56 100644 --- a/view/tpl/smarty3/acl_selector.tpl +++ b/view/tpl/smarty3/acl_selector.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}}
{{$showall}} diff --git a/view/tpl/smarty3/admin_aside.tpl b/view/tpl/smarty3/admin_aside.tpl index 69445d3b1..acf58668d 100644 --- a/view/tpl/smarty3/admin_aside.tpl +++ b/view/tpl/smarty3/admin_aside.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} diff --git a/view/tpl/smarty3/delegate.tpl b/view/tpl/smarty3/delegate.tpl index 7aa85cf39..cbaa8da86 100644 --- a/view/tpl/smarty3/delegate.tpl +++ b/view/tpl/smarty3/delegate.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}}

{{$header}}

{{$desc}}
diff --git a/view/tpl/smarty3/dfrn_req_confirm.tpl b/view/tpl/smarty3/dfrn_req_confirm.tpl index c941a201d..655af22d4 100644 --- a/view/tpl/smarty3/dfrn_req_confirm.tpl +++ b/view/tpl/smarty3/dfrn_req_confirm.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}}

{{$welcome}} diff --git a/view/tpl/smarty3/dfrn_request.tpl b/view/tpl/smarty3/dfrn_request.tpl index b08a0b731..ce7b3eb55 100644 --- a/view/tpl/smarty3/dfrn_request.tpl +++ b/view/tpl/smarty3/dfrn_request.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}}

{{$header}}

diff --git a/view/tpl/smarty3/diasp_dec_hdr.tpl b/view/tpl/smarty3/diasp_dec_hdr.tpl index c3305ecd0..636ff7bd0 100644 --- a/view/tpl/smarty3/diasp_dec_hdr.tpl +++ b/view/tpl/smarty3/diasp_dec_hdr.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} {{$inner_iv}} {{$inner_key}} diff --git a/view/tpl/smarty3/directory_header.tpl b/view/tpl/smarty3/directory_header.tpl index 293e65be2..5d703e2dd 100644 --- a/view/tpl/smarty3/directory_header.tpl +++ b/view/tpl/smarty3/directory_header.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}}

{{$dirlbl}}

{{if $search}} diff --git a/view/tpl/smarty3/directory_item.tpl b/view/tpl/smarty3/directory_item.tpl index ae52646b8..f4bd66d77 100644 --- a/view/tpl/smarty3/directory_item.tpl +++ b/view/tpl/smarty3/directory_item.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}}
diff --git a/view/tpl/smarty3/direntry.tpl b/view/tpl/smarty3/direntry.tpl index c1009efc7..a7d1a3e3a 100644 --- a/view/tpl/smarty3/direntry.tpl +++ b/view/tpl/smarty3/direntry.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}}
diff --git a/view/tpl/smarty3/display-head.tpl b/view/tpl/smarty3/display-head.tpl index 7750b655e..3d4e7e96a 100644 --- a/view/tpl/smarty3/display-head.tpl +++ b/view/tpl/smarty3/display-head.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} diff --git a/view/tpl/smarty3/events-js.tpl b/view/tpl/smarty3/events-js.tpl index 5fa046f5a..c87d20529 100644 --- a/view/tpl/smarty3/events-js.tpl +++ b/view/tpl/smarty3/events-js.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} {{$tabs}}

{{$title}}

diff --git a/view/tpl/smarty3/events.tpl b/view/tpl/smarty3/events.tpl index 45366a77d..48bd82d96 100644 --- a/view/tpl/smarty3/events.tpl +++ b/view/tpl/smarty3/events.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} {{$tabs}}

{{$title}}

diff --git a/view/tpl/smarty3/events_reminder.tpl b/view/tpl/smarty3/events_reminder.tpl index d8e8ceb2a..fd6a1a5c7 100644 --- a/view/tpl/smarty3/events_reminder.tpl +++ b/view/tpl/smarty3/events_reminder.tpl @@ -1,8 +1,3 @@ -{{* - * AUTOMATICALLY GENERATED TEMPLATE - * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN - * - *}} {{if $count}}