link to main and backup image
This commit is contained in:
parent
dd8a90414f
commit
dbc430e3d5
1 changed files with 3 additions and 2 deletions
|
@ -24,8 +24,9 @@ class Rule34 extends Extension {
|
||||||
public function onImageInfoBoxBuilding(ImageInfoBoxBuildingEvent $event) {
|
public function onImageInfoBoxBuilding(ImageInfoBoxBuildingEvent $event) {
|
||||||
global $config;
|
global $config;
|
||||||
$image_link = $config->get_string('image_ilink');
|
$image_link = $config->get_string('image_ilink');
|
||||||
$url = $event->image->parse_link_template($image_link, "url_escape", 1);
|
$url0 = $event->image->parse_link_template($image_link, "url_escape", 0);
|
||||||
$html = "<tr><th>Links</th><td><a href='$url'>Backup Image Server</a></td></tr>";
|
$url1 = $event->image->parse_link_template($image_link, "url_escape", 1);
|
||||||
|
$html = "<tr><th>Links</th><td><a href='$url0'>Image Only</a> (<a href='$url1'>Backup Server</a>)</td></tr>";
|
||||||
$event->add_part($html, 90);
|
$event->add_part($html, 90);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue