add cloud link to profile_tabs and Comanchify the sucker
This commit is contained in:
parent
170d4c9c68
commit
49882f2be4
@ -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',
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
@ -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
3
view/pdl/mod_cloud.pdl
Normal file
@ -0,0 +1,3 @@
|
||||
[region=aside]
|
||||
[widget=profile][/widget]
|
||||
[/region]
|
Reference in New Issue
Block a user