mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:35:56 +00:00
add HOOK_ARTICLE_LEFT_BUTTON
This commit is contained in:
@@ -678,6 +678,10 @@ class Feeds extends Handler_Protected {
|
|||||||
|
|
||||||
$reply['content'] .= "<div class=\"cdmFooter\">";
|
$reply['content'] .= "<div class=\"cdmFooter\">";
|
||||||
|
|
||||||
|
foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_LEFT_BUTTON) as $p) {
|
||||||
|
$reply['content'] .= $p->hook_article_left_button($line);
|
||||||
|
}
|
||||||
|
|
||||||
$tags_str = format_tags_string($line["tags"], $id);
|
$tags_str = format_tags_string($line["tags"], $id);
|
||||||
|
|
||||||
$reply['content'] .= "<img src='images/tag.png' alt='Tags' title='Tags'>
|
$reply['content'] .= "<img src='images/tag.png' alt='Tags' title='Tags'>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ class PluginHost {
|
|||||||
const HOOK_ACTION_ITEM = 16;
|
const HOOK_ACTION_ITEM = 16;
|
||||||
const HOOK_HEADLINE_TOOLBAR_BUTTON = 17;
|
const HOOK_HEADLINE_TOOLBAR_BUTTON = 17;
|
||||||
const HOOK_HOTKEY_INFO = 18;
|
const HOOK_HOTKEY_INFO = 18;
|
||||||
|
const HOOK_ARTICLE_LEFT_BUTTON = 19;
|
||||||
|
|
||||||
const KIND_ALL = 1;
|
const KIND_ALL = 1;
|
||||||
const KIND_SYSTEM = 2;
|
const KIND_SYSTEM = 2;
|
||||||
|
|||||||
@@ -3141,18 +3141,23 @@
|
|||||||
position=\"below\">$tags_str_full</div>";
|
position=\"below\">$tags_str_full</div>";
|
||||||
|
|
||||||
global $pluginhost;
|
global $pluginhost;
|
||||||
|
|
||||||
foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_BUTTON) as $p) {
|
foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_BUTTON) as $p) {
|
||||||
$rv['content'] .= $p->hook_article_button($line);
|
$rv['content'] .= $p->hook_article_button($line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$tags_str = strip_tags($tags_str);
|
$tags_str = strip_tags($tags_str);
|
||||||
$rv['content'] .= "<span id=\"ATSTR-$id\">$tags_str</span>";
|
$rv['content'] .= "<span id=\"ATSTR-$id\">$tags_str</span>";
|
||||||
}
|
}
|
||||||
$rv['content'] .= "</div>";
|
$rv['content'] .= "</div>";
|
||||||
$rv['content'] .= "<div clear='both'>$entry_comments</div>";
|
$rv['content'] .= "<div clear='both'>";
|
||||||
|
|
||||||
|
global $pluginhost;
|
||||||
|
foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_LEFT_BUTTON) as $p) {
|
||||||
|
$rv['content'] .= $p->hook_article_left_button($line);
|
||||||
|
}
|
||||||
|
|
||||||
|
$rv['content'] .= "$entry_comments</div>";
|
||||||
|
|
||||||
if ($line["orig_feed_id"]) {
|
if ($line["orig_feed_id"]) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user