-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.xml
41 lines (39 loc) · 1.46 KB
/
manifest.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<extension engine="1.0">
<id>punbb_medals</id>
<title>Medals</title>
<version>0.1</version>
<description>Adds medals to punbb</description>
<author>Andrew Ward</author>
<minversion>1.3</minversion>
<maxtestedon>1.5</maxtestedon>
<note type="install">Make sure you have done all the changes needed before installing</note>
<install><![CDATA[
// Installation code
require $ext_info['path'].'/install.php';
]]></install>
<hooks>
<hook id="vt_row_pre_display"><![CDATA[
// Include a file from the extension directory
require $ext_info['path'].'/display_medals.php';
]]></hook>
<hook id="aex_section_manage_pre_ext_actions"><![CDATA[
// run it
if ($ext['title'] == "Medals"){
$forum_page['ext_actions']['manage'] = "<span><a href=\"\">Manage</a></span>";
}
]]></hook>
<hook id="aop_new_section"><![CDATA[
// Include a file from the extension directory
require $ext_info['path'].'/medal_def.php';
]]></hook>
<hook id="ca_fn_generate_admin_menu_new_link"><![CDATA[
$medals_menu_element = '<li class="'.((FORUM_PAGE_SECTION == 'punbb_medals') ? 'active' : 'normal').
((empty($forum_page['admin_menu'])) ? ' first-item' : '').'">
<a href="'.FORUM_ROOT.'extensions/punbb_medals/admin.php">
<span>Medals</span>
</a></li>';
array_insert($forum_page['admin_menu'], 'extensions_manage', $medals_menu_element, 'punbb_medals');
]]></hook>
</hooks>
</extension>