add cloud link to profile_tabs and Comanchify the sucker

This commit is contained in:
friendica 2014-01-09 19:00:06 -08:00
parent 170d4c9c68
commit 49882f2be4
3 changed files with 27 additions and 0 deletions

View File

@ -1465,6 +1465,15 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
'title' => t('Photo Albums'),
'id' => 'photo-tab',
),
array(
'label' => t('Files'),
'url' => $a->get_baseurl() . '/cloud/' . $nickname,
'sel' => ((argv(0) == 'cloud') ? 'active' : ''),
'title' => t('Files and Storage'),
'id' => 'files-tab',
),
);

View File

@ -32,6 +32,21 @@ function cloud_init(&$a) {
require_once('include/reddav.php');
$which = null;
if(argc() > 1)
$which = argv(1);
$profile = 0;
$channel = $a->get_channel();
$a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . $a->get_baseurl() . '/feed/' . $which .'" />' . "\r\n" ;
if($which)
profile_load($a,$which,$profile);
$auth = new RedBasicAuth();
$ob_hash = get_observer_hash();

3
view/pdl/mod_cloud.pdl Normal file
View File

@ -0,0 +1,3 @@
[region=aside]
[widget=profile][/widget]
[/region]