30 lines
900 B
PHP
30 lines
900 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shimmie2;
|
|
|
|
class RatingsInfo extends ExtensionInfo
|
|
{
|
|
public const KEY = "rating";
|
|
|
|
public string $key = self::KEY;
|
|
public string $name = "Post Ratings";
|
|
public string $url = self::SHIMMIE_URL;
|
|
public array $authors = self::SHISH_AUTHOR;
|
|
public string $license = self::LICENSE_GPLV2;
|
|
public ExtensionCategory $category = ExtensionCategory::METADATA;
|
|
public string $description = "Allow users to rate images \"safe\", \"questionable\" or \"explicit\"";
|
|
public ?string $documentation =
|
|
"This shimmie extension provides filter:
|
|
<ul>
|
|
<li>rating = (safe|questionable|explicit|unknown)
|
|
<ul>
|
|
<li>rating=s -- safe images
|
|
<li>rating=q -- questionable images
|
|
<li>rating=e -- explicit images
|
|
<li>rating=u -- Unknown rating
|
|
<li>rating=sq -- safe and questionable images
|
|
</ul>
|
|
</ul>";
|
|
}
|