bootstrapify rating and connect buttons. position the connect button more prominent right under the profile image
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user