Rating |
".($can_rate ? "
$human_rating
".$this->get_selection_rater_html($rating)."
" : "
$human_rating
")."
|
";
return $html;
}
// public function display_bulk_rater(string $terms)
// {
// global $page;
// $html = "
// ".make_form(make_link("admin/bulk_rate"))."
//
//
//
//
// ";
// $page->add_block(new Block("List Controls", $html, "left"));
// }
public function get_selection_rater_html(String $selected_option, String $id = "rating") {
global $_shm_ratings;
$output = "";
}
public function get_help_html(array $ratings)
{
$output = 'Search for images with one or more possible ratings.
rating:'.$ratings[0]->search_term.'
Returns images with the '.$ratings[0]->name.' rating.
Ratings can be abbreviated to a single letter as well
rating:'.$ratings[0]->code.'
Returns images with the '.$ratings[0]->name.' rating.
If abbreviations are used, multiple ratings can be searched for.
rating:'.$ratings[0]->code.$ratings[1]->code.'
Returns images with the '.$ratings[0]->name.' or '.$ratings[1]->name.' rating.
Available ratings:
Name | Search Term | Abbreviation |
';
foreach ($ratings as $rating) {
$output .= "{$rating->name} | {$rating->search_term} | {$rating->code} |
";
}
$output .= "
";
return $output;
}
}