just tinkering and trying a few things - don't get upset. It can all be reverted it it sucks. Freedom's just another word for "nothin' left to lose" and I'm not sure it's possible to create a UI that's hated more than Friendica. So that gives us plenty of artististic license to explore some different directions and see if they lead to anything interesting.
This commit is contained in:
@@ -90,6 +90,11 @@ class Conversation extends BaseObject {
|
||||
return $this->profile_owner;
|
||||
}
|
||||
|
||||
public function set_profile_owner($uid) {
|
||||
$this->profile_owner = $uid;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a thread to the conversation
|
||||
*
|
||||
|
||||
@@ -658,6 +658,12 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
|
||||
|
||||
$conv = new Conversation($mode, $preview);
|
||||
|
||||
// In the display mode we don't have a profile owner.
|
||||
|
||||
if($mode === 'display' && $items)
|
||||
$conv->set_profile_owner($items[0]['uid']);
|
||||
|
||||
|
||||
// get all the topmost parents
|
||||
// this shouldn't be needed, as we should have only them in our array
|
||||
// But for now, this array respects the old style, just in case
|
||||
|
||||
@@ -71,7 +71,7 @@ EOT;
|
||||
$nav['logout'] = Array('logout',t('Logout'), "", t('End this session'));
|
||||
|
||||
// user menu
|
||||
$nav['usermenu'][] = Array('channel/' . $channel['channel_address'], t('Status'), "", t('Your posts and conversations'));
|
||||
$nav['usermenu'][] = Array('channel/' . $channel['channel_address'], t('Home'), "", t('Your posts and conversations'));
|
||||
$nav['usermenu'][] = Array('profile/' . $channel['channel_address'], t('View Profile'), "", t('Your profile page'));
|
||||
if(feature_enabled(local_user(),'multi_profiles'))
|
||||
$nav['usermenu'][] = Array('profiles', t('Edit Profiles'),"", t('Manage/Edit Profiles'));
|
||||
@@ -128,7 +128,7 @@ EOT;
|
||||
$nav['search'] = array('search', t('Search'), "", t('Search site content'));
|
||||
|
||||
|
||||
$nav['directory'] = array('directory', t('Channel Directory'), "", t('Channel Locator'));
|
||||
$nav['directory'] = array('directory', t('Directory'), "", t('Channel Locator'));
|
||||
|
||||
|
||||
/**
|
||||
@@ -139,24 +139,24 @@ EOT;
|
||||
|
||||
if(local_user()) {
|
||||
|
||||
$nav['network'] = array('network', t('Network'), "", t('Conversations from your friends'));
|
||||
$nav['network']['all']=array('notifications/network', t('See all network notifications'), "", "");
|
||||
$nav['network']['mark'] = array('', t('Mark all network notifications seen'), '','');
|
||||
$nav['network'] = array('network', t('Matrix'), "", t('Conversations from your grid'));
|
||||
$nav['network']['all']=array('notifications/network', t('See all matrix notifications'), "", "");
|
||||
$nav['network']['mark'] = array('', t('Mark all matrix notifications seen'), '','');
|
||||
|
||||
$nav['home'] = array('channel/' . $channel['channel_address'], t('Home'), "", t('Your posts and conversations'));
|
||||
$nav['home']['all']=array('notifications/channel', t('See all channel notifications'), "", "");
|
||||
$nav['home']['mark'] = array('', t('Mark all channel notifications seen'), '','');
|
||||
|
||||
|
||||
$nav['intros'] = array('connections/pending', t('Introductions'), "", t('New Connections'));
|
||||
$nav['intros'] = array('connections/pending', t('Intros'), "", t('New Connections'));
|
||||
$nav['intros']['all']=array('intro', t('See all channel introductions'), "", "");
|
||||
|
||||
|
||||
$nav['notifications'] = array('notifications/system', t('Notifications'), "", t('Notifications'));
|
||||
$nav['notifications'] = array('notifications/system', t('Notices'), "", t('Notifications'));
|
||||
$nav['notifications']['all']=array('notifications/system', t('See all notifications'), "", "");
|
||||
$nav['notifications']['mark'] = array('', t('Mark all system notifications seen'), '','');
|
||||
|
||||
$nav['messages'] = array('message', t('Messages'), "", t('Private mail'));
|
||||
$nav['messages'] = array('message', t('Mail'), "", t('Private mail'));
|
||||
$nav['messages']['all']=array('message', t('See all private messages'), "", "");
|
||||
$nav['messages']['mark'] = array('', t('Mark all private messages seen'), '','');
|
||||
$nav['messages']['inbox'] = array('message', t('Inbox'), "", t('Inbox'));
|
||||
|
||||
Reference in New Issue
Block a user