blob: cb86456645156dda767d8d9b14b0a7d3f4ab520c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
global $gBitSystem, $gBitSmarty, $gBitUser;
$registerHash = array(
'package_name' => 'calendar',
'package_path' => dirname( __FILE__ ).'/',
'homeable' => TRUE,
);
$gBitSystem->registerPackage( $registerHash );
if( $gBitSystem->isPackageActive( 'calendar' ) && $gBitUser->hasPermission( 'p_calendar_view' )) {
$menuHash = array(
'package_name' => CALENDAR_PKG_NAME,
'index_url' => CALENDAR_PKG_URL.'index.php',
'menu_template' => 'bitpackage:calendar/menu_calendar.tpl',
);
$gBitSystem->registerAppMenu( $menuHash );
}
?>
|