aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-04 18:18:04 -0800
committerfriendica <info@friendica.com>2015-02-04 18:18:04 -0800
commit6e84dbe493a660b391c519c331aaa79878adf933 (patch)
treeaf2f42404ce579c8fe32288ed8b25e8fb4cca21e
parent24b198a50c54736ad137a342c30814033b27eff7 (diff)
downloadvolse-hubzilla-6e84dbe493a660b391c519c331aaa79878adf933.tar.gz
volse-hubzilla-6e84dbe493a660b391c519c331aaa79878adf933.tar.bz2
volse-hubzilla-6e84dbe493a660b391c519c331aaa79878adf933.zip
add 'view ratings' to the widget. It's actually two stacked widgets rather than a widget with two entries. That's the only way we can keep the theming consistent with the rconnect button.
-rw-r--r--include/widgets.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 5eda9008b..a94bf03dc 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -951,9 +951,13 @@ function widget_rating($arr) {
$o = '<div class="widget rateme">';
if($remote)
- $o .= '<a class="rateme" href="' . $url . '"><i class="icon-pencil"></i> ' . t('Rate Me') . '</a></div>';
+ $o .= '<a class="rateme" href="' . $url . '"><i class="icon-pencil"></i> ' . t('Rate Me') . '</a>';
else
- $o .= '<div class="rateme fakelink" onclick="doRatings(\'' . $hash . '\'); return false;"><i class="icon-pencil"></i> ' . t('Rate Me') . '</div></div>';
+ $o .= '<div class="rateme fakelink" onclick="doRatings(\'' . $hash . '\'); return false;"><i class="icon-pencil"></i> ' . t('Rate Me') . '</div>';
+
+ $o .= '</div><div class="widget rateme"><a class="rateme" href="ratings/' . $hash . '"><i class="icon-eye-open"></i> ' . t('View Ratings') . '</a>';
+ $o .= '</div>';
+
return $o;
} \ No newline at end of file