2015-07-08 21:29:55 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* ownCloud - weather
|
|
|
|
*
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later. See the COPYING file.
|
|
|
|
*
|
|
|
|
* @author Loic Blot <loic.blot@unix-experience.fr>
|
|
|
|
* @copyright Loic Blot 2015
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OCA\Weather\AppInfo;
|
|
|
|
|
2018-09-27 09:25:41 +00:00
|
|
|
\OC::$server->getNavigationManager()->add([
|
2015-07-08 21:29:55 +00:00
|
|
|
// the string under which your app will be referenced in owncloud
|
|
|
|
'id' => 'weather',
|
|
|
|
|
|
|
|
// 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
|
2018-09-27 09:25:41 +00:00
|
|
|
'href' => \OC::$server->getURLGenerator()->linkToRoute('weather.city.index'),
|
2015-07-08 21:29:55 +00:00
|
|
|
|
|
|
|
// the icon that will be shown in the navigation
|
|
|
|
// this file needs to exist in img/
|
2018-09-27 09:25:41 +00:00
|
|
|
'icon' => \OC::$server->getURLGenerator()->imagePath('weather', 'app.svg'),
|
2015-07-08 21:29:55 +00:00
|
|
|
|
|
|
|
// the title of your application. This will be used in the
|
|
|
|
// navigation or on the settings page of your app
|
|
|
|
'name' => \OCP\Util::getL10N('weather')->t('Weather')
|
2018-09-27 09:25:41 +00:00
|
|
|
]);
|