]>
git.wh0rd.org - tt-rss.git/blob - plugins/mark_button/init.php
4cf1c5949db0b7a1c4c7adf3dc407ed9ec6f3451
2 class Mark_Button
extends Plugin
{
7 $this->link
= $host->get_link();
10 $host->add_hook($host::HOOK_ARTICLE_BUTTON
, $this);
15 "Bottom un/star button for the combined mode",
19 function hook_article_button($line) {
23 if (get_pref($this->link
, "COMBINED_DISPLAY_MODE")) {
24 if (sql_bool_to_bool($line["marked"])) {
26 src=\"images/mark_set.svg\"
27 class=\"markedPic\" alt=\"Unstar article\"
28 onclick='toggleMark($id)'>";
31 src=\"images/mark_unset.svg\"
32 class=\"markedPic\" alt=\"Star article\"
33 onclick='toggleMark($id)'>";