-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplication.php
75 lines (68 loc) · 2.37 KB
/
Application.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* @brief VPDB Application Class
* @author <a href='https://vpdb.io'>freezy</a>
* @copyright (c) 2017 freezy
* @package Invision Community
* @subpackage VPDB
* @since 17 Sep 2017
* @version
*/
namespace IPS\vpdb;
/**
* VPDB Application Class
*/
class _Application extends \IPS\Application
{
/**
* Init
*
* @return void
*/
public function init()
{
\IPS\Output::i()->cssFiles = array_merge(\IPS\Output::i()->cssFiles, \IPS\Theme::i()->css('layout.css'));
\IPS\Output::i()->cssFiles = array_merge(\IPS\Output::i()->cssFiles, \IPS\Theme::i()->css('tables.css'));
}
/**
* Default front navigation
*
* @code
// Each item...
* array(
* 'key' => 'Example', // The extension key
* 'app' => 'core', // [Optional] The extension application. If ommitted, uses this application
* 'config' => array(...), // [Optional] The configuration for the menu item
* 'title' => 'SomeLangKey', // [Optional] If provided, the value of this language key will be copied to menu_item_X
* 'children' => array(...), // [Optional] Array of child menu items for this item. Each has the same format.
* )
*
* return array(
* 'rootTabs' => array(), // These go in the top row
* 'browseTabs' => array(), // These go under the Browse tab on a new install or when restoring the default configuraiton; or in the top row if installing the app later (when the Browse tab may not exist)
* 'browseTabsEnd' => array(), // These go under the Browse tab after all other items on a new install or when restoring the default configuraiton; or in the top row if installing the app later (when the Browse tab may not exist)
* 'activityTabs' => array(), // These go under the Activity tab on a new install or when restoring the default configuraiton; or in the top row if installing the app later (when the Activity tab may not exist)
* )
* @endcode
* @return array
*/
public function defaultFrontNavigation()
{
return array(
'rootTabs' => array(),
'browseTabs' => array(array('key' => 'VPDB Browse Tabs')),
'browseTabsEnd' => array(),
'activityTabs' => array()
);
}
/**
* [Node] Get Icon for tree
*
* @note Return the class for the icon (e.g. 'globe')
* @return string|null
*/
protected function get__icon()
{
return 'database';
}
}