aboutsummaryrefslogtreecommitdiffstats
path: root/mod/pubsites.php
diff options
context:
space:
mode:
authorjeroenpraat <jeroenpraat@xs4all.nl>2016-02-22 19:10:01 +0100
committerjeroenpraat <jeroenpraat@xs4all.nl>2016-02-22 19:10:01 +0100
commit502fed198de69add4954b988983726e9442825df (patch)
treee710fba607b8e7b824f5c16d39d0531eaa5e10c2 /mod/pubsites.php
parent411c510778d14b14b101dcbb0ecc1453bd294d4b (diff)
downloadvolse-hubzilla-502fed198de69add4954b988983726e9442825df.tar.gz
volse-hubzilla-502fed198de69add4954b988983726e9442825df.tar.bz2
volse-hubzilla-502fed198de69add4954b988983726e9442825df.zip
only hubs from local configured project on pubsites (hubzilla by default). as agreed with Mike.
Diffstat (limited to 'mod/pubsites.php')
-rw-r--r--mod/pubsites.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/mod/pubsites.php b/mod/pubsites.php
index f9219ea46..e20db2ce5 100644
--- a/mod/pubsites.php
+++ b/mod/pubsites.php
@@ -27,6 +27,8 @@ function pubsites_content(&$a) {
$o .= '<table class="table table-striped table-hover"><tr><td>' . t('Hub URL') . '</td><td>' . t('Access Type') . ' / ' . '<br />' . t('Registration Policy') . '</td><td>' . t('Project') . '</td><td colspan="2">' . t('Ratings') . '</td></tr>';
if($j['sites']) {
foreach($j['sites'] as $jj) {
+ if($jj['project'] !== Zotlabs\Project\System::get_platform_name())
+ continue;
$host = strtolower(substr($jj['url'],strpos($jj['url'],'://')+3));
$rate_links = ((local_channel()) ? '<td><a href="rate?f=&target=' . $host . '" class="btn-btn-default"><i class="icon-check"></i> ' . t('Rate') . '</a></td>' : '');
$location = '';
@@ -37,12 +39,7 @@ function pubsites_content(&$a) {
$location = '<br />&nbsp;';
}
$urltext = str_replace(array('https://'), '', $jj['url']);
- if($jj['project'] == 'redmatrix' || $jj['project'] == '' ) {
- $o .= '';
- }
- else {
$o .= '<tr><td><a href="'. (($jj['sellpage']) ? $jj['sellpage'] : $jj['url'] . '/register' ) . '" ><i class="icon-link"></i> ' . $urltext . '</a>' . $location . '</td><td>' . $jj['access'] . ' / ' . $jj['register'] . '</td><td>' . $jj['project'] . '</td><td><a href="ratings/' . $host . '" class="btn-btn-default"><i class="icon-eye-open"></i> ' . t('View') . '</a></td>' . $rate_links . '</tr>';
- }
}
}