disclaimer/_define.php

36 lines
1,023 B
PHP
Raw Normal View History

2015-04-22 15:25:24 +00:00
<?php
2022-12-21 00:40:42 +00:00
/**
* @brief disclaimer, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis, Pierre Van Glabeke
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2015-04-22 15:25:24 +00:00
if (!defined('DC_RC_PATH')) {
2022-12-21 00:40:42 +00:00
return null;
2015-04-22 15:25:24 +00:00
}
2022-12-21 00:40:42 +00:00
2015-04-22 15:25:24 +00:00
$this->registerModule(
2022-12-21 00:40:42 +00:00
'disclaimer',
'Add a disclaimer to your blog entrance',
'Jean-Christian Denis, Pierre Van Glabeke',
2022-12-21 10:16:30 +00:00
'1.0',
2022-12-21 00:40:42 +00:00
[
'requires' => [['core', '2.24']],
'permissions' => dcCore::app()->auth->makePermissions([
dcAuth::PERMISSION_ADMIN,
]),
'type' => 'plugin',
'support' => 'http://forum.dotclear.org/viewtopic.php?id=40000',
'details' => 'https://github.com/JcDenis/' . basename(__DIR__),
'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml',
2022-12-21 10:16:30 +00:00
'settings' => [
'blog' => '#params.disclaimerParam',
],
2022-12-21 00:40:42 +00:00
]
);