diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-01-21 21:40:29 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-01-21 21:40:29 -0500 |
commit | b368e0a1f9715c6360748e9107f47bb5b117f04b (patch) | |
tree | dfc3d91e4fad927c12ddb6fcedf5cacc32a402bb /include/widgets.php | |
parent | dff2cdc650cd3e0fc706640c01492fce2d9640f7 (diff) | |
parent | dcaef756e7f9531bc4d1353b04ff44736032ffda (diff) | |
download | volse-hubzilla-b368e0a1f9715c6360748e9107f47bb5b117f04b.tar.gz volse-hubzilla-b368e0a1f9715c6360748e9107f47bb5b117f04b.tar.bz2 volse-hubzilla-b368e0a1f9715c6360748e9107f47bb5b117f04b.zip |
Merge branch 'master' of https://github.com/redmatrix/hubzilla into activitystreams
Diffstat (limited to 'include/widgets.php')
-rw-r--r-- | include/widgets.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/widgets.php b/include/widgets.php index 60605cb51..8e8f67ae6 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -1110,16 +1110,18 @@ function widget_rating($arr) { } + + $o = '<div class="widget">'; + $o .= '<h3>' . t('Rating Tools') . '</h3>'; + if((($remote) || (local_channel())) && (! $self)) { - $o = '<div class="widget rateme">'; if($remote) - $o .= '<a class="rateme" href="' . $url . '"><i class="icon-pencil"></i> ' . t('Rate Me') . '</a>'; + $o .= '<a class="btn btn-block btn-primary btn-sm" 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>'; - $o .= '</div>'; + $o .= '<div class="btn btn-block btn-primary btn-sm" onclick="doRatings(\'' . $hash . '\'); return false;"><i class="icon-pencil"></i> ' . t('Rate Me') . '</div>'; } - $o .= '<div class="widget rateme"><a class="rateme" href="ratings/' . $hash . '"><i class="icon-eye-open"></i> ' . t('View Ratings') . '</a>'; + $o .= '<a class="btn btn-block btn-default btn-sm" href="ratings/' . $hash . '"><i class="icon-eye-open"></i> ' . t('View Ratings') . '</a>'; $o .= '</div>'; return $o; |