From e37c1ed981056f5a96898b2436b3db70629c5e15 Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Sun, 21 Feb 2016 20:00:09 +0100 Subject: Revert pubsites.php. There seems something wrong. Let me troubleshoot that first. --- mod/pubsites.php | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'mod') diff --git a/mod/pubsites.php b/mod/pubsites.php index 51744eb1b..ae8601366 100644 --- a/mod/pubsites.php +++ b/mod/pubsites.php @@ -15,29 +15,22 @@ function pubsites_content(&$a) { $o .= '
'; - $o .= '

' . t('Public Hubs') . '

'; + $o .= '

' . t('Public Sites') . '

'; $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 sites allow public registration for the $Projectname network. All sites 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 provider links may provide additional details.') . '
' . EOL; $ret = z_fetch_url($url); if($ret['success']) { $j = json_decode($ret['body'],true); if($j) { - $o .= ''; + $rate_meta = ((local_channel()) ? '' : ''); + $o .= '
' . t('Hub URL') . '' . t('Access Type') . ' / ' . '
' . t('Registration Policy') . '
' . t('Project') . '' . t('Ratings') . '
' . t('Rate this hub') . '
' . $rate_meta . ''; if($j['sites']) { foreach($j['sites'] as $jj) { $host = strtolower(substr($jj['url'],strpos($jj['url'],'://')+3)); $rate_links = ((local_channel()) ? '' : ''); - $location = ''; - if(!empty($jj['location'])) { - $location = '

' . $jj['location'] . '

'; - } - else { - $location = '
 '; - } - $urltext = str_replace(array('https://'), '', $jj['url']); - $o .= '' . $rate_links . ''; + $o .= '' . $rate_links . ''; } } -- cgit v1.2.3
' . t('Site URL') . '' . t('Access Type') . '' . t('Registration Policy') . '' . t('Location') . '' . t('Project') . '' . t('View hub ratings') . '
' . t('Rate') . '
' . $urltext . '' . $location . '' . $jj['access'] . ' / ' . $jj['register'] . '' . $jj['project'] . ' ' . t('View') . '
' . '' . $jj['url'] . '' . '' . $jj['access'] . '' . $jj['register'] . '' . $jj['location'] . '' . $jj['project'] . ' ' . t('View ratings') . '