aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-21 02:21:44 -0700
committerfriendica <info@friendica.com>2013-03-21 02:21:44 -0700
commit4b22c6e531739d96fbe9c78f629aa34c35acb821 (patch)
tree4b114cb5d87fd1f081d64dc4105967862878c899 /boot.php
parent9d6a4093baf805891d03eca871c6e3b5ff66eec3 (diff)
downloadvolse-hubzilla-4b22c6e531739d96fbe9c78f629aa34c35acb821.tar.gz
volse-hubzilla-4b22c6e531739d96fbe9c78f629aa34c35acb821.tar.bz2
volse-hubzilla-4b22c6e531739d96fbe9c78f629aa34c35acb821.zip
update
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php30
1 files changed, 19 insertions, 11 deletions
diff --git a/boot.php b/boot.php
index d424a44d7..576872153 100644
--- a/boot.php
+++ b/boot.php
@@ -1923,37 +1923,45 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
$tabs = array(
array(
- 'label'=>t('Status'),
- 'url' => $url,
- 'sel' => ((argv(0)=='channel')?'active':''),
+ 'label' => t('Channel'),
+ 'url' => $url,
+ 'sel' => ((argv(0) == 'channel') ? 'active' : ''),
'title' => t('Status Messages and Posts'),
- 'id' => 'status-tab',
+ 'id' => 'status-tab',
),
array(
- 'label' => t('Profile'),
+ 'label' => t('About'),
'url' => $pr,
- 'sel' => ((argv(0)=='profile')?'active':''),
+ 'sel' => ((argv(0) == 'profile') ? 'active' : ''),
'title' => t('Profile Details'),
- 'id' => 'profile-tab',
+ 'id' => 'profile-tab',
),
array(
'label' => t('Photos'),
'url' => $a->get_baseurl() . '/photos/' . $nickname,
- 'sel' => ((argv(0)=='photos')?'active':''),
+ 'sel' => ((argv(0) == 'photos') ? 'active' : ''),
'title' => t('Photo Albums'),
- 'id' => 'photo-tab',
+ 'id' => 'photo-tab',
),
);
+
if ($is_owner){
$tabs[] = array(
'label' => t('Events'),
'url' => $a->get_baseurl() . '/events',
- 'sel' =>((argv(0)=='events')?'active':''),
+ 'sel' => ((argv(0) == 'events') ? 'active' : ''),
'title' => t('Events and Calendar'),
- 'id' => 'events-tab',
+ 'id' => 'events-tab',
);
}
+ else {
+ // FIXME
+ // we probably need a listing of events that were created by
+ // this channel and are visible to the observer
+
+
+ }
$arr = array('is_owner' => $is_owner, 'nickname' => $nickname, 'tab' => (($tab) ? $tab : false), 'tabs' => $tabs);