<?php
use FileRun\Files\Plugin;

class custom_epub_reader extends Plugin {

	public bool $weblinksCompatible = true;
	static $localeSection = "Custom Actions: E-book Reader";
	static $publicMethods = ['openInBrowser', 'thumb'];

	function init() {
		$this->JSconfig = [
			"title" => self::t('E-book Reader'),
			'iconCls' => 'fa-book',
			'extensions' => ['epub'],
			'popup' => true,
			"requiredUserPerms" => ["preview"],
			"requires" => ["preview"]
		];
	}

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