<?php

use FileRun\Files\Plugin;

class custom_image_viewer extends Plugin {

	public bool $immutable = true;
	public bool $weblinksCompatible = true;
	static $localeSection = "Custom Actions: Image Viewer";
	static $publicMethods = ['thumb'];

	function init() {
		$this->JSconfig = [
			"title" => self::t("Image Viewer"),
			'iconCls' => 'fa-picture-o',
			'useWith' => ['nothing']
		];
	}

	function run() {
		require $this->path."/display.php";
	}
}