mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-30 07:41:28 +00:00
add -list-plugins option; about sections to plugins
This commit is contained in:
@@ -4,6 +4,12 @@ class Digest extends Plugin implements IHandler {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Digest mode for tt-rss (tablet friendly UI)",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -6,6 +6,12 @@ class Example extends Plugin {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Example plugin #1",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -7,6 +7,12 @@ class Example_Feed extends Plugin {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Example feed plugin",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -15,6 +15,12 @@ class Example_Routing extends Plugin implements IHandler {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Example routing plugin",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -10,6 +10,12 @@ class Flattr extends Plugin {
|
||||
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
|
||||
}
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Share on Flattr plugin",
|
||||
"Nic Honing");
|
||||
}
|
||||
|
||||
function hook_article_button($line) {
|
||||
|
||||
$article_id = $line["id"];
|
||||
|
||||
@@ -10,6 +10,12 @@ class GooglePlus extends Plugin {
|
||||
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
|
||||
}
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Share on Google+ plugin",
|
||||
"homolibere");
|
||||
}
|
||||
|
||||
function get_js() {
|
||||
return file_get_contents(dirname(__FILE__) . "/googleplus.js");
|
||||
}
|
||||
|
||||
@@ -10,6 +10,12 @@ class Identica extends Plugin {
|
||||
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
|
||||
}
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Share on Identi.ca",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function get_js() {
|
||||
return file_get_contents(dirname(__FILE__) . "/identica.js");
|
||||
}
|
||||
|
||||
@@ -12,6 +12,12 @@ class Import_Export extends Plugin implements IHandler {
|
||||
$host->add_command("xml-import", "USER FILE: import articles from XML", $this);
|
||||
}
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Imports and exports user data using a neutral XML format",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function xml_import($args) {
|
||||
array_shift($args);
|
||||
|
||||
|
||||
@@ -10,6 +10,12 @@ class Instances extends Plugin implements IHandler {
|
||||
2 => "Invalid object received",
|
||||
16 => "Access denied" );
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Support for linking tt-rss instances together and sharing popular feeds.",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -4,6 +4,12 @@ class Mail extends Plugin {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Adds a share article via email button",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -3,6 +3,12 @@ class Note extends Plugin {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Adds support for setting article notes",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -3,6 +3,12 @@ class Pinterest extends Plugin {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Share article via Pinterest",
|
||||
"?");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -4,6 +4,12 @@ class Pocket extends Plugin {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Share article via Pocket (formerly Read It Later)",
|
||||
"?");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -4,6 +4,12 @@ class RedditImgur extends Plugin {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Inline image links in Reddit RSS feeds",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -3,6 +3,12 @@ class Share extends Plugin {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Share article by unique URL",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
@@ -4,6 +4,12 @@ class Updater extends Plugin {
|
||||
private $link;
|
||||
private $host;
|
||||
|
||||
function _about() {
|
||||
return array(1.0,
|
||||
"Updates tt-rss installation to latest version.",
|
||||
"fox");
|
||||
}
|
||||
|
||||
function __construct($host) {
|
||||
$this->link = $host->get_link();
|
||||
$this->host = $host;
|
||||
|
||||
Reference in New Issue
Block a user