lite/danbooru themes now show rating in statistics box
This commit is contained in:
parent
5a2326614a
commit
602f76da53
@ -38,6 +38,11 @@ class CustomViewImageTheme extends ViewImageTheme {
|
|||||||
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!is_null($image->rating)) {
|
||||||
|
$h_rating = Ratings::rating_to_human($image->rating);
|
||||||
|
$html .= "<br>Rating: $h_rating";
|
||||||
|
}
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,11 @@ class CustomViewImageTheme extends ViewImageTheme {
|
|||||||
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
$html .= "<br>Source: <a href='$h_source'>link</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!is_null($image->rating)) {
|
||||||
|
$h_rating = Ratings::rating_to_human($image->rating);
|
||||||
|
$html .= "<br>Rating: $h_rating";
|
||||||
|
}
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user