forked from idoxlr8/article_toolbar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.php
50 lines (40 loc) · 1.11 KB
/
init.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
class article_toolbar extends Plugin {
private $host;
function about() {
return array(1.0,
"Adds toolbar buttons to toggle sidebar",
"manu");
}
function init($host) {
$this->host = $host;
$host->add_hook($host::HOOK_TOOLBAR_BUTTON, $this);
}
function get_js() {
return '';
}
function hook_toolbar_button() {
?>
<button dojoType="dijit.form.Button" onclick="Feeds.catchupAll()">
<i class="material-icons"
title="Mark all read"> ✓ </i>
</button>
<button dojoType="dijit.form.Button" onclick="Feeds.reloadCurrent()">
<i class="material-icons"
title="Refresh Feed"> ↻ </i>
</button>
<button dojoType="dijit.form.Button" onclick="Headlines.move('prev', {noscroll: true });">
<i class="material-icons"
title="Previous Post"> ▲ </i>
</button>
<button dojoType="dijit.form.Button" onclick="Headlines.move('next', { noscroll: true });">
<i class="material-icons"
title="Next Post"> ▼ </i>
</button>
<?php
}
function api_version() {
return 2;
}
}
?>