mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
29 lines
1 KiB
PHP
29 lines
1 KiB
PHP
<?php
|
|
/**
|
|
* ownCloud - Files_Opds app
|
|
*
|
|
* Copyright (c) 2014 Frank de Lange
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
* later.
|
|
* See the COPYING-README file.
|
|
*/
|
|
|
|
namespace OCA\Files_Opds;
|
|
|
|
$l = new \OC_L10N('files_opds');
|
|
|
|
\OCP\Util::addScript('files_opds', 'personal');
|
|
|
|
$tmpl = new \OCP\Template('files_opds', 'personal');
|
|
$opdsEnable = Config::get('enable', false);
|
|
$tmpl->assign('opdsEnable-checked', ($opdsEnable === 'true') ? 'checked="checked"' : '');
|
|
$tmpl->assign('opdsEnable-value', ($opdsEnable === 'true') ? '1' : '0');
|
|
$tmpl->assign('rootPath', Config::get('root_path', '/Library'));
|
|
$tmpl->assign('fileTypes', Config::get('file_types', ''));
|
|
$tmpl->assign('skipList', Config::get('skip_list', 'metadata.opf,cover.jpg'));
|
|
$tmpl->assign('feedTitle', Config::get('feed_title', $l->t("%s's Library", \OCP\User::getDisplayName())));
|
|
$tmpl->assign('bookshelf-count', Bookshelf::count());
|
|
$tmpl->assign('feedUrl', \OC_Helper::linkToAbsolute('','index.php') . '/apps/files_opds/');
|
|
|
|
return $tmpl->fetchPage();
|
|
|