From f535d438b26795abec9675c22ba8083855e9a15e Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Mon, 22 Feb 2016 03:03:32 +0100 Subject: I don't think we need redmatrix hubs (or hubs without no project name) in this list. The other way around (hubzilla in redmatrix pubsites) is no problem I think. If not agreed, please revert. --- mod/pubsites.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mod/pubsites.php b/mod/pubsites.php index f401e301d..f9219ea46 100644 --- a/mod/pubsites.php +++ b/mod/pubsites.php @@ -18,7 +18,7 @@ function pubsites_content(&$a) { $o .= '

' . t('Public Hubs') . '

'; $o .= '
' . - t('The listed hubs allow public registration for the $Projectname network. All hubs in the network are interlinked so membership on any of them conveys membership in the network as a whole. Some sites may require subscription or provide tiered service plans. The hub may provide additional details.') . '
' . EOL; + t('The listed hubs allow public registration for the $Projectname network. All hubs in the network are interlinked so membership on any of them conveys membership in the network as a whole. Some hubs may require subscription or provide tiered service plans. The hub itself may provide additional details.') . '
' . EOL; $ret = z_fetch_url($url); if($ret['success']) { @@ -37,7 +37,12 @@ function pubsites_content(&$a) { $location = '
 '; } $urltext = str_replace(array('https://'), '', $jj['url']); + if($jj['project'] == 'redmatrix' || $jj['project'] == '' ) { + $o .= ''; + } + else { $o .= ' ' . $urltext . '' . $location . '' . $jj['access'] . ' / ' . $jj['register'] . '' . $jj['project'] . ' ' . t('View') . '' . $rate_links . ''; + } } } -- cgit v1.2.3