mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-24 15:43:42 +00:00
provide optional sitewide channel list
This commit is contained in:
parent
bda43f7315
commit
3b2cf61a55
2 changed files with 5 additions and 1 deletions
BIN
irc.tgz
BIN
irc.tgz
Binary file not shown.
|
@ -36,7 +36,11 @@ function irc_content(&$a) {
|
||||||
$baseurl = $a->get_baseurl() . '/addon/irc';
|
$baseurl = $a->get_baseurl() . '/addon/irc';
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
||||||
$chats = array('friendica','chat','chatback','hottub','ircbar','dateroom','teentalk');
|
$sitechats = get_config('irc','channels');
|
||||||
|
if($sitechats)
|
||||||
|
$chats = explode(',',$sitechats);
|
||||||
|
else
|
||||||
|
$chats = array('friendica','chat','chatback','hottub','ircbar','dateroom','teentalk');
|
||||||
|
|
||||||
|
|
||||||
$a->page['aside'] .= '<div class="widget"><h3>' . t('Popular Channels') . '</h3><ul>';
|
$a->page['aside'] .= '<div class="widget"><h3>' . t('Popular Channels') . '</h3><ul>';
|
||||||
|
|
Loading…
Reference in a new issue