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/link_image/info.php

35 lines
1.3 KiB
PHP
Raw Normal View History

2020-01-26 13:19:35 +00:00
<?php declare(strict_types=1);
class LinkImageInfo extends ExtensionInfo
{
public const KEY = "link_image";
public $key = self::KEY;
2020-10-26 15:16:45 +00:00
public $name = "Link to Post";
public $authors = ["Artanis"=>"artanis.00@gmail.com"];
public $description = "Show various forms of link to each image, for copy & paste";
public $license = self::LICENSE_GPLV2;
public $documentation = "There is one option in Board Config: Text Link Format.
It takes the following arguments as well as plain text.
<pre>
|| arguments || replacement ||
|| \$id || The image ID. ||
|| \$hash || The MD5 hash of the image. ||
|| \$tags || The image's tag list. ||
|| \$base || The base HREF as set in Config. ||
|| \$ext || The image's extension. ||
|| \$size || The image's display size. ||
|| \$filesize || The image's size in KB. ||
|| \$filename || The image's original filename. ||
|| \$title || The site title as set in Config. ||
</pre>
2020-10-26 15:16:45 +00:00
<p>Link to Post will default this option to '\$title - \$id (\$ext \$size \$filesize)'.
2020-10-26 15:16:45 +00:00
<p>To reset to the default, simply clear the current setting. Link to Post
will then fill in the default value after the save.
<p>To leave the setting blank for any reason, leave a space (' ') in it.";
}