]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame - misc/right-click.php
Add Plugins: remove author from card footer
[irc/unrealircd/unrealircd-webpanel.git] / misc / right-click.php
CommitLineData
e8b225fd
VP
1<?php
2/**
3 * Right-click menus
4 */
5if (!isset($config)) die;
6
7$menu = [
8 [
9 "text" => "Copy",
10 "onclick" => "copy_to_clipboard(window.getSelection().toString())",
11 "icon" => "fa-clipboard"
12 ],
13 [
14 "text" => "Paste",
15 "onclick" => "paste_from_clipboard()",
16 "icon" => "fa-paint-brush",
17 ],
18];
19
20// register our menu
21Hook::run(HOOKTYPE_RIGHTCLICK_MENU, $menu);
22
23?>
24<!-- Right-click menu -->
25
26<div id='rclickmenu' class="nav-item list-group">
27 <div id="rclick_opt1" class="item list-group-item-action" onclick="copy_to_clipboard(window.getSelection().toString())">Copy</div>
28 <div id="rclick_opt2" class="item list-group-item-action" onclick="paste_from_clipboard()">Paste</div>
29 <div id="rclick_opt3" class="item list-group-item-action">Search</div>
30
31 <a class="item list-group-item-action" href="https://www.unrealircd.org/docs/UnrealIRCd_webpanel" target="_blank">Documentation Wiki</a>
32</div>