host = $host; $host->add_hook($host::HOOK_ARTICLE_BUTTON, $this); $host->add_hook($host::HOOK_PREFS_TAB_SECTION, $this); } function is_public_method($method) { return $method == "get"; } function get_js() { return file_get_contents(__DIR__ . "/share.js"); } function get_css() { return file_get_contents(__DIR__ . "/share.css"); } function get_prefs_js() { return file_get_contents(__DIR__ . "/share_prefs.js"); } function unshare() { $id = $_REQUEST['id']; $sth = $this->pdo->prepare("UPDATE ttrss_user_entries SET uuid = '' WHERE int_id = ? AND owner_uid = ?"); $sth->execute([$id, $_SESSION['uid']]); print __("Article unshared"); } function hook_prefs_tab_section($id) { if ($id == "prefFeedsPublishedGenerated") { ?>