You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.php 1.4KB

123456789101112131415161718192021222324252627
  1. <?php
  2. $l=OC_L10N::get('calendar');
  3. OC::$CLASSPATH['OC_Calendar_App'] = 'apps/calendar/lib/app.php';
  4. OC::$CLASSPATH['OC_Calendar_Calendar'] = 'apps/calendar/lib/calendar.php';
  5. OC::$CLASSPATH['OC_Calendar_Object'] = 'apps/calendar/lib/object.php';
  6. OC::$CLASSPATH['OC_Calendar_Hooks'] = 'apps/calendar/lib/hooks.php';
  7. OC::$CLASSPATH['OC_Connector_Sabre_CalDAV'] = 'apps/calendar/lib/connector_sabre.php';
  8. OC::$CLASSPATH['OC_Calendar_Share'] = 'apps/calendar/lib/share.php';
  9. OC::$CLASSPATH['OC_Search_Provider_Calendar'] = 'apps/calendar/lib/search.php';
  10. OCP\Util::connectHook('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser');
  11. OCP\Util::addscript('calendar','loader');
  12. OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min");
  13. OCP\Util::addStyle("3rdparty", "chosen/chosen");
  14. OCP\App::register( array(
  15. 'order' => 10,
  16. 'id' => 'calendar',
  17. 'name' => 'Calendar' ));
  18. OCP\App::addNavigationEntry( array(
  19. 'id' => 'calendar_index',
  20. 'order' => 10,
  21. 'href' => OCP\Util::linkTo( 'calendar', 'index.php' ),
  22. 'icon' => OCP\Util::imagePath( 'calendar', 'icon.svg' ),
  23. 'name' => $l->t('Calendar')));
  24. OCP\App::registerPersonal('calendar', 'settings');
  25. OC_Search::registerProvider('OC_Search_Provider_Calendar');
  26. OCP\CONFIG::setAppValue('core', 'remote_caldav', '/apps/calendar/appinfo/remote.php');
  27. OCP\CONFIG::setAppValue('core', 'public_calendar', '/apps/calendar/appinfo/share.php');