From 49882f2be4ef9d1b28c72f8101fe9b15d7176ff6 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 Jan 2014 19:00:06 -0800 Subject: add cloud link to profile_tabs and Comanchify the sucker --- include/conversation.php | 9 +++++++++ mod/cloud.php | 15 +++++++++++++++ view/pdl/mod_cloud.pdl | 3 +++ 3 files changed, 27 insertions(+) create mode 100644 view/pdl/mod_cloud.pdl diff --git a/include/conversation.php b/include/conversation.php index 5977b65e8..a9bf69a3e 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -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', + ), + ); diff --git a/mod/cloud.php b/mod/cloud.php index a72d0f108..29218f84e 100644 --- a/mod/cloud.php +++ b/mod/cloud.php @@ -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'] .= '' . "\r\n" ; + + if($which) + profile_load($a,$which,$profile); + + + + $auth = new RedBasicAuth(); $ob_hash = get_observer_hash(); diff --git a/view/pdl/mod_cloud.pdl b/view/pdl/mod_cloud.pdl new file mode 100644 index 000000000..6b1d2a15e --- /dev/null +++ b/view/pdl/mod_cloud.pdl @@ -0,0 +1,3 @@ +[region=aside] +[widget=profile][/widget] +[/region] -- cgit v1.2.3