2012-04-28 18:27:29 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ownCloud - News app (feed reader)
|
|
|
|
*
|
|
|
|
* @author Alessandro Cosentino
|
|
|
|
* @copyright 2012 Alessandro Cosentino cosenal@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 Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2012-05-08 23:57:08 +04:00
|
|
|
OC::$CLASSPATH['OC_News_Item'] = 'apps/news/lib/item.php';
|
2012-05-10 23:43:56 +04:00
|
|
|
OC::$CLASSPATH['OC_News_Feed'] = 'apps/news/lib/feed.php';
|
2012-05-15 22:49:53 +04:00
|
|
|
OC::$CLASSPATH['OC_News_FeedMapper'] = 'apps/news/lib/feedmapper.php';
|
2012-05-18 06:59:49 +04:00
|
|
|
OC::$CLASSPATH['OC_News_ItemMapper'] = 'apps/news/lib/itemmapper.php';
|
|
|
|
|
2012-04-28 18:27:29 +04:00
|
|
|
|
2012-05-08 23:57:08 +04:00
|
|
|
$l = new OC_l10n('news');
|
2012-04-28 18:27:29 +04:00
|
|
|
|
2012-05-08 23:57:08 +04:00
|
|
|
OCP\App::registerAdmin('news','settings');
|
2012-05-27 00:51:09 +04:00
|
|
|
|
|
|
|
OCP\App::register( array(
|
|
|
|
'order' => 70,
|
|
|
|
'id' => 'news',
|
|
|
|
'name' => 'News'
|
|
|
|
));
|
|
|
|
|
|
|
|
OCP\App::addNavigationEntry( array(
|
|
|
|
'id' => 'news',
|
|
|
|
'order' => 74,
|
|
|
|
'href' => OC_Helper::linkTo( 'news', 'index.php' ),
|
|
|
|
'icon' => OC_Helper::imagePath( 'news', 'icon.svg' ),
|
|
|
|
'name' => $l->t('News')
|
|
|
|
));
|
2012-04-28 18:27:29 +04:00
|
|
|
|