This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/random_image/info.php

29 lines
1 KiB
PHP
Raw Normal View History

2021-12-14 18:32:47 +00:00
<?php
declare(strict_types=1);
class RandomImageInfo extends ExtensionInfo
{
public const KEY = "random_image";
public string $key = self::KEY;
public string $name = "Random Post";
public string $url = self::SHIMMIE_URL;
public array $authors = self::SHISH_AUTHOR;
public string $license = self::LICENSE_GPLV2;
public string $description = "Do things with a random post";
public ?string $documentation =
2020-10-26 15:17:15 +00:00
"<b>Viewing a random post</b>
<br>Visit <code>/random_image/view</code>
2020-10-26 15:17:15 +00:00
<p><b>Downloading a random post</b>
<br>Link to <code>/random_image/download</code>. This will give
2020-10-26 15:17:15 +00:00
the raw data for a post (no HTML). This is useful so that you
can set your desktop wallpaper to be the download URL, refreshed
every couple of hours.
2020-10-26 15:17:15 +00:00
<p><b>Getting a random post from a subset</b>
<br>Adding a slash and some search terms will get a random post
from those results. This can be useful if you want a specific size
2020-10-26 15:17:15 +00:00
of random post, or from a category. You could link to
<code>/random_image/download/size=1024x768+cute</code>";
}