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 +++++++++++++ mod/page.php | 2 +- view/tpl/smarty3/404.tpl | 5 ----- view/tpl/smarty3/abook_edit.tpl | 5 ----- view/tpl/smarty3/acl_selector.tpl | 5 ----- view/tpl/smarty3/admin_aside.tpl | 5 ----- view/tpl/smarty3/admin_logs.tpl | 5 ----- view/tpl/smarty3/admin_plugins.tpl | 5 ----- view/tpl/smarty3/admin_plugins_details.tpl | 5 ----- view/tpl/smarty3/admin_remoteupdate.tpl | 5 ----- view/tpl/smarty3/admin_site.tpl | 5 ----- view/tpl/smarty3/admin_summary.tpl | 5 ----- view/tpl/smarty3/admin_users.tpl | 5 ----- view/tpl/smarty3/album_edit.tpl | 5 ----- view/tpl/smarty3/api_config_xml.tpl | 5 ----- view/tpl/smarty3/api_friends_xml.tpl | 5 ----- view/tpl/smarty3/api_ratelimit_xml.tpl | 5 ----- view/tpl/smarty3/api_status_xml.tpl | 5 ----- view/tpl/smarty3/api_test_xml.tpl | 5 ----- view/tpl/smarty3/api_timeline_atom.tpl | 5 ----- view/tpl/smarty3/api_timeline_rss.tpl | 5 ----- view/tpl/smarty3/api_timeline_xml.tpl | 5 ----- view/tpl/smarty3/api_user_xml.tpl | 5 ----- view/tpl/smarty3/apps.tpl | 5 ----- view/tpl/smarty3/atom_feed.tpl | 5 ----- view/tpl/smarty3/atom_feed_dfrn.tpl | 5 ----- view/tpl/smarty3/atom_mail.tpl | 5 ----- view/tpl/smarty3/atom_suggest.tpl | 5 ----- view/tpl/smarty3/auto_request.tpl | 5 ----- view/tpl/smarty3/birthdays_reminder.tpl | 5 ----- view/tpl/smarty3/build_query.tpl | 5 ----- view/tpl/smarty3/categories_widget.tpl | 5 ----- view/tpl/smarty3/channel.tpl | 5 ----- view/tpl/smarty3/channels.tpl | 5 ----- view/tpl/smarty3/chanview.tpl | 5 ----- view/tpl/smarty3/comment_item.tpl | 5 ----- view/tpl/smarty3/common_friends.tpl | 5 ----- view/tpl/smarty3/common_tabs.tpl | 5 ----- view/tpl/smarty3/contact_block.tpl | 5 ----- view/tpl/smarty3/contact_edit.tpl | 5 ----- view/tpl/smarty3/contact_head.tpl | 5 ----- view/tpl/smarty3/contact_slider.tpl | 5 ----- view/tpl/smarty3/contact_template.tpl | 5 ----- view/tpl/smarty3/contacts-template.tpl | 5 ----- view/tpl/smarty3/content.tpl | 5 ----- view/tpl/smarty3/conv.tpl | 5 ----- view/tpl/smarty3/conv_frame.tpl | 5 ----- view/tpl/smarty3/conv_item.tpl | 5 ----- view/tpl/smarty3/conversation.tpl | 5 ----- view/tpl/smarty3/convobj.tpl | 5 ----- view/tpl/smarty3/crepair.tpl | 5 ----- view/tpl/smarty3/cropbody.tpl | 5 ----- view/tpl/smarty3/crophead.tpl | 5 ----- view/tpl/smarty3/delegate.tpl | 5 ----- view/tpl/smarty3/dfrn_req_confirm.tpl | 5 ----- view/tpl/smarty3/dfrn_request.tpl | 5 ----- view/tpl/smarty3/diasp_dec_hdr.tpl | 5 ----- view/tpl/smarty3/directory_header.tpl | 5 ----- view/tpl/smarty3/directory_item.tpl | 5 ----- view/tpl/smarty3/direntry.tpl | 5 ----- view/tpl/smarty3/display-head.tpl | 5 ----- view/tpl/smarty3/edpost_head.tpl | 5 ----- view/tpl/smarty3/email_notify_html.tpl | 5 ----- view/tpl/smarty3/email_notify_text.tpl | 5 ----- view/tpl/smarty3/event.tpl | 5 ----- view/tpl/smarty3/event_form.tpl | 5 ----- view/tpl/smarty3/event_head.tpl | 5 ----- view/tpl/smarty3/events-js.tpl | 5 ----- view/tpl/smarty3/events.tpl | 5 ----- view/tpl/smarty3/events_reminder.tpl | 5 ----- view/tpl/smarty3/failed_updates.tpl | 5 ----- view/tpl/smarty3/fake_feed.tpl | 5 ----- view/tpl/smarty3/field.tpl | 5 ----- view/tpl/smarty3/field_acheckbox.tpl | 5 ----- view/tpl/smarty3/field_checkbox.tpl | 5 ----- view/tpl/smarty3/field_combobox.tpl | 5 ----- view/tpl/smarty3/field_custom.tpl | 5 ----- view/tpl/smarty3/field_input.tpl | 5 ----- view/tpl/smarty3/field_intcheckbox.tpl | 5 ----- view/tpl/smarty3/field_openid.tpl | 5 ----- view/tpl/smarty3/field_password.tpl | 5 ----- view/tpl/smarty3/field_radio.tpl | 5 ----- view/tpl/smarty3/field_richtext.tpl | 5 ----- view/tpl/smarty3/field_select.tpl | 5 ----- view/tpl/smarty3/field_select_raw.tpl | 5 ----- view/tpl/smarty3/field_textarea.tpl | 5 ----- view/tpl/smarty3/field_themeselect.tpl | 5 ----- view/tpl/smarty3/field_yesno.tpl | 5 ----- view/tpl/smarty3/fileas_widget.tpl | 5 ----- view/tpl/smarty3/filebrowser.tpl | 5 ----- view/tpl/smarty3/filer_dialog.tpl | 5 ----- view/tpl/smarty3/follow.tpl | 5 ----- view/tpl/smarty3/follow_slap.tpl | 5 ----- view/tpl/smarty3/generic_links_widget.tpl | 5 ----- view/tpl/smarty3/group_drop.tpl | 5 ----- view/tpl/smarty3/group_edit.tpl | 5 ----- view/tpl/smarty3/group_selection.tpl | 5 ----- view/tpl/smarty3/group_side.tpl | 5 ----- view/tpl/smarty3/groupeditor.tpl | 5 ----- view/tpl/smarty3/head.tpl | 5 ----- view/tpl/smarty3/hide_comments.tpl | 5 ----- view/tpl/smarty3/install.tpl | 5 ----- view/tpl/smarty3/install_checks.tpl | 5 ----- view/tpl/smarty3/install_db.tpl | 5 ----- view/tpl/smarty3/install_settings.tpl | 5 ----- view/tpl/smarty3/intros.tpl | 5 ----- view/tpl/smarty3/intros_header.tpl | 5 ----- view/tpl/smarty3/invite.tpl | 5 ----- view/tpl/smarty3/jot-header.tpl | 5 ----- view/tpl/smarty3/jot.tpl | 5 ----- view/tpl/smarty3/jot_geotag.tpl | 5 ----- view/tpl/smarty3/js_strings.tpl | 5 ----- view/tpl/smarty3/lang_selector.tpl | 5 ----- view/tpl/smarty3/like_noshare.tpl | 5 ----- view/tpl/smarty3/login.tpl | 5 ----- view/tpl/smarty3/logout.tpl | 5 ----- view/tpl/smarty3/lostpass.tpl | 5 ----- view/tpl/smarty3/magicsig.tpl | 5 ----- view/tpl/smarty3/mail_conv.tpl | 5 ----- view/tpl/smarty3/mail_display.tpl | 5 ----- view/tpl/smarty3/mail_head.tpl | 5 ----- view/tpl/smarty3/mail_list.tpl | 5 ----- view/tpl/smarty3/main_slider.tpl | 5 ----- view/tpl/smarty3/match.tpl | 5 ----- view/tpl/smarty3/message_side.tpl | 5 ----- view/tpl/smarty3/micropro_img.tpl | 5 ----- view/tpl/smarty3/micropro_txt.tpl | 5 ----- view/tpl/smarty3/moderated_comment.tpl | 5 ----- view/tpl/smarty3/mood_content.tpl | 5 ----- view/tpl/smarty3/msg-header.tpl | 5 ----- view/tpl/smarty3/nav.tpl | 5 ----- view/tpl/smarty3/netfriend.tpl | 5 ----- view/tpl/smarty3/new_channel.tpl | 5 ----- view/tpl/smarty3/nogroup-template.tpl | 5 ----- view/tpl/smarty3/notifications.tpl | 5 ----- view/tpl/smarty3/notifications_comments_item.tpl | 5 ----- view/tpl/smarty3/notifications_dislikes_item.tpl | 5 ----- view/tpl/smarty3/notifications_friends_item.tpl | 5 ----- view/tpl/smarty3/notifications_likes_item.tpl | 5 ----- view/tpl/smarty3/notifications_network_item.tpl | 5 ----- view/tpl/smarty3/notifications_posts_item.tpl | 5 ----- view/tpl/smarty3/notify.tpl | 5 ----- view/tpl/smarty3/oauth_authorize.tpl | 5 ----- view/tpl/smarty3/oauth_authorize_done.tpl | 5 ----- view/tpl/smarty3/oembed_video.tpl | 5 ----- view/tpl/smarty3/oexchange_xrd.tpl | 5 ----- view/tpl/smarty3/opensearch.tpl | 5 ----- view/tpl/smarty3/pagetypes.tpl | 5 ----- view/tpl/smarty3/peoplefind.tpl | 5 ----- view/tpl/smarty3/photo_album.tpl | 5 ----- view/tpl/smarty3/photo_drop.tpl | 5 ----- view/tpl/smarty3/photo_edit.tpl | 5 ----- view/tpl/smarty3/photo_item.tpl | 5 ----- view/tpl/smarty3/photo_top.tpl | 5 ----- view/tpl/smarty3/photo_view.tpl | 5 ----- view/tpl/smarty3/photos_recent.tpl | 5 ----- view/tpl/smarty3/photos_upload.tpl | 5 ----- view/tpl/smarty3/poco_entry_xml.tpl | 5 ----- view/tpl/smarty3/poco_xml.tpl | 5 ----- view/tpl/smarty3/poke_content.tpl | 5 ----- view/tpl/smarty3/posted_date_widget.tpl | 5 ----- view/tpl/smarty3/profed_head.tpl | 5 ----- view/tpl/smarty3/profile-hide-friends.tpl | 5 ----- view/tpl/smarty3/profile-hide-wall.tpl | 5 ----- view/tpl/smarty3/profile-in-directory.tpl | 5 ----- view/tpl/smarty3/profile-in-netdir.tpl | 5 ----- view/tpl/smarty3/profile_advanced.tpl | 5 ----- view/tpl/smarty3/profile_edit.tpl | 5 ----- view/tpl/smarty3/profile_edlink.tpl | 5 ----- view/tpl/smarty3/profile_entry.tpl | 5 ----- view/tpl/smarty3/profile_listing_header.tpl | 5 ----- view/tpl/smarty3/profile_photo.tpl | 5 ----- view/tpl/smarty3/profile_publish.tpl | 5 ----- view/tpl/smarty3/profile_vcard.tpl | 5 ----- view/tpl/smarty3/prv_message.tpl | 5 ----- view/tpl/smarty3/pwdreset.tpl | 5 ----- view/tpl/smarty3/register.tpl | 5 ----- view/tpl/smarty3/remote_friends_common.tpl | 5 ----- view/tpl/smarty3/removeme.tpl | 5 ----- view/tpl/smarty3/saved_searches_aside.tpl | 5 ----- view/tpl/smarty3/search_item.tpl | 5 ----- view/tpl/smarty3/settings.tpl | 5 ----- view/tpl/smarty3/settings_account.tpl | 5 ----- view/tpl/smarty3/settings_addons.tpl | 5 ----- view/tpl/smarty3/settings_connectors.tpl | 5 ----- view/tpl/smarty3/settings_display.tpl | 5 ----- view/tpl/smarty3/settings_features.tpl | 5 ----- view/tpl/smarty3/settings_nick_set.tpl | 5 ----- view/tpl/smarty3/settings_nick_subdir.tpl | 5 ----- view/tpl/smarty3/settings_oauth.tpl | 5 ----- view/tpl/smarty3/settings_oauth_edit.tpl | 5 ----- view/tpl/smarty3/suggest_friends.tpl | 5 ----- view/tpl/smarty3/suggestions.tpl | 5 ----- view/tpl/smarty3/tag_slap.tpl | 5 ----- view/tpl/smarty3/threaded_conversation.tpl | 5 ----- view/tpl/smarty3/toggle_mobile_footer.tpl | 5 ----- view/tpl/smarty3/viewcontact_template.tpl | 5 ----- view/tpl/smarty3/wall_item.tpl | 5 ----- view/tpl/smarty3/wall_thread.tpl | 5 ----- view/tpl/smarty3/wallmessage.tpl | 5 ----- view/tpl/smarty3/wallmsg-header.tpl | 5 ----- view/tpl/smarty3/wallwall_item.tpl | 5 ----- view/tpl/smarty3/wallwall_thread.tpl | 5 ----- view/tpl/smarty3/xchan_vcard.tpl | 5 ----- view/tpl/smarty3/xrd_host.tpl | 5 ----- view/tpl/smarty3/xrd_person.tpl | 5 ----- 206 files changed, 14 insertions(+), 1021 deletions(-) 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}}