OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'href' => OC_Helper::linkTo( 'bookmarks', 'index.php' ), 'icon' => OC_Helper::imagePath( 'bookmarks', 'bookmarks.png' ), 'name' => $l->t('Bookmarks')));
OC_App::registerPersonal('bookmarks', 'settings');
-OC_Util::addScript('bookmarks','bookmarksearch');
+OCP\Util::addscript('bookmarks','bookmarksearch');
OC_Search::registerProvider('OC_Search_Provider_Bookmarks');
OC_App::setActiveNavigationEntry( 'bookmarks_index' );
-OC_Util::addScript('bookmarks','bookmarks');
+OCP\Util::addscript('bookmarks','bookmarks');
OCP\Util::addStyle('bookmarks', 'bookmarks');
$tmpl = new OC_Template( 'bookmarks', 'list', 'user' );
OC::$CLASSPATH['OC_Calendar_Share'] = 'apps/calendar/lib/share.php';
OC::$CLASSPATH['OC_Search_Provider_Calendar'] = 'apps/calendar/lib/search.php';
OC_HOOK::connect('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser');
-OC_Util::addScript('calendar','loader');
-OC_Util::addScript("3rdparty", "chosen/chosen.jquery.min");
+OCP\Util::addscript('calendar','loader');
+OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min");
OCP\Util::addStyle("3rdparty", "chosen/chosen");
OC_App::register( array(
'order' => 10,
OC_Preferences::setValue(OCP\USER::getUser(), "calendar", "currentview", "list");
}
-OC_Util::addScript('3rdparty/fullcalendar', 'fullcalendar');
+OCP\Util::addscript('3rdparty/fullcalendar', 'fullcalendar');
OCP\Util::addStyle('3rdparty/fullcalendar', 'fullcalendar');
-OC_Util::addScript('3rdparty/timepicker', 'jquery.ui.timepicker');
+OCP\Util::addscript('3rdparty/timepicker', 'jquery.ui.timepicker');
OCP\Util::addStyle('3rdparty/timepicker', 'jquery.ui.timepicker');
if(OC_Preferences::getValue(OCP\USER::getUser(), "calendar", "timezone") == null || OC_Preferences::getValue(OCP\USER::getUser(), 'calendar', 'timezonedetection') == 'true'){
- OC_UTIL::addScript('calendar', 'geo');
+ OCP\Util::addscript('calendar', 'geo');
}
-OC_Util::addScript('calendar', 'calendar');
+OCP\Util::addscript('calendar', 'calendar');
OCP\Util::addStyle('calendar', 'style');
-OC_Util::addScript('', 'jquery.multiselect');
+OCP\Util::addscript('', 'jquery.multiselect');
OCP\Util::addStyle('', 'jquery.multiselect');
-OC_Util::addScript('contacts','jquery.multi-autocomplete');
-OC_Util::addScript('','oc-vcategories');
+OCP\Util::addscript('contacts','jquery.multi-autocomplete');
+OCP\Util::addscript('','oc-vcategories');
OC_App::setActiveNavigationEntry('calendar_index');
$tmpl = new OC_Template('calendar', 'calendar', 'user');
$tmpl->assign('eventSources', $eventSources);
$tmpl->assign('timezone',$timezone);
$tmpl->assign('timezones',DateTimeZone::listIdentifiers());
-OC_Util::addScript('calendar','settings');
+OCP\Util::addscript('calendar','settings');
return $tmpl->fetchPage();
OC_APP::registerPersonal('contacts','settings');
-OC_UTIL::addScript('contacts', 'loader');
+OCP\Util::addscript('contacts', 'loader');
OC_Search::registerProvider('OC_Search_Provider_Contacts');
$freeSpace=max($freeSpace,0);
$maxUploadFilesize = min($maxUploadFilesize ,$freeSpace);
-OC_Util::addScript('','jquery.multiselect');
-OC_Util::addScript('','oc-vcategories');
-OC_Util::addScript('contacts','contacts');
-OC_Util::addScript('contacts','jquery.combobox');
-OC_Util::addScript('contacts','jquery.inview');
-OC_Util::addScript('contacts','jquery.Jcrop');
-OC_Util::addScript('contacts','jquery.multi-autocomplete');
+OCP\Util::addscript('','jquery.multiselect');
+OCP\Util::addscript('','oc-vcategories');
+OCP\Util::addscript('contacts','contacts');
+OCP\Util::addscript('contacts','jquery.combobox');
+OCP\Util::addscript('contacts','jquery.inview');
+OCP\Util::addscript('contacts','jquery.Jcrop');
+OCP\Util::addscript('contacts','jquery.multi-autocomplete');
OCP\Util::addStyle('','jquery.multiselect');
OCP\Util::addStyle('contacts','jquery.combobox');
OCP\Util::addStyle('contacts','jquery.Jcrop');
OC_Util::checkAdminUser();
-OC_Util::addScript( "external", "admin" );
+OCP\Util::addscript( "external", "admin" );
$tmpl = new OC_Template( 'external', 'settings');
// Load the files we need
OCP\Util::addStyle( "files", "files" );
-OC_Util::addScript( "files", "jquery.iframe-transport" );
-OC_Util::addScript( "files", "jquery.fileupload" );
-OC_Util::addScript( "files", "files" );
-OC_Util::addScript( 'files', 'filelist' );
-OC_Util::addScript( 'files', 'fileactions' );
+OCP\Util::addscript( "files", "jquery.iframe-transport" );
+OCP\Util::addscript( "files", "jquery.fileupload" );
+OCP\Util::addscript( "files", "files" );
+OCP\Util::addscript( 'files', 'filelist' );
+OCP\Util::addscript( 'files', 'fileactions' );
if(!isset($_SESSION['timezone'])){
- OC_Util::addScript( 'files', 'timezone' );
+ OCP\Util::addscript( 'files', 'timezone' );
}
OC_App::setActiveNavigationEntry( "files_index" );
// Load the files
// Load the files we need
OCP\Util::addStyle( "files", "files" );
-OC_Util::addScript( "files", "files" );
+OCP\Util::addscript( "files", "files" );
// Load the files
$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
-<?php OC_Util::addScript('files','admin'); ?>
+<?php OCP\Util::addscript('files','admin'); ?>
<form name="filesForm" action='#' method='post'>
<fieldset class="personalblock">
OC_Hook::connect('OC_Filesystem','get_mountpoint','OC_Filestorage_Archive','autoMount');
-OC_Util::addScript( 'files_archive', 'archive' );
+OCP\Util::addscript( 'files_archive', 'archive' );
$tmpl->assign('blacklist',$blackList);
$tmpl->assign('encryption_enabled',$enabled);
-OC_Util::addScript('files_encryption','settings');
-OC_Util::addScript('core','multiselect');
+OCP\Util::addscript('files_encryption','settings');
+OCP\Util::addscript('core','multiselect');
return $tmpl->fetchPage();
<?php
-OC_Util::addScript( 'files_imageviewer', 'lightbox' );
-OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
-OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
+OCP\Util::addscript( 'files_imageviewer', 'lightbox' );
+OCP\Util::addscript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
+OCP\Util::addscript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
OCP\Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
?>
<?php
//load the required files
-OC_Util::addScript( 'files_pdfviewer', 'viewer');
+OCP\Util::addscript( 'files_pdfviewer', 'viewer');
OCP\Util::addStyle( 'files_pdfviewer', 'viewer');
-OC_Util::addScript( 'files_pdfviewer', 'pdfjs/build/pdf');
-OC_Util::addScript( 'files_pdfviewer', 'pdfview');
+OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/build/pdf');
+OCP\Util::addscript( 'files_pdfviewer', 'pdfview');
?>
OC_Hook::connect('OC_User', 'post_removeFromGroup', 'OC_Share', 'removeFromGroupShare');
$dir = isset($_GET['dir']) ? $_GET['dir'] : '/';
if ($dir != '/Shared' || OC_Appconfig::getValue('files_sharing', 'resharing', 'yes') == 'yes') {
- OC_Util::addScript("files_sharing", "share");
+ OCP\Util::addscript("files_sharing", "share");
}
-OC_Util::addScript("3rdparty", "chosen/chosen.jquery.min");
+OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min");
OCP\Util::addStyle( 'files_sharing', 'sharing' );
OCP\Util::addStyle("3rdparty", "chosen/chosen");
OC_App::setActiveNavigationEntry("files_sharing_list");
-OC_Util::addScript("files_sharing", "list");
+OCP\Util::addscript("files_sharing", "list");
$tmpl = new OC_Template("files_sharing", "list", "user");
$tmpl->assign("shared_items", OC_Share::getMySharedItems());
<?php
OC_Util::checkAdminUser();
-OC_Util::addScript('files_sharing', 'settings');
+OCP\Util::addscript('files_sharing', 'settings');
$tmpl = new OC_Template('files_sharing', 'settings');
$tmpl->assign('allowResharing', OC_Appconfig::getValue('files_sharing', 'resharing', 'yes'));
return $tmpl->fetchPage();
<?php
//load the required files
OCP\Util::addStyle( 'files_texteditor', 'style' );
-OC_Util::addScript( 'files_texteditor', 'editor');
-OC_Util::addScript( 'files_texteditor', 'aceeditor/ace');
+OCP\Util::addscript( 'files_texteditor', 'editor');
+OCP\Util::addscript( 'files_texteditor', 'aceeditor/ace');
?>
'name' => 'Versioning' ));
OC_APP::registerAdmin('files_versions', 'settings');
-OC_UTIL::addScript('files_versions', 'versions');
+OCP\Util::addscript('files_versions', 'versions');
// Listen to write signals
OC_Hook::connect(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_write, "OCA_Versions\Storage", "write_hook");
OC_Util::checkAdminUser();
-OC_Util::addScript( 'files_versions', 'versions' );
+OCP\Util::addscript( 'files_versions', 'versions' );
$tmpl = new OC_Template( 'files_versions', 'settings');
<?php
OCP\Util::addStyle('gallery', 'styles');
-OC_Util::addScript('gallery', 'albums');
-OC_Util::addScript('gallery', 'scanner');
-OC_Util::addScript('gallery', 'album_cover');
+OCP\Util::addscript('gallery', 'albums');
+OCP\Util::addscript('gallery', 'scanner');
+OCP\Util::addscript('gallery', 'album_cover');
OCP\Util::addStyle('files', 'files');
-OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
-OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
+OCP\Util::addscript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
+OCP\Util::addscript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
OCP\Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
$l = OC_L10N::get('gallery');
?>
<?php
OCP\Util::addStyle('gallery', 'styles');
-OC_Util::addScript('gallery', 'albums');
-OC_Util::addScript('gallery', 'album_cover');
-OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
-OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
+OCP\Util::addscript('gallery', 'albums');
+OCP\Util::addscript('gallery', 'album_cover');
+OCP\Util::addscript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
+OCP\Util::addscript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
OCP\Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
$l = OC_L10N::get('gallery');
?>
require_once('apps/media/lib_media.php');
-OC_Util::addScript('media','loader');
+OCP\Util::addscript('media','loader');
OC_APP::registerPersonal('media','settings');
OC_App::register( array( 'order' => 3, 'id' => 'media', 'name' => 'Media' ));
require_once(OC::$APPSROOT . '/apps/media/lib_collection.php');
require_once(OC::$APPSROOT . '/apps/media/lib_scanner.php');
-OC_Util::addScript('media','player');
-OC_Util::addScript('media','music');
-OC_Util::addScript('media','playlist');
-OC_Util::addScript('media','collection');
-OC_Util::addScript('media','scanner');
-OC_Util::addScript('media','jquery.jplayer.min');
+OCP\Util::addscript('media','player');
+OCP\Util::addscript('media','music');
+OCP\Util::addscript('media','playlist');
+OCP\Util::addscript('media','collection');
+OCP\Util::addscript('media','scanner');
+OCP\Util::addscript('media','jquery.jplayer.min');
OCP\Util::addStyle('media','music');
OC_App::setActiveNavigationEntry( 'media_index' );
*/
$params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_password', 'ldap_base', 'ldap_base_users', 'ldap_base_groups', 'ldap_userlist_filter', 'ldap_login_filter', 'ldap_display_name', 'ldap_tls', 'ldap_nocase'. 'ldap_quota_def', 'ldap_quota_attr', 'ldap_email_attr');
-OC_Util::addScript('user_ldap', 'settings');
+OCP\Util::addscript('user_ldap', 'settings');
OCP\Util::addStyle('user_ldap', 'settings');
if ($_POST) {
OC_APP::registerPersonal( 'user_migrate', 'settings' );
OC_APP::registerAdmin( 'user_migrate', 'admin' );
-OC_Util::addScript( 'user_migrate', 'export');
+OCP\Util::addscript( 'user_migrate', 'export');
// add settings page to navigation
$entry = array(
$identity=OC_Preferences::getValue(OCP\USER::getUser(),'user_openid','identity','');
$tmpl->assign('identity',$identity);
-OC_Util::addScript('user_openid','settings');
+OCP\Util::addscript('user_openid','settings');
return $tmpl->fetchPage();
?>
\ No newline at end of file