2021-12-14 18:32:47 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2019-08-07 19:53:59 +00:00
|
|
|
|
2023-01-10 22:44:09 +00:00
|
|
|
namespace Shimmie2;
|
|
|
|
|
2019-08-07 19:53:59 +00:00
|
|
|
class LinkImageInfo extends ExtensionInfo
|
|
|
|
{
|
|
|
|
public const KEY = "link_image";
|
|
|
|
|
2021-03-14 23:43:50 +00:00
|
|
|
public string $key = self::KEY;
|
|
|
|
public string $name = "Link to Post";
|
2023-11-11 21:49:12 +00:00
|
|
|
public array $authors = ["Artanis" => "artanis.00@gmail.com"];
|
2021-03-14 23:43:50 +00:00
|
|
|
public string $description = "Show various forms of link to each image, for copy & paste";
|
|
|
|
public string $license = self::LICENSE_GPLV2;
|
|
|
|
public ?string $documentation = "There is one option in Board Config: Text Link Format.
|
2019-11-02 20:19:09 +00:00
|
|
|
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)'.
|
2019-11-02 20:19:09 +00:00
|
|
|
|
2020-10-26 15:16:45 +00:00
|
|
|
<p>To reset to the default, simply clear the current setting. Link to Post
|
2019-11-02 20:19:09 +00:00
|
|
|
will then fill in the default value after the save.
|
|
|
|
|
|
|
|
<p>To leave the setting blank for any reason, leave a space (' ') in it.";
|
2019-08-07 19:53:59 +00:00
|
|
|
}
|