<?php /** * ownCloud - passman * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Sander Brand <*****@*****.**> * @copyright Sander Brand 2014 */ namespace OCA\Passman\AppInfo; \OCP\App::registerAdmin('passman', 'admin-settings'); \OCP\App::addNavigationEntry(array('id' => 'passman', 'order' => 10, 'href' => \OCP\Util::linkToRoute('passman.page.index'), 'icon' => \OCP\Util::imagePath('passman', 'app.png'), 'name' => \OC_L10N::get('Passwords')->t('Passwords'))); \OCP\Backgroundjob::registerJob('OCA\\Passman\\Cron\\RunCron'); \OC::$server->getActivityManager()->registerExtension(function () { return new \OCA\Passman\Activity(); });
<?php use OCP\AppFramework\App; $app = new App('passwords'); $container = $app->getContainer(); $l = \OCP\Util::getL10N('passwords'); \OCP\App::registerAdmin('passwords', 'templates/admin.settings'); \OCP\App::registerPersonal('passwords', 'templates/personal.settings'); $urlGenerator = $container->query('OCP\\IURLGenerator'); $l10n = $container->query('OCP\\IL10N'); \OCP\App::addNavigationEntry(array('id' => 'passwords', 'order' => 9999, 'href' => $urlGenerator->linkToRoute('passwords.page.index'), 'icon' => $urlGenerator->imagePath('passwords', 'app.svg'), 'name' => $l10n->t('Passwords')));
* License as published by the Free Software Foundation; either * version 3 of the license, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Affero General Public * License along with this library. * If not, see <http://www.gnu.org/licenses/>. * */ /** * @file appinfo/app.php * @brief Basic registration of app inside ownCloud * @author Christian Reiner */ \OCP\App::registerAdmin('imprint', 'settings'); \OCP\Util::addStyle('imprint', 'reference'); \OCP\Util::addScript('imprint', 'reference'); // add imprint positioning options as meta tags to the html head to avoid additional ajax requests \OCP\Util::addHeader('meta', array('data-imprint-position-user' => \OCP\Config::getAppValue('imprint', 'position-user', ''))); \OCP\Util::addHeader('meta', array('data-imprint-position-guest' => \OCP\Config::getAppValue('imprint', 'position-guest', ''))); \OCP\Util::addHeader('meta', array('data-imprint-position-login' => \OCP\Config::getAppValue('imprint', 'position-login', ''))); // offer application as standalone entry in the menu? if ('true' === \OCP\Config::getAppValue('imprint', 'standalone', 'false')) { // no js required, we add the imprint as a normal app to the navigation \OCP\App::addNavigationEntry(array('id' => 'imprint', 'order' => 99999, 'href' => \OCP\Util::linkTo('imprint', 'index.php'), 'icon' => \OCP\Util::imagePath('imprint', 'imprint-light.svg'), 'name' => \OCP\Util::getL10N('imprint')->t("Legal notice"))); } // if
<?php /** * owncloud - talk * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Vincent Petry <*****@*****.**> * @copyright Vincent Petry 2014 */ namespace OCA\Talk\AppInfo; $app = new Application(); $c = $app->getContainer(); \OCP\App::registerAdmin($c->query('AppName'), 'settings/admin'); \OCP\App::addNavigationEntry(array('id' => 'talk', 'order' => 10, 'href' => \OCP\Util::linkToRoute('talk.page.index'), 'icon' => \OCP\Util::imagePath('talk', 'app.svg'), 'name' => \OC_L10N::get('talk')->t('Talk')));
<?php /** * ownCloud - User Files Restore * * @author Patrick Paysant <*****@*****.**> * @copyright 2015 CNRS DSI * @license This file is licensed under the Affero General Public License version 3 or later. See the COPYING file. */ namespace OCA\User_Files_Restore; use OCA\User_Files_Restore\App\User_Files_Restore; $app = new User_Files_Restore(); $c = $app->getContainer(); /** * add navigation */ \OCP\App::addNavigationEntry(array('id' => 'user_files_restore', 'order' => 10, 'href' => \OCP\Util::linkToRoute('user_files_restore.page.index'), 'icon' => \OCP\Util::imagePath($c->query('AppName'), 'restoreApp.svg'), 'name' => $c->query('L10N')->t('Restore'))); /** * Load js and overlay icon */ $eventDispatcher = \OC::$server->getEventDispatcher(); $eventDispatcher->addListener('OCA\\Files::loadAdditionalScripts', function () use($c) { \OCP\Util::addscript($c->query('AppName'), 'app'); \OCP\Util::addscript($c->query('AppName'), 'userfilesrestoretabview'); \OCP\Util::addscript($c->query('AppName'), 'filesplugin'); \OCP\Util::addStyle($c->query('AppName'), 'restore'); });
*/ // ownCloud calls appinfo/app.php every time it runs. This is the place to // Register navigation entries, and connect signals and slots define(__NAMESPACE__.'\K_APP_NAME', 'oc_apps2_games'); \OCP\App::register(Array( 'id' => K_APP_NAME, 'order' => 60, 'name' => 'Games2 +' )); \OCP\App::addNavigationEntry(Array( 'id' => namespace\K_APP_NAME, 'order' => 60, 'href' => \OCP\Util::linkTo(K_APP_NAME, 'main.php'), 'icon' => \OCP\Util::imagePath(K_APP_NAME, 'games-card_game.png'), 'name' => 'Games2 +' )); //\OC_Hook::connect('OC_DB','install', 'installer'); //\OC_Hook::connect('OC_DB','update', 'updater'); /* $myFile = \OC_App::getAppPath('oc_apps2_games').'/appinfo/apps2_game_map.csv'; if ( @is_readable($myFile) ) { $myHandle = @fopen($myFile,'r'); if ( $myHandle ) { \OCP\DB::beginTransaction(); $mySQL = <<<EOR INSERT INTO *PREFIX*apps2_games_map(game_id,author,map_id,json,jsol) VALUES (?,?,?,?,?) EOR;
<?php /** * ownCloud - breakout * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Volkan Gezer <*****@*****.**> * @copyright Volkan Gezer 2014 */ namespace OCA\Breakout\AppInfo; \OCP\App::addNavigationEntry(array('id' => 'breakout', 'order' => 10, 'href' => \OCP\Util::linkToRoute('breakout.page.index'), 'icon' => \OCP\Util::imagePath('breakout', 'icon_128.png'), 'name' => \OC_L10N::get('breakout')->t('Breakout')));
//namespace OCA\GpsTracks\AppInfo; //use OCP\AppFramework\App; // //$app = new App('gpstracks'); //$container = $app->getContainer(); // //$container->query('OCP\INavigationManager')->add(function () use ($container) { // $urlGenerator = $container->query('OCP\IURLGenerator'); // $l10n = $container->query('OCP\IL10N'); // return [ // // the string under which your app will be referenced in owncloud // 'id' => 'gpstracks', // // // sorting weight for the navigation. The higher the number, the higher // // will it be listed in the navigation // 'order' => 10, // // // the route that will be shown on startup // 'href' => $urlGenerator->linkToRoute('gpstracks.page.index'), // // // the icon that will be shown in the navigation // // this file needs to exist in img/ // 'icon' => $urlGenerator->imagePath('gpstracks', 'app.svg'), // // // the title of your application. This will be used in the // // navigation or on the settings page of your app // 'name' => $l10n->t('Gps Tracks'), // ]; //}); \OCP\App::addNavigationEntry(['id' => 'gpstracks', 'order' => 10, 'href' => \OCP\Util::linkToRoute('gpstracks.page.index'), 'icon' => \OCP\Util::imagePath('gpstracks', 'app.svg'), 'name' => \OC_L10N::get('gpstracks')->t('Gps Tracks')]);
<?php /** * ownCloud - ExifView * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author shi <*****@*****.**> * @copyright shi 2015 */ namespace OCA\ExifView\AppInfo; \OCP\App::addNavigationEntry(['id' => 'binder', 'order' => 10, 'href' => \OCP\Util::linkToRoute('exifview.page.index'), 'icon' => \OCP\Util::imagePath('exifview', 'app.svg'), 'name' => \OC_L10N::get('exifview')->t('ExifView')]);
<?php /** * ownCloud - weather * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Loic Blot <*****@*****.**> * @copyright Loic Blot 2015 */ namespace OCA\Weather\AppInfo; if (class_exists('\\OCP\\AppFramework\\App')) { \OCP\App::addNavigationEntry(array('id' => 'weather', 'order' => 10, 'href' => \OCP\Util::linkToRoute('weather.city.index'), 'icon' => \OCP\Util::imagePath('weather', 'app-icon.png'), 'name' => \OCP\Util::getL10N('weather')->t('Weather'))); } else { $msg = 'Can not enable the OwnBoard app because the App Framework App is disabled'; \OCP\Util::writeLog('weather', $msg, \OCP\Util::ERROR); }
// config key to store Url of the hosted Etherpad service const CONFIG_ETHERPAD_URL = 'etherpad_url'; // Default value for Url of the hosted Etherpad service const CONFIG_ETHERPAD_URL_DEFAULT = 'http://beta.etherpad.org/p/'; // Url of the hosted Etherpad solution const CONFIG_USERNAME = '******'; const ERROR_URL_INVALID = 'invalid URL'; const ERROR_USERNAME_INVALID = 'invalid username'; public static function getServiceUrl() { return self::getValue(self::CONFIG_ETHERPAD_URL, self::CONFIG_ETHERPAD_URL_DEFAULT); } public static function setServiceUrl($url) { return \OCP\Config::setUserValue(\OCP\User::getUser(), self::APP_ID, self::CONFIG_ETHERPAD_URL, $url); } public static function getUsername() { return self::getValue(self::CONFIG_USERNAME, \OCP\User::getUser()); } public static function setUsername($username) { return \OCP\Config::setUserValue(\OCP\User::getUser(), self::APP_ID, self::CONFIG_USERNAME, $username); } protected static function getValue($key, $defaultValue) { return \OCP\Config::getUserValue(\OCP\User::getUser(), self::APP_ID, $key, $defaultValue); } } \OCP\App::addNavigationEntry(array('id' => 'ownpad_lite_index', 'order' => 90, 'href' => \OCP\Util::linkTo(App::APP_ID, 'index.php'), 'icon' => \OCP\Util::imagePath('settings', 'users.svg'), 'name' => \OC_L10N::get(App::APP_ID)->t('My pad')));
<?php /** * ownCloud - gitviewer * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author var Eggertsson <*****@*****.**> * @copyright var Eggertsson 2015 */ namespace OCA\GitViewer\AppInfo; \OCP\App::addNavigationEntry(['id' => 'gitviewer', 'order' => 10, 'href' => \OCP\Util::linkTo('gitviewer', 'index.php'), 'icon' => \OCP\Util::imagePath('gitviewer', 'app.svg'), 'name' => \OC_L10N::get('gitviewer')->t('Git Viewer')]);
* * This file is part of oclife. * * oclife is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * oclife is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with oclife. If not, see <http://www.gnu.org/licenses/>. */ \OCP\App::addNavigationEntry(array('id' => 'oclife', 'order' => 10, 'href' => \OCP\Util::linkToRoute('oclife_index'), 'icon' => \OCP\Util::imagePath('oclife', 'nav-icon.svg'), 'name' => 'Tags')); // Handle translations //$l = new \OC_L10N('oclife'); $l = \OCP\Util::getL10N('oclife'); // Add what's needed by TagManager \OCP\Util::addStyle('oclife', 'bootstrap-tokenfield'); \OCP\Util::addStyle('oclife', 'oclife_fileInfo'); \OCP\Util::addScript('oclife', 'bootstrap-tokenfield/bootstrap-tokenfield'); \OCP\Util::addScript('oclife', 'bootstrap-tokenfield/typeahead.bundle'); \OCP\Util::addScript('oclife', 'bootstrap-tokenfield/affix'); \OCP\App::registerAdmin('oclife', 'settings'); \OCP\Util::addscript('oclife', 'oclife/oclife_fileExtendedInfo'); // Register filesystem hooks to remove thumbnails and tags DB entries \OCP\Util::connectHook('OC_Filesystem', 'delete', 'OCA\\OCLife\\utilities', 'cleanupForDelete'); \OCP\Util::connectHook('OC_Filesystem', 'rename', 'OCA\\OCLife\\utilities', 'cleanupForRename');
<?php /** * ownCloud - Secure Container * * @author Lukas Zurschmiede * @copyright 2014 Lukas Zurschmiede <*****@*****.**> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Affero General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. */ namespace OCA\secure_container\AppInfo; \OCP\App::addNavigationEntry(array('id' => 'secure_container', 'order' => 10, 'href' => \OCP\Util::linkToRoute('secure_container.page.index'), 'icon' => \OCP\Util::imagePath('secure_container', 'app.svg'), 'name' => \OC_L10N::get('secure_container')->t('Secure Container')));
/** * Creates a new navigation entry * @param array $entry containing: id, name, order, icon and href key */ public function addNavigationEntry(array $entry) { \OCP\App::addNavigationEntry($entry); }
} //OCP\Util::addScript('user_otp', 'top_right_menu'); //var_dump('toto'); ?> <!-- <script type="text/javascript"> $(document).ready(function(){ //$('#expanddiv li:last-child').append('toto'); var items = document.querySelectorAll("#expanddiv li"); var users = items[items.length-4]; //alert(users); //users.append('toto'); var elm = users; //document.getElementById("name"); var newElm = document.createElement("li"); newElm.innerHTML = "<a href='"+<?php echo \OCP\Util::linkToRoute('user_otp_list_users'); ?> +"'>OTP Users</a>"; //alert(document.location.href); elm.parentNode.insertBefore(newElm, elm.nextSibling); }); </script> --> <?php $isadmin = OC_User::isAdminUser(OC_User::getUser()); if ($isadmin) { \OCP\App::addNavigationEntry(array('id' => 'user_otp', 'order' => 74, 'href' => \OCP\Util::linkToRoute('user_otp_list_users'), 'icon' => \OCP\Util::imagePath('settings', 'admin.svg'), 'name' => 'OTP Users')); }
<?php /** * ownCloud - maps * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Sander Brand <*****@*****.**> * @copyright Sander Brand 2014 */ namespace OCA\Maps\AppInfo; $l = \OC::$server->getL10N('maps'); \OCP\App::addNavigationEntry(array('id' => 'maps', 'order' => 10, 'href' => \OC::$server->getURLGenerator()->linkToRoute('maps.page.index'), 'icon' => \OC::$server->getURLGenerator()->imagePath('maps', 'maps.svg'), 'name' => $l->t('Maps')));
<?php /** * ownCloud - dashboard * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Florian Steffens <*****@*****.**> * @copyright Florian Steffens 2014 */ namespace OCA\Dashboard\AppInfo; use OC_L10N; use OCP\App; use OCP\Util; App::addNavigationEntry(array('id' => 'dashboard', 'order' => 10, 'href' => Util::linkToRoute('dashboard.route_page.index'), 'icon' => Util::imagePath('dashboard', 'dashboard.svg'), 'name' => OC_L10N::get('dashboard')->t('Dashboard')));
<?php /** * ownCloud - ownmnote * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Ben Curtis <*****@*****.**> * @copyright Ben Curtis 2015 */ namespace OCA\OwnMNote\AppInfo; $l = \OC::$server->getL10N('ownmnote'); if (\OCP\App::isEnabled('files_markdown')) { \OCP\App::registerAdmin('ownmnote', 'admin'); \OCP\App::addNavigationEntry(array('id' => 'ownmnote', 'order' => 10, 'href' => \OCP\Util::linkToRoute('ownmnote.page.index'), 'icon' => \OCP\Util::imagePath('ownmnote', 'app.svg'), 'name' => $l->t('Notes'))); } else { $msg = 'Can not enable the OwnMarkdownNote app because the ownCloud Markdown App is disabled.'; \OCP\Util::addScript('ownmnote', 'editor-missing'); \OCP\Util::writeLog('ownmnote', $msg, \OCP\Util::ERROR); }
<?php /** * ownCloud - EasyBackup * * @author Sebastian Kanzow * @copyright 2014 System k2 GmbH info@systemk2.de * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Affero General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ \OCP\Util::addScript('easybackup', 'easybackup'); // add js/easybackup.js \OCP\Util::addScript('easybackup', 'logfiletailer'); // add js/logfiletailer.js \OCP\Util::addStyle('easybackup', 'easybackup'); // add css/easybackup.css \OCP\App::addNavigationEntry(array('id' => 'easybackup', 'order' => 10, 'href' => \OCP\Util::linkToRoute('easybackup.page.index'), 'icon' => \OCP\Util::imagePath('easybackup', 'easybackup_logo.png'), 'name' => 'EasyBackup'));
<?php /** * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ $l = new OC_l10n('collaboration'); OC::$CLASSPATH['OC_Collaboration_Project'] = 'collaboration/lib/projects.php'; OC::$CLASSPATH['OC_Collaboration_Post'] = 'collaboration/lib/posts.php'; OC::$CLASSPATH['OC_Collaboration_Time'] = 'collaboration/lib/time.php'; OC::$CLASSPATH['OC_Collaboration_Comment'] = 'collaboration/lib/comments.php'; OC::$CLASSPATH['OC_Collaboration_Task'] = 'collaboration/lib/tasks.php'; OC::$CLASSPATH['OC_Collaboration_Mail'] = 'collaboration/lib/mail_templates.php'; OC::$CLASSPATH['OC_Collaboration_Hooks'] = 'collaboration/lib/hooks.php'; OC::$CLASSPATH['OC_Collaboration_Skillset'] = 'collaboration/lib/skillset.php'; OC::$CLASSPATH['OC_Collaboration_Report'] = 'collaboration/lib/reports.php'; OC::$CLASSPATH['OC_Collaboration_Calendar'] = 'collaboration/lib/calendar_support.php'; OC_Hook::connect('OC_User', 'post_deleteUser', 'OC_Collaboration_Hooks', 'notifyUserDeletion'); OC_Hook::connect('OCP\\Share', 'post_shared', 'OC_Collaboration_Hooks', 'notifyFileShare'); $gid = "Collaboration Admin"; if (!OC_Group::groupExists($gid)) { OC_Group::createGroup($gid); } \OCP\App::addNavigationEntry(array('id' => 'collaboration', 'order' => 0, 'href' => \OCP\Util::linkToRoute('collaboration_route', array('rel_path' => '')), 'icon' => \OCP\Util::imagePath('collaboration', 'collaboration.svg'), 'name' => $l->t('Collaboration')));
<?php /** * ownCloud - App Template plugin * * @author Bernhard Posselt * @copyright 2012 Bernhard Posselt nukeawhale@gmail.com * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Affero General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ require_once \OC_App::getAppPath('apptemplate_advanced') . '/appinfo/bootstrap.php'; \OCP\App::registerAdmin('apptemplate_advanced', 'admin/settings'); \OCP\App::addNavigationEntry(array('id' => 'apptemplate_advanced', 'order' => 74, 'href' => \OC_Helper::linkToRoute('apptemplate_advanced_index'), 'icon' => \OCP\Util::imagePath('apptemplate_advanced', 'example.png'), 'name' => \OC_L10N::get('apptemplate_advanced')->t('Advanced App Template')));
<?php /** * ownCloud - ownboard * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Loic Blot <*****@*****.**> * @copyright Loic Blot 2015 */ namespace OCA\OwnBoard\AppInfo; if (class_exists('\\OCP\\AppFramework\\App')) { \OCP\App::addNavigationEntry(array('id' => 'ownboard', 'order' => 10, 'href' => \OCP\Util::linkToRoute('ownboard.board.index'), 'icon' => \OCP\Util::imagePath('ownboard', 'app.svg'), 'name' => \OCP\Util::getL10N('ownboard')->t('ownBoard'))); } else { $msg = 'Can not enable the OwnBoard app because the App Framework App is disabled'; \OCP\Util::writeLog('ownboard', $msg, \OCP\Util::ERROR); }
<?php /** * ownCloud - ocDownloader * * This file is licensed under the Creative Commons BY-SA License version 3 or * later. See the COPYING file. * * @author Xavier Beurois <www.sgc-univ.net> * @copyright Xavier Beurois 2015 */ namespace OCA\ocDownloader\AppInfo; $l = \OC::$server->getL10N('ocdownloader'); $g = \OC::$server->getURLGenerator(); \OCP\App::addNavigationEntry(['id' => 'ocdownloader', 'order' => 10, 'href' => $g->linkToRoute('ocdownloader.Index.Add'), 'icon' => $g->imagePath('ocdownloader', 'ocdownloader.svg'), 'name' => 'ocDownloader']); \OCP\App::registerAdmin('ocdownloader', 'settings/admin'); \OCP\App::registerPersonal('ocdownloader', 'settings/personal');
<?php /** * ownCloud - bookmarks * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * @author Marvin Thomas Rabe <*****@*****.**> * @author Arthur Schiwon <*****@*****.**> * @author Stefan Klemm <*****@*****.**> * @copyright (c) 2011, Marvin Thomas Rabe * @copyright (c) 2011, Arthur Schiwon * @copyright (c) 2014, Stefan Klemm */ namespace OCA\Bookmarks\AppInfo; \OCP\App::addNavigationEntry(array('id' => 'bookmarks', 'order' => 10, 'href' => \OCP\Util::linkToRoute('bookmarks.web_view.index'), 'icon' => \OCP\Util::imagePath('bookmarks', 'bookmarks.svg'), 'name' => \OC_L10N::get('bookmarks')->t('Bookmarks'))); \OC::$server->getSearch()->registerProvider('OCA\\Bookmarks\\Controller\\Lib\\Search', array('apps' => array('bookmarks')));
* This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Ben Curtis <*****@*****.**> * @copyright Ben Curtis 2015 */ namespace OCA\OwnNote\AppInfo; \OCP\App::addNavigationEntry(array( // the string under which your app will be referenced in owncloud 'id' => 'ownnote', // sorting weight for the navigation. The higher the number, the higher // will it be listed in the navigation 'order' => 10, // the route that will be shown on startup 'href' => \OCP\Util::linkToRoute('ownnote.page.index'), // the icon that will be shown in the navigation // this file needs to exist in img/ 'icon' => \OCP\Util::imagePath('ownnote', 'app.svg'), // the title of your application. This will be used in the // navigation or on the settings page of your app //'name' => \OC_L10N::get('ownnote')->t('Own Note') 'name' => \OC_L10N::get('ownnote')->t('Notes') ));
<?php $l = new OC_L10N('ocDashboard'); \OCP\App::registerPersonal('ocDashboard', 'settings'); \OCP\App::addNavigationEntry(array('id' => 'ocDashboard', 'order' => 0, 'href' => \OCP\Util::linkToRoute('ocDashboard_index'), 'icon' => \OCP\Util::imagePath('ocDashboard', 'icon.svg'), 'name' => 'Dashboard'));