aboutsummaryrefslogtreecommitdiffstats
path: root/mod/channel.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-07 13:40:58 -0800
committerfriendica <info@friendica.com>2013-01-07 13:40:58 -0800
commitf04ce3b093c03fc343fce5b93e6ec6c7fd1ab214 (patch)
treef26e330f8dbeba32786e29d9634c6cc17f0c28a8 /mod/channel.php
parent0001cc6fd38aaefa9bcabd1458b05ece855f3c67 (diff)
downloadvolse-hubzilla-f04ce3b093c03fc343fce5b93e6ec6c7fd1ab214.tar.gz
volse-hubzilla-f04ce3b093c03fc343fce5b93e6ec6c7fd1ab214.tar.bz2
volse-hubzilla-f04ce3b093c03fc343fce5b93e6ec6c7fd1ab214.zip
more work on notification system, fix a couple of minor issues from smarty conversion
Diffstat (limited to 'mod/channel.php')
-rw-r--r--mod/channel.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/mod/channel.php b/mod/channel.php
index 096c76ae2..4510ad61d 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -32,13 +32,20 @@ function channel_aside(&$a) {
require_once('include/contact_widgets.php');
require_once('include/items.php');
- profile_aside($a);
-
- $cat = ((x($_REQUEST,'cat')) ? htmlspecialchars($_REQUEST['cat']) : '');
+ if(! $a->profile['profile_uid'])
+ return;
- $a->set_widget('archive',posted_date_widget($a->get_baseurl(true) . '/channel/' . $a->profile['nickname'],$a->profile['profile_uid'],true));
- $a->set_widget('categories',categories_widget($a->get_baseurl(true) . '/channel/' . $a->profile['nickname'],$cat));
+ $channel_display = get_pconfig($a->profile['profile_uid'],'system','channel_format');
+ if(! $channel_display)
+ profile_create_sidebar($a);
+ if($channel_display === 'full')
+ $a->page['template'] = 'full';
+ else {
+ $cat = ((x($_REQUEST,'cat')) ? htmlspecialchars($_REQUEST['cat']) : '');
+ $a->set_widget('archive',posted_date_widget($a->get_baseurl(true) . '/channel/' . $a->profile['channel_address'],$a->profile['profile_uid'],true));
+ $a->set_widget('categories',categories_widget($a->get_baseurl(true) . '/channel/' . $a->profile['channel_address'],$cat));
+ }
}