diff --git a/include/widgets.php b/include/widgets.php
index d457db07d..fbbc74224 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -962,4 +962,11 @@ function widget_rating($arr) {
return $o;
+}
+
+// used by site ratings pages to provide a return link
+function widget_pubsites() {
+ if(get_app()->poi)
+ return;
+ return '
';
}
\ No newline at end of file
diff --git a/mod/pubsites.php b/mod/pubsites.php
index ddd7baf92..ff3854492 100644
--- a/mod/pubsites.php
+++ b/mod/pubsites.php
@@ -22,13 +22,13 @@ function pubsites_content(&$a) {
if($ret['success']) {
$j = json_decode($ret['body'],true);
if($j) {
- $rate_meta = ((local_channel()) ? '' . t('Rate this hub') . ' | ' . t('View hub ratings') . ' | ' : '');
- $o .= '| ' . t('Site URL') . ' | ' . t('Access Type') . ' | ' . t('Registration Policy') . ' | ' . t('Location') . ' | ' . $rate_meta . '
';
+ $rate_meta = ((local_channel()) ? '' . t('Rate this hub') . ' | ' : '');
+ $o .= '| ' . t('Site URL') . ' | ' . t('Access Type') . ' | ' . t('Registration Policy') . ' | ' . t('Location') . ' | ' . t('View hub ratings') . ' | ' . $rate_meta . '
';
if($j['sites']) {
foreach($j['sites'] as $jj) {
$host = strtolower(substr($jj['url'],strpos($jj['url'],'://')+3));
- $rate_links = ((local_channel()) ? ' ' . t('Rate') . ' | ' . t('View ratings') . ' | ' : '');
- $o .= '| ' . '' . $jj['url'] . '' . ' | ' . $jj['access'] . ' | ' . $jj['register'] . ' | ' . $jj['location'] . ' | ' . $rate_links . '
';
+ $rate_links = ((local_channel()) ? ' ' . t('Rate') . ' | ' : '');
+ $o .= '| ' . '' . $jj['url'] . '' . ' | ' . $jj['access'] . ' | ' . $jj['register'] . ' | ' . $jj['location'] . ' | ' . t('View ratings') . ' | ' . $rate_links . '
';
}
}
diff --git a/view/pdl/mod_ratings.pdl b/view/pdl/mod_ratings.pdl
index 0b6e32283..df1486c9b 100644
--- a/view/pdl/mod_ratings.pdl
+++ b/view/pdl/mod_ratings.pdl
@@ -1,4 +1,5 @@
[region=aside]
+[widget=pubsites][/widget]
[widget=vcard][/widget]
[widget=rating][/widget]
[widget=suggestions][/widget]