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/blocks/info.php
2024-08-31 17:06:39 +01:00

26 lines
1,008 B
PHP

<?php
declare(strict_types=1);
namespace Shimmie2;
class BlocksInfo extends ExtensionInfo
{
public const KEY = "blocks";
public string $key = self::KEY;
public string $name = "Generic Blocks";
public string $url = self::SHIMMIE_URL;
public array $authors = self::SHISH_AUTHOR;
public string $license = self::LICENSE_GPLV2;
public string $description = "Add HTML to some space (News, Ads, etc)";
public ?string $documentation =
"Blocks with lower priority number appear higher up the page.<br><br>
The userclass parameter can be left empty for blocks to show to everyone, or specified as a comma-separated, case-insensitive list of user classes that will see that block. Spaces around the comma get stripped.<br><br>
For example, to show ads only to regular users and anonymous user classes:
<ul>
<li>\"&lt;ad here&gt;\": <code>user, anonymous</code></li>
<li>\"Thanks for supporting us!\": <code>supporter</code></li>
</ul>
";
}