aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-09 19:00:06 -0800
committerfriendica <info@friendica.com>2014-01-09 19:00:06 -0800
commit49882f2be4ef9d1b28c72f8101fe9b15d7176ff6 (patch)
tree6a6c180ed37609a191a14e0657639388a21c2c93
parent170d4c9c68486d875f3b7f9574bb0b00524b5f33 (diff)
downloadvolse-hubzilla-49882f2be4ef9d1b28c72f8101fe9b15d7176ff6.tar.gz
volse-hubzilla-49882f2be4ef9d1b28c72f8101fe9b15d7176ff6.tar.bz2
volse-hubzilla-49882f2be4ef9d1b28c72f8101fe9b15d7176ff6.zip
add cloud link to profile_tabs and Comanchify the sucker
-rw-r--r--include/conversation.php9
-rw-r--r--mod/cloud.php15
-rw-r--r--view/pdl/mod_cloud.pdl3
3 files changed, 27 insertions, 0 deletions
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'] .= '<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();
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]