2011-08-11 13:22:07 +04:00
|
|
|
<?php
|
2012-01-29 13:59:15 +04:00
|
|
|
if(version_compare(PHP_VERSION, '5.3.0', '>=')){
|
2011-12-10 18:11:41 +04:00
|
|
|
$l=new OC_L10N('calendar');
|
2011-12-22 01:16:46 +04:00
|
|
|
OC::$CLASSPATH['OC_Calendar_App'] = 'apps/calendar/lib/app.php';
|
2011-12-10 18:11:41 +04:00
|
|
|
OC::$CLASSPATH['OC_Calendar_Calendar'] = 'apps/calendar/lib/calendar.php';
|
|
|
|
OC::$CLASSPATH['OC_Calendar_Object'] = 'apps/calendar/lib/object.php';
|
|
|
|
OC::$CLASSPATH['OC_Calendar_Hooks'] = 'apps/calendar/lib/hooks.php';
|
|
|
|
OC::$CLASSPATH['OC_Connector_Sabre_CalDAV'] = 'apps/calendar/lib/connector_sabre.php';
|
2012-02-05 00:23:31 +04:00
|
|
|
OC::$CLASSPATH['OC_Calendar_Share'] = 'apps/calendar/lib/share.php';
|
2012-01-26 22:05:46 +04:00
|
|
|
OC_HOOK::connect('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser');
|
2011-12-10 18:11:41 +04:00
|
|
|
OC_Util::addScript('calendar','loader');
|
2012-02-05 00:23:31 +04:00
|
|
|
OC_Util::addScript('3rdparty', 'chosen/chosen.jquery.min');
|
|
|
|
OC_Util::addStyle('3rdparty', 'chosen/chosen');
|
2011-12-10 18:11:41 +04:00
|
|
|
OC_App::register( array(
|
|
|
|
'order' => 10,
|
|
|
|
'id' => 'calendar',
|
|
|
|
'name' => 'Calendar' ));
|
|
|
|
OC_App::addNavigationEntry( array(
|
|
|
|
'id' => 'calendar_index',
|
|
|
|
'order' => 10,
|
|
|
|
'href' => OC_Helper::linkTo( 'calendar', 'index.php' ),
|
2012-01-15 21:29:44 +04:00
|
|
|
'icon' => OC_Helper::imagePath( 'calendar', 'icon.svg' ),
|
2011-12-10 18:11:41 +04:00
|
|
|
'name' => $l->t('Calendar')));
|
|
|
|
OC_App::registerPersonal('calendar', 'settings');
|
|
|
|
require_once('apps/calendar/lib/search.php');
|
2011-12-22 01:16:46 +04:00
|
|
|
}
|