admin star rating calc
This commit is contained in:
parent
2705bc47b8
commit
d135a2158c
|
@ -276,7 +276,7 @@ function woocommerce_dashboard_recent_reviews() {
|
|||
$rating = get_comment_meta( $comment->comment_ID, 'rating', true );
|
||||
|
||||
echo '<div class="star-rating" title="' . $rating . '">
|
||||
<span style="width:'. ( $rating * 10 ) . 'px">' . $rating . ' ' . __( 'out of 5', 'woocommerce' ) . '</span></div>';
|
||||
<span style="width:'. ( $rating * 20 ) . '%">' . $rating . ' ' . __( 'out of 5', 'woocommerce' ) . '</span></div>';
|
||||
|
||||
echo '<h4 class="meta"><a href="' . get_permalink( $comment->ID ) . '#comment-' . absint( $comment->comment_ID ) .'">' . esc_html__( $comment->post_title ) . '</a> reviewed by ' . esc_html( $comment->comment_author ) .'</h4>';
|
||||
echo '<blockquote>' . wp_kses_data( $comment->comment_excerpt ) . ' [...]</blockquote></li>';
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1439,7 +1439,6 @@ ul.recent-orders, ul.stock_list {
|
|||
overflow: hidden;
|
||||
position: relative;
|
||||
height: 1.5em;
|
||||
font-size: .9em;
|
||||
line-height: 1.5;
|
||||
margin-left:.5em;
|
||||
width: 5.4em;
|
||||
|
|
Loading…
Reference in New Issue