-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathTest.php
More file actions
29 lines (24 loc) · 749 Bytes
/
Copy pathTest.php
File metadata and controls
29 lines (24 loc) · 749 Bytes
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
<?php
/**
* Copyright (C) 2015-2019 FeatherBB
* based on code by (C) 2008-2012 FluxBB
* and Rickard Andersson (C) 2002-2008 PunBB
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
namespace FeatherBB\Plugins;
use FeatherBB\Core\Interfaces\Hooks;
use FeatherBB\Core\Plugin as BasePlugin;
use FeatherBB\Core\Url;
class Test extends BasePlugin
{
public function run()
{
Hooks::bind('model.index.get_forum_actions', [$this, 'addMarkRead']);
}
public function addMarkRead($forum_actions)
{
$forum_actions[] = '<a href="' . Url::get('mark-read/') . '">Test1</a>';
$forum_actions[] = '<a href="' . Url::get('mark-read/') . '">Test2</a>';
return $forum_actions;
}
}