app.php 1.1 KB

12345678910111213141516171819202122
  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::addNavigationEntry( array(
  15. 'id' => 'calendar_index',
  16. 'order' => 10,
  17. 'href' => OCP\Util::linkTo( 'calendar', 'index.php' ),
  18. 'icon' => OCP\Util::imagePath( 'calendar', 'icon.svg' ),
  19. 'name' => $l->t('Calendar')));
  20. OCP\App::registerPersonal('calendar', 'settings');
  21. OC_Search::registerProvider('OC_Search_Provider_Calendar');